STORY LOOP FURRY PORN GAMES C SERVICES [?] [R] RND POPULAR | Archived flashes: 229428 |
/disc/ · /res/ — /show/ · /fap/ · /gg/ · /swf/ | P0001 · P2574 · P5147 |
This is the info page for Flash #58986 |
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_flaSection 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_flaSection 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_flaSection 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_flaSection 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 Graphic | Used by:4 | |
Symbol 2 Font | Used by:3 5 46 47 48 50 54 57 69 85 87 88 91 93 96 97 100 102 106 108 | |
Symbol 3 Text | Uses:2 | Used by:4 |
Symbol 4 MovieClip | Uses:1 3 | Used by:Timeline |
Symbol 5 Text | Uses:2 | Used by:6 |
Symbol 6 MovieClip | Uses:5 | Used by:Timeline |
Symbol 7 Graphic | Used by:8 | |
Symbol 8 MovieClip | Uses:7 | Used by:Timeline |
Symbol 9 Graphic | Used by:16 17 | |
Symbol 10 Graphic | Used by:16 | |
Symbol 11 Graphic | Used by:16 | |
Symbol 12 Graphic | Used by:16 | |
Symbol 13 Graphic | Used by:16 | |
Symbol 14 Graphic | Used by:16 | |
Symbol 15 Graphic | Used by:16 | |
Symbol 16 MovieClip | Uses:9 10 11 12 13 14 15 | Used by:17 |
Symbol 17 MovieClip | Uses:9 16 | Used by:Timeline |
Symbol 18 Font | Used by:19 20 32 33 34 35 36 37 43 44 70 92 101 109 | |
Symbol 19 EditableText | Uses:18 | Used by:Timeline |
Symbol 20 Text | Uses:18 | Used by:Timeline |
Symbol 21 Graphic | Used by:24 | |
Symbol 22 Graphic | Used by:23 | |
Symbol 23 MovieClip | Uses:22 | Used by:24 |
Symbol 24 MovieClip | Uses:21 23 | Used by:Timeline |
Symbol 25 Graphic | Used by:26 38 40 | |
Symbol 26 MovieClip | Uses:25 | Used by:30 |
Symbol 27 Graphic | Used by:28 30 58 62 63 67 | |
Symbol 28 MovieClip | Uses:27 | Used by:29 |
Symbol 29 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol19_10} | Uses:28 | Used by:30 |
Symbol 30 Button | Uses:26 29 27 | Used by:Timeline |
Symbol 31 Sound | Used by:Timeline | |
Symbol 32 Text | Uses:18 | Used by:Timeline |
Symbol 33 Text | Uses:18 | Used by:Timeline |
Symbol 34 Text | Uses:18 | Used by:Timeline |
Symbol 35 Text | Uses:18 | Used by:Timeline |
Symbol 36 Text | Uses:18 | Used by:Timeline |
Symbol 37 Text | Uses:18 | Used by:Timeline |
Symbol 38 MovieClip | Uses:25 | Used by:39 |
Symbol 39 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol23_13} | Uses:38 | Used by:40 |
Symbol 40 Button | Uses:39 25 | Used by:Timeline |
Symbol 41 Bitmap | Used by:42 | |
Symbol 42 Graphic | Uses:41 | Used by:Timeline |
Symbol 43 Text | Uses:18 | Used by:Timeline |
Symbol 44 Text | Uses:18 | Used by:Timeline |
Symbol 45 Graphic | Used by:Timeline | |
Symbol 46 Text | Uses:2 | Used by:Timeline |
Symbol 47 Text | Uses:2 | Used by:Timeline |
Symbol 48 Text | Uses:2 | Used by:Timeline |
Symbol 49 Font | Used by:50 | |
Symbol 50 Text | Uses:2 49 | Used by:Timeline |
Symbol 51 Font | Used by:52 55 | |
Symbol 52 EditableText | Uses:51 | Used by:Timeline |
Symbol 53 Font | Used by:54 | |
Symbol 54 Text | Uses:2 53 | Used by:Timeline |
Symbol 55 EditableText | Uses:51 | Used by:Timeline |
Symbol 56 Graphic | Used by:68 | |
Symbol 57 Text | Uses:2 | Used by:68 |
Symbol 58 MovieClip | Uses:27 | Used by:63 |
Symbol 59 Graphic | Used by:63 | |
Symbol 60 Font | Used by:61 66 | |
Symbol 61 Text | Uses:60 | Used by:63 |
Symbol 62 MovieClip | Uses:27 | Used by:63 64 |
Symbol 63 Button | Uses:58 59 61 62 27 | Used by:68 |
Symbol 64 MovieClip | Uses:62 | Used by:67 |
Symbol 65 Graphic | Used by:67 | |
Symbol 66 Text | Uses:60 | Used by:67 |
Symbol 67 Button | Uses:64 65 66 27 | Used by:68 |
Symbol 68 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol10_15} | Uses:56 57 63 67 | Used by:Timeline |
Symbol 69 Text | Uses:2 | Used by:Timeline |
Symbol 70 Text | Uses:18 | Used by:Timeline |
Symbol 71 Graphic | Used by:84 | |
Symbol 72 Graphic | Used by:83 | |
Symbol 73 Graphic | Used by:83 | |
Symbol 74 Graphic | Used by:83 | |
Symbol 75 Graphic | Used by:83 | |
Symbol 76 Graphic | Used by:83 | |
Symbol 77 Graphic | Used by:83 | |
Symbol 78 Graphic | Used by:83 | |
Symbol 79 Graphic | Used by:83 | |
Symbol 80 Graphic | Used by:83 | |
Symbol 81 Graphic | Used by:83 | |
Symbol 82 Graphic | Used by:83 | |
Symbol 83 MovieClip | Uses:72 73 74 75 76 77 78 79 80 81 82 | Used by:84 |
Symbol 84 MovieClip | Uses:71 83 | Used by:Timeline |
Symbol 85 Text | Uses:2 | Used by:Timeline |
Symbol 86 Font | Used by:87 96 107 | |
Symbol 87 Text | Uses:2 86 | Used by:Timeline |
Symbol 88 Text | Uses:2 | Used by:Timeline |
Symbol 89 Font | Used by:90 | |
Symbol 90 EditableText | Uses:89 | Used by:Timeline |
Symbol 91 Text | Uses:2 | Used by:Timeline |
Symbol 92 Text | Uses:18 | Used by:Timeline |
Symbol 93 Text | Uses:2 | Used by:Timeline |
Symbol 94 Graphic | Used by:95 | |
Symbol 95 MovieClip | Uses:94 | Used by:Timeline |
Symbol 96 Text | Uses:2 86 | Used by:Timeline |
Symbol 97 Text | Uses:2 | Used by:Timeline |
Symbol 98 Font | Used by:99 | |
Symbol 99 EditableText | Uses:98 | Used by:Timeline |
Symbol 100 Text | Uses:2 | Used by:Timeline |
Symbol 101 Text | Uses:18 | Used by:Timeline |
Symbol 102 Text | Uses:2 | Used by:Timeline |
Symbol 103 Graphic | Used by:104 | |
Symbol 104 MovieClip | Uses:103 | Used by:105 |
Symbol 105 MovieClip {Thanksfordownloadingthistutorial_fla.Symbol25_24} | Uses:104 | Used by:Timeline |
Symbol 106 Text | Uses:2 | Used by:Timeline |
Symbol 107 EditableText | Uses:86 | Used by:Timeline |
Symbol 108 Text | Uses:2 | Used by:Timeline |
Symbol 109 Text | Uses:18 | Used by:Timeline |
Instance Names
"lbar" | Frame 1 | Symbol 17 MovieClip |
"lpc" | Frame 1 | Symbol 19 EditableText |
"play_btn" | Frame 2 | Symbol 30 Button |
"next_btn" | Frame 3 | Symbol 30 Button |
"back_btn" | Frame 3 | Symbol 30 Button |
"button_btn" | Frame 4 | Symbol 30 Button |
"arrow_btn" | Frame 4 | Symbol 30 Button |
"cursor_btn" | Frame 4 | Symbol 30 Button |
"fps_btn" | Frame 4 | Symbol 30 Button |
"next_btn" | Frame 4 | Symbol 30 Button |
"main_btn" | Frame 4 | Symbol 30 Button |
"back_btn" | Frame 4 | Symbol 40 Button |
"cursor" | Frame 12 | Symbol 84 MovieClip |
"arrow" | Frame 15 | Symbol 95 MovieClip |
"back_btn" | Frame 21 | Symbol 30 Button |
Special Tags
FileAttributes (69) | Timeline Frame 1 | Access local files only, Metadata not present, AS3. |
|