The stage size bug was reported by Aral Balkan a while ago, and you can see
how some other people are solving it on his original post, and choose you
favourite:
http://aralbalkan.com/1933

(either as you are doing with the resize handler, a delay, an on enterframe
listener, setting the known dimensions via flashvars, or I have also solved
it in the past by having my init code on frame 2 rather than 1 (I was not
using SWObject at the time, but IE was still crapping out))


The onMetadata issue is an interesting one (and hard to debug), but I don't
think it is timing (or SWFObject) related. onMetaData can only fire if
enough of the video has downloaded to read the info from the header of the
FLV, so I am unsure what you would delay timing wise. There are various
issues like:
http://www.jonnyreeves.co.uk/2007/07/netstream-onmetadata-ie7-focus-bug/  in
the netstream class.


Aran




On Thu, Jul 16, 2009 at 4:59 PM, gmccomb <[email protected]> wrote:

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