#1 (permalink)  
Old 11-03-2008, 01:37 PM
Junior Member
 
Join Date: Nov 2008
Posts: 2
Default Cannot load external movie

Hi,

I am pretty basic on flash and when I design a site I usualy just use the loadMovieNum("loop.swf", 5); on the time line which will load the swf file over the top of the main swf, as long as they are in the correct folder.

I want to be able to do this on the menu system too, so when I click on a link it will load the swf over the top of the current movie, and I want to do this for each link.

I ahve read the documentation and also gone through the boards, but I still don't understand how to do this.

I have changed the xml link to <item title="Main" clip="clips/index.swf" /> but I don't even know if this is correct, because i am just loading a movie swf, do I need the clip part?? because I don't when I load movies using flash action script, I jsut use loadmovie.

Please help?????

Many Thanks
Reply With Quote
  #2 (permalink)  
Old 11-03-2008, 03:04 PM
Junior Member
 
Join Date: Nov 2008
Posts: 2
Default an update

Hi,

I have all my files in the deploy folder, I have the main.swf and a pcd.swf and a natural.swf.

I have changed the XML code to the following
<item title="Main" clip="pcd.swf" />
<item title="Ford" clip="natural.swf"/>

I have put a blank movie clip on the stage of the main.swf and called it
empty_mc

I have also changed the AS layer action to

_root._visible = true;
// define item select handler
PList_mc.onItemSelect= function(n:XMLNode){
// display title in the result_txt text box on the stage
result_txt.text = n.attributes.title;
}
// populate menu
PList_mc.root = PList_mc.data =xo.firstChild;

PList_mc.onItemSelect= function(n:XMLNode){
empty_mc.loadClip(n.attributes.clip);
}


Clearly I don't know what I am doign but I am following the readme file and I have understood it as this is what i need to do, to load the swf's??

Please help

Many Thanks
Reply With Quote
  #3 (permalink)  
Old 11-06-2008, 09:07 PM
Super Moderator
 
Join Date: May 2008
Posts: 656
Send a message via Skype™ to Adrian
Default

Replace "empty_mc" with the name of the movieclip that will load the external clip. Use loadMovie instead of loadClip.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.