Actionscript 3 :: Add A Poster Frame To A Loaded Video?
Feb 16, 2012
Im building application where users can upload flv's with the fileReference. When a user press upload the flv is uploaded into a folder and the path stored into the database.
When the user clicks on an other page, he can see a list with all the uploaded movies. But I want to create custom control for the movie so the user can click one to play.
How can I add a 'poster'from the first or a random frame from the FLV?
( There is no option to create a png for each file because when the app is online user can pick there own FLVs to upload. )
I'm a complete newbie to actionscript and don't really have a clue. However by following an online tutorial in Flash 8 I managed to create a custom FLV player you can see it here [url]... I want to create a poster frame similar to YouTube so that the user clicks to start the video, however I only found how to do this using actionscript 3.0 not 2.0 which I programmed my player in.
I want to make a poster frame (a simple jpg)to display before the FLV video plays.So first the user to click the play button or on this poster frame.The code below does exactly what I need, but it is in Flash CS4.How could I do the same with Flash 8 Pro (ActionScript 2.0)?
There used to be a way, in AS 2 to put the FLVPlayback component on frame 2, a poster frame JPG on frame 1 and some actionscript in frame one sayingwhen the user clicks on the JPG, Play.This would move the timeline playhead to the FLV, hide the JPG, play the video - very simple.NOW - after not touching Flash (v11.5 Mac) for a year - I need to do the same thing in AS3.
I´m using a trial version of Fl Professional CS5 and I´m new to it. I am trying to create a poster frame for my video to upload but when I try to select the scene by using the preview parameter it is not editable and neither is cuePoints. I am referring to the component parameters panel. The default says "none". I can tick/untick the other options - autoplay, isLive etc. I´ve been playing around with it for hours without any luck.
Also, is there a way that I can add a "view in full screen" option to the video I want to upload?
I'm trying to set up a poster frame for my FLV player. I'm able to get the poster frame do it's job when the video ends. But I'm not able to unload it if it s clicked again or get the play/pause button to switch accordingly.
I just spent 2 hours scouring the web for the answer. All I'm seeing is a whole lot of "how do you do it" and a lot of "do a google search for it'. I found a tutorial for CS4 that looked promising yet when I tried it in CS5 the damned Preview attribute (or whatever) just sits there looking at me. You're supposed to be able to click on it and choose a frame. I click and double click and nothing happens.
Im looking to for my flash video to start at a random keyframe everytime the video is loaded.I have about 20 layers with images transitioning into each other.URL...Anyone have any actionscript that could generate such an effect?
Im looking to for my flash video to start at a random keyframe everytime the video is loaded.I have about 20 layers with images transitioning into each other.Anyone have any actionscript that could generate such an effect?
got a movie clip with a fairly complex timeline animation. At the end of the clip I need the entire mc to move and scale to a specific location. Unfortunately, the first frame of the mc (the poster frame) is just solid black, the elements I really need to align are on the last frame of the mc (near frame 435). Is there a way to display an arbitrary frame of a mc on the main timeline for authoring purposes?
I've been customizing the flvplayback component and have run into a problem. So far I have successfully created a custom skin for the flvplayback component, with a play overlay button,which loads the FLV dynamically from flashvars.I am now trying to load in a static image which appears until the video is played.I've been looking around the internet and in the Adobe forums, but haven't found what I'm looking for.I thought perhaps the Preview min the AS3 flvplayback component would help, but this won't work apparently.
I was thinking myPlayer.source = "image.jpg"; but then how can I change what the source is once someone clicks on the video? I also found fl.video.VideoEvent, but I'm not sure how I can use this to set the image as the source, until someone presses the play button, or until the video is playing (note that I am using an overlay play button which shows up whenever the movie is paused, so once the video starts playing, I would not want the static preview image to come up again...just until someone clicks the any play button).
I cannot find an ActionScript 3 code example anywhere on how to load a PNG file as a flvplayback preview image and add it in at runtime." Assigning the preview property with the string of the PNG file refrence like 'video.preview = "previewimg.png"' does nothing. who to assign in ActionScript 3 a PNG file as preview file.
i have a pb of memory leak:i using flash.media.video to read video i have function to do frame by frame:FrameBuffer is an Array containing my video frame, lastimg is Bitmap object
I suppose the title says it all. I can load an external video file (FLV) and I can have it play. I also have the custom buttons made to control the clip. The only thing I have left to do is to have the main timeline move onto frame 2 once the external video reaches its end. I am using actionscript 3 and flash cs 5.5.
i've recently installed Wowza media server 2 locally, currently only for testing purposes.everything works fine, except of accurate seeking functionality - or in other words advancing frame-by-frame .when i use VLC to play my video file i have no problems advancing frame-by-frame. however, when i use the 'seek()' function to move the playhead a fraction of a second, its seems to move only to the next key frame (meaning that only once every few mouse clicks the playhead advances dramatically).
I know how to make a video (instanced as showreel) stop when clicking on a button that that navigates to another section/frame, since otherwise I would still listen to that video while not visible. The problem is when I'm in another frame that doesn't have that video, when clicking on the menu to go to whichever other frame, it looks for that it to stop if it's playing and it and doesn't find it, and so there's an error.
How can solve this? Maybe I should put an order saying something like if there exists a video in that frame instanced as sowreel, stop it, otherwise don't do anything as there is nothing to be stopped. Or assign the order to the frame (which is called motion), but I don't know how to do that, can someone help? The code I have is:
I attached the code here. The problem is after importing the video in the first frame while navigating the video sound is heard which means the video is still playing. How can I stop it when moving to other section. Here is code
I've been successful to load a external swf using the loader. Lesson_mc is a movieclip I have on stage that I am loading the external swf. I have some masking that is there, that is why the movieclip. myLoader is a Load object. I can find the swf loaded using the debugger and see the currentLabel and Frame but when I try to get the information it sends a DisplayObject error. I have a Menu in the Main Window that controld the navigation. Getting to the frame on the first click works but trying to go to a frame within the same sef does not. Any thoughts?
myRequest = new URLRequest("overview09.swf"); myLoader = new Loader(); myLoader.load(myRequest);
set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within.
I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
I'm building a flash game wish contains sounds/images/videos and such. Now I want to build a preloader for this game. The problem is that currently it is around 2 mb of data in the first frame. How can I see wish objects that are being loaded in the first frame?
it possible to set the frame rate of an externally loaded movie to a different frame rate than the movie it is embedded within. I basically have a flash site that loads flash movies using loadMovie command, however, the frame is lost within these movies and simply adopts the main site frame rate.
I have a bunch of SWFS from a third party tool that I am loading into an MC called "_root.dropzone". I want to be able to tell flash to move to a frame label in my main movie when that loaded MC has played the last frame but I have no idea how to do this. I don't have the FLAs for the swfs otherwise i'd just add code into the last frame. Here's what I am using:
if (_root.dropzone._currentframe == 1521)) { _root.gotoAndPlay("s_2"); }
This doesn't seem to be working as flash jumps to "s_2" immediately...
My movie goes to a home page, if the user clicks "contact" (for example) then the value of 5 is set to i and the movie preceeds to play a small transistion. At the end of this transition there is code that says if i == 5 gotoandplay(83).
The problem is I need it to see if that frame is loaded yet and if not, just stay on the current frame until it is.
Code: if (i == 5) { while (framesLoaded <= 83) { } gotoAndPlay(83); }
I assumed this would lock in a loop until it is loaded,However it obviously does not work