[flexcoders] Re: getting the xml data from a dispatched event

2009-07-05 Thread Jason B
It wont accept your suggestions Severity and DescriptionPathResourceLocation Creation Time Id 1120: Access of undefined property Panelcreatemealitem. /srcMain.mxml line 1051246801954900 468962 --- In flexcoders@yahoogroups.com, Tim Hoff

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-05 Thread Tim Hoff
import com.nutrition.Panelcreatemealitem; -TH --- In flexcoders@yahoogroups.com, Jason B nos...@... wrote: It wont accept your suggestions Severity and Description Path Resource Location Creation Time Id 1120: Access of undefined property Panelcreatemealitem. /src Main.mxml line 105

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-04 Thread Jason B
Heres my three mxml files two of which are under the com/ folder and get imported...hope that helps ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical creationComplete=init() styleName=plain xmlns:nutrition=com.nutrition.*

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-04 Thread Tim Hoff
Wow, I've got to say; What a mess. However, you can get it to work with the following changes: [Bindable] private var customMeals:XMLListCollection = new XMLListCollection(); // addToMeal event Handler private function addToMealHandler(event:Event):void {

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-03 Thread Jason B
any Idea? --- In flexcoders@yahoogroups.com, Jason B nos...@... wrote: yes heres the results Main0.vsMain.HBox8.VBox968.vsCreateMeals.VBox971.pnlCreateBreakfast.coverflow.Panelcreatemealitem1006 How can I access the object data, it's in a file thats under the folder

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-03 Thread Tim Hoff
The zip file doesn't contain any code in the src folder. Kind of hard to see what's happening without it. -TH --- In flexcoders@yahoogroups.com, Jason B nos...@... wrote: any Idea? --- In flexcoders@yahoogroups.com, Jason B nospam@ wrote: yes heres the results

Re: [flexcoders] Re: getting the xml data from a dispatched event

2009-07-03 Thread Sam Lai
It seems like wherever this code is - [Bindable] private var customMeals:ArrayCollection = new ArrayCollection; //throws error on this line customMeals.addItem((event.target as mealitem).mealDetails); event.target is actually the panel containing the 'create meal item' button, as opposed to the

[flexcoders] Re: getting the xml data from a dispatched event

2009-07-02 Thread Jason B
yes heres the results Main0.vsMain.HBox8.VBox968.vsCreateMeals.VBox971.pnlCreateBreakfast.coverflow.Panelcreatemealitem1006 How can I access the object data, it's in a file thats under the folder /com/nutrition/file.mxml --- In flexcoders@yahoogroups.com, Sam Lai samuel@... wrote: I'd