Having a problem loading in an image within an AS2 class and LoadMovie with
jpegs. It loads the image perfectly but as soon as it does this it
automatically deletes all existing variables that are running within the
class. Instead of it losing all information upon loadMovie would like to
keep it.
class ui.overlay extends EventClip {
.........
public function showImage(url:String, text: String):Void{
this.loadMovie(url);
this.text=text;
_delegate = EventDelegate.create(this, onHitDataGrid);
datagrid.addEventListener("datagrid", _delegate);
}
private function onHitDataGrid(e:Object):Void{
trace(text); //works when don't load the jpeg.. does not work
when I do load the jpeg.
..
}
I have tried loading the movie into another movieclip inside of this class
and still no success. This is a little unusual and really my first time
loading in Images dynamically.
Been struggling with this one for a while. Anyone know what might be going
on?
-Rob
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders