00:00
00:00
Newgrounds Background Image Theme

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

Response to AS: While 2005-07-22 16:34:01


if you want to use while scripts safely put a "or cap" on it.
something like this
wcount=0
while ("put condition here" or wcount>100) {
wcount>=100 ? trace("its laggeh") : wcount++
//put your scripts here.
}

STILL SAVE BEFORE RUNNING IT!!! just incase you typed something wrong or something goes horribly horribly wrong. it just helps a LOT for testing and you can probably remove it or make the wcount higher when youre done. and even with no while testing still save before testing anything at all. and regularly make backup FLA files incase something gets corrupted (ive lost lots because of file corruption)

Response to AS: While 2005-07-22 16:39:00


or get a mac.

Response to AS: While 2005-07-22 16:43:35


At 7/22/05 04:39 PM, Glaiel_Gamer wrote: or get a mac.

We don't allow antichrists on this board.

Grr.

<3

Sup, bitches :)

BBS Signature

Response to AS: While 2005-07-22 17:08:57


i hate when flash cant recognize infinite loops right off the bat...i always make the same stupid mistake when i make a for loop..

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

i hate that -_-


snyggys

Response to AS: While 2005-07-22 17:53:08


At 7/22/05 04:39 PM, Glaiel_Gamer wrote: or get a mac.

HAHAHAHAHAHAHAHAHAHAAAAAAAA
HAHAHHAAAAAA
HAHAHAHAAAhAHAHAHhahahaha
hahahah
hahaha
haaaaaaaaaa
HAHAHAHAHAHAHAHAAAAAAA
ha
haha
ha

no.


- - Flash - Music - Images - -

BBS Signature

Response to AS: While 2005-07-22 18:15:08


At 7/22/05 05:53 PM, Denvish wrote:
At 7/22/05 04:39 PM, Glaiel_Gamer wrote: or get a mac.
HAHAHAHAHAHAHAHAHAHAAAAAAAA
HAHAHHAAAAAA
HAHAHAHAAAhAHAHAHhahahaha
hahahah
hahaha
haaaaaaaaaa
HAHAHAHAHAHAHAHAAAAAAA
ha
haha
ha

no.

WHY NOT! WHy is everyone so afraid of getting a good computer? Are they afraid of the computer not crashing every 2 seconds? Did they spend to much on virus protection to just through it away cause they don't need it? WHY DO PEOPLE HATE MACS!?!???????

Response to AS: While 2005-07-22 18:20:03


At 7/22/05 06:17 PM, -KhAo- wrote:
At 7/22/05 06:15 PM, Glaiel_Gamer wrote:
WHY NOT! WHy is everyone so afraid of getting a good computer? Are they afraid of the computer not crashing every 2 seconds? Did they spend to much on virus protection to just through it away cause they don't need it? WHY DO PEOPLE HATE MACS!?!???????
coz they eat donkey balls... and they have a 1-button-no-right-click-no-scroll mouse

but if you plug a right click mouse into it it WOULD WORK! Control-click is the SAME as right-click

Response to AS: While 2005-07-22 19:03:47


This is going waaaaaaaaaay off-topic, but it's a compatibility issue for me; pretty much EVERY program (apart from maybe 2) is compatible with Windows; whereas the number of programs that will work with a MAC is limited. I have to admit, I've never actually tried one, but I've heard plenty of complaints about (lack of) application compatibility, and that's enough to put me off.

As for virus protection and crashing, my PC has crashed twice (not irrepairably) in the three years since I got XP, and I have enough know-how to never get virii on my machine. The kind of PC users who let Windows get to the stage where it dies through infection or bad organisation would probably kill a MAC in about 3 hours.


- - Flash - Music - Images - -

BBS Signature

Response to AS: While 2005-07-22 19:10:52


