Flasher Archive

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


Subject: FLASH: can i refer to mc's programatically
From: Kelly, Michael
Date: Fri, 10 Mar 2000 00:14:35 GMT

i have 8 smaller mc's in my main mc, what i want to do is drop them away as
if by gravity. If each mc has an instance name of br1, br2, br3, ... , br8
can i do a loop that will just move each one down a little rather than doing
the code for each individually?

i.e.
this is the code to drop away one mc
Set Variable: "a" = a + 1
Set Property ("br1", X Position) = getproperty("br1",_x) - 2
Set Property ("br1", Y Position) = getproperty("br1",_y) + ((a/30) * 58)
Set Property ("br1", Alpha) = getproperty("br1",_alpha) - 5

then it goes to the next frame which has the action script

go to 1 (previous frame)

can i do something like:

Set Variable: "i" = "0"
Loop While (Eval (i) < 8)
Set Variable: "a" = a + 1
Set Variable: "temp" = "br"&i
Set Property (temp, X Position) = getproperty(temp,_x) - 2
Set Property (temp, Y Position) = getproperty(temp,_y) + ((a/30) * 58)
Set Property (temp, Alpha) = getproperty(temp,_alpha) - 5
End Loop


i'm pretty sure this is wrong but i'm just trying to convey the idea

mick
'Underwear is underwear wherever you buy it.'
Rain Man

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: can i refer to mc's programat, Branden Hall

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