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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

referring to loaded swf in a movie 1

Status
Not open for further replies.

DeepBlerg

Technical User
Jan 13, 2001
224
AU
Hi,

I have loaded a swf into a movie clip in my movie using the loadMovie function.

Now I have a button which is in my movie clip and when it is clicked i would like the loaded swf to movie to frame 50, for example.

If have tried: (empty is the empty movie clip i loaded the swf into)

with ("../empty") {
gotoAndPlay (50);
}

but it doesnt do anything.

What would be the correct actionscript for this?
 
I haven't mastered the with statement yet... Nor if I know if it's really appropriate here!
Guess you don't have the .fla of the .swf you're loading and control of such a file loaded inside an empty movie clip is not allways easily done.
I do have a similar situation (in fact a little more complicated, because I'm preloading that swf in my empty clip) and I have manage to get it to go or start on frame 50 of that .swf with the following:
_parent._parent.contents.gotoAndPlay(50);

...Contents being the instance name equivalent to your empty clip.
I might need the double _parent._parent because of my
preloading thing... Maybe only one would work for you as:
_parent.contents.gotoAndPlay(50);

If you get this to work, and if you insist in using the with statement try this:
with (_parent.empty) {
gotoAndPlay (50);
}

mywink.gif
ldnewbie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top