Share Posted August 3, 2008 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: on(click){ var a:MovieClip = _root.attachMovie("pic_mc", "test_mc", this.getNextHighestDepth(), {_x:25, _y:25}); } Link to comment Share on other sites More sharing options...
Share Posted August 3, 2008 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 More sharing options...
Author Share Posted August 3, 2008 Thanks, thats awesome! works great Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now