I think that you can add a SimpleButton to a UIComponent and then add 
that UIComponent to the Application.  But you should know that a 
SimpleButton has no skin and unless you define it's states it will not 
appear on the stage.


[EMAIL PROTECTED] wrote:
> Are you possibly saying that I can't add a SimpleButton directly to an 
> Application ?
>
>
>
>
>
> <?xml version="1.0"
>
> ?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml 
> <http://www.adobe.com/2006/mxml>
> <http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml>>"
> creationComplete="onComplete()">
> <mx:Script>
> <![CDATA[
>
> import flash.display.SimpleButton
> public function onComplete():void
> {
> var newButton:SimpleButton = new SimpleButton();
> // add child here or whatever it is you have to do to make the Simple 
> Button show up in the application
> .
> }
>
>   


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/flexcoders/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 

Reply via email to