Skip to main content
Known Participant
November 15, 2007
Question

_yscale help

  • November 15, 2007
  • 2 replies
  • 299 views
why does this only make the x scale change and how can i get it to happen when the mouse is on the clip rather than when it is moved around on the clip?

onClipEvent(mouseMove){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {

onFrameEnter()
{
this._xscale+=(120-_xscale)/5;
this._yscale+=(120-_yscale)/5;
}
}
else

this._xscale=100;
this._yscale=100;

}
This topic has been closed for replies.

2 replies

Known Participant
November 15, 2007
Thats great thankyou! it was flash mx 6 and the actionscript that comes with it not sure which one it is.
kglad
Community Expert
Community Expert
November 15, 2007
:

robdillon
Participating Frequently
November 15, 2007
What version of Flash, what version of Actionscript? Are you getting any errors with this code?

Some things that might cause you problems: onFrameEnter is not a built in function, onEnterFrame is. The else clause that you have toward the end should have a pair of curly braces ({) around the contents of the clause.