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

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

Variables Tutorial.swf

This is the info page for
Flash #64442

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


Text
Variables tutorial
I created this tutorial becouse here are many
people who don´t know how to do example a
score to their game. So I decided to make a
tutorial to these people. Of course this tutorial is
for everyone! Have fun with learning variables!

This tutorial includes:
Creating:
Score
Money system
Password
Profile

Variables

By neobyte

NOTE!
These tutorials work only on Flash MX and MX 2004!

MUSIC

MUSIC

Make a money system to your game! Page 1

If you are making a game in flash you need to know about variables.
There used for things like money , lives , objects and loads more things to.
So hopefully by the time you’ve read this tutorial you will know the basic’s
of variables !
Okay. Open up Flash MX and copy and paste this into a first frame:

money = 10;

MENU

Make a money system to your game! Page 2

You have made a variable named "money"!
Then create a button like this:

Then create a button like this:

You created two buttons. Minus and plus button.
We will create it like if you press the minus button, money will drop down
by one. If you press the plus button, money will go up by one.
That will be easy so don´t say: OMG! THAT´S IMPOSSIBLE!

Make a money system to your game! Page 3

Now go to a minus button actions and add this in the actions panel:

on (release) {
money -= 1;
}

And then go to a plus button actions and add this to the actions
panel:

on (release) {
money += 1;
}

Make a money system to your game! Page 4

Then make a dynamic text field.
In the properties -panel write to the Var -field "money".
And now........*evil laugh*.......nothing will happen becouse you have just
created your own score!
Don´t believe it? Click Test movie and you will see!
That´s it! Press next to see something what I created.

Your money:

You are in a shop and you can sell and buy items.

BUY

SELL

Make a money system to your game! Page 5

Make a score to your game! Page 1

Adding a score to your game is very easy.
First of all, create a button.
Then put this into it:

on (release) {
score += 10;
}

Make a score to your game! Page 2

Then put this in the frame actions:

score = 100;

And finally, open up properties panel and then select the button. Write in
the Var field "score". Now you have created a score to your game.
Scores can be different but this is one of the score types.

SHOOT!

Make a password detection to your game! Page 1

In this tutorial you will learn how to do a password detection to your
game! Example MMZ The Last Cataclysm -flash movie has a
password detection.(the password was "blues" ....*evil laugh
again*....now you don´t need to watch it and you can go straight in the
scene selection and extras areas) okay, back what I was saying...
First of all create three keyframes. The first frame will be the frame
where the player types the password. Second frame will be the frame
witch the player will see if he has typed the incorrect password. And
the third frame will be shown if the player has typed the correct
password!

Make a password detection to your game! Page 2

And now I´m not going to say "That´s easy" becouse this tutorial will
be fucking stressing and I felt the real pain in my neck when I writed
this so be ready.
-Add the stop -action to the frame
-Create frame label "password"
-Create a button

In the first frame...

Make a password detection to your game! Page 3

-Make an input text field
-In properties panel:
In Variable, name the text field, for example, myPass.
-Then make a static text field and write something like "Enter your
password here"
-I hardly recommend you to click "show border around text" -button
becouse it helps your user to know where to click in order to start
entering their password.

Make a password detection to your game! Page 4

-Create frame label "incorrect"
-Create a button and add this into it:

In the second frame...

on(release){
gotoAndStop("password");
}

-Make a static text field and write something like: "Wrong password!"

Make a password detection to your game! Page 5

-Create frame label "correct"
-Make a static text field and write there whatever you want.
Okay! This is not so hard that I expected! Then you must create the
action script!

In the third frame...

Make a password detection to your game! Page 6

I think you can remember that you just created a button into first
frame. Now add this into it:

on (press) {
if (myPass == "blues") {
gotoAndStop("correct");
} else {
gotoAndStop("incorrect");
}
}

Make a password detection to your game! Page 7

Some last words...

As you can see I used the password "blues"....*evil laugh*.....
so (of course) you can change it to your own password!
So you did it! Congratulations!
Click next if you want to see the whole shit in action.

Make a password detection to your game! Page 8

Enter you password

Make a password detection to your game! Page 9

Wrong Password!
What the hell? Buy a glasses or something.

Make a password detection to your game! Page 10

Correct password!
Great!

Make a profile to your game! Page 1

In this tutorial you will learn how to make a profile to your game!
(as you didn´t knew that already)
-But first make an input text field.
-Now at the bottom of the input text box type " profile " in to the var:
box.
-Then into the frame actions put the stop (stop () ) action in it.
-Then make a new keyframe
-In the second frame make a dynamic text box.
-In the var: box type "profile"

