Creating a simple button in CS4...I'm missing something

Okay....I'm just trying to create a simple button to test. I create a square, convert it to a button symbol. I click on the button and open the Actions window. The window says "current selection cannot have actions applied to it." Have I missed a step? I can add an action to a keyframe okay, but when I click a button, even just a simple button, it will not allow me to add an action to it?
Anybody know what I'm missing?

again, you cannot attach code to objects in as3.  you are going to attach code to a frame or you're going to create external as files/class files and i'm pretty sure that will be a bigger jump out of your comfort zone than attach code to a frame.
you've already given your button an instance name (mybutton), so attached to the first frame that contains mybutton, in the actions panel paste the following:
mybutton.addEventListener(MouseEvent.CLICK,f);
function f(e:Event){
navigateToURL(new URLRequest("http://www.adobe.com"));  // better to use adobe than apple in this forum.

Similar Messages

  • How do I create a simple button animation?

    I am very new to flash although I did do some  movies in Adobe Live Motion when it was available.  I am trying to recreate a nav bar that I did in Live Motion, in Flash CS4.  I have done a little research but found no direct answers.
    I have a simple graphic of a tin can. (I will end up using 8 different instances of this graphic for my nav bar.) There is a line of text above the tin can. I want to make this all a button that when mouse is over the can rotates once clockwise  and the text changes color.  When mouse is out it goes back to the normal up state.  When clicked I want to go to a web page.
    That is it.  If I can learn how to do one I will be fine.
    I would be ever so grateful for help with this.

    I did, by the way, change the publish settings to as2.  Thanks for that info!
    All works but the  mouseover.  The tin can continuously rotates instead of just once. The text changes color ok but flickers (from up to over) - again and again until mouseout. And the link works when clicked on either text or tin can.
    So everything you gave me was correct but I have done something wrong with the over animation.
    My  movie clip is as follows.  The instance is named btn1.
    layer 3 = actions layer
    layer 2 = text
    layer 1 = tin can
    frames 1 - 5 labeled "up" with stop action in frame 1.
    frames 6 - 10 labeled over with tin can (layer 1) being a 5 frame tween using 1 rotation from the property panel
    Scene 1 has 3 layers.
    layer 1 = background - locked
    layer 2 = btn1 movie clip
    layer 3 = actions - with your code in frame 1
    Again, any help will be appreciated.

  • MFC -Creating a Simple Button in the Windows client Area

    How to create a Button in the client area (Not using Dialog to display the Button) using  CButton  class programatically

    How to create a Button in the client area (Not using Dialog to display the Button) using  CButton  class programatically
    The easiest way to do this is to use a CFormView as the view class. Is there a reason you do not want to do that? With a CFormView you have a dialog template, just like a Dialog.
    To create a button in an ordinary CView, you need to create it in code using CButton::Create(). See
    https://msdn.microsoft.com/en-us/library/bw4e0cww.aspx
    Normally you would create this button in the OnCreate() method (WM_CREATE handler) of the view.
    David Wilkinson | Visual C++ MVP

  • Create a Simple Button in MVC Razor View

    I have been having allot of trouble getting a button to do anything in my view page (razor layout) MVC design. Although I would like to pass some data as well at the moment I am trying to perform a simple page change to confirm it is working. 
    My View1.cshtml contains:
    @using (Html.BeginForm())
    <input type="button" name="button" class="button1" value="Insert" />
    My controller1 class contains:
    [AcceptVerbs(HttpVerbs.Post)]
    public ActionResult MyAction(string button)
    return View("TestView");
    The controller renders my view1 page fine and there is a button there. But clicking it does not trigger my controller action and render the TestView.cshtml view. How do I do this?

    Hello,
    There is a specific ASP.Net MVC forum on
    forums.asp.net.
    Karl
    When you see answers and helpful posts, please click Vote As Helpful, Propose As Answer, and/or Mark As Answer.
    My Blog: Unlock PowerShell
    My Book:
    Windows PowerShell 2.0 Bible
    My E-mail: -join ('6F6C646B61726C406F75746C6F6F6B2E636F6D'-split'(?<=\G.{2})'|%{if($_){[char][int]"0x$_"}})

  • Simple button problem

    I am having a real problem creating a simple button - I have
    created a Flash file using Action script 2, and when I create a
    simple button - text with a rectangle as a background, (see
    http://www.elkhavenestate.com),
    and the over state is behaving in a bizarre fashion. This is my
    first time using CS3, so is there a new control that I'm
    missing?

    I take it that it's the Home button. It appears to have a
    selectable text field or something in it, which is causing the
    problem. Either change that to a static text field or set its
    selectable property to false. The other two buttons appear to be
    fine, so maybe you can just duplicate one of them and turn it into
    the Home button.
    If I picked the wrong button, let me know.

  • CS4- simple button Frustration?

    Hello, I just upgraded to CS4 and am finding Flash very frustrating. I only use flash for very simple ad banners. Usually have one button to click to go to a web page. Now in CS4 professional I can't do the simple of things, like create a link on a button. In the action script panel it says "Current selection cannot have actions applied to it", and the object is simply a button.
    What am I missing here? Thanks for any direction.
    sm

    If all you are doing is simple things like that, switch the publish settings to Actionscript 2.
    Actionscript 3 is a new beast of a language that doesn't necessarily lend itself well to using just a simple button action.
    If you want to use AS3, then give the button an instance name (in the properties panel when you have the object selected) and put the following code in the first keyframe.
    myButton.addEventListener(MouseEvent.CLICK,doClick);
    function doClick(evt:MouseEvent):void {
         navigateToURL(new URLRequest("http://path/to/site"));
    Replacing "myButton" with the instance name you gave your button, and the URLRequest with the web address you want to go to.

  • I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    I would like to create a simple vote form that members can hit the reply button and record their preference in a check box. Is this possible on iPad?

    Go to the App Store and search on "Forms Management".
    There are a lot of candidates.

  • How can we create such navigation buttons using Flash CS4?

    Hi,
    How can we create such navigation buttons using Flash CS4 is in the following website? Please help me with any such tutorial to make my custom navigation bar/buttons.
    http://city.reallusion.com/join.html
    Thanks.

    While the Note 4 is a reasonably large device it still falls into the phone layout bucket. We need this layout to function on very small screens some as low as 320 pixels high and 240 pixels wide. These sorts of devices don't have the space for a full toolbar.

  • How to create web 2.0 buttons in CS4?

    Hi, i can't create web 2.0 buttons in CS4,all my buttons are very ugly... I'm trying for two days, but can't draw the beautiful button.
    How??
    Thank you!

    I recently wrote a tutorial on web 2.0 style buttons. It's not the best tutorial I've ever written, but it might get you started:
    http://joedasilva.com/easy-glossy-buttons-with-fireworks

  • How do I create a simple loading scene in CS4 AS3?

    Hi All,
    I have tried using the following to no effect:
    ifFrameLoaded ("Main", 80) {
    gotoAndPlay("Main", 1);
    CS4 says this has been replaced by
    flash.display.MovieClip.framesLoaded but this doesnt seem to work
    the same, i keep getting errors.
    Basically I have scene called "Loading" and I want AS3 i this
    scene to wait until my scene called "Main" has loaded before
    proceeding to it. I have an animation in the Loading scene to show
    its loading.
    I must be missing something simple but cant figure it out.
    Please help

    Ok I now have
    trace("framesLoaded:" + framesLoaded + " currentFrame:" +
    currentFrame);
    if(framesLoaded == totalFrames) {
    gotoAndPlay(2);
    } else {
    gotoAndPlay(1);
    Which appears to work, i shows my loading frame then moves
    onto Frame 2. The only problem is it hasnt finshed loading! The
    output in CS4 is "framesLoaded:1 currentFrame:1". framesLoaded
    should be 80 before it moves to the next frame. Any Ideas?

  • Creating a simple DVD menu with text as buttons...

    Hi, I am rather new to DVDSP but fairly accomplished at the software designers earlier product, DVD Virtuoso (still use it). Can anyone tell me where there is a tutorial to create a simple text DVD menu? I would like to place a colored rectangle (opacity) behind the text to help it stand off the background and have access to some fairly basic text tools like Bevel & Emboss, Stroke and Drop Shadow. Thank you.

    http://discussions.apple.com/thread.jspa?messageID=2082015&#2082015
    http://discussions.apple.com/thread.jspa?messageID=2601618&#2601618
    Has some discussion and examples I posted elsewhere which should help get you going. Best to do graphics in Photoshop, then make sure all text/layers rasterized, then make them flattened picts. One will be background layer, the other grayscale overlays to map colors (these examples should start you off I think)
    PS I know Hal has a great example with better step by steps, and if I get a chance later I can also fill in details on what I did

  • Simple Button Hit Zone not working

    I am somewhat new to Flash CS4 andt am having a problem making simple buttons in Flash CS4 on a Macintosh: I have made a few buttons with a graphic and can go into them and successfully create the Up, Over and Down stages of the graphic. Then when I create a new box for the hit state (which is larger than the graphic and I have deleted the graphic itself from the hit state) it doesn't want to appear correctly when I test the movie. When I test the movie, the hit state is correct everywhere around the graphic (to the bounds of my hit state box), but is not active where the graphic is. When I go under the Control menu, down to Enable Simple Buttons, the hit zone looks great right in my Flash file, but when I preview it or publish it and look it on different browsers (PC and Mac), I don't get my pointer right over the actual graphic, but get it everywhere around the graphic to the boundaries of my hit box. Why can't I get the actual graphic to be a hot spot in this situation? I have tried leaving the graphic in the hit timeline, and tried putting both the larger box and the graphic in the hit timeline, and still can't get them to respond correctly with the pointer in the browser window. Thank you....

    Well, since the graphic itself doesn't activate my pointer in a web browser, I thought maybe I needed to add both the box and the graphic itself to the hit state. That's what has me puzzled - the box that I use for the hit zone is "active" everywhere but where the actual graphic is...

  • Basic help with Flash v10 (creating a simple calculator)

    I have Adobe CS4 Pro with Flash v10.  I'm trying to create a simple, basic calculator that adds 2 numbers.  I followed the tutorial at http://layersmagazine.com/flash-design-calculator.html.  At first, I was unable to assign variables to any objects, but got that cleared up by selecting ActionScript 2.0 (was set to 3.0).  At this point, the calculator accepts the two numbers, but when I select the "add" button with the associated code as shown in the tutorial, nothing happens.  Does anyone have a suggestion as to what I might be doing wrong?  Thanks.

    This is all the code there is:
    on(release) {
    total = Number(firstnumber)+Number(secondnumber);
    There's really not an error--I just don't get any output.  I've created two 'Input Text' boxes, and on the properties tab for each I have defined the "Variable:" field as either 'Number(firstnumber)' or 'Number(secondnumber)'.  I've also created a 'Dynamic Text' box and defined the "Variable:" field as 'Number(total)'.
    Note:  the example I was following did not specify to include the 'Number()' function in the "Variable:" fields.  However, when I don't, and I run 'Test Movie', the 3 boxes are automatically filled with "_level0.firstnumber", "_level0.secondnumber" and "_level0.total".  When I type 2 numbers in to the 2 'Input Text' boxes, and then select my button that has the above code associated with it, I get "NaN" in the output ('Dynamic Text') box.
    Thanks again for your help!

  • Creating DVD menus in Encore CS4

    I have only very briefly experimented with trying to create a DVD menu for my Premier Pro CS4/Encore CS4 projects.  I must say I have found it not at all intuitive.
    Can anyone please:
    1: Recommend a nice clear tutorial on how to create DVD menus in PPro CS4/Encore CS4
    and/or:
    2:  Recommend a nice simple not-too-costly programme with which I can create DVD menus from my PPro CS4/Encore CS4 projects.
    The menus which come with Encore seem pretty naff, too.  If anyone can recommend some simple software which has nicer ones I'd be grateful.
    Thanks all!

    Unless PSE 9 has changed things, the big limitation in using Photoshop Elements is that it cannot create the Button Layer Sets, but can edit them, from the Library Menus. Photoshop has no such limitation.
    I do not know if GIMP can do the Menus, but it is often recommended as a free alternative for PS. As I have PS, I have not even seen that program in decades.
    One additional source for pre-made Menus is Muvipix. These are free to subscribers, and for sale to non-subscribers. Also, they are done as PrE Menu Sets, but can be broken down and modified to function as stand-alone Menus for Encore.
    There is a source for pre-made Menus, in the UK, but last time I checked they were heavily weighted to weddings.
    Personally, I just start with a Library Menu, and modify/build what I need in PS.
    Good luck,
    Hunt

  • NOOB: Simple button to insert a new row...

    I have a two column database table.
    It is displayed on an interactive report in two columns.
    I want to create a new row via button with the values of "new" "new" in the two fields.
    I was thinking this should be pretty simple however have not found the right example online to how to achieve this.
    Thanks
    Rob
    Edited by: bostonmacosx on Jun 8, 2012 1:40 PM

    Normally you would add a "New" button to the IA report and redirect to a form page in which you can add a new record.
    So steps are :
    1. Create a form on this table so you can add and edit records on this table
    2. Create a "New" button on your IA report which redirects to this page.
    Regards,
    Bas

Maybe you are looking for