help please: new at AS 2,
How do I assign a return from a WS to a AS variable. Example here is what I have so far and its erroring out. 1 Error found. Error /gvs/gvsStartB.mxml:21 This statement is not permitted in a class definition. <mx:WebService wsdl="http://blahblah/_cfc/gvs_reports.cfc?wsdl" id="gvsJob"> <mx:operation name="ReportJob" /> </mx:WebService> <mx:Script> <![CDATA[ var JobRunning:Object = ReportJob.DataAvailable.result; ]]> //Checks to see if database Jobs are running, if they are not it will //say available = yes, if they are it will say available = no if (JobRunning == "No") { someactions } </mx:Script> 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/

