jwerre
February 12th, 2009, 10:35 PM
I've placed a movieClip at a random point on the stage, now I'm trying to move it to a random point off the stage. It doesn't matter which direction (up, down,left, right), just off the stage somewhere. Has anyone done this?
Thanks
ayumilove
February 13th, 2009, 12:02 AM
let's say your movieclip on stage has an instance name of ayuButton.
so to move it,
ayuButton.x = stage.stageWidth + ayuButton.width;
ayuButton.y = stage.stageHeight + ayuButton.height;
//or you could just hide it
ayuButton.visible = false;
Powered by vBulletin® Version 4.1.10 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.