RE: [flexcoders] Flex component kit problem
In Flex, components are constructed, then their properties are set. I would expect you to have the same problem in Flash if you did Var foo = new MyComp() Foo.label = "bar" From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helix206 Sent: Monday, September 17, 2007 7:27 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex component kit problem I have created a SWC component with Flash, simple one. I have a variable "label1" that i set from Flex when defining a component : Variable label1 actualy changes but the textField in Flash doesent show it, anyone knows why? This is part of AS code from Flash CS3. public class MyComp extends UIMovieClip { public var label1:String ="" ; public function MyComp():void{ setLabel(); } public function setLabel():void{ labeltext.text = label1; }
RE: [SPAM] [flexcoders] Flex component kit problem
Just a guess but do you need to make your label variable bindable? [Bindable] public var label1:String ="" ; From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of helix206 Sent: 17 September 2007 15:27 To: flexcoders@yahoogroups.com Subject: [SPAM] [flexcoders] Flex component kit problem I have created a SWC component with Flash, simple one. I have a variable "label1" that i set from Flex when defining a component : Variable label1 actualy changes but the textField in Flash doesent show it, anyone knows why? This is part of AS code from Flash CS3. public class MyComp extends UIMovieClip { public var label1:String ="" ; public function MyComp():void{ setLabel(); } public function setLabel():void{ labeltext.text = label1; }
[flexcoders] Flex component kit problem
I have created a SWC component with Flash, simple one. I have a variable "label1" that i set from Flex when defining a component : Variable label1 actualy changes but the textField in Flash doesent show it, anyone knows why? This is part of AS code from Flash CS3. public class MyComp extends UIMovieClip { public var label1:String ="" ; public function MyComp():void{ setLabel(); } public function setLabel():void{ labeltext.text = label1; }
[flexcoders] Flex component kit problem
Ok, i have managed to create a small component in flash and load it in flex, work great, tho i have one problem. As the class i created extends uimovieclip, flex sees it as movieclip, but i need the property's of a button. Actualy i need autoRepeat property of a button. Does anyone know how to get flex to see my component as a button? thx.