[flexcoders] Newbie question: Custom Components and Custom Events

2009-05-04 Thread Alan Rother
Hey All, I'm playing around with a super simple demo Simeon Bateman posted on his blog (http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/)http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/ It's just a little tool designed to teach basic MVC / OO principles to newbs like me.

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

2009-05-04 Thread Tracy Spratt
question: Custom Components and Custom Events Hey All, I'm playing around with a super simple demo Simeon Bateman posted on his blog (http://blog. http://blog.simb.net/2009/05/01/flex-101-back-to-the-basics/ simb.net/2009/05/01/flex-101-back-to-the-basics/) It's just a little tool

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

2009-05-04 Thread Alan Rother
Did you import UserEvents? Yep... ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:local=* xmlns:view=view.* mx:Script ![CDATA[ import view.UserForm; import events.UserEvents; import mx.collections.ArrayCollection; import

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

2009-05-04 Thread Sam Lai
Looks like the USER_SUBMIT variable or constant in your UserEvents class is not static, but you're accessing it in a static way. They should be static, so add they keyword static before the var keyword when you declare USER_SUBMIT and it should all work. On 5/5/09, Alan Rother

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

2009-05-04 Thread Tracy Spratt
Sent: Monday, May 04, 2009 7:11 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Newbie question: Custom Components and Custom Events Looks like the USER_SUBMIT variable or constant in your UserEvents class is not static, but you're accessing it in a static way. They should

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

2009-05-04 Thread Alan Rother
This is the entire UserEvents class as the example showed me how to build it. I'm guessing that the declaration for my event is supposed to be in here, but in the demo we actually created it in the component we were loading. How and where do I add it to the UserEvents class and why does it work

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

2009-05-04 Thread Tracy Spratt
: [flexcoders] Newbie question: Custom Components and Custom Events This is the entire UserEvents class as the example showed me how to build it. I'm guessing that the declaration for my event is supposed to be in here, but in the demo we actually created it in the component we were loading. How