Skip to main content
Rodrigo_Girona
Participating Frequently
January 21, 2018
Answered

Load html inside Animate cc

  • January 21, 2018
  • 2 replies
  • 6152 views

Is it possible to load an html (created with Animate CC) into another ".fla" (Animate CC - html5canvas)?

Test:

var gigs = new createjs.Bitmap("GIGS.html");

this.contenedor_mc.addChild(gigs);

//contenedor = empty movieclip on stage

Is not correct.

It is to make a charge only what is visited as previously was done with the ".swf"

From already thank you very much

This topic has been closed for replies.
Correct answer kglad

Only one part (attached sketch)

I want route.html to be loaded in index.html (upper layer), as it was with "loadMovie" in AS.

I do not like the window.open


again, use innerHTML of one of your div's:

document.getElementById("dom_overlay_container").innerHTML='<object type="text/html" data="route.html" ></object>'

and you can create div's using javascript or by editing your html if you don't want to use that one.

2 replies

Legend
January 23, 2018

If you're asking if there's an HTML5 Canvas version of the AS2 loadMovie() function (or its overcomplicated AS3 equivalent), then the answer is no. No there isn't.

kglad
Community Expert
Community Expert
January 22, 2018

it doesn't make sense to load an html document into a fla.

you mean you want to "load" an html into a html5/canvas document created by animate cc, correct?

you can replace the current html5/convas document with another (using the document's href property) and you can change the html of a div in your document with other html (using the div's innerHTML property).

Rodrigo_Girona
Participating Frequently
January 23, 2018

Exactly, load with a click, an html in another html (the 2 created in Animate CC).

With DIV and:

float: left / position: absolute

but I can not get it yet, thank you very much kglad

kglad
Community Expert
Community Expert
January 23, 2018

where's the html page?

if it's local you'll need to strip the headers. if it's not local there are security issues.

the only easy thing is to open a new window/tab or change the current window/tab with the document.location's href property or use window.open()