[Flashcoders] Re: Usage of [Event....]
I think i found the answer: - The last tag I want to mention is the event tag. This is more of a Flex-compatibility tag. If you try and use an event name in MXML without declaring the event with an event tag, the MXML compiler will throw an error. So here's how to avoid that: http://www.boostworthy.com/blog/?p=157# ActionScript: 1. // In this sample, the 'AnimationEvent.START' event is being declared. The 'START' constant's value is 'animation start'. 2. [Event(name=animation start, type= com.boostworthy.animation.events.AnimationEvent)] As with the frame and SWF tags, event tags should be placed after imports, but before the class definition. - source: http://www.boostworthy.com/blog/?p=157 On Mon, Jun 2, 2008 at 2:28 PM, Helmut Granda [EMAIL PROTECTED] wrote: Could some one point me to the docs or blogs that explain the usage or benefits of the following lines: [Event(name=progress, type=flash.events.ProgressEvent.PROGRESS)] [Event(name=complete, type=flash.events.ProgressEvent.COMPLETE)] [Event(name=open, type=flash.events.Event.OPEN)] As always I tried to do a Google search but I couldnt find accurate information. TIA... -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Usage of [Event....]
Yes, it's pretty well explained in the Flex documentation: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_09.html Paul - Original Message - From: Helmut Granda [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, June 02, 2008 8:30 PM Subject: [Flashcoders] Re: Usage of [Event] I think i found the answer: - The last tag I want to mention is the event tag. This is more of a Flex-compatibility tag. If you try and use an event name in MXML without declaring the event with an event tag, the MXML compiler will throw an error. So here's how to avoid that: http://www.boostworthy.com/blog/?p=157# ActionScript: 1. // In this sample, the 'AnimationEvent.START' event is being declared. The 'START' constant's value is 'animation start'. 2. [Event(name=animation start, type= com.boostworthy.animation.events.AnimationEvent)] As with the frame and SWF tags, event tags should be placed after imports, but before the class definition. - source: http://www.boostworthy.com/blog/?p=157 On Mon, Jun 2, 2008 at 2:28 PM, Helmut Granda [EMAIL PROTECTED] wrote: Could some one point me to the docs or blogs that explain the usage or benefits of the following lines: [Event(name=progress, type=flash.events.ProgressEvent.PROGRESS)] [Event(name=complete, type=flash.events.ProgressEvent.COMPLETE)] [Event(name=open, type=flash.events.Event.OPEN)] As always I tried to do a Google search but I couldnt find accurate information. TIA... -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Usage of [Event....]
Yeah, I guess I didnt think to search in the Flex Docs since I am doing development for Flash. Although sometimes when I try to find answers to my questions the docs directme to Flex/Air Docs. Thanks! On Mon, Jun 2, 2008 at 3:05 PM, Paul Andrews [EMAIL PROTECTED] wrote: Yes, it's pretty well explained in the Flex documentation: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_09.html Paul - Original Message - From: Helmut Granda [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, June 02, 2008 8:30 PM Subject: [Flashcoders] Re: Usage of [Event] I think i found the answer: - The last tag I want to mention is the event tag. This is more of a Flex-compatibility tag. If you try and use an event name in MXML without declaring the event with an event tag, the MXML compiler will throw an error. So here's how to avoid that: http://www.boostworthy.com/blog/?p=157# ActionScript: 1. // In this sample, the 'AnimationEvent.START' event is being declared. The 'START' constant's value is 'animation start'. 2. [Event(name=animation start, type= com.boostworthy.animation.events.AnimationEvent)] As with the frame and SWF tags, event tags should be placed after imports, but before the class definition. - source: http://www.boostworthy.com/blog/?p=157 On Mon, Jun 2, 2008 at 2:28 PM, Helmut Granda [EMAIL PROTECTED] wrote: Could some one point me to the docs or blogs that explain the usage or benefits of the following lines: [Event(name=progress, type=flash.events.ProgressEvent.PROGRESS)] [Event(name=complete, type=flash.events.ProgressEvent.COMPLETE)] [Event(name=open, type=flash.events.Event.OPEN)] As always I tried to do a Google search but I couldnt find accurate information. TIA... -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Usage of [Event....]
Can you pass custom properties with this kind of event handling? On Mon, Jun 2, 2008 at 3:37 PM, Helmut Granda [EMAIL PROTECTED] wrote: Yeah, I guess I didnt think to search in the Flex Docs since I am doing development for Flash. Although sometimes when I try to find answers to my questions the docs directme to Flex/Air Docs. Thanks! On Mon, Jun 2, 2008 at 3:05 PM, Paul Andrews [EMAIL PROTECTED] wrote: Yes, it's pretty well explained in the Flex documentation: http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=metadata_141_09.html Paul - Original Message - From: Helmut Granda [EMAIL PROTECTED] To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Monday, June 02, 2008 8:30 PM Subject: [Flashcoders] Re: Usage of [Event] I think i found the answer: - The last tag I want to mention is the event tag. This is more of a Flex-compatibility tag. If you try and use an event name in MXML without declaring the event with an event tag, the MXML compiler will throw an error. So here's how to avoid that: http://www.boostworthy.com/blog/?p=157# ActionScript: 1. // In this sample, the 'AnimationEvent.START' event is being declared. The 'START' constant's value is 'animation start'. 2. [Event(name=animation start, type= com.boostworthy.animation.events.AnimationEvent)] As with the frame and SWF tags, event tags should be placed after imports, but before the class definition. - source: http://www.boostworthy.com/blog/?p=157 On Mon, Jun 2, 2008 at 2:28 PM, Helmut Granda [EMAIL PROTECTED] wrote: Could some one point me to the docs or blogs that explain the usage or benefits of the following lines: [Event(name=progress, type=flash.events.ProgressEvent.PROGRESS)] [Event(name=complete, type=flash.events.ProgressEvent.COMPLETE)] [Event(name=open, type=flash.events.Event.OPEN)] As always I tried to do a Google search but I couldnt find accurate information. TIA... -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders -- ...helmut -- ...helmut ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
Re: [Flashcoders] Re: Usage of [Event....]
On Jun 2, 2008, at 4:38 PM, Helmut Granda wrote: Can you pass custom properties with this kind of event handling? All that this notation allows you to do is to define the event (as a string) and it's handler (the event class handling the event). It doesn't have anything to do with any properties or custom parameters for the instance of the event type (again, it's just the definition). You still have to dispatch the event manually, so if you want to pass your own properties, just set up your custom event class to handle those properties good luck, jon ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
RE: [Flashcoders] Re: Usage of [Event....]
Can you pass custom properties with this kind of event handling? Yes, but you have to write a custom subclass of Event to do this. All the metadata does in your ActionScript class is let you reference that event as an attribute within the MXML you use to invoke that class (or as a property within the ActionScript you use to invoke that class). Dave Watts, CTO, Fig Leaf Software http://www.figleaf.com/ Fig Leaf Software provides the highest caliber vendor-authorized instruction at our training centers in Washington DC, Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location. Visit http://training.figleaf.com/ for more information! ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders