Photo of Words

FLV playback dimensions bug/issue

A flaw in the FLVPlayback component can cause it to display the incorrect width or height.

By: Jeremy Knight

This issue has been driving me crazy all morning. I was trying to read the width of a MovieClip that happened to have an FLVPlayback component within it.

The elements are nested as such:
video_holder.flv_playback

And should have the following widths:

video_holder.width = 640px
video_holder.flv_playback = 640px;

instead it was:

video_holder.width = 2013px (or something equally crazy)
video_holder.flv_playback = 640px;

Why was the width so excessively large? Turns out it has something to do with the FLVplayback controls (or skin). When I took them out, everything had the proper widths. Even though the controls don't effect the FLVplayback width and don't show up under the numChildren property of video_holder. They are just hiding in there. Hiding and laughing. Laughing at me.