Hi,
I've got a problem using loadclip in a as2.0 imagecontainer class.
It works fine when i place the image container on Stage, but when I attach the clip dynamically with attachmovie, nothing happens. this is what the class looks like. Does anybody have any ideas about this?
when i do a trace in the loadImage function everything seems to be normal, nothing is null or undefined...
in the .fla file i write something like this:Code:class imagecontainer extends movieclip { function imagecontainer() { target = createEmptyMovieClip("target") } function loadImage( file ) { var lc = new MovieClipLoader() lc.addListener(this) lc.loadclip( file, target ) } }
var im = attachMovie("imagecontainer", "image", 10)
im.loadImage( 'file.jpg' )




Reply With Quote