Drag and Drop Coordinates
Actionscript behind the circle:
on(press){
startDrag(this);
}
on(release){
stopDrag();
if((this._x=*lowest value for x in the box*)&(this._x<=*the highest value for x)&(this._y=*lowest value for y in the box*)&(this._y<=*the highest value for y))
{
_root.box1.gotoAndStop(2);
}else{
_root.box1.gotoAndStop(1);
this._x=*the origin of x-default location*;
this._y= *the origin of y*;
}
Repeat it for Rectangle
Actionscript for Next button
on(release){ loadMovieNum("video.swf",0);}
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment