The ethos of AS3 is that instead of watching something, you indeed setup
events that are fired when they change. So instead you just do an
.addEventListener() to the object created.
Each object type has particular events it can fire. A LoaderInfo class
dispatches complete, httpStatus, init, ioError, open, progress, and unload
events. You can find them on the reference. Remember that the data changes
once it's loaded ("complete"), so that's what you want to watch even if
there's no "change" event.
Zeh
On Mon, Oct 27, 2008 at 9:53 AM, Samuel Adu <[EMAIL PROTECTED]> wrote:
> 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
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders