I am having issues loading an MOV file into Flash 9. When I google the question, I get alot of people say sure you can do it, but nobody provides working sample code.
相关问题
- garbage collection best practices
- Should I wait for Flash Player 10.1 or go with Fla
- How to load flex swf from flash?
- FlashDevelop Haxe (Flash) debugger
- Detecting user's camera settings
相关文章
- Skip UIImagePickerController Preview View?
- Are there any benefits when using final in AS3?
- Trace on Chrome/Browser console
- as3 ByteArray to Hex (binary hex representation)
- getElementById not working in Google Chrome extens
- Libraries for text animation in Flex / Actionscrip
- About Collision detection alghorithms in AS3
- How to upload BitmapData to a server (ActionScript
The following is from http://en.wikipedia.org/wiki/Adobe_Flash#Flash_Video
-This is a very basic implementation and does not include handling of meta-data.
First, we instantiate a Video object that is 800 wide and 600 tall and add it to the display list.
Second, we instantiate a NetConnection object and call it's connect method passing null as a parameter. (This is required)
Third, we create a NetStream object, passing the previously made NetConnection object to it's constructor.
Fourth, we set attachNetStream of the Video object to _ns, the NetStream we instantiated.
Finally, we call the play method of the NetStream object, _ns, and pass it a string to where our media is located. (The FLV/F4V/MOV/etc.)
Hope this helps.
Same as with any FLV, using NetStream (I don't recommend it, it's very hard to handle) or any AS3 video playback component you can find, like FLVPlayback, etc... as long as you target FP 9.0.115.0, and the file is encoded in h264 and in a MPEG-4 container like mov, mp4, f4v, etc...