0
Mouse event CLICK not working please help.
Explorer
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/td-p/751152
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
I apologise if this is not the correct way to do this - it is
my first time using a forum...
I am trying to create what I believe to be a very simple rollover button that produces three buttons that pop up then click on a button and gotoAndPlay a label. The rollover and pop up I have been able to do successfully - however the mouse CLICK event for the buttons that pop up won't work. I know this should be simple - but I have been struggling with this for days. I am determined to do this using AS3 as I do not see the point in going backwards to AS2.
If anyone could please help that would be greatly appreciated.
My action script is as follows:
I am trying to create what I believe to be a very simple rollover button that produces three buttons that pop up then click on a button and gotoAndPlay a label. The rollover and pop up I have been able to do successfully - however the mouse CLICK event for the buttons that pop up won't work. I know this should be simple - but I have been struggling with this for days. I am determined to do this using AS3 as I do not see the point in going backwards to AS2.
If anyone could please help that would be greatly appreciated.
My action script is as follows:
TOPICS
ActionScript
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Enthusiast
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751153#M15323
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
shouldn't there bee a semicolon after
gotoAndPlay("who")
and
gotoAndStop("who_intro")
gotoAndPlay("who")
and
gotoAndStop("who_intro")
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Bimibear
AUTHOR
Explorer
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751154#M15324
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
thanks doghouseJim for the reply... tried that but still no
joy...
I just went back and tried AS2 as well - out of pure frustration - and I can't get it to work with that either...
I don't know what I am doing wrong...
I just went back and tried AS2 as well - out of pure frustration - and I can't get it to work with that either...
I don't know what I am doing wrong...
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751155#M15325
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
Your code looks fine, so it is likely some other issue. Do
you get any error messages? Are you sure the buttons have their
instance names? Are the buttons directly on the timeline that you
are commanding to goto, or are they inside a movieclip?
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Bimibear
AUTHOR
Explorer
,
LATEST
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751158#M15328
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
Thanks NedWebs...
As you said I had the code in the wrong part of the timeline...
THanks for the help.
As you said I had the code in the wrong part of the timeline...
THanks for the help.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
Bimibear
AUTHOR
Explorer
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751156#M15326
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
I just found the problem - after all that headache...
It seems to need the action to go on the button frame instead of at the beginning frame 1 - ie the nav is there all the time but the sub nav isnt... hope that made sense.
So anyway the end result is that I have placed the action script on the button frame itself.
It seems to need the action to go on the button frame instead of at the beginning frame 1 - ie the nav is there all the time but the sub nav isnt... hope that made sense.
So anyway the end result is that I have placed the action script on the button frame itself.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more
LEGEND
,
/t5/animate-discussions/mouse-event-click-not-working-please-help/m-p/751157#M15327
Mar 12, 2009
Mar 12, 2009
Copy link to clipboard
Copied
Yep, that would have been coming as a question, so good
find.
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting.
Learn more

