This content has been marked as final. Show 6 replies
By 'import' I assume you just mean to load and play an flv file?
If so, check out the FLVPlayback component in the documentation.
To start with, just drop one on stage, and set its contentPath property to your flv's url. That will work.
If you want to do more with it in actionscript then give it an instance name and check out the examples - there are plenty of existing code examples in livedocs about how to do this.
Tanks for your reply
I am not tying to work out how to put video in to a project when developing it - but to create an interface where by a user can upload a video clip to the swf
Sorry this is not clear: "upload a video clip to the swf"
By "upload a video clip to the swf" to you mean play a video from a playlist selection in the swf... or do you mean upload videos to the server (this type of thing is more related to server side code than to actionsript).
I have only just started thinking this thing through but yes if the swf was sitting on a server then yes it maybe server side scripting, biut you would still need the flasgh interface and how much of that can be done with action scripting I am not sure.
The end result will be that some has a video clip stored locally on their machine or on a camera and I want them to be able to upload this on to flash application
It sounds like you need to upload to the server, convert avi or mpg format to flv and then make the flv's downloadable to your flash client player...you can't do that any other way.
90% (perhaps more?) of that is server side work - and, if you're not familiar with it, reasonably complicated. The flash part is relatively straightforward.
yes a bit like youtube however it may not be nesassary for it to be an online application