Back button on slide show works not properly?

Hey there ' All,.

I am currently working in Flash Professional CS6 using a sheet AS3 thing... I'm incredibly new to Flash, and I met a google problem could not solve.

Here's my project (not in his own dimensions on the screen, so please ignore the rasterized images): http://myfirstphp.hostzi.com/slideshow2.swf

So, the goal was to tween transparency each photo that will loop continuously. I wanted to also add, back, pause and play buttons that appears when you move the scene. Well, I have everything works except the back button.

For some reason any to my insue, whenever you hit the back button a few times (more than twice or you click the next button and then the back button), he is not back. It's as if the button is not reload on the appropriate framework. Strange for me.

The next button seems to work perfectly, however. So why just the back button? I do not know!

I have my flash project implemented in the following way (maybe it's not the most effective way, but I couldn't find another way to do it; I hope this makes sense):

Each photo is in its own layer. Each layer is interpolated transparency. The layers are staggered in order to blend into one another.

I have two layers of action.

The first layer of action has my channel playback, pause, and alpha. This key frame encompasses the full slideshow. Here is the code:

pause_btn.alpha=0;
play_btn.alpha=0;
forward_btn.alpha=0;
back_btn.alpha=0;
rectangle_btn.alpha=0;


stage.addEventListener(MouseEvent.MOUSE_OVER, mouseOverHandler);
stage.addEventListener(MouseEvent.MOUSE_OUT, mouseOutHandler);


function mouseOverHandler(e:MouseEvent):void
{
          pause_btn.alpha=1;
play_btn.alpha=1;
forward_btn.alpha=1;
back_btn.alpha=1;
rectangle_btn.alpha=0.5;
}


function mouseOutHandler(e:MouseEvent):void
{
          pause_btn.alpha=0;
play_btn.alpha=0;
forward_btn.alpha=0;
back_btn.alpha=0; 
rectangle_btn.alpha=0;
}




play_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler);


function fl_MouseClickHandler(event:MouseEvent):void
{
          // Start your custom code
          // This example code displays the words "Mouse clicked" in the Output panel.
          play();
          // End your custom code
}




pause_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);


function fl_MouseClickHandler_2(event:MouseEvent):void
{
          stop();
}

My second layer action has my buttons next and return to them. I have a new image of action relative to the opening of each interpolated image. Here is the code for one of keyframes (Note: the only thing that changes are the numbers for each key frame):

forward_btn.addEventListener(MouseEvent.CLICK, click1);


function click1(event:MouseEvent):void
{
          gotoAndPlay(21);
}


back_btn.addEventListener(MouseEvent.CLICK, click0);


function click0(event:MouseEvent):void
{
          gotoAndPlay(229);
}

I don't know what else you all need to help me solve my problem, so I guess I'll just check in the morning thank you very much in advance!

You do the same thing you've been originally... creating several headphones for the button.  You just need the functions defined once in the first picture where the keys begins.  This layer actions must extend to the entire length of the timeline so that the variables and functions are available throughout.

Instances of the button can increase the full length of the scenario without the need to have more than one keyframe for them.

Framework 1

var nextReference:Number = 21;

var backReference:Number = 229;

forward_btn.addEventListener (MouseEvent.CLICK, click Next);

function clickNext(event:MouseEvent):void

{

gotoAndPlay (nextReference);

}

back_btn.addEventListener (MouseEvent.CLICK, clickBack);

function clickBack(event:MouseEvent):void

{

gotoAndPlay (backReference);

}

Other images:

nextReference = 46;

backReference = 253;

Tags: Adobe Animate

