Highlighted

convert to javascript from actionscript 3.0

Community Beginner ,
Sep 12, 2019

Copy link to clipboard

Copied

I created an interactive SWF document and am converting to HTML. I had actionscripts inserted into movies that are placed on the main timelines. Can I do the same think with javascript or does the scripts in the movies have to be incorporated into the script on the home page? thanks.

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

 

In HTML5 Canvas documents, you can write JavaScript in any frame of a Movie Clip timeline like it used to be with AS3 documents.

 

But please keep in mind that you should try to only write JavaScript in the main timeline and in external JS files. Nested Movie Clip instances should only contain simple instructions (e.g.: this.stop()) for the sake of organization and readability.

 

 

Regards,

JC

Views

208

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

convert to javascript from actionscript 3.0

Community Beginner ,
Sep 12, 2019

Copy link to clipboard

Copied

I created an interactive SWF document and am converting to HTML. I had actionscripts inserted into movies that are placed on the main timelines. Can I do the same think with javascript or does the scripts in the movies have to be incorporated into the script on the home page? thanks.

Adobe Community Professional
Correct answer by JoãoCésar | Adobe Community Professional

Hi.

 

In HTML5 Canvas documents, you can write JavaScript in any frame of a Movie Clip timeline like it used to be with AS3 documents.

 

But please keep in mind that you should try to only write JavaScript in the main timeline and in external JS files. Nested Movie Clip instances should only contain simple instructions (e.g.: this.stop()) for the sake of organization and readability.

 

 

Regards,

JC

Views

209

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
Sep 12, 2019 0
Adobe Community Professional ,
Sep 12, 2019

Copy link to clipboard

Copied

Hi.

 

In HTML5 Canvas documents, you can write JavaScript in any frame of a Movie Clip timeline like it used to be with AS3 documents.

 

But please keep in mind that you should try to only write JavaScript in the main timeline and in external JS files. Nested Movie Clip instances should only contain simple instructions (e.g.: this.stop()) for the sake of organization and readability.

 

 

Regards,

JC

__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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...
Sep 12, 2019 0
Community Beginner ,
Sep 12, 2019

Copy link to clipboard

Copied

Great answer Joao. A new adventure begins lol.

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...
Sep 12, 2019 1
Adobe Community Professional ,
Sep 12, 2019

Copy link to clipboard

Copied

Aye aye, cap! Haha
__________________________________________
HTML5, JSFL, and AS3 samples: http://bit.ly/2mJgDoG

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...
Sep 12, 2019 0