Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

actionscript for buttons....

Status
Not open for further replies.

natedeia

Technical User
May 8, 2001
365
US
On (Release)
Begin Tell Target ("../image1")
Go to and Stop(2)
End Tell Target
End On
This script seems to work for my buttons which stay where they are as info/images pop up in a designated box on the screen. The problem is that each MC that i bring up only can be seen a certian order. Certian ones seem to be above others. You can see, say #4 the procede through the buttons, 3,2,1 but if you go the #1 then you can not bring up 4,3,2. Know what i mean? Any advise? Oh and this command only seem be used for Flash 5 which i have, but would like one to be exported as Flash 4. Thanks guys and girls!
 
Not too sure what you're on about here ;) Post the fla (or email it) and we can have a quick look. Nick (Web Designer)
nick.price@misuk.net
 
One thing I can tell you:
The code as you posted it is 100% Flash 4 compatible, i.e. you can export it as Flash 4 SWF and it will work.
 
i will try to email it at lunch today.

is what semmelbroesel says is true about the code? every time i test movie that box pops up and explains anything wrong and what it is telling me is that i have to export as Flash 5. i have it set up to export as 4 also. so exporting as 5 is ok because then Flash 4 players can read it correctly???? i will either post or email, thanks for help...
 
hi nat

what semmel says is true, but obviously there must be some other actions in your movie which are F5 only.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 

Here is the .fla. Please tell me what script i need to put in here to get these different movies to pop up as each button is pressed but also to hide the other ones or make them disappear. I may put a white square behind or in each movie that will cover the ones behind them. HELP!!

e-mail: kaindog_1999@yahoo.com
 
Man you are great! I gave up for the past week or so untill i bought the Macromedia Flash 5 book, half way through but even flipping around and reading ahead i could not even find out how you did that!
Thanks alot!
Hey what does _root and _level really mean? Gives examples with it but not an explanation. Thanks again!
 
glad it was what you were after.

OK, _root and _level:

_root
_root is very easy to explain as it simply refers to the main-timeline of your movie. So if you have two movie-clips located on the main stage (ie: on the main timeline) and you want to target one from within the other, you would give the route to the other movie-clip. If we say that the instances of the clips are "mc1" and "mc2", then the route from "mc1" to "mc2" would be _root.mc2

_level
_level deals with loaded movies (swf's) which you have loaded into your initial movie. Imagine placing a sheet of tracing-paper on your desk, this represents your initial movie located on _level0. Now place a sheet of tracing-paper on top of your first one, this represents a movie loaded into _level1. And so-on for _level2, 3, 4 etc etc.

You can target an mc in another movie (loaded into a new level) by swapping the _root part of the action above with _level1 (or whatever level you have loaded your movie into). So if you have loaded a movie into _level1 and have an mc within this movie called "mc1", then you can target this mc from your initial movie (or any other loaded movie) by using the route _level1.mc1 .

I hope this explains things for you.

dave
dave@pinkzeppelin.com

^^^^^^^^^^^^^^^^^^^^^​
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top