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

School boy error

Status
Not open for further replies.

law78

Technical User
Apr 23, 2004
78
GB
Hi people,

Ok there is a problem which I can't seem to put right:

I have a movie clip which has sublinks contained on the movie's (instance name = click1_mc) timeline. I am trying to get the sublink button to open up an external swf file into an empty movie clip located on the main timeline (instance name emtpy_mc). The code which I have attached to the button (and I have tried 101 different sets of code) is:

on(press){
_root.loadMovie("who.swf", empty_mc);
}


The external file (who.swf) is placed withing the same folder as the main swf file, I just can't figure it out.....

Any Ideas?
Thanks
 
Instead of this:

Code:
on(press){
    _root.loadMovie("who.swf", empty_mc);
}

try this:

Code:
on(press) {
	loadMovie("who.swf",_root.empty_mc);
}

There's always a better way. The fun is trying to find it!
 
Or

Code:
on(press) {
    _root.empty_mc.loadMovie("who.swf");
}
 
What did your code end up like?

There's always a better way. The fun is trying to find it!
 
It was a typo error on the instance name, sorry people

Thanks Anyway
 
Typo will do it every time.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top