Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 10th, 2003, 10:09 AM
Dig Dig is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Dig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Help with variables in a menu

I have created a menu with 5 buttons and each button has an associated movie clip.

The problem I am having is being able to set each menu button to play the clip and then when the next button is clicked to clear the mc that is showing and play the movie clip associated with the button just clicked.

Someone told me to use variables but I am not sure how to do that. I am using Flash MX.

Any help greatly appreciated.

Thanks

Reply With Quote
  #2  
Old August 11th, 2003, 02:34 PM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
are the clips you want to play all on the stage or do you want to attach them from the library when they're needed?

Reply With Quote
  #3  
Old August 11th, 2003, 04:07 PM
Dig Dig is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Aug 2003
Posts: 2 Dig User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Great question! Which will run faster or more efficiently? It doesn't really matter except that whatever way runs better or if possible keeps file size down is preferable.

I assume running from library has not effect on the swf file size since it is still part of the file whether it is in the library or on stage.

In any event thanks for the response.

Reply With Quote
  #4  
Old August 11th, 2003, 04:15 PM
jamieB jamieB is offline
Contributing User
Dev Shed Novice (500 - 999 posts)
 
Join Date: Nov 2002
Posts: 592 jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level)jamieB User rank is Sergeant (500 - 2000 Reputation Level) 
Time spent in forums: 2 Days 1 h 56 m 16 sec
Reputation Power: 17
you're right - if the clips are in the library it won't affect file size - if they are large though, you could have them as seperate swfs loaded with loadMovie - thats the best thing to do if the clips contain music or bitmaps or anything bulky....if you had three seperate swfs to be loaded by the buttons you could make a container mc on the main stage to load them into and code it like this (all on the main timeline):
Code:
button1_mc.onRelease = function() {
container_mc.loadMovie("movie1.swf");
}
button2_mc.onRelease = function() {
container_mc.loadMovie("movie2.swf");
}
button3_mc.onRelease = function() {
container_mc.loadMovie("movie3.swf");
}


and put those swfs in the same directory as your main movie

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Help with variables in a menu


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway