Skip to main content
Participating Frequently
July 15, 2010
Question

Refer to a movieclip within the root

  • July 15, 2010
  • 1 reply
  • 501 views

Hi,

I am using the load movie from my main file (main.swf) as:

mc_zoom.loadMovie("detail.swf");

I then have a loader as a movieclip with the detail.swf

when the movie (detail.swf) is loaded the preloader I am trying to make/set the play to go:

_root.gotoAndStop(2);

But this does not work - it works locally but when used with the main file (main.swf)

Any help please!

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
July 15, 2010

in detail.swf, add:

this._lockroot=true;

SanjAuthor
Participating Frequently
July 16, 2010

Thanks for your reply,

I've added that but what should be the ref to tell Flash to goto and play from frame 2 in detail.swf?

Thanks

kglad
Community Expert
Community Expert
July 16, 2010

if you want the main timeline in detail.swf to advance to frame 2 when its loading is complete, you can use:

this._lockroot=true;

_root.gotoAndStop(2);