VideoDisplay and events question and looping the video?

i have a flex ap that starts a video via a button click, i also have an event handle to detect when the video is finished
code sample below
private function loadandstartvideo(event:Event):void
          var thisvideo:VideoDisplay = VideoDisplay.getChildbyName("thisvid")
          thisvideo.removeevent(event.Complete,videoDisplay)
          thisvideo.source = "path/to/vid/"
          thisvideo.addeventListen(event.complete,restartvid)
          thisvideo.play();
private function restartvid(event:Event):void
          var thisvideo:VideoDisplay = VideoDisplay.getChildbyName("thisvid")
          thisvideo.play()
the above code is not the exact code the problem i have is that the loadandstart switched the video just fine but the restartvid function never gets called?
anyone have a clue? if you need the exact code i can post it.

here is the actual code. i poisted the other post from a different computer...
playinto is the function called from the button click
private function playintro(boardID:Number):void
        introIndex = boardID;
        var boxid:Number = boardID - 1;
        var vidBoxName:String = "hwsVid" + String(boardID);
        var vidBox:VideoDisplay = VideoDisplay(HWSDisplay.getChildByName(vidBoxName));
        vidBox.source = "path to vid;
        tempWidth = vidBox.width;
        tempHeight = vidBox.height;
        tempX = vidBox.x;
        tempY = vidBox.y;
        vidBox.x = 0;
        vidBox.y = 0;
        vidBox.height = Number(disHeight.text)
        vidBox.width = Number(disWidth.text)
        vidBox.maintainAspectRatio = false;
        var tempVidBox:VideoDisplay = new VideoDisplay;
        var tempBoxName:String = "";
        var a:Number;
        for (a=1;a<10;a++)
                if (a != boardID)
                        tempBoxName = "hwsVid" + String(a);
                        tempVidBox = VideoDisplay(HWSDisplay.getChildByName(tempBoxName));
                        tempVidBox.visible = false;
        vidBox.addEventListener(Event.COMPLETE,onIntroComplete)
        vidBox.play()
private function onIntroComplete(event:Event):void
        var vidBox2:VideoDisplay = VideoDisplay(event.currentTarget);
        vidBox2.removeEventListener(VideoEvent.COMPLETE,onIntroComplete)
        vidBox2.source = "path to loop vid;
        vidBox2.x = tempX;
        vidBox2.y = tempY;
        vidBox2.height = tempHeight;
        vidBox2.width = tempWidth;
        vidBox2.addEventListener(VideoEvent.COMPLETE,restartVidLoop)
private function restartVidLoop(event:VideoEvent):void
        var vidBox:VideoDisplay = VideoDisplay(event.currentTarget);
        vidBox.removeEventListener(Event.COMPLETE,restartVidLoop);
        vidBox.addEventListener(Event.COMPLETE,restartVidLoop);
        vidBox.play();

