Help to create the image preview for flv player

Hello

I created an application that includes a selection of the videos menu system and a video player.  Currently the flv player video when the application opens begins loading.  I would change this option to display a preview image which would not disappear until my users click on a button to display a video.

I tried to use the preview image in the flv player and received this error message:

"The preview image is displayed only during the creation. To generate a preview image of runtime, use the button export and load the image back by writing your own ActionScript. »

Can anyone help me please with actionscript, I need to load my image in the player?

Thank you

:

Fl.video import. *;
Import fl.video.VideoEvent;

showPosterFrame (null);

display.autoPlay = false;

function showPosterFrame(event:Event):void {}
myPoster.visible = true;
}
function hidePosterFrame(event:Event):void {}
myPoster.visible = false;
}
function playMovie(event:MouseEvent):void {}
hidePosterFrame (event);
Display.Play ();
}

myPoster.addEventListener (MouseEvent.CLICK, regarderMovie);

Create variables
var safeVideo:String = ' Videos/Fotolia_12024529_V_M (video security) .flv ";
var safeVideoPlaying:Boolean = false;

var videoToPlay:String;

Manage the complete video events
function videoCompletedHandler(event:VideoEvent):void {}
If the security video has completed, and then play the video selected
If {(safeVideoPlaying)


safeVideoPlaying = false;
Display.source = videoToPlay;
} else {}
showPosterFrame (null);
}
}
display.addEventListener (VideoEvent.COMPLETE, videoCompletedHandler);
display.addEventListener (VideoEvent.PLAYING_STATE_ENTERED, hidePosterFrame);

Respond to a button click
function buttonClickedHandler(event:MouseEvent):void {}
var videoNum:String = event.currentTarget.name.substr (6).
videoToPlay = ' videos/video' + videoNum + '.flv ';

display.autoPlay = true;

Safe video game
safeVideoPlaying = true;
Display.source = safeVideo;
}
for (var i: uint = 1; i<>
This ["Button" + i.ToString ()] .addEventListener (MouseEvent.CLICK, buttonClickedHand ler);

}

p.s., make sure that there no artifacts as spaces in the variable object/forum names.

Tags: Adobe Animate

