Skip to main content
This topic is closed to new replies. Start a new post to keep the conversation going.

4 replies

Ned Murphy
Legend
Feb 22, 2013 12:14 PM UTC

It depends on what code you are using to place things to begin with.  SHow that code.

Translate
Known Participant
Feb 22, 2013 1:47 PM UTC

placing all this clips into 1 movieclip and in 1 frame this script is use

and in that clip 5 different position clips arranged,

but every time swf loaded those clips are randomly place taht i want

stop();

function randomFrameAndStop(target_mc:MovieClip) {

    var rFrame:Number = Math.floor(Math.random()*5)+1;

    trace(rFrame);

    target_mc.gotoAndStop(rFrame);

}

randomFrameAndStop(this);

Translate
Ned Murphy
Legend
Feb 22, 2013 1:57 PM UTC

I do not see how that code has anything to do with placing the various images anywhere.  It only appears to be randomly picking a frame to go to.

If you do not have any code to place the images at this time, I suggest you devcelop code for that first, then see about asking for help making it place them randomly if you still cannot see how to do it.

Translate