Make a profile to your game! Page 2

-Put the stop action to the second frame
-Now go back to the first frame and create a button and put this into it:

on(release) {
play()
}

-Then above the button create a static text box and write something
like: "Create your profile".

And again, if you want to see this working press next.

Make a profile to your game! Page 3

Create your profile:

USE

Make a profile to your game! Page 4

ActionScript [AS1/AS2]

Frame 1
Mouse.hide(); startDrag ("cursor", true); stop();
Frame 2
stop();
Instance of Symbol 39 MovieClip in Frame 2
/* no clip actions */
Frame 3
stop();
Frame 4
stop();
Frame 5
stop();
Frame 6
stop();
Frame 7
money = 10; stop();
Frame 9
stop();
Frame 10
score = 100; stop();
Frame 12
stop();
Frame 13
stop();
Frame 14
stop();
Frame 15
stop();
Frame 16
stop();
Frame 17
stop();
Frame 18
stop();
Frame 19
stop();
Frame 20
stop();
Frame 21
stop();
Frame 23
stop();
Frame 24
stop();
Frame 25
stop();
Frame 26
stop();
Symbol 11 Button
on (release) { _root.play(); }
Symbol 12 MovieClip Frame 1
_root.stop(); PercentLoaded = (_root.getBytesLoaded() / _root.getBytesTotal()) * 100; if (PercentLoaded != 100) { setProperty(bar, _xscale , PercentLoaded); } else { gotoAndStop ("loaded"); }
Symbol 12 MovieClip Frame 2
gotoAndPlay (1);
Symbol 17 MovieClip Frame 1
Mouse.hide();
Symbol 17 MovieClip Frame 2
Mouse.hide();
Symbol 25 Button
on (release) { gotoAndStop (9); }
Symbol 28 Button
on (release) { gotoAndStop (3); }
Symbol 30 Button
on (release) { gotoAndStop (12); }
Symbol 32 Button
on (release) { gotoAndStop (23); }
Symbol 37 Button
on (release) { this._parent.musiikit.gotoAndStop(1); this.gotoAndStop(2); }
Symbol 38 Button
on (release) { this._parent.musiikit.play(); this.musicss.gotoAndStop(1); }
Symbol 39 MovieClip Frame 1
stop();
Symbol 39 MovieClip Frame 2
stop();
Symbol 44 MovieClip Frame 1
stopAllSounds();
Symbol 44 MovieClip Frame 17949
this.gotoAndPlay(2);
Symbol 49 Button
on (release) { gotoAndStop (4); }
Symbol 53 Button
on (release) { gotoAndStop (2); }
Symbol 59 Button
on (release) { gotoAndStop (3); }
Symbol 60 Button
on (release) { gotoAndStop (5); }
Symbol 66 Button
on (release) { gotoAndStop (6); }
Symbol 69 Button
on (release) { gotoAndStop (7); }
Symbol 75 Button
on (release) { if (money >= 2) { money = money - 2; } }
Symbol 77 Button
on (release) { money = money + 2; }
Symbol 80 Button
on (release) { gotoAndStop (10); }
Symbol 84 Button
on (release) { gotoAndStop (9); }
Symbol 91 Button
on (release) { score = score + 10; }
Symbol 93 Button
on (release) { gotoAndStop (13); }
Symbol 98 Button
on (release) { gotoAndStop (12); }
Symbol 99 Button
on (release) { gotoAndStop (14); }
Symbol 103 Button
on (release) { gotoAndStop (15); }
Symbol 109 Button
on (release) { gotoAndStop (16); }
Symbol 113 Button
on (release) { gotoAndStop (17); }
Symbol 117 Button
on (release) { gotoAndStop (18); }
Symbol 121 Button
on (release) { gotoAndStop (19); }
Symbol 126 Button
on (press) { if (myPass == "blues") { gotoAndStop ("correct"); } else { gotoAndStop ("incorrect"); } }
Symbol 133 Button
on (release) { gotoAndStop (24); }
Symbol 139 Button
on (release) { gotoAndStop (23); }
Symbol 140 Button
on (release) { gotoAndStop (25); }
Symbol 146 Button
on (release) { play(); }

Library Items

