Be a Supporter!

The Flash 'Reg' Lounge

  • 1,985,638 Views
  • 64,533 Replies
New Topic Respond to this Topic
Deathcon7
Deathcon7
  • Member since: Oct. 1, 2003
  • Offline.
Forum Stats
Member
Level 21
Writer
Response to The Flash 'Reg' Lounge 2010-02-25 19:32:34 Reply

At 2/25/10 05:52 PM, Doomsday-One wrote:
At 2/25/10 05:31 PM, Deathcon7 wrote: So, I guess AS3 doesn't support short circuiting? I ended up having to nest conditionals to achieve the effect, but that's kinda disappointing.
Really? I thought it did. And I just checked and I'm getting results suggesting it.
What are you doing to suggest that it doesn't?

I had the following:

if (boolean && function():Boolean)

Although the boolean was false, the function call was still being made.

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to The Flash 'Reg' Lounge 2010-02-25 19:59:27 Reply

At 2/25/10 07:10 PM, Archon68 wrote: WTF...

Because of that idiot who spammed here, the total number of posts is less than 55,000... FUCK

LOL


The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
Farza
Farza
  • Member since: Sep. 17, 2009
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-25 20:00:36 Reply


LOL

Good job Kirk. Now I gotta chance to get to 55,000.


I am a FAB

BBS Signature
Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2010-02-25 20:33:31 Reply

At 2/25/10 07:59 PM, Kirk-Cocaine wrote:
At 2/25/10 07:10 PM, Archon68 wrote: WTF...

Because of that idiot who spammed here, the total number of posts is less than 55,000... FUCK
LOL

Dammit. At least I have MY SIG AS EVIDENCE.

Kirk-Cocaine
Kirk-Cocaine
  • Member since: Aug. 17, 2003
  • Offline.
Forum Stats
Moderator
Level 38
Programmer
Response to The Flash 'Reg' Lounge 2010-02-25 20:46:15 Reply

At 2/25/10 08:33 PM, Archon68 wrote: Dammit. At least I have MY SIG AS EVIDENCE.

http://www.adobe.com/photoshop

There was no 50,000 post, don't believe the hype!

The water in Majorca don't taste like what it oughta.

| AS3: Main | AS2: Main | Flash Tutorials |

BBS Signature
zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-25 20:52:13 Reply

At 2/25/10 08:33 PM, Archon68 wrote: Dammit. At least I have MY SIG AS EVIDENCE.

Archon I'm happy for you and I'ma let you finish but, Wassim had the best 55 000th post of ALL TIME.


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
Starogre
Starogre
  • Member since: May. 8, 2004
  • Offline.
Forum Stats
Member
Level 18
Artist
Response to The Flash 'Reg' Lounge 2010-02-25 20:58:45 Reply

Enjoy the euphoria of post count now because you won't give a flying shit in a few years


the events are merely fictional, written, directed, and acted out by all who create them

BBS Signature
Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2010-02-25 21:20:06 Reply

Seriously, this is really fucking annoying. Someone must know what's wrong.

Doomsday-One
Doomsday-One
  • Member since: Oct. 28, 2005
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to The Flash 'Reg' Lounge 2010-02-26 03:35:43 Reply

At 2/25/10 07:32 PM, Deathcon7 wrote: I had the following:

if (boolean && function():Boolean)

Although the boolean was false, the function call was still being made.

Strange. I had something like:

var i:int = 0;
if (boolean && i++); //evaluates nothing regardless of whether 'if' statement evaluates as true or false

trace(i); //traces '0' if boolean is false, traces '1' is boolean is true

Perhaps it works differently with functions compared to post-incremental operators, but I would doubt it. Still, I'll check it out when I get back home.
On a side note, this computer is slow as fuck.

No smart-ass comments about having a slow fuck

Doomsday-One, working on stuff better than preloaders. Marginally.

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 07:06:27 Reply

At 2/25/10 09:20 PM, Archon68 wrote: Seriously, this is really fucking annoying. Someone must know what's wrong.

TBH I had a look at just now it and it's not acting the way it should... my guess is that it's either some mathy thing like multiplying by a negative or 0 or a bug of some sort... then again it's hard to make this sort of claim w/o having flash to actually meddle with it with... I'd ask delta he'd probably know

