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

Nothing happens when I click to access the actionscript code for a specific frame

Community Beginner ,
Jul 03, 2024 Jul 03, 2024

Screenshot 2024-07-03 211355.pngexpand image

When i click on the button layer ... in the actions poup in the image above, nothing happens?

TOPICS
ActionScript
846
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

correct answers 1 Correct answer

Community Expert , Jul 04, 2024 Jul 04, 2024

Thanks for the file.

 

The reason is because the layer is of type motion tween. And I just found out that this type of layer cannot have frame scripts.
image.pngexpand image
image.pngexpand image
https://helpx.adobe.com/animate/using/about-motion-tween-animations/motion-tween-animation.html

 

You'll need to alt drag the frame containing the code to a regular layer.

 

I honestly didn't know about this limitation especially because I rarely use motion tweens.

 

Anyway, you should be able to access the script now.

 

Regards,

JC

Translate
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

Urgent, due tmr

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

Hi.

 

Please make sure that you are selecting only one single frame and not the entire layer.

Do this:
image.pngexpand image

 

And not this:

image.pngexpand image

 

Regards,

JC

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

Hi JC, thanks, it still doesn't work unfortunately

Marcus301744874ozm_0-1720008443915.pngexpand image

This still gives that blank screen

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

Alright.

 

What does happen if you try it in a blank keyframe?

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

It works for other buttons

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

and other blank keyframes

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

If it's the same frame, you can add the code in any layer. It doesn't need to be in that specific layer.

 

I'm not sure why you get this issue, but I guess it's an workaround for now.

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

Yeah unfortunately, im not trying to add any code, just remove the trace functions that ive added previously when testing. 

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

TYSM JC

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

You can access the frames that already have code by navigating in the left side of the Actions Panel.

Screenshot 2024-07-03 at 09.36.48.pngexpand image

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

When I tried to do that the screen just flashed then nothing else happemed

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

Do you mind sharing a video of what you're doing?

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

im unable to sorry

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

did you click button layer : frame 134?

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

yes

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024

I've even created a copy of the frame and it still didnt work

 

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
Community Expert ,
Jul 03, 2024 Jul 03, 2024

upload your fla to a file server and post a link here.

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
Community Beginner ,
Jul 03, 2024 Jul 03, 2024
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
Community Expert ,
Jul 04, 2024 Jul 04, 2024
LATEST

Thanks for the file.

 

The reason is because the layer is of type motion tween. And I just found out that this type of layer cannot have frame scripts.
image.pngexpand image
image.pngexpand image
https://helpx.adobe.com/animate/using/about-motion-tween-animations/motion-tween-animation.html

 

You'll need to alt drag the frame containing the code to a regular layer.

 

I honestly didn't know about this limitation especially because I rarely use motion tweens.

 

Anyway, you should be able to access the script now.

 

Regards,

JC

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