STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229595 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2595 · P5190 |
This is the info page for Flash #30884 |
m ving eyes |
tutorial |
By Technophobe |
Begin |
Begin |
Before you use this tutorial, you need to have : basic knowledge of the flash drawing tools basic knowledge of actionscript basic use of symbols. |
Right. Moving eyes. These can be used in many places, for example, a nice object in a website, a feature of a game, or just a small thingy to show off to friends. They are really easy to make and only a very small amount of actionscript knowledge is required. |
When you create your eyes, use your imagination. here are a few i made: |
as you can see, you can have as many on the stage as you wish! |
to start, draw your eye(not the pupil) and convert it into a movieclip. Call it eye |
inside the eye movieclip, create the eyball. Draw a small black circle, and convert to a movieclip Twice. call it eyball and eyeball2 or something. |
ball2 |
give the inside eyeball the instance name "black" |
put the eyeball on the eye. |
in the outside eyeball put the actionscript: |
<p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>onClipEvent (enterFrame) {</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>rad=15</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>point = new Object();</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>point.x = _xmouse;</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>point.y = _ymouse;</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>//globalToLocal(point);</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>updateAfterEvent();</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>var diffX = point.x - this._x;</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>var diffY = point.y - this._y;</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>var r = Math.sqrt(diffX*diffX + diffY*diffY);</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>if (r>rad) {</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>r=rad;</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>}</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>this.black._x = r*Math.cos(Math.atan2(diffY, <sbr />diffX));</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>this.black._y = r*Math.sin(Math.atan2(diffY, diffX));</b></font></p><p align="left"><font face="Century Gothic" size="11" color="#0066ff"><b>}</b></font></p><p align="left"></p> |
you can change the radius to suit the size of your eye |
If it isn't already, then put the eyball containing another eyeball inside the eye movieclip. |
Well done, test your movie, and see if it works! If its not quite right, make sure that both the eyeballs are in the centre of their clips. to use the eye again just copy it, do not try and make another one, it will not work. thankyou for watching. Now use your imagination! |
Note: This tutorial was made exclusively fr AlbinoBlackSheep.com and it is illegal to display it anywhere else. |
ActionScript [AS1/AS2]
Frame 1stop();Frame 2stop();Frame 3stop();Frame 4stop();Frame 5stop();Frame 6stop();Frame 7stop();Frame 8stop();Frame 9stop();Frame 10stop();Frame 11stop();Frame 12stop();Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 75) { r = 75; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }Symbol 14 Buttonon (release) { nextFrame(); }Symbol 18 Buttonon (release) { nextFrame(); }Symbol 19 Buttonon (release) { prevFrame(); }Instance of Symbol 8 MovieClip in Symbol 66 MovieClip Frame 1onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 15) { r = 15; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }Symbol 66 MovieClip Frame 348gotoAndPlay (1);Symbol 66 MovieClip Frame 350stop();Instance of Symbol 8 MovieClip in Symbol 66 MovieClip Frame 350onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 15) { r = 15; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }Instance of Symbol 72 MovieClip in Symbol 73 MovieClip Frame 1onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 15) { r = 15; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }Instance of Symbol 78 MovieClip in Symbol 106 MovieClip Frame 1onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 15) { r = 15; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }Symbol 106 MovieClip Frame 348gotoAndPlay (1);Symbol 106 MovieClip Frame 350stop();Instance of Symbol 78 MovieClip in Symbol 106 MovieClip Frame 350onClipEvent (enterFrame) { point = new Object(); point.x = _xmouse; point.y = _ymouse; updateAfterEvent(); var diffX = (point.x - this._x); var diffY = (point.y - this._y); var r = Math.sqrt((diffX * diffX) + (diffY * diffY)); if (r > 15) { r = 15; } this.black._x = r * Math.cos(Math.atan2(diffY, diffX)); this.black._y = r * Math.sin(Math.atan2(diffY, diffX)); }
Library Items
Symbol 1 Graphic | Used by:Timeline | ||
Symbol 2 Font | Used by:3 4 10 11 12 | ||
Symbol 3 Text | Uses:2 | Used by:Timeline | |
Symbol 4 Text | Uses:2 | Used by:Timeline | |
Symbol 5 Graphic | Used by:6 | ||
Symbol 6 MovieClip | Uses:5 | Used by:7 | |
Symbol 7 MovieClip | Uses:6 | Used by:8 | |
Symbol 8 MovieClip | Uses:7 | Used by:9 66 | |
Symbol 9 MovieClip | Uses:8 | Used by:Timeline | |
Symbol 10 Text | Uses:2 | Used by:Timeline | |
Symbol 11 Text | Uses:2 | Used by:14 | |
Symbol 12 Text | Uses:2 | Used by:14 | |
Symbol 13 Graphic | Used by:14 | ||
Symbol 14 Button | Uses:11 12 13 | Used by:Timeline | |
Symbol 15 Graphic | Used by:Timeline | ||
Symbol 16 Graphic | Used by:18 19 | ||
Symbol 17 Graphic | Used by:18 19 | ||
Symbol 18 Button | Uses:16 17 | Used by:Timeline | |
Symbol 19 Button | Uses:16 17 | Used by:Timeline | |
Symbol 20 Font | Used by:21 23 24 109 111 116 123 125 127 128 132 133 | ||
Symbol 21 Text | Uses:20 | Used by:Timeline | |
Symbol 22 Graphic | Used by:Timeline | ||
Symbol 23 Text | Uses:20 | Used by:Timeline | |
Symbol 24 Text | Uses:20 | Used by:Timeline | |
Symbol 25 Graphic | Used by:66 | ||
Symbol 26 Graphic | Used by:66 | ||
Symbol 27 Graphic | Used by:66 73 106 | ||
Symbol 28 Graphic | Used by:66 | ||
Symbol 29 Graphic | Used by:66 106 | ||
Symbol 30 Graphic | Used by:66 106 | ||
Symbol 31 Graphic | Used by:66 106 | ||
Symbol 32 Graphic | Used by:66 | ||
Symbol 33 Graphic | Used by:66 | ||
Symbol 34 Graphic | Used by:66 106 | ||
Symbol 35 Graphic | Used by:66 | ||
Symbol 36 Graphic | Used by:66 | ||
Symbol 37 Graphic | Used by:66 | ||
Symbol 38 Graphic | Used by:66 | ||
Symbol 39 Graphic | Used by:66 | ||
Symbol 40 Graphic | Used by:66 | ||
Symbol 41 Graphic | Used by:66 | ||
Symbol 42 Graphic | Used by:66 | ||
Symbol 43 Graphic | Used by:66 | ||
Symbol 44 Graphic | Used by:66 | ||
Symbol 45 Graphic | Used by:66 | ||
Symbol 46 Graphic | Used by:66 | ||
Symbol 47 Graphic | Used by:66 | ||
Symbol 48 Graphic | Used by:66 | ||
Symbol 49 Graphic | Used by:66 | ||
Symbol 50 Graphic | Used by:66 | ||
Symbol 51 Graphic | Used by:66 | ||
Symbol 52 Graphic | Used by:66 | ||
Symbol 53 Graphic | Used by:66 | ||
Symbol 54 Graphic | Used by:66 | ||
Symbol 55 Graphic | Used by:66 | ||
Symbol 56 Graphic | Used by:66 | ||
Symbol 57 Graphic | Used by:66 | ||
Symbol 58 Graphic | Used by:66 | ||
Symbol 59 Graphic | Used by:66 | ||
Symbol 60 Graphic | Used by:66 | ||
Symbol 61 Graphic | Used by:66 | ||
Symbol 62 Graphic | Used by:66 | ||
Symbol 63 Graphic | Used by:66 106 | ||
Symbol 64 Graphic | Used by:66 106 | ||
Symbol 65 Graphic | Used by:66 106 | ||
Symbol 66 MovieClip | Uses:25 26 27 8 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 | Used by:67 | |
Symbol 67 MovieClip | Uses:66 | Used by:Timeline | |
Symbol 68 Graphic | Used by:73 | ||
Symbol 69 Graphic | Used by:70 76 | ||
Symbol 70 MovieClip | Uses:69 | Used by:71 | |
Symbol 71 MovieClip | Uses:70 | Used by:72 | |
Symbol 72 MovieClip | Uses:71 | Used by:73 | |
Symbol 73 MovieClip | Uses:68 27 72 | Used by:Timeline | |
Symbol 74 Graphic | Used by:106 | ||
Symbol 75 Graphic | Used by:106 | ||
Symbol 76 MovieClip | Uses:69 | Used by:77 | |
Symbol 77 MovieClip | Uses:76 | Used by:78 | |
Symbol 78 MovieClip | Uses:77 | Used by:106 | |
Symbol 79 Graphic | Used by:106 | ||
Symbol 80 Graphic | Used by:106 | ||
Symbol 81 Graphic | Used by:106 | ||
Symbol 82 Graphic | Used by:106 | ||
Symbol 83 Graphic | Used by:106 | ||
Symbol 84 Graphic | Used by:106 | ||
Symbol 85 Graphic | Used by:106 | ||
Symbol 86 Graphic | Used by:106 | ||
Symbol 87 Graphic | Used by:106 | ||
Symbol 88 Graphic | Used by:106 | ||
Symbol 89 Graphic | Used by:106 | ||
Symbol 90 Graphic | Used by:106 | ||
Symbol 91 Graphic | Used by:106 | ||
Symbol 92 Graphic | Used by:106 | ||
Symbol 93 Graphic | Used by:106 | ||
Symbol 94 Graphic | Used by:106 | ||
Symbol 95 Graphic | Used by:106 | ||
Symbol 96 Graphic | Used by:106 | ||
Symbol 97 Graphic | Used by:106 | ||
Symbol 98 Graphic | Used by:106 | ||
Symbol 99 Graphic | Used by:106 | ||
Symbol 100 Graphic | Used by:106 | ||
Symbol 101 Graphic | Used by:106 | ||
Symbol 102 Graphic | Used by:106 | ||
Symbol 103 Graphic | Used by:106 | ||
Symbol 104 Graphic | Used by:106 | ||
Symbol 105 Graphic | Used by:106 | ||
Symbol 106 MovieClip | Uses:74 75 27 78 79 29 30 31 80 81 34 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 63 64 65 | Used by:107 | |
Symbol 107 MovieClip | Uses:106 | Used by:Timeline | |
Symbol 108 Graphic | Used by:Timeline | ||
Symbol 109 Text | Uses:20 | Used by:Timeline | |
Symbol 110 Graphic | Used by:Timeline | ||
Symbol 111 Text | Uses:20 | Used by:Timeline | |
Symbol 112 Bitmap | Used by:113 | ||
Symbol 113 Graphic | Uses:112 | Used by:Timeline | |
Symbol 114 Graphic | Used by:Timeline | ||
Symbol 115 Font | Used by:116 128 129 131 | ||
Symbol 116 Text | Uses:20 115 | Used by:Timeline | |
Symbol 117 Bitmap | Used by:119 | ||
Symbol 118 Bitmap | Used by:119 | ||
Symbol 119 Graphic | Uses:117 118 | Used by:Timeline | |
Symbol 120 Font | Used by:121 | ||
Symbol 121 Text | Uses:120 | Used by:Timeline | |
Symbol 122 Graphic | Used by:Timeline | ||
Symbol 123 Text | Uses:20 | Used by:Timeline | |
Symbol 124 Graphic | Used by:Timeline | ||
Symbol 125 Text | Uses:20 | Used by:Timeline | |
Symbol 126 Graphic | Used by:Timeline | ||
Symbol 127 Text | Uses:20 | Used by:Timeline | |
Symbol 128 EditableText | Uses:20 115 | Used by:Timeline | |
Symbol 129 Text | Uses:115 | Used by:Timeline | |
Symbol 130 Graphic | Used by:Timeline | ||
Symbol 131 Text | Uses:115 | Used by:Timeline | |
Symbol 132 Text | Uses:20 | Used by:Timeline | |
Symbol 133 Text | Uses:20 | Used by:Timeline | |
Symbol 134 Bitmap | Used by:135 | ||
Symbol 135 Graphic | Uses:134 | Used by:136 | |
Symbol 136 MovieClip | Uses:135 | Used by:Timeline |
Instance Names
"look" | Frame 4 | Symbol 67 MovieClip |
"look" | Frame 4 | Symbol 73 MovieClip |
"look" | Frame 4 | Symbol 107 MovieClip |
"black" | Symbol 8 MovieClip Frame 1 | Symbol 7 MovieClip |
"look" | Symbol 67 MovieClip Frame 1 | Symbol 66 MovieClip |
"black" | Symbol 72 MovieClip Frame 1 | Symbol 71 MovieClip |
"black" | Symbol 78 MovieClip Frame 1 | Symbol 77 MovieClip |
"look" | Symbol 107 MovieClip Frame 1 | Symbol 106 MovieClip |
|