Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: can i refer to mc's programatically |
From: | Branden Hall |
Date: | Fri, 10 Mar 2000 00:59:09 GMT |
Yes, you can do this.. though the code would be structured like this:
:
Set Variable: "i" = 1
Loop While (i <= 8)
Set Property (temp, X Position) = getproperty("/br"&i, _x) - 2
Set Property (temp, Y Position) = getproperty("/br"&i, _y) + ((a/30) *
58)
Set Property (temp, Alpha) = getproperty("/br"&i, _alpha) - 5
Set Variable: "i" = i + 1
End Loop
-= Branden J. Hall
-= Multimedia Developer/Instructor
-= Fig Leaf Software
----- Original Message -----
From: Kelly, Michael <MKellycsr [dot] com [dot] au>
To: <flasherchinwag [dot] com>
Sent: Thursday, March 09, 2000 6:29 PM
Subject: FLASH: can i refer to mc's programatically
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 helpchinwag [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 helpchinwag [dot] com
Replies
FLASH: can i refer to mc's programatical, Kelly, Michael
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]