actionscript 3 - YouTube video loaded into Flash MovieClip, can I get width and height? -


I am trying to load a URL video with the use of the URL on the Flash movie clip, gives.

The video loads and I can manage it with my player, the problem is that when I try to keep it at any level, because I do not know its width As long as it is not started.

I have tested it with 'event' .ENTER_FRAME But when the video starts it returns width = 10000 How can I know its width or height?

Nominal width and height of the movie through the loader's contentLoaderInfo You can retrieve just the following:

  trace (loader.contentLoaderInfo.width);  

The nominal width and height of your movie is 640x480. However, you will see that the film is being scaled (probably by YouTube, it should be confirmed).

Also, keep in mind that what YouTube has returned is a AVM1Movie object A AVM1Movie object is a SWF compiled under Action Script 2 (In the case of YouTube, most likely the Flash version 8). Interaction with the AVM1Movie object is more limited than a regular AS3-based SWF file.


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

php - Multiple Select with Explode: only returns the word "Array" -

php - jQuery AJAX Post not working -