A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: Random Movieclips onto the stage

Threaded View

  1. #2
    Senior Member
    Join Date
    Jun 2008
    Posts
    549
    You need to set random numbers to the the x and y properties. eg

    yourMovieClip.x = Math.random() * stage.stageWidth;
    yourMovieClip.y = Math.random() * stage.stageHeight;
    Last edited by ilike2; 01-31-2013 at 08:34 AM. Reason: typo

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center