Does Anyone know actionscript???

Status
Not open for further replies.

tintin

Newbie
Joined
Sep 29, 2008
Posts
9
If anyone knows action script 2.0 i could use some help

i have a rotating design where you drag left or right to move a cyclinder. i want it to play back or forward to the frames that are multiple of twelve. so for example if i drop on frame 2-6 i want it to play back to frame 1 and if i drop it on fram 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;

};

thank you
 
Elevate your business spending to first-class rewards! Sign up today with code AFF10 and process over $10,000 in business expenses within your first 30 days to unlock 10,000 Bonus PayRewards Points.
Join 30,000+ savvy business owners who:

✅ Pay suppliers who don’t accept Amex
✅ Max out credit card rewards—even on government payments
✅ Earn & transfer PayRewards Points to 10+ airline & hotel partners

Start earning today!
- Pay suppliers who don’t take Amex
- Max out credit card rewards—even on government payments
- Earn & Transfer PayRewards Points to 8+ top airline & hotel partners

AFF Supporters can remove this and all advertisements

Status
Not open for further replies.

Become an AFF member!

Join Australian Frequent Flyer (AFF) for free and unlock insider tips, exclusive deals, and global meetups with 65,000+ frequent flyers.

AFF members can also access our Frequent Flyer Training courses, and upgrade to Fast-track your way to expert traveller status and unlock even more exclusive discounts!

AFF forum abbreviations

Wondering about Y, J or any of the other abbreviations used on our forum?

Check out our guide to common AFF acronyms & abbreviations.

Currently Active Users

Back
Top