Flasher Archive

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


Subject: Re: FLASH: new actionscript looping
From: John Dowdell
Date: Wed, 13 Sep 2000 19:39:59 +0100

At 7:59 AM 9/13/0, Catherine Kunicki wrote:
>I have been trying to set the location of a movieclip via setPropery _x and
>setProperty _y inside a loop.
>
>the movie is one frame, and I am getting traced values of the correct
>locations, however the clip appears to be moving from just the originating
>location to the destination location without seeing any of the intervening
>steps.
>
>I am using a for..while loop inside a function.

That's hard... it's like Director, when you use tight repeat loop, except
there's no updateStage.

Try using an open frame loop instead... pseudo-script:

on exitFrame
if _x < someValue then _x = _x + increment


Theme: Scripts are meant for fast processing... get in, do something
quickly, get back to the program to accept other events. If you want an
extended action, then look into incrementally acting over a series of
frames, so that everything else on the computer can still happen... don't
stay inside a repeat loop for a perceptible amount of time.

jd






John Dowdell, Macromedia Tech Support, San Francisco CA US
Search technotes: http://www.macromedia.com/support/search/
Offlist email risks capture by the spam filters. I may not see your
email if it's not on the list. Private one-on-one email options are
available via Priority Access: http://www.macromedia.com/support/



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NudeGuru.com is proud to sponsor the Flasher list
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
IT'S THE ART OF MONEY, HONEY!
Tips and Advice from some of the most popular Flash
artists + industry power-brokers on how to hold onto
your rights, negotiate contracts and get full value
for your work.http://www.nudeguru.com from Franke James
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
To unsubscribe or change your list settings go to
http://www.chinwag.com/flasher or email helpatchinwag [dot] com


Replies
  Re: FLASH: new actionscript looping, kevin dowd

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