uzi47

Reviews Favorites News Main
uzi47

Age/Gender: 15, Male
Location: USA
Job: Muff Diver

No, Newgrounds wasn't made by some dumb kid, it was made by a large company. Yoink!

Newgrounds Stats

Sign-Up Date:
5/26/07

Level: 17
Aura: Fab

Rank: Police Sergeant
Blams: 498
Saves: 917
Rank #: 4,999

Whistle Status: Garbage

Exp. Points: 3,160 / 3,210
Exp. Rank #: 8,122
Voting Pow.: 5.93 votes

BBS Posts: 1,786 (1.95 per day)
Flash Reviews: 21
Music Reviews: 1
Trophies: 0
Stickers: 0

Latest News

uzi47

I figured out something with AS2

Posted by uzi47 Oct. 14, 2009 @ 11:19 PM EDT

While I was coding around with flash, I quickly thought up of a calculator you repeatedly have to program.
Here is the code:

//CALCULATOR CODE//
var x:Number = new Number(5546);
var y:Number = new Number(1);
var Solve1 = x-y;
trace(x + " - " + y + " = " + Solve1);
//END CALCULATOR CODE//

Line 1.
- variable x is defined with the number 5546.
Line 2.
- variable y is defined with the number 1.
Line 3.
- Solve1 is a variable with equals x-y. So it's taking the values 5546, and 1, then subtracting them. You can also do something like; x * y + r / t
Line 4.
- Traces whats between the parenthesis to show in the output box.
Now CTRL+ENTER, now the output box should read "5546 - 1 = 5545"

I know my way around with flash. I have been programming for almost 2 years.

All News Posts 0 comments | Log in to comment! | Share this!