At 7/22/05 07:03 PM, Denvish wrote: This is going waaaaaaaaaay off-topic, but it's a compatibility issue for me; pretty much EVERY program (apart from maybe 2) is compatible with Windows; whereas the number of programs that will work with a MAC is limited. I have to admit, I've never actually tried one, but I've heard plenty of complaints about (lack of) application compatibility, and that's enough to put me off.

As for virus protection and crashing, my PC has crashed twice (not irrepairably) in the three years since I got XP, and I have enough know-how to never get virii on my machine. The kind of PC users who let Windows get to the stage where it dies through infection or bad organisation would probably kill a MAC in about 3 hours.

Even so, there's a $100 program to make all the PC programs run on mac.

Also, you have to enter a password to install ANYTHING, so viruses aren't a problem.

13000 for PC
63 for Mac

Response to AS: While 2005-07-22 19:42:27


At 7/22/05 07:35 PM, -KhAo- wrote:
At 7/22/05 07:10 PM, Glaiel_Gamer wrote:
13000 for PC
63 for Mac
thats the score? well you know why we choose PC!!

that's the number of viruses

Response to AS: While 2005-07-23 01:18:45


At 7/22/05 07:42 PM, Glaiel_Gamer wrote:
At 7/22/05 07:35 PM, -KhAo- wrote:
At 7/22/05 07:10 PM, Glaiel_Gamer wrote:
13000 for PC
63 for Mac
thats the score? well you know why we choose PC!!
that's the number of viruses

The off topic is killing me, but I can't resist jumping in

PC has more viruses because guess what, a ton more people use PC's. If PC's and Macs had the same user base they'd have the same viruses too.

I really have nothing against macs at all, it's just that I've used PC's all my life and have had no problems, I don't see the need to jump over to MAC and work with something unfamiliar.


BBS Signature

Response to AS: While 2005-07-23 02:21:50


IF you are going to make an endless loop! at least make a pretty one

function iAmAN00b(){
trace("OMGWTF1337!!!!!");
iAmAN00b();
}

Response to AS: While 2005-07-23 13:12:00


It's for things like this that I hate AS:

while (69 or YOUR_MOM)
{
trace("WTF!?");
}

That is a functional endless loop, although it should give you hundreds of errors.

Response to AS: While 2005-07-23 13:37:21


At 7/23/05 01:18 AM, Afro_Ninja wrote: I really have nothing against macs at all, it's just that I've used PC's all my life and have had no problems, I don't see the need to jump over to MAC and work with something unfamiliar.

Same here, and viruses aren't really a problem because there are enough free programs out there to protect a PC from anything, at all. If you download all the free virus detection and ad-ware stoppers, spyware detectors, etc. then you are covered.

Firefox helps too.

Response to AS: While 2005-09-06 10:46:03


At 7/23/05 01:37 PM, Lialtm wrote:
At 7/23/05 01:18 AM, Afro_Ninja wrote: I really have nothing against macs at all, it's just that I've used PC's all my life and have had no problems, I don't see the need to jump over to MAC and work with something unfamiliar.
Same here, and viruses aren't really a problem because there are enough free programs out there to protect a PC from anything, at all. If you download all the free virus detection and ad-ware stoppers, spyware detectors, etc. then you are covered.

yes but the whole point is that you shouldn't have to bother doing that.withh a mac you don't.As for the one-buttoned mouse i use a mighty mouse by apple which has two and a scroll ball,but any pc mouse will work.All the software i need is on mac: MS office, flash , photoshop, itunes and windows media player and a lot of apps are mac only like garageband.

Response to AS: While 2005-09-06 10:46:58


At 9/6/05 10:46 AM, -memartyo- wrote: Some stuff

Are you reading all my AS threads?


- Matt, Rustyarcade.com

Response to AS: While 2005-09-06 11:15:55


At 9/6/05 10:46 AM, -memartyo- wrote: crap

Lol, I'm surprised you can get microsoft programs on a mac.

Response to AS: While 2005-09-10 13:08:41


At 7/22/05 03:41 PM, Inglor wrote: nonono