you can create the desired effect without a matrix just as easily btw

Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 07:15:46 Reply

At 2/26/10 07:06 AM, Inglor wrote: stuff I said

Also, on an unrelated not the "translate" you're doing is wrong since you're scaling it so the second translate should reflect that and it doesn't

zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 12:49:52 Reply

You learn things everyday

Today i learned what the ?: operator does.
I feel like an idiot for not knowing it earlier but better late than never :P

What have you learned today or this week ?


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
Inglor
Inglor
  • Member since: Jan. 26, 2003
  • Offline.
Forum Stats
Member
Level 17
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 12:56:32 Reply

At 2/26/10 12:49 PM, zrb wrote: Today i learned what the ?: operator does.

I wrote a tutorial about that :) you can live perfectly fine not knowing what it does though

zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 13:07:11 Reply

At 2/26/10 12:56 PM, Inglor wrote:
At 2/26/10 12:49 PM, zrb wrote: Today i learned what the ?: operator does.
I wrote a tutorial about that :) you can live perfectly fine not knowing what it does though

Really ? I can't seem to find it.
Well there are a lot of time I would actually write the long "if else" way so it would've been useful then but I guess its not that important :P


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
doctormario
doctormario
  • Member since: Jan. 30, 2009
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 13:10:31 Reply

@ anybody on N. America's left coast...

Anyone going to the Emerald City Comicon, in Seatlle, on Mar. 13th?

Just curious.

:)


BBS Signature
dELtaluca
dELtaluca
  • Member since: Apr. 16, 2004
  • Offline.
Forum Stats
Member
Level 20
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 15:31:27 Reply

OMG OMG OMG

hahahahaha. immense.

http://stewdio.org/pong/


using ShamelessPlug; NapePhysicsEngine.advertise();

BBS Signature
El-Presidente
El-Presidente
  • Member since: Jun. 2, 2005
  • Offline.
Forum Stats
Member
Level 27
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 15:37:22 Reply

At 2/26/10 03:31 PM, dELtaluca wrote: OMG OMG OMG
hahahahaha. immense.
http://stewdio.org/pong/

Expand yours :)

Also, least favorite line of all time:
"But what's the point of that game, there's no end!"
IT'S A FUCKING ENGINE!


MY E-PENIS IS BIGGER THAN YOURS
8=================================>
...and this is my fag...

BBS Signature
Doomsday-One
Doomsday-One
  • Member since: Oct. 28, 2005
  • Offline.
Forum Stats
Member
Level 10
Programmer
Response to The Flash 'Reg' Lounge 2010-02-26 16:38:15 Reply

At 2/25/10 07:32 PM, Deathcon7 wrote: I had the following:

if (boolean && function():Boolean)

Although the boolean was false, the function call was still being made.

Just tested with:

function test():Boolean {
	trace("function called");
	return false;
}
if (false && test()) ; //traces nothing when executed
//When the false in the 'if' statement is replaced with true, traces "function called"

I can't see what the problem is. Perhaps you should have another look at your code?

At 2/26/10 03:31 PM, dELtaluca wrote: hahahahaha. immense.

Heh, that's pretty novel.

And damn, my 'u' key on my keyboard has started to fall off. I hate it when that happens.


Doomsday-One, working on stuff better than preloaders. Marginally.

Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2010-02-26 17:18:41 Reply

At 2/26/10 12:56 PM, Inglor wrote:
At 2/26/10 12:49 PM, zrb wrote: Today i learned what the ?: operator does.
I wrote a tutorial about that :) you can live perfectly fine not knowing what it does though

It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.

Deathcon7
Deathcon7
  • Member since: Oct. 1, 2003
  • Offline.
Forum Stats
Member
Level 21
Writer
Response to The Flash 'Reg' Lounge 2010-02-26 17:51:20 Reply

At 2/26/10 04:38 PM, Doomsday-One wrote: ...

Thanks for the follow-up. I spoke to Gust last night and figured it out. I was blaming the issue on short circuiting but it was something else that happened to get resolved by nesting the conditional. To confirm, yah, short circuiting is go.

