【问题标题】:Accessing Adobe Edge Animate instance through jQuery通过 jQuery 访问 Adob​​e Edge Animate 实例
【发布时间】:2013-03-06 02:16:03
【问题描述】:

我在这里尝试在 Edge 动画之外做两件事。

场景 3 个男孩处于闲置状态。

动作

  • 点击任意一个男孩。
  • 将“张开”的嘴巴 PNG 替换为“闭合的”嘴巴 PNG。

我试图在我的 HTML 页面中使用 jQuery 绑定每个字符

$(this).on('click', function (){ 
   //Close the mouth
});

正在使用的代码来自文档(其中对如何通过 jQuery 访问动画实例的描述有限)。

var comp = AdobeEdge.getComposition("act0_introduction");
var stage = comp.getStage();
console.log("Stage: "+stage);

通过 Chrome 收到的错误是: Uncaught TypeError: Object #<Object> has no method 'getComposition'

【问题讨论】:

    标签: jquery jquery-animate adobe-edge


    【解决方案1】:

    尝试使用jQuery.noConflict

     $.noConflict();
    jQuery(document).ready(function($) {
    // Code that uses jQuery's $ can follow here.
    });
    // Code that uses other library's $ can follow here.
    

    【讨论】:

    • 遗憾的是它不起作用,我将我的脚本减少到最低限度并且错误仍然出现。 pastebin.com/T8PWtApc
    猜你喜欢
    • 2013-07-04
    • 1970-01-01
    • 2014-12-16
    • 1970-01-01
    • 1970-01-01
    • 2017-04-01
    • 2015-11-24
    • 2014-04-09
    • 1970-01-01
    相关资源
    最近更新 更多