Adding Pause and Play Buttons to an embedded SWF

I'm having trouble with a navigation skin of a SWF file I'm
embedding in one of my Dreamweaver sites. The SWF shows fine when
embedded without the skin but draws a blank when embedded with it,
even though they are published simultaneously from the same file.
I would like to ADD a Stop or Pause button from Dreamweaver
to the SWF to control the animation.

anyone?

Similar Messages

  • Adding Pause and Replay Buttons

    Ok here is my script for an external XML loading Flash
    Gallery...
    1. How do I add a "constant" Pause and Replay on this?
    2. Every time I add something to the stage the "fade effect"
    affects that too!
    Thanks in advance.
    delay = 5000;
    function loadXML(loaded) {
    if (loaded) {
    xmlNode = this.firstChild;
    image = [];
    description = [];
    total = xmlNode.childNodes.length;
    for (i=0; i<total; i++) {
    image
    = xmlNode.childNodes.childNodes[0].firstChild.nodeValue;
    description
    = xmlNode.childNodes.childNodes[1].firstChild.nodeValue;
    id = setInterval(preloadPic, 100);
    } else {
    content = "file not loaded!";
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("images.xml");
    var loadTot = 0;
    var k = 0;
    function preloadPic() {
    clearInterval(id);
    var con = picture.duplicateMovieClip("con"+k, 9984+k);
    con.loadMovie(image[k]);
    var temp = _root.createEmptyMovieClip("temp"+k, 99+k);
    temp.onEnterFrame = function() {
    var total = con.getBytesTotal();
    var loaded = con.getBytesLoaded();
    percent = Math.round((loaded/total*100)/image.length);
    preloader.preload_bar._xscale = loadTot+percent;
    info.text = "Loading picture "+k+" of "+image.length+"
    total";
    if (loaded == total && total>4) {
    con._visible = 0;
    nextPic();
    loadTot += percent;
    delete this.onEnterFrame;
    function nextPic() {
    if (k<image.length-1) {
    k++;
    preloadPic();
    else {
    firstImage();
    preloader._visible = 0;
    info.text = "";
    listen = new Object();
    listen.onKeyDown = function() {
    if (Key.getCode() == Key.LEFT) {
    prevImage();
    } else if (Key.getCode() == Key.RIGHT) {
    nextImage();
    Key.addListener(listen);
    previous_btn.onRelease = function() {
    prevImage();
    next_btn.onRelease = function() {
    nextImage();
    var p = 0;
    var current;
    MovieClip.prototype.fadeIn = function() {
    if (this._alpha<100) {
    current._alpha -= 5;
    this._alpha += 5;
    } else {
    current._visible = 0;
    delete this.onEnterFrame;
    function nextImage() {
    if(p<(total-1)){
    current = this["con"+p];
    p++;
    var picture = this["con"+p];
    picture._visible = 1;
    picture._alpha = 0;
    picture.onEnterFrame = fadeIn;
    desc_txt.text = description[p];
    picture_num();
    slideshow();
    if (isPaused == true) {
    current = this["con"+p];
    p<total-1 ? p++ : p=0;
    preloadPic();
    function prevImage() {
    if (p>0){
    current = this["con"+p];
    p--;
    var picture = this["con"+p];
    picture._visible = 1;
    picture._alpha = 0;
    picture.onEnterFrame = fadeIn;
    desc_txt.text = description[p];
    picture_num();
    function firstImage() {
    con0._visible = 1;
    con0._alpha = 0;
    con0.onEnterFrame = fadeIn;
    desc_txt.text = description[0];
    picture_num();
    slideshow();
    function picture_num() {
    current_pos = p+1;
    pos_txt.text = current_pos+" / "+total;
    function slideshow() {
    myInterval = setInterval(pause_slideshow, delay);
    function pause_slideshow() {
    clearInterval(myInterval);
    if (p == (total-1)) {
    //Resetting...fadeout=300 milliseconds.
    endFadeOut = setInterval(fadeOut, 300);
    //Try using a movie clip called restart_mc that is a button
    _root.attachMovie("restart_mc");
    } else {
    nextImage();
    Here is the Source Files:
    Download the
    Sources

    anyone?

  • Pause and Play Toggling Button

    I have created a Pause and Play button that toggles between states.  It controls a Timeline with synced Sound.  When I use it the sound and animation go out of sync.  Can anyone help me with this or perhaps have better code I could swap out to make this work?
    Below is what I am currently using:
    On the first frame of an Action Script layer put this AS:
    playBtn.onRelease = function() {
    ns.pause(false);
    playBtn._visible = false;
    pauseBtn._visible = true;
    pauseBtn.onRelease = function() {
    ns.pause(true);
    playBtn._visible = true;
    pauseBtn._visible = false;
    Lable a Pause button Graphic "pauseBtn"
    put this AS on the button:
    on (release) {
                gotoAndPlay(_currentframe+1);
    Lable a Play button Graphic "playBtn"
    put this AS on the button:
    on (release) {
                stop();
    Put the Pause and Play buttons directly over each other on 2 layers for the duration of the timeline.
    Pause Button on top. (unless you have a STOP on the first line then maybe the Play button will start it (I didn't Try this)

    you have, what appears to be, conflicting code.  and you appear to be using a netstream instance.  so:
    1.  remove all code attached to objects.  copy and paste the only code you have affecting your pause/play button.
    2.  what is ns?

  • Stop and play buttons...

    How would I go about adding stop and play buttons to a slideshow?
    stop1.addEventListener(MouseEvent.CLICK, stop1);
    play1.addEventListener(MouseEvent.CLICK, play1);
    function stop1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);
    function play1(event:MouseEvent){
    if(this.currentFrame == 1)
    { gotoAndStop(this.totalFrames);

    well idk if the code is even right i need help?  The way the slide show is working is i have it on the timeline....  With this code it doesnt play automatically and when i push play it goes through them in like 2 seconds and you can't see anything?
    stop1.addEventListener(MouseEvent.CLICK, stopSlide);
    play1.addEventListener(MouseEvent.CLICK, playSlide);
    function stopSlide(event:MouseEvent):void {
    stop();
    function playSlide(event:MouseEvent):void {
    play();

  • Previous, play/pause, and next buttons don't work now?!

    Hey everyone so i recently downloaded and installed itunes 9.2.1 I don't have any problems with it now but i've noticed that on my mac the previous, play/pause, and next buttons on the top row of keys don't work now has that happened with anyone else? now when i look under controls on itunes it says to pause its the space key and previous and next are command then left or right arrow but those only work when you have itunes open in front of you. Its not a huge deal but i was so used to just flipping through music and pausing and started when i wanted its just annoying!!! lol is there anyway to get them to work again?

    I was having this problem as well. They were working with everything else, including my Google Chrome media keys extension (Sway.fm Unified Music Media Keys in my case). If you're running a browser extension that allows you to use your media keys on your browser, disable it. In my case it seems the extension was somehow blocking iTunes from being able to use the media keys. Once I disabled it, the keys worked perfectly with iTunes. I imagine this is probably a problem with the latest iTunes update not wanting to share use of the media keys rather than a problem with the browser extensions, since my browser extension hasn't updated since I first downloaded it.

  • Disk Mode? How long pressing the select and play buttons?

    Please, I`ve tried everything to turn it on my ipod since i drop it. It doesn`t appear in itunes or desktop, or my computer. It was with that exclamation mark. I was trying to turn to Disk mode, but it doesn`t go!! For how long should i hold the select and play buttons? I was holding for about 5 minutes until i gave up. Does it take that long?
    Thanks, Juliana

    How to put your iPod into disk mode:
    1) First, make sure that your iPod is mostly charged.
    2) Toggle the "hold" switch on/off a few times.
    3) Hold the "menu" and "select" (center) buttons down together for 7 seconds.
    4) As soon as the Apple logo appears on the screen, let off the menu and center buttons, and immediately click the "select" (center) and "play/pause" buttons until the "disk mode" screen appears.
    If that didn't work, your iPod might be broken.
    But before you presume that, try those four steps above several more times. Sometimes you need to do this step several times before you get the hang of it.
    I hope this helps!
    ~~Kylene

  • IPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots it doesn't recognise the select and play button

    iPod nano 3rd gen. Apple logo remains on screen and iTunes doesn't recognise it's plugged in, I can't even turn it off. I've tried to get to disc menu but when I hold the 'menu and select button' it reboots and then doesn't recognise the select and play button to show the tick. I'm helpless.

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer                 
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • How can I make easier case structure? Or can it possible to have one Pause and reset button in same structure.??

    hello,
    I am tring to convert my main test vi in case structure so latter on i can make some changes in that for example i want creat one pause button and reset button in that.
    I am not so much familer with case structure i want your guidence that how can i make my vi in globle case stucture in that i m having case 1 ,case 2...
    i already tried for that but then i got confused.
    here i am attaching my .llb file in that aa.vi is my main testing vi.
    will you plese guide me so i can make confort vi in case structure.
    Or can it possible to have one pause button and one reset button in same stucture,so User can pause or reset execution at any time when they want.
    Thank you very much in advance.
    Attachments:
    aa.llb ‏3338 KB

    Hello,
    I have change my entire structure ,now is it possible to have pause and reset button.
    here i have attached my changed vi.
    if still any changes required then please suggest me.
    Thank you.
    Attachments:
    aa.vi ‏75 KB
    aa1.llb ‏3333 KB

  • Menu and play buttons unresponsive

    The menu and play buttons on the clickwheel are unresponsive, the interface is otherwise fine.  I cannot turn the ipod off or return to menus after selecting something.  I have already tried updating and restoring the ipod, I don't know what else to do.

    Contact apple with this problem. Here is the link.
    http://www.apple.com/support/ipod/

  • Play, pause, and skip button won't work on lock screen

    When I slide the little tab up and it gives you the options of the flashlight,calculator, and camera the play button and skip button don't work. I have an ipod5 and updated to iOS 7  how do I get it to work

    Thanks for your help. I tried a restore but that didn't work. Do you know of any instructions for taking one of these units apart? I might try seeing if anything is obstructing the buttons. If not, the buttons are probably faulty, just as you said.
    David

  • Why does my music keep pausing and playing on my macbook Pro every time i put my headphones in?

    Everytime i plug my headphones in my music starts playing and pausing, and i don't press the buttons on the headphones or the on mac.

    Your  topic states Macbook Pro yet your system profile confirms you have a Mac Pro which is a desktop computer.  Which one are you having issues with? 
    Which os version are you using? 
    Which app is playing your music? 

  • ITunes pause and play issue

    For some unknown reason, iTunes will play/pause the current song anytime the following happen:
    - I move any file to another folder (also CMD Del)
    - I empty the Trash
    - I hit play or pause in YouTube
    - A message comes into iChat
    Also sometimes in iTunes I have to hit Play button three times to get song to play. Same with DVD Player.
    How do I resolve this issue?
    I have all the latest software versions on a Mac Pro Dual Core.

    I get a message that tells me only installed programs can be accessed. When I try to upgrade to the new version the install fails and I ma told it cannot find the file "itunes.imi".
    Doublecking something, bobo ... is that the iTunes.msi file that it says is missing?
    If so the iTunes.msi is actually damaged, rather than missing, and the damaged .msi is also causing the problem with launching your existing version of iTunes.
    Try the procedure I outline in the following post:
    http://discussions.apple.com/thread.jspa?messageID=9694258&#9694258

  • AS2: Local Connection - Pause and Play Videos

    I have two exe's, they are a mock-up of a control system....one is the controler that sends commands through LocalConnection to the other which simply plays video of what would be happening when certain buttons are pushed on the controler. I got it working with this code (with help I got here):
    sending_lc = new LocalConnection();
    pmvopen1.onRelease = function() {
    this._parent.gotoAndStop(3);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 2);
    pwvopen1.onRelease = function() {
    this._parent.gotoAndStop(6);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 4);
    chokeclose4.onRelease = function() {
    this._parent.gotoAndStop(25);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 15);
    forward1.onRelease = function() {
    this._parent.gotoAndStop(3);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 2);
    reverse1.onRelease = function() {
    this._parent.gotoAndStop(1);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 0);
    reset.onRelease = function() {
    this._parent.gotoAndStop(1);
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 0);
    pause1.onRelease = function() {
    this._parent.pmvOpen.pause; (parent needs to pause flv movie pmvOpen as well as 2 object movies)
    trace(this+" clicked");
    sending_lc.send("my_lc_as2", "gotoF", 1); (this need to send a command to pause one flv movie)
    What I need to do is add a function to the above code that will pause all flv movies in both the sender and reciever (one flv movie each) and pause all object movies on the sender when the pause1 button is pressed.
    The parent needs to pause 1 flv movie and 2 object movies and I need to SEND a command to the other exe to pause one flv movie.
    I started the code but, of course, it doesnt work...the button is active as I get a trace...My attempt to start this is in red at the end of the code above. 'pmvOpen' is the name of the flv movie on the parent and I don't know HOW to begin pausing the other movie called 'pmvOpen1' through LocalConnection or to pause the 2 object movies called 'Chart1' and 'Chart2' on the sender.
    on(press)
    chart1.stop();
    on(press)
    chart2.stop();
    on(press)
    pmvOpen.pause();
    ^^ this is how I had it doing the pause before the requirement to have a second screen. This was simply attached to the pause button...I still need to pause all of the above but also I need to pause a movie through local connection at the same time.
    This is my last step before I finish and if I can get help on the pause I think I can do the play button without any additional help. Just not sure where to start with this.
    Thanks

    I forgot about the recieving end code.
    so my controler end code would look like this:
    pause1.onRelease = function() {
    this._parent.pmvOpen.pause();
    this._parent.chart1.stop();
    this._parent.chart2.stop();
      trace(this+" clicked");
    sending_lc.send("my_lc_as2", "pauseF");
    My recieving code as it is right now is:
    receiving_lc = new LocalConnection();
    receiving_lc.gotoF = function(n:Number){
    trace("received "+n);
        gotoAndPlay(n);
    receiving_lc.connect("my_lc_as2");
    This is recieving for my frame forwarding. So I would need to put a new function in this that calls out the video. To call out the video to be controled would it look something like:
    receiving_lc = new LocalConnection();
    receiving_lc.gotoF = function(n:Number){
    trace("received "+n);
        gotoAndPlay(n);
    receiving_lc.pauseF = function(pause){
         pmvOpenl.pause(n);
    receiving_lc.connect("my_lc_as2");
    This seems to work...I will try to do it with another video on another frame and see what happens. Thanks a bunch man. If this works down the line I think I might have this.

  • Mini ipod menu and play buttons are not working

    My ipod menu button has not worked now for a few months. I can't get back to my main playlist and choose certain things, I just have to listen to the all the songs. Now the play button is not working either, its working to turn on-play-pause, but not to turn it off. So it stays on till the battery goes dead. Help Please-anything!!
    HP Pavilliain   Windows XP  

    See this.
    How to reset the iPod if it appears frozen or doesn't respond.
    It may take quite a few attempts and is best done connected to power.
    If this doesn't work, try restoring the iPod to factory settings.
    However, it seems as if it may be a hardware problem and need service.

  • Random Pause and Play from iTunes

    Starting from about a week ago. My iTune sometimes randomly play/pauses itself without me pressing play or anything. Even after I quit the application, it starts again. I know my play button isn't mulfunctioning because the same problem isn't occurring with my other applications.
    This is getting kind of frustrating, some help please!

    When you say they are displaying in your iTunes library, are you talking about the Audiobooks section of your iTunes library and not the audiobooks section indented under the iPod in the left pane of iTunes under Devices?
    Is the iPod Shuffle configured to sync audiobooks or do you manually manage the iPod's contents?
    B-rock

Maybe you are looking for

  • Display refuses to wake from sleep; restarts on its own or needs a restart

    I'm having this issue since 10.9.3 over the past couple (Mac Pro Early 2009 with Apple LED Cinema Display). The screen goes black at the end of the screen saver and into sleep mode. It sometimes restarts on its own and generates a 'This machine resta

  • I updated iTunes to 11.1.4 and now my iPhone 4S won't show up in iTunes.

    I updated iTunes on my laptop to 11.1.4 and now my iPhone 4S won't show up in iTunes.  I have WIndows 8.  My iPhone shows up there, just not in iTUnes as a device.

  • Problems with images

    Hi there everyone, I have an Applet that i am developing that uses lots of images. I use applet viewer to test it and it is working fine in that - but when I view in Firefox or IE none of the images are displayed! No errors are output and I can't fig

  • Changing Vendor on PO (created and saved)

    HI All Can i amend existing po Vendor code A to B  without deleting (its not GR'd ) it . not via SE16N is it possible normal standard sap transaction (dont want to amend tables or etc...) eg: changing invoicing party at partner Please advise

  • Can a Worker Role process call Antimalware for Azure Cloud Services programmatically?

    I'm trying to find a solution that I can use to perform virus scanning on files that have been uploaded to Azure blob storage.  I wanted to know if it is possible to copy the file to local storage on a Worker Role instance, call Antimalware for Azure