Skip to content

Commit ae25506

Browse files
author
nebulaliu
committed
feat: launch opera docs fixed.
1 parent 668989e commit ae25506

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

Design/LaunchOperaDocument.md

+13-13
Original file line numberDiff line numberDiff line change
@@ -327,16 +327,16 @@ video.setParams({
327327
});
328328

329329
// 播放 1.5s 时触发新的关键动作帧
330-
video.setEvent({
330+
video.setEvents({
331331
event: 'onPlayTimeAt',
332-
param: {
332+
params: {
333333
sec: 1.5,
334334
},
335335
bind: [ xxxx ] // 新的关键动作帧/故事线
336336
});
337337

338338
// 可以创建多个事件,互相独立
339-
video.setEvent({
339+
video.setEvents({
340340
event: 'onPlayTimeAt',
341341
...
342342
});
@@ -433,16 +433,16 @@ audio.setParams({
433433
});
434434

435435
// 播放 1.5s 时触发新的关键动作帧
436-
audio.setEvent({
436+
audio.setEvents({
437437
event: 'onPlayTimeAt',
438-
param: {
438+
params: {
439439
sec: 1.5,
440440
},
441441
bind: [ xxxx ] // 新的关键动作帧/故事线
442442
});
443443

444444
// 可以创建多个事件,互相独立
445-
audio.setEvent({
445+
audio.setEvents({
446446
event: 'onPlayTimeAt',
447447
...
448448
})
@@ -522,7 +522,7 @@ image.setParams({
522522
});
523523

524524
// 点击事件
525-
image.setEvent({
525+
image.setEvents({
526526
event: 'onClick',
527527
bind: [ ... ],
528528
keep: true, // 事件始终有效
@@ -567,7 +567,7 @@ rect.setParams({
567567
});
568568

569569
// 点击事件
570-
rect.setEvent({
570+
rect.setEvents({
571571
event: 'onClick',
572572
bind: [ ... ],
573573
})
@@ -656,7 +656,7 @@ const delay1000 = operaData.createFrame(FrameType.setTimeout, {
656656
timeout: 1000, // 1000ms
657657
});
658658

659-
delay1000.setEvent({
659+
delay1000.setEvents({
660660
event: 'onEnded',
661661
bind: [ ... ] // 1000ms 后执行的关键动作帧/故事线
662662
});
@@ -730,12 +730,12 @@ const goonButtonAnimationFadeIn = operaData.createFrame(
730730
);
731731

732732
// 需要两个 Animation 结束后互相调用,即 淡入->结束->淡出->结束->... 循环之
733-
goonButtonAnimationFadeOut.setEvent({
733+
goonButtonAnimationFadeOut.setEvents({
734734
event: 'onEnded',
735735
bind: goonButtonAnimationFadeIn,
736736
keep: true, // keep = true 很关键,因为该事件将被反复执行
737737
});
738-
goonButtonAnimationFadeIn.setEvent({
738+
goonButtonAnimationFadeIn.setEvents({
739739
event: 'onEnded',
740740
bind: goonButtonAnimationFadeOut,
741741
keep: true,
@@ -856,15 +856,15 @@ const report_1002 = operaData.createFrame(FrameType.report, {
856856
});
857857

858858
// 合理的位置进行上报
859-
video0.setEvent({
859+
video0.setEvents({
860860
event: 'onEnded',
861861
bind: [ report_1001 ],
862862
});
863863

864864
...
865865

866866
// 合理的位置进行上报
867-
video1.setEvent({
867+
video1.setEvents({
868868
event: 'onEnded',
869869
bind: [ report_1002 ],
870870
});

0 commit comments

Comments
 (0)