Getting buttons to work

I'm trying to create an informative flash program on Mt. St. Helens about the dust cloud it created when it errupted.  I have everything ready to go including the buttons and the pages the screen or next image it should take you to.  I'm just stuck on how I get the buttons to actually take you to the next frame.

Alright I figured some stuff out on myself here but i'm still stuck...I changed my coding to this:
stop()
previousbutton.addEventListener(MouseEvent.CLICK,backward);
nextbutton.addEventListener(MouseEvent.CLICK,forward);
function forward(event:MouseEvent){
if(this.currentFrame == this.totalFrames){
  gotoAndStop(1);
else{
  nextFrame();
function backword(event:MouseEvent){
if(this.currentFrame == 1){
  gotoAndStop(this.totalFrames);
else{
  prevFrame();
Yet i'm still getting these errors:
Scene 1, Layer 'actions', Frame 1, Line 9    1084: Syntax error: expecting identifier before rightparen.  }
Scene 1, Layer 'actions', Frame 1, Line 10  1084: Syntax error: expecting rightbrace before leftbrace.  else{
Scene 1, Layer 'actions', Frame 1, Line 18  1084: Syntax error: expecting identifier before rightparen.  )
Scene 1, Layer 'actions', Frame 1, Line 19  1084: Syntax error: expecting rightbrace before leftbrace.  else{

Similar Messages

  • Cant get buttons to work after linking back

    I have built a flash page that links to html pages. The buttons in the flash movie also link to movie frames in the flash and external html pages. Once movie plays and stops, all links work fine, the links to the anchors and the links to the other html pages, however when I try and link back to the flash movie from an external html page, to specific frames in the flash movie, the html link will link back to flash movie frame fine, however once your back in the flash movie, none of the buttons in the movie work anymore.
    I have embedded the flash movie in an HTML and published it with anchors,"home, about, events etc.
    used this code for several buttons in the flash linking to frame anchors in the movie:
    home_btn.addEventListener (MouseEvent.CLICK, handler);
    function handler (event:MouseEvent):void
         gotoAndPlay (300, "Scene 1");
    This code for the buttons to html pages in the movie:
    members_btn.addEventListener (MouseEvent.CLICK, clickHandler);
    function clickHandler (event:MouseEvent):void
         navigateToURL (new URLRequest ("http://plowonstore.com/members.html"), "_self");
    And this code for the html link back to flash frame anchors:
    <a href="http://plowonstore.com/flash/index.html#home">the button in html page<a/>
    I can't get the buttons in the movie to work once you go back to flash from html links. What am I doing wrong?
    I have search for days now... till I'm blue, can anybody steer me in the right direction please.
    Thanks.

    The flash is 410 frames main movie ends at 393. Buttons appear at lets say frame 115, so at frame 115 I have an action layer with the above code, and blocked(?) extended out all the way to frame 410. Every frame has the action panel showing that code. So like 295 frames its on? I did that beacause flash would not let me put code in layer on each frame more than once told me duplicate code. I would like the buttons to work as soon as they appear, but maybe not possible?
    So when the movie runs and then stops (another layer with a stop(); on frame 393) everything works, if you link to frames 401, 402 etc, can link back and forth in flash movie no prob.
    The frames 401, 402 are continuations of several layers of the main movie, and some additonal content layers just for those "pages". Each has an anchor layer, a content layer, continuing layers of main, and a stop(); layer for each.
    So when you choose a button (in the movie) that takes you out of movie, to an HTML page and then try and link back to flash from that HTML page link, you get sent to correct page, frame, in the flash, but as you suggest and as I feared, the code is not being run. Buttons react to mouse but don't link anywhere.
    http://plowonstore.com/flash
    Any suggestions would be dearly appreciated.

  • Can't download Yosemite, Get button not working

    Trying to update to Yosemite but the Get button is not responding. It stays grey and I don't get the green Install App.
    I'm trying to update from the last version of Snow Leopard.

    There is two ways to do it:
    1. If you want to upgrade current OS to OS X Yosemite, then use other mac to download OS X Yosemite installer and then use external storage (USB HDD or flash storage) or file sharing to transfer /Applications/Install OS X Yosemite.app to the mac on which you want to install it and run the instalation (the mac on which you will be downloading OS X Yosemite can run already that OS).
    2. If you are ok to erase HDD and do a fresh installation of OS X Yosemite (which means all data - applications, documents, photos, music and etc will be deleted) on your mac, then if you have an access to Mac which is currently running OS X Yosemite, you can use that Mac and create USB Recovery Disk:
    OS X Recovery Disk Assistant v1.0
    OS X: About Recovery Disk Assistant - Apple Support
    Create a bootable installer for OS X Mavericks or Yosemite - Apple Support
    Booting then your Mac from USB Recovery Disk will give you an option to use Disk Utility app to erase the drive and then to proceed with Installing OS X Yosemite.
    Starting from an external USB storage device (Intel-based Macs) - Apple Support
    No matter which option you decide to go with, make sure you have a valid Time Machine Backup (or any sort of backup) done - if you decide that OS X Yosemite is not what you want on this Mac, then restoring from Time Machine Backup is the easiest way to go back: Mac Basics: Time Machine backs up your Mac - Apple Support

  • Can't get button to work on static pdf

    I have a form where we would like a second page to open upon button click which contains directions for the user to create a dynamic stamp to approve a document. The button works fine if the document is saved as a dynamic pdf but that defeats the purpose because commenting is disabled on a dynamic pdf. When I save it as a static pdf, the button does not open the second page with the instructions. We don't want the instruction page to be always visible nor do we want it to print if the page is not set to visible. Please help.

    Well,
    the stamps using the identiy object to get the users information.
    This object can also be used by javascript, but in a limited context.
    You need a folder level script to use it in Adobe Reader.
    There are 4 properties the object can return.
    Install the folder level script in the JavaScripts folder of Adobe Reader, close and reopen Reader to enable the script.
    The script looks like this.
    var getLoginName = app.trustedFunction(function(doc)
            app.beginPriv();
              return this.identity.loginName;
            app.endPriv();
    var getName = app.trustedFunction(function(doc)
            app.beginPriv();
              return this.identity.name;
            app.endPriv();
    var getCorporation = app.trustedFunction(function(doc)
            app.beginPriv();
              return this.identity.corporation;
            app.endPriv();
    var getEmail = app.trustedFunction(function(doc)
            app.beginPriv();
              return this.identity.email;
            app.endPriv();
    To call the functions in the folder level script, add a script to the initialize:Event of a form field which should display the information.
    This call the function getName and returns the name of the current user.
    try
         this.rawValue = event.target.getName(event.target);
    catch(e)
         this.rawValue = "unknown user";
    Here's a link to a sample form and the folder level script you need.
    https://acrobat.com/#d=ghT-JotpD6h9*r1Ht7QoNw

  • I am having trouble getting buttons to work in Captivate 8 trial version using a responsive design template. Any suggestions?

    I have a trial version of Captivate 8 that I am evaluating to determine if it will be an option to replace a software we currently use. However I am having a lot of trouble getting even the simplest of tasks to work using the responsive design template. To troubleshoot I created 2 projects 1st a completed empty project using responsive design and a 2nd blank project using the blank project template. I created an audio file that the button, when pressed, will play. I can place a button on first slide of both projects, rollovers work fine, but in the responsive design project buttons will not work to trigger the action. Is this a known issue in the trial version?

    A Blank project is a normal cptx-project, not a responsive project, it has no breakpoint views like a responsive project, it is meant to have always the same layout but on publishing you can choose to have it 'rescale' automatically.  A responsive project allows you to create slightly different layouts for the three breakpoint views: Primary (desktop/laptop/landscape on tablets), Tablet (portrait on tablet) and mobile (phones, where the browser has much lower resolution than the real phone resolution). The 'look' of a project, whether it is responsive or not will be defined by the Theme that is the default theme at that moment, and with the default theme colors that you have at that moment. I think in newbie mode the default theme is White (not sure, never used newbie mode). If you choose another theme as default theme, a blank project and a responsive project will open with that theme applied to it. All themes coming with CP8 are responsive, but you can use them also for normal projects, in that case you only use the object styles for Primary view. Each object style normally has 3 versions, for the 3 breakpoint views.

  • Automatic download doesn't work on some purchased shows.when trying to download purchased season pass tv shows in SD i can't get button to work only shows HD

    Automatic download works on some tv show and not I have go to store and go thru them one at a time to download it. It also tells me there are to downloads avail when really there are. Also when i've purchased a season pass on SD I try clicking on the SD button but it does't work. Ive downloaded show for yrs this problem just started. Please help

    I have the same problem, just showed up recently - very fricking annoying!!

  • My iPhone 5 went black. I tried pushing the on/off button and the circle button at the same time.  It worked once and then it happened again and I can't get it to work.

    Iphone 5 went black.  Tried pushing on/off and circle at the same time.  Worked yesterday and then did it again today.  Can't get it to work.

    You need to hold those button longer until you see the apple logo, then release, then wait for the phone to boot back up.

  • My middle "Home" button stops working at least once a day! Can I get a replacment?

    I got my iPhone in October of 2010 and for the past 2 months witch it is now June 2011, my middle button stops working for up to 2 hours sometimes and it happens EVERYDAY! It's very annoying and also another problem whenever I recive or am calling someone it makes this horrible buzzing noise and it makes it hard to hear the person(s). I want a replacment because this is annoying and stressfull. Is there anyway I can get a new phone...? Please help!!!

    The basic warranty is for 90 days. If you purchased AppleCare for your phone at the time you bought the phone, that's good for 2 years.
    In either case, call your local Apple Store and make an appointment to take the phone in for a repair. If there's something wrong with it, they'll fix it. You won't pay anything if you purchased the AppleCare. If you're lucky to get an Apple Store employee who is in a good mood, you won't pay even if your phone is not covered by a current warranty.

  • Any ideas on how to get my home button to work like it should?

    I have the third generation iPad and have been having intermittent problems with the home button.  The iPad seems to work just fine,
    but sometimes the home button doesn't do anything.  If I am in Safari and want to change to Mail, for example, the only way to get that done
    is to turn the iPad off, let it rest a short time, turn it back on and then go to the screen I want.  I can navigate within an app, but can't change apps
    without going through the above...a real hassle!  I had an appointment with the Genius Bar (Have Apple Care), but then the Home button started
    working for a while and at this time of year, I really don't want to go to the Apple Store!  Any ideas?  Thanks for your help.
    Mary Lou

    Try:
    fix for Home button
    iPhone Home Button Not Working or Unresponsive? Try This Fix
    - If you have iOS 5 and later you can turn on Assistive Touch it add the Home and other buttons to the iPods screen. Settings>General>Accessibility>Assistive Touch
    - If not under warranty Apple will exchange your iPod for a refurbished one for:
    Apple - Support - iPod - Repair pricing
    You can do it an an Apple store by:
    Apple Retail Store - Genius Bar
    or sent it in to Apple. See:
    Apple - Support - iPod - Service FAQ
    - There are third-party places like the following that will repair the Home button. Google for more.
    iPhone Repair, Service & Parts: iPod Touch, iPad, MacBook Pro Screens

  • How do I get the Novo Power Management button to work on Windows 7 64 BIT - Y Series

    I swore on the forums there was some instructions as far as how to get this crap working.
    I don't think it was a topic, but a post within a topic...a lengthy one at that.
    It says specifically how to get the Energy Management software to work with the NOVO button when it's pressed on 64 BIT Windows 7 systems.

    I am moving your question to the Windows Hotsync board, where you will find this thread stickied near the top, discussing Windows 7 & 64 bit Hotsync issues.
    There are no 64-bit USB drivers.  Only way to sync with 64-bit machines is wirelessly, via Wi-Fi, Bluetooth (neither of which your m130 is capable of), or IR.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

  • How do you get your ipod unfrozen if your lock button doesnt work?

    My lock button doesnt work anymore and my ipod's screen is frozen. How do i get it unfrozen without using the lock button?

    Try the instruction here the best you can. WHen it says place the iPod in recovery mode use this program.
    RecBoot: Easy Way to Put iPhone into Recovery Mode
    - iOS: Not responding or does not turn on
    - 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.
    - 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       

  • The wifi button is not lit up has been this way for 2 days and have the ipod for over a year and until two day ago it work just fine anyone have any answers as to how i get get it to work again

    Need help to get the wifi button to work on my ipod

    Make 3 different iCloud accounts and use ONLY for iMessage.   That will permanently fix your issue.

  • Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email.  t worked, but only for those with PC.  I could not get it to work with Apple Yosemite even with reader installed .  is there a way i can make it work for apple /

    Hi - I created a form in Adobe Livecycle and have a button on it to send the form via email. It worked, but only for those with PC. However,  I could not get it to work with Apple loaded with Yosemite even with reader installed .  Is there a way i can make it work for apple / Mac? It worked fine on a mac using Mountain Lion and reader
    Thanks

    LiveCycle = XFA forms.
    afaik - These cannot be used in Apple OSs.
    Be well...

  • Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Facebook like button is not working, I have used the muse widget and created code from facebook. Does anyone know how to get this to work?

    Hi connally25,
    Below is a link to a video tutorial on how to add a Facebook Log button, please check if you have followed the same steps to add the video.
    http://tv.adobe.com/watch/learn-adobe-muse-cc/adding-a-facebook-like-button/
    If you have followed the steps correctly and the button still does not work; here is a link to a forum thread which might help solving the issue:
    Facebook Follow Widget not working
    Regards
    Sonam

  • I have Windows 7 and PS Elements 10 and can't get the text button to work properly.  What can I do?

    I have Windows 7 and PS Elements 10 and can't get the text button to work properly.  What can I do?

    Try selecting the T tool and then doing a reset (see image below)

Maybe you are looking for

  • How to create a page template?

    Hi! I need to create a page template. There are any templates and the page preview option show an overview about the region and areas these. I would like to create a based page in this template. I think that I should know: 1 - How to create the short

  • Issue with Calling Stored procedure in DeskiXIR2

    I have similar requirment. I have created a procedure like below CREATE OR REPLACE PROCEDURE TEST_1( g_id IN employee.employee_id%type, e_id OUT employee.employee_id%type, f_name OUT employee.first_name%type, l_name OUT employee.last_name%type) IS BE

  • Saving pdf files in reader

    How do I set up a pdf file, with fields so a person with acrobat reader can save the file without having to just print it out? I have taken out all security features, but they still can't save the file.

  • Help with the Folder app in iPhone?

    Let me first say this question is about the App named "Folder" by Geopher Tools. This is not about how to create "folders" or putting your applications in a iPhone OS "folder", etc. I bought this App in order to transfer files (including PDF, DOC, XL

  • [solved] XDG menu: possible to hide items?

    When installing applications, .desktop files can be added to /usr/share/applications resulting in new items in my XDG menu (in XFCE's panel). I know I can add items by adding .desktop files of my own in ~/.local/share/applications, but what I'd like