[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
//File: UserEvents.as package events { import flash.events.Event; import vo.User; public class UserEvents extends Event { public static const USER_SUBMIT:String = userSubmit; public var user:User; public function UserEvents(type:String, bubbles:Boolean=false, cancelable:Boolean=false) {

Re: [flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
A!!! Bingo, thanks everyone... Coming from the a very linear programming background the OO stuff is getting me... =] -- Alan Rother Adobe Certified Advanced ColdFusion MX 7 Developer Manager, Phoenix Cold Fusion User Group, AZCFUG.org

[flexcoders] Re: Newbie question: Custom Components and Custom Events

2009-05-04 Thread Tim Hoff
Yeah, as Tracy says, the constant only helps to avoid mis-spelling, by having the compiler help out. You could have done this as well: win.addEventListener(userSubmit, onSubmit); -TH --- In flexcoders@yahoogroups.com, Alan Rother alan.rot...@... wrote: A!!! Bingo, thanks everyone...