Simple slideshow, will not work in as 3.0

L.S. I have this little slideshow, it is for practise for my students. It always worked well in as 2.0,
5 slides, and two buttons: back and next.
The script in2.0 has: prevFrame and nextFrame in the code
and for the exceptions in frame 1, and frame 5 we made a new frame 1 in the actions layer, and coded the back button, gotoAndStop(5); and a new frame 5, and coded the next button: gotoAndStop(1);
Works.
Now I put the thing over tot as 3.0: And I can not get it to work properly....the buttons work, but when I am on frame 5, and go back to 4, it will go no further than 4, evenso when I go back to frame 1 from 5, I can not go further up than frame 1.
What do I do wrong??
attached is the fla in cs5.
Thanks,
Anne Vossen
Message was edited by: Vossen I am sorry but I can not find the button to load up my files...so here is the script:
as frame 1:
import flash.events.MouseEvent;
stop();
next_btn.addEventListener(MouseEvent.CLICK, volgendFrame);
//next_btn.addEventListener(MouseEvent.CLICK, eersteFrame);
//back_btn.addEventListener(MouseEvent.CLICK, vorigFrame);
back_btn.addEventListener(MouseEvent.CLICK, laatsteFrame);
function volgendFrame(evt:MouseEvent):void{
nextFrame();
function eersteFrame(evt:MouseEvent):void{
gotoAndStop(1);
function vorigFrame(event:MouseEvent):void{
prevFrame();
function laatsteFrame(event:MouseEvent):void{
gotoAndStop(5);
frame 2:
next_btn.addEventListener(MouseEvent.CLICK, volgendFrame);
//next_btn.addEventListener(MouseEvent.CLICK, eersteFrame);
back_btn.addEventListener(MouseEvent.CLICK, vorigFrame);
//back_btn.addEventListener(MouseEvent.CLICK, laatsteFrame);
frame 5:
stop();
//next_btn.addEventListener(MouseEvent.CLICK, volgendFrame);
next_btn.addEventListener(MouseEvent.CLICK, eersteFrame);
back_btn.addEventListener(MouseEvent.CLICK, vorigFrame);
//back_btn.addEventListener(MouseEvent.CLICK, laatsteFrame);

It will be easiest to manage if you just have the buttons coded once for the entire timeline with the special conditions written into the functions instead of switching listeners.  And if you use totalFrames instead of the actual number (5), you can add frames in the future without having to change the code...  Frame 1...
stop();
next_btn.addEventListener(MouseEvent.CLICK, volgendFrame);
back_btn.addEventListener(MouseEvent.CLICK, vorigFrame);
function volgendFrame(evt:MouseEvent):void{
    if(currentFrame < totalFrames){
         nextFrame();
    } else {
         gotoAndStop(1);
function vorigFrame(event:MouseEvent):void{
    if(currentFrame > 1){
         prevFrame();
    } else {
         gotoAndStop(totalFrames);

Similar Messages

  • My simple bean will not work! Help!

    I created a java bean based on a tutorial. After a little bit of trouble with the classpath, getting files in the right place, etc, I finally got it working. Whoo hoo!
    Now, I'm working on a second java bean and I cannot get it to work. I'm at the point where I've stripped it down so it's basically identical to the tuturial with just a few changes. When it runs I get a NoSuchMethodError. I've checked, rechecked and re-rechecked my case and my names many many many times. I've rebooted. I've restarted Tomcat and my browser multiple times. What am I missing?
    This is my Test.html:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <form method=post action="Test.jsp">
    What's your name? <input type=text name=username size=20><br>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         HHNum: <input type=text name=hhnum size=20><br>
    </table>
    </form>
    </body>
    </html>This is my Test.jsp:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <jsp:useBean id="user" class="user.UserData" scope="session"/>
    <jsp:setProperty name="user" property="*"/>
    <jsp:useBean id="webPageData" class="com.penntraffic.emeApp.WebPageData" scope="session"/>
    <jsp:setProperty name="webPageData" property="*"/>
    <html>
    <head>
    <title>EME</title>
    </head>
    <body>
    <%= user.getUsername() %>
    <%= webPageData.getHhnum() %>
    <table>
    <tr><td>
         <select name=LookupType>
         <option>Last Name
         <option>Phone</select></td>
    <td>
         <input name=hhnum type=text></td>
    <td><input type=submit value=Search></td></tr></table>
         <br>
    </table>
    </body>
    </html>This is my java bean code:
    package com.penntraffic.emeApp;
    public class WebPageData {
         String hhnum;
         public void setHhnum(String value){
              hhnum = value;
         public String getHhnum() {
              return hhnum;
    package user;
    public class UserData {
         String username;
         String email;
         int age;
         public void setUsername(String value)
              username = value;
         public void setEmail(String value)
              email = value;
         public void setAge(int value)
              age = value;
         public String getUsername()
              return username;
         public String getEmail()
              return email;
         public int getAge()
              return age;
    }The UserData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\user
    The WebPageData.class file is in C:\apache-tomcat-6.0.10\webapps\EME\WEB-INF\classes\com\penntraffic\emeApp
    Both paths are included in my CLASSPATH environment variable.
    This is the error text that I get when I click on the 'Search' button in Test.html (submit button):
    type Exception report
    message The server encountered an internal error () that prevented it from fulfilling this request.
    org.apache.jasper.JasperException: An exception occurred processing JSP page /Test.jsp at line 12
    9: </head>
    10: <body>
    11: <%= user.getUsername() %>
    12: <%= webPageData.getHhnum() %>
    13: <table>
    14: <tr><td>
    15:           <select name=LookupType>
    Stacktrace:
              org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:515)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:408)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    javax.servlet.ServletException: java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:855)
              org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:784)
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:111)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    root cause
    java.lang.NoSuchMethodError: com.penntraffic.emeApp.WebPageData.getHhnum()Ljava/lang/String;
              org.apache.jsp.Test_jsp._jspService(Test_jsp.java:87)
              org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:384)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    If I remove the line that attempts to get the value of hhnum from the bean, everything works fine and I get the username value from the first bean. So the user bean is working, but there's obviously something wrong with my second bean (webPageData).
    I've also tried using <jsp:getProperty name="webPageData" property="hhnum"/> rather than <%= webPageData.getHhnum() %>. I thought they would return identical results, but instead I get the below errors:
    type Exception report
    description The server encountered an internal error () that prevented it from fulfilling this request.
    exception
    org.apache.jasper.JasperException: Cannot find any information on property 'hhnum' in a bean of type 'com.penntraffic.emeApp.WebPageData'
              org.apache.jasper.runtime.JspRuntimeLibrary.getReadMethod(JspRuntimeLibrary.java:839)
              org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1045)
              org.apache.jasper.compiler.Node$GetProperty.accept(Node.java:1101)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
              org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
              org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
              org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
              org.apache.jasper.compiler.Generator.generate(Generator.java:3394)
              org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
              org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
              org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
              org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:308)
              org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
              org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
              javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
    This shouldn't be this hard!! Any help would be greatly appreciated!

    Do you mean the trackpad?

  • Iphoto slideshow will not work

    I am a new Mac user.  Just purchased an IMac with an Intel Core i5.  I opened IPhoto and imported a very large photo library.  When I choose on an album or highlight several photos within an album and click on the slidewhow button, the screen blacks out and goes back to the album without showing the slideshow.  Each time I do this new slideshows are listed on the left side column.  Does anyone have any ideas?  Thanks!

    I would recommend re-posting in the dedicated iPhoto forum where all the people that are very familiar with that software answer questions about it.  good luck.

  • When i create a slideshow in iphoto using the ken burns effect it will not work in idvd. any tips please.

    when i create a slideshow in iphoto with the ken burns effect it works fine. when i then transfer it to idvd it will not work. any tips please.

    With the amount of information you've provided it's impossible to offer a solution.  We can't see your computer so we need to know the details of your problem and setup, i.e.:
    what version of iPhoto are you using?
    what system version are you running?
    how are you getting the slideshow into iDVD?
    what size slideshow did you send to iDVD?
    can you export the slideshow to the Desktop and play it with Quicktime Player there?
    what fixes have you tried?
    how much free space on your boot drive?
    Here's how you should create and sent a slideshow to iDVD from iPhoto:
    Export the slideshow out of iPhoto as a QT movie file via the Export button in the lower toolbar.  For iPhoto 9.4.3 and earlier select Size = Medium or Large. For iPhoto 9.5 and later selct 480p.
    Open iDVD, select a theme and drag the exported QT movie file into the open iDVD window being careful to avoid any drop zones.
    Follow this workflow to help assure the best quality video DVD:
    Once you have the project as you want it save it as a disk image via the File ➙ Save as Disk Image  menu option. This will separate the encoding process from the burn process.
    To check the encoding mount the disk image, launch DVD Player and play it.  If it plays OK with DVD Player the encoding is good.
    Then burn to disk with Disk Utility or Toast at the slowest speed available (2x-4x) to assure the best burn quality.  Always use top quality media:  Verbatim, Maxell or Taiyo Yuden DVD-R are the most recommended in these forums.

  • Simple Update query Will not work

    I am new to sql and I am doing an update query in access and it will not work, here is the query.
    UPDATE Change Code Master Table SET change code = '0';
    Edited by: 805337 on Oct 26, 2010 8:05 AM

    805337 wrote:
    I am new to sql and I am doing an update query in access and it will not work, here is the query.
    UPDATE Change Code Master Table SET change code = '0';
    Edited by: 805337 on Oct 26, 2010 8:05 AMI'm not at all sure why you are asking an MS Access question on an Oracle forum. Last I heard, Larry had not bought Microsoft yet.
    The MS Access equivalent to double quoting an identifier is square brackets like:
    UPDATE [Change Code Master Table] SET [change code] = '0';John

  • Simple Interactive PDF not working

    Once again I'm stumped. I'm attampting to create a simple slide show which animates from one image to the next with just a previous and next button. The project seems to work fine when using the preview mode within InDesign CS6 (8.0.1), but when I export the document it will not work.
    When I open the interactive PDF in Acrobat and attempt to click on the next and previous buttons, an icon appears of a Hand with a black down arrow on the hand?
    Any thoughts as to what I might be doing wrong?
    Thanks.
    — John

    Simple slideshow? How?
    My guess is you're using MSOs which are unsupported in PDF.
    Bob

  • Flash player will not work on my computer, would love advice

    I have windows vista.  When I visit a web page that requires flash, it instructs me to download it (even though I'm sure I have it ialready...).  I do so, it says it has downloaded successfully but I still cannot view the website.  I have uninstalled my current version of flash and reinstalled the latest version numerous times.  It even shows up in my list of programs.  But each time I visit a site that uses it, it tells me I need flash to view it.  Very frustrating.  And suggestions would be appreciated.  Thanks!

    This was very helpful - thank you.  I unchecked "active x filtering" and it seems to be working, under tools in IE.  a simple solution, that may have taken me days to figure out myself!  Hopefully it continues to work from thiis point forward.  Thanks!
    Date: Tue, 16 Apr 2013 12:42:26 -0700
    From: [email protected]
    To: [email protected]
    Subject: Flash player will not work on my computer, would love advice
        Re: Flash player will not work on my computer, would love advice
        created by Chris Campbell in Installing Flash Player - View the full discussion
    Do you see an animation and version number when you visit the Flash Player Version page? If you are using Internet Explorer, please verify that the following two FAQs check out. Enabling Flash Player in Internet Explorer ActiveX Filtering in Internet Explorer
         Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5240948#5240948
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5240948#5240948
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5240948#5240948. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Installing Flash Player by email or at Adobe Community
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Scan to network folder will not work for Yosemite

    Scan to network folder, which is supposed to allow the unit to scan and save to a shared directory on a remote computer, does not work in Yosemite,  though it will work on Macs sporting earlier OS on same network. 
    HP personnel have indicated that HP does not support Apple Mavericks. One can only assume then that it will not work on Yosemite either
    Yet these units are still being sold to be used with Apple OSX.
    Please resolve HP's position.  If these units will not function properly under Mavericks and Yosemite, please explicitly say so.  The scan to network feature should not have anything to do with any OS issue, and it is much more likely that the issue is faulty HP firmware.
    If these units are supposed to fully function under Mavericks and Yosemite,  please provide substantive resolution of the many many problems users have experienced.
    The Scan to Network feature is what makes using these units viable as scanners. The fact that this works poorly at best, and not at all on any recent Apple OS, is simple acceptable

    IT IS OFFICIAL
    HP Case Manager has indicated that HP is abandoning Scan to Network Folder starting with Yosemite as OS security constraints present issues with using its current transport.
    Of course this took an hour of double talk and fiddling about before the admission was forthcoming...
    Shall we count the days until that information actually shows up in the forums?

  • Simple short cuts not working in CC?

    Does anyone know why simple commands are not working in Illustrator CC (Copy, Paste, Undo) This is such an irritating problem as these short cuts are so frequently used. My cloud software is up-to-date. Having upgraded my software I would prefer not to have us CS5 to combat this problem.

    Hi Vaibhav,,
    Thankx for the prompt help!!
    I'm using Submit to SAP button only and I do have xACF installed on my local m/c. I'm able to use buttons and validations on the form but I'm not able to get the values in my WDynpro ABAP Appl. For Eg. : and internal table is bound to a table UI in adobe iForm , I'm able to add row (using formcalc/JScript eventing in Adobe) but I'm not able to get the changed internal table in my WDynpro ABAP application after submit button is pressed.
    Any help will be highly appreciated.
    Regds,
    Aryan

  • Iphoto will not work after uploading yosemite

    After uploading the Yosemite upgrade. The iPhoto will not work. I have done what the software recommends. I have deleted the app and reloaded it. I get the same message. The message that i get is:
    your photo library is either in use by another application or has become unreadable.
    shut down and restart your computer and then open iPhoto again. if the problem persists. try rebuilding your photo library. to do this quit iPhoto, and then reopen it while keeping the option and command keys pressed. you can also try restoring your photo library from a backup.
    Any suggestions or help would be greatly appreciated.
    Matt

    Download iPhoto Library Manager and use its rebuild function. (In early versions of Library Manager it's the File -> Rebuild command. In later versions it's under the Library menu.)
    This will create an entirely new library. It will then copy (or try to) your photos and all the associated metadata and versions to this new Library, and arrange it as close as it can to what you had in the damaged Library. It does this based on information it finds in the iPhoto sharing mechanism - but that means that things not shared won't be there, so no slideshows, books or calendars, for instance - but it should get all your events, albums and keywords, faces and places back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.

  • All of a sudden after some editing, my published to business catalyst thumbnail slideshows will not play.  What should I troubleshoot?

    What should I troubleshoot when all of a sudden after some editing, my published to business catalyst thumbnail slideshows will not play?  They show up on the page, but the states features do not work.

    Hello,
    Please make sure that "Autoplay"is checked in Slideshow options and republish the site.
    In case it do not fix the problem please share the site url so that we can take a look at it.
    Regards
    Vivek

  • Which parts of iWeb will not work on third-party servers?

    Hello,
    I'm migrating my site so some new parts
    I would like to know exactly which parts of iWeb will not work on third-party servers.

    Features Unavailable When Publishing to a Non-Mac Server:
    ◼ Password protection
    ◼ Blog and photo comments
    ◼ Blog search
    ◼ Hit counter
    From iWeb 3's Help
    In addition, unless iWeb is modified by Apple or yourself the forward, back, pause and play buttons of the iWeb slideshows will not display once the MMe servers are taken off line: 
    However, if you follow the directions in this tutorial you can work around that: #26 - How to Modify iWeb So Popup Slideshows Will Work After MobileMe is Discontinued.
    OT

  • My HP LaserJet 1536 Scanner will not work after upgrading to Windows 10

    I just upgraded to Windows 10, and now the scanner will not work, although I can still print.  I downloaded the latest driver, but this does not seem to help.  The error message I get states that scanner communication cannot be established. Please let me know if you have any suggestions. Thanks!

    Greetings , I saw your post regarding the problems you are having with scanning after upgrading to windows 10.
    I would start with the simple, have you tried just restarting the computer? Have you made sure your computer has all of it's windows updates? How can I tell if my computer is up to date? Most products do have updated software available for Windows 10, did you install the correct driver?HP LaserJet Full Feature Software and Driver I've also seen a few posts that say the Windows 8.1 driver will work for Windows 10 as well, so you could try that too.  HP provides a free tool called HP Print and Scan Doctor to diagnose and resolve printing and scanning problems. I recommend downloading and running the HP Print and Scan Doctor, if it doesn't fix it automatically let me know what errors or messages you receive.  Do you know if you are able to scan using Paint? To Scan from Paint: HP Multifunction Printers - How to Scan: Windows 8 
    (It's the same for Windows 10, from what I've been told)Right-click the Start button () in the lower left corner of the screen, click Search, and then type ...Click Paint in the results.Click File, and then click From scanner or camera.Select your printer, click OK, and then click Scan.  Have you tried just using the New Scanner app in Windows 10? It's the same as the one for Windows 8. Here are some resources;New Scanner app in Windows 10Scan app for Windows: FAQ
    And a Video link...    Please let me know if any of these steps resolved your issue, or if there is anything else I can do to help.  I look forward to hearing from you!  Thanks, 

  • Just updated to Iphoto 9.1.3 but the slideshow feature not working

    Just updated to Iphoto 9.1.3 but the slideshow feature not working at all. Screen goes white but any features selected, nothing is produced .The themes preview windows are blank too. is there something missing?

    Sounds like it.
    To re-install iPhoto
    1. Put the iPhoto.app in the trash (Drag it from your Applications Folder to the trash)
    2a: On 10.5:  Go to HD/Library/Receipts and remove any pkg file there with iPhoto in the name.
    2b: On 10.6: Those receipts may be found as follows:  In the Finder use the Go menu and select Go To Folder. In the resulting window type
    /var/db/receipts/
    A Finder Window will open at that location and you can remove the iPhoto pkg files.
    3. Re-install.
    If you purchased an iLife Disk, then iPhoto is on it.
    If iPhoto was installed on your Mac when you go it then it’s on the System Restore disks that came with your Mac. Insert the first one and opt to ‘Install Bundled Applications Only.
    If you purchased it on the App Store you can find it in your Purchases List.

  • Downloaded FF 8 and now RoboForm Ver. 7.6.5 will not work. How do I fix it?

    RoboForm will not work since I downloaded the FF upgrade to 8.0. As simple as that!!!

    App Store Failure / Updates White Screen
    Tap Settings > General > Date and Time > Set Automatically > Off. Set the date one year ahead. Then try to access the App Store.
    It may be a connection issue. Try changing your DNS settings to Google’s open DNS by tapping Settings > Wi-Fi >, tap the blue arrow next to your current Wi-Fi network, and then tap the “DNS” field and enter the DNS servers; 8.8.8.8 (Google’s Public DNS, 8.8.4.4 also alternate).

Maybe you are looking for

  • Can I set up multiple users for garageband?

    I have been asked to take over creating the podcast for my church. Under preferences for Garageband I had "My Info" in place for my personal podcasts I did, so that the information weas already in place when I export to iTunes. Will I have to update

  • Insert the hyperlink URL file name underneath all images?

    Hi, I was wondering if I have an image with hyperlink attached, if I can use some sort of formatting code or something to not only show the picture, but also the name of the URL file associated with the picture. For example, my site is www.drcelly.co

  • Keywords added to new files....

    I am not sure about the origin of this behaviour but when I open a new file it already has a group of keywords that I have used in the past. I am unable to determine where I can turn this behaviour off. I generally move the images from flash drive to

  • Colors in Pages out of whack?

    After I installed OSX 10.6.7 and its combo update, Pages is TOTALLY out of whack -- black text comes out white, colors come out all wrong, when I highlight text it comes out some odd purple lilac-like color.. And there seems to be no way to change th

  • Land scape of BW with simple example

    extraction --- legasy-sap to sap analysis  --olap reporting.....bex Is this is system landscape in BW.... how data in different formats..flat files for example put into BW... what is ODS?