Hi everyone,
I have created a square movie clip and I tween it randomly using the caurina class within the available space in the stage,
how can I limit the space in the stage?
for example if my stage is 1000x1000 but I want my square only to tween randomly within 500x500px?
here is my code:
import caurina.transitions.*;
function trigger_mc()
{
Tweener.addTween(cube_mc, {x:Math.random()*stage.stageWidth,
y:Math.random()*stage.stageHeight, y:300, time:1,
rotation:Math.random()*300, onComplete:trigger_mc,
transition:"easeOutBounce"});
}
trigger_mc();
thanks