Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

"Loop + Screen" Update Problem

0 views
Skip to first unread message

Whiteley

unread,
May 17, 2000, 3:00:00 AM5/17/00
to
I am trying to use Flash to make a movie clip move around the screen
through the use of incrimenting variables (x,y). I have made an example
that, if I go to the top of the screen and it rolls over a button, the movie
clip moves to the top, however, the screen is not updated while 'x' is
becoming x+1. Because it doesn't update it doesn't come out of the loop
until the while loop I set up finishes and the clip appears to jump but
there is a pause which indicates it is doing the individual incriments. Is
there a way of placing the entire frame in a loop and then I can adjust
various variables on the go as the clip is moving up or down and side to
side.
If you know what I am talking about and can help me I would really
appreciate it. I am very familiar with Pascal programming which I know is
old but that will indicate what kind of programming mentality I have been
approaching this problem with.
please reply to tawd...@hotmail.com
Cheers Tudor

Byron Canfield

unread,
May 17, 2000, 3:00:00 AM5/17/00
to
You cannot use a Loop While for incremental property settings, for the very
reason you discovered: the display is not updated until the frame where the
property setting is executed has been exited. Thus, ALL the property settings
are executed within the loop before the display can be updated.

For the display to update properties, a frame boundary must be crossed. To do
this, you need to use at least a 2 frame loop, setting properties and
incrementing in one, and using the second merely as a looping device.

--
Byron Canfield
Macromedia Evangelist
Canfield Studios
http://www.byronc.com

Whiteley <m...@cas.ac.ma> wrote in message
news:8ftvpk$dsd$1...@misc.macromedia.com...

0 new messages