onEnterFrame triggers ONCE every 1/fps seconds

while triggers continusly untill the condition is reached

So... it's basicly running as fast as your cpu will allow? Or is it occupying every possible point at the same time... :S


BBS Signature

Response to AS: While 2005-09-10 13:10:47


At 9/10/05 01:08 PM, EggKnight wrote: So... it's basicly running as fast as your cpu will allow?

Yup.

Response to AS: While 2005-09-10 13:10:58


Ah shit I shouldve checked the date on that last post. Bugger.


BBS Signature

Response to AS: While 2006-03-27 14:05:01


how do u make ur ani stop at the end of it instead of it keep repeating

Response to AS: While 2006-03-27 15:03:06


Do you mean
while (a==true){
_X+=10;
}


Our growing dependence on laws only shows how uncivilized we are.

Response to AS: While 2006-03-27 16:34:59


At 3/27/06 02:05 PM, natu15 wrote: how do u make ur ani stop at the end of it instead of it keep repeating

Correct me if I'm wrong but I think you can use the break command for that...

while(condition){ //starts the while loop
if(condition){ //if something happens...
break // then the while loops stops
}
statement //otherwise do this for the while loop
} //end while

I don't use the break command often but I am pretty sure that is how it's done...

Response to AS: While 2006-03-27 17:38:12


At 7/22/05 04:17 PM, Khao wrote:
At 7/22/05 04:14 PM, Afro_Ninja wrote: I save constantly. And I mean CONSTANTLY.

new symbol? save
modified one line of code? save
moved something? save

ctrl +s is almost broken on my keyboard
lolll I save a lot too, even sometimes I havent changed anything I save cause I think I changed something XD

but to stay in topic, basically, while is only a loop of "if" right?
would do the same to make
for(...){
if(...){
...
}
}
?

not really, its more like for(null ; condition ; null){}
it may not seem different but think of it like

i=0
while(i%2&&i<100){
i++
}
would not be the same as

for(i=0;i<100;i++){
if(1%2){
...
}
}

Response to AS: While 2006-03-27 17:39:52


At 7/22/05 04:39 PM, Satan cursed the boards by saying:

or get a mac.

windows stops it too. he just has a slow computer so it takes a long time for the error to pop up.

Response to AS: While 2006-03-27 17:50:40


keep in mind that by making this, you will make alot of people crash when they mess up with an endless loop. what youre doing is giving purified uranium to infants, and while the stuff can be powerful, it can blow then straight to hell.

nice AS: thread btw.

wow im bored.

Response to AS: While 2006-04-16 14:11:32


So a while-loop is just a boolean comparison with an action added to the 1 and 0 values?

1 being true and 0 being false.

Response to AS: While 2006-07-07 11:35:36


add this code to your Flash file

devil=666;
while(devil==666){
a=Math.cos(3847);
b=Math.sin(36598);
c= Math.sqrt(a*a+b*b);
d=Math.tan(c);
e=Math.sqrt(a*b*c*d);
}

fucks up the comp compleetly!!

Response to AS: While 2007-08-02 05:30:09


LOL

while loops are really useful!
Because they are a loop, they can be used in games to stop a character bouncing against a wall or floor. The number of times they are needed in a SSBM game is incredible

OH heres a trick. If you have to put an if(){ statement in a while(){ loop and the if is an infinite loop, such as:
while(_root.bob.hitTest(_root.bill)){
if(a < 100){
// shit happens
}
}

doing it like that will crash, but if you do it like this:
if(a < 100){
while(_root.bob.hitTest(_root.bill)){
// shit happens
}
}

it will work just as well (i think)


BBS Signature

Response to AS: While 2007-08-02 05:39:04


here's a nice thing you might want to know, I believe it's AS3 only.

loop1 : while (condidtion) {
loop2: while (condition) {
if (condition) {
break loop1;
}
}
}

this way, you can make a while loop inside another while loop, and instead of breaking the inner loop only, you can break the outer loop by labeling it.