Hi -
I think if you made a movie clip symbol of the graphics you want to move, [graphics_mc] then placed an 'invisible' button symbol [has only a hit state, same sz. as graphic] on a layer above it [button_btn] you could place it on stage and try in the main timeline:
Code:
graphics_mc.button_btn.onRollOver = function(){
this.onEnterFrame = function(){
if (this._x < 540){
this._x += 4;
}
};
};
graphics_mc.button_btn.onRollOut = function(){
this.onEnterFrame = function(){
if (this._x > 200){
this._x -= 4;
}
};
};
//since a button's code applies to what it's in, 'this' refers to graphics_mc, here. 540 is the x location to the right, and 200 is for it's left location, so change as needed...
Hope that helps to get you started,
El
P.S. - An easier way is to make the 'Over' state of a button contain a movie clip that has the tweening that you want.
Bookmarks