movie.version = configuration.getTargetPlayerMajorVersion();
assert movie.version >= 9;
movie.size = new Rect(100 * 20, 100 * 20);
movie.framerate = 12;
Frame frame = new Frame();
movie.frames = new ArrayList<Frame>();
movie.frames.add(frame);
for (Iterator<Entry<String, AssetInfo>> i = u.getAssets().iterator(); i.hasNext();)
{
Entry<String, AssetInfo> entry = i.next();
String className = entry.getKey();
AssetInfo assetInfo = entry.getValue();
writeU32(out, addString(pool, className));
if (assetInfo.getPath() != null)
{
writeU32(out, addString(pool, assetInfo.getPath().getName()));
}
else
{
writeU32(out, addString(pool, ""));
}
writeLong(out, assetInfo.getCreationTime());
DefineTag asset = assetInfo.getDefineTag();
frame.addSymbolClass(className, asset);
if (asset.name != null)
{
frame.addExport(asset);
}
}
TagEncoder handler = new TagEncoder();
MovieEncoder encoder = new MovieEncoder(handler);