- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
在 Animate CC '15 中完成动画并发布后,尝试在浏览器中加载 Canvas 时, Canvas 仅显示舞台背景颜色。我尝试了一切,从删除元素和更改设置到将 Canvas 中的所有图像转换为符号,但都无济于事。
Canvas 上共有 8 张图像。 7 个 png 文件和 1 个 jpeg。我从输出日志中得到的唯一信息是:
WARNINGS:
** 7 Bitmaps packed successfully into 1 spritesheet(s).
Frame numbers in EaselJS start at 0 instead of 1. For example, this affects gotoAndStop and gotoAndPlay calls. (6)
(function (lib, img, cjs, ss) {
var p; // shortcut to reference prototypes
lib.webFontTxtFilters = {};
// library properties:
lib.properties = {
width: 1300,
height: 1032,
fps: 24,
color: "#00CCFF",
webfonts: {},
manifest: [
{src:"http://www.mrhoward.net/canvas/img/bg.jpg", id:"bg"}
]
};
lib.webfontAvailable = function(family) {
lib.properties.webfonts[family] = true;
var txtFilters = lib.webFontTxtFilters && lib.webFontTxtFilters[family] || [];
for(var f = 0; f < txtFilters.length; ++f) {
txtFilters[f].updateCache();
}
};
// symbols:
(lib.bg = function() {
this.initialize(img.bg);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,1920,1080);
(lib.cloud1 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(0);
}).prototype = p = new cjs.Sprite();
(lib.cloud2 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(1);
}).prototype = p = new cjs.Sprite();
(lib.cloud3 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(2);
}).prototype = p = new cjs.Sprite();
(lib.cloud4 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(3);
}).prototype = p = new cjs.Sprite();
(lib.cloud5 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(4);
}).prototype = p = new cjs.Sprite();
(lib.cloud6 = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(5);
}).prototype = p = new cjs.Sprite();
(lib.skyline = function() {
this.spriteSheet = ss["canvas_atlas_P_"];
this.gotoAndStop(6);
}).prototype = p = new cjs.Sprite();
(lib.Tween10 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud2();
this.instance.setTransform(-46,-21.5,0.697,0.519);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-46,-21.5,92,43.1);
(lib.Tween9 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud2();
this.instance.setTransform(-46,-21.5,0.697,0.519);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-46,-21.5,92,43.1);
(lib.Tween8 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud3();
this.instance.setTransform(-135.5,-41.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-135.5,-41.5,271,83);
(lib.Tween7 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud3();
this.instance.setTransform(-135.5,-41.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-135.5,-41.5,271,83);
(lib.Tween6 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud6();
this.instance.setTransform(-30.5,-20.5,0.473,0.432);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-30.5,-20.5,61,41);
(lib.Tween5 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud6();
this.instance.setTransform(-30.5,-20.5,0.473,0.432);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-30.5,-20.5,61,41);
(lib.Tween4 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud4();
this.instance.setTransform(-42,-24.5,0.636,0.59);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-42,-24.5,84,49);
(lib.Tween3 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud4();
this.instance.setTransform(-42,-24.5,0.636,0.59);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-42,-24.5,84,49);
(lib.Tween2 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud5();
this.instance.setTransform(-105,-47.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-105,-47.5,210,95);
(lib.Tween1 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud5();
this.instance.setTransform(-105,-47.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-105,-47.5,210,95);
(lib.Symbol7 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.bg();
this.instance.setTransform(-649.9,-516,0.677,0.956);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-649.9,-516,1300,1032);
(lib.Skyline = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.skyline();
this.instance.setTransform(-650,-516);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-650,-516,1300,1032);
(lib.Cloud1 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.cloud1();
this.instance.setTransform(0,0,0.548,0.636);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(0,0,320,105);
(lib.Tween11 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween6("synched",0);
this.instance.setTransform(-669.7,0);
this.shape = new cjs.Shape();
this.shape.graphics.f("#0066CC").s().p("Ah0AsQgEgKAOgOIAOgLIACgBIgBgBQgEgHAIgIQAFgFAPAAIAJAJQACAEABABQAJgBASgJQARgIAPgCIARgEIASgLQAMgKAQgFIAJgEIgBgBIAUACQANABAFAFQAEAEABAFQABAFgDAEIgIAHQgbAQgRAEQgJABgGACIgIAIQgIAIgSADQgRABgJACQgNADgcAOQgaANgQABQgRAAgFgLg");
this.shape.setTransform(688.4,15);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.shape},{t:this.instance}]}).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-700.2,-20.5,1400.5,41);
(lib.Symbol6 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween9("synched",0);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-46,-21.5,92,43.1);
(lib.Symbol5 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween7("synched",0);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-135.5,-41.5,271,83);
(lib.Symbol4 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween5("synched",0);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-30.5,-20.5,61,41);
(lib.Symbol3 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween3("synched",0);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-42,-24.5,84,49);
(lib.Symbol2 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Cloud1();
this.instance.setTransform(0.1,0,1,1,0,0,0,160,52.5);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-159.9,-52.5,320,105);
(lib.Symbol1 = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Layer 1
this.instance = new lib.Tween2("synched",0);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(-105,-47.5,210,95);
// stage content:
(lib.howardcanvas = function(mode,startPosition,loop) {
this.initialize(mode,startPosition,loop,{});
// Skyline
this.instance = new lib.Skyline("synched",0);
this.instance.setTransform(650,516);
this.timeline.addTween(cjs.Tween.get(this.instance).wait(850));
// Cloud 7
this.instance_1 = new lib.Symbol1("synched",0);
this.instance_1.setTransform(1133.4,124.5);
this.instance_2 = new lib.Tween1("synched",0);
this.instance_2.setTransform(1416.4,124.5);
this.instance_3 = new lib.Tween2("synched",0);
this.instance_3.setTransform(-105,124.5);
this.instance_3._off = true;
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_1}]}).to({state:[{t:this.instance_2}]},209).to({state:[]},1).to({state:[{t:this.instance_3}]},1).to({state:[{t:this.instance_3}]},638).wait(1));
this.timeline.addTween(cjs.Tween.get(this.instance_1).to({_off:true,x:1416.4},209).wait(641));
this.timeline.addTween(cjs.Tween.get(this.instance_3).wait(211).to({_off:false},0).to({x:1133.4},638).wait(1));
// Cloud 1
this.instance_4 = new lib.Symbol2("synched",0);
this.instance_4.setTransform(358,91);
this.instance_5 = new lib.Cloud1();
this.instance_5.setTransform(1460,91,1,1,0,0,0,160,52.5);
this.instance_5._off = true;
this.timeline.addTween(cjs.Tween.get(this.instance_4).to({_off:true,regX:160,regY:52.5,x:1460,mode:"independent"},420).wait(430));
this.timeline.addTween(cjs.Tween.get(this.instance_5).to({_off:false},420).to({_off:true},1).wait(1).to({_off:false,x:-159.9},0).to({x:358},427).wait(1));
// Cloud 5
this.instance_6 = new lib.Symbol3("synched",0);
this.instance_6.setTransform(996.4,268.5);
this.instance_7 = new lib.Tween4("synched",0);
this.instance_7.setTransform(1342,268.5);
this.instance_7._off = true;
this.instance_8 = new lib.Tween3("synched",0);
this.instance_8.setTransform(996.4,268.5);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_6}]}).to({state:[{t:this.instance_7}]},349).to({state:[]},1).to({state:[{t:this.instance_7}]},1).to({state:[{t:this.instance_8}]},498).wait(1));
this.timeline.addTween(cjs.Tween.get(this.instance_6).to({_off:true,x:1342},349).wait(501));
this.timeline.addTween(cjs.Tween.get(this.instance_7).to({_off:false},349).to({_off:true},1).wait(1).to({_off:false,x:-42},0).to({_off:true,x:996.4},498).wait(1));
// Cloud 4
this.instance_9 = new lib.Symbol4("synched",0);
this.instance_9.setTransform(828.7,82);
this.instance_10 = new lib.Tween6("synched",0);
this.instance_10.setTransform(1330.5,82);
this.instance_11 = new lib.Tween11("synched",0);
this.instance_11.setTransform(639.3,83.9);
this.instance_11._off = true;
this.instance_12 = new lib.Tween5("synched",0);
this.instance_12.setTransform(828.7,82);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_9}]}).to({state:[{t:this.instance_10}]},399).to({state:[]},1).to({state:[{t:this.instance_11}]},1).to({state:[{t:this.instance_12}]},448).wait(1));
this.timeline.addTween(cjs.Tween.get(this.instance_9).to({_off:true,x:1330.5},399).wait(451));
this.timeline.addTween(cjs.Tween.get(this.instance_11).wait(401).to({_off:false},0).to({_off:true,x:828.7,y:82},448).wait(1));
// Cloud 3
this.instance_13 = new lib.Symbol5("synched",0);
this.instance_13.setTransform(686.5,195.5);
this.instance_14 = new lib.Tween8("synched",0);
this.instance_14.setTransform(1435.5,195.5);
this.instance_14._off = true;
this.instance_15 = new lib.Tween7("synched",0);
this.instance_15.setTransform(686.5,195.5);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_13}]}).to({state:[{t:this.instance_14}]},415).to({state:[]},1).to({state:[{t:this.instance_14}]},1).to({state:[{t:this.instance_15}]},432).wait(1));
this.timeline.addTween(cjs.Tween.get(this.instance_13).to({_off:true,x:1435.5},415).wait(435));
this.timeline.addTween(cjs.Tween.get(this.instance_14).to({_off:false},415).to({_off:true},1).wait(1).to({_off:false,x:-135.5},0).to({_off:true,x:686.5},432).wait(1));
// Cloud 2
this.instance_16 = new lib.Symbol6("synched",0);
this.instance_16.setTransform(465,314.5);
this.instance_17 = new lib.Tween10("synched",0);
this.instance_17.setTransform(1346,314.5);
this.instance_17._off = true;
this.instance_18 = new lib.Tween9("synched",0);
this.instance_18.setTransform(465,314.5);
this.timeline.addTween(cjs.Tween.get({}).to({state:[{t:this.instance_16}]}).to({state:[{t:this.instance_17}]},629).to({state:[]},1).to({state:[{t:this.instance_17}]},1).to({state:[{t:this.instance_18}]},218).wait(1));
this.timeline.addTween(cjs.Tween.get(this.instance_16).to({_off:true,x:1346},629).wait(221));
this.timeline.addTween(cjs.Tween.get(this.instance_17).to({_off:false},629).to({_off:true},1).wait(1).to({_off:false,x:-46},0).to({_off:true,x:465},218).wait(1));
// background
this.instance_19 = new lib.Symbol7("synched",0);
this.instance_19.setTransform(650,516);
this.timeline.addTween(cjs.Tween.get(this.instance_19).wait(850));
}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(650,516,1300,1032);
})(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{});
var lib, images, createjs, ss;
<head>
<title>canvas</title>
<!-- write your code here -->
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
<script src="http://www.mrhoward.net/canvas/canvas.js"></script>
<script>
var canvas, stage, exportRoot;
function init() {
// --- write your JS code here ---
canvas = document.getElementById("canvas");
images = images||{};
ss = ss||{};
var loader = new createjs.LoadQueue(false);
loader.addEventListener("fileload", handleFileLoad);
loader.addEventListener("complete", handleComplete);
loader.loadFile({src:"http://www.mrhoward.net/canvas/img/canvas_atlas_P_.json", type:"spritesheet", id:"canvas_atlas_P_"}, true);
loader.loadManifest(lib.properties.manifest);
}
function handleFileLoad(evt) {
if (evt.item.type == "image") { images[evt.item.id] = evt.result; }
}
function handleComplete(evt) {
var queue = evt.target;
ss["canvas_atlas_P_"] = queue.getResult("canvas_atlas_P_");
exportRoot = new lib.howardcanvas();
stage = new createjs.Stage(canvas);
stage.addChild(exportRoot);
stage.update();
createjs.Ticker.setFPS(lib.properties.fps);
createjs.Ticker.addEventListener("tick", stage);
}
</script>
<!-- write your code here -->
</head>
<body onload="init();" style="background-color:#D4D4D4;margin:0px;">
<canvas id="canvas" width="1300" height="1032" style="background-color:#00CCFF"></canvas>
</body>
最佳答案
我相信我最近也经历过同样的事情,我的更多的是图像不显示,但动画是打开的。如果是这种情况,您可以尝试在纹理发布选项下重新检查质量和分辨率,然后再次发布。通常为 8 位 2.0 或 32 位 分辨率 3.O。让我知道是否有运气。
但是,我仍在试图弄清楚为什么输出/发布质量每次都在不断变化以及为什么需要不断重置。
关于javascript - 在 Adobe Animate CC 中发布后的空白 HTML5 Canvas,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38132704/
我是 Adobe InDesign Server 的新手,我很难找到一个好的厨房水槽应用程序。我从 SDK 获得的所有示例似乎都部分起作用。我想要做的就是从服务器端使用 InDesign 的母版页
关闭。这个问题不满足Stack Overflow guidelines .它目前不接受答案。 想改善这个问题吗?更新问题,使其成为 on-topic对于堆栈溢出。 6年前关闭。 Improve thi
我有一个带有完整设计页面的 xd adobe 链接。我想在 adobe xd windows 桌面应用程序中打开这些设计页面,但我不能。如何在 adobe xd windows 桌面应用程序中打开此链
activeDocument.fitArtboardToSelectedArt() 调用此命令时,AI 在 AI 5.1/6 32 位和 64 位版本上崩溃。我可以使用菜单中的命令。有没有人遇到过这个
activeDocument.fitArtboardToSelectedArt() 调用此命令时,AI 在 AI 5.1/6 32 位和 64 位版本上崩溃。我可以使用菜单中的命令。有没有人遇到过这个
如果可以,应该在哪里配置? 从文档中,所有提到的忽略文件都是关于从 SVN 提交 中排除 .vlt,但我们面临相反的问题 — 我们想排除来自 VLT 提交 的文件系统上的文件——例如.DS_Store
我正在 AdobeXD 中制作移动下拉菜单。 除了我的主页,我还有另外两个画板;菜单本身和一个按钮。 我想要做的就是触发菜单向下滑动,并将退出按钮覆盖在首先触发效果的按钮顶部。 它会覆盖退出按钮,
Javascript 的 setTimeout函数是window的一个方法目的。此对象在 ExtendScript 中不存在,因此不可用于为 Adobe InDesign 或 Illustrato
有人可能会争论它是否与摄影有关,但由于它与 DNG 格式有关,所以在这里问。 我正在尝试构建一个 Adobe DNG SDK,以便我能够将许多不同的相机原始格式转换为 *.dng 格式。 我为 h
我正在 Adobe CQ5.5 中开发一个自定义容器组件,我想要一个自定义消息作为占位符,而不是默认的“将组件或 Assets 拖到此处”。 到目前为止,我发现我必须添加 cq:emptyText
我想在导入 XML 时使用 Internet URL 将图像加载到 InDesign 模板中。 这可能吗?或者图片是否需要存储在本地机器上? 最佳答案 这可能吗?不需要。镜像需要存储在本地机器上吗?是
在 Adobe Edge Animate 中,如何获取 Symbol 的当前时间? 我混合使用 jQuery 和 Adobe Edge 代码来编程我的页面。我想检查一个符号的时间是否停留在第一
如果我将 adobe xd 文档放置在本地计算机上的任何位置。 示例:C:\doc\adobe-xd\brand\brand.xd 打开它并运行插件 是否可以检索 adobe xd 文档位置。 P.S
我正在使用 AEM 6.1 和 Maven 来管理依赖项。我可以看到 bundle com.adobe.granite.poi 版本 2.0.0 随 AEM 实例一起提供。但我似乎无法在 Adob
我正在使用 adobe labs magic selection 工具,但它要求用户进行 adobe 登录。有什么办法可以不让用户登录,但仍然使用 magic selection 工具?我听说过这个,
我们有 Adobe PDF writer,希望能够使用它而不是 ghostscript。 SaveAs() 函数是否锁定在 ghostscript 中,如果是,我该如何使用 adobe pdf w
我想知道 Adobe Experience Manager (AEM) 6.2/6.3 使用哪个版本的 Apache Sling?我在各种网站上进行了搜索,包括 Adobe 自己的文档,但似乎
还在努力探索动作剧本。有没有办法访问Android手机的接近感应器?想要使用传感器的输出关闭探测器。找到了里查多松/接近感应器(https://github.com/richardolsson/pro
我对 Day Cq5 还很陌生。我的对话框中有一个复选框,我想在用户选择或取消选择它时在我的 jsp 中检索它的 bool 值。请帮忙 最佳答案 如果要从组件的 JSP 中检索值,请执行以下操作: b
http://helpx.adobe.com/experience-manager/kb/HowToDefineComponentListDynamically.html 我在上面尝试过,但由于文章的
我是一名优秀的程序员,十分优秀!