Newbie Help - button events not firing

Ask a Question related to Macromedia Flash Sitedesign, Design and Development.

  1. #1

    Default Newbie Help - button events not firing

    Hello!
    I have Flash MX 2004 and I am having a problem with 3 of my 5 buttons. For
    those 3, they do not respond to the button click. Here is the code I have for
    each button:

    on (rollOver) {
    // Gallery
    gotoAndPlay(2);
    }
    on (rollOut) {
    gotoAndPlay(9);
    }
    on(release)
    {
    //Goto Webpage Behavior
    getURL("http://www.macromedia.com");
    //End Behavior
    }

    Any help would be appreciated.
    Thanks!
    JM


    JohnnieMiami99 Guest

  2. Similar Questions and Discussions

    1. Button Column Objects, events' not firing
      I am having the same problem have you found anything out? *** Sent via Developersdex http://www.developersdex.com ***
    2. Adding Button at runtime: Events not firing
      Im adding a button at runtime but the DataGrid1.ItemCommand event does not fire. I also have a button that I added at design time and this button...
    3. Why all my Datagrid Events not firing?
      I have created a datagrid on an ASP.Net form, When I try to capture any of the "Command" events e.g. (ItemCommand) the event does not fire. I have...
    4. Newbie - Rendered controls not firing events - help please
      Hello, I have 2 user written rendered controls. If I put them on a page one at a time they work OK. If i put them on the page at the same time...
    5. Two events firing, but I only need one...
      I have a page with several datagrids on it. There is one main visible table, and two invisible tables that become visible when someone clicks a...
  3. #2

    Default Re: Newbie Help - button events not firing

    Hi,

    Are those buttons targeting the timeline that they are on? Are you sure you've
    applied the actions to the button instances and not the timeline itself?

    Also, getURL("http://www.macromedia.com"); add _blank if you want the page to
    open in a new window. So,

    getURL("http://www.macromedia.com", _blank);

    Viru.


    kO2n Guest

  4. #3

    Default Re: Newbie Help - button events not firing

    Hi Viru!
    As I mentioned, I'm a newbie...so here come the stupid newbie questions.
    How do I know if I have applied the action to the button and not the timeline?
    I have selected the blue box over my button and added the code to that. Sorry,
    still learning....

    Thanks!
    JM

    JohnnieMiami99 Guest

  5. #4

    Default Re: Newbie Help - button events not firing

    you are probably applying the actions to the button because you should get an
    error if it were in the main timeline something like "mouse events are only
    permitted for button instances". Just a comment on the reply below. I think you
    would have to put the _blank in quotes as "_blank". At least I do.

    Do you have anything else in your movie like any components? Some of the
    components are causing weird problems with button focus and can force a rollOut
    even if you did not actually roll out. I know the comboBox does this.

    Another thing, it looks like you are frame-jumping based on the mouse actions
    on the buttons. Are all the buttons on every frame in the area you are jumping
    around in as one button or are you splitting the buttons up (multiple
    instances) into different keyframes? Try putting your buttons on a layer by
    themselves (all can be on one layer) and keep this layer continuous without any
    new keyframes.

    rlc5611 Guest

  6. #5

    Default Re: Newbie Help - button events not firing

    Hi and thanks for the feedback!
    I thought they all had to be on different layers? For example, when I
    created my button it created 4 layers. I do have other buttons but no other
    controls like combo boxes. I think you are right about the frame jump too
    since the action on the first 2 buttons is very different then the action on
    the last 3 buttons (which happen to be the ones I am trying to update). Here
    is the movie: [url]http://www.soft-ally.com/kimberleeduncan/flash/delta15.swf[/url]

    Thanks!


    JohnnieMiami99 Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139