Skip to main content
paulas88620265
Participating Frequently
March 28, 2018
Answered

Help with pop-up window - canvas

  • March 28, 2018
  • 3 replies
  • 573 views

hello ... I'm working on an interactive canvas map

in flash could load an external film inside another, in canvas not ...
Is it possible to load external content (photo and text) in a pop-up window?

if I do it in the same project it is very heavy .. and I have to show many descriptions ... it is more practical to upload photo and external text for each description .. I have created it in this project in flash and it works well .. but canvas is new to me and I do not know how to solve this problem ...

example: inside the map I have Route 109 ... when I click I want to show a photo and the descriptive text ... I already have the canvas project "ruta-109" which has a small animation ..

Can you load this external project in pop-up window? ... or would I just have to upload the photo and external text independently, without a project?

    This topic is closed to new replies. Start a new post to keep the conversation going.
    Correct answer kglad

    yes.

    this.whatever.addEventListener('click',loadF.bind(this));

    function loadF(){

    this.addChild(new createjs.Bitmap ("imagePath.jpg"))

    }

    3 replies

    kglad
    Community Expert
    Community Expert
    March 28, 2018
    paulas88620265
    Participating Frequently
    March 28, 2018

    thanks for answering kglad

    var bitmap = new createjs.Bitmap ("imagePath.jpg");

    Would that code serve to load an external image? ...

    you can give me an example with mouse click or mouse over, to be able to integrate the project canvas animate cc

    thank you very much

    kglad
    Community Expert
    kgladCommunity ExpertCorrect answer
    Community Expert
    March 28, 2018

    yes.

    this.whatever.addEventListener('click',loadF.bind(this));

    function loadF(){

    this.addChild(new createjs.Bitmap ("imagePath.jpg"))

    }