Egret社区
2银子
用flash生成的是以下格式的:
{
"mc": {
        "1": {
                "frameRate":10,
                "labels": [
                ],
                "frames": [
                        {"res":"0","x":-252.64999999999998,"y":-288.65},
                        {"res":"1","x":-246.64999999999998,"y":-293.65},
                        {"res":"2","x":-267.65,"y":-292.65},
                        {"res":"3","x":-260.65,"y":-286.65},
                        {"res":"4","x":-251.64999999999998,"y":-284.65},
                        {"res":"5","x":-247.64999999999998,"y":-288.65},
                        {"res":"6","x":-256.65,"y":-289.65},
                        {"res":"7","x":-256.65,"y":-287.65}
                ]
        }
},
"res": {
        "0":{"x":0,"y":0,"w":501,"h":401},
        "1":{"x":501,"y":0,"w":501,"h":401},
        "2":{"x":0,"y":401,"w":501,"h":401},
        "3":{"x":501,"y":401,"w":501,"h":401},
        "4":{"x":0,"y":802,"w":501,"h":401},
        "5":{"x":501,"y":802,"w":501,"h":401},
        "6":{"x":0,"y":1203,"w":501,"h":401},
        "7":{"x":501,"y":1203,"w":501,"h":401}
}
}

如何转成"@mc":[10,[[0,0,1,1,2,2],...]]这种格式的?

分享到 :
0 人收藏

2 个回复

倒序浏览
yjtx  官方团队 | 2016-11-21 14:10:53
请问你说的这个格式是在哪里看到的?
yudi  初学乍练 | 2017-9-13 10:39:54
楼主解决了没有?
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

小黑屋|京网文[2014]0791-191号|京ICP证150115号|Egret社区 ( 京ICP备14025619号 )

Powered by Discuz! X3.4 © 2001-2019 Comsenz Inc.

返回顶部