How to make a Poster Frame to Flash 8 Video

Hi to all,
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)?
Any help?
import fl.video.VideoEvent;
function showPosterFrame(event:Event):void {
    myPoster.visible = true;
function hidePosterFrame(event:Event):void {
    myPoster.visible = false;
function playMovie(event:MouseEvent):void {
    myVideo.play();
myPoster.addEventListener(MouseEvent.CLICK, playMovie);
myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
Iason_K

are you using an flvplayback component?

Similar Messages

  • How to make a Poster Frame in a Flash 8 Video player

    Hi to all,
    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)?
    Any help?
    import fl.video.VideoEvent;
    function showPosterFrame(event:Event):void {
        myPoster.visible = true;
    function hidePosterFrame(event:Event):void {
        myPoster.visible = false;
    function playMovie(event:MouseEvent):void {
        myVideo.play();
    myPoster.addEventListener(MouseEvent.CLICK, playMovie);
    myVideo.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);
    myVideo.addEventListener(VideoEvent.COMPLETE, showPosterFrame);
    Iason_K

    are you using an flvplayback component?

  • How to make a transparent Frame

    How to make a transparent Frame , just like the .NET Frame ??

    Maybe searching the forum using the keywords "+transparent +frame" or "+transparent +jframe" would be a good place to start.

  • How to make a modal frame?

    Hello!
    My problem is quite simple, but I don't know how to make some MODAL frames (JFrame I mean). In my application, the user can open a same frame even if this frame is already opened and that's not really good.
    So, I want the user to close the frame before opening another one.
    Can anyone explain me how to do that?

    Generally your actionListener will be an internal class of your main frame class. Usually an anonymous internal class. That means it can act on variables in the frame (which is the sensible place to keep the flags).
    Something like:
    class Class1 extends JDesktop {
    boolean itsOpen = false;
    openAction.setActionListener(new ActionListener(){
      public void actionPerformed(ActionEvent e) {
        if(!itsOpen) {
           itsOpen = true;
           openAction.setEnabled(false);
           MyInternalFrame newFrame = new MyInternalFrame(Class1.this, ....);
           add(newFrame);
       });You do need some way for the internal frame to act on the variables in the main frame. There are various ways of achieving this.
    If we're dealing with a genuine InternalFrame there's a special InternalFrameListener (?) which allows your main frame to listen for the window closing. You can use this instead of hacking the dispose method.
    If you're main frame is a JDeskTop then you can use getDesktop() in your internal frame to access it, then cast the result to the real class of your desktop.
    Our you can simply add a pointer to your class1 to the contructor of your internal frame class.
    You could even get clever and create your own listener system.

  • How to make an internal frame a modal frame?

    aoa Friends i am trying to make a application using jframe with jdesktoppane and jinternal frame.is there any body who can guide me through that :
    how to make a jinternal frame a modal frame so that if a new jinternalform is opened than the previous one could not be accessed and if new one is closed then we can use that form.

    http://developer.java.sun.com/developer/JDCTechTips/2001/tt1220.html
    This is the example I used approach 2 to simulate a model frame.
    rykk

  • Can Anyone give me a step by step on how to create a poster frame?

    I am trying to create a poster frame for a video I edited with Final Cut Express HD. I have read all kinds of topics but they seem complicated. Does anyone know a simple way of creating a poster frame ?
    Thanks!

    QDigital wrote:
    I am trying to create a poster frame for a video I edited with Final Cut Express HD. I have read all kinds of topics but they seem complicated. Does anyone know a simple way of creating a poster frame ?
    Thanks!
    Poster frame can mean a few things.
    More info please on what exactly you mean.
    Al

  • How to set movie poster frame in final cut pro x

    Need some help on the following.
    Objective-using QT 7 or later, Current Compressor, FCP X or any other video editing tool, export a mp4 movie that displays a "poster frame" when the movie is inserted into iBook Author. When started by the user, the movie would begin to play from the first frame of the movie (not the poster frame).
    thx ra

    This sounds like a question for the iBooks Author forum. I think you set the poster frame in that application. How you make the video behave in the iBook is controlled in that application not in the editing application.

  • How to make a mobile content in flash

    plze does any one know how to make a mobile content in flash

    You better ask in the Flash forum; this is the Flash Player forum.

  • How to make a fullscreen button for Flash Catalyst?

    Hey everyone.  I really hope someone can help me with this.  How can I make a fullscreen button in Flash Professional that would make my Flash Catalyst project go fullscreen?

    I'm sorry I really don't know Flash Catalyst as much as I'd like to. Designing interfaces is left up to me, no designers at my agency use Catalyst. Though this is the Flash forum so that's as much as I can tell you. I didn't know Catalyst didn't support basic scripts (I thought I read that it did).
    Ultimately, for a very cheap price you can do something like go to http://www.lynda.com/ and buy a membership. Dirt cheap compared to what you get. They offer many courses on all this stuff and I'm sure your answer would lie in one of the (nicely broken up by subject) video training videos.
    Just searching for Catalyst brings up a bunch of courses:
    http://www.lynda.com/search?q=catalyst&x=0&y=0
    edit:
    For instance I watched the essential CS5.5 training and I saw in 2 minutes flat that when you click on a button you should have an "Interactions" panel that lets you do things. If they didn't put fullscreen as an interaction that's another thing but I'm just pointing out it's very easy to learn how to do all sorts of things in video training. If you do not want to purchase a membership there just find a video you think would have the info in it and I'll watch it and let you know if it told me how to do it, and how to do it.

  • How do I set poster frame in Premiere Pro?

    Does anyone know how to set poster frame in Premiere Pro? Wasted hours trying to figure this out and reading all forum threads and sadly still to no avail. Any help much appreciated.

    thanks at JSS1138 for this and that appears to enable me to select 'set poster frame' (albeit it not on static images). However, when I export the video the (supposedly now) set poster frame still does not appear as the preview image. Any ideas on this?

  • How to make a still frame of iDVD menu?

    I want to make a DVD label and cover that copy the title menu page. How do I make a still frame that I could manipulate in iPhoto or Photoshop?
    Thanks
    Ashley

    I do this all the time. Turn off motion at a point you like.
    Go into the Applications folder. Find the Utilities folder. Open it. Find Grab. Double-click on it. Go into the Menu, click on Capture and select Selection. Now, drag your cursor across the menu and release. Name and save the image (to your desktop?).
    Open in Photoshop (or Elements). Crop to 4.75 x 4.75 inches for Apple's CD case. Crop to 5.125 x 7.25 inches for DVD case. Print and insert.
    Not exactly "easy," but it works for me.

  • How to make picture inside frame leaving bits of the picture out?

    Hey
    Sorry for the cryptical topic name. What i would like to do is use a frame with a picture so that the part of the picture that is inside the frame is visible and the part that is out of frame is not visible... Can somebody please assist me in accomplishing this? i have the frame and the picture...
    Best regards
    Jesper Pedersen

    Thank you very much, that helped a lot! One last thing... Now that I have made this frame with picture, how do I import it into an .indd document? I have tried making a new photoshop document with transparency and dimensions that fit the image, but how do I copy the frame+picture into the new document? I am having trouble selecting both the frame and the picture...

  • How to create a relative path for Flash video on a CDROM

    Hello - I need to distribute a web site to a client on a
    cross-platform Hybrid CDROM so that they can edit and make
    adjustments. This website also includes 2 flash videos that need to
    be included on the CDROM.
    My problem is this: I encoded the video in the Flash Encoder
    app and brought them into the main Flash app for conversion into
    swf files. I also used the media controller parameter to add a
    control skin to the movies. I now have 2 swf files associated with
    the flv video file, and I understand that all 3 of these must stay
    together for the video to work properly. The video plays correctly
    along with the controller skin on my Mac however only the
    controller shows up but no video on the CDROM. I believe that this
    has something to do with absolute vs. relative file paths for the
    video flv file to the swf controller file.
    I do not know how to change this path - I know "where" to
    change it within the controller parameter options box but do not
    know what syntax exactly to place here. How do you specify a
    relative path here? When I try to do it I get an error saying that
    the flv file cannot be found.
    I am trying to use the following syntax: /video/welding.flv
    where video is the name of the folder and welding is the name of
    the file. I have done numerous Google searches on this subject and
    stil cannot find an answer, so any help is appreciated.

    OK - I assigned the FLVPlayback component the instance name
    of videoPlayer to keep it simple. And I copied the above code into
    an Actions - Frame on Frame 1. FYI - The name of the video has been
    changed from welding to Timet Sponge.
    Now I get the following error messages:
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 1: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = "";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 2: 1120:
    Access of undefined property _global.
    _global.videoURI = "video/Timet Sponge.flv";
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1120:
    Access of undefined property _global.
    videoPlayer.contentPath = _global.videoURI;
    **Error** Scene 1, Layer 'Layer 1', Frame 1, Line 3: 1119:
    Access of possibly undefined property contentPath through a
    reference with static type fl.video:FLVPlayback.
    videoPlayer.contentPath = _global.videoURI;
    Total ActionScript Errors: 4, Reported Errors: 4

  • Using PHP to Create a Poster Frame from a Video

    I have a PHP script which I am using to grab a poster frame from an arbitrary video ($video). Currently it breaks the video into all its frames, counts the files, and grabs the middle one...
    system("mplayer -vo png $video");
    system("mv " . sprintf("%08d.png", floor(system("ls -1 | wc -l") / 2)) . " /home/.");
    The issue with the code above is that, until completion, it fills up a large portion of the hard drive on the server. I know I can figure out the number of the middle frame with the code below, but I do not know of a way to pull out the middle frame without pulling out all the other frames too...
    $fps = system("x=$(mplayer -msglevel all=0 -identify -vo null -frames 0 $video 2>&1 | grep ID_VIDEO_FPS) ; echo ${x#*=}");
    $length = system("x=$(mplayer -msglevel all=0 -identify -vo null -frames 0 $video 2>&1 | grep ID_LENGTH) ; echo ${x#*=}");
    $midframe = floor($fps * $length / 2);
    Does anyone have any ideas? At the very least, is there a way I can read each frame but only save the middle one?

    tony5429 wrote:Yeah; I may end up going with a solution like that. I had hoped to be able to seek to a specific frame. Really I'd like the script to be very robust - for example, if I pass it a 30-fps video that is one second long, I'd like to get the #15 frame...
    Google told me mplayer can't seek to a specific frame, but does 1/100th of a second seeks. I'm not sure how precise the duration estimates are.

  • How to find encoding info of a Flash video (.flv) file?

    Is it possible to find out the encoding information, such as
    video and audio data rates, frame rate, codec used, etc, of a Flash
    video clip? If so, how? What tool/software I need to do this?
    I am able to find these (encoding) info for video clips if
    they are in Window Media or Real Media file formats. But I am not
    sure, whether there is way to find these info for Flash video clips
    as well.
    For example, we chose Flash Video format for one of our Web
    sites. Someone at work originally encoded a video clip for the site
    at nearly 900kbps (total data rate: video + audio). I asked it to
    be reduced to around 300kbps. Well, he resized the video and
    encoded the same clip at a lower data rate, but doesn't remember
    exactly what setting he used. Now, how do I find out the key
    information about encoding for this clip (i.e. data rate, fps,
    etc)?

    welcome to the mac side, im new also
    in windows we would right click and select 'properties' right?
    on apple you simply hold control 'ctrl' and then click on the folder you want, the control and click is macs equivanlent to windows' right click
    after you've 'ctrl' and clicked, select 'get info', get used to this 'get info' function as you'll probably use it alot, like i said, its like selecting 'properties' on windows
    another way of doing the control>click is clicking once on an item so that it is highlighted and then selecting 'file' at the top of your screen and then 'get info' too
    to view all pics in a slideshow yo simply highlight each one, or you can select multiple items by holding down the command key (⌘) then single clicking each pic you want to view, this selects it and then double clicking any one of them when they are all highlighted, in mac you will use the 'preivew' application which is an image viewer, sort of the replacement for your old 'windows fax and image viewer' on windows
    hope that helps

Maybe you are looking for

  • Aumentar tamanho da caracteres em um campo

    Olá, Um cliente tem um plano de contas que o código de conta contábil das contas análiticas tem 18 caracteres  e o SAP só aceita 15 caracteres, posso mudar o tamanho do campo para 18? Se pode como faço isso? O cliente não pode mudar o plano de contas

  • Contract determination on change of Price List Type on Pricing Tab for item

    I need to to re-trigger the Contract determination for a document item when the price list is changed.  Currently the only BADI i can see this working with is the pricing Badi.  The only issue is that I get a linking error when going from no assignme

  • SQL Server Service Account - Domain Account - WMI Provider Error - 0x80092004

    Hi, if I try to use an domain account for SQL service start using SQL configuration Manager I receive the error WMI Provider Error - 0x80092004 in Popup Window and in Eventlog 5 Error Events from Source MSSQLSERVER: 26014: Unable to load user-specifi

  • What's your favorite of styling hyperlinks?

    Hi, what's your favorite way of styling hyperlinks? Right now I've colored mine C=100 M=100 Y=0 Y=0 and made them underlined. I feel the underlining is a bit too harsh on my overall design. Then again if I don't underline them, how are people suppose

  • Can't compile - new to this

    When I try to compile my code I get this error: Command /Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/gcc-4.2 failed with exit code 1 ld: duplicate symbol _OBJC_METACLASS_$_PingPongAppDelegate in /Volumes/users/r/rl8ax/inbox/PingPon