0

问题

我正在使用 Adob​​e Animate CC(替换 Adob​​e Edge Animate)构建 HTML5 横幅。

我必须集成通过以下 URL 调用的外部 GIF:“ https://widgets.mobilenorth.eu/widgets/counter/0574PromoKidsFR ”。

它应该在动画中的特定时刻开始和结束。

GIF 大小为 230(w)x83(h)

到目前为止我做了什么:

我创建了一个名为“counter”的电影符号,并从名为“placeholder.gif”的库中放置了一个 GIF。

我的想法是在 .js 文件中添加代码以更改在原始代码中从库中调用的“placeholder.gif”的 URL。

欢迎任何其他建议。

Adobe Animate CC 生成的 .js 文件

(function (lib, img, cjs, ss) {

var p; // shortcut to reference prototypes

// library properties:
lib.properties = {
    width: 320,
    height: 250,
    fps: 24,
    color: "#FFFFFF",
    manifest: [
        {src:"images/placeholder.png?1466506297354", id:"placeholder"}
    ]
};



// symbols:



(lib.placeholder = function() {
    this.initialize(img.placeholder);
}).prototype = p = new cjs.Bitmap();
p.nominalBounds = new cjs.Rectangle(0,0,230,83);


(lib.counter = function(mode,startPosition,loop) {
    this.initialize(mode,startPosition,loop,{});

    // Layer 1
    this.instance = new lib.placeholder();

    this.timeline.addTween(cjs.Tween.get(this.instance).wait(1));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = new cjs.Rectangle(0,0,230,83);


// stage content:
(lib.flawithcounteras3_Canvas = function(mode,startPosition,loop) {
    this.initialize(mode,startPosition,loop,{});

    // timeline functions:
    this.frame_24 = function() {
        this.stop();
    }

    // actions tween:
    this.timeline.addTween(cjs.Tween.get(this).wait(24).call(this.frame_24).wait(1));

    // Layer 5
    this.instance = new lib.counter();
    this.instance.setTransform(44,79);
    this.instance._off = true;

    this.timeline.addTween(cjs.Tween.get(this.instance).wait(9).to({_off:false},0).wait(16));

}).prototype = p = new cjs.MovieClip();
p.nominalBounds = null;

})(lib = lib||{}, images = images||{}, createjs = createjs||{}, ss = ss||{});
var lib, images, createjs, ss;

知道如何将“placeholder.gif”的 URL 从库更改为由 URL“ https://widgets.mobilenorth.eu/widgets/counter/0574PromoKidsFR ”生成的 gif 吗?

先感谢您!

4

0 回答 0