[flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-06 Thread Juan Carlos M.
I had to rewrite my mxml component as an actionscript component... although there are some warning: unable to bind to property 'width' on class 'Object' (class is not an IEventDispatcher) the component is shown on the screen... but there is a new issue... this piece of code that worked in the

RE: [flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-06 Thread Alex Harui
That probably means that some child object isn't created yet, although Binding usually ignores such errors. Might you be calling initialize() out of order? There is a recipe for creating components that we recommend you follow. It is written up in the documentation, but also recently in Flex

[flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-06 Thread Juan Carlos M.
finally it worked using BindingUtils.bindProperty and rewriting some code related to [Bindable] get/set methods. It seems that the main error its due to this kind of binding: text={iMap.map.selectedLayer.label} In that case databinding is not handling gracefully the case when iMap is null.

[flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-05 Thread Juan Carlos M.
but the problem is that component doesn´t appear on screen... ...it seems that it is unable to add it's child components... (measure method is called in an infinite loop) --- In flexcoders@yahoogroups.com, Vijay Anand Mareddy [EMAIL PROTECTED] wrote: dont worry its only a warning. You can

[flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-05 Thread florian.salihovic
Code? --- In flexcoders@yahoogroups.com, Juan Carlos M. [EMAIL PROTECTED] wrote: but the problem is that component doesn´t appear on screen... ...it seems that it is unable to add it's child components... (measure method is called in an infinite loop) --- In flexcoders@yahoogroups.com,

[flexcoders] Re: unable to bind to property 'width' on class 'Object'

2008-11-04 Thread Vijay Anand Mareddy
dont worry its only a warning. You can get ride of it by typecasting your Object into an XML like this: { XML(object).width } --- In flexcoders@yahoogroups.com, Juan Carlos M. [EMAIL PROTECTED] wrote: Hi... may this is weird I´ve extended a Canvas component using mxml. When I use that