Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: FLASH: Re: duplicating dots (was blank)
From: Nathan Dicken
Date: Wed, 15 Mar 2000 21:03:13 GMT

Scott,

Your new duplicated dots are being placed in the same location each time,
not 20px over from each new dot. Also, being that x = 2 to start out with
and your incrementing it by two each time through the loop, you're only
going to get four dots. You could change it to be something like this...

Set Variable: "x" = "1"
Set Variable: "maxDots" = "10"
Loop While (x < maxDots)
Duplicate Movie Clip ("dot"&x, "dot"&(x+1), 1)
Set Property ("dot"&(x+1), Y Position) = getProperty("dot"&x,_y) + 20
Set Variable: "x" = x+1
End Loop

Hope that helps...

Nathan Dicken
Fusionary Media



>What is wrong with this loop? I am trying to take a MC(in this case a dot)
>and make 9 copies spaced 20px apart. Something is up with the loop. It makes
>one copy and moves it then x jumps to 10 and the loop stops running. What
>have I done wrong?
>
>
>Here is my code:
>Set Variable: "x" = 2
>Set Variable: "ypos" = GetProperty ("/dot1",_y)
>Loop While (x < 10)
> Duplicate Movie Clip ("/dot1", "dot"&x, 1)
> Set Property ("dot"&x, Y Position) = ypos + 20
> Set Variable: "x" = x + 2
>End Loop
>
>
>
>
>Scott Jeppesen
>Programmer
>University Access
>6255 Sunset Boulevard, Suite 801
>Los Angeles, CA 90028
>(323)460-2149
>http://www.universityaccess.com
>
>
>flasher is generously supported by...
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> flashforward2000 and The Flash Film Festival
> "The World�s Premier Flash Solutions Conference and Expo"
> March 27-29, Nob Hill Masonic Center, San Francisco, California
>
>-Register before Feb 25 and save $200!!-- www.flashforward2000.com
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>To unsubscribe or change your list settings go to
>http://www.chinwag.com/flasher or email helpatchinwag [dot] com



flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and The Flash Film Festival
"The World�s Premier Flash Solutions Conference and Expo"
March 27-29, Nob Hill Masonic Center, San Francisco, California

-Register before Feb 25 and save $200!!-- www.flashforward2000.com
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  RE: FLASH: Re: duplicating dots (was bla, Scott Jeppesen

Replies
  No Subject, Scott Jeppesen

[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]