00:00
00:00
Newgrounds Background Image Theme

wilwz 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!

As:Bad Ideas

11,827 Views | 67 Replies
New Topic Respond to this Topic

Response to As:Bad Ideas 2005-12-07 11:29:51


At 12/7/05 11:20 AM, Santazien wrote:
At 12/7/05 11:14 AM, ZYX3D wrote: while(true){trace("While on")}; trace("while ended");
Just save all your work before you try that one.

Not quite needed. With a bit of patience, you'll end up with the message "Some script is causing Flash to run slowly. Do you want to abort the script?" or whatsoever, then press "Yes". If you don't, you've got more chances. Flash is hard to crash.

Bad point is, this message also appears when the code is proper, but just stressful. Then you must come up with counters and onEnterFrames. Annoying. Really annoying.

Response to As:Bad Ideas 2005-12-07 11:33:15


At 12/7/05 11:29 AM, ZYX3D wrote: Not quite needed. With a bit of patience, you'll end up with the message "Some script is causing Flash to run slowly. Do you want to abort the script?" or whatsoever, then press "Yes". If you don't, you've got more chances. Flash is hard to crash.

Bad point is, this message also appears when the code is proper, but just stressful. Then you must come up with counters and onEnterFrames. Annoying. Really annoying.

I still always recommend saving your work before trying something like that =)
If your computer is slow, Flash might not have time to abort the script.


BBS Signature

Response to As:Bad Ideas 2005-12-07 11:36:27


At 12/7/05 11:22 AM, Inglor wrote: getURL("ping www.newgrounds.com");

Yeah, this is the proper command:

getEXE("C:\\Documents and Settings\\[user]>ping \'newgrounds.com\'");


Sup, bitches :)

BBS Signature

Response to As:Bad Ideas 2005-12-07 15:39:56


Example of for loops :Warning:

Clicksonlink ? compcrashed: fastcomputer || player_has_notice_of_slow_script

Response to As:Bad Ideas 2005-12-07 15:41:55


Correct link. Just remember my notice above.

Response to As:Bad Ideas 2005-12-07 16:08:29


At 12/7/05 11:29 AM, ZYX3D wrote: Not quite needed. With a bit of patience, you'll end up with the message "Some script is causing Flash to run slowly. Do you want to abort the script?" or whatsoever, then press "Yes". If you don't, you've got more chances. Flash is hard to crash.

not always. My flash has crashed lots of times because i put in a while(); loop incorrectly. And... well, i let my comp on for about an hour, and returned. Flash was still blank. heh... good thing i save every single line I type/draw. ^_^

CTRL + S is almost broken in my keyboard...

Response to As:Bad Ideas 2005-12-07 16:14:28


At 12/7/05 11:36 AM, -Christmas- wrote: getEXE("C:\\Documents and Settings\\[user]>ping \'newgrounds.com\'");

getEXE :P? flash's security box would never allow that, if anything you'd have to use the file:// protocol, and hope the user is an unprotected dumbass

Response to As:Bad Ideas 2005-12-07 17:03:07


At 12/7/05 04:14 PM, Inglor wrote: getEXE :P? flash's security box would never allow that, if anything you'd have to use the file:// protocol, and hope the user is an unprotected dumbass

It was a joke Benjamin :D


Sup, bitches :)

BBS Signature

Response to As:Bad Ideas 2005-12-07 17:29:04


At 12/7/05 03:39 PM, GameCubeFreak2004 wrote: Clicksonlink ? compcrashed: fastcomputer || player_has_notice_of_slow_script

So, if you click the link your computer crashes, but if you don't click the link you either have a fast computer or have a notice of a slow script? =P


BBS Signature

Response to As:Bad Ideas 2005-12-08 15:10:06


At 12/7/05 05:29 PM, Santazien wrote:
At 12/7/05 03:39 PM, GameCubeFreak2004 wrote: Clicksonlink ? compcrashed: fastcomputer || player_has_notice_of_slow_script
So, if you click the link your computer crashes, but if you don't click the link you either have a fast computer or have a notice of a slow script? =P

Correctly:

clicksonlink && slowcomp || !notice_of_slow_script ? fucked : smart

Response to As:Bad Ideas 2005-12-17 10:59:45


At 12/7/05 04:14 PM, Inglor wrote:
At 12/7/05 11:36 AM, -Christmas- wrote: getEXE("C:\\Documents and Settings\\[user]>ping \'newgrounds.com\'");
getEXE :P? flash's security box would never allow that, if anything you'd have to use the file:// protocol, and hope the user is an unprotected dumbass

