Re: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-02 Thread Mark Winterhalder
ttachMovie(imgID); > > imagesToGrab--; > clearInterval(loadImgInterval); > loadImgInterval = setInterval(loadImages, 2000, imagesToGrab); > } > trace("imagesLeftToLoad: " + imagesToGrab); > trace(&

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-02 Thread Corban Baxter
|  rich media designer  |  www.funimation.com -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Corban Baxter Sent: Thursday, February 02, 2006 10:45 AM To: flashcoders@chattyfig.figleaf.com Subject: RE: [Flashcoders] understanding the for

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-02 Thread Corban Baxter
PROTECTED] On Behalf Of Andreas Rønning Sent: Wednesday, February 01, 2006 6:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED. ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-02 Thread Corban Baxter
PROTECTED] On Behalf Of Andreas Rønning Sent: Wednesday, February 01, 2006 6:25 PM To: Flashcoders mailing list Subject: Re: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED. I'm way, way too sleepy to pretend that i can give you any advice on your actual problem, but i CAN giv

Re: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-01 Thread Andreas Rønning
I'm way, way too sleepy to pretend that i can give you any advice on your actual problem, but i CAN give you advice on your AS form. Please dude, for the sake of your brain cells, start using strict typing and local variables, and when you can, lose the myMethod = function(param) syntax. Semanti

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-01 Thread Corban Baxter
: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED. That would be great I'd love to see other approaches to this. But things are looking up I simplified that function into the one before it and it works fine. I am hoping to get this working fairly shortly. If so I will send you the

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-01 Thread Corban Baxter
ban Baxter  |  rich media designer  |  www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 5:48 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding th

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-01 Thread Merrill, Jason
February 01, 2006 6:42 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED. >> >>Well it's kind of working. I'd love to have some help on this to get me >>going correctly. So with that said I'

RE: [Flashcoders] understanding the for loop - EXTENDED HELP NEEDED.

2006-02-01 Thread Corban Baxter
Well it's kind of working. I'd love to have some help on this to get me going correctly. So with that said I'll try and explain what this is. Ok so we are creating a screensaver that has 5 img layouts/templates with different numbers of images per layout but they have empty MC's in place to place

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
dnesday, February 01, 2006 6:03 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop >> >>Yeah I know. I just meant what is wrong with me having fnctions that call >>functions etc? Do I have a better way to do something like this? >>

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 4:41 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop >>Jason could you possibly help me off list on a better way to throw this stuff >>around? I am really in the dark here and it would be

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
>>Jason could you possibly help me off list on a better way to throw this stuff >>around? I am really in the dark here and it would be a huge help if you could >>explain a better way to format this. Or anyone for that matter. Thanks! Nah, don't be silly. ;) I spent a little more digging and found

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
Corban Baxter Sent: Wednesday, February 01, 2006 4:36 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop Jason could you possibly help me off list on a better way to throw this stuff around? I am really in the dark here and it would be a huge help if you could

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
  |  www.funimation.com -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 4:32 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop >>// and I really need to learn OOP and AS2 I&

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
>>// and I really need to learn OOP and AS2 I'm sure life would be a lot >>//easier. Maybe, though the problems you're having aren't really related to any issue that OOP would fix - this is more plain old calling functions, passing parameters, etc. Jason Merrill | E-Learning Solutions | ic

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
MAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Adrian Lynch >>Sent: Wednesday, February 01, 2006 5:23 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop >> >>What ARE you on about? :OD >> >>Adri

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
: [EMAIL PROTECTED] [mailto:flashcoders- >>[EMAIL PROTECTED] On Behalf Of Corban Baxter >>Sent: Wednesday, February 01, 2006 5:20 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop >> >>In a world. In a time. Wait that is weird.

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Adrian Lynch
What ARE you on about? :OD Adrian Lynch | Stuff | adrianlynch.co.uk -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Merrill, Jason Sent: 01 February 2006 22:12 To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop By

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
myMC = "lay" + layoutNum + "_img" + clipNum; clipNum++; } selectLayoutNum(); stop(); [/code] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason Sent: Wednesday, February 01, 2006 4:12 PM To: Flashcoders mailing list

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
By the way, with that e-mail signature line of yours, I feel like I am talking to my alter-self from a parallel universe. Jason Merrill | E-Learning Solutions | icfconsulting.com Jason so its bad to use this old way of random huh? Corban Baxter | rich media desig

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
ry 01, 2006 5:03 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop >> >>Jason so its bad to use this old way of random huh? >> >>Corban Baxter  |  rich media designer  |  www.funimation.com >> >> &g

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
dnesday, February 01, 2006 4:56 PM >>To: Flashcoders mailing list >>Subject: RE: [Flashcoders] understanding the for loop >> >>Here is a better idea of what I need I think I posted the code off a little... >> >>[code] >>imgArray = new Array(); &

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
mailing list Subject: RE: [Flashcoders] understanding the for loop >> img = random(imagesToGrab)+1; Yeah - first part of is probably that your use of random is... well... incorrect. Math.random() retruns a random number of 0.0 or between 0.0 and 1.0. You should convert it to a whole number

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
L PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Adrian Lynch Sent: Wednesday, February 01, 2006 3:44 PM To: Flashcoders mailing list Subject: RE: [Flashcoders] understanding the for loop You're not incrementing imagesToGrab anywhere. for (...) { . imagesToGrab++; }

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Merrill, Jason
>> img = random(imagesToGrab)+1; Yeah - first part of is probably that your use of random is... well... incorrect. Math.random() retruns a random number of 0.0 or between 0.0 and 1.0. You should convert it to a whole number first. function getRandom(min:Number, max:number){ return mi

RE: [Flashcoders] understanding the for loop

2006-02-01 Thread Adrian Lynch
oders] understanding the for loop Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i<=imagesToGrab; i++){ randomSet = random(totalSet

[Flashcoders] understanding the for loop

2006-02-01 Thread Corban Baxter
Ok guys I am working with this for loop to help me grab random images. My problem is it seems like the for loop won't reset and random var each time it runs. Below is my code... [code] for(i=0; i<=imagesToGrab; i++){ randomSet = random(totalSetsNLayout) + 1; img = random(imagesTo