Play two MCs with one button

Hi,
I'm trying to make the main timeline go to frame 2, and a separate MC go to frame 2 by clicking one button.
Here's what I'm trying ...
on (release) {
    _root.gotoAndPlay(2);
    snap1.gotoandplay(2);
When the button is clicked, the main timeline goes to frame 2, but the MC (instance name) snap1, doesn't play. I'm using AS2.

actionscript is case-sensitive.  use:
on (release) {
    _root.gotoAndPlay(2);
    snap1.gotoAndplay(2);

Similar Messages

  • Can we perform two actions with one button with two clicks one after other?

    Sir,
    can we perform two actions with one button with two clicks one after other?
    I want that when I click an Add Button first time it add data to the database and when I click again this button it clear the form data to empty fields.
    Regards
    Tanvir

    In code it should be easy.
    The following code adds a button called butman with a text "ADD".
    It then registers a listener that will be called if the button is clicked.
    This listener then calls the runAddData method if you clicked on butman while it contained the "ADD" text and it will call the runClearData method otherwise.
    Therefore it will swap the button's functionality between ADD and CLEAR on every click.
    final Button butman = new Button("ADD");
    butman.setOnAction(new EventHandler<ActionEvent>() {
              @Override
              public void handle(ActionEvent t) {
                        if (butman.getText().equals("ADD")) {
                                  butman.setText("CLEAR");
                                  runAddData();
                        } else {
                                  butman.setText("ADD");
                                  runClearData();
                        } // END IF-THEN
              }});I hope this is what you wanted.
    Some extra food for thought.
    You might want to run the ADD and CLEAR methods in their own threads so that it can run in the back ground, without slowing down your user interface.
    I also like to rather reuse one button for multiple functionality in stead of making an application with hundreds of nodes only used rarely with masses of code to show and hide them if needed.

  • I'm trying to play Symbol A and it's nested Symbol B and C with one button, and play Symbol B and C without playing Symbol A with a second button...

    I can't seem to get the nested symbol to play without it's parent playing too.
    This works for getting both symbols to play on button 1
    sym.getComposition().getStage().getSymbol("marketing_buttons").getSymbol("online").play();
    sym.getComposition().getStage().getSymbol("marketing_buttons").getSymbol("promotions").pla y();
    Everything I've done to play just B and C play all three. Is what I'm trying to do even possible?
    Thanks in advance.
    -h

    sym.getComposition().getStage().getSymbol("marketing_buttons").getSymbol("online").play();
    sym.getComposition().getStage().getSymbol("marketing_buttons").getSymbol("promotions").pla y();
    This works now to play all three from one button. With a different button, I want to play just the nested "online" and "promotions", plus add an completely new animation to both. All without effecting the animation in "marketing_buttons".

  • Export two TXT files with one button

    Hi,
    I'm using Application Express 2.0, i'm developing aplication in which users import few different excel spreadsheets and after that they export date in specified TXT format.
    I'w like to create functionality to export two and more files in CSV (TXT) format with one button and one click only in defined folder. It's necessary to simplify work of my endusers becose they have to generate ten or more files.
    Is it possible create functionality which generate files in defined folder without any addtional user's action?
    Best,
    Kiril

    Create a procedure to output the files, use the oracle directory object to define your output path.
    create or replace directory wayne as '/csv';
    use google or metalink to get examples. This way you can output as many files as you want, my personal opinion would be to create a dynamic report your users could run on demand.

  • Can I use Logic Pro 9.1.6 on two computers with one licens

    I have download and install Logic Pro 9.1.6 on my MacBookPro 13". I record on location with my MacBook an wil edit and arrange the music on my iMac at home. Can I use Logic Pro 9.1.6 on two computers with one licens. I'm the owner of both computers. If it can where can I find the program on my MacBook? and how to install and register?

    Hi, is  the iMac also 10.6.8? I had an iMac die when 10.6.8 was installed, it worked at first but after some You Tube flash videos the screen just locked and no mouse clicking anywhere did anything. It turned out that most older iMacs [ mine was from august 2007] have a graghics chipset that can't handle Snow Leopard, there were [are?] 77 pages on this "locked screen"topic in the Snow Leopard forum. I checked out a web site that tells you how much your mac is worth by filling in the sereal number-mine was worth only $168, I may give it to a friend for his children to play with, although that seems unholy. I doubt anyone woud buy it,the problem is now so well known that even Apple certified resellars here in the Netherlands refuse to repair them,they claim Apple will revoke their certification if they replace the faulty Graphics unit,it is also VERY hard to get to that unit in an iMac, everything is so tightly packed inside.
    If your iMac is running Mountain Lion[10.8.0] you may have to change the app store preference to accept apps from all sites,normally ML will only allow app store apps to be downloaded.

  • How to sync two IPhone with one PC , but with different applications

    How to sync two IPhone with one PC , but with different applications ?
    We have two IPhones , but one PC , we want to sync separately , is that possible ?

    Absolutely, connect each phone, select what content you want on each phone, then hit the sync button. iTunes will keep everything straight, by device, upon subsequent syncs, including separate backups.

  • How do i play two sound file one after another

    Hi All,
    How do i play two sound file one after another using single AudioClip Component?.
    Advance in thanks
    Manivel

    AudioClip gives you very little control over what happens to the sound, it also isn't capable of playing long clips or waiting until a clip ends. It will play multiple clips over top of each other.
    To do what you want you should use the facilities of javax.sound. Here's a post with an example: http://forum.java.sun.com/thread.jspa?forumID=513&threadID=450768
    There is also a tutorial, but its example fails for long clips.

  • How to print two sides with one page?

    I have a PDF that is one page long and I'd like to print the same thing twice (front and back) on one page. Can I do that?
    I've tried printing two copies with the printer set to double-sided, but it just printed two sheets with one side on each sheet.

    Well sure; Go back to the authoring application that created the documents and do a 2-UP page. Make the existingg page large enough to accomodate the extra content. Is that what you're asking or do you really mean print to a printer with a back up ? In that case just flip the page over and print page 2 on the other side.
    Or are we missing something ?

  • Print to two printers with one command?

    Is there a way to print the same document to two printers with one command? I'd like to have every document I print automatically saved as a PDF at the same time.
    Thanks,
    Mark.
    MacBook Pro (and 5 others)   Mac OS X (10.4.9)  

    That would be a good use of the PDF Services available in OS X. You can use PDF Services with AppleScript or an Automator workflow.
    Matt
    Mac Mini G4; B&W G3/300    

  • I have two iphones with one apple id. How do I set up 'find a phone'?

    have two iphones with one apple id. How do I set up 'find a phone'?

    To wjosten-
    I just posted a similar question asking HOW you get into a menu for 'my devices' in order to name them? Thanks!

  • How to run two programs with one PC and two monitors

    Good Morning,
    I have a requirement to run a parallel loop and update the progress in two monitors with one computer.
    For ex: its a two test stage, the process and progress of the 1st stage needs to displayed in monitor1 and similarly for 2nd stage to monitor 2 with program running with one computer.Would it be possible to do that.
    Thanks in advance

    Hi Parker,
    yes, it's possible. You also have properties to set windows to specific monitors...
    Best regards,
    GerdW
    CLAD, using 2009SP1 + LV2011SP1 + LV2014SP1 on WinXP+Win7+cRIO
    Kudos are welcome

  • How to insert into 2 tables from the same page (with one button  link)

    Hi,
    I have the following 2 tables....
    Employees
    emp_id number not null
    name varchar2(30) not null
    email varchar2(50)
    hire_date date
    dept_id number
    PK = emp_id
    FK = dept_id
    Notes
    note_id number not null
    added_on date not null
    added_by varchar2(30) not null
    note varchar2(4000)
    emp_id number not null
    PK = note_id
    FK = emp_id
    I want to do an insert into both tables via the application and also via the same page (with one button link). I have made a form to add an employee with an add button - adding an employee is no problem.
    Now, on the same page, I have added a html text area in another region, where the user can write a note. But how do I get the note to insert into the Notes table when the user clicks the add button?
    In other words, when the user clicks 'add', the employee information should be inserted into the Employees table and the note should be inserted into the Notes table.
    How do I go about doing this?
    Thanks.

    Hi,
    These are my After Submit Processes...
    After Submit
    30     Process Row of NOTES     Automatic Row Processing (DML)     Unconditional
    30     Process Row of EMPLOYEES     Automatic Row Processing (DML)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    40     reset page     Clear Cache for all Items on Pages (PageID,PageID,PageID)     Unconditional
    50     Insert into Tables     PL/SQL anonymous block     Conditional
    My pl/sql code is the same as posted earlier.
    Upon inserting data into the forms and clicking the add button, I get this error...
    ORA-06550: line 1, column 102: PL/SQL: ORA-00904: "NOTES": invalid identifier ORA-06550: line 1, column 7: PL/SQL: SQL Statement ignored
         Error      Unable to process row of table EMPLOYEES.
    Is there something wrong with the pl/sql code or is it something else?

  • Associating two events with submit button using  javascript in jsp

    Hi
    How can i Associate two events with submit button using javascript in jsp. Firstly it should insert the data to database and secondly it should close the same pop-up window

    Have something like :
    <input type="submit" name="submitbtn" value="Click me" onClick="function1(); function2(); " />
    You just call both functions sequentially, it's that simple. Although using javascript to work with a database, that seems a bit tricky.

  • Pop up with one button

    Hi experts,
    Does anyone happen to now any pop up window with one button(OK button)?
    Regards,
    Marc

    Hi,
    This Function Module contains only OK button.
    POPUP_TO_INFORM
    Hope this will help.
    Regards,
    Swarna Munukoti.

  • Re: How to create More two class with one object

    haii,
             i have small information How to create More two class with one object,
    bye
    bye
    babu

    Hello
    I assume you want to create multiple instance of your class.
    Assuming that you class is NOT a singleton then simply repeat the CREATE OBJECT statement as many times as you need.
    TYPES: begin of ty_s_class.
    TYPES: instance   TYPE REF TO zcl_myclass.
    TYPES: end of ty_s_class.
    DATA:
      lt_itab      TYPE STANDARD TABLE OF ty_s_class
                     WITH DEFAULT KEY,
      ls_record  TYPE ty_s_class.
      DO 10 TIMES.
        CLEAR: ls_record-instance.
        CREATE OBJECT ls_record-instance.
        APPEND ls_record TO lt_itab.
      ENDDO.
    Regards
      Uwe

Maybe you are looking for

  • Photoshop CC and Bridge CC won't install

    I have both these programs successfully installed on my main computer.  Neither will install on my laptop.  It gets to about 50% download and then requires me to exit CS5 Bridge before I can proceed any further.  I can't quit Bridge because it is NOT

  • Get the node key while using button on toolbar

    HI All I'm using alv tree (class - CL_GUI_ALV_TREE ) and I want to add a button to the toolbar (class - CL_GUI_TOOLBAR ) that User can delete a row from the tree . assume the user put the cursor on row how can i know on which node_key is it ? I am us

  • Can't open pmd files using InDesign

    hi all I have a few pmd files created back in 1996 using Mac at the time, can someone help me to open the files or convert it so I can see them in Indesign please? Thanks

  • Mac Pro 1,1 PCIe problem - only slot 4

    I have a strange PCIe problem with a Mac Pro 1,1. 2x2.66 Xeon 24GB RAM Mac OS X 10.7.4 ATI Radeon HD 5870 1024 MB in slot 1 The Expansion Slot Utility is set to x16, x1, x4, x4 for slots 1 through 4 respectively. I have two SATA PCIe cards: Seritek 2

  • OK to run SQL Dev 2.1 as well as 1.1.3???

    Hi, My Oracle client tools include SQL Dev 1.1.3. I have separately installed SQL Dev 2.1.1.64. Completion Insight does not work at all. Yes, I have it turned on and have adjusted the speed. It just never fires. When I try CNTL+Space nothing happens.