Similar Questions

  • Failed to save the system or create the image of the system, error: the problem occurred while trying to connect with the VSS writers (0 x 80042318).

    Original title: cannot backup Windows 7 system.

    When I try to back up the system or create the image of the system I get the following message, the error was detected in the Volumn Service VSS (Shadow Copy) the problem occurred while trying to connect with the VSS writers.  Verify that the event system Service and the VSS service are running and look for errors related to event logs. (0 x 80042318).

    Hi bernardolahoustino,

    Please keep us informed. Please let us know the State of the question, so that we can help you further.

  • Cannot create the Image of the system or system, unknown error repair disc: 0x80004005.

    Original title: cannot create the Image of the system or system repair disc

    I just bought a new Windows 7 computer. I tried to create a system repair disc, but still receive the error msg - error (0x80004005) unspecified. I tried - and lost - several DVDs in the process. Also, not able to create a System Image disc. The computer says that I have to format the drive and when I click OK, it goes through the movement, then gives me an error msg that the Format has failed. (In addition, it does me not the possibility not to format the drive.)  Very frustrating...

    Hi iamkira,

    This problem can be caused by a conflict with other programs installed on your computer, usually antivirus software. Follow the steps described in this document to create the drive in a clean boot state.

    Let us know if that helps.

  • How to create the firewall rule for Windows 7 for javaw.exe?

    How to create the firewall rule for Windows 7 for javaw.exe? The application path differs from the new versions and user profiles. Is there generic symbols allowed for example asterisk?

    Hello

    I recommend you to send the request to another Department for assistance:

    Security in Windows 7

    http://social.technet.Microsoft.com/forums/en/w7itprosecurity/threads

    I hope this helps.

  • How to create the image button in apex oracle 3.1

    Hello

    I am new to oracle apex.

    I would like to show button called delete as an icon of image for the same thing that I saved the attributes of the button as shown below

    Button = Image Style

    Button Image #WORKSPACE_IMAGES #delete_row_64.gif

    But this isn't no image showing, as image not available.

    Please someone help me how to solve this issue

    Helpe me please where should I keep the images that I can use as an icon of the image to the page element.

    Thank you and best regards,
    Ibrahim Sayyed.

    You must download the image in for the shared components

    Gus

  • Use the stored procedure to create the data model for the bi publisher report

    Hi all

    Can we use stored procedure to create the data model for BI Publisher reports? I did find an example by using the stored procedure to complete the data model in the bi publisher report.

    Thank you

    Virat

    Check out these links

    BI publisher to use the stored procedure
    Re: Stored procedures and dynamic columns
    Re: Is it possible to use stored procedures in BI Publisher GUI?
    Re: PL/SQL stored w / model XML?

    If brand pls help

  • How can I manually change the images used for the new tab Page?

    I turned off so the images are not cached for the new tab Page history and be reloaded Firefox is restarted. In addition, some of the sites I've pinned use HTTPS and do not allow their images to be cached.

    Is it possible for me to put a custom image for each pinned site? A custom screenshot that is not in the cache or an icon to be any? Anything would be better than a box empty here.

    Thank you

    You can use the following extension to customize the image displayed for the tiles pinned, among other things.

  • I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not display in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    I created a custom and registered with a specific name date format. However, when I open a new worksheet, my saved format does not appear in the menu drop-down? Am hoping that I don't need to create the same format for each new sheet?

    You must save the spreadsheet containing the new date as a model format and use this custom template for each new spreadsheet where you want that this date format personalized at your disposal.

  • How to disable the image previews

    In the windows client there is an option to disable the image previews with

    Tools-> Options-> settings IM-> Show advanced options. Uncheck the option: "show images in conversations".

    In the client Mac there isn't this option. How to disable the image previews in a Mac client?

    OK, found the solution in another thread here: http://community.skype.com/t5/Mac/YouTube-thumbnails-amp-link-previews-Why-don ' t-I-see-them/m-p/39692...

    Menu bar-> display-> display Images-> uncheck

  • create the code lock for computer book note

    How to create the code lock for computer book notices

    Enter the BIOS, select the Security tab and set the power on password.

    I strongly recommend that you write the power on password and put somewhere safe. If you have forgotten the password turned on, you will find that you will need to send your laptop to be repaired by HP. This is not free of cost. Once a button inside the laptop password reset are over.

    I can't be more precise, as you have not identified your laptop with its full product name or product number.

  • Unable to create restore point. Vista64. Could not create the scheduled task for the following reason: cannot create a file when that file already exists

    RAID 5 obtained corrupte had to rebuild after that can't create system restore point. Tried everything sfc, fsutil, Dungeon SystemPropertiesProtection screen displaying this error: "could not create the scheduled task for the following reason: cannot create a file when that file already exists." (0x800700B7)"system of work in all other respects. SFC says it found and fixed errors every time I run it.

    Fix tried Della Li: Please remove the WindowsBackup folder in the HKEY_LOCAL_MACHINE NT\CurrentVersion\Schedule\TaskCache\Tree\Microsoft\Windows.

    Delete the WINDOWS BACKUP folder. Unfortunately this folder does not exist.

    Checked VSS, Taskscheduler and other services are runnig

    Tried to boot from the CD and widowed revover. Says no problems. The error to any manulation of the checkbox in the properties of the system, the system protection screen

    Solved

    It turns out that task scheduler got corrupted it have several tasks Scheduler said were not available, but are still in the working directory. These tasks especially SR from compensation directory solved the problem and I can now create backup points.

  • WLST Script to create the domain weblogic for IOM and OAM

    Hello

    I intend to set up PS3 IOM - OAM in the new environment. We intend to perform the installation in silent mode. Does anyone have example WLST to create the domain weblogic for IOM or OAM?

    Thank you

    Here is an example of OUD. I post this one since it's the simplest and shortest, but it is the same for OAM and IOM except that the script is much longer because they ask a lot more questions. You will need to export the variables used or replace them with the appropriate values for your system.

    wait-<>

    the value of timeout 600

    spawn ${OUD_BASE}/${WLS_NAME}/common/bin/config.sh mode = console

    # Create a WebLogic domain

    wait {}

    {"Enter the index number to select GOLD *" {send "1\n"}}

    # Choose the components of the Weblogic Platform

    wait {}

    {"Enter the index number to select GOLD *" {send "1\n"}}

    # | ___Oracle directory Services Manager - 11.1.2.3.0 [Oracle_OUD1] [3]

    wait {}

    {"Enter number exactly as it appears in the media *" {send "3\n"}}

    wait {}

    {"Enter number exactly as it appears in the media *" {send "n"}}

    # Change the domain information

    wait {}

    "" Enter the value of * "{send" ${OUD_DOMAIN_NAME} \n "}}"

    wait {}

    {"Enter the number of the option to select GOLD *" {send "n\n"}}

    # Select the target area for this domain directory

    wait {}

    {'Enter' new target location GOLD * {send "${OUD_BASE} / user_projects/domains\n"}}

    wait {}

    {'Enter' new target location GOLD * {send "n\n"}}

    # Configure password and username administrator

    wait {}

    {"Enter the number of the option to select GOLD *" {send "2\n"}}

    wait {}

    "" Enter new * "{send" ${WLS_PASS} \n "}}"

    wait {}

    {"Enter the number of the option to select GOLD *" {send "3\n"}}

    wait {}

    "" Enter new * "{send" ${WLS_PASS} \n "}}"

    wait {}

    {"Enter the number of the option to select GOLD *" {send "n\n"}}

    # Configuration mode field-> 1 | Development mode

    wait {}

    {"Enter the index number to select GOLD *" {send "1\n"}}

    # Java SDK selection

    wait {}

    {"Enter the index number to select GOLD *" {send "2\n"}}

    wait {}

    {'Enter' new JVM Directory GOLD * {send "${JAVA_HOME} \n"}}

    wait {}

    {'Enter' new JVM Directory GOLD * {send "n\n"}}

    # Select Optional Configuration

    wait {}

    {"Enter the index number to select GOLD *" {send "1\n"}}

    wait {}

    {"Enter the index number to select GOLD *" {send "n"}}

    # Configure the Administration Server

    # Change "Listen port.

    wait {}

    {"Enter the number of the option to select GOLD *" {send "3\n"}}

    wait {}

    "" Enter the value of * "{send" ${ODSM_PORT} \n "}}"

    # Change 'SSL enabled.

    wait {}

    {"Enter the number of the option to select GOLD *" {send "4\n"}}

    wait {}

    {"Enter the index number to select GOLD *" {send "1\n"}}

    # Change 'SSL listening Port.

    wait {}

    {"Enter the number of the option to select GOLD *" {send "4\n"}}

    wait {}

    "" Enter the value of * "{send" ${ODSM_SPORT} \n "}}"

    # Then

    wait {}

    {"Enter the number of the option to select GOLD *" {send "n\n"}}

    # wait for install

    wait {}

    {"Successfully created * field *" {send "\n"}}

    EXPRESSIONS OF FOLKLORE

  • How to check the image source for the image which is losted?

    Hello world

    How to check the image source for the image which is losted?

    If the image source already exists, I can read the PlaceItem.file.fsName.

    But if remove the image of the source, read the PlaceItem.file.fsName will report the error: there is no file associated with this element

    Thank you

    If (app.documents.length > 0) {}

    var sourceDoc = app.activeDocument;

    sourceName = sourceDoc.name var;

    artItem =]

    for (i = 0; i < sourceDoc.pageItems.length; i ++) {}

    artItem [i] = sourceDoc.pageItems [i];

    If (.) TypeName artItem [i] == 'PlacedItem') {}

    If (.imageColorSpace [i] artItem == undefined) {}

    Alert ("the file is the link, but I don't know whether or not the source image is losted");

    }

    }

    }

    }

    Use try/catch to catch the error

    if (app.documents.length > 0) {
        var sourceDoc = app.activeDocument;
        var sourceName = sourceDoc.name;
        artItem = []
        for (i = 0; i < sourceDoc.pageItems.length; i++) {
            artItem[i] = sourceDoc.pageItems[i];
            if (artItem[i].typename == 'PlacedItem') {
                if (artItem[i].imageColorSpace == undefined) {
                    try {
                        var fname = artItem[i].file.name;
                        alert("file name: " + fname);
                    }
                    catch (e) {
                        alert("The file is linking ,but source image is lost");
                    }
                }
            }
        }
    }
    
  • Help to create a gif animated for a navigation bar!

    Hey guys, I'm very new to Fireworks and dreamweave and I encounter a problem that makes my head spin! I need to create a simple animated .gif to a navigation bar (which will be published in dreamweaver). The navigation bar are as follows: http://www.eden.rutgers.edu/~baronson/ITI320/Exercise2/functionality.html. Essentially, all that happens is I create this animated picture and in dreamweaver, when I create the navigation bar of AP, I updated the mouseover this image. My problem is that, compared to the image mouseover of the website ( http://www.eden.rutgers.edu/~baronson/ITI320/Exercise2/images/navi/audience_OVER.gif ) animated my gif has several layers and States, where, as its only has a single layer. I can't seem to find a way to include both text and gif image and incorporate them into the same layer.

    A follow-up to the issue after finding the way to integrate them both in the same State, I should catch every piece of my animated gif for the individual State, that I want it be applied?

    Any help/pointer to where the information would be greatly appreciated. I have read through the manuals and watched a lot of videos of Babbage, but were not able to understand this. Thank you!

    Your gif didn't need to have several layers, but he needs to have several States. To save you a lot of confusion, first create animated gifs, and then export them. Create your navigation bar in the usual way, with simple images, rolloveres or swap. The navigation bar on export. Rename the gifs animated with the names of most of the State of the navigation bar images and then remove (or mone to another folder) more images of the State navigation bar. Move the gif animations in the navigation bar image file. Preview in the browser. The animated gifs should have replaced the original state of the buttons.

  • Satellite C660D-14W - Webcam application: Impossible to adjust the Image Preview size

    I recently bought a Satellite C660D-14W, and then activation of the application of the webcam, I can't increase the size of the image of 160 * 120.

    The size of the image (i.e. the image of myself I see when the webcam is activated) used to be much larger, but when I select the drop-down list menu resolution to see that I can enlarge the preview image, the only option I gave is 160 * 120.

    A couple of times before this problem started, when I started the laptop I got an error message saying that the application of the webcam could not be enabled; I've uninstalled and reinstalled the driver for the webcam, but no luck.

    Any help would be appreciated.

    Best wishes

    Andy

    Hello

    Even if reinstalling driver webcam didn t help you, I would recommend when even that check once more.
    You must uninstall the first webcam software!

    Then you must clean the registry because the registry still contains entries.
    You can use the CCleaner it s clean good software keep the register and the OS.

    After that, restart the device several times and then download the software of the webcam from the Toshiba page then install it and restart the device.
    Now check the features of webcam!

    Note: to install 3 software (Skype, etc.) that may affect the webcam feature to verify the webcam before install you the software.

