> Hello There - I hope someone can help - I have an object that is being
> birthed during the "startmovie" handler. As soon as it is birthed - it
grabs
> 3 sprite channels and uses them to place graphics on the stage. The code
all
> works faultlessly except: If you run the movie after firing up director or
> after launching it in a browser (i.e. the first time through) before the
> first sprite gets positioned it spends a couple of frames in the top left
> hand corner point(0, 0). Nothing I do will change this - even making the
> very first thing in the movie to set the loc of this sprite to something
> useful - any ideas - I've run out

Presumably you are puppeting the score channels to display the images. Not
seeing your code or movie means it's a little difficult to advise but you
here we go...

When you puppet an empty channel the sprite automatically is positioned at
point(0, 0) but you usually don't notice this effect because the positioning
code runs immediately after in the handler and hence doesn't get updated
until either playback head moves on or the updateStage command is issued.
However if you have other things going on there may be a noticable delay
before the image is updated.

The reason that the visible of sprite property is so yuckie is because it
affects the entire score channel, not just the current sprite or frame, but
this could work to your advantage.

Before you puppet the score channel to load the images, try setting the
visible of the channel to FALSE before you do anything. Then when you have
fully positioned the image and done whatever you can set the visible back to
TRUE to display the results. As you are "turning on" the channel after you
have finished processing you should not see the sprite jumping around as it
is processed.

As I said this is off the top of my head as I don't have access to your
code, but hopefully this should help...


[To remove yourself from this list, or to change to digest mode, go to
http://www.penworks.com/LUJ/lingo-l.cgi  To post messages to the list,
email [EMAIL PROTECTED]  (Problems, email [EMAIL PROTECTED])
Lingo-L is for learning and helping with programming Lingo.  Thanks!]

Reply via email to