Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
| Subject: | Re: FLASH: Help with a short ActionScript |
| From: | JamieD |
| Date: | Mon, 14 Aug 2000 11:46:27 +0100 |
Hi Shelley,
You cannot set the position of the MC to three different places with the
same frame, as you have found out it will do nothing.
You will have to place the three set property commands in three separate
frames and then set a goto to take it back to the first frame.
I think also that you will have to specify the instance of you MC at the
moment you are trying to get and set the property of "../" you have not told
it what the MC is called. Give the MC you are trying to shake and instance
name and enter this into your path.
Hope this helps
JamieD
> 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: Help with a short ActionScript, Shelley Story
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]

