Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | FLASH: Help with a short ActionScript |
| From: | Shelley Story |
| Date: | Mon, 14 Aug 2000 09:47:06 +0100 |
I am trying to make a movie clip that will "shake" its
parent MC, i.e. change the X position to X + 15 and x -15
in rapid succession.
I have created the MC ("shaker") and placed it in the time-
line of the parent MC. However, I know I've done something(s?)
wrong because when I export, the parent MC does no shaking
whatsoever.
Can anyone look at the code for "shaker" and tell me what I'm
doing wrong?
Thanks,
shelley
shelley
----------------
Here's the code:
Set Variable: "count" = "0"
Set Variable: "horiz" = GetProperty ( "../", _x )
Set Variable: "horizadd" = horiz + 15
Set Variable: "horizsub" = horiz - 15
Loop While (count < 10)
Set Property ("../", X Position) = "horizadd"
Set Property ("../", X Position) = "horizsub"
Set Property ("../", X Position) = "horiz"
Set Variable: "count" = count + 1
End Loop
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Full flasher archive now available online at:
http://www.chinwag.com/flasher/archive.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email help
Replies
FLASH: flash not showing up, Michael Dunn
Re: FLASH: Help with a short ActionScrip, JamieD
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

