[flexcoders] Flex component kit problem

2007-09-17 Thread helix206
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;
}



RE: [SPAM] [flexcoders] Flex component kit problem

2007-09-17 Thread Paul Steven
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;
}

 



RE: [flexcoders] Flex component kit problem

2007-09-17 Thread Alex Harui
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 :

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

 



[flexcoders] Flex component kit problem

2007-05-17 Thread helix206
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.