I am trying to assign a value to a component property in my
actionscript.
 
If the component is NOT in a viewstack, everything works fine.
 
If the component IS in the viewstack, all I get are null object
reference errors. I also get the warning "unable to bind to property
'month' on class 'XML' (class is not an IEventDispatcher).  The line it
blows up on is "bucketComponent.month_number = "9";
 
I have another component in the same program IN the viewstack that does
not have this problem. And I'm doing essentially the same thing in the
component that works.  
 
In the component that does not work I do the following:
 
[Bindable]
public var month_number:String = '6';   // this is just a default
setting
private var xmlService:HTTPService new HTTPService ();
 
private function loadXML():void
{ 
   xmlSerivce.url = "http//longurl/generateXM.php"
   xmlService.resultFormat = "e4X"
   xmlService.addEventListener(ResultEvent.RESULT, resultHandler);
   xmlService.send();
 
}
 
private function resultHandler(event:ResultEvent):void
{
    linechart.dataProvider = event.result.month[month_number].day;
}
 
 
What am I not understanding here?
 
brad

Reply via email to