Commit c5a01b98 authored by Edwise's avatar Edwise 🍷

2222

parent c0564122
...@@ -1146,14 +1146,16 @@ Page({ ...@@ -1146,14 +1146,16 @@ Page({
//stage初始化 //stage初始化
let addy = 50; let addy = 50;
let step = this.data.step; let step = this.data.step;
var con = stage.addChild(new FYGE.Container())
con.y=stage.viewRect.y;
stage.addEventListener(FYGE.Event.INIT_STAGE, () => { stage.addEventListener(FYGE.Event.INIT_STAGE, () => {
SvgaParser.loadSvga( SvgaParser.loadSvga(
paple1, paple1,
(v) => { (v) => {
var mv = stage.addChild(new FYGE.MovieClip(v)); var mv = con.addChild(new FYGE.MovieClip(v));
mv.x = 383; mv.x = 383;
// mv.y = 390; // mv.y = 390;
mv.y = 465; mv.y = 395;
// console.log("svgmv", mv) // console.log("svgmv", mv)
paples[0] = mv; paples[0] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
...@@ -1168,10 +1170,10 @@ Page({ ...@@ -1168,10 +1170,10 @@ Page({
SvgaParser.loadSvga( SvgaParser.loadSvga(
paple2, paple2,
(v) => { (v) => {
var mv = stage.addChild(new FYGE.MovieClip(v)); var mv = con.addChild(new FYGE.MovieClip(v));
mv.x = 83; mv.x = 83;
// mv.y = 420; // mv.y = 420;
mv.y = 495; mv.y = 425;
// console.log("svgmv", mv); // console.log("svgmv", mv);
paples[1] = mv; paples[1] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
...@@ -1188,10 +1190,10 @@ Page({ ...@@ -1188,10 +1190,10 @@ Page({
SvgaParser.loadSvga( SvgaParser.loadSvga(
paple3, paple3,
(v) => { (v) => {
var mv = stage.addChild(new FYGE.MovieClip(v)); var mv = con.addChild(new FYGE.MovieClip(v));
mv.x = 232; mv.x = 232;
// mv.y = 510; // mv.y = 510;
mv.y = 585; mv.y = 515;
// console.log("svgmv", mv) // console.log("svgmv", mv)
paples[2] = mv; paples[2] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
...@@ -1208,10 +1210,10 @@ Page({ ...@@ -1208,10 +1210,10 @@ Page({
SvgaParser.loadSvga( SvgaParser.loadSvga(
paple4, paple4,
(v) => { (v) => {
var mv = stage.addChild(new FYGE.MovieClip(v)); var mv = con.addChild(new FYGE.MovieClip(v));
mv.x = 420; mv.x = 420;
// mv.y = 560; // mv.y = 560;
mv.y = 635; mv.y = 565;
paples[3] = mv; paples[3] = mv;
mv.gotoAndStop(1); mv.gotoAndStop(1);
mv.addEventListener(FYGE.Event.END_FRAME, () => { mv.addEventListener(FYGE.Event.END_FRAME, () => {
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment