STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/27883617?noj=FRM27883617-22DC" width="1" height="1"></div>

Moving Eyes Tutorial.swf

This is the info page for
Flash #30884

(Click the ID number above for more basic data on this flash file.)


Text
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&gt;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 1
stop();
Frame 2
stop();
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
stop();
Frame 8
stop();
Frame 9
stop();
Frame 10
stop();
Frame 11
stop();
Frame 12
stop();
Instance of Symbol 8 MovieClip in Symbol 9 MovieClip Frame 1
onClipEvent (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 Button
on (release) { nextFrame(); }
Symbol 18 Button
on (release) { nextFrame(); }
Symbol 19 Button
on (release) { prevFrame(); }
Instance of Symbol 8 MovieClip in Symbol 66 MovieClip Frame 1
onClipEvent (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 348
gotoAndPlay (1);
Symbol 66 MovieClip Frame 350
stop();
Instance of Symbol 8 MovieClip in Symbol 66 MovieClip Frame 350
onClipEvent (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 1
onClipEvent (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 1
onClipEvent (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 348
gotoAndPlay (1);
Symbol 106 MovieClip Frame 350
stop();
Instance of Symbol 78 MovieClip in Symbol 106 MovieClip Frame 350
onClipEvent (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 GraphicUsed by:Timeline
Symbol 2 FontUsed by:3 4 10 11 12
Symbol 3 TextUses:2Used by:Timeline
Symbol 4 TextUses:2Used by:Timeline
Symbol 5 GraphicUsed by:6
Symbol 6 MovieClipUses:5Used by:7
Symbol 7 MovieClipUses:6Used by:8
Symbol 8 MovieClipUses:7Used by:9 66
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 10 TextUses:2Used by:Timeline
Symbol 11 TextUses:2Used by:14
Symbol 12 TextUses:2Used by:14
Symbol 13 GraphicUsed by:14
Symbol 14 ButtonUses:11 12 13Used by:Timeline
Symbol 15 GraphicUsed by:Timeline
Symbol 16 GraphicUsed by:18 19
Symbol 17 GraphicUsed by:18 19
Symbol 18 ButtonUses:16 17Used by:Timeline
Symbol 19 ButtonUses:16 17Used by:Timeline
Symbol 20 FontUsed by:21 23 24 109 111 116 123 125 127 128 132 133
Symbol 21 TextUses:20Used by:Timeline
Symbol 22 GraphicUsed by:Timeline
Symbol 23 TextUses:20Used by:Timeline
Symbol 24 TextUses:20Used by:Timeline
Symbol 25 GraphicUsed by:66
Symbol 26 GraphicUsed by:66
Symbol 27 GraphicUsed by:66 73 106
Symbol 28 GraphicUsed by:66
Symbol 29 GraphicUsed by:66 106
Symbol 30 GraphicUsed by:66 106
Symbol 31 GraphicUsed by:66 106
Symbol 32 GraphicUsed by:66
Symbol 33 GraphicUsed by:66
Symbol 34 GraphicUsed by:66 106
Symbol 35 GraphicUsed by:66
Symbol 36 GraphicUsed by:66
Symbol 37 GraphicUsed by:66
Symbol 38 GraphicUsed by:66
Symbol 39 GraphicUsed by:66
Symbol 40 GraphicUsed by:66
Symbol 41 GraphicUsed by:66
Symbol 42 GraphicUsed by:66
Symbol 43 GraphicUsed by:66
Symbol 44 GraphicUsed by:66
Symbol 45 GraphicUsed by:66
Symbol 46 GraphicUsed by:66
Symbol 47 GraphicUsed by:66
Symbol 48 GraphicUsed by:66
Symbol 49 GraphicUsed by:66
Symbol 50 GraphicUsed by:66
Symbol 51 GraphicUsed by:66
Symbol 52 GraphicUsed by:66
Symbol 53 GraphicUsed by:66
Symbol 54 GraphicUsed by:66
Symbol 55 GraphicUsed by:66
Symbol 56 GraphicUsed by:66
Symbol 57 GraphicUsed by:66
Symbol 58 GraphicUsed by:66
Symbol 59 GraphicUsed by:66
Symbol 60 GraphicUsed by:66
Symbol 61 GraphicUsed by:66
Symbol 62 GraphicUsed by:66
Symbol 63 GraphicUsed by:66 106
Symbol 64 GraphicUsed by:66 106
Symbol 65 GraphicUsed by:66 106
Symbol 66 MovieClipUses: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 65Used by:67
Symbol 67 MovieClipUses:66Used by:Timeline
Symbol 68 GraphicUsed by:73
Symbol 69 GraphicUsed by:70 76
Symbol 70 MovieClipUses:69Used by:71
Symbol 71 MovieClipUses:70Used by:72
Symbol 72 MovieClipUses:71Used by:73
Symbol 73 MovieClipUses:68 27 72Used by:Timeline
Symbol 74 GraphicUsed by:106
Symbol 75 GraphicUsed by:106
Symbol 76 MovieClipUses:69Used by:77
Symbol 77 MovieClipUses:76Used by:78
Symbol 78 MovieClipUses:77Used by:106
Symbol 79 GraphicUsed by:106
Symbol 80 GraphicUsed by:106
Symbol 81 GraphicUsed by:106
Symbol 82 GraphicUsed by:106
Symbol 83 GraphicUsed by:106
Symbol 84 GraphicUsed by:106
Symbol 85 GraphicUsed by:106
Symbol 86 GraphicUsed by:106
Symbol 87 GraphicUsed by:106
Symbol 88 GraphicUsed by:106
Symbol 89 GraphicUsed by:106
Symbol 90 GraphicUsed by:106
Symbol 91 GraphicUsed by:106
Symbol 92 GraphicUsed by:106
Symbol 93 GraphicUsed by:106
Symbol 94 GraphicUsed by:106
Symbol 95 GraphicUsed by:106
Symbol 96 GraphicUsed by:106
Symbol 97 GraphicUsed by:106
Symbol 98 GraphicUsed by:106
Symbol 99 GraphicUsed by:106
Symbol 100 GraphicUsed by:106
Symbol 101 GraphicUsed by:106
Symbol 102 GraphicUsed by:106
Symbol 103 GraphicUsed by:106
Symbol 104 GraphicUsed by:106
Symbol 105 GraphicUsed by:106
Symbol 106 MovieClipUses: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 65Used by:107
Symbol 107 MovieClipUses:106Used by:Timeline
Symbol 108 GraphicUsed by:Timeline
Symbol 109 TextUses:20Used by:Timeline
Symbol 110 GraphicUsed by:Timeline
Symbol 111 TextUses:20Used by:Timeline
Symbol 112 BitmapUsed by:113
Symbol 113 GraphicUses:112Used by:Timeline
Symbol 114 GraphicUsed by:Timeline
Symbol 115 FontUsed by:116 128 129 131
Symbol 116 TextUses:20 115Used by:Timeline
Symbol 117 BitmapUsed by:119
Symbol 118 BitmapUsed by:119
Symbol 119 GraphicUses:117 118Used by:Timeline
Symbol 120 FontUsed by:121
Symbol 121 TextUses:120Used by:Timeline
Symbol 122 GraphicUsed by:Timeline
Symbol 123 TextUses:20Used by:Timeline
Symbol 124 GraphicUsed by:Timeline
Symbol 125 TextUses:20Used by:Timeline
Symbol 126 GraphicUsed by:Timeline
Symbol 127 TextUses:20Used by:Timeline
Symbol 128 EditableTextUses:20 115Used by:Timeline
Symbol 129 TextUses:115Used by:Timeline
Symbol 130 GraphicUsed by:Timeline
Symbol 131 TextUses:115Used by:Timeline
Symbol 132 TextUses:20Used by:Timeline
Symbol 133 TextUses:20Used by:Timeline
Symbol 134 BitmapUsed by:135
Symbol 135 GraphicUses:134Used by:136
Symbol 136 MovieClipUses:135Used by:Timeline

Instance Names

"look"Frame 4Symbol 67 MovieClip
"look"Frame 4Symbol 73 MovieClip
"look"Frame 4Symbol 107 MovieClip
"black"Symbol 8 MovieClip Frame 1Symbol 7 MovieClip
"look"Symbol 67 MovieClip Frame 1Symbol 66 MovieClip
"black"Symbol 72 MovieClip Frame 1Symbol 71 MovieClip
"black"Symbol 78 MovieClip Frame 1Symbol 77 MovieClip
"look"Symbol 107 MovieClip Frame 1Symbol 106 MovieClip




http://swfchan.com/7/30884/info.shtml
Created: 19/5 -2019 02:12:07 Last modified: 19/5 -2019 02:12:07 Server time: 22/12 -2024 08:42:33