Need several buttons that each target a video cue point but only one works

I have the code that works for one button to find a cue point but how can I make this work for several buttons and their respective cue points?
  "seek-btn2" to find cue 2(named "lou2")
import fl.video.*;
// Video component instance name
var flvControl:FLVPlayback = display;
var flvSource:String = "lou.flv";
// Set video
flvControl.source = flvSource;
// Add seek functionality to the button
function seekHandler(event:MouseEvent):void
   flvControl.seekToNavCuePoint("lou1")
//seek_btn is the button instance name
seek_btn.addEventListener(MouseEvent.CLICK, seekHandler);
when i repeat the last part of the code it does not work, thanks for your time....

Thanks but where would I insert that code and what would I take out from the original code I posted?
i tried this....
import fl.video.*;
// Video component instance name
var flvControl:FLVPlayback = display;
var flvSource:String = "lou.flv";
// Set video
flvControl.source = flvSource;
seek_btn1.cuePointName = new String();
seek_btn1.cuePointName = "lou1";
seek_btn1.addEventListener(MouseEvent.CLICK, onButtonPress);
seek_btn2.cuePointName = new String();
seek_btn2.cuePointName = "lou2";
seek_btn2.addEventListener(MouseEvent.CLICK, onButtonPress);
// onButtonPress function
private function onButtonPress(evt:MouseEvent):void {
     flvControl.seekToNavCuePoint(evt.target.cuePointName);

Similar Messages

  • Bringing up a button and an image using video cue points

    Hi,
    I have a 4:40 long video and I'd like to show a button and a background image (or a movie clip) at 4:30 and I want them stay on the screen after the video is complete. If someone could give me a step by step instructions for this I'd really appreciate it. By the way I use Flash CS5.
    Have a great day!
    Veli

    Sorry if I confused you. Here's a little sample video I'd like to show you (only 10 seconds), so I can explain it more clearly. This is exactly the same thing except it is 10 seconds instead of 5 minutes.
    http://www.relationsmith.com/hhosp/slideshow/jan12/slideshow.html
    In this project I have 6 layers (from top to bottom); action, replay, button, bg, frame, video. The video plays and the button (btn1) comes up at 7, then the video ends and replay button comes up. So far so good.
    When I hit replay button to watch the video again, the video starts to play but this time the video is on the top of everything. I cant see the blue frame, at the 7th second the button activates but is hidden behind the video, and so is the replay button. I think the answer lies in this code:
    function replay(e:MouseEvent):void {
        addChild(flv_pb); 
        flv_pb.play();
    You said this code "addChild(flv_pb);" would put the video on the top of everything. So I was wondering if there is a way to play the video without having it at the top most depth. I'm pasting the entire code for your reference.
    Thanks!
    import fl.video.MetadataEvent;
    replay_btn.visible=false;
    btn1.visible=false;
    flv_pb.addASCuePoint(7,"show");
    flv_pb.addEventListener(MetadataEvent.CUE_POINT,cuepointF);
    flv_pb.addEventListener(Event.COMPLETE,completeF);
    btn1.addEventListener(MouseEvent.CLICK, clickButton);
    replay_btn.addEventListener(MouseEvent.CLICK, replay);
    function completeF(e:Event):void{
    replay_btn.visible=true;
    function replay(e:MouseEvent):void {
        addChild(flv_pb);  // moves flv_pb to the top most depth
        flv_pb.play();
    function cuepointF(e:MetadataEvent):void{
    if(e.info.name=="show"){
    bg.play()
    btn1.visible=true;
    var myURL:URLRequest=new URLRequest("http://www.ctwolfpackyouth.org/");
    function clickButton(myevent:MouseEvent):void {
              navigateToURL(myURL);

  • Two cameras, but only one works at a time, need help

    I've gone over the messages here but not found any answers to my type of problem.  I have two WVC54GCAs both have static IPs on my lan and I can view them both fine from there. 
    I forwarded the port for one to 47624 and the other to 47625 in my router at home and in the camera configuration I specified to use these alternate ports instead of the default 80 port.  When I get in to work and try to view them over the internet by their ip address and port# (e.g. http://22.22.22.222:47624) I get a timeout error, but I can see one if I go to port 22.22.22.222:80 (even though the port I specified in the camera setup was an alternate port).  I used dyndns open port testing tool (http://www.dyndns.com/support/tools/openport.html) which shows 47624 and 47625 are both open ok. 
    I can log into my router on 22.22.22.222:8080 from work and the router logs show that the dyndns tool connected to the router via these ports upon testing.  I was using a Netgear router and thought that might be the problem, so went out and got a Linksys wRT54G2 router to see if that worked better, but have the same issue as with the Netgear.  Here's the weird part, if I go into the router from work and change one of the cameras to forward to port 80 instead of the alternate port I'd set for it, I can view that camera on port 80 despite the camera config still set to use an alternate port.  So then when I take the first camera off port 80 in my router and change the second one to port 80, I can view the second one as well that way.  I have Comcast as my ISP and a Motorola SB5100 cable modem and can't figure out why I am unable to bring them up over the internet using the alternate port settings I specified.  I've spent a lot of time on this, I'd really appreciate any help or other suggestions on what to do.
    Solved!
    Go to Solution.

    As far as I know, all Comcast modems are just bridges...no firewalls in them at all.... The other possibility is that your IT dept at work is blocking the traffic...have you tried this from any other place outside your LAN?
    Tomato 1.25vpn3.4 (SgtPepperKSU MOD) on a Buffalo WHR-HP-G54
    D-Link DSM-320 (Wired)
    Wii (Wireless) - PS3 (Wired), PSP (Wireless) - XBox360 (Wired)
    SonyBDP-S360 (Wired)
    Linksys NSLU2 Firmware Unslung 6.10 Beta unslung to a 2Gb thumb, w/1 Maxtor OneTouch III 200Gb
    IOmega StorCenter ix2 1TB NAS
    Linksys WVC54G w/FW V2.12EU
    and assorted wired and wireless PCs and laptops

  • Several buttons that do the same behavior

    Hello,
    I need to have several buttons that do the same behavior.
    For brevity, I do not want to attribute to them each time a different instance name.
    Is there a way to perform many buttons the same function (eg trace ("foo");?
    And:
    1)  without converting all the buttons in a single symbol, this is because I often need to give different positions on the Stage;
    2)  without to write a different script for each button?
    Thank you.
    John.

    You would want to use a for loop for your need and dynamically reference each button instance. In the below example, create 4 buttons on your stage at the root level and give them instance names of "btn1", "btn2", "btn3" & "btn4". Then insert the following on the root timeline.
    stop();
    for (var i:Number = 1; i <= 4; i++){
              _root["btn"+i].onRollOver = function(){
                        trace("foo"+this._name);

  • I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    I have an iPad that I want to update to IOS 5.1. I have several apps that each were installed using a different iTunes ID. How can I update the IOS without losing the apps?

    To update your phone requires using the latest version of iTunes, on your computer, as well as Internet access. The update to iOS 5.0 or higher is an erase/restore deal, so you not only have to make sure all of the content, currently on your phone, is on your computer and accessible, you need to update iTunes first, have Internet access, then update your phone. There is no way around this fact. You could go to an Apple store or use another computer, but you run the risk of losing all of your data it you do that.

  • I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    I copied several MOV files to a CD. When I play them from the CD the video is fine but the audio works fine for the first few seconds then stops (using Qicktime Player 7.7.1.  Everything works fine if I use VLC Media Player. Does anyone have any idea why?

    My purpose for copying to a CD or DVD is so that I can make copies and send to friends and relatives. What is the best way to get these files on a CD/DVD with the right codecs?
    The easiest thing to do is to simply tell your friends and relatives to copy the files to their local hard drive before playing them. Your basic problem is that data discs have a limited real time transfer rate. Since you say VLC plays the files fine, I might suspect its player is likely buffering the data while the QT 7 Player is not.
    Data discs made for playback directly from the CD or DVD are normally encoded using MPEG-4/AVC (H.264) video with AAC audio. This is a modern codec which has specific settings to re-package the data (i.e., must be encoded using the multipass option and then select the "optimize for CD/DVD" option).

  • Hello, I bought a song on iTunes that has a music video to it, but I don't want the song to play the music video. How can I make it so the music video isn't played?

    Hello, I bought a song on iTunes that has a music video to it, but I don't want the song to play the music video. How can I make it so the music video isn't played?

    Hello, iBillyxD. 
    Thank you for the question.  The best way to avoid this behavior would be to delete the music video from your library.  You can always download it again free by accessing your previous purchases.  To delete and item in your iTunes library, select the item and hit delete on your keyboard. 
    How to delete content you've downloaded from the iTunes Store, App Store, iBooks Store, or Mac App Store
    http://support.apple.com/kb/HT5772
    Downloading past purchases from the iTunes Store, App Store, and iBooks Store
    http://support.apple.com/kb/ht2519
    Cheers,
    Jason H. 

  • Hi, i have purchased iPhone 5 about 15 days ago, its working well but only one problem that it has is that some time its losting signal and appear as no serves. would you please help me in this reqard. thanks

    Hi, i have purchased iPhone 5 about 15 days ago, its working well but only one problem that it has is that some time its losting signal and appear as no serves. would you please help me in this reqard. thanks

    Well, it could be that your carrier doesn't have a signal when it looses its signal.  You could try resetting network settings which might help - Settings/General/Reset/Reset Network Settings.  You'll need to set up any wi-fi networks you connect too again. If you're still having issues, contact your carrier.
    Good luck!

  • Whenever I click on a link with the middle-mouse button, it opens multiple copies the link instead of only one (Version is 4.0.1).

    Whenever I click on a link with the middle-mouse button, it opens multiple copies the link instead of only one (Version is 4.0.1). I have checked the mouse in other browsers and it doesn't behave oddly in them.

    Does that happen if you {Ctrl + Click} the same hyperlinks?

  • I am trying to transfer my movies (mp4 files) to my IPad, but they are not showing up on the IPad. I have 13 movies showing on my IPad that they are in ICloud. I've sync'd the movies I want to the IPad, but only one is showing under the "movies" folder. ?

    I have been trying to transfer some different movies from my PC to my IPad, but they are not showing in the "movie" folder. I have sync'd the movies (these are mp4 files) that I wanted transfered, but only one is showing in the folder. There are 13 other movies in the folder that have the ICloud symbol in the corner of their picture. I understand that I can pull those movies from ICloud any time I want to watch them, but I want to watch the ones that I've just sync'd with my IPad. How do I find them? After I checked the movies I wanted, I "applied" them and watched it sync and copy the wanted movies to my IPad. Now what?  Thanks.

    There are some good programs that you could use to convert the format, Handbrake or Mpegstreamclip are two good free ones. Convert them to MP4 and then try importing them again.

  • I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if I

    I need to edit out parts of a song to cut it down to two minutes for my daughter's talent show. I went to info/start time and it will cut down one part but only one part. I need to put three parts together. I tried adding duplicates of the song to the list but if If I change the start time on one it will change it on all of them.

    In your library, right-click the song you want to edit.
    select "get info".
    go to "options" and select the start and stop times for your first section of the song.
    click "OK".
    Find the shortened version of the song in your library. It may take a minute for it to show up. right click it again and select "create (????) version". (the ???? is different for different formats).
    The library will spit out a new, second version of the song which you can rename. I suggest you use the original title and add a 1 to the end.
    Now you can go back to the other version and repeat the process with a different  start/stop time.
    Once you are done editing, you can burn all of your versions to a disk, just make sure your interval time is zero so there are no gaps between edits.
    To keep the orginal song on your library, just go back to the original and put the start/stop times back to the original settings.

  • Why is it when I plug in any headphone that only one works?

    Why is it when I plug in any headphones that only one works?

    the song is in mono or only one track
    one of your headphones is broken
    there's something wrong internally in your iPod.
    Try different songs to see if all of them only play on one side. also try apps to see if the sound is on one side or both.
    Try a different set of headphones/ear buds to see if they sound different
    if neither of the above fixes it then you may want to have Apple check out the device and see if the jack is broken

  • How can I block a number that calls me persistently every single day but only shows 3458  it does not show the full 10 digit

    how can I block a number that calls me persistently every single day but only shows 3458  it does not show the full 10 digit so on your block page will not let me block it!!!  So frustrated and I am not answering it with all the hackers out these days I don't want to give them access to my phone.

        @lottsandy
    I can understand your frustrations and concerns with receiving these unknown calls!  I would love to assist you with preventing these types of calls.
    Sounds as though you're receiving some type of telemarketing call.  Although you're unable to add the shorter numbers to your call block list, you can definitely add your number to the National Do Not Call registry http://1.usa.gov/1whONxp.  I hope this will help prevent those unwanted calls.  Thanks!
    AnthonyTa_VZW
    Follow us on Twitter @VZWSupport

  • I just bought a macbook pro. I was told by several people that it should have came with iMovie but I can not find it.

    I just bought a macbook book pro. I was told by several people that it should have come with iMovie. I can't find it anywhere and it does not come up when I search for it. Someone else said that if it is not already on my computer I can download it for free? Please help! I would like to use it to burn some of my videos onto dvd.

    Yes, your MBP should definitely have come with iMovie. If it doesn't have it, contact Apple directly and ask them what to do.

  • Do i need to convert my Nikon D 800 video to Pro res files to work in FCP X?

    Do i need to convert my nikon D 800 video footage from H.264 to Pro res to work in Final cut pro X?

    You can import your footage directly to FCP X.
    FCP X can work with the native footage. Inside FCP X you can create "Optimized Media", which is in ProRes 422.
    You may not need to, depending on the edits you make (how many effects, etc). Since you can create optimized media at any time, I suggest you try it. If FCP X is slow editing your original media, optimize.

Maybe you are looking for