k this question is a bit weird as I thought of it and would never use a 
button component unless I was using Flex, but I was playing around with 
AS.3 and tried to get a button component to show... and it just wont. 
Now I know I will be using Flex for the components from now on........ 
but this is bugging me because it wont show so I have to get it to work

Any ideas.. Here is the code I am trying.

package {
    import flash.display.MovieClip;
    import mx.controls.Button;
    public class testButton extends MovieClip {
        private var myButton:Button;
        public function testButton() {
            myButton=new Button();
            myButton.label="Funky";
            myButton.x=100;
            myButton.y=50;
            addChild(myButton);

        }
    }
}

Thanks
Jeremy





------------------------ Yahoo! Groups Sponsor --------------------~--> 
Most low income households are not online. Help bridge the digital divide today!
http://us.click.yahoo.com/I258zB/QnQLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

--
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/

<*> 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