I running into a very strange problem. I’ve embedded a youtube player in my code using the new AS3 API. Since it is chromeless, I wrote my own controls, with the progress bar/slider controlled by a timer (not a tween).
When I run it from the Flash environment, the progress bar runs perfectly. When I run it from the HTML generated by publishing it, which uses an old-fashioned embed, it runs the entire video, but the progress bar runs at about 2/3 speed, and stops about 2/3 of the way through. When I use swfobject to embed it, it runs the entire video, but the progress bar slider moves at about half speed, stopping about halfway through.
I suspect this has something to do with frame rate, but I can’t find anything on the subject. And for the life of me, I can’t figure out why it would be different in all three instances.
I’m using Flash CS4, swfobject 2.2. It behaves the same way in both Firefox and IE, so I don’t think it’s a browser problem. I’m not sure I can publish the code here because I don’t think my company would allow that.
Does anybody have any light to shed on this? Or can someone point me to some youtube-style controls for AS3 so I can stop pulling my hair out :-)?