Quantcast
Channel: Adobe Community : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 238792

When I export a MC from flash that has a .png in it, it shows up in all browsers except iPad.

$
0
0

This is working in safari on Mac and firefox. The image will not load on the Ipad. Any Ideas?

 

Here is the code:

 

var canvas, stage, exportRoot, offset, zoomIn, zoomOut, image, schematic;

 

 

function init() {

          canvas = document.getElementById("canvas");

          stage = new createjs.Stage(canvas);

          createjs.Touch.enable(stage);

          images = images||{};

 

 

          var manifest = [

                    {src:"images/schematic.png", id:"_95Z7FanBrakeHydDiagramColored"}

          ];

 

          var loader = new createjs.PreloadJS(false);

          loader.onFileLoad = handleFileLoad;

          loader.onComplete = handleComplete;

          loader.loadManifest(manifest);

}

 

 

function handleFileLoad(o) {

          if (o.type == "image") { images[o.id] = o.result; }

}

 

 

function handleComplete() {

 

          schematic = new lib.Schematic();

 

          stage.addChild(schematic);

 

 

          createjs.Ticker.setFPS(60);

          createjs.Ticker.addListener(stage);

 

          zoomIn = new lib.ZoomIn();

          zoomIn.x=10;

          zoomIn.y=10;

          stage.addChild(zoomIn);

 

          zoomOut = new lib.ZoomOut();

          zoomOut.x=10;

          zoomOut.y=70;

          stage.addChild(zoomOut);

          addListeners();

          stage.update();

}


Viewing all articles
Browse latest Browse all 238792

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>