00:00
00:00
Newgrounds Background Image Theme

VCR just joined the crew!

We need you on the team, too.

Support Newgrounds and get tons of perks for just $2.99!

Create a Free Account and then..

Become a Supporter!

The Flash 'Reg' Lounge

3,046,400 Views | 60,186 Replies
New Topic Respond to this Topic

Response to The Flash 'Reg' Lounge 2008-02-13 06:17:04


At 2/13/08 06:13 AM, xTOXICxEMPIRE wrote: I'm Night-Mares fanboy :D
No, seriously. He rocks.

wewt. <3


asdfg

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 06:35:02


Argh! Flash Sucks at Floats

Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);

trace(0.1 + 0.2);

Can you believe that?

Tom-

Response to The Flash 'Reg' Lounge 2008-02-13 06:42:48


At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats

Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);

trace(0.1 + 0.2);

Can you believe that?

Tom-\

0.30000000000000004

Response to The Flash 'Reg' Lounge 2008-02-13 06:44:49


At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats

You mean like, in a festival?

Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?

Output: 0.3


asdfg

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 06:53:57


My Favourite Artists
I hate everyone and everything and only grudgingly respect people if they earn it. You can wow and dazzle me, but I'll fundamantally remember that you're all human, and worse, competition.

:)

Floatsucking

At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Argh! Flash Sucks at Floats
Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);
trace(0.1 + 0.2);
Can you believe that?
At 2/13/08 06:42 AM, As-Soul wrote: 0.30000000000000004

Schadenfreude


...

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 07:54:57


At 2/13/08 03:50 AM, Night-Mare wrote: Oh god I feel unloved. </3

Your sig is awesome <3


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 10:27:01


Flash sucks at floats

