ttachMovie(imgID);
>
> imagesToGrab--;
> clearInterval(loadImgInterval);
> loadImgInterval = setInterval(loadImages, 2000, imagesToGrab);
> }
> trace("imagesLeftToLoad: " + imagesToGrab);
> trace(&
| 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
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
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
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
: [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
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
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'
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
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?
>>
] 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
>>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
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
| 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&
>>// 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
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
: [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.
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
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
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
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
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();
&
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
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++;
}
>> 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
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
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
27 matches
Mail list logo