Any web designers who know action script

Status
Not open for further replies.

tintin

Newbie
Joined
Sep 29, 2008
Posts
9
Hey i am trying to get my actionscript 2.0 to snap to one in every 12 frames. so on the timeline if i stop on frame 2-6 i want the flash doc to play back to frame 1 and if i drop it on frames 7-11 i want it to play to frame 12.
here is my action script

stop ();

this.onPress = function() {
origValue = this._currentframe;
origMouse = _root._xmouse;

this.onMouseMove = function() {
relVal = _root._xmouse - origMouse;
relVal = relVal / 15;
relVal = Math.round(relVal);
newFrame = origValue - relVal;
this.gotoAndStop (newFrame) ;


}
};
this.onRelease = this.onReleaseOutside = function() {
this.onMouseMove = null;

};

please help
 
The Frequent Flyer Concierge team takes the hard work out of finding reward seat availability. Using their expert knowledge and specialised tools, they'll help you book a great trip that maximises the value for your points.

AFF Supporters can remove this and all advertisements

Status
Not open for further replies.
Back
Top