So it turns out the resize listener already in my app was doing its
job, and was being called each time Flash attempted to resize the
stage. However, the problem didn't go away until I added the delay.
I've traced out the order of events in the app and can follow what
Flash is trying to do, though I find it odd that it only occurs with
SWFObject, and never with OBJECT code. That is, I never get any more
than a single resize event with OBJECT code when the SWF first loads,
and it's always correct the first time out.

I see another message of a week or so ago where someone found the same
thing, that even with the listener the stage width wasn't being
properly set unless there was a delay in code. I can see that in IE I
consistently get two calls where the stage size is 1 for width, and 0
for height, followed by the correct size.

I've worked through most of the bugs related to stage sizing, but
there are yet other issues that I suspect are timing related. The
problems never occur unless I'm using dynamic publishing with
SWFObject. For example, every once in a while my app will simply miss
the onMetadata event from the clip, and as a result the seekbar never
activates and the duration remains at 00:00. Yet the video plays
because it has loaded. It very random, and very maddening. Never
happens with straight OBJECT code.

(It's a problem because with progresssive download I don't think
there's a way to query Flash to ask if it's really playing a video.
It's simply assumed if you get metadata and tell the thing to unpause.
There's no telling how long to wait for the metadata, in case the
connection or server is slow. Not sure how to fix this one, but maybe
there's a kludge that looks for the .Start event; if it occurs without
onMetadata then the onMetadata event was somehow skipped. Not sure how
to correct it in code though...)

--~--~---------~--~----~------------~-------~--~----~
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