[
https://issues.apache.org/jira/browse/FLEX-35049?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15814623#comment-15814623
]
Devsena commented on FLEX-35049:
--------------------------------
I have created a new bead *PNDisabledInputBead* which suppose to work in both
SWF and HTML run. I'm attaching the file herewith for yours review.
Following is a usage of the new _bead_ class:
{code}
// in MXML body
<js:TextInput id="myTI2" text="Hello FlexJS!">
<js:beads>
<js:PNDisabledInputBead id="disabledBead"/>
</js:beads>
</js:TextInput>
<js:TextButton text="Enable/Disable input field"
click="textbutton1_clickHandler(event)"/>
...
// Changing the enable/disable state by script
protected function
textbutton1_clickHandler(event:org.apache.flex.events.MouseEvent):void
{
disabledBead.enabled = !disabledBead.enabled;
}
...
// You can also directly declare the state value to the bead in following way
<js:beads>
<js:PNDisabledInputBead id="disabledBead" enabled="false"/>
</js:beads>
{code}
Please, check.
> TextButton 'enabled=false' never works in HTML
> ----------------------------------------------
>
> Key: FLEX-35049
> URL: https://issues.apache.org/jira/browse/FLEX-35049
> Project: Apache Flex
> Issue Type: Bug
> Components: FlexJS
> Affects Versions: Apache FlexJS 0.5.0
> Reporter: Devsena
> Labels: WrappedSprite
> Attachments: PNDisabledInputBead.as
>
>
> <js:ToggleTextButton/> or <js:TextButton/> 'enabled' property never works
> when output as HTML. Buttons are anyway clickable even when 'enabled=false'.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)