Hi Jeremy,
I understood what you are trying to do. Here is a conversation snippet discussing the same issue.
-----
It turns out that if you want add components to the stage, you have to set up our infrastructure first. On the other hand, if you just want to add Sprites and other non-framework DisplayObjects, it is pretty simple.
Basically, you need to start with a SystemManager, specify an Application, then set up styles used by the components before adding components.
This is the "basic" button example.
-----Original Message-----
Subject: Example of Adding a component via ActionScript?
Anyone have an example of adding a Component (say a button) to the stage
via ActionScript?
I am specifically looking for an example in an ActionScript only project.
Lots of people seem to be trying to do this, and are getting tripped up
on it.
----
Basically, you need to start with a SystemManager, specify an Application, then set up styles used by the components before adding components.
This is the "basic" button example.
-----Original Message-----
Subject: Example of Adding a component via ActionScript?
Anyone have an example of adding a Component (say a button) to the stage
via ActionScript?
I am specifically looking for an example in an ActionScript only project.
Lots of people seem to be trying to do this, and are getting tripped up
on it.
----
If you are interested I can send you the AS file. (It has nearly 600 lines as it has not been trimmed down )
-Sreenivas
On 11/30/05, Jeremy Tooley <[EMAIL PROTECTED]> wrote:
Hi Sreenivas
I should have been more clear. I am using flex 2.0 to comile an Actionscript project..... and using the as button components
Sreenivas R wrote:
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
Web site design development | Computer software development | Software design and development |
Macromedia flex | Software development best practice |
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.