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

ANCC published JS file, how to call in the new file

Enthusiast ,
Jun 18, 2018 Jun 18, 2018

Copy link to clipboard

Copied

Included in "Global", I added JS previously done, but did not show.

JS file, is a previous production of an animation.

How to properly invoke the previously released JS?

qj.JPG

Views

467

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 , Jun 21, 2018 Jun 21, 2018

you can use left,right,top,bottom:

div.style.position='absolute';

div.style.left='100px';

etc

Votes

Translate

Translate
Community Expert ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

an included js file wouldn't typically be something created by animate.

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
Enthusiast ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

So what is the way to load the previous production of HTML5 + JS animation?

It is a pity that the previous Fla was lost.

I'd like to load the previous animation into one of the movie clips of the animation now.

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
LEGEND ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

Try to iimport your libray into the new fla.

File/import/other external library

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 ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

check msg 3 but i don't think that's going to help you if you do not have the needed fla.

i'm not sure what you're trying to accomplish but html5 doesn't work the like swfs so you can't "load" one project into another like you could with swfs.  that said, you can 'link' two html5 projects but i'm not sure that's what you want.

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
Enthusiast ,
Jun 19, 2018 Jun 19, 2018

Copy link to clipboard

Copied

I see,

But I found that some HTML pages can be displayed on another page, ANIMAYECC can't do that.

I saw some files as pictured.B is shown in a.html.

无标题-1.jpg

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 ,
Jun 20, 2018 Jun 20, 2018

Copy link to clipboard

Copied

yes, you can change the innerhtml of a div but i think you'll need to do some of that outside animate.  i use the text editor sublime text.

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
Enthusiast ,
Jun 20, 2018 Jun 20, 2018

Copy link to clipboard

Copied

Hello, I saw your reply yesterday.

Because I do not understand the network code, so I query the code went.

The code I found is this.

Test to create a new div.

But I also have questions.

1, how to adjust div position, let div overlap on the stage, is now on the stage outside

2,How to load a new page. Use "Load" in an HTML query, but how to write in ANCC I don't know.

this.aa.on("click", creatDiv);  

function creatDiv(){               
var div = document.createElement("div");
div.innerHTML = "Hello!";//为div输入内容               
document.body.appendChild(div)                       
}      

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 ,
Jun 21, 2018 Jun 21, 2018

Copy link to clipboard

Copied

LATEST

you can use left,right,top,bottom:

div.style.position='absolute';

div.style.left='100px';

etc

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