FORUMS: list search recent posts

Load External swf

COW Forums : Adobe Flash

<< PREVIOUS   •   FAQ   •   VIEW ALL   •   PRINT   •   NEXT >>
Gary Liu
Load External swf
on Nov 22, 2011 at 7:59:45 pm

I try to load external swf into a major flash movie. I tried some codes:

var swf1:MovieClip;
var loader1:Loader = new Loader();

var defaultSWF1:URLRequest = new URLRequest("mySwf1.swf");
loader1.load(defaultSWF1);
addChild(loader1);

The code works fine by loading an external swf file if I have a blank "background" layer and an "actions" layer. But, when I import a picture into "background" layer, the code does not work. I tried other codes such as :

var Ypos: Number=180;
var swf:MovieClip;
var loader:Loader=new Loader();

var defaultSWF:URLRequest=new URLRequest("test1.swf");

loader.load(defaultSWF);
loader.x=Xpos;
loader.y=Ypos;
addChild(loader);

The same thing happens. The code won't work at all if I have pictures.

Any solution for this issue?


Return to posts index

<< PREVIOUS   •   VIEW ALL   •   PRINT   •   NEXT >>
© 2017 CreativeCOW.net All Rights Reserved
[TOP]