all groups > flash actionscript > january 2005 >
You're in the

flash actionscript

group:

MovieClip Class Method syntax error?


MovieClip Class Method syntax error? rwl3
1/6/2005 9:21:16 PM
flash actionscript:
O.K., I'm back. I've been reading up on ActionScript, but I still have an
error. I'm sure it's very simple. Please help. I have loader.swf that loads
content.swf in layer 1 and menu.swf in layer 2 (I want my menu to float over
all the content): var mcloader:MovieClipLoader = new MovieClipLoader;
mcloader.loadClip('content.swf', 1); mcloader.loadClip('menu.swf', 2); In
menu.swf I have a button with an action to send content.swf to scene 'news' but
it doesn't want to go there: on (release) { _level1.gotoAndPlay('news');
gotoAndPlay('menu3'); } The 'gotoAndPlay('menu3');' within menu.swf executes
just fine. Can you not specify a scene anymore in a swf file in a different
layer? Thanks.
Re: MovieClip Class Method syntax error? NSurveyor
1/6/2005 9:24:06 PM
Scenes are only for you. At runtime, all the scenes are meshed into one. So,
using "news" won't work. Instead, on the first frame of news, add a frame
label, "newsFL" (Select the first frame. Open the properties panel, and type in
newsFL in the <Frame Label> box). Then in your actionscript, use

_level1.gotoAndPlay("newsFL");
Re: MovieClip Class Method syntax error? rwl3
1/6/2005 9:31:23 PM
Re: MovieClip Class Method syntax error? NSurveyor
1/6/2005 9:33:21 PM
AddThis Social Bookmark Button