Actionscript ?
- Started
- Last post
- 8 Responses
- mikeim
I am trying to call a frame in one scene from a movie clip in another scene.
Doesn't seem to recognize labels or frame numbers and there's no where to specify a scene.
- nospacebar0
You're better off not using frames because of this very problem...
But give this a try:
gotoAndPlay("Scene 456", 56);
- Neuarmy0
why use scenes?
- nospacebar0
Scenes provide a very basic way of divying up content, like scenes in a play. They're geared more towards animation than interface work, so their use is understandable,.
- mikeim0
crap, that's not working.
Here's what I have applied:
on (release) {
_root.gotoAndPlay("infrastructur...}
Any other suggestions. Looks like I might have to put everything on 1 scene.
- kinetic0
instead of scenes you can divvy everything up into movieclips located on different frames of the main timeline.
way easier to target and use IMO
- shant0
Cutting stuff into movieclips can get confusing, and isn't a good practice if someone else was gonna work on your file, they wouldn't know where to look.
Scenes is just bad, might as well install Flash 3.0
The best way is to have everything laid out in front of you. It may seem like you have to scroll more, but anyone who comes into your file, or if you have to come back and work on it a few months from now, you won't be looking for hidden animations.
- ********0
you can try: (flash mx or 2004)
movieClipName.onRelease=function...
_root.MovieClipName("labelName...
}substitute first movieclip name for the clip to be the button, the second movieclip name for the movieclip to effect. also, create a frame label, do not target frame numbers directly. ALSO, if you are on a mac, i have discovered that sometimes frame label names dont stick. erase the frame label name, hit return, enter a different name. this might just be mostly a MX bug, but i have experienced it on 2004.
- mikeim0
guys, i figured it out.
I labeled the first frame in the scene I wanted to call and checked the "named anchor" box in the properties palette.
thanks.