Flasher Archive

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


Subject: Re: FLASH: new actionscript looping
From: Catherine Kunicki
Date: Wed, 13 Sep 2000 20:23:54 +0100

ya, spreading out the loop over frames was one approach I was wondering
about.

the other thought I had was that placing the call to move the movieclip
inside the function is a bad idea. since the function (I have this placed in
a frame handler) is called from a button click, I wonder if nothing is
happening re: screen update because the function isn't done. ie, it hasn't
returned any values to the mousedown script that called it until its done
with the loop.

we'll see. I'll report back if I get it to go : )

c



----------
>From: jdowdellatmacromedia [dot] com (John Dowdell)
>To: flasheratchinwag [dot] com
>Subject: Re: FLASH: new actionscript looping
>Date: Wed, Sep 13, 2000, 2:26 PM
>

> 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
>

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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: MISSING LINK!, Meshach Weber
  Re: FLASH: new actionscript looping, Randy Kato

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