Hi,

What about adding;

[Bindable]
public function set someValue(value:Number):void
{
   trace("value changed", value)
   // do something
}


I don't know if that is what you are looking for..

Peace, Mike


On 6/13/06, Claudia Barnal <[EMAIL PROTECTED]> wrote:

Hi Michael, thanks for your reply.



> So it's not subclassed from the Flex framework?
Exactly, it is a non visual AS component.

Example:

<!-- In the MXML -->
<MyComponent someValue="10" >

// In the AS
class MyComponent{

public var someValue:Number;

public function MyComponent(){

trace(someValue); // I am not getting the value set in MXML

}
}

I am using the mx.binding.utils.ChangeWatcher to check when the var
receives the value from MXML, but I don't think it is the way to go,
but it is the only solution I could find :|

Any ideas?

Thanks.




--
What goes up, does come down. __._,_.___

--
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