Thanks Tom,

I'd tried that, but dependent on the size of the flash member, I would
still get errors so this holds until the frame I want to go to is ready.
The only caveat is that the builder has to label their flash movies.

On a side note Tom, how do I get on the director beta testing list. I've
been submitted for the past five years, are there certain criteria.

Thanks 

d:p

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Thomas
Higgins
Sent: December 12, 2005 5:55 PM
To: Lingo programming discussion list
Subject: RE: <lingo-l> Dynamic Flash in director calls an error!

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


[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