Well, most people with a computer and Internet have a firewall, but unless you can supply a good reason for them to turn it off.....

Response to As:Bad Ideas 2005-12-17 11:14:09


AS: Bad Ideas = Good Idea;


BBS Signature

Response to As:Bad Ideas 2006-01-12 23:08:42


You crashed my comp (I'm curious, ok?) It's amazing how only a few lines can be so malicious...Kudos ^^

Response to As:Bad Ideas 2006-02-05 09:22:21


At 12/7/05 03:41 PM, GameCubeFreak2004 wrote: Correct link. Just remember my notice above.

Sorry, but my old Yahoo! account was deleted, I'll get it up on Putfile in a little bit.

Response to As:Bad Ideas 2006-02-05 09:40:46


To see the bad for loop go here

Response to As:Bad Ideas 2006-02-05 10:52:46


Bad idea: coding without good version control ...

Response to As:Bad Ideas 2006-02-11 23:25:07


the most annoying mistake i do is with my for loops

for(i=0;1<10;i++) {

or sometimes i do

for(i=0;i<10;1++) {

it's hard to catch because 1 and i kind of look alike. i dunno how i manage to mess up 1 and i though \:


snyggys

Response to As:Bad Ideas 2006-02-11 23:45:34


At 2/5/06 09:40 AM, GameCubeFreak2004 wrote: To see the bad for loop go here

lollers, i got to 173,018 before it froze.


snyggys

Response to As:Bad Ideas 2006-03-28 21:10:51


********** my computer crashed because of you......wait im still here....nvm

Response to As:Bad Ideas 2006-03-28 21:18:12


At 12/5/05 04:06 PM, -dELta- wrote: to create the same function as random(#) would be Math.round(Math.random()*#) (# is an integer)

cant you just do getTimer()%#

Response to As:Bad Ideas 2006-03-28 21:21:01


At 2/11/06 11:45 PM, 2k_rammerizkool wrote:
At 2/5/06 09:40 AM, GameCubeFreak2004 wrote: To see the bad for loop go here
lollers, i got to 173,018 before it froze.

HA! 285365

Response to As:Bad Ideas 2006-03-28 22:10:43


At 3/28/06 09:21 PM, ImpotentBoy2 wrote:
At 2/11/06 11:45 PM, 2k_rammerizkool wrote:
At 2/5/06 09:40 AM, GameCubeFreak2004 wrote: To see the bad for loop go here
lollers, i got to 173,018 before it froze.
HA! 285365

Booo! I only got 252335


Writer @ www.Johnrickett.com

Response to As:Bad Ideas 2006-04-19 12:44:41


Just wondering, is Key.isDown(Key.SPACE) == false the same as !Key.isDown(Key.SPACE) ?

Response to As:Bad Ideas 2006-04-19 13:36:07


At 3/28/06 09:18 PM, ImpotentBoy2 wrote:
At 12/5/05 04:06 PM, -dELta- wrote: to create the same function as random(#) would be Math.round(Math.random()*#) (# is an integer)
cant you just do getTimer()%#

Looks a lot neater, you gotta admit.


BBS Signature

Response to As:Bad Ideas 2006-05-09 15:25:42


I beat all of you!! I got 303798!! Try and beat that!!

Response to As:Bad Ideas 2006-05-09 15:38:21


537877

Response to As:Bad Ideas 2006-05-09 15:41:06


At 4/19/06 12:44 PM, KeshiDragon wrote: Just wondering, is Key.isDown(Key.SPACE) == false the same as !Key.isDown(Key.SPACE) ?

No, it's the same as

Key.isDown(Key.SPACE)===false

But yeah, it checks if the key is not down.


Sup, bitches :)

BBS Signature

Response to As:Bad Ideas 2006-05-09 15:51:45


rofl 0
my comp just refused to open the link it just stoped responding XD

Response to As:Bad Ideas 2006-05-09 15:55:43


Heres a while loop that won't crash flash fully if you're patient enough :)

while(true){
if(random(1000)==98){
break;
}
}
trace("Yey, that was pointless wasn't it!");


Sup, bitches :)

BBS Signature

Response to As:Bad Ideas 2006-05-09 17:36:18


Bad Idea: Recursion.
recursion can be a bad idea, but luckily flash recognises if the loop is recusing over 255 times.
recursion is when you do something like:
function blah(){
blah();
}
blah();

so the function calls itself again and again and again. it's pretty much the same as using a while loop, just flash is ready to see if it's an infinate loop.


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

BBS Signature