Use classes and getters and setters. Getting into details with this
would take a while, but look it up. It's far more efficient than a
watch.

2008/10/27 Samuel Adu <[EMAIL PROTECTED]>:
> Hey guys,
> I need a little help here... I'm working on porting some existing AS2 code
> to AS3. A porting of the AS2 class watched _root variables which were
> updated by javascript (using setVariable) - When a change occurred the
> callback method would change instance properties, fire events etc etc...
>
> Now - Object.watch is not around in AS3 (I understand that the overheads for
> utilising this method was pretty awful), and my flashVars are contained
> within the Stage LoaderInfo obect (LoaderInfo.parameters). Does anybody have
> any idea how I can monitor these variables for any changes now? Looking at
> the api doc, I can't see any evidence of a LoaderInfo instance firing an
> event of any use to me...
>
> Any ideas??
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
The Random Lines
My online portfolio
www.therandomlines.com
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to