How to add a action to a button?

I been trying to add a action to thing in my flash but every action i do doesn't work but works for everyone else. I noticed my action screen looks different then all the others i see so i'm sure i'm doing something wrong or something here is what i get. I'm trying to just add a courser to my flash for my game menu screen.
here is the errors i get:
i noticed on every tutorial there all the same code to do this but the Action screen looks way different.

You are posting in the AS3 forum and the errors you are getting are AS3 errors, but the code you are using is AS2.  If you go into your Flash Publish Settings and change it to publish for AS2 you might find it works.  If you have further issues you should post in the AS2 forum.
As far as the different looking screens go, chances are if you are looking at AS2 tutorials you are looking at older versions/layouts of Flash in those tutorials

Similar Messages

  • How to add web page in office button of ms office 2007 using c#?

    I want to add web page in office button in ms office 2007 using c#. How to add it? ribbon menu button should be in office button. when i click menu the web page should display in menu itself. tell me the solution.

    Hello,
    You can't place anything in the Ribbon UI (aka Fluent UI), only the predefined set of controls according to the Ribbon XML scheme. Read more about the Fluent UI in the following series of articles in MSDN:
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 1 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 2 of 3)
    Customizing the 2007 Office Fluent Ribbon for Developers (Part 3 of 3)
    Consider opening a web browser in a child window (separate) or using a task pane for that.

  • How to add integer value of two buttons?

    how to add integer value of two buttons (any button) in VI and display it in output text box? i have attached example program, but i know its wrong.. please help
    Solved!
    Go to Solution.
    Attachments:
    add.vi ‏8 KB

    thanks for reply. i am trying to assign an integer value to a button and the button should send the assigned integer value to TCP/IP write, only when the button is pressed. i am able to send data using string control (as shown in the attachment) but i want to replace it with several buttons. for example, if i enter 2 in string control, this data will be sent to a robot (robot has wifi card)  through tcp/ip protocol, it moves front. 3 will make it to move back, 8 is left, 6 is right. this numeric data is already burnt into blackfin processor of the robot. so just by entering numbers in labview can make my robot move in specified direction. can you please help me to create a button with value and convert it into string and send it to tcp/ip write. this should happen only when the button is pressed. because, if i enter numbers in string control, it dosent looks good..... if i have buttons... i think my VI will look good and hitech.
    Attachments:
    robo.vi ‏9 KB

  • How to add the Social Network share buttons (that work!) to share INDIVIDUAL post from the same page

    How to add the Social Network share buttons like Facebook and Twitter (that work!) to share INDIVIDUAL post on the same web address in Dreamweaver? I have searched on google and youtube tutorials, but most of them are "Blogger" and  "Wordpress" users.. The only Dreamweaver tutorial is the one that share THE WHOLE page (not individual post on a page). There is Facebook Integration on Dreamweaver (29 Dollar download from Adobe) but so far no review about it so  I don't want to spend money for something I don't know.  There is also Sharrre but they say there is a bug. It seems like everyone out there use these buttons but I start to get crazy since it seems easy but it's actually complicated to get the html or js script to paste on! Any help would be very much appreciated. Thanks.

    Cool,
    Here is my test site. I have made at least 3 articles (Fashion, Sport, and Art) with thumbnail images on it.
    http://andiratih.free.fr/
    On each article I add the share buttons from "AddThis".
    However, if I want to ONLY share the "Sport article" on Facebook by clicking share-->Facebook, then the feed is scrambling my images on other articles too and it eventually just share the whole page instead of one particular article.
    It is now fine since I only build 3 articles, but as you see when the page is getting long with at least 20 articles it will not be ok.
    I don't want to make individual page for each article either, since they are just short article each, and I intend to use this page as a welcome page to update the latest activity every half year.
    I have seen many bloggers or pages where even if they have many article on ONE page, they are able to share one particular article to Facebook, and when we click (via Facebook) it will redirect us to exactly that particular article even if the article is on the bottom of the page, and not just bring me to the top of the page only and have to search by myself by scrolling to the bottom of the page to see the article.
    Infact, Bloggers and Wordpress seems to have the tool for that so that we can just click and add. I am not a Blogger or Wordpress users but I saw youtube tutorials on that.
    I have heard about Dreamweaver behavior, and does this will help to achieve what I want (sorry I'm a beginner)? I also heard about meta tags but I don't know how and where to get them to paste to my html source code.
    I have found several sites where the person show how to do this, but when I tried it didn't work, and in fact some other discussions about this are never solved.
    Thanks for your input.

  • Add advanced action to submit button and setting different objectives score for the same course

    Hi, i would like to increase a counter in a quiz slide when the user press the submit button, using advanced actions.
    It's like if the submit button is somehow inhibited from certain options, and i cannot find how to add an advanced action to it.
    what i need, is to allow unlimited attempt until the user selects the right answer. each time the user click on submit, a counter increases by one. When user finally select the right answer, we read the counter value and assign a different score, depending on the attempt (for example: 1st attempt=20 points, 2nd attempt=10 points, 3rd attempt=0 points)
    After that, i need to save all score obtained for a certain group of quiz slide separately from the "main score" (i think the main score is stored in cmi.objectives.0.score)  to have partials scores for a course. I examined the "advanced interactions" panel and i noticed that for each quiz slide there is a specific interaction ID and each quiz slide is associated typically to the same Objective ID. What i need is to associate different groups of slides to different Objective ID's.
    In Storyline i was able to do this by passing to the lms a cmi.objectives.n.score (where "n" is the place in the objectives array) and i did it by executing a javascript on success for each question slide. (each javascript added the score of previous slides in the same group to obtain the total score of the group to be passed to lms with a specific function).
    examining captivate scorm functions in the published scormdriver.js i found the following function
    function SCORM_SetObjectiveScore(strObjectiveID,intScore,intMaxScore,intMinScore)
    so i think it can be done the same way in captivate executing javascript in the right way.
    Is there also an easier solution to write different scores to different obectives in the same course?
    many thanks for any help!

    Have a look at:
    Question Question Slides in Captivate - Captivate blog
    Question Question Slides - Part 2 - Captivate blog
    Indeed, Submit button is part of the Question slide, not a normal button. You can add a custom shape button, but it will never replace what happens when the Submit button is clicked: validation of the answer, showing captions, adding to score etc. Making the score depending on the attempt is not possible with default functionality, it is possible with custom question slides, but then the reporting to LMS is another issue. You should try to do it by JS, or if you only need SWF-output you could use the Master widget by InfoSemantics.
    Link score to attempts in Custom questions - Captivate blog
    Lilybiri

  • How to add click action

    I am trying to add an action to my animation. I would like to click on an image and start play from a time on timeline..... I found this http://http://jbkflex.wordpress.com/2011/08/16/adding-events-to-your-adobe-edge-html5-anim ations/which seemed like it may work but when I saved my file no .css file was created.... I am ripping my hair out trying to figure this out.... please help....

    Hi there,
    That link appears to be broken. I'm not sure what you mean by "no .css file was created". Edge does not directly use .css files.
    To add a button action to an object in Edge is straightforward. See this video at the 2:00 mark:
    http://www.youtube.com/watch?v=ysReea4yyys
    Here's a breakdown of how to add a click event to an object:
    1) click the curly braces to the left of the object in the Elements panel. This will launch the code event panel for your object.
    2) click the "+" button at top left and select "click", to add a click event to your object.
    3) assuming your object is on the root Stage, you can use the code presets at the right of your click event. Click the "play from" button at right of the events panel. This will insert sym.play(1000); which tells the timeline to play from the 1 second mark. You can change the play parameter to a frame label, say "intro", like this: sym.play("intro");
    Look at the Edge Animate API for more details on the play method:
    http://www.adobe.com/devnet-docs/edgeanimate/api/current/index.html

  • How to add table actions to an Advanced Table programmatically

    We have code in my CO which builds an advanced table dynamically and associates it with a VO. The table comes out looking good - the correct columns and data are displayed.
    I now want to add Table Actions for that particular dynamically created table.
    The code below builds the buttons correctly and they are built/rendered just fine.
    After adding this code to build the FlowLayout bean, add the buttons and associate the it to the TableActions of the advanced table bean, none of the buttons on the page work anymore. Each time I click any button (even if it's a page level button like 'Save' or 'Cancel'), I get the following error:
    +## Detail 0 ##+
    java.lang.NullPointerException
    +     at java.util.Hashtable.get(Hashtable.java:336)+
    I have added debug statements in by CO, but it is never even getting into the ProcessFormRequest
    Below is the code we are using. Can anyone suggest a way to have this flow layout created dynamically like this and not break all button functionality on the page?
    //Create the advanced table
    OAAdvancedTableBean tableBeanP1 = (OAAdvancedTableBean)createWebBean(pageContext, ADVANCED_TABLE_BEAN, null,"Proc1Tab");
    tableBeanP1.setViewUsageName("P100DetailsVO1");
    tableBeanP1.setNumberOfRowsDisplayed(10);
    //Create a new flow layout to be used as the table actions
    OAFlowLayoutBean tableActionBean = (OAFlowLayoutBean)createWebBean(pageContext, FLOW_LAYOUT_BEAN, null, "P1ButtonRegion");
    //Create the "Add Control Group" button for this table:
    OAButtonBean addButtonBean = (OAButtonBean)createWebBean(pageContext, BUTTON_BEAN, null, "P1AddCtrlGroup");
    FireAction FireActionAddGroup = new FireAction();
    FireActionAddGroup.setEvent("AddCtrlGroup");
    Parameter param = new Parameter();
    param.setKey("ProcedureIndex");
    param.setValue("1");
    Parameter[] params = {param};
    FireActionAddGroup.setParameters(params);
    addButtonBean.setPrimaryClientAction(FireActionAddGroup);
    addButtonBean.setText("Add Control Group");
    tableActionBean.addIndexedChild(addButtonBean);
    //Add the table actions bean to the table:
    tableBeanP1.setTableActions(tableActionBean);

    Hello Ashley,
    you are already close to the solution. In BADI QISR1 you simply fill the
    table SPECIAL_DATA e.g.like
      fieldindex = 1
      fieldname = 'FIELD1'
      fieldvalue = 'Value1'
      fieldindex = <n>
      fieldname = 'FIELD1'
      fieldvalue = 'VALUE<n>'
    Then on the Adobe form layout (Adobe Designer), you have to use the table control XFO from the standard library. Here you have to bind then the corresponding column to FIELD1.
    Best regards,
    Simon

  • How to add flash action

    Hi my friends:
      I want to add a flash action to captivate project,but i do know how to add.
      I want to add "getURL("FSCommand:window","closeResult close");" or "fscommand("window", "closeResult close");" to end of the project or last slide.I try to add in the javascript but not run.If we select close project when play ends and public only swf,the flash player will call IE and jump an error.

    I have a Flash Player,if i have the code ,it will close the movie.
    stop ();
    getURL("FSCommand:window","closeResult close");
    or
    stop ();
    fscommand("window", "closeResult close");
    but,if i type the code to end of the movie by open url of file.I find the captivate code is:
    function endMovieFunction(slide)
        var _loc1 = "fscommand(\"window\", \"closeResult close\");";
        getURL(_loc1, "_self");
    } // End of the function
    function endMovieFunction(slide)
        var _loc1 = "\"FSCommand:window\",\"closeResult close\"";
        getURL(_loc1, "_self");
    } // End of the function
    function endMovieFunction(slide)
        var _loc1 = "FSCommand:window,closeResult close";
        getURL(_loc1, "_self");
    } // End of the function
    so my flashplayer is not close the movie.

  • How to add custom action in info view

    <p>We want to add link to each report which redirects user to our page.  </p><p> </p><p>So far we have found: </p><p>On InfoView page, there is listing of info objects(reports, hyperlink, programs) - listing.aspx.<br /></p><p>Actions for each object is defined in object AppActionBean. <br />(actionBeans = Utilities.getActionBeans(config, MainIdentity.EnterpriseSession, MainIdentity.InfoStore, realObj))</p><p>Based on action bean collection, page generates links with action appropriate for this kind of plugin. Especially destination url is genereated using AppAction.Path.</p><p>Unfortunatelly AppAction construtcor is <em>internal</em>, so we cannot add our action this way. </p><p> Is it possible to add custom action, to display hyperlink, which redirects user to our page with report ID as url parameter?</p><p> </p>

    In CE10 we were able to add a new link by editing the xml files.  I assume it would work the same in XI, the xml files are located here ...\Web Content\Enterprise115\appplugins\webdesktop\Plugins\

  • How to add the action enter  to the textfield in a jdialog?

    I did a login class using a applet it is working very well...but now..i would like to add the action to the textfield when the user press a enter.
    I would like that after that he or she has pressed a enter in the textfield were done the corresponding action, could some body help me please?
    This is my code:
         public void init() {
    AppletContext context;
              URL exitoUrl, fallaUrl;
         try {
         context = getAppletContext();
         exitoUrl = new URL("http://111.23.56.12/page1.html");
         fallaUrl = new URL("http://111.23.56.12/passwordIncorrecto.html");
                   JPasswordField pf = new JPasswordField();
                   Object[] message = new Object[] {"Intr. the password", pf};
                   Object[] options = new String[] {"Intro", "Cancel"};
                   JOptionPane op = new JOptionPane(message, JOptionPane.PLAIN_MESSAGE, JOptionPane.OK_CANCEL_OPTION, null, options);
                   JDialog dialog = op.createDialog(null, "Login");
                   dialog.show();
                   String password = new String("success");
                   String tmp = new String(pf.getPassword());
                   if ( password.equals(tmp) ) {
                        System.out.println("correct password");
         context.showDocument(exitoUrl);
         else {
                        System.out.println("incorrecto password ");
         context.showDocument(fallaUrl);
              } catch(Exception e) {
                   System.out.println("Error exception");
    Thanks in advance;
    Mary

    Hi,
    it is easy: create an entity object for every table and one view object where you select your both entity objects and join them in your select statement.
    Your desired 'confirm' functionality could be achieved with helpp of view object transient attributes - for more information see: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcquerying.htm#CHDHJHBI
    Regards
    Pavol

  • How to add Javascript action to buttons and text (hyperlink style)

    Hello.
    Please need help urgently!
    I need to link let's say to a text in Muse that reads "ADD TO CART" following javascript:
    <a href="javascript:;" onclick="wazala_widget.addtocart('177217');"
    If i do it like:
    <a href="javascript:;" onclick="wazala_widget.addtocart('177217');">ADD TO CART</a>
    then text styling is different from the Muse Hyperlink settings  that chose for other hyperlinks on my site which is obviously an undesirable effect.
    If i try to style this specific ADD TO CART text within the html widget widnow:
    <style type="text/css">
    <!--
    body {text-align:center;}
    body {vertical-align:middle;}
    A:link { COLOR: white; TEXT-DECORATION: none; font-weight: normal; font-family: palatino; font-size: 12px }
    A:visited { COLOR: white; TEXT-DECORATION: none; font-weight: normal; font-family: palatino; font-size: 12px }
    A:active { COLOR: white; TEXT-DECORATION: none; font-weight: normal; font-family: palatino; font-size: 12px }
    A:hover { COLOR: white; TEXT-DECORATION: none; font-weight: normal; font-family: palatino; font-size: 12px }
    -->
    </style>
      <a href="javascript:;" onclick="wazala_widget.addtocart('177217');">ADD TO CART</a>
    Then it overrides Muse hyperlink settings for all hyperlinks located below this button on the page.
    Any help would be highly appreciated as this is the only thing that stops me from going live with my shop.

    Dis you ever get an answer to this?
    Ben

  • How to add a copy option or button in apex report

    I aint sure if this is meant to go in this disccussion. If an wrong please let me know the right place it should go. Thanks
    I need soime help implamenting a copy button/option in oracle. I have a interactive report and when you click on the unique id it takes you to the form where you can edit the report. Now I wanted to add an option so when you click on the unqie id(pencil in edit area). It will give you 2 option, one of the option will be to view the report(view) and the other option will be to copy the report. If you click on view, it should take you the form where you can edit the report and when you click on copy, it should copy the report and take you to a blank form.
    Another option is to have a copy button on each report next to the unquie id. In the image belowyou will see the edit pencil and sure everyone know what it is, if you deal with oracle apex.
    Basically, when you click on the pencil you will get those two options above. The alternative way was to just have a copy button next to each of them and you can just click on that to copy.
    The reason why I want to do this is because I was having some issues with colons, commas, etc. Basically I had a copy button in the form and some of the form has colons, etc and because of this the copy button stop the form from render and also shows a 404 error page, which was quiet annoying.
    If anyone have any idea how to do one of the two approaches, please give me a stage by stage PLEASE.
    Thanks you

    dave_414 wrote:
    I aint sure if this is meant to go in this disccussion. If an wrong please let me know the right place it should go. Thanks
    I need soime help implamenting a copy button/option in oracle. I have a interactive report and when you click on the unique id it takes you to the form where you can edit the report. Now I wanted to add an option so when you click on the unqie id(pencil in edit area). It will give you 2 option, one of the option will be to view the report(view) and the other option will be to copy the report. If you click on view, it should take you the form where you can edit the report and when you click on copy, it should copy the report and take you to a blank form.
    Another option is to have a copy button on each report next to the unquie id. In the image belowyou will see the edit pencil and sure everyone know what it is, if you deal with oracle apex.
    Basically, when you click on the pencil you will get those two options above. The alternative way was to just have a copy button next to each of them and you can just click on that to copy.
    The reason why I want to do this is because I was having some issues with colons, commas, etc. Basically I had a copy button in the form and some of the form has colons, etc and because of this the copy button stop the form from render and also shows a 404 error page, which was quiet annoying.
    If anyone have any idea how to do one of the two approaches, please give me a stage by stage PLEASE.
    Thanks you
    Your question has to do with Apex, not the database.  Please see the Apex forum at Oracle Application Express (APEX)

  • How to add custom action for Publishing Tab on Pages?

    I am able to add a custom action for libraries tab on document library , but i am unable to add it on Publishing tab on Pages.
    Below is the code , what i am trying.
    <?xml version="1.0" encoding="utf-8"?>
    <Elements xmlns="http://schemas.microsoft.com/sharepoint/">
    <CustomAction
    Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItems"
    Location="CommandUI.Ribbon"
    RegistrationType="List"
    RegistrationId="850"
    Sequence="40"
    Title="Move Documents">
    <CommandUIExtension>
    <CommandUIDefinitions>
    <CommandUIDefinition Location="Ribbon.PublishTab.Publishing.Controls._children">
    <Button
    Id="Ribbon.PublishTab.Publishing.CheckLinkedPageItemsButton"
    Alt="Check Linked Page Assets"
    Sequence="40"
    Command="CheckLinkedPageItems"
    Image32by32="/_layouts/images/centraladmin_systemsettings_email_32x32.png"
    LabelText="Check Assets"
    TemplateAlias="o1"
    ToolTipTitle="Check Linked Page Assets"
    ToolTipDescription="Checks each image, document and page linked to from this page and verified if the asset is both working (not a broken link) and published. You may also use that page to publish all unpublished assets at once."
    />
    </CommandUIDefinition>
    </CommandUIDefinitions>
    <CommandUIHandlers>
    <CommandUIHandler Command="CheckLinkedPageItems" CommandAction="javascript:alert('button clicked!);" />
    </CommandUIHandlers>
    </CommandUIExtension>
    </CustomAction>
    </Elements>
    any thoughts?

    Hi,
    Check the secquence number . I don't see any issue in your code. Try with different sequence numbers.
    Did you find this Helpful? Please Mark it So! Thank you. Sachin Kumar

  • Rollover Buttons: How to add an indicator to my buttons?

    Hello again-
    I'm using the button widget to make a rollover button, but I would like to add a little colored square to my button to show the reader what page he's on. In other words, if he's on the home page, and he clicks the Contact Page link, when the Contact page loads, I want the Contact Page button in the menu to display a little colored square. Know what I mean? How do I do this?
    I'm using the latest version, on a Mac. Thanks-

    Please always mention your jdev version as the solution might depend on it.
    Why do you use an input text if the use can't enter text in it?
    If the width of the input text is fixed, you can write a bean method which returns width-3 chars from the text and add '...' and use an EL to shoe it in the ui.
    Or you add an output text behind the input text showing '...' when the length of the text is bigger then the width of the input field. Put an EL on the visible property of the output text to only sore it then.
    Timo

  • How to add new actions in customization setting of user status ?

    Hii All
    I am tring to use user status for blocking the creation of new breakdown notification if one breakdown ntification is already pending on it. I want to set equipment under Breakdown status on equipment  when breakdown notification created on it, but when i check for setting the action in user status customization setting, cannot locate the create notification there action there & also cannot add the same in it.
    Can any body tell me how new action can be added there??
    Regards

    Makarand Gurjar,
    You won't be able to do this with user-statuses.
    See your other [VERY similar post|Blocking of Equipment for Notification creation;
    PeteA

Maybe you are looking for

  • Regarding PL/SQL and NULL

    I have a question regarding a trigger written in a forms application. This is of course a PL/SQL routine. This is my code: IF :variable = '237' THEN GOTO t_237; ELSEIF :varible = '238' THEN GOTO t_238; ELSE MESSAGE('Wrong'); END IF; << t_237 >> NULL;

  • Connecting To A .CSV or Excel File Directly With LightSwitch

    Despite my zipcodes.csv file is already present in the debug folder of my project, still my code is not able to find the file. Regards, Vishal

  • UCS Performance Manager and NetApp c-mode filers

    We started an evaluation of the UCS Performance Manager. I can't add to the UCS Performance Manager Infrastructure any NetApp c-mode filers. Does anyone have the same problem?

  • How do I delete Time-Machine back-ups on external HD

    Hello everybody, I would like to delete all the Time Machine back-ups on my external hard drive and create a new full back-up.  This is because after several months my HDD is quickly filling up and I would like to clean out all the old back-ups.  Wha

  • Ipod 4th Gen camera shutter wont open

    I recently updated the Ipod to ios 6.1.6 but the camera shutter wont open and when i save photos from apps like safari it saves them then instantly deletes the photos I just told safari to save. this is my first apple product and to be honest with th