LOADING
Loading
Hi , welcome back.
LogoutLOGOUT
 
  Lost password?  
Hi
 




 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #1  
Old 12-07-2004, 06:22 PM
datter datter is offline
Registered User
 
Join Date: Dec 2004
Posts: 2
Rep Power: 0
datter is on a distinguished road
Loading buttons into movie clips in ordered sequence?

I posted this over at Flashkit recently but thought I'd add it here as well in the hopes of getting this sorted out.

Here's a brief run down of something I need to do... I wonder if anyone has any suggestions on how best to do it. The simplified version is as follows;

I have 5 buttons labelled 1, 2, 3, 4 and 5. They are 30x30pixels and each in a seperate swf file called button1.swf, button2.swf and so on.

I need to load these buttons into a main flash file called main.swf. In this swf I've placed 5 empty movie clips with the instance names slot1, slot2, slot3, slot4 and slot5.

I can load the buttons into these slots very easily by using;

Code:
loadMovie("button1.swf", "slot1");
loadMovie("button2.swf", "slot2");
loadMovie("button3.swf", "slot3");
loadMovie("button4.swf", "slot4");
loadMovie("button5.swf", "slot5");
That of course works fine, but here's where it gets more complicated. I have php based admin tool that the client can use to choose which buttons are to be added to main.swf. So they can opt to have any or all of them appear as they like. This tool will generate a URL with the info about which buttons are to be included, sort of like this;

Code:
http://www.mysite.com/admin.php?button1=yes,button2=no,button3=yes
etc etc

Now I can probably make the Flash file read that url somehow and show only the buttons they've opted to display (haven't really sorted that out yet actually) but what I need is not only that but somehow to make it so that if they choose button1, button 3 and button 5 (for instance) that those three buttons will appear in the first three slots of main.swf

I can't have buttons 1, 3 and 5 show up in slots 1, 3 and 5... I need them in 1, 2 and 3... all grouped together. If they select all five buttons, then all five slots will be filled. If they select just button 4, then it needs to go into the first slot in main.swf

Not sure how best to go about this and I'm open to any suggestions.

Sorry for the long post, I just wanted to be clear about everything.

David
 


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
loading images fade-in/out into empty movie clips cthomasmn Flash MX 2004 4 01-03-2008 04:50 PM
Loading Movie Clips and Pathing Chris Manuel Flash MX 2004 1 12-21-2005 08:35 PM
movie clips as buttons jonyboy Flash MX ActionScript 4 08-13-2004 09:16 AM
Defining hitArea for movie clips that are used for buttons grooovylim General Flash 2 06-24-2003 04:09 PM
preloading plankd Newbies 4 08-25-2000 11:15 AM




All times are GMT. The time now is 10:39 PM.