Skip to main content
Participant
July 15, 2022
Question

Combine several HTML5 scenes into a presentation (similar to flash)

  • July 15, 2022
  • 2 replies
  • 112 views

I have made several individual scenes using HTML5 canvas.  I want to be able to link them together using a 'next' and 'back' button.  I am basically trying to produce a presentation similar to flash going forwards or backwards through the scenes.  Is this possible? 

    This topic has been closed for replies.

    2 replies

    Colin Holgate
    Inspiring
    July 16, 2022

    Scenes are not available in Canvas. In ActionScript 3 FLAs you could use scenes, but a different way to work is to have movieclips in the library, then instead of going to another scene you add the next movieclip to the stage with code, and remove the current movieclip. Visually it will be the same effect as going to another scene.

    That way of working would also work in Canvas FLAs.

    If you want to keep the current separated scenes as individual Canvas items, you could change the location of the window, to go to the next or previous scene, but the loading time would be a distraction, and there may be some amount of window redrawing going on as well.

    JoãoCésar17023019
    Community Expert
    Community Expert
    July 15, 2022

    Hi.

     

    What are your scenes? Frames, Movie Clip instances, html files?

     

    Please let us know.

     

    Regards,

    JC