Skip to main content
Participating Frequently
December 13, 2019
質問

Animate CC-Button On Click ActionScript/Coding

  • December 13, 2019
  • 返信数 3.
  • 1547 ビュー

Hey guys! I have a question that I am struggling for some time that is the action script for "button on click" as picture below. 
For my part: (look at 1st picture below) When I click "Product" button below, I want the "Product" information to pop out (2nd picture below). But I couldn't solve it with that. Maybe there's a problem on my action script/coding (3rd picture)

My problem is after I click the "product"button (1st picture) it didn't appear anything.

Anyone Professional can help me with that? Thanks a lot! 😄🙏

 

 

このトピックへの返信は締め切られました。

返信数 3

JoãoCésar17023019
Community Expert
Community Expert
December 14, 2019

Hi.

 

I think it's like Lars said. You're on frame 3 of the main timeline and your code sends the playhead to the frame 3 of the main timeline. The result is that you stay in the same place.

 

Please confirm if this is the case or please add more infos so we can help you out.

 

 

Regards,

JC

Cortoh
Participating Frequently
December 13, 2019

To go to frame 3 you have to write gotoAndStop (3); not gotoAndPlay (3);

Bryan Chuah作成者
Participating Frequently
December 14, 2019

I tried already but is still the same...couldn't work...

Lars Laborious
Legend
December 13, 2019

Make sure the code for the btn and function is on the "start page frame", (probably frame number 1).

Bryan Chuah作成者
Participating Frequently
December 13, 2019

Yep, for the frame no 1 is okay but other frame, it couldn't "pop out" information. This is what I am struggling for...

Lars Laborious
Legend
December 13, 2019

Is the "pop out" information a single image directly on frame 3? Or is it an animation inside a MovieClip somewhere?