Hi 
i've got a knowledge issue.
what does this flex 1.5 code translate to
Flex 1.5 
--------
function startUp():Void
{
 this.addEventListener("click", this);
 this.addEventListener("myEvent", this.parentDocument);
 
 dispatchEvent({type:"myEvent", val1:"hello"});
}

function click(event):Void
{
  //do something
}

flex 2 ??
---------
import flash.events.Event; //do i have to add this all the time

private function startUp():Void
{
 this.addEventListener(MouseEvent.CLICK, this);
 this.addEventListener("myEvent", this.parentDocument);

 dispatchEvent({type:"myEvent", val1:"hello"});//????
}

private function click(event:Event):Void
{
 //do something
}








------------------------ Yahoo! Groups Sponsor --------------------~--> 
1.2 million kids a year are victims of human trafficking. Stop slavery.
http://us.click.yahoo.com/.QUssC/izNLAA/TtwFAA/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/
 


Reply via email to