Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Help with pop-up window - canvas

New Here ,
Mar 28, 2018 Mar 28, 2018

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?

516
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

Community Expert , Mar 28, 2018 Mar 28, 2018

yes.

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

function loadF(){

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

}

Translate
Community Expert ,
Mar 28, 2018 Mar 28, 2018
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Mar 28, 2018 Mar 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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Mar 28, 2018 Mar 28, 2018
LATEST

yes.

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

function loadF(){

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

}

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines