【发布时间】:2013-07-18 06:02:02
【问题描述】:
我正在使用 Adobe Edge Animate,我希望调用 sym.playReverse();或 sym.play(1000);在屏幕上的 sym.$(“sam”) 上,通过使用 javascript 引导来调整大小。你能帮忙吗?
【问题讨论】:
标签: animation adobe-edge
我正在使用 Adobe Edge Animate,我希望调用 sym.playReverse();或 sym.play(1000);在屏幕上的 sym.$(“sam”) 上,通过使用 javascript 引导来调整大小。你能帮忙吗?
【问题讨论】:
标签: animation adobe-edge
您的问题有些混乱。您想在舞台上的符号上调用 sym.playReverse() 吗?还是舞台里面的符号“sam”?
假设您要在舞台内名为“sam”的符号上调用 playReverse()。
假设您的合成名称是 EDGE-12345678。 Javascript代码:
$(window).resize(function() {
// Replace with your composition name. You read it in the proerties of the Stage.
var composition = AdobeEdge.getComposition("EDGE-12345678");
var stage = composition.getStage();
// Get the sam symbol, child of stage.
var symbolSam = stage.getSymbol("sam");
symbolSam.playReverse();
});
【讨论】: