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

Export document as texture is causing me problems

Community Beginner ,
May 17, 2019 May 17, 2019

I'm not sure how bad the performance was on mobile devices before they added this option but this isn't working correctly for me. First off if you don't use this Adobe animate wont allow easing on "shape tweens" So now when i'm animating just a mask I have to create a spritesheet that adds K size to my project.

Next I have a rollover button that I cant have shape tweens that have easing, this code isn't working when I use "export document as texture.

var self = this;

stage.enableMouseOver();

this.ctaButton.addEventListener("mouseover", fl_MouseOverHandler);

function fl_MouseOverHandler()

{

  self.ctaButton.gotoAndPlay("startAnimation");

}

this.ctaButton.addEventListener("mouseout", fl_MouseOutHandler);

function fl_MouseOutHandler()

{

  self.ctaButton.gotoAndPlay("endAnimation");

}

I test my all banners in the activity monitor the cpu usage wasn't out of control why change this?  Or why change it so i have no choice in the matter because I need to be able to use easing on my shape tweens.

306
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 , May 18, 2019 May 18, 2019

Use your code snippets.

Screen Shot 2019-05-18 at 6.41.38 PM.png

/* Mouse Over Event

Mousing over the symbol instance executes a function in which you can add your own custom code.

Instructions:

1. Add your custom code on a new line after the line that says "// Start your custom code" below.

The code will execute when the symbol instance is moused over.

frequency is the number of the times event should be triggered.

*/

var frequency = 3;

stage.enableMouseOver(frequency);

this.square.addEventListener("mouseover", fl_MouseOverHandler);

function fl

...
Translate
Community Expert ,
May 18, 2019 May 18, 2019
LATEST

Use your code snippets.

Screen Shot 2019-05-18 at 6.41.38 PM.png

/* Mouse Over Event

Mousing over the symbol instance executes a function in which you can add your own custom code.

Instructions:

1. Add your custom code on a new line after the line that says "// Start your custom code" below.

The code will execute when the symbol instance is moused over.

frequency is the number of the times event should be triggered.

*/

var frequency = 3;

stage.enableMouseOver(frequency);

this.square.addEventListener("mouseover", fl_MouseOverHandler);

function fl_MouseOverHandler()

{

// Start your custom code

// This example code displays the words "Moused over" in the Output panel.

alert("Moused over");

// End your custom code

}

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