Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automatically moving mc

Status
Not open for further replies.

seantuk

Programmer
Mar 22, 2005
62
GB
i have a class that extends MovieClip. is there a 'onEnterFrame' method or soemthing i can override to cause it to do something repeatedly - eg, move a little on every frame?
 
Once you have the movie clip on the timeline you can select it on the stage and attach some action script to change it's _X and _Y cordinates.
Code:
onClipEvent(enterFrame){
    this._y = this._y +1
    this._x = this._x +1

}

This will move the movie clip. Play around with it till you get what you want.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top