Forum Topic: attachMovie help

(182 views • 1 reply)

This topic is 1 page long.

<< < > >>
Questioning

ApeLord

Reply To Post Reply & Quote

Posted at: 9/2/06 01:12 AM

ApeLord EVIL LEVEL 15

Sign-Up: 12/24/04

Posts: 1,562

hello friends and foes.

please could you help me with this, my problem is i want to attach something from the library along the _X axis between 43.5 and 253.2, but i also want to add it randomly, so it randomly is added, can anyone help me with this?

Thank you, i love you all. godbless.amen.halaho..


None

DFox

Reply To Post Reply & Quote

Posted at: 9/2/06 01:27 AM

DFox LIGHT LEVEL 30

Sign-Up: 08/09/03

Posts: 9,270

This would do it:

curClip = _root.getNextHighestDepth();
attachMovie("namefromlibrary", "clip_" + curClip, curClip);
_root["clip_" + curClip]._x = Math.floor(Math.random() * (253.2 - 43.5)) + 43.5;
_root["clip_" + curClip]._y = anumber;


All times are Eastern Standard Time (GMT -5) | Current Time: 09:33 AM

<< Back

This topic is 1 page long.

<< < > >>
You need a Grounds Gold Account to post on the NG BBS! If you don't have one, click here to sign up now! It's fast, free, and easy — and opens up tons of great NG features!