Similar Questions

  • Transition slide show works not properly in Firefox

    I built a website in Muse. It has several slide shows which one on the home page. The transition is defined for each image and a second fade 2 shows 5 seconds between transitions. The slide show with transitions melted looks great in IE, Chrome, and Safari browsers. The problem in Firefox (ver. 35.0.1), is that the transition is not working properly. In Firefox, when the transition period begins the first picture quickly disappears and only the first half or more of the following image is displayed until the transition period is over and then the rest of the image appears in the display - no or very little fading. This is repeated in most of the image in the slideshow transition periods. I tried to vary the transitional periods and other parameters of time for the slide show with no solution to this problem.

    I spoke with two people using Adobe over the last two weeks. Two of them have seen and confirmed the problem. Neither one could help and suggested that I put this on the forum here. I even downloaded all my files site Web of Muse, because they asked, watching and they have not responded with any help.

    I am ready to go live with my Web site but I retain to see if this can be resolved. It nervous me that does not work in Firefox, because a lot of people use this browser.

    Here is the address of the temporary Web site: dlp2015a.businesscatalyst.com

    View it in Firefox and see if you see the problem, and let know if you have solutions for this. I would like to place of Adobe as to why they see the problem but have yet to propose a solution.

    Thank you

    Hi, I found the problem with my client's site - it was the photos. They were not optimized for web use. I don't know why the cursor worked perfectly before, but still...

    I just opened all the photos in Photoshop and clicked on file > save for Web (Ctr Shift Alt for Windows) and Cmd Shift Option for Mac, the downloaded on the site again and this is! Problem solved. I don't know if there is a faster way to optimize them for web use, but that worked for me.

  • slide show, works not when uploaded to the query server

    Site uploaded to the domain: http://www.menterderm.com -does not work

    Site downloaded on my student server: http://www.tammy4u2.aisites.com/MDRI/index.html -works well

    I use jquery slidshow on my site.

    " < script type =" text/javascript"src =" http://AJAX.googleapis.com/AJAX/libs/jQuery/1.10.1/jQuery.min.js "> < / script > .

    "< script type =" text/javascript"src="js/jquery.cycle.all.js "> < / script >

    < script type = "text/javascript" >

    {$(document) .ready (function ()}

    $('#slideshow').cycle ();

    }); document ready

    < /script >

    It works very well in Dreamweaver and it still works very well when I download on my student server.  But when I went to download on the field (on the Godaddy server), it does not work.

    I don't have a lot of problems when I try to download a file using Dreamweaver... it get so frustrating.  I am also using Cyberduck to upload files that I seem to be more effective than the use of Dreamweaver, but for some reason I was not able to connect to godaddy using Cyberduck so I had to download using Dreamweaver (this could be related to my problem).

    Someone suggests a better way to download using FTP?

    Any help or advice would be so appreciated.

    I tried the single and double quotes, and it doesn't seem to make a difference.  My problem seems to be resolved by the suggestion of Jon.

    The slide show is not just working in Chrome and Firefox.

  • IE 7 and 8, the photos does not, image slide show works not

    I invested hours and hours and hours on my site, only to discover that what I see on my computer, it is not what others (users of versions of IE 7 and 8) see.  I decided to read other requests on this forum that the Spry Image slideshow widget is a problem for just about everyone.  If this widget does not work in IE 7 or 8, is there another widget or another solution so that the photos can be displayed on the Web site?

    I would also like to know why some simple pictures on different pages do not load correctly.

    The site is:http://nhcstar.org

    I don't know in what circumstances you found the error; I tried IE7/8, and see no problem.

    The only problem I see is in IE9 which is caused by

    You might do well to change this for

    This will indicate the IE rendering engine to use the latest version of IE or use the add-on for Chrome, as appropriate.

    GRAMPS

  • Video error for a single show - "video error: the files needed to display video are not installed or not working not properly.

    I get a "video error: files needed to display video are not installed or not working not properly."  Please restart Media Center and / or restart the computer. »

    Windows XP MCE 2005 on a PC HP Media Center m750n with 2 GB of RAM, Intel Pentium D 920 processor and more than 230 GB of free hard disk space.

    The strange thing is, it only happens for a show, "Star Trek: The Next Generation" at 07:00 on channel 55 Houston.  Sometimes it is live or recorded.  Shown immediately before and immediately after about 55 works fine, as does anything on any other channel. (Although if I leave the video error for more than a few seconds, then I get an error of the tuner on the other channels until I quit Media Center and bring backup.)

    Maybe my computer is a militant fan of Star Wars?

    Windows XP Media Center 2005

    If this only happens in a show on a channel and passes every day but others
    shows on the same channel are watchable/recordable, it is possible that a copy
    never flag is set that is manifested by the video display
    error message.
     
    I would recommend that you post this topic on the forums of http://thegreenbutton.com .
     
    Tuesday, July 27, 2010, 00:54:06 + 0000, Pseudo Witty says:
     
    >
    >
    > I get a "video error: files needed to display video are not installed or not working not properly."  Please restart Media Center and / or restart the computer. »
    >
    > Windows XP MCE 2005 on a PC HP Media Center m750n with 2 GB of RAM, Intel Pentium D Processor 920 and more than 230 GB of free hard disk space.
    >
    > The strange thing is, it only happens for a show, "Star Trek: The Next Generation" at 07:00 on channel 55 Houston.  Sometimes it is live or recorded.  Shown immediately before and immediately after about 55 works fine, as does anything on any other channel. (Although if I leave the video error for more than a few seconds, then I get an error of the tuner on the other channels until I quit Media Center and bring backup.)
    >
    > Maybe my computer is a militant fan of Star Wars?
    >
    > Windows XP Media Center 2005
     

    Barb Bowman

    http://www.digitalmediaphile.com

  • Windows 7 wallpaper slide show does not not at startup

    Hi guys, I have a problem with my desktop background is no longer automatically using the slide show.

    It works fine if I go in customize / wallpaper slide show / re select all UN ticked the box in the image - save money-changers. Then, after a re boot, all photos are once more a tic tac fact & the slide show function not working anymore... until of course I repeat part 1...
    I tried to go to C:\Users\***my account * removed \AppData\Roaming\Microsoft\Windows\Themes and slideshow.ini and the TranscodedWallpaper.jpg. Closing the computer and restart but that did not help.
    I also tried this
    Type modify power management in the Search box, and then click change power management.
    Click change advanced power settings.
    Select Settings wallpaper available in -> slide show.

    Any help on this issue.
    It is a desktop PC computer, not a laptop so I was skeptical about working in the 1st place. Help please anyone?

    I found the problem, it was a programe called 3rd party Windows App wallpaper, which I must have acidently let it install on my OS... things pretty darn sneaky

  • Manual lens correction works not properly.

    I am trying to correct the perspective of an image in lightroom or in the vertical and horizontal manual lens corrections are not working properly, they are extending to the image in a weird way. I used these cursors repeatedly but I don't know why sometimes, they stretch the image. Here's a video that shows the effect of cursors: Lightroom: manual lens correction works not properly - YouTube. I would like your opinion on this is that you know how I can solve this problem. Thank you

    Controls LR Vertical and Horizontal Correction lens are designed to 'fix' the perspective distortion. What is the perspective of "normal"?

    Normal lens - Wikipedia, the free encyclopedia

    Lenses wide angle move the vanishing points more far and telephoto lenses get the close.

    https://en.Wikipedia.org/wiki/Perspective_distortion_%28photography%29

    LR Vertical and Horizontal controls use the focal length and camera metadata from the image file and adjust the image based on its effective focal length. A goal of 200mm if on a 1.5 crop body factor has an effective focal length of 300mm, resulting in an extreme telephoto perspective. That's why you see more "stretch" the image when you adjust the Vertical control, with a focal length lenses below)<>

    The image file video YouTube has vertical converging vertical very light, slight clockwise rotation and distortion in light pad. You should be able to correct the image for parallel verticals with small values of Vertical and Rotation adjustment. I suggest using "Activate profile Corrections" (profile tab) to fix the small amount of lens distortion.

    So always questions please post the image file on Dropbox or other filesharing site and I'll take a look. Thank you.

  • Slide show does not not on Firefox. Other browsers ok. (Muse CC)

    Hello. I had a site which worked perfectly, and now that I have installed Muse CC homepage slideshow does not work in Firefox. I tested it in Safari and Googl Chrome and it works very well on these, just not Firefox. I also tried to export the site in my browser (Firefox) and it works fine there too. It's just at the point where I'll live with it. I tried to download all the files to new cae too something become corrupt. No success yet. Any help would be great. Thank you.

    This page and slide show work well for me on Firefox. I can have you try to do a 'hard' on the page reload? To do this, you can press Ctrl/Cmd + Shift + R. This will force your browser to dispel all the resources that have been cached and redownload everything from the server. See if that helps.

    If that doesn't help, can you describe what exactly you see, and what version of Firefox you have?

  • iPhone upgrade of the navigation software now works not properly

    iPhone 5

    New IOS software updated and now the navigation screen not working not properly

    is your site on?

  • Video error: the files needed to display video are not installed or not working not properly. Please restart Windows Media Center...

    Please help - it's driving me crazy! I got this to work!

    I am using Vista Ultimate and a connection (cat-5) ethernet to an xbox 360 as a Media Extender (via a Linksys router). I get the error of the video:
    "The files needed to display video are not installed or not working not properly." Please restart Windows Media Center or restart the computer "."

    I have a Happauge PVR 150 TV capture card installed, and you want to watch TV and my video files Via the Xbox 360. I can see the guide for lists of TV programs, but not to look at them without getting the message above.  I can also put in place a program to record, display the video thumbnail, but not play. Video files only will play are videos very select few years recorded only where there is.

    My graphics card is an ATI 2900XT - 512 MB of ram, with the latest drivers.

    I've seen a number of discussions on the web that describes the same (or similar) problem, but none of them seem to have no solution.

    I had Norton Internet Security installed and it has since withdrawn because of the firewall. I had thought, it could be a firewall issue, but it is not. I'm now using the Windows Firewall for now.

    I deleted and reinstalled the Xbox as an Extender media several times... no help. I have re-installed the complete drivers for the video capture card, it has not helped either. I checked and double-checked the settings on my router as well.

    The xbox is set for the share on my multimedia computer. The correct files can also be programmed for sharing.

    On the PC in Windows Media Center, I can view the TV programs, record programs etc etc etc all work.

    Any help would be really appreciated!

    Hello Lowwatts,

    Microsoft Xbox 360 community

    Thank you for visiting the website of Microsoft Windows Vista Community. The question you have posted is related to

    Microsoft Xbox360 community and would be better suited to the Microsoft's Xbox 360 community. Please visit the link below to find a community that will provide the support you want.

    Community Microsoft Xbox360

    Try following the steps in this article:

    Enjoy Windows Media Center on your Xbox 360 with your music, photos, recorded Live TV * and online media

    This should solve your problem.

    Let us know if these steps solve your problem.  I hope the information is useful.

    Kind regards

    Anthony
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Problem with lightbox: slide show does not open when you click on the photos

    Nice day!

    I added several pages to my website with viewers.

    In a few pages, the slide show was under the footer... and in others, when I click on the thumbnail, the slide show does not open...

    Where could be the problem?

    Thanks for your help!

    Opens the slide show does not, is very odd.

    What do you mean by "beneath" ? The content of the album will always focus in the middle horizontal and vertical of the browser (not on the exact spot where you have put it on the page of Muse). Who is?

    Please publish your website online to test. Just press "Publish" and let the Muse to assign a temporary address for her. share this link with us.

  • Slide show does not work within other structures

    Hi all

    I use an incredible slider (amazing slider) to run slide shows on my site. Slideshows work correctly when they are placed within the < body > tag, but if they are put inside a < table > or < div > tag, they may not work properly. Checking each of the external references individually told me that it had to do with .js libraries that were used. Is it possible to adapt these libraries or my site in order to make the code work? Thank you!

    More than likely, you have a small error in the code somewhere. I know not all jQuery slideshow that "must" be a direct child of theto operate, which would limit their usefulness to the point of making them without effect.

    Please post a link to your page of problem so people here could take a look at what's going on in your code.

  • slide show does not work when published

    I published my first site of Muse and it's great & works perfectly, except the custom slide show a shot.

    I downloaded, and then reuploaded my files of script and it still does not work. Its hosted on a non - BC server.

    Any ideas?

    Please refer to the suggestions in the following topic:

    My site does not work when I download on my Web host, but it's good in the preview. How can I fix it?

    http://forums.Adobe.com/message/4300529#4300529

    If you are sure that your files are uploaded properly and in the correct locations, it is likely a problem of permissions that relate to your scripts directory/files (suggestion #2).

  • Volume buttons not working not properly

    The volume buttons on my keyboard do not seem to work right. When I adjust the volume, it is assumed to be a blue bar on the bottom screen to show how much the volume increased/decreased. For some reason, it does not show. That's all just annoying because I don't know how strong my volume is without clicking on the "speaker" icon.

    The volume buttons still work. He can always put on mute, raise or lower the volume. It just does not display it on the screen when I press the buttons.

    Try these 2 links and install, then reboot the pc.

    1) ftp://ftp.hp.com/pub/softlib/software7/COL19596/pv-51762-1/sp35034.exe

    2) ftp://ftp.hp.com/pub/softlib/software9/COL21985/pv-57800-1/sp37318.exe

    Also, note

    The Volume OSD is a HP MediaSmart Menu function. He has to load at startup. To do this, start, in the box type msconfig, press ENTER, go to the Startup tab, then browse the list of startup items and make sure it is enabled under the Startup tab...

    If she is not there, you can download it here... ftp://ftp.HP.com/pub/SoftPaq/sp48501-49000/sp48552.exe

  • Slide show does not work

    I just copied some pictures from my camera in a new folder. I click on "Slideshow" to see, but nothing happens. If I select photos clicking and CTRL, it works. With other records, the slide show is running as before

    That's happened?

    Thank you, David

    Now, I find that the slideshow works with certain records created earlier, but not others!

    Hello

    ·        That is the application helps you to see the pictures?

    ·        What is the file format of the images that you are not able to run as a slide show?

    If you use Windows Photo Gallery to run the slide show, you can run the hotfix in the following article data and check if this is useful.

    http://support.Microsoft.com/kb/938818

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

Maybe you are looking for