Creating Interactive Files with more than one URL

Hello, here's my problem: I want to create more than one button instance that go to different URL address's. From the Adobe Video Workshop, I got the code:
interactive_test.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
                navigateToURL(new URLRequest("http://www.adobe.com"));
This works fine with one button instance. When I copy and paste the code for another button instance, i.e:
butn1.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
                navigateToURL(new URLRequest("http://www.adobe.com"));
butn2.addEventListener(MouseEvent.CLICK, buttonClickHandler);
function buttonClickHandler(event:MouseEvent):void {
                navigateToURL(new URLRequest("http://www.adobe.com"));
I get 1021 duplicate function error. I think I understand in priciple what's wrong but don't know how to fix it. MyI knowledge of Action Script 3 is zero. What I need is sample code that works that I could copy and paste, with appropriate changes.
Thanks in advance for your help, Richard

use different function names or flash won't know which function to use:
butn1.addEventListener(MouseEvent.CLICK, buttonClickHandler1);
function buttonClickHandler1(event:MouseEvent):void {
                navigateToURL(new URLRequest("http://www.adobe.com"));
butn2.addEventListener(MouseEvent.CLICK, buttonClickHandler2);
function buttonClickHandler2(event:MouseEvent):void {
                navigateToURL(new URLRequest("http://www.adobe.com"));

Similar Messages

  • How can I search for files with more than one keyword?

    I´ve created some keywords, and some files in my folder are tagged with two, three or more keywords.
    Is there a way to search for files using more than one keyword on the search field?
    Thanks!

    Use the Find command (menu Edit) and in criteria at the right side is a plus sign to add another criteria and set it to your custom wishes.
    make a choice in results and you should be OK

  • How to create a theme with more than one master-slide size defined?

    I would like to create a Keynote theme that has more than one size of page defined - for example one for on-screen show, and one for printing.
    I noticed that the stock themes, and those from theme vendors, come with multiple page dimensions, and that the master slide layouts for the 'same' master slide appear to be designed differently for the different sizes.
    How do I create themes like this in Keynote? I cannot find any information about this in the Keynote manual. I have worked out how to change the master slide dimensions, but not how to tell Keynote that the layout I've created for a slide is for a particular set of dimensions. So when I look at my theme in the theme browser, I only see the dimensions I had selected last time I saved my theme showing.
    Any help most appreciated.

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • How to create new user with more than one default folder

    hi
    A new user created in OCS has only one default folder(Inbox).
    I want to create new user with customized default folder.
    for example:
    a new user has more than one default folder(Inbox,Outbox,Draft,Dustbin...)
    And also I want to automaticly enable the functions:
    When sending messages, place a copy in Outbox
    Keep message drafts in Draft
    Move deleted messages to Dustbin
    who know that?
    thanks

    The same reason that Apple and 3rd Party vendors put multi-size templates in one file I expect. I am trying to construct an in-house standard template for use in our company, and it is easier to manage if there is only one file to send to people rather than many - both initially and for subsequent edits / updates to the template.
    Of course it would be possible to create several templates (one for each size). But since it is clear that templates can be combined, it appears sensible to do this - unless the doing of it is horridly complicated

  • How to create Dynamic Table with more than one column?

    Hi,
    I'm trying to learn Dreamweaver. I'm trying to display 2 units from my database in the same row then I would like go to next row.
    By default DW shows single record in each row. Is it possible to display more than one?
    Thank you

    Of course. You will not name the divs differently, they will all be <div class="RowContainer">  (in the example below) and the reason they will look like
    1 2
    3 4
    5 6
    is because they will "stack themselves up". That is, the first will float to the top left, the next will float up next to it. The third will not fit on the top line floating next to two, so it will start a new row. Four will float up next to it, and five will start the new row.
    Think of the string of divs (don't put wordspaces between them...) as a continuous ribbon or chain of divs. That is a slightly poor analogy, since the second and third won't be next to each other, as a chain or a ribbon might be. But you should be able to have as many divs as you have records... you define the div in the CSS and in your page markup really only show one div.
    Here's a modified example from one of my files:
    <div spry:region="ds1" class="...">
      <div spry:repeat="ds1" class="RowContainer"> <!--this is the div that you would style to float -->
        {category} {title} {medium}<br>
         {price} {sold} {date}<br>
         {sold_to_purchase_price}
      </div>
    </div>
    Beth

  • Creating a cube with more than one dimension

    I have been able to create a cube with one dimension using our own data. I am able to view data from this cube in Cube Viewer and in a presentation created with BI Beans in JDeveloper.
    However, I have been unsuccessful in doing this when creating a cube with two dimensions. What am I missing?
    I have been using OEM to create the dimensions and cubes, etc. in a 9.2.0.4 database.

    You can use Analytic Workspace Manager 10.1.0.4 to create analytic workspaces (MOLAP) in Oracle OLAP 10.1.0.4. The Model View in this GUI tool utilizes the OLAP AW Java API that was introduced in Oracle OLAP 10g. This Java API fully abstracts the logical dimensional model from physical design.
    OWB Paris, which is currently in beta, likewise uses the OLAP AW API to create AWs. In addition, it can create ROLAP cubes via the OLAP Catalog CWM2 APIs. This is a change in APIs as the previous version used CWM1/Lite like Enterprise Manager. Also, for ROLAP cubes OWB Paris will automatically include MR_REFRESH in its scripts and will call the appropriate DBMS_ODM package in order to create materialized views.
    As for tutorials for creating a star schema, check with the Oracle Warehouse Builder forum.
    OWB Forum:
    Warehouse Builder

  • How do I merge multiple Excel files with more than one tab in each file using PowerQuery?

    Hello
    I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them. 
    I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
    Cheers
    James

    What Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
    When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
    You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
    icon in the header and you'll be done.
    Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
    two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
    let
        Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
        RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
        PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
        ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
    in
        ExpandData

  • How to read a excel file with more than one worksheet.

    Hi,
    I wanna read a sheet (anyone of it,not the first) in a excel.Who can help me!
    best wishes,
    Grant Chen

    Dear All,
    Thank you all for your reply!
    I modified SAP FM ZALSM_EXCEL_TO_INTERNAL_TABLE.
    I add an IMPORTING parameter 'I_SHEET' 
    which stands for the sequence number of worksheet  in the FM.
    FUNCTION ZALSM_EXCEL_TO_INTERNAL_TABLE .
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(FILENAME) LIKE  RLGRAP-FILENAME
    *"     REFERENCE(I_SHEET) TYPE  I
    *"     VALUE(I_BEGIN_COL) TYPE  I
    *"     VALUE(I_BEGIN_ROW) TYPE  I
    *"     VALUE(I_END_COL) TYPE  I
    *"     VALUE(I_END_ROW) TYPE  I
    *"  TABLES
    *"      INTERN STRUCTURE  ALSMEX_TABLINE
    *"  EXCEPTIONS
    *"      INCONSISTENT_PARAMETERS
    *"      UPLOAD_OLE
    *{   INSERT         EC6K900099                                        1
      DATA: excel_tab     TYPE  ty_t_sender.
      DATA: ld_separator  TYPE  c.
      DATA: application   TYPE  ole2_object,
            workbook      TYPE  ole2_object,
            range         TYPE  ole2_object,
            worksheet     TYPE  ole2_object.
      DATA: h_cell        TYPE  ole2_object,
            h_cell1       TYPE  ole2_object.
      DATA:
        ld_rc             TYPE i.
    *   Rückgabewert der Methode "clipboard_export     "
    * Makro für Fehlerbehandlung der Methods
      DEFINE m_message.
        case sy-subrc.
          when 0.
          when 1.
            message id sy-msgid type sy-msgty number sy-msgno
                    with sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
          when others. raise upload_ole.
        endcase.
      END-OF-DEFINITION.
    * check parameters
      IF i_begin_row > i_end_row. RAISE inconsistent_parameters. ENDIF.
      IF i_begin_col > i_end_col. RAISE inconsistent_parameters. ENDIF.
    * Get TAB-sign for separation of fields
      CLASS cl_abap_char_utilities DEFINITION LOAD.
      ld_separator = cl_abap_char_utilities=>horizontal_tab.
    * open file in Excel
      IF application-header = space OR application-handle = -1.
        CREATE OBJECT application 'Excel.Application'.
        m_message.
      ENDIF.
      CALL METHOD  OF application    'Workbooks' = workbook.
      m_message.
      CALL METHOD  OF workbook 'Open'    EXPORTING #1 = filename.
      m_message.
    *  set property of application 'Visible' = 1.
    *  m_message.
    ********************Modified by Grant 20080717************
      call METHOD of application 'Worksheets' = worksheet
      exporting
        #1 = I_SHEET.
      m_message.
      call method of worksheet 'Activate'.
    *  GET PROPERTY OF  application 'ACTIVESHEET' = worksheet.
      m_message.
    * mark whole spread sheet
      CALL METHOD OF worksheet 'Cells' = h_cell
          EXPORTING #1 = i_begin_row #2 = i_begin_col.
      m_message.
      CALL METHOD OF worksheet 'Cells' = h_cell1
          EXPORTING #1 = i_end_row #2 = i_end_col.
      m_message.
      CALL METHOD  OF worksheet 'RANGE' = range
                     EXPORTING #1 = h_cell #2 = h_cell1.
      m_message.
      CALL METHOD OF range 'SELECT'.
      m_message.
    * copy marked area (whole spread sheet) into Clippboard
      CALL METHOD OF range 'COPY'.
      m_message.
    * read clipboard into ABAP
      CALL METHOD cl_gui_frontend_services=>clipboard_import
        IMPORTING
          data                 = excel_tab
        EXCEPTIONS
          cntl_error           = 1
    *      ERROR_NO_GUI         = 2
    *      NOT_SUPPORTED_BY_GUI = 3
          OTHERS               = 4
      IF sy-subrc <> 0.
         MESSAGE a037(alsmex).
      ENDIF.
      PERFORM separated_to_intern_convert TABLES excel_tab intern
                                          USING  ld_separator.
    * clear clipboard
      REFRESH excel_tab.
      CALL METHOD cl_gui_frontend_services=>clipboard_export
         IMPORTING
            data                 = excel_tab
         CHANGING
            rc                   = ld_rc
         EXCEPTIONS
            cntl_error           = 1
    *       ERROR_NO_GUI         = 2
    *       NOT_SUPPORTED_BY_GUI = 3
            OTHERS               = 4
    * quit Excel and free ABAP Object - unfortunately, this does not kill
    * the Excel process
      CALL METHOD OF application 'QUIT'.
      m_message.
    * >>>>> Begin of change note 575877
    * to kill the Excel process it's necessary to free all used objects
      FREE OBJECT h_cell.       m_message.
      FREE OBJECT h_cell1.      m_message.
      FREE OBJECT range.        m_message.
      FREE OBJECT worksheet.    m_message.
      FREE OBJECT workbook.     m_message.
      FREE OBJECT application.  m_message.
    * <<<<< End of change note 575877
    *}   INSERT
    ENDFUNCTION.
    Edited by: Grant Chen on Jul 17, 2008 7:45 AM
    Edited by: Grant Chen on Jul 17, 2008 7:46 AM

  • File with more than one texture

    Hello, I'm having a problem with an animation I am working on. I have a file that contains three sprites on one sheet. What I ususally do it load the sheet onto the stage, then I try and erase the two extra sprites until I need them. Everytime I try it just erases the black background on the previous layer. I've tried switching back to the layer the sprite was on and erasing; but, It still switches to the black background layer and erasies that. I have the sprite sheet in a psd file and I still can't edit it while within the program.

    It is not clear what you mean when you talk about sheets (?) and erasing things - why not just have separate sheets for each ? 
    If you have layers involved and things are on separate layers, then you should be able to lock any layer you do not want to affect.  So you should be able to lock the black background layer and any others except the one you wish to erase.

  • Creating Sales Order with more than one Quotations

    Hi
    I have a requirement to create one Sales Orders from multiple Quotations. Can someone tell me how this can be accomplished?
    I have all the settings done in SPRO in transactions and Item Category copy controls but the system takes only the data from first quote and ignores the other quotes.  We are using SAP CRM 2007
    Thanks

    Hello Jimmy,
    please check SAP note 1450983. This could be helpful.
    Best Regards, Winnie

  • JSR-75 PIM API creating Contact with more than one Number (Phone,Fax ...)

    Hi everybody
    I try to create a contact with more than one Phonenumber using the method contact.addString(...) .
    Contact with one single number is no Problem but contacts with more than one Number are ignored and are not stored to the phonebook. I try to add the Numbers using a for -loop. Is there an other way to solve this Problem?
    please Help.
    Thank You.

    Wonder if you have made any progress - if so,
    could you share ?

  • InfoSet with more than one cube

    Has anyone created an infoset with more than one cube?
    Are there any hints for to pay attention?
    Regards
    Chäsitzer

    HI ,
    Some important points :
    it is not possible to define an InfoCube as a right operand of a left outer join.
    SAP no longer supports more than two InfoCubes in one InfoSet.
    Therefore, if you include more than two InfoCubes in one InfoSet, the system issues a warning.
    the key figure values of InfoCubes and DataStore objects are duplicated when you join them to
    InfoProviders (see SAP Note 592785)
    Regards,
    Sathya

  • Create a dynamic search in JSP with more than one datasource

    Hello,
    In the ViewCiteria tag you can specify the datasource in which you want to place the criteria. Is it also possible to work with more than one datasource ?
    In my project I want one query form for specifying criteria for more than one datasource. When I send the query form, I want the right view criteria will be coupled with the right datasource.
    Has someone more experience with that ???
    Thanks!!!

    Hi,
    I think I got the same problem! I tried to combine all the tables in a new view and create a query on this view.
    But when I search and my result has to be one record from the main table, I get this record more than once.
    I tried to use distinct but that does not work because each column has a different value, so the record is never the same.
    I hope someone can help us!

  • Creating Pages in PeopleSoft with more than one HTML Form

    Hi,
    We've a requirement to create a page in PIA with more than one HTML form.
    As per PBooks - "The page being developed cannot be built using PeopleSoft Application Designer.
    An example of this is a page that requires more than one HTML form.
    PeopleSoft Pure Internet Architecture places the entire page inside of a single form tag, so no other HTML form tags can be added.
    In this case the requirements of the page can't be met by pages created in PeopleSoft Application Designer, so use IScripts instead."
    If someone can share his/her experience, It Would be of great help to me.
    -Thanks!!

    Take a look at my IScript postings. Let me know if you still have questions after reading these blog posts.

  • Create a logical column with more than one data source

    I'm having a problem to create a logical column with more than one data source in Siebel 7.8.
    What I want to do is the union of 2 physical tables in one logical table.
    For example, I have a "local_clients" table and a "abroad_clients" table. What I want is to have a logical table "clients" with the client data from the 2 tables.
    What I've tried is dragging the datasources I need onto the logical column.
    However this isn't working because it only retrieves the data from the first data source.

    Hi!
    I think it is not possible to do this just by dragging the columns to the logical table. A logical table can have more than one source, but I think each column must have just one direct source column.
    I'm not sure, but maybe you should do the UNION SQL to get the data of the two tables. In the physical layer, when you create a new physical table, it's possible to set the "table type" as a "SELECT". I didn't try that, but it seems that it's possible to have the union table in the physical layer.
    Bye.
    Message was edited by:
    user578388

Maybe you are looking for

  • ITunes with videos bad, Music & Regular! Crash, Black Screen, Tagging?

    So i have been using iTunes for ages and have been collection Music's CD's longer and i got to load them to iTunes a while ago. Music works great in iTunes but with my CD's i often got music video's included so i tried to play them and some regular v

  • XML Publisher post-processing error 'java.io.FileNotFoundException'

    Hi, We are getting following XML Publisher post-processing error while running XML Publisher report. It was working earlier but suddenly its erroring out. [9/07/10 9:00:17 PM] [OPPServiceThread1] Post-processing request 559655. [9/07/10 9:00:18 PM] [

  • Error al ejecutar Crystal Report

    Hola a todos!! Estoy haciendo un reporte en Crystal para una BD que cuenta con Factura Electrónica con un addon (En una máquina que no tiene el addon instalado, la idea es sustituir la FE del addon, por el de SAP) Sin embargo al momento de querer abr

  • Port Mapping is not working ?

    First of all, sorry for my bad english as it is not my primary language. So my problem is that I play Warcraft 3 and that I would like to host some games. To be able to host, I have to do port mapping for the ports : 6112-6119, which I did in the Air

  • Upgrade the BW system not XI system

    Hi All, Need help please, right now we are sending data through XI 3.0 to BW 3.5 system, the scenario's is working fine. Now we wants to upgrade BW 3.5 system to BW 7, XI system is same 3.0. Through RFC's the receiver system BW system receiving the d