Loading external files into movieclips


hello,

 

i'm importing images folder movie clips located in flash, clip on first frame loads graphic, can't quite others work

 

 

 

function loadimage(path:string):loader{
var request:urlrequest = new urlrequest(path);
var loader:loader = new loader();
loader.load(request);
return loader;
};
var image1 = loadimage("image01.jpg");
this.addchild(image1);
var image2 = loadimage("image02.jpg");
imagearea2.addchild(image2);
var image3 = loadimage("image03.jpg");
imagearea3.addchild(image3);

 

 

cheers

you mention clip on first frame works.  clip?  , others if not on first frame?  evrything code talks needs present (same frame) when code executes.



More discussions in Adobe Animate CC - General


adobe

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support