________________________________
> From: John Polk <[email protected]>
> To: Flash List <[email protected]>
> Sent: Sunday, August 14, 2011 12:04 PM
> Subject: [Flashcoders] Custom Event Question
I have figured out how to do this. It requires more than just dispatching a
custom event. It requires a getter as well. I took the wrong approach initially.
John
> Hi;
>
> I have this code in the class dispatching the custom event:
>
> private function progressHandler(e:LoaderEvent):void
> {
> dispatchEvent(new Event(e.target.progress));
> }
>
>
>(This is from a greensock loaderEvent.)
>
>I have this pseudo-code from the class listening for the event:
>
> var re:RegExp = new RegExp();
> re = /\d\.\d*/
> // re.exec(str)
> mySlides.addEventListener("", function() {trace("progress: ")});
>
>
> What I am trying to achieve is to use the regex "re" to evaluate what I'm
> listening for (that which will be in the quotes ("")) and then I'd like to
> use > that number in the trace function. How do I do this?
> TIA,
> John
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders