Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Mouse event CLICK not working please help.

Explorer ,
Mar 12, 2009 Mar 12, 2009
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:

TOPICS
ActionScript
650
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Enthusiast ,
Mar 12, 2009 Mar 12, 2009
shouldn't there bee a semicolon after
gotoAndPlay("who")
and
gotoAndStop("who_intro")
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 12, 2009 Mar 12, 2009
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...
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2009 Mar 12, 2009
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?
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 12, 2009 Mar 12, 2009
LATEST
Thanks NedWebs...

As you said I had the code in the wrong part of the timeline...

THanks for the help.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Mar 12, 2009 Mar 12, 2009
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.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Mar 12, 2009 Mar 12, 2009
Yep, that would have been coming as a question, so good find.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines