Are you sure that the service has returned before you execute the AS version?  Maybe you’re executing too early.

 

Matt

 


From: [email protected] [mailto:[email protected]] On Behalf Of wayneposner
Sent: Monday, July 24, 2006 3:03 PM
To: [email protected]
Subject: [flexcoders] Photoviewer example--why no access to class variables?

 

Howdy all...

I'm hoping someone can clear up a little confusion of mine:

In the photoviewer example that comes with Flex 2, why can you only
get to the data of the instatiated PhotoService class via <mx> tags,
but when you try to access any of the object via actionscript they
always show up as null?

For example

<mx:Binding source="service.galleries.getItemAt(0)"
destination="gallery" />

works fine, but if you tried to do:

var o:Object=service.galleries.getItemAt(0),

o would be null (provided there were no cast exceptions).

Thanks!
Wayne

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





YAHOO! GROUPS LINKS




__,_._,___

Reply via email to