Can you suggest a type?

Cheers,

Phil

Tracy Spratt wrote:

Mx:Object is not stronlgy engough typed to support binding.  The docs say to not use it.

 

If you can cast the Object to a more specific type, the wearning should go away,

 

Tracy

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Phil Marston
Sent: Tuesday, June 13, 2006 11:56 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 1.5 to Flex 2 migration - binding problem

 

nobody any ideas? I'm begining to wonder if my dataObject needs to be
something other than Object - the consol says I'm trying to bind to a
class that is not an 'IEventDispatcher' - can anyone suggest a better class?

Cheers,

Phil

Phil Marston wrote:
> Hi
>
> I have a custom mxml component "RestaurantDetail.mxml" that is used in
> my main application "Restaurant.mxml" - the component has a
> dataObject:Object and some mx:label who's text attribute is bound to the
> dataObject. When the RestaurantDetail component is declared in the
> Restaurant app the dataObject gets bound to a dataGrid
> e.g.<RestaurantDetail dataObject="{dg.selectedItem}" />
> This was originally a Flex 1.5 app that I am trying to rewrite in Flex
> 2.0, but Flex Builder is complaining that "Data binding will not be able
> to detect assignments to 'dataObject'"
>
> Does anyone know how to get this to work in Flex 2.0
>
> For those that haven't already spotted it, I'm trying to follow
> Christophe Coenraets' Restaurant Browser Tutorial found here
> http://coenraets.com/tutorials/restaurant/index.jsp I'm stuck at "Lab 7"
>
> Cheers,
>
> Phil
>
>

--
__________________________________________________________
Phil Marston
Learning Technologist
Learning Technology Unit
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED]ac.uk Tel: +44(0)1224 273329 / +44(0)7798 723660
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
__________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]ac.uk
or call 0800 027 1495


-- 
______________________________________________________________ 
Phil Marston 
Learning Technologist
Learning Technology Unit 
Edward Wright G33, University of Aberdeen, Aberdeen, AB24 3QY, UK
[EMAIL PROTECTED] Tel: +44(0)1224 273329 / +44(0)7798 723660 
http://www.abdn.ac.uk/diss/ltu/pmarston/
http://www.abdn.ac.uk/diss/ltu/
______________________________________________________________

The University of Aberdeen Open Day 29th August 2006
Booking is essential
www.abdn.ac.uk/openday
email [EMAIL PROTECTED]
or call 0800 027 1495
__._,_.___

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





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to