Email or username:

Password:

Forgot your password?
Gregory

Today's cursed idea: a converter from SWF to Android animated vector drawable

3 comments
iliazeus

@grishka aren't SWF's vector graphics and animations basically bytecode for their VM? Would probably be simpler to use something more "imperative", like a Canvas.

Or just render it frame-by-frame with skia or cairo or whatever, getting an SVG, then convert that to VectorDrawable XMLs.

Gregory

@iliazeus nope, the graphics (frames, MovieClips, buttons, etc) are separate from scripting. You *can* draw programmatically from ActionScript, but things you draw in the editor are represented more like SVG or Lottie.

I haven't read the format spec, but if you need proof, look at the failure mode of Ruffle when it encounters something unimplemented. Still draws the frame, just doesn't react to anything and gets angry in logs.

Go Up