Symbol 1 GraphicUsed by:Timeline
Symbol 2 GraphicUsed by:3
Symbol 3 MovieClipUses:2Used by:12
Symbol 4 GraphicUsed by:12
Symbol 5 BitmapUsed by:6
Symbol 6 GraphicUses:5Used by:12
Symbol 7 GraphicUsed by:11
Symbol 8 GraphicUsed by:11
Symbol 9 GraphicUsed by:11
Symbol 10 GraphicUsed by:11
Symbol 11 ButtonUses:7 8 9 10Used by:12
Symbol 12 MovieClipUses:3 4 6 11Used by:Timeline
Symbol 13 FontUsed by:14 15 19 20 26 34 36 45 46 47 51 55 56 57 58 61 62 63 64 65 67 68 70 71 72 74 76 78 79 81 82 83 85 86 87 88 90 92 94 95 96 97 101 102 104 105 106 107 108 110 111 112 114 115 116 118 119 120 122 123 124 127 128 129 130 131 132 134 135 136 137 138 141 142 143 145 147 148
Symbol 14 TextUses:13Used by:Timeline
Symbol 15 TextUses:13Used by:Timeline
Symbol 16 GraphicUsed by:17
Symbol 17 MovieClipUses:16Used by:Timeline
Symbol 18 GraphicUsed by:Timeline
Symbol 19 TextUses:13Used by:Timeline
Symbol 20 TextUses:13Used by:Timeline
Symbol 21 GraphicUsed by:Timeline
Symbol 22 GraphicUsed by:25 28 30 32
Symbol 23 GraphicUsed by:25
Symbol 24 GraphicUsed by:25 28 30 32
Symbol 25 ButtonUses:22 23 24Used by:Timeline
Symbol 26 TextUses:13Used by:Timeline
Symbol 27 GraphicUsed by:28
Symbol 28 ButtonUses:22 27 24Used by:Timeline
Symbol 29 GraphicUsed by:30
Symbol 30 ButtonUses:22 29 24Used by:Timeline
Symbol 31 GraphicUsed by:32
Symbol 32 ButtonUses:22 31 24Used by:Timeline
Symbol 33 GraphicUsed by:37 38
Symbol 34 TextUses:13Used by:37 38
Symbol 35 GraphicUsed by:37 38
Symbol 36 TextUses:13Used by:37 38
Symbol 37 ButtonUses:33 34 35 36Used by:39
Symbol 38 ButtonUses:33 34 35 36Used by:39
Symbol 39 MovieClipUses:37 38Used by:Timeline
Symbol 40 GraphicUsed by:44
Symbol 41 SoundUsed by:44
Symbol 42 SoundUsed by:44
Symbol 43 SoundUsed by:44
Symbol 44 MovieClipUses:40 41 42 43Used by:Timeline
Symbol 45 TextUses:13Used by:Timeline
Symbol 46 TextUses:13Used by:Timeline
Symbol 47 EditableTextUses:13Used by:Timeline
Symbol 48 GraphicUsed by:49 59 60 66 69 80 84 93 98 99 103 109 113 117 121 133 139 140
Symbol 49 ButtonUses:48Used by:Timeline
Symbol 50 GraphicUsed by:53
Symbol 51 TextUses:13Used by:53
Symbol 52 GraphicUsed by:53
Symbol 53 ButtonUses:50 51 52Used by:Timeline
Symbol 54 GraphicUsed by:Timeline
Symbol 55 TextUses:13Used by:Timeline
Symbol 56 TextUses:13Used by:Timeline
Symbol 57 TextUses:13Used by:Timeline
Symbol 58 TextUses:13Used by:Timeline
Symbol 59 ButtonUses:48Used by:Timeline
Symbol 60 ButtonUses:48Used by:Timeline
Symbol 61 TextUses:13Used by:Timeline
Symbol 62 TextUses:13Used by:Timeline
Symbol 63 EditableTextUses:13Used by:Timeline
Symbol 64 TextUses:13Used by:Timeline
Symbol 65 EditableTextUses:13Used by:Timeline
Symbol 66 ButtonUses:48Used by:Timeline
Symbol 67 TextUses:13Used by:Timeline
Symbol 68 TextUses:13Used by:Timeline
Symbol 69 ButtonUses:48Used by:Timeline
Symbol 70 TextUses:13Used by:Timeline
Symbol 71 EditableTextUses:13Used by:Timeline
Symbol 72 TextUses:13Used by:Timeline
Symbol 73 GraphicUsed by:75 77
Symbol 74 TextUses:13Used by:75
Symbol 75 ButtonUses:73 74Used by:Timeline
Symbol 76 TextUses:13Used by:77
Symbol 77 ButtonUses:73 76Used by:Timeline
Symbol 78 TextUses:13Used by:Timeline
Symbol 79 TextUses:13Used by:Timeline
Symbol 80 ButtonUses:48Used by:Timeline
Symbol 81 TextUses:13Used by:Timeline
Symbol 82 EditableTextUses:13Used by:Timeline
Symbol 83 TextUses:13Used by:Timeline
Symbol 84 ButtonUses:48Used by:Timeline
Symbol 85 TextUses:13Used by:Timeline
Symbol 86 EditableTextUses:13Used by:Timeline
Symbol 87 TextUses:13Used by:Timeline
Symbol 88 EditableTextUses:13Used by:Timeline
Symbol 89 GraphicUsed by:91
Symbol 90 TextUses:13Used by:91
Symbol 91 ButtonUses:89 90Used by:Timeline
Symbol 92 TextUses:13Used by:Timeline
Symbol 93 ButtonUses:48Used by:Timeline
Symbol 94 TextUses:13Used by:Timeline
Symbol 95 TextUses:13Used by:Timeline
Symbol 96 TextUses:13Used by:Timeline
Symbol 97 TextUses:13Used by:Timeline
Symbol 98 ButtonUses:48Used by:Timeline
Symbol 99 ButtonUses:48Used by:Timeline
Symbol 100 GraphicUsed by:Timeline
Symbol 101 TextUses:13Used by:Timeline
Symbol 102 TextUses:13Used by:Timeline
Symbol 103 ButtonUses:48Used by:Timeline
Symbol 104 TextUses:13Used by:Timeline
Symbol 105 TextUses:13Used by:Timeline
Symbol 106 TextUses:13Used by:Timeline
Symbol 107 EditableTextUses:13Used by:Timeline
Symbol 108 TextUses:13Used by:Timeline
Symbol 109 ButtonUses:48Used by:Timeline
Symbol 110 TextUses:13Used by:Timeline
Symbol 111 TextUses:13Used by:Timeline
Symbol 112 TextUses:13Used by:Timeline
Symbol 113 ButtonUses:48Used by:Timeline
Symbol 114 TextUses:13Used by:Timeline
Symbol 115 TextUses:13Used by:Timeline
Symbol 116 EditableTextUses:13Used by:Timeline
Symbol 117 ButtonUses:48Used by:Timeline
Symbol 118 TextUses:13Used by:Timeline
Symbol 119 TextUses:13Used by:Timeline
Symbol 120 TextUses:13Used by:Timeline
Symbol 121 ButtonUses:48Used by:Timeline
Symbol 122 TextUses:13Used by:Timeline
Symbol 123 TextUses:13Used by:Timeline
Symbol 124 EditableTextUses:13Used by:Timeline
Symbol 125 GraphicUsed by:126
Symbol 126 ButtonUses:125Used by:Timeline
Symbol 127 TextUses:13Used by:Timeline
Symbol 128 TextUses:13Used by:Timeline
Symbol 129 TextUses:13Used by:Timeline
Symbol 130 TextUses:13Used by:Timeline
Symbol 131 TextUses:13Used by:Timeline
Symbol 132 TextUses:13Used by:Timeline
Symbol 133 ButtonUses:48Used by:Timeline
Symbol 134 TextUses:13Used by:Timeline
Symbol 135 TextUses:13Used by:Timeline
Symbol 136 EditableTextUses:13Used by:Timeline
Symbol 137 TextUses:13Used by:Timeline
Symbol 138 TextUses:13Used by:Timeline
Symbol 139 ButtonUses:48Used by:Timeline
Symbol 140 ButtonUses:48Used by:Timeline
Symbol 141 TextUses:13Used by:Timeline
Symbol 142 TextUses:13Used by:Timeline
Symbol 143 EditableTextUses:13Used by:Timeline
Symbol 144 GraphicUsed by:146
Symbol 145 TextUses:13Used by:146
Symbol 146 ButtonUses:144 145Used by:Timeline
Symbol 147 TextUses:13Used by:Timeline
Symbol 148 EditableTextUses:13Used by:Timeline

Instance Names

"cursor"Frame 1Symbol 17 MovieClip
"musiikit"Frame 2Symbol 44 MovieClip
"bar"Symbol 12 MovieClip Frame 1Symbol 3 MovieClip

Labels

"password"Frame 19
"incorrect"Frame 20
"correct"Frame 21
"loaded"Symbol 12 MovieClip Frame 3

Dynamic Text Variables

moneySymbol 71 EditableText""
scoreSymbol 88 EditableText""
myPassSymbol 124 EditableText""
profileSymbol 143 EditableText""
profileSymbol 148 EditableText""




http://swfchan.com/13/64442/info.shtml
Created: 13/4 -2019 04:17:35 Last modified: 13/4 -2019 04:17:35 Server time: 29/04 -2024 03:06:33