At 2/13/08 06:35 AM, The-Super-Flash-Bros wrote: Seriously. Just paste this into a new fla file and test. (I'm using CS3 at work);

trace(0.1 + 0.2);

Can you believe that?

Tom-

0.30000000000000004

Also try:

trace(1.1 + 2.2);

And:

1.2 - 1.1

Stuff like that can really bugger up a scrolling engine's smoothness if you're not careful.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 10:41:35


No it can't. Do you realise how small that is? :P

Those are entirely processor-specific, nothing to blame Flash for. Use a modulo function to correct it.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 10:59:04


What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.


Hi there!

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 11:30:04


At 2/13/08 10:41 AM, GustTheASGuy wrote: No it can't. Do you realise how small that is? :P

Trust me on this one - I do actually have some experience making stuff like this :P What looks like a small error translates into a bloody great big shudder effect when applied to stage graphics. I've not had the problem in my last few engines, but a while ago I had to work in some otherwise unnecessary rounding to the engine I was making...

At 2/13/08 10:59 AM, jmtb02 wrote: What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.

...in AS2.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:16:22


Little as3 question: What's the difference between a Number, int, and uint?


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:34:52


At 2/13/08 01:16 PM, crushy wrote: Little as3 question: What's the difference between a Number, int, and uint?

A Number is just any rational number, an int is any integer, and a uint can only be positive.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:43:42


At 2/13/08 01:34 PM, Paranoia wrote:
At 2/13/08 01:16 PM, crushy wrote: Little as3 question: What's the difference between a Number, int, and uint?
A Number is just any rational number, an int is any integer, and a uint can only be positive.

Isnt and integer: number^int? And what would happen if you gave a uint variable a negitive value?


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:49:09


At 2/13/08 01:43 PM, crushy wrote: Isnt and integer: number^int? And what would happen if you gave a uint variable a negitive value?

A rational would be a bignum over another actually. Either way, what? Numbers are floats or a mantissa with an exponent, go Wikipedia. An uint would wrap or give an exception, dunno. I don't see why you have to ask because it takes three seconds to test.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:52:34


At 2/13/08 01:43 PM, crushy wrote: Isnt and integer: number^int

Not sure what you mean there :s

And what would happen if you gave a uint variable a negitive value?

This:

Warning: 1092: Negative value used where a uint (non-negative) value is expected.

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:53:40


At 2/13/08 10:59 AM, jmtb02 wrote: What's awesome is that the Float issue only occurs in AS3. DDDDDDOWNGRADED.

Happens in both AS2/3 for me.

Other Languages

Since we are on the topic of coding. Does anyone here code much except actionscript? I know a fair amount of lua, but no c# or anything.

I'm bracing for deltas post :D.

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 13:55:32


At 2/13/08 01:53 PM, Depredation wrote: Other Languages
I'm bracing for deltas post :D.

Just C++ really.

Response to The Flash 'Reg' Lounge 2008-02-13 14:01:00


Not a big deal. If you want floats use cpp. I think as3 is trying to achieve more of a broad spectrum of programability. When it comes to more specific funtions, like arithmetic, its primary concern is being useful. How many times would you use a float to load in xml objects into an swf, or a video into an fl video player? Do you need a float to create a tabbed layout for a website portfolio? Do you need a float to have Bush beat Arnold in a fight? :P

Yah it sucks, it takes away from accuracy, but you really have to appreciate flash for its diverse ability and multi-usefulness, rather than shortcomings that might create a stutter in your flash platform video game.

Then again, if you complain to the right people they'll be able to work on it for F10...

Response to The Flash 'Reg' Lounge 2008-02-13 14:29:33


I use OCaml instead of C++. I'm so cool.
And Pascal and Python and Haxe.
I'm still, uh, 'working' on my language also.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 14:38:46


Languages

err, Java, Pascal, and C, C++, and C# but only tiny bits of each.


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 15:06:54


Gameboy!
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!

Response to The Flash 'Reg' Lounge 2008-02-13 15:10:04


At 2/13/08 03:06 PM, As-Soul wrote: Gameboy!
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!

LMAO

And detailed action script convos should be banned from the lounge...


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 15:11:59


At 2/13/08 03:10 PM, patu1 wrote:
At 2/13/08 03:06 PM, As-Soul wrote: Gameboy!
I just hooked my gameboy up to my surround sound, i dont think i've ever had such a complete mario experience!
LMAO

And detailed action script convos should be banned from the lounge...

i wish i understood them!!! i want to learn AS so bad, but without a teacher, i cannot learn any type of code!

Response to The Flash 'Reg' Lounge 2008-02-13 15:18:43


At 2/13/08 02:29 PM, GustTheASGuy wrote: I use OCaml instead of C++. I'm so cool.
And Pascal and Python and Haxe.
I'm still, uh, 'working' on my language also.

Have you thought up a name yet?

I still think "gust" would be a good name ;).

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 16:00:05


Hmmm... So, real languages. Anyone speak more than one language?

I speak OKish Spanish :P

Hola, me llamo Crushy, vivo en Bournemouth, alguin aqui espanol?


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 16:03:29


Program Languages

I know a bit of HTML. That's about it :P.

Real Languages

Je parle un peu de francais


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 16:10:02


At 2/13/08 04:03 PM, Cheektoghetto wrote: Je parle un peu de francais

Va te faire foutre!

Response to The Flash 'Reg' Lounge 2008-02-13 16:23:52


Programming languages
I know abit of AS2, CSS, Html and VB.

Languages
Petit parles les francais (I got a C in gcse, lol.)
Watashi wa chotto Nihon go desu. (Learning WJEC)


BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 16:31:56


Other languages
Completely fluent in: php, css, javascript, html, xhtml, dhtml, AS.
Know a little bit of: vbscript, pascal, C++

The only reason I know any C++ is from Delta sending me the sources to his physics engines to show off and just studying the syntax. =P


========|| WWWWWWWW>[-[Blog] - [Audio] - [Userpage] - [Flash] - [Last.fm]-]<WWWWWWWW ||========

BBS Signature

Response to The Flash 'Reg' Lounge 2008-02-13 16:35:03


At 2/13/08 04:10 PM, dELtaluca wrote:
Va te faire foutre!

Thats not nice. :(


BBS Signature