Pressed SEND too soon and caught an oops!!
it should be :
//
public function overlay(){
holder_mc=createEmptyMovieClip("holder_mc",1);
}
//
> Not sure the setup but the vars are getting wiped away for sure so its
> some kinda scoping issue.Loading the movieclip into "this" should wipe
> the variables out. Loading them into an emptymovieclip, shouldn't.
>
>
>
>
>
> class ui.overlay extends EventClip{
> // not sure what eventClip is but whatever..
>
> private var holder_mc:MovieClip;
> private var text:String;
>
> public function overlay(){
> holder_mc.createEmptyMovieClip("holder_mc",1);
> }
>
> public function showImage(url:String,text:String){
>
> holder_mc.loadMovie(url);
> this.text=text;
> trace("TEXT has been set"+this.text);
> _delegate = EventDelegate.create(this, onHitDataGrid);
> datagrid.addEventListener("datagrid", _delegate);
>
>
> }
> public function onHitDataGrid(obj:Object){
> trace("TEXT has been set"+this.text);
> }
>
> }
>
>
>> 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
>
>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders