Random movie in a Flash file probs

I’m trying to place a movie clip in a Flash animation but have it appear randomly. It is a tree moving past the moon. I want it to seem real, so having it constantly move in a repeated pattern would not be good. Any help would be greatly appreciated.

shouldn’t the moon move past the tree?

*Originally posted by DigitalPimp *
**shouldn’t the moon move past the tree? **

you always have to have a smart *** remark about everything don’t you?

could you post an fla? also you might try something like this:


with(_root.movieclipname){
_x = Math.ceil(Math.random()*100);//100 is the max x can be
_y = Math.ceil(Math.random()*100);//100 is the max y can be
onEnterFrame = function(){
_x += 0;//adjust these for your movement
_y +=3;//adjust these for your movement
};
}

i could have the moon pass the tree, but the view is from inside of a car traveling down the road. thanks for your interest though. the script given does seem to do the trick, so… thanks.

*Originally posted by wet hot america *
**i could have the moon pass the tree, but the view is from inside of a car traveling down the road. thanks for your interest though. the script given does seem to do the trick, so… thanks. **

NP :beam: