Copy link to clipboard
Copied
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?
yes.
this.whatever.addEventListener('click',loadF.bind(this));
function loadF(){
this.addChild(new createjs.Bitmap ("imagePath.jpg"))
}
Copy link to clipboard
Copied
Copy link to clipboard
Copied
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
Copy link to clipboard
Copied
yes.
this.whatever.addEventListener('click',loadF.bind(this));
function loadF(){
this.addChild(new createjs.Bitmap ("imagePath.jpg"))
}
Find more inspiration, events, and resources on the new Adobe Community
Explore Now