WebProWorld Part of WebProNews.com
Page One Link To Us Edit Profile Private Messages Archives FAQ RSS Feeds  
 

Go Back   WebProWorld > Site Design > Flash Discussion Forum
Subscribe to the Newsletter FREE!


Register FAQ Members List Calendar Arcade Chatbox Mark Forums Read

Flash Discussion Forum Flash design presents a limitless number of possibilities for your sites and designs. Discuss your Flash ideas, questions and issues here.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-17-2004, 02:00 PM
bobveze bobveze is offline
WebProWorld New Member
 

Join Date: Aug 2004
Location: Los Angeles, CA
Posts: 2
bobveze RepRank 0
Default Controlling multiple movies with action scripting

I can't find a clear example of the code needed for this:

I have a base movie. Into the base movie, I have loaded (on layer2) a second movie containing a row of buttons. I want these buttons to control the loading of additional movies into the base movie (on layer 1) so that, among other things, the animation behind the buttons can change while the buttons stay the same. The additional movies each contain heavy pixel images, so I need them to exist as seperate .swf files for download purposes.

I've seen lots of code for controlling movie clips from movie clips, but not this. I can't seem to get the syntax right. Help!!!
Reply With Quote
  #2 (permalink)  
Old 10-18-2004, 08:58 AM
voodooboy voodooboy is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Seattle, WA USA
Posts: 962
voodooboy RepRank 0
Default

Layer one is your base movie. It can not be replaced. If the buttons are on layer 2, then load the movies into layers 3-whatever. If the buttons are supposed to lay over the top of the movies you are loading, then move the buttons to layer 10 (for example) and load the new movies into layers 2-9.

If that doesn't make sense, let me know and I'll get more detailed.

Best of luck.
__________________
Scott Brinkerhoff - Art of Zen Studios
Web Design I Design Monk
© 2000-forever - All rights reserved by me - SO THERE!!
Reply With Quote
  #3 (permalink)  
Old 10-18-2004, 01:39 PM
bobveze bobveze is offline
WebProWorld New Member
 

Join Date: Aug 2004
Location: Los Angeles, CA
Posts: 2
bobveze RepRank 0
Default Huh?

I was under the impression that the base layer was "0".
Antway, I changed the layer numbers. The button movie loads fine (now on layer 3), but the subsequent movies still won't load (I changed their layer to 2).

I think my problem is with the code from the button movie (daughter) to the main movie (root). My guess is that I screwed up the syntax. Do you have a sample of what it should look like?
Thanks,
Robert
Reply With Quote
  #4 (permalink)  
Old 10-21-2004, 11:36 AM
voodooboy voodooboy is offline
WebProWorld Veteran
 

Join Date: Aug 2003
Location: Seattle, WA USA
Posts: 962
voodooboy RepRank 0
Default

Within the main movie add to the first frame:

loadMovieNum("buttons.swf", 2);
(this being your button movie)

From the buttons use this script:

on (release) {
loadMovieNum("page.swf", 7);
}


page.swf being the movie you want to load and the preceeding number being the layer you are loading it into.

Let me know if this helps.
__________________
Scott Brinkerhoff - Art of Zen Studios
Web Design I Design Monk
© 2000-forever - All rights reserved by me - SO THERE!!
Reply With Quote
Reply

  WebProWorld > Site Design > Flash Discussion Forum
Tags: action, controlling, movies, multiple, scripting



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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Search Engine Friendly URLs by vBSEO 3.0.0