To participate you will need to enter your login details:
Go Back   The Australian Frequent Flyer Online Community> > Community Resources > Playground
 
   

 


Travel Insurance
product picture

Air traffic controllers in the news

» Read Article

Mini jaunt in Asia on *A

» Read Report


Reply

Registered Users have the option of removing this and all other advertisements.  More

 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 1st November 2008, 10:25 PM
tintin's Avatar
Junior Member
 
Join Date: Sep 2008
Posts: 13
Does Anyone know actionscript???

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


Reply With Quote
Sponsored Links
Registered Users have the option of removing this and all other advertisements.  More
Reply

Tags
actionscript, flash


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT +11. The time now is 07:36 PM.


 
Powered by vBulletin Version 3.7.0. Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0 RC4 ©2008, Crawlability, Inc.
Designed by
 
Copyright © 1998 - 2009, The Australian Frequent Flyer. All Rights Reserved.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83