Buttons scripting help

Hi,
I have been working on making a menu for list items but have not had much luck scripting (due to lack of knowledge and time restrictions any help would be great)!
The file below has an amimated menu.
if you click on Artificial Intelligence on frame 60,  it jumps to frame 61 (a specific section for that list item).
How do I make the Artificial Intelligence button on frame 61 jump back to frame 60?
I dont know where to add the action script for the function please can you help.
I need to add a similar script to all 9 list items, do they go on one actionscript file? if so what location?
https://docs.google.com/uc?id=0B4AYjZnEYbN0NzY1NDM5MGQtYjM3My00OTA4LWExMmYtN2RmYzdhMTljNzU 3&export=download&authkey=CKbuuKAP&hl=en
Thanks in advance.
r.

Yes, that makes sense, I tried it and all seems to be working fine, now I have to try and impliment this to 9 list items and have an idea that each action script ought to go within the frame itself.
Some one also suggested that I use this script that I have not tried yet but looks neat just incase anyone is interested:
import flash.events.MouseEvent;
var atHome:Boolean = true;
AIbutton.addEventListener(MouseEvent.CLICK, AItoggle);
function AItoggle(e:MouseEvent):void{
    if (atHome == true){
        gotoAndStop(frame lable/frame number);
        atHome = false;
    } else {
        gotoAndStop("home"/frame lable);
        atHome = true;
I will try this next to see what ahppens, it will save me from creating a lot of duplicate list items (one for home page, one for specific frame).
Thank you for the help, I was stuck!

Similar Messages

  • Button scripting help

    Hello.
    There is a simple solution to my question, Im sure.
    I have created 2 different states of my button that I want to
    make. Each state is a movie clip with graphics inside (a picture
    with text on top of it).
    I want to, in actionscript, tell flash that when a user
    mouses over my button to display "this" state, and when the user
    clicks to show "this", and on and on.
    I basically want to change states of the button based on what
    my user is doing with it (mousing over, clicking on it, etc.) with
    actionscript.
    Any help is appreciated. Thanks.

    1. If you have a MovieClip named "myButton" and inside your
    two states e.g. "over" and "click", add a new layer and label each
    of the keyframes "over" and "click" respectively.
    2. then in actionscript you can use the
    myButton.gotoAndStop("over"); in your mouseOver() method, and
    myButton.gotoAndStop("click"); in your onClick() method.
    NOTE: Make sure you have a stop action over each of these
    keyframes.

  • Button Script Help

    I Need a script that will change the background color of a
    document

    you can't do that with actionscript alone. you can fake it
    though by controling the color of a movieclip positioned at the
    lowest available depth.

  • Simple button script not working

    I am using AS2 and need help figuring out why this simple button script is not working:
    stop();
    buttonWS1.onRelease = function(){
                        gotoAndStop("Stage1and2_Boss",4);
    buttonWS2.onRelease = function(){
                        nextFrame();
    //end
    My buttons are the square letter-puzzles below. They are images that I converted to "symbols" (specifically, buttons). I put their names as above (buttonWS1, buttonWS2, etc.) in the "instance names" boxes.
    I have no idea what is going on. Please help!

    Hi -
    1. Yes, buttonWS2 is the instance name
    2. The only code attached to it is the code I pasted above.
    3. onRelease does not execute because my trace statement does not appear in the output
    Here is the modified code for buttonWS2:
    buttonWS2.onRelease = function(){
                        trace("clicked!");
                        nextFrame();
    Question: It shouldn't matter if I have commented-out code within that set of codes should it?:
    buttonWS2.onRelease = function(){
              //if (puzzleschosenarray[0] == 2 || puzzleschosenarray[1] == 2) {
              // cannot be chosen -- make button non-functional
              //else{
                        //puzzleschosenarray[roundnumber-1] = 2;
                        trace("clicked!");
                        nextFrame();

  • Gallery script help, please

    Gallery script help, please
    Hello,
    I'm new to actionscript in general, I do know a little...
    I foung a gallery script, modified many things, the images
    open fine, everything is working, but here's the thing:
    the gallery is in 3 sections, red, blue and yellow.
    I would like to know how, what, and where to put a script so
    that if a "the small red image #1" is clicked, I can load any sort
    of a movie on top of the "the BIG red image #1" or #2 or 3 and so
    on...same goes for the blue and yellow...
    If I figured things correctly on my own...the small thumbnail
    images of the gallery are not buttons, that's why I can't attach a
    movie (let's say) to them...but it is all written in script, using
    the horizontal and vertical position of the mouse to open the large
    images of the gallery...
    So, I don't know how to figure things out, to attach a
    specific movie to a specific thumbnail...
    p.s.: I think the script that controls the gallery is in
    symbol 120
    I really would appreciate the help
    Merry Christmas in advance to everyone
    Sandra
    here are all the files...
    http://www.gentro.ca/sandra_test.zip

    There's a great tutorial on kirupa...
    click
    here for link

  • How to create authorisation object for save button please help in abap

    how to create authorisation object for save button please help in abap

    Hi
    In general different users will be given different authorizations based on their role in the orgn.
    We create ROLES and assign the Authorization and TCODES for that role, so only that user can have access to those T Codes.
    USe SUIM and SU21 T codes for this.
    Much of the data in an R/3 system has to be protected so that unauthorized users cannot access it. Therefore the appropriate authorization is required before a user can carry out certain actions in the system. When you log on to the R/3 system, the system checks in the user master record to see which transactions you are authorized to use. An authorization check is implemented for every sensitive transaction.
    If you wish to protect a transaction that you have programmed yourself, then you must implement an authorization check.
    This means you have to allocate an authorization object in the definition of the transaction.
    For example:
    program an AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT <authorization object>
    ID <authority field 1> FIELD <field value 1>.
    ID <authority field 2> FIELD <field value 2>.
    ID <authority-field n> FIELD <field value n>.
    The OBJECT parameter specifies the authorization object.
    The ID parameter specifies an authorization field (in the authorization object).
    The FIELD parameter specifies a value for the authorization field.
    The authorization object and its fields have to be suitable for the transaction. In most cases you will be able to use the existing authorization objects to protect your data. But new developments may require that you define new authorization objects and fields.
    http://help.sap.com/saphelp_nw04s/helpdata/en/52/67167f439b11d1896f0000e8322d00/content.htm
    To ensure that a user has the appropriate authorizations when he or she performs an action, users are subject to authorization checks.
    Authorization : An authorization enables you to perform a particular activity in the SAP System, based on a set of authorization object field values.
    You program the authorization check using the ABAP statement AUTHORITY-CHECK.
    AUTHORITY-CHECK OBJECT 'S_TRVL_BKS'
    ID 'ACTVT' FIELD '02'
    ID 'CUSTTYPE' FIELD 'B'.
    IF SY-SUBRC <> 0.
    MESSAGE E...
    ENDIF.
    'S_TRVL_BKS' is a auth. object
    ID 'ACTVT' FIELD '02' in place 2 you can put 1,2, 3 for change create or display.
    The AUTHORITY-CHECK checks whether a user has the appropriate authorization to execute a particular activity.
    This Authorization concept is somewhat linked with BASIS people.
    As a developer you may not have access to access to SU21 Transaction where you have to define, authorizations, Objects and for nthat object you assign fields and values. Another Tcode is PFCG where you can assign these authrization objects and TCodes for a  profile and that profile in turn attached to a particular user.
    Take the help of the basis Guy and create and use.
    Regards
    ANJI

  • I'm getting a similar message: There was an error opening the database..." and the only option I get is a "quit" button. Help!

    I'm getting a similar message: First it offers me chance to repair - but if I it repair, it crashes.  Then if I select do not repair I get the following warning: There was an error opening the database..." and the only option I get is a "quit" button. Help!

    From the path in the error message you posted it appears that the library is not on your internal (root) drive.
    What type of disk is the library on and how is it formatted?
    The crash log Léonie is referring to is what is printed out when Aperture crashes. You wrote that Aperture crashes in your first post so if the app crashes you must have gotten a crash report.
    Message was edited by: Frank Caggiano

  • Stop/Start Streaming Mp3 Sound- Button Script

    I'm looking for a button script to stop a streaming mp3 sound
    playback on the first click, then start it again on the second
    click and so on.

    You need brackets after the function call...
    playMusicFunc();

  • How to "un-grey" the "Updates" button under Help in PS CS6?

    I had uninstalled the CS5.5 and installed the CS6 Master collection. But the "Updates" button under Help in PS is greyed out, that means I cannot update the ACR to 7.1 or any subsequent updates. How can I overcome this problem? BTW, my computer is windows based.

    " Sure you can - simply download them from the support pages/ download section.”
    What should I download from that page?
    ATongT

  • I downloaded the new version of firefox, now my flash player wont work, the html text box is gone and so is the back and forward buttons. please help??

    I downloaded the new version of firefox, now I cant watch any movies, the html text box is totally gone, and so is the back and forward website buttons, please help? can i just have the old version back?

    Not sure whether for instance you initially had a Yahoo optimised version of Firefox, and have now overwritten it with an official Mozilla version. Although the Mozilla version should NOT add unwanted features, but the Yahoo version may well do.
    If you merely need to find the Yahoo emails page quickly just add it as a bookmark or as a bookmark on the Bookmarks toolbar and make sure that is visible.
    Clicking the star icon on the location bar whilst looking at your emails will bookmark the page.
    * [[How to use bookmarks to save and organize your favorite websites]]
    * [[Bookmarks Toolbar - Display your favorite websites at the top of the Firefox window]]
    I do not use Yahoo myself,and am not sure what add-ons are available. You could search yourself using
    * FirefoxButton -> add-ons
    ** see [[Find and install add-ons to add features to Firefox]]
    ** examples [https://addons.mozilla.org/en-us/firefox/addon/yahoo-toolbar/ yahoo toolbar] & [https://addons.mozilla.org/en-us/firefox/addon/yahoo-mail-notifier/ mail notifier]
    * also look at Yahoo's own information such as http://help.yahoo.com/tutorials/toolbar/cl3/c3_ff_toolbar1.html

  • How do I update my iPad 2 to iOS 5, I tried going to settings,general ,software update but I can't seem to find the software update button pls help :)

    How do I update my iPad 2 to iOS 5, I tried going to settings,general ,software update but I can't seem to find the software update button pls help :)

    Go to Settings > General > About and see what iOS version you are running.  If it is lower than 5, you won't find the software update button.  It was added when iOS 5 came out.  The current iOS is 5.1.1.  To update to the current OS, you'll need to connect to the computer you sync with (this is important - do not connect to a computer you do not sync with as you will lose you apps) and update the software in iTunes.  Once you have updated to the 5.1.1, the software update button will be in Settings going forward.  Make sure you have a lot of time.  Updating from below 5 to 5 or higher is a somewhat lengthy process.
    This link will provide the guidance you need:
    http://www.macworld.com/article/1162925/how_to_upgrade_your_ios_device_to_ios_5. html

  • When I start my mac book pro the screen flashes on and off and then a blue color before it open to the log in screen. Sometime a program will shot down buy it's self without me clicking the quit button. Help?!

    When I start my mac book pro the screen flashes on and off and then a blue color before it open to the log in screen. Sometime a program will shot down buy it's self without me clicking the quit button. Help?!

    If you keep getting a 'red' message it means that the HDD is faulty and will have to be replaced.  You will have to format the new HDD in Disk Utility>Erase and then install the OSX and your data from Time Machine.
    Ciao.

  • Firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    firefox not responding, freezes, sometimes responds after a few minutes, other times a pop-up appears asking if I want to stop script - help please

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • When button clicked help

    I have buttons for help, back, next, finish, cancel.
    initially I have the back and finish buttons setEnable(false)
    but when I click on Next button I want the Back button to be setEnable(true)
    I wrote the following
    //ActionListener for jButton_Next Of NavigationButtons Panel
    newNavigationButtonsClass.jButton_Next.addActionListener(new ActionListener() {
    public void actionPerformed(ActionEvent e) {
    newNavigationButtonsClass.jButton_Back.setEnabled(true);
    When I click on the jButton_Next the jButton_Back is not enabled. May I know what I can change in this to get this working. Thanks.

    Is the code where you initially disable the button
    getting called again somehow? I'd check to make
    sure this code isn't getting called again after you
    enable the button within actionPerformed.

  • A friend of mine was recently in an accident and we need to delete some photos from her iPhone's "Photo Stream From my Computer" album, but cannot figure out a way to do it (there's no delete button). Help?

    A friend of mine was recently in an accident and we need to delete some photos from her iPhone's "Photo Stream From my Computer" album, but cannot figure out a way to do it (there's no delete button). Help?

    Sounds like it was synced from her computer using iTunes.  Connect the phone to her computer, open iTunes, click on the name of her phone in iTunes, go to the Photos tab and see if this folder is checked.  If so, unchecking it and syncing will remove them all, or deleting/moving the photos from the folder on her computer and syncing will remove the deleted/moved photos.

Maybe you are looking for

  • Error while saving Adobrforms: There was a error reading the document(26)

    Hello, Am not able to save the pdf form. Error : "The document could not be saved.There was a error reading the document(26)." Can anyone please tell me why i am getting this error. Thanks, satheesh

  • Can't open photos in an Event.

    When I go to an event I cannot open the photos included in that event.  They are scanned through quickly but will not stop on one except the key photo.  I also cannot enlarge the photo by double clicking.  Any suggestions?

  • Integration oracle reports with ADF

    Hi All, I am getting error- REP-110: File spare_request.rdf cannot be opened. REP-1070: An error occurred while opening or saving a document. REP-0110: File spare_request.rdf cannot be opened As per Sameh Nassar: Call Oracle Reports From Your ADF App

  • Change background color of document

    Hello, With Design2003, the background color is gray. I would like to change it and put white. I saw that I can use <body bgcolor=" white"> but it doesn't work. I think I don't write it in the good place. Here is the main attribute of my BSP. I have

  • Function 'function name' may not used in sql

    Hi Guys, How to call a function in a form level trigger? i created a function in program unit.In timer expired trigger i tried to call a function as select sf1('a') from dual;Im getting below error function sf1 may not use in sqlAdvance thanks