Hi All,
I am trying to play with a little drag drop game whereusers can replicate a movieclip
by dragging on stage. Currently, i have this on a button, and you click to duplicate the MC.
The following example, tho, is just one of the resize issues I am having.
The The issue I am having is I want it to stop when it gets to a maximum or minimum size. I also want to be able to add a shadow of it, which scales also.
if anyone could help me get past this hurdle,. i would REALLY appreciate it.
here’s the code:
on (press)
{
//set the scale to true to enable the size change function below//
this.scale=true;
//star the draging ability and introduce the change size function//
startDrag("_root.drag_me", false);
this.onEnterFrame = function() {
//check to see if the scale is true//
if (this.scale == true) {
//if You move above the mid point you get smaller//
if (this._y >= 200) {
this._xscale += 5;
this._yscale += 5;
}
//if You move below the mid point you get bigger//
if (this._y <= 200) {
this._xscale -= 5;
this._yscale -= 5;
}
}
};
}
on (release)
{
//set the scale to false to disable and stop the size changeing, and stop the drag//
this.scale=false;
stopDrag();
}
I have attached the FLA also.
Thanks in advance…