The “-swf-lib” argument in Haxe only works for the Flash target
BUT there is an OpenFL-compatible “swf” library that does work for HTML5, it does not currently support SWC, but does support the SWF inside, if you extract it (or just use the SWF that the Flash editor also produces).
There are a few samples that work with the SWF library:
The HTML5 SWF support does not support animation, yet, but it wouldn’t be terribly hard to add – the focus (on my end, at least) has just been more on getting the accuracy up, so you can use it for layouts. If you need animation today, using a spritesheet exporter might work