Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: Help with a short ActionScript |
From: | Jordan L. Chilcott |
Date: | Mon, 14 Aug 2000 15:17:40 +0100 |
You cannot put your 'shaker' in a tight loop of this sort. You are changing the properties of the movie clip before the frame head has a chance to move. Therefore, nothing will get updated (JD refers to this as a tight loop - he enlightened me with this while taking over a Director project). You are best to separate your code into three frames (updating your mc properties in each frame) and looping through those frames.
Hope this helps...
jord
---------- Original Message ----------------------------------
>> 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
>> shelleykismia [dot] com
>> ----------------
>> 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 helpchinwag [dot] com
>
>
>~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 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 helpchinwag [dot] com
>
>
--
--
Jordan L. Chilcott
the Computer Software Specialists
Guelph, Ontario
---------------------------------
Tel: (519) 837-1879
Cel: (519) 760-1879
eFax: (253) 276-8631
jchilcottcompsoftspec [dot] com (mailto:jchilcottcompsoftspec [dot] com)
http://www.compsoftspec.com
AIM: j1chilcott
Our name doesn't appear on many web sites...
Our results do!
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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 helpchinwag [dot] com
Replies
FLASH: RE: Help with a short ActionScrip, Shelley Story
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]