Take the quotes off.  You are assigning Boolean values in AS.  I'm a bit
surprised you didn't get a warning at compile time

 

contentObj.buttonMode=true
contentObj.useHandCursor=false
contentObj.selectable=false



________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of pdflibpilot
Sent: Thursday, May 24, 2007 1:51 PM
To: [email protected]
Subject: [flexcoders] buttonMode / selectable / useHandCursor - settings
not respected

 

Not sure if this is by design or a bug.

I have a Flex website with integrated content management feature. When
content is rendered to a list and the itemRenderer Text component is
set to 
buttonMode="true"
useHandCursor="false"
selectable="false"

it works just fine. 

However building the Text components on a multicolumn layout
dynamically using addChild method the settings are not respected at all.

var contentObj:Text = new Text();
contentObj.htmlText = cContentLive;
contentObj.width = col1.width
contentObj.buttonMode="true"
contentObj.name ="contentLive"+i
contentObj.useHandCursor="false"
contentObj.addEventListener(MouseEvent.CLICK,goto)
contentObj.selectable="false"

VB.addChild(contentObj)

Am I missing something here ? [ I tried using
setStyle("useHandCursor","false") with same results.]

 

Reply via email to