# Frame rate weirdness?

**URL:** <https://forum.kirupa.com/t/frame-rate-weirdness/303025>\
**Category:** flash\
**Created:** [January 12, 2010, 5:49pm UTC](https://forum.kirupa.com/t/frame-rate-weirdness/303025 "2010-01-12T17:49:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![RobertaS](https://avatars.discourse-cdn.com/v4/letter/r/f05b48/32.png) [@RobertaS](https://forum.kirupa.com/u/RobertaS)\
**Post date:** [January 12, 2010, 5:49pm UTC](https://forum.kirupa.com/t/frame-rate-weirdness/303025/1 "2010-01-12T17:49:56Z")

</div>

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 :-)?
