Hi Guys,
Just had a query. How good will it be to migrate AS2 as a short cut ?
dispatchEvent({type:'abc',a:'1',b:'2'})
to
dispatchEvent(new MyCustEvtClass ({type:'abc',a:'1',b:'2'}))
package compo
{
import flash.events.Event;
dynamic public class MyCustEvtClass extends Event
{
public function MyCustEvtClass(...arguments){
super(arguments[0]);
for(var k:Number=1;k<arguments.length;k++){
this[k] = arguments[k]
}
}
override public function clone():Event{
return new MyCustEvtClass(arguments)
}
}
}
Thanking you,
Rafique Gilani
Macromedia Certified Developer Flash MX 2004.
Macromedia Certified Instructor Flex2, Flash Lite 1.1, Flash Media Server
2.
Freelancer & Consultant.
Tel: +919821333904
http://www.rafique-gilani.com
--------------------------------------------------------------------
mail2web - Check your email from the web at
http://mail2web.com/ .
------------------------ Yahoo! Groups Sponsor --------------------~-->
Yahoo! Groups gets a make over. See the new email design.
http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
--------------------------------------------------------------------~->
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/