Old 11-03-2008, 01:37 PM   #1 (permalink)
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
gazzap is offline   Reply With Quote
Old 11-03-2008, 03:04 PM   #2 (permalink)
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
gazzap is offline   Reply With Quote
Old 11-06-2008, 09:07 PM   #3 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian 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.
Adrian is offline   Reply With Quote
Old 02-11-2009, 04:28 PM   #4 (permalink)
Junior Member
 
Join Date: Sep 2008
Posts: 2
Default Problem to load external .swf

Hello,

I need help!, please!

I am trying to load external .swf with the Sliding List, but not work.
I did all the process explained in this thread to do that, but nothing, I don't have idea what happen.

• This is the code that I put in the AS:

_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){

caja.loadClip(n.attributes.clip);
}


•*And this is the code in the XML:

<playlist title="Seleccione una Categoria">
<item title="Bienvenida" clip="pcd.swf"/>
</playlist>


Please! some body help me with this...

Thanks before hands!


Ososa
ososa is offline   Reply With Quote
Old 02-11-2009, 08:46 PM   #5 (permalink)
OYXLUSFlash.com Staff Member
 
Adrian's Avatar
 
Join Date: May 2008
Posts: 1,981
Send a message via Yahoo to Adrian Send a message via Skype™ to Adrian
Default

use loadMovie instead of loadClip
Adrian is offline   Reply With Quote
Reply

Bookmarks

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



All times are GMT. The time now is 09:48 AM.