Skip to main content
afffy
Participant
April 5, 2022
Question

HTML 5 Canvas load & unload swf

  • April 5, 2022
  • 1 reply
  • 398 views

Hi


I have a HTML 5 Canvas project that is a tutorial with many individual modules as swf files.
In AS3 I was able to load / unload movies to continue  to next module that replaced the one prior.
How can I do that in HTML5 Canvas?

Thanks|

    This topic has been closed for replies.

    1 reply

    Legend
    April 5, 2022

    If you're talking about loading a published Animate document into a movieclip, no, you can't do that with Canvas documents.

     

    If you're talking about an Animate document chain-loading another document that completely replaces it, then yes, you can do that. Canvas documents are just HTML pages, so you can use whatever standard JavaScript you'd like to load them in.

     

    https://developer.mozilla.org/en-US/docs/Web/API/Location/href

     

    afffy
    afffyAuthor
    Participant
    April 5, 2022

    I see, so to clarify I just create multiple HTML5 documents and target them accordingly?
    Thnx