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

Loading Movie Within An External Movie ?

Status
Not open for further replies.

neilwillis01

IS-IT--Management
Dec 20, 2002
21
GB
Hi,

I need a little help with loading an external movie within an already loaded external movie...

I have my main movie and i am using a loader to load map.swf Then from this file i have the following code:


Code:
on(rollOver){
var holder = _root.info.createEmptyMovieClip("holder", 0);
holder._x = 0;
holder._y = 0;
holder.loadMovie("counties/contact.swf");
}


If run map.swf this works fine, but when i run my main movie and then load map.swf the contact.swf does not appear!

Any ideas?

Thanks,

Neil
 
In a loader...

I am using Flash 8 and under components i have placed a loader and instructed it to load map.swf.


Hope this helps...
 
Hi,

Thanks for checking this out for me..

As you can see if you run map.swf and roll over a log it loads a movie from the counites folder. However if you run the mail.swf it dose not work.

files:



Thanks,

Neil
 
Change your _root reference to this and it works fine...
Code:
on(rollOver){
  var holder = [b]this[/b].info.createEmptyMovieClip("holder", 0);
  holder._x = 0;
  holder._y = 0;
  holder.loadMovie("counties/Aerosaurus.swf");
  // if your swf got dynamic code in it you might need:
  //holder._lockroot = true;
}

Regards. Affiliate Program - Web Hosting - Web Design

03/13/05 -> OLDNEWBIE VS FLASHK
 
Thanks oldnewbie,

Your a star!!! Thats been bugging me for hours!!!!


Have a good Christmas,


Neil
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top