Flasher Archive
[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]
Subject: | Re: FLASH: moving 1,000 MC simultaneously? |
From: | Cheri Harder |
Date: | Fri, 16 Jun 2000 07:45:41 +0100 |
I think, something like this (pseudo-code) in a loop so it does it for each
star (NOT TESTED THOUGH!)
Set Variable: "centerx" = "377.3"
Set Variable: "centery" = "207.3"
Set Variable: "n" = 1
Loop While (n < 1001)
Set Property ("star" & n, X Position) = GetProperty ( "star"&n,
_x )+(centerx-GetProperty("star"&n,_x)*.20)
Set Property ("star" & n, Y Position) = GetProperty ( "star"&n,
_y )+(centerx-GetProperty("star"&n,_y)*.20)
Set Variable: "n" = n+1
End Loop
This should calculation 1/5 of the difference between the current position
and the center and move it that far. Somehow, though, I think that this
would never get them to the center, because when you put the same code in
the next frame, it will re-calculate the X & Y position and only move it 1/5
of the new difference. And besides that, it's late & I promised never to
give advice after midnight again. Oh, it's ok, is only 11:30.
But maybe this is enough to get you going, eh?
~~~~Cheri Harder~~~~~
charderawsolution [dot] com
Advantage Web Solution
www.awsolution.com
flasher is generously supported by...
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
flashforward2000 and the Flash(tm) Film Festival
July 24-26, 2000, NEW YORK CITY, Hammerstein Ballroom
www.flashforward2000.com
Produced by United Digital Artists and lynda.com
Sponsored by Macromedia, Adobe Systems, Fusion, Inc, AtomFilms,
shockwave.com and Electric Rain.
1.877.4.FLASH.4 or (1.805.640.6679 outside the US and Canada)
Register before June 30 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
Re: FLASH: moving 1,000 MC simultaneousl, Robert Bleeker
Replies
Re: FLASH: New Macromedia.com site, Jason_Schubring
FLASH: moving 1,000 MC simultaneously?, Kurt Dommermuth
[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]