Maybe you are looking for

  • IPhone appear not anywhere on my pc

    My Iphone keeps resarting and I can not restore cause it does not connect to my computer, I see nothing in Device Manager or something like that please help

  • 4 b 2 is a problem with javascript

    Error after upgrade This has happened Each time Firefox opened After upgrading to 4 b 2 User Agent Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; .NET CLR 2.0.50727 .NET CLR 3.0.4506.2152; Trident/4.0)

  • need help for W7 to the downgrading to XP - graphic!

    Hello follow-up guide to CherylG of downgrading from W7 to XP and got to the point where everything works well, there is just one very annoying problem: I can't get the resolution of my screen that I need! Hardware: HP G72-150EF, model VY077EA #ABF.

  • ProBook 6570b: problem - upgrade Windows 10 ProtectTools Manager access

    I can't move to Win 10 because windows reports that I need uninstall Windows ProtectTools that won't uninstall until I have remove ProtectTools Access Manager, for which I find no way to uninstall it. I would also like to know what will be the effect

  • Conversion of Wav and mp3 to WMA lossless?

    Hello. I have been using Windows Media Player 11 on XP Home edition 32 bit and Vista Home Premium 32 and 64-bit. I'm not sure is WMP 12 is different from 11. iTunes converts files... I can rip cd to mp3, Wav and WMA Lossless. It's ok. -How can I conv