Darren,

> I hope this helps some one out, as this bugged me for day's, 
> or if someone has a better idea please reply
>  
> I'm dynamically swapping out a sprite with a flash member the 
> asking it to goToFrame(x), this causes director throw an error. 
> 
> Even if you use `sprite.member.type = #flash` this returns 
> true but still throws an error if you call goToFrame(x).
>  
> if call(#findLabel,[p_spr],x) > 0 then
>       p_spr.goToFrame(x)
>  else
>       -- waiting for flashsprite
> end if

Are you letting the Flash sprite render a frame or anything before you
attempt to navigate to another frame? It seems similar to when a Flash
sprite is first created, you must let it render once before manipulating
certain elements inside the SWF as the player (Flash player, aka the
Flash Asset Xtra) needs to be given a chance to initialize the SWF it
contains and that isn't done until a full frame is rendered. Perhaps if
you're swapping to a Flash member you might write a routine that waits
until the next frame before doing these operations?

Just a thought...

Cheers,
Tom Higgins
Product Manager | Director & the Shockwave Player
Adobe Systems Incorporated 

.................................................

[To remove yourself from this list, or to change to digest mode, go to 
http://www.penworks.com/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