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

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

Flash CS3 Mini-Tutorial.swf

This is the info page for
Flash #58986

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


Text
CS3

Mini-Tutorial

0%

Click that to play

The CS3 Mini-
Tutorial

This is Jaye19 and made this
tutorial just for my spare-
time and just a warm-up for
my next BIG tutorial and
when i mean big i mean b-i-g so
enjoy this mini-tutorial I
made

next / Back

Main menu:

Making Buttons
Custom Cursor
Pointing arrow
Change fps

M

Buttons

In flash CS3 making buttons is
more complicated that in flash 8
so to start make a new flash
AS3 document to start and make
new button (ctrl+f8) then you
will be taken inside an empty
button

Now inside the button you will see some
tabs here are their explantions after
you've known them design in them

up - The look of our button
without any mouse detection
over-The look of your button
with muse detection
down-when you click it
hit-the hit area of your button
(it's invisible )

Now that you know the parts and
heve put some desgns in them now
it's time to put some actions so
go to scene (1t can be seen above
your workspace) then press f9
now as you can see when the
button is highlighted inside the
actions panel it says you cannot
put some actions now that one of
the things that are complicated
in making buttons in as3 now
continue to the next page

now click your button find instance name and
put there my_btn (used as refference for the
code) Now make sure that the action panel is
open if not so press f9 then click on the
frame you are in then insert the following
actions

stop();
//stops the main timeline
function button(evt:MouseEvent):void {
nextFrame();
//opens a new function and when the fuction is functioned it will go to the next frame
}
my_btn.addEventListener(MouseEvent.CLICK, button);
//gets your button by the instance name and when it it clicked it opens the function does it

now when now beside your
frame make a blank one and put
anything there to know which
frame you are and put a stop();
action inside it then press
ctrl+enter to test your movie
now when you click your button
it goes to the next frame
awesome right! now there are
tones of thing that you can
change in your code see the
next page

stop();
//stops the main timeline
function button(evt:MouseEvent):void {
nextFrame();
//opens a new function and when the fuction is functioned it will go to the next frame
}
my_btn.addEventListener(MouseEvent.CLICK, button);
//gets your button by the instance name and when it it clicked it opens the function does it

Rollover to those actions that
you think that can be changed
or just browse until you find
one

You can change that to the following
prevFrame(); - goes to the previous frame
gotoAndStop(frame#); - it goes to a frame an stops it (change frame# to the frame you want
and you can change stop to play if you dont want it to stop
nextscene(); - goes to the next scene if you inserted one
stop(); - stops the movie
play(); - plays the movie
that's all the basics!!

Now there are tons of actions to replace that but here are the basics for a while
ROLL_OVER- When you rollover the button
ROLL_OUT-When you rollover then you rollout of the button
MOUSE_WHEEL-When you use the scroll wheel while your mouse is over the
button
MOUSE_MOVE-This executes faster that the Rollver script just like when you
rollver the button

Well that mostly covers
everything about buttons
but if you want to make
multiple just change the
instance neme (but dont take
out the the _btn) and change
the function name now if you
press next you will be
taken in another topic
prepare!!

Custom Cursor

This is what we are
gonna do

Well for starters make
a movieclip with an
instance of cursor

Now after that click anywhere
in the workspace (except the
custom cursor you made) then
bring  up the actions panel (f9)
then put this code

stage.addEventListener(Event.ENTER_FRAME, moveMouse);
function moveMouse(Event) {
Mouse.hide();
//take out that code above if you dont want the real cursor to hide
cursor.x = mouseX;
cursor.y = mouseY;
}

Now that's all there is about
custom cursor but there's
more out there.............. :p

Pointing arrow

Now this is what
we're gonna do

first make an arrow
poitning right then
convert it to a
movieclip with an
instance of arrow

bring up the actions panel (f9) (make
sure the movieclip is not highlighted
if so click your frame) then insert
these actions

var xdif:Number = 0;
var ydif:Number = 0;
this.addEventListener(Event.ENTER_FRAME, jaye19);
function jaye19(Event) {
xdif = mouseX-arrow.x;
ydif = mouseY-arrow.y;
arrow.rotation = Math.atan2(ydif, xdif)/(Math.PI/180);
}

Well that's all
about poiting
arrow now click
next for another
topic!!!!

Changing fps

Changing fps is
easy see the
example below

See the framerate changes
somehow now that is easy
1st just open up the action
panel and put these action

stage.frameRate = 12;

Now easy was'nt it actually
this is the last page of this
flash so I took out the next
button and if you want to
save this flash (for mozila
firefox users only) press
file-save page as-do the
browsing thing-hit save (I do
not know if this works for
I.e. users)

next / Back

ActionScript [AS3]

Section 1
//MainTimeline (Thanksfordownloadingthistutorial_fla.MainTimeline) package Thanksfordownloadingthistutorial_fla { import flash.events.*; import flash.display.*; import flash.text.*; public dynamic class MainTimeline extends MovieClip { public var back_btn:SimpleButton; public var fps_btn:SimpleButton; public var arrow:MovieClip; public var cursor_btn:SimpleButton; public var next_btn:SimpleButton; public var xdif:Number; public var arrow_btn:SimpleButton; public var lbar:MovieClip; public var lpc:TextField; public var ydif:Number; public var cursor:MovieClip; public var button_btn:SimpleButton; public var play_btn:SimpleButton; public var main_btn:SimpleButton; public function MainTimeline(){ addFrameScript(0, frame1, 1, frame2, 2, frame3, 3, frame4, 4, frame5, 5, frame6, 6, frame7, 7, frame8, 8, frame9, 9, frame10, 10, frame11, 11, frame12, 12, frame13, 13, frame14, 14, frame15, 15, frame16, 16, frame17, 17, frame18, 18, frame19, 19, frame20, 20, frame21); } public function jaye19(_arg1){ xdif = (mouseX - arrow.x); ydif = (mouseY - arrow.y); arrow.rotation = (Math.atan2(ydif, xdif) / (Math.PI / 180)); } public function onIntroCli(_arg1:MouseEvent):void{ nextFrame(); } public function onIntroCi(_arg1:MouseEvent):void{ gotoAndStop(4); } public function onIntroCl(_arg1:MouseEvent):void{ nextFrame(); } function frame14(){ stop(); } public function moveMouse(_arg1){ cursor.x = mouseX; cursor.y = mouseY; } function frame18(){ stop(); } function frame3(){ this.stop(); next_btn.addEventListener(MouseEvent.CLICK, onIntroClick); } function frame6(){ stop(); } function frame7(){ stop(); } function frame1(){ this.stop(); this.loaderInfo.addEventListener(ProgressEvent.PROGRESS, PL_LOADING); } function frame19(){ stop(); } function frame12(){ stage.addEventListener(Event.ENTER_FRAME, moveMouse); } function frame13(){ stop(); } function frame17(){ stop(); } public function onf(_arg1:MouseEvent):void{ prevFrame(); } function frame9(){ stop(); } function frame4(){ this.stop(); next_btn.addEventListener(MouseEvent.CLICK, onIntroCli); stop(); back_btn.addEventListener(MouseEvent.CLICK, onIntroClic); this.stop(); main_btn.addEventListener(MouseEvent.CLICK, onIntroCi); stop(); button_btn.addEventListener(MouseEvent.CLICK, Button1); arrow_btn.addEventListener(MouseEvent.CLICK, Buttjon); fps_btn.addEventListener(MouseEvent.CLICK, Buttonj1); cursor_btn.addEventListener(MouseEvent.CLICK, Buttonk1); } function frame21(){ stop(); back_btn.addEventListener(MouseEvent.CLICK, onf); this.stop(); main_btn.addEventListener(MouseEvent.CLICK, onIntr); stop(); } function frame2(){ stop(); play_btn.addEventListener(MouseEvent.CLICK, onIntroCl); } function frame5(){ stop(); } function frame15(){ stop(); xdif = 0; ydif = 0; this.addEventListener(Event.ENTER_FRAME, jaye19); } function frame8(){ stop(); } function frame11(){ stop(); } function frame16(){ stop(); } function frame10(){ stop(); } public function onIntroClic(_arg1:MouseEvent):void{ prevFrame(); } function frame20(){ stage.frameRate = 29; } public function Button1(_arg1:MouseEvent):void{ nextFrame(); } public function onIntroClick(_arg1:MouseEvent):void{ nextFrame(); } public function Buttjon(_arg1:MouseEvent):void{ gotoAndStop(16); } public function PL_LOADING(_arg1:ProgressEvent):void{ var _local2:Number; _local2 = ((_arg1.bytesLoaded / _arg1.bytesTotal) * 100); lbar.scaleX = (_local2 / 100); lpc.text = (int(_local2) + "%"); if (_local2 == 100){ this.gotoAndStop(2); }; } public function Buttonj1(_arg1:MouseEvent):void{ gotoAndStop(19); } public function onIntr(_arg1:MouseEvent):void{ gotoAndStop(4); } public function Buttonk1(_arg1:MouseEvent):void{ gotoAndStop(12); } } }//package Thanksfordownloadingthistutorial_fla
Section 2
//Symbol10_15 (Thanksfordownloadingthistutorial_fla.Symbol10_15) package Thanksfordownloadingthistutorial_fla { import flash.display.*; public dynamic class Symbol10_15 extends MovieClip { public function Symbol10_15(){ addFrameScript(0, frame1); } function frame1(){ stop(); } } }//package Thanksfordownloadingthistutorial_fla
Section 3
//Symbol19_10 (Thanksfordownloadingthistutorial_fla.Symbol19_10) package Thanksfordownloadingthistutorial_fla { import flash.display.*; public dynamic class Symbol19_10 extends MovieClip { public function Symbol19_10(){ addFrameScript(24, frame25); } function frame25(){ stop(); } } }//package Thanksfordownloadingthistutorial_fla
Section 4
//Symbol23_13 (Thanksfordownloadingthistutorial_fla.Symbol23_13) package Thanksfordownloadingthistutorial_fla { import flash.display.*; public dynamic class Symbol23_13 extends MovieClip { public function Symbol23_13(){ addFrameScript(19, frame20); } function frame20(){ stop(); } } }//package Thanksfordownloadingthistutorial_fla
Section 5
//Symbol25_24 (Thanksfordownloadingthistutorial_fla.Symbol25_24) package Thanksfordownloadingthistutorial_fla { import flash.display.*; public dynamic class Symbol25_24 extends MovieClip { public function Symbol25_24(){ addFrameScript(14, frame15, 35, frame36, 58, frame59); } function frame15(){ stage.frameRate = 12; } function frame36(){ stage.frameRate = 50; } function frame59(){ stage.frameRate = 29; } } }//package Thanksfordownloadingthistutorial_fla

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 FontUsed by:3 5 46 47 48 50 54 57 69 85 87 88 91 93 96 97 100 102 106 108
Symbol 3 TextUses:2Used by:4
Symbol 4 MovieClipUses:1 3Used by:Timeline
Symbol 5 TextUses:2Used by:6
Symbol 6 MovieClipUses:5Used by:Timeline
Symbol 7 GraphicUsed by:8
Symbol 8 MovieClipUses:7Used by:Timeline
Symbol 9 GraphicUsed by:16 17
Symbol 10 GraphicUsed by:16
Symbol 11 GraphicUsed by:16
Symbol 12 GraphicUsed by:16
Symbol 13 GraphicUsed by:16
Symbol 14 GraphicUsed by:16
Symbol 15 GraphicUsed by:16
Symbol 16 MovieClipUses:9 10 11 12 13 14 15Used by:17
Symbol 17 MovieClipUses:9 16Used by:Timeline
Symbol 18 FontUsed by:19 20 32 33 34 35 36 37 43 44 70 92 101 109
Symbol 19 EditableTextUses:18Used by:Timeline
Symbol 20 TextUses:18Used by:Timeline
Symbol 21 GraphicUsed by:24
Symbol 22 GraphicUsed by:23
Symbol 23 MovieClipUses:22Used by:24
Symbol 24 MovieClipUses:21 23Used by:Timeline
Symbol 25 GraphicUsed by:26 38 40
Symbol 26 MovieClipUses:25Used by:30
Symbol 27 GraphicUsed by:28 30 58 62 63 67
Symbol 28 MovieClipUses:27Used by:29
Symbol 29 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol19_10}Uses:28Used by:30
Symbol 30 ButtonUses:26 29 27Used by:Timeline
Symbol 31 SoundUsed by:Timeline
Symbol 32 TextUses:18Used by:Timeline
Symbol 33 TextUses:18Used by:Timeline
Symbol 34 TextUses:18Used by:Timeline
Symbol 35 TextUses:18Used by:Timeline
Symbol 36 TextUses:18Used by:Timeline
Symbol 37 TextUses:18Used by:Timeline
Symbol 38 MovieClipUses:25Used by:39
Symbol 39 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol23_13}Uses:38Used by:40
Symbol 40 ButtonUses:39 25Used by:Timeline
Symbol 41 BitmapUsed by:42
Symbol 42 GraphicUses:41Used by:Timeline
Symbol 43 TextUses:18Used by:Timeline
Symbol 44 TextUses:18Used by:Timeline
Symbol 45 GraphicUsed by:Timeline
Symbol 46 TextUses:2Used by:Timeline
Symbol 47 TextUses:2Used by:Timeline
Symbol 48 TextUses:2Used by:Timeline
Symbol 49 FontUsed by:50
Symbol 50 TextUses:2 49Used by:Timeline
Symbol 51 FontUsed by:52 55
Symbol 52 EditableTextUses:51Used by:Timeline
Symbol 53 FontUsed by:54
Symbol 54 TextUses:2 53Used by:Timeline
Symbol 55 EditableTextUses:51Used by:Timeline
Symbol 56 GraphicUsed by:68
Symbol 57 TextUses:2Used by:68
Symbol 58 MovieClipUses:27Used by:63
Symbol 59 GraphicUsed by:63
Symbol 60 FontUsed by:61 66
Symbol 61 TextUses:60Used by:63
Symbol 62 MovieClipUses:27Used by:63 64
Symbol 63 ButtonUses:58 59 61 62 27Used by:68
Symbol 64 MovieClipUses:62Used by:67
Symbol 65 GraphicUsed by:67
Symbol 66 TextUses:60Used by:67
Symbol 67 ButtonUses:64 65 66 27Used by:68
Symbol 68 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol10_15}Uses:56 57 63 67Used by:Timeline
Symbol 69 TextUses:2Used by:Timeline
Symbol 70 TextUses:18Used by:Timeline
Symbol 71 GraphicUsed by:84
Symbol 72 GraphicUsed by:83
Symbol 73 GraphicUsed by:83
Symbol 74 GraphicUsed by:83
Symbol 75 GraphicUsed by:83
Symbol 76 GraphicUsed by:83
Symbol 77 GraphicUsed by:83
Symbol 78 GraphicUsed by:83
Symbol 79 GraphicUsed by:83
Symbol 80 GraphicUsed by:83
Symbol 81 GraphicUsed by:83
Symbol 82 GraphicUsed by:83
Symbol 83 MovieClipUses:72 73 74 75 76 77 78 79 80 81 82Used by:84
Symbol 84 MovieClipUses:71 83Used by:Timeline
Symbol 85 TextUses:2Used by:Timeline
Symbol 86 FontUsed by:87 96 107
Symbol 87 TextUses:2 86Used by:Timeline
Symbol 88 TextUses:2Used by:Timeline
Symbol 89 FontUsed by:90
Symbol 90 EditableTextUses:89Used by:Timeline
Symbol 91 TextUses:2Used by:Timeline
Symbol 92 TextUses:18Used by:Timeline
Symbol 93 TextUses:2Used by:Timeline
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:Timeline
Symbol 96 TextUses:2 86Used by:Timeline
Symbol 97 TextUses:2Used by:Timeline
Symbol 98 FontUsed by:99
Symbol 99 EditableTextUses:98Used by:Timeline
Symbol 100 TextUses:2Used by:Timeline
Symbol 101 TextUses:18Used by:Timeline
Symbol 102 TextUses:2Used by:Timeline
Symbol 103 GraphicUsed by:104
Symbol 104 MovieClipUses:103Used by:105
Symbol 105 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol25_24}Uses:104Used by:Timeline
Symbol 106 TextUses:2Used by:Timeline
Symbol 107 EditableTextUses:86Used by:Timeline
Symbol 108 TextUses:2Used by:Timeline
Symbol 109 TextUses:18Used by:Timeline

Instance Names

"lbar"Frame 1Symbol 17 MovieClip
"lpc"Frame 1Symbol 19 EditableText
"play_btn"Frame 2Symbol 30 Button
"next_btn"Frame 3Symbol 30 Button
"back_btn"Frame 3Symbol 30 Button
"button_btn"Frame 4Symbol 30 Button
"arrow_btn"Frame 4Symbol 30 Button
"cursor_btn"Frame 4Symbol 30 Button
"fps_btn"Frame 4Symbol 30 Button
"next_btn"Frame 4Symbol 30 Button
"main_btn"Frame 4Symbol 30 Button
"back_btn"Frame 4Symbol 40 Button
"cursor"Frame 12Symbol 84 MovieClip
"arrow"Frame 15Symbol 95 MovieClip
"back_btn"Frame 21Symbol 30 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/12/58986/info.shtml
Created: 16/4 -2019 23:35:36 Last modified: 16/4 -2019 23:35:36 Server time: 01/11 -2024 00:32:44