I'll try my best to keep this short and succinct.

I have a Flash FLV player written in ActionScript 2 and Flash 8 that
works well when using standard OBJECT embedding, but exhibits unusual
(and breaking) behavior under SWFObject. Specifically, I find I have
to delay the code inside the SWF by at least 20-30 milliseconds or
else things like reading the Stage.width and height do not work (they
report 0, not even the un-resized size described in the OBJECT tag).
This ONLY occurs when running the app in SWFO.

Because of this, movieclips that rely on being sized by the Stage
dimensions never appear, because at least one or both of their h/w
dimensions is 0. The code I have to delay is the part that sizes these
movieclips, in order for the Stage dimensions, as set in the SWFO
properties, to be properly reflected.

Here's where it gets very strange: If I capture the OBJECT code that
SWFObject generates and passes to the DIV holder, and copy/paste that
into a page, it works perfectly every time. It's only when SWFObject
is running as JavaScript does the problem occur. (And no,
defer="defer" in the JS call doesn't help...)

The issue involves both SWFO 1.5 and the latest 2.2, using copy-paste-
code directly from the documentation (changing only the swf name).
Static publishing works. It's only when the code uses dynamic
publishing does it occur. It happens across many browsers and OS's,
and all the Flash versions I bothered to try (9.0.115 to current). It
affects IE7 the most, where the timing issues cause a mis-load about
90% of the time; on Firefox 3.0.11 it works 90% of the time.

So far I have rewritten portions of my SWF to accommodate this
problem, but every once in a while (under Chrome especially) the error
will affect a movieclip that is loaded when the FLV metadata is read.
I'm also not happy having to delay the construction of the player more
than the 35-50 milliseconds needed to avoid the problem, because the
original (ugly) Stage appearance of the bare player shows through very
briefly. (OK, I can turn that off my setting visibility off, but it's
principle here.)

I'd really like to know what may be causing this behavior so that I
can more effectively work around it. Thanks in advance for any
insight. I no longer have any hair because of this...

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to