Hi everyone:

I have a problem with this class, so I hope you can Help me with it.
This is:
In Devuelve() method, on the _root.ventana_mc.onEnterFrame event, when I
Say this.* it refeers to the Instance that Event cames from but instead
it assumes , this refeers to MovieClip instead of my class Object.

Any help could be good.

Thanks

//----------------------------------------------------------------------
---
class AA
{
        var a:Number = new Number;
        function AA(numero:Number)
        {
                a = numero;
        }
        
        function Devuelve(){            
                _root.createEmptyMovieClip("ventana_mc",
_root.getNextHighestDepth());
                _root.ventana_mc.beginFill(0x33ccff);
                _root.ventana_mc.moveTo(0, 0);
                _root.ventana_mc.lineTo(100, 0);
                _root.ventana_mc.lineTo(100, 100);
                _root.ventana_mc.lineTo(0, 100);
                _root.ventana_mc.lineTo(0, 0);
                _root.ventana_mc.endFill();     
                _root.ventana_mc.createTextField("miCaja", 1,
_root.ventana_mc._x, _root.ventana_mc._y , 0, 0);
                _root.ventana_mc.miCaja.selectable = true;
                _root.ventana_mc.miCaja.border = true;
                _root.ventana_mc.miCaja.autoSize = true;        
                _root.ventana_mc.miCaja.text = String(a++) ;
                
                _root.ventana_mc.onEnterFrame = function() {
                        this.Devuelve();
                        trace(String(this.a));
                        }
        }
}

//----------------------------------------------------------------------
---
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to