[
https://issues.apache.org/jira/browse/FLEX-34844?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14548109#comment-14548109
]
Peter Ent commented on FLEX-34844:
----------------------------------
The FlexJS "Button" is really the base class for other types of buttons. The
"TextButton" class extends Button and provides border and background. In the
FlexJS pay-as-you-go model, a Button is a blank space and provides the
foundation; if you want border and label and background, use TextButton.
> Simple Button border does not appear in SWF
> -------------------------------------------
>
> Key: FLEX-34844
> URL: https://issues.apache.org/jira/browse/FLEX-34844
> Project: Apache Flex
> Issue Type: Bug
> Components: FlexJS
> Affects Versions: Apache FlexJS 0.0.3
> Environment: Flash SWF - no grey border, but click events occur
> HTML - works
> Reporter: Michael Schmalle
> Assignee: Peter Ent
>
> The Button for SWF does not show it's border, the click events still occur.
> HTML shows border and fires click event.
> {code}
> <js:ViewBase xmlns:fx="http://ns.adobe.com/mxml/2009"
> xmlns:js="library://ns.apache.org/flexjs/basic">
> <fx:Script><![CDATA[
> private function onClick():void
> {
> trace("Clicked " + myButton.name);
> }
> ]]></fx:Script>
>
> <js:beads>
> <js:VerticalLayout/>
> </js:beads>
> <js:Button id="myButton" click="onClick()" width="100" height="40"/>
> </js:ViewBase>
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)