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 :

<local:MyComp id="Mycmp" label1="Testing" />

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

 

Reply via email to