Jump to content
Search Community

Adding scalable objects (Text, MC) [SOLVED]

Roland test
Moderator Tag

Recommended Posts

You can delete objects on the stage with the delete key...

but is there a way to add new objects on the stage?

I was working with the AS2 version - I am not familiar with AS3 yet.


I tried to attach a new movieclip with a button but it messes it up:

var a:MovieClip = _root.attachMovie("pic_mc", "test_mc", this.getNextHighestDepth(), {_x:25, _y:25});

Link to comment
Share on other sites

Sure, you can add hew MovieClips dynamically. Just don't forget to add them to the TransformManager instance, not just the stage. Also, be SURE you wait until the new MovieClip has FULLY loaded and instantiated, otherwise TransformManager will not be able to measure it correctly. Maybe even wait a few milliseconds after the onLoadInit is called from your MovieClipLoader just to be sure. Use the addItem() to add it to TransformManager.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...