Groups | Blog | Home
all groups > flash actionscript > december 2006 >

flash actionscript : GoToAndStop Target MC help needed


LizHolland
12/5/2006 8:32:58 PM
I'm stumped on this one.

I have a main movie, with two movieclips inside of it for the nav and the
moviebox (mcNav and mcBox, respectively). mcBox then loads up an instance of
"container" and plays an external .swf depending on where you are based on the
frameLabels.

Depending on the html file called, it will forward to a framelabel within the
movie via the code snippet below.

Problem: Can't seem to get the two children to jump to the framelabel as
well. (both the root movie and the two children have identical label timelines)
I think it's just an issue of how I'm referencing them, but maybe I'm missing
something else.

Any help is appreciated, starting to pull my hair out!

In the Flash file, parent movie, frame 1:

[Q]
if( frameLabel != null && frameLabel != undefined){
goToAndStop(frameLabel);
goToAndStop(mcNav.frameLabel);
goToAndStop(mcBox.frameLabel);
}else{
goToAndStop("GSintro");
}
[/Q]

In the HTML file:
[Q]
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" id="demo"
name="demo"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#ve
rsion=6,0,29,0" width="655" height="500">
<param name="FlashVars" value="frameLabel=AIeasyview" />
<param name="movie" value="demo2.swf">
<param id="demo" value="demo">
<param name="demo" value="demo">
<param name="quality" value="high">
<param name="swliveconnect" value="true" />
<embed src="demo2.swf" id="demo" name="demo" swliveconnect="true"
quality="high" flashvars="frameLabel=AIeasyview"
pluginspage="http://www.macromedia.com/go/getflashplayer"
type="application/x-shockwave-flash" width="655" height="500"></embed>
</object>
[/Q]
LizHolland
12/5/2006 8:42:25 PM
Nevermind, answered my own question.

Gotta love stupid mistakes!

if( frameLabel != null && frameLabel != undefined){
mcBox.gotoAndStop(frameLabel);
mcNav.gotoAndStop(frameLabel);
gotoAndStop(frameLabel);
}else{
goToAndStop("GSintro");
}
AddThis Social Bookmark Button