PDA

View Full Version : load an external SWF parent loading other SWF files in Dreamweaver Im trying to load an external SWF


joshdesign
03-27-2011, 08:40 PM
load an external SWF parent loading other SWF files in Dreamweaver
Im trying to load an external SWF parent loading other SWF files in Dreamweaver but him having problems..

Both programs are Adobe CS4
I'm doing this project on Actionscript 3.0

The SWF file parent it doesnt load at all when i put it in Dreamweaver put it works if i don't put it in Dreamweaver

For loading each SWF files im using this code:

var myLoader:Loader = new Loader();
addChild(myLoader);
var url:URLRequest = new URLRequest("page1.swf");
myLoader.load(url);

i tried to use other Projects With Parents Swf and child Swf and .. still doesn't work... i never done this because i'm new in webdesign.. please help me .. thanks!

Ricky55
03-27-2011, 09:58 PM
There's nothing wrong with your code although its very basic it does work.

The reason why it won't be loding when you put it in Dreamweaver will almost certainly be down to the path to the external swf. Have you got the html file and the both swf files in one folder? If not the path to the swf you are loading needs to be correct from the html file into which you are embedding the parent swf.

If all this doesn't make sense zip up your project files and email them to me and I'll sort it out for you.

I'll post back what I did for others.

richard@qwerty-design.co.uk

joshdesign
03-27-2011, 10:09 PM
Thank you very Much!
now it works !:-D :-D :-D :-D

Ricky55
03-28-2011, 05:19 PM
Nice one Josh no worries.