Sam
Sam
  • Member since: Oct. 1, 2005
  • Offline.
Forum Stats
Moderator
Level 19
Programmer
Response to The Flash 'Reg' Lounge 2010-02-26 18:09:18 Reply

At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.

Further explain to a AS noob plz

Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 18:15:12 Reply

At 2/26/10 12:49 PM, zrb wrote: You learn things everyday

Today i learned what the ?: operator does.
I feel like an idiot for not knowing it earlier but better late than never :P

What have you learned today or this week ?

Also, did you know instead of doing num -= 1 you can just do num --?

I wrote a tutorial about that :) you can't live at all not knowing what it does though

ahhhh good old AS: Main

BBS Signature
meneldil
meneldil
  • Member since: May. 27, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 18:16:14 Reply

At 2/26/10 06:09 PM, Sam wrote:
At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.
Further explain to a AS noob plz

Basically it's an expression like this:

logical_expression : return_this_value_if_true ? return_this_value_if_false

Example use:

var lightIsOn:Boolean = false;
trace(lightIsOn ? "It's bright in here." : "It's very dark. You are likely to be eaten by a grue...");
//will trace the second string

Indescriptive topic names have left me in despair!

meneldil
meneldil
  • Member since: May. 27, 2004
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 18:21:29 Reply

At 2/26/10 06:16 PM, meneldil wrote:
At 2/26/10 06:09 PM, Sam wrote:
At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.
Further explain to a AS noob plz
Basically it's an expression like this:

logical_expression : return_this_value_if_true ? return_this_value_if_false

Forgive me and my lack of sleep. I meant:
logical_expression ? return_this_value_if_true : return_this_value_if_false


Indescriptive topic names have left me in despair!

zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 19:05:38 Reply

At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.

Actually that's a very useful thing, I just turned around 10 lines of code into one thanks to that !


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 19:11:40 Reply

At 2/26/10 06:09 PM, Sam wrote: Further explain to a AS noob plz

Meneldil basically explained it, here's how you could used it in practice:

trace( SamsPosts>2000?"yes":"no") 
//ouput: yes

School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
Toast
Toast
  • Member since: Apr. 2, 2005
  • Offline.
Forum Stats
Member
Level 09
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 19:13:37 Reply

At 2/26/10 06:21 PM, meneldil wrote: Forgive me and my lack of sleep. I meant:
logical_expression ? return_this_value_if_true : return_this_value_if_false

it doesn't return any values. also, the latter should be "if not true" aka "else". "not true" is not equivalent to "false". so much for your "logical expressions"


BBS Signature
Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2010-02-26 19:52:37 Reply

At 2/26/10 07:05 PM, zrb wrote:
At 2/26/10 05:18 PM, Archon68 wrote: It avoids having to use pointless if/else statements to define variables, though, which is pretty damn useful.
Actually that's a very useful thing, I just turned around 10 lines of code into one thanks to that !

I wasn't being sarcastic. It is very useful and I use it all the time.

WINDOWS XP
Windows XP deleted the Administrator account on my computer for some reason. Apparently the user account file is corrupt. WTF.

The worst part? It was the only Administrator account on my computer, and it reset itself to a limited account, so now I have absolutely no (easy) way of accessing Control Panel, my hard drive, or anything else that would possibly help me fix this.

What the fuck, Windows XP? You make me want to upgrade to Windows 7.

zrb
zrb
  • Member since: Aug. 8, 2006
  • Offline.
Forum Stats
Member
Level 11
Blank Slate
Response to The Flash 'Reg' Lounge 2010-02-26 20:06:38 Reply

At 2/26/10 07:52 PM, Archon68 wrote: I wasn't being sarcastic. It is very useful and I use it all the time.

My mistake, meant to quote Inglor.


School Sux ! || As :Main || As3: Main || Animation: Main || Flash Tutorials ||

BBS Signature
Archawn
Archawn
  • Member since: Sep. 9, 2007
  • Offline.
Forum Stats
Member
Level 27
Game Developer
Response to The Flash 'Reg' Lounge 2010-02-26 20:37:06 Reply

I am seriously considering buying Windows 7.