Flasher Archive

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


Subject: Re: FLASH: Random movement
From: Helen Triolo
Date: Wed, 19 Apr 2000 15:48:26 +0100

Tomas Garcia Ferrari wrote:
>
> Hi,
>
> I would like to know if there is any way of producing a random movement
> of a mask layer. I'm developing a screen saver and this behavior could be
> really helpful. I am thinking of something like the 'Random Movement and
> Rotation' behavior on Director...
>
> Thanks for any suggestion!
>
> Tom
>
Tom,

The example at the top of
http://i-technica.com/whitestuff/actionscriptref.html shows how to move
an object in a planned way. If you applied the random(n) function
(which returns a number between 0 and n-1) to the x and y positions of a
movieclip in your mask layer, I think it would do what you want.

Regards,
Helen
----------------------------------------
helen triolo � http://i-technica.com
designerati-technica [dot] com � 301-424-6037
----------------------------------------

flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Get the last 100 messages from the flasher list NOW
http://www.chinwag.com/flasher/last100.shtml

Flash books http://www.chinwag.com/flasher/books.shtml
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  FLASH: Random movement, Tomas Garcia Ferrari

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