Similar Messages

  • I just updated to Adobe Reader 11.0.07 on my Mac 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I just updated to Adobe Reader 11.0.07 on my Mac OS version 10.6.8 and now the video files don't work.  How do I uninstall the update and return to the previous version?

    I received a notice from Chris Campbell at Adobe that stated : "....we are aware that Macs created between 2006 and 2008 are currently running into problems using the latest release of Flash Player (version 13)."  My question is will the update of Adobe Reader 11.0.07 cause this problem with Flash Player 13 on my Mac?  Sometimes when I try to view streaming video I get sound but no video.
    >

  • Hi Guys,  I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out

    Hi Guys,
    I am using the full width video widget on a site. The widget was working perfectly however I have just added additional content to the site and re-uploaded and now the video is not working! Please help I have tried everything and am freaking out as this web-site has been payed for by my client.
    Alex

    Many thanks.
    With those symptoms, I'd try the following document:
    Apple software on Windows: May see performance issues and blank iTunes Store
    (If there's a SpeedBit LSP showing up in Autoruns, it's usually best to just uninstall your SpeedBit Video Accelerator.)

  • I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    I dowloaded ios5 for my iphone4, and when i finished the backup i lost all the music and all the videos i bought from the iTunes store. How can i get it back?

    Backup do not contaiuns music or apps, you will either need to resync them from your itunes computer, or you can go to purchase history in itunes or app store app and go to purchase history and redownload them.

  • I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    I have a huge file which is in GB and I want to split the video into clip and export each clip individually. Can you please help me how to split and export the videos to computer? It will be of great help!!

    video
    What version of Premiere Elements do you have and on what computer operating system is it running?
    Please review the following workflow.
    ATR Premiere Elements Troubleshooting: PE11: Project Assets Organization for Scene and Highlight Grabs from Collection o…
    But please also determine if your project goal is supported by
    a. format of your source
    and
    b. computer resources
    More later based on details that you will post.
    ATR

  • Hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?

    hello, i have youtube videos on my iweb site.  but i would like to know if it is possible to get a 'pop-up' affect when you click on a small photo of the video, to open and play the video in a popup?
    we have tried using video light box, but this doesnt seem to work.

    There's an example of one at the buttom of ths page...
    http://www.iwebformusicians.com/Website-Movie-Video/YouTube.html
    Rather than link to the file, the movie is on a separate web page and uses the code shown on this page...
    http://www.iwebformusicians.com/Website-Photos/Image-New-Window.html
    "I may receive some form of compensation, financial or otherwise, from my recommendation or link."

  • Can you connect a iPad USB port into a TV and show the videos you play?

    Can you sue the USB to plug into a TV and show the videos?

    Sorry I meant USE not SUE.

  • My iPad was mirroring the optimmum tv app but now it's just mirroring the audio and not the video.....What do I do to correct this?!!!

    My iPad was mirroring the optimmum tv app but now it's just mirroring the audio and not the video.....What do I do to correct this?!!!

    Welcome to the Apple Community.
    You'll need to buy another, there is no support or warranty for an Apple TV with unauthorised modifications.

  • How come when I view flash videos my videos stop, but the audio plays  and I see rainbow colored lines up and down the video.

    How come when I view flash videos my videos stop, but the audio plays  and I see rainbow colored lines up and down the video. I attached a image below.

    ATR, just to make sure you understand me, all my video clips in my folders appear as the first frame of the video clip when I view my folders as (small, medium, large)icons instead of lists, when saved as .avi files but when saved as .mp4 files, those icons display as a graphic icon of filmstrip with a musical note on it. I do have various other methods to open with (quick time, windows media, winamp or real player) but prefer real player because I like it's quick and easy trimmer that comes along with it, since so many of my videos are just pet antics where you need to clip off the boring beginning and ends of the video.
    I did go on a few of the icons and right clicked, Open With, and tried quick time and also Windows Media and it did nothing as far as how the file was saved for display, and they opened the same no matter which player I used...the actual video opens and plays right at it's first frame... but it's the way it is visually displayed in STORAGE that bugs me because it isn't immediately apparent to me what it is a video of (weddings, outside the house, pet antics)... it makes me have to actually title things and read titles where before I let it just be dates because I had the visual of that first frame as a reference. Obviously, this is a problem for unedited videos only, as anything I actually work with, I do give a title along with the date of the video.
    I also just realized this seems to be the way ALL videos that are wrapped in .mp4 are displayed, as my bloggie camera's videos appear the same way. Now I know why! My other videos display as .avi's so I see the frame. Puzzle solved. Guess I'll just have to learn to live with it, as it seems to be how things display with the various formats.
    Now I need to watch some tutorials to learn how this Premiere program works! It's all new to me, since this is the first time I've been able load any of my videos onto it. I haven't even been able to figure out how to trim on it yet!

  • I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    I need to record two camera interview shoots and turn the video around quickly. What is the best solution using a MacBook Pro and final cut pro?

    Try reimporting all your media: file>>import>>reimport>>continue

  • When I start Firefox the Firefox "what's new" page pops up -- even after I answered the question and viewed the video

    Whenever I start Firefox I get my homepage and the Mozilla "what's new" page in tabs. It is annoying.

    Hi jhmalik,
    You should look at [https://support.mozilla.com/kb/Firefox+has+just+updated+tab+shows+each+time+you+start+Firefox this article about that specific issue] and the article [http://kb.mozillazine.org/Preferences_not_saved Preferences not saved]. These should give you all the information you need!
    If that doesn't work:
    # Type about:config in the address bar
    # Click ''I'll be careful, I promise'' if prompted
    # In the Filter input field type ''startup''
    # Double click on startup.homepage_override_url
    # Delete the text string and click ''OK''
    # Close Firefox and reopen the window to verify that it has worked.
    Hopefully this helps!

  • Im glad i have the photo and not the video....

    hi everyone,
    this is not a question but rather a commet.......I just came back form a trip to bestbuy..... there they had the ipod video....
    so i wanted to see it (druel a little) and was maybe considering buying a 30gig.........
    i was very impressed with the very thin profile...... but was quite disappointed with the 'new' thumb wheel control ring thing.......... it was horrible, its too small, and the middle button is not a all-one-piece unit with the wheel, its seperate, and felt very weak and like it was going to break or pop off........ also, being that it was 'flat' on the surface its even more prone to chip's anmd scratches...... im glad i have my ipod photo........ i like it alot better, and probably will not buy a video til they change the controls.;........ i did however buy a shuffle (for days i dont need 60 gig of music) and i love it....!!!!
    Jarrod

    say, do you think apple will let me turn in my ipod
    photo for a new ipod video? or would i just have to
    buy a new one?
    ...just because there's a new model out and you want one?...Doubt it. Even if theres something wrong with your photo iPod, they will probably repair it (if still under warranty), not send you the video model.
    A.

  • Is there a way to switch off by default the video on FaceTime? I only ever use this app for audio/calls and hate the video being on. I especially hate that if I leave the app open to receive calls it means the camera and green light are on.

    My issue is that I can't find a way to have the camera switched off when the app is open and so this means if I want the app open all day to receive calls then the camera is going to be on the whole time. Even if it didn't potentially drain the battery, or add to the CPU usage or whatever else may cause any problems whatsoever (wheel of death!), I just don't want the camera on as I don't see myself ever wanting to use the video call feature but I would use the audio/call multiple times throughout the day to make and receive calls. The camera being on when the app is open is enough to prevent me from using the app. Also ever since seeing that episode of criminal minds where if you saw the green light on above the screen then it meant the killer was watching you!
    Basically I just can't believe there isn't a way to disable the camera whilst having the app running. I know when initiating an audio call the camera goes away, but I would like the camera away the whole time. To me it just would make sense that if you click the video option then the camera is on, and if you click the audio option then the camera goes off. It just seems waaaaay to basic a thought for apple to have missed... Let's face it, we're not all as pretty as the people in the apple adverts and don't want to see our ugly mugs staring back as us when we work all day at our macs!

    I have exactly the same concern. It seems it would be a simple fix for Apple to allow users to turn off the camera (and even the mic) while keeping FaceTime open -- especially now that it turns out FaceTime must remain open in order to send and receive iPhone calls on a Mac.
    I like to think this new functionality of FaceTime will be baked into a future release of Yosemite, as the current setup has that not-quite-finished feel of a work in progress. In the meantime, there's nothing like a little piece of Post-It stuck over the camera to keep the NSA from watching your face as you type a post to the Apple Support Communities.

  • Firefox 24.0 does not update any YouTube page for the download extensions. Video aivalable for download is the 1th opened in the tab and not the video playing.

    On YouTube, when more than one video have been played, staying on the same page, videos aivalable for download, by any Firefox Download Extension as Downloader Helper, Flash Video Downloader or 1 Click Video Download, are the format options for the first video opened in the tab, and not format options for the video actually playing.
    I have tried resetting Firefox ( Firefox menu : ? \ Troubleshooting Information \ Reset Firefox), and reinstall Videos Downloaders (without Adblock Plus that I normally use), it did not solve the problem.
    Temporary Solution :
    Refreshing the http://www.youtube.com/... page ( by hitting the round arrow at the right of the adress bar ) allows me to update the download features but it is annoying as it restarts the playback every time I decide to download a video ( so is it having to remember to refresh the page ).
    I am surprised it seems no one have experience and solved this problem yet.
    Regards to the team
    Running under
    Windows XP SP3 updated
    Adobe Flash Player 11 ActiveX and Plugin
    Adobe Shockwave Player 12.0
    Java 7 update 25
    Windows Media Format 11
    QuickTime Plugin 7.7.4
    Avast Free Antivirus

    What hardware are you on? Flash is always a finicky beast, especially on older hardware. This is not an entirely uncommon problem. Try looking at this [[Flash Plugin - Keep it up to date and troubleshoot problems|support article]] and see if that helps.

  • Trying to organise video clips but can not find them in iphoto under Movies but do appear idvd under movies.How can I get into iphoto movies section to edit and organise the video clips

    In iphoto '08 in my Library section "Movies" doesn't show as a seperate folder so to find my video c;ips I have to go through 13,000 photos and yet in iDVD they do show up in the media area. How can I edit them and put them into specific files?

    Tell me if a video has been recorded on its side! or even upside down, can you turn it round the proper way?
    If you have Quicktime Pro you can rotate the video. There's a plugin for iMoive that can rotate clips.  Go to MacUpdate.com and do a search for "rotate video" and you'll find several apps that can do the job and the plugin: MacUpdate: Search for '+rotate +video'
    OT

Maybe you are looking for

  • Can I have my Time Capsule wifi and my Verizon router wifi on at the same time?

    I want to have my verizon wifi on at the same time as my time capsules wifi but I don't know if it interfere.  There's an app that you can use as a remote for your cable box but you need to be on your routers wifi. Thanks, Zach

  • How can I block all "Toll Free" and other unwanted calls?

    Yes, I know all about the "Do Not Call" list, and the laws, blah, blah, blah.... these annoying calls from 800, 866, "Unlisted", "Anonymous" and "Toll Free" still happen.  And, there is no point in trying to save one number at a time in a "Don't Answ

  • Unable to download the Crystal Reports for Eclipse

    <p>Hi,</p><p>I could able to see the download links for "Crystal Reports for Eclipse" in diamond site. But i am not able to download the file completely and the download is not supporting the resume option. Some times the downloads crosses 50% and fi

  • Value Help on Adobe Forms

    Hi, I'm trying to implement one search help (F4 on sap) on adobe forms. I just do this process For standard value help in Adobe forms: 1) In layout chose UI element 'Value Help Drop-down List' from WebDynpro Native Controls of Library Palette. 2) In

  • JSObject.getWindow(this) doesn't work in NN6

    Hi, I'm trying to call JSObject.getWindow(this) method from init() method of an applet. I'm using Netscape 6, win2k, JRE 1.4. When this statement is reached, IE 5.0 works fine, but Netscape (6.0/6.2/7.0) hangs. The CPU usage becomes 100% if I see the