Highlighted

Export document as texture is causing me problems

Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by PickleNick28 | Adobe Community Professional

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

}

Views

95

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Export document as texture is causing me problems

Community Beginner ,
May 17, 2019

Copy link to clipboard

Copied

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.

Adobe Community Professional
Correct answer by PickleNick28 | Adobe Community Professional

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

}

Views

96

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
May 17, 2019 0
Adobe Community Professional ,
May 18, 2019

Copy link to clipboard

Copied

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

}

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
May 18, 2019 0