Hi Jeremy,
I think without all Flex initialization code (SystemManager, Application, Styles etc) this is not going to work !
I am saying this based on my look at the generated AS file for a simple Flex MXML app. It generates lot of code !
It is easy to insert components into a minimal Flex App through AS but it will be very difficult to use a Flex component in a stand alone AS app.
-Sreenivas
On 11/30/05, Jeremy Tooley <[EMAIL PROTECTED]> wrote:
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/
--
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
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

