Unlike the previous MX version, the spark VideoDisplay component has no attachCamera function. The only other examples of Camera usage I have found have all revolved around attaching to a Video object. The problem is that this means you have to handle all the sizing etc... manually.
Solution
You can create a simple custom MediaElement class and add it to a MediaContainer in a custom UIComponent which will handle all of the sizing issues. This can be included via mxml in the same way VideoDisplay is.
Raw video files need to be converted, or encoded, into a format that is supported in Flash.
Solution
Use Adobe Media Encoder, included with Creative Suite, to encode your video into an FLV or F4V file for playback on the Flash Platform. This free video lesson demonstrates how this is done.
When seeking within a video file, the playhead jumps forward or back rather than playing from the specified point.
Solution
To enable accurate seeking and scrubbing within a video you must deliver the video via RTMP streaming with Flash Media Server or a Flash Video Streaming Service. With progressive delivery, you must embed a navigation cue points at specified timecodes to allow seeking to that point. Seeking is also possible with HTTP Dynamic Streaming, but is still not frame-accurate.
You have a hosted video that you want to share on the web or mobile devices.
Solution
Use the free and super-easy-to-use video player called Flash Media Playback. The following how-to video walks you through the simple steps of getting the HTML embed code for the Adobe-hosted video player and pasting it into a finished web page so you can play your own hosted video file anywhere (that Flash Player is).
(Video below is currently offline pending a bug fix by the Cookbooks engineering team. A resolution is expected shortly.)
Developers wishing to learn how to build their own multicast player may need a simple illustrative example. The sample multicast player that ships with FMS 4.0 does not include source code.
Solution
The following source can be used to build the sample multicast player that ships with FMS 4.0.
Please explain the steps to handle database, TEX, XML, MySQL or any kind of database using Flash
I'm trying to develop a website completely using Flash, all animation and other design is completed
but I'm not able to do the database work, where I need to store my data and images in file and have to extract that and display in website. Please show me the steps.
Solution
Flash shouldn't be in direct charge of SQL commands if the site is not updated often or does not have a large amount of data to manage building a site out with static XML can be a great solution that doesn't involve any server side configurations.
There are some options out there that enable gateway connections to a database but the whole idea in a world where we really want to protect our data - sounds scary, in a world where everyone is trying to hack your site. If your not a SQL master that knows the ins and outs of it and system security I wouldn't go in that path. Even if you need to do a few steps to protect your data on a database and if there isn't a lot of data/ or there isn't any need to protect it sometimes its easier to just create a static site not everything needs to go though a DB.
This site is produced in partnership with O'Reilly.