Good to know, I haven't had time to get through all my testing. So what is the difference/benefits of subclassing Event as your own custom class and using DynamicEvent class?
--- In [email protected], "Matt Chotin" <[EMAIL PROTECTED]> wrote: > > I don't think the example is going to work since you're trying to > dispatch an anonymous object instead of an Event. Flex 2 requires an > Event to be dispatched. > > > > There is mx.events.DynamicEvent which is a subclass of Event that is > dynamic. The constructor does take the "bubbles" parameter so you can > do with it what you will. I don't know if any of the events that the > components dispatch are dynamic, I think probably not. > > > > Matt > > > > ________________________________ > > From: [email protected] [mailto:[EMAIL PROTECTED] On > Behalf Of JesterXL > Sent: Thursday, November 10, 2005 4:51 PM > To: [email protected] > Subject: Re: [flexcoders] Re: Dynamic Events (Flex2 Custom Events?) > > > > I still can't set bubbles = true, though... bleh.... > > ----- Original Message ----- > From: "Renaun Erickson" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Thursday, November 10, 2005 7:39 PM > Subject: [flexcoders] Re: Dynamic Events (Flex2 Custom Events?) > > > To add arbitrary properties ... > > Getting tired ;) > > Renaun > > --- In [email protected], "Renaun Erickson" <[EMAIL PROTECTED]> > wrote: > > > > FLEX 2: > > To added Arbitary properties to the Event object what you can do is > > create your custom Event class that extends the flash.events.Event > like: > > > > package org.nevis.cairngorm.samples.store.view.checkout { > > import flash.events.Event; > > > > public class ShippingCostChangeEvent extends Event { > > public var cost : Number; > > } > > } > > > > Then in the MXML you access it like: > > > > <mx:Metadata> > > [Event( name = "shippingCostChange", type = > > > "org.nevis.cairngorm.samples.store.view.checkout.ShippingCostChangeEvent > " > > )] > > </mx:Metadata> > > > > <mx:Button label="Continue" click="dispatchEvent( { type : > > "shippingCostChange", cost : cost} );" /> > > > > You could also instantiate your custom class first and pass that > > through the dispatchEvent. > > > > Not sure if this is what you were asking about. > > > > Renaun > > > > --- In [email protected], "Mark Wales" <[EMAIL PROTECTED]> wrote: > > > > > > > > > Has anyone used them? I've been a bit confused by several things: > > > > > > DynamicEvent is a subclass (according to the documentation) of > > > flash.events.Event but is actually found in mx.events. > > > > > > In addition, the documentation describes how you can add arbitrary > > > properties at runtime. However, experimenting with it, it does not > > > appear this works. > > > > > > Is this simply a function of it being an alpha, am I doing something > > > wrong, or is something else amiss?? > > > > > > -Mark > > > > > > > > > > > > > -- > 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 > > > > > > > > > -- > Flexcoders Mailing List > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt > Search Archives: > http://www.mail-archive.com/flexcoders%40yahoogroups.com > > > > > SPONSORED LINKS > > Web site design development > <http://groups.yahoo.com/gads?t=ms&k=Web+site+design+development&w1=Web+ > site+design+development&w2=Computer+software+development&w3=Software+des > ign+and+development&w4=Macromedia+flex&w5=Software+development+best+prac > tice&c=5&s=166&.sig=L-4QTvxB_quFDtMyhrQaHQ> > > Computer software development > <http://groups.yahoo.com/gads?t=ms&k=Computer+software+development&w1=We > b+site+design+development&w2=Computer+software+development&w3=Software+d > esign+and+development&w4=Macromedia+flex&w5=Software+development+best+pr > actice&c=5&s=166&.sig=lvQjSRfQDfWudJSe1lLjHw> > > Software design and development > <http://groups.yahoo.com/gads?t=ms&k=Software+design+and+development&w1= > Web+site+design+development&w2=Computer+software+development&w3=Software > +design+and+development&w4=Macromedia+flex&w5=Software+development+best+ > practice&c=5&s=166&.sig=1pMBCdo3DsJbuU9AEmO1oQ> > > Macromedia flex > <http://groups.yahoo.com/gads?t=ms&k=Macromedia+flex&w1=Web+site+design+ > development&w2=Computer+software+development&w3=Software+design+and+deve > lopment&w4=Macromedia+flex&w5=Software+development+best+practice&c=5&s=1 > 66&.sig=OO6nPIrz7_EpZI36cYzBjw> > > Software development best practice > <http://groups.yahoo.com/gads?t=ms&k=Software+development+best+practice& > w1=Web+site+design+development&w2=Computer+software+development&w3=Softw > are+design+and+development&w4=Macromedia+flex&w5=Software+development+be > st+practice&c=5&s=166&.sig=f89quyyulIDsnABLD6IXIw> > > > > > > ________________________________ > > YAHOO! GROUPS LINKS > > > > * Visit your group "flexcoders > <http://groups.yahoo.com/group/flexcoders> " on the web. > > * To unsubscribe from this group, send an email to: > [EMAIL PROTECTED] > <mailto:[EMAIL PROTECTED]> > > * Your use of Yahoo! Groups is subject to the Yahoo! Terms of > Service <http://docs.yahoo.com/info/terms/> . > > > > ________________________________ > ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/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/

