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