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

convert to javascript from actionscript 3.0

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

Views

359

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
community guidelines

correct answers 1 Correct answer

Community Expert , Sep 12, 2019 Sep 12, 2019

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

Votes

Translate

Translate
Community Expert ,
Sep 12, 2019 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

Votes

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
community guidelines
Explorer ,
Sep 12, 2019 Sep 12, 2019

Copy link to clipboard

Copied

Great answer Joao. A new adventure begins lol.

Votes

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
community guidelines
Community Expert ,
Sep 12, 2019 Sep 12, 2019

Copy link to clipboard

Copied

LATEST
Aye aye, cap! Haha

Votes

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
community guidelines