Hiding a preview once video starts playing

I am trying to hide a preview that I inserted with some AS3. The preview works and I use this code to create it.
var preview:Loader = new Loader ();
loadPreview (preview, "gotgame.png");
addChild(movie_flv);
function loadPreview (loader:Loader, previewFile:String) :void {
var u:URLRequest = new URLRequest (previewFile);
loader.load(u);
movie_flv.addChild(loader);
Now I am trying to hide the preview once the video starts playing. I tried the code below that I got from a tutorial but its not working and giving me this error "1046: Type was not found or was not a compile-time constant: VideoEvent." Does anyone see the flaw in my code?
movie_flv.addEventListener(VideoEvent.PLAYING_STAT E_ENTERED, onPlay);
function onPlay(evt:VideoEvent):void {
preview.visible=false;

use:
import flash.video.VideoEvent;

Similar Messages

  • "Not permitted" access to DVD menu once DVD starts playing --Mac DVD player

    Hi,
    DVD works fine on standalone DVD player, but when played on an internal Mac DVD player, it won't allow me to stop the disc and go to the menu once it has started playing. It says "Not Permitted." I've tried a couple different macs.
    I made my video in FCP5 with chapters and exported as MPEG2 via compressor to DSP 3.0.2. I need the chapters to work correctly on a Mac DVD player as it is an instructional video which will accompany all the Mac Media Carts that have been purchased for our school district -- it has to play correctly on the included laptops.
    Anyone have any ideas?

    When you press STOP in the DVD Player, the DVD stops, no longer running. That's the reason that when you try to press MENU appears the Not Permited message: no way to go to the menu because the DVD is not playing.
    That's the normal behaviour of the DVD Player. I think that's the way that thinks works in every DVD player . . . "I think".

  • Music and videos start playing fine but randomly stop and the volume bar disappears

    I have an iPhone 4S and run 6.1.3.  I start to play music or videos (youtube, ESPN, Netflix, any) and they start to play fine but then randomly stop.  The volume bar disappears as well.  But then it reappears and I can play it again.  When I do so it plays about 30 seconds, sometimes less, and pauses again.  I have to repeat the process.  Any idea how to fix or what might be causing the problem?

    Try a reset:
    - hold both the home button and sleep/wake button down at the same time
    - the iPhone will turn off(keep holding) but as soon as you see the apple logo appear release both buttons
    Also make sure none of the LCI have been set off especially the one in the charging dock of the iPhone. Read the article below for help in checking this:
    http://support.apple.com/kb/ht3302

  • Deleted Library File... Once is starts playing at all! Help!

    I have an Ipod 20gig. Recently I deleted the library file, but first...
    When I try to play a song, it queues up on the ipod screen, and then the ipod freezes. It turns itself off in a few minutes and boots back up to the main menu which works fine. I can change any setting. But then when I go to play again it doesnt play and freezes!
    If that ever gets fixed, I have another proble, I deleted my library file!
    Alright folks - somehow i deleted my Ipod library file. Huge problem. Now if I wanna add or delete anything, i have to start from scratch - that is- i cant add anything or itll be the only thing on there when I update! What do I! It took me 2 years to properly tag everything that i got on there!

    I have an Ipod 20gig. Recently I deleted the library file, but first...
    When I try to play a song, it queues up on the ipod screen, and then the ipod freezes. It turns itself off in a few minutes and boots back up to the main menu which works fine. I can change any setting. But then when I go to play again it doesnt play and freezes!
    If that ever gets fixed, I have another proble, I deleted my library file!
    Alright folks - somehow i deleted my Ipod library file. Huge problem. Now if I wanna add or delete anything, i have to start from scratch - that is- i cant add anything or itll be the only thing on there when I update! What do I! It took me 2 years to properly tag everything that i got on there!

  • Sounds out the original video start playing when I have muted them

    In my video I set the volume of the original video to 0% and added a song for the entire edited video. When I play the video on big screen, on certain parts, it still plays the sounds of the original videos until I pause it and continue it. Even if I export the video the original sounds play through.Disturbing  What can I do to get these sounds out of it entirely?

    I would guess that you are using either fast motion or slow motion. There is a bug in iMovie 09 which makes random audio artifacts when you set the speed slider to anything other than 25%, 50%, 100%, 200%, 400%, 800% (i.e. the Presets with the tick marks).
    If you choose another speed, like 139% or 58%, you will get tha audio problems.
    Change your speed to one of the tick marks and that should solve the problem.

  • All CBS, Youtube & Xinmsn videos fail to play on Firefox 4.0 all day long. Once 12 am (Singapore Time), ALL videos start to play Perfectly. Even Headline News takes forever to download until midnight, such problem suddenly disappears. WHY?

    '''My Fujitsu laptop is one-month old. Initially I use IE8 and had problem watching videos. Once, an Action Message appeared advising me my API Driver is not working and directed me to HP instead. Fujitsu advised me it's a malware and a scan of Malicious Software Removal Tool was executed, nothing was detected. Ive had Norton Internet Security on my laptop. I switched to Firefox 4.0. All videos - CBS, Youtube and Xinmsn videos fail to play during the day, between 1 pm till night (11 pm). The only time every of these videos start playing Perfectly is around Midnight 12 am. (Singapore Time). This happens every day and night. How is it that during the day and night, every site including Headline News takes forever to download (transferring data takes unusually long time) but around midnight, such problem instantly disappears (and I can download sites very fast)? Also, ALL videos malfunction all day long till night but miraculously return to perfect function around midnight. This is real weird. Can some kind soul help me with this please? ''"

    i would suggest you backup and reformat the windows.
    Previously i also encounter similar error you encountered found out is malware attack, some of the antivirus are not even able to detect them. There are alot of users posted online which you can google around.
    i had tried remove the malware using those so-called malware removal but things gets worst. So finally i reformat the Windows and everything go back to normal.
    Personal advice, don't click or install those unknown message prompted from website. No antivirus or malware protection software can prevent this if you are letting then to get in your system.
    Cheers and hope i did help you in resolving your error.

  • Videos stop playing, restarting browser fixes

    I believe my Macbook AIr with Lion pre-installed, has had this problem from Day 1 ... After I've had my browser open for awhile, say a day or two, video playback stops working.   Mainly youtube, or something embedded in facebook.  I can follow the link to the video, but once it starts playing (I can hear the sound as normal), the video just goes white.   If I just re-start the browser, it starts working again.   I am using Google Chrome.
    I called AppleCare and some idiot told me that the problem was I had too many browser tabs open and I shouldn't expect things to keep working normally.   Which I do, typically 7 windows with 10-20 tabs in each.
    Thanks.

    Thank you so much! It does fix the problem (which is even more confusing, cause as far as I know it's usually the other way round- people have trouble loading hd videos)  at this point I'll just take what I can get : D I'm just really curious why is this all happening....
    Thanks again!

  • Swf file with external video not playing properly in Captivate 5

    So I'm trying to create a captivate project using swf file that has code that loads external flv inside of it.
    It all works great when I test it in flash but once I export it and insert it in Captivate the screens don't synchronize.
    The content of the video starts playing as soon as the project starts even though it's not on that video slide and when
    I try to scroll through the project the audio of that video screen doesn't stop.
    Anyone has an idea why this is happening, could it be my code in flash that's affecting it?

    Unfortunately, no. I gave up on the idea of inserting question slides in the middle of videos. That means I no longer have videos distributed across multiple slides, which I assume was causing the problem. Now, I only insert quiz slides AFTER the video slide. Not preferred but that's what I ended up with.
    I have recently upgraded to 7.  I haven't had a chance to see if the issue is fixed in 7.  To be honest I am having many issues getting my courses to play properly on the iPad. I am using all the default functions and quiz slides, but I continue to run into problems.

  • Audio start playing unexpectedly

    Hi all, this is another strange issue i encountered.
    I inserted a video in one of my courses. During the preview
    stage (and after i publish to .swf to test locally), everything
    played smoothly. But when I uploaded it to the LMS, the audio from
    the video clip started playing on the second slide for about 10
    secs then it stopped. I couldn't figured out what's wrong
    can anyone help?
    thanks
    JT

    Hi Andrew, the video is on slide 6. The audio from the video
    starts playing on slide 2 for about 10secs then stop.
    How do I set it to not preload? i can't seem to find this
    option
    thanks
    JT

  • Audio start playing unexpectedly when loaded in LMS

    Hi all, this is another strange issue i encountered.
    I inserted a video in one of my courses. During the preview
    stage (and after i publish to .swf to test locally), everything
    played smoothly. But when I uploaded it to the LMS, the audio from
    the video clip started playing on the second slide for about 10
    secs then it stopped. I couldn't figured out what's wrong
    can anyone help?
    thanks
    JT

    Hi Andrew, the video is on slide 6. The audio from the video
    starts playing on slide 2 for about 10secs then stop.
    How do I set it to not preload? i can't seem to find this
    option
    thanks
    JT

  • How to stop youtube videos from playing after restart

    every time I restart firefox (currently 24.1.1 or 14.0.1) any tabs with youtube videos start playing and I have to wait until after restart is complete before I can find it/them.
    is there a way to stop this?

    I don't know of a way to stop auto-play on restart only. There are some extensions that can stop auto-play in general (i.e., all the time). I haven't tried any of them myself, but it looks as though these might help:
    * [https://addons.mozilla.org/En-us/firefox/addon/smartvideo-for-youtube-mytube/ SmartVideo For YouTube]
    * [https://addons.mozilla.org/En-us/firefox/addon/stop-youtube-autoplay/ Stop YouTube Autoplay] (updated version not yet reviewed)

  • Videos Not Playing After Publishing

    I am using Captivate 7 for Mac and uploading to the Litmos LMS platform.  In preview, my videos are playing just fine. When I publish to zip and uploading to Litmos, they don't play.  I get a little grey/white striped box making it look like it's loading, but nothing ever loads. This is super frustrating and I don't know the fix.  I'd love to hear ideas on how to make this work - or at least ways I can troubleshoot.

    Make sure your video files are placed in the same publish directory as the main SWF and that the link to these videos consists of nothing but the video filename.   The video filename should contain no spaces or punctuation characters and should ideally be all lower case.  Then after uploading to your LMS, make sure that the LMS administrator can confirm videos of this mime-type have been explicitly allowed on the LMS web server.

  • Need to show company logo (pdf)when video starts on iMovie, Mac 10.9.4

    My max is 2014 osx version 10.9.4/ Processor 3.2GHz intel core i5/ Memory 8GB 1600 MHz DDR3. I'm working on a video in iMovie and need to put my company logo which i have on a pdf file on the start of my video. When the video starts playing it shows my workers doing there job, i need my logo to appear for about 3 to 4 seconds. I can't find away to do this can any one help?

    Hi
    The big Magician Karsten Schlüter has solved this (I guess)
    See User Tips - or -
    How to create a pointer or a custom title
    And You get an idea of howto get this working.
    Good Luck
    Yours Bengt W

  • Do different recorded slide resolutions cause an imported FLV Video to Play incorrectly?

    I’ve been working on a project involving many captivate files with flv videos inserted into slides I made the slides in Photoshop, I had the same type of project last year with the same client and had similar problems with the flv videos just not running or not running correctly, sometimes cutting off early.  This time using Captivate 4 I’m having problems with the videos playing through fine but then stopping and not continuing onto the next slide.  To even further complicate this sometimes in preview the video will play and then advance to the next slide and then after publishing the files and playing them they stop advancing and you have to select the play button to continue the presentation.
    The setup for these video slides:
    Edit the video in avid and export to After Effects.
    Process the video in AE adding titles, keying, and exporting using render cue to FLV files
    Process and Import the Photoshop slide into Captivate
    Set the properties of the PS slide to; on slide enter; continue, on slide exit; advance to next slide.
    Import the flv video at 640x480, skin = none, auto play auto rewind, Options = rest of slide, pause slide till end of video.
    What I think I found and at least it is working again is, during the recording session with the various business managers while demonstrating their applications they would sometime resize their screens, so instead of recording at 1024x768 they would stop recording and change their screen resolution to 1032x774, to complicate this even further they were all operating their software applications using remote desktops.
    I finally imported the slides into Captivate that were recorded at 1032x774 and resized them to 1024x768 during import and kept my resolution the same throughout the problem was resolved and the project played fine so far. The biggest problem I had was with a slide that fell between two slie sizes even though Captivate resized the slides on import and I resized the slide for the project resolution the Video FLV movie slide would play and then stop. I hope I’m making sense with this and I apologize if I’m not.
    Is a recorded constant screen resolution critical when editing a captivate presentation and if so why? Is there a way to correct a slide problem in hypertext to force a slide to advance, and if so what program would accomplish this.  Thanks in advance.

    Hi there
    Your answer is likely in the thread you missed looking at.
    Click here
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Need to Hide Controls when FLV starts playing

    I am using FLVPlayer_Progressive.swf
    and Clear_Skin_1.swf to load and auto-play FLV video on a
    website.
    It works great but the video controls are visible on top of
    the video.
    I want to hide the controls!
    I spent several hours to find a way how to hide the controls
    (Play/Stop) when video starts playing.
    Anyone knows how to do this?

    I have the same desire to have video controls hidden unless
    mouse activity. As robertvo stated, FLVPlayer_Progressive.swf with
    any of the Clear_Skin_*.swf skins, shows video controls when movie
    starts. I am embedding player in html and have set skinAutoHide in
    flashvars parameter as follows but it has no affect:
    <param name="FlashVars"
    value="&MM_ComponentVersion=1&skinName=Clear_Skin_3&streamName=${param.videoClip}&autoPla y=true&autoRewind=false&skinAutoHide=true"
    />
    Jeff

Maybe you are looking for

  • Custom component not working properly

    Hi all - I am trying to create a custom component. I have followed the suggested MVC architecture, and created the following classes: 1. SuperLineModel (the MODEL) 2. SuperLine (the actual component,e.g. the CONTROLLER) 3. BasicSuperLineUI (the UI De

  • I'm finally getting Snow Leopard. Are the problems fixed?

    I have an early 2008 iMac 8,1 running Leopard 10.5.8. I have not upgraded because I have not felt the need, but it seems I am getting left behind. I know there were a lot of complaints about Snow Leopard which is one of the reasons I did not get it b

  • Retrieve BLOB as a .tif image

    Hi, .tif image files were stored as BLOBs in our database. Now I want to retrieve these BLOBs as .tif files. Any suggestions. Thanks Smita

  • How to impose a logo over video in FCPX?

    Hey there. I am working on a video clip and I want to impose a logo over the video as it plays. The file is a jpg file. Someone told me to convert it to a png. I just dont know how to do this. transparent image?  I need some help here....step by step

  • Cannot install or update on Mac Yosemite

    Since I have gone to Yosemite, I have not been able to use the standard procedure to install or update Flash.  The installer(s) downloads fine, then when I run the installer it stalls (never completes), usually at the 30% complete stage.  And when it