Could not find MovieClip asset in HTML5 target

My code works well in flash:

presenter = Assets.getMovieClip ("library:gxLed");

but targeting HTML5, I’ve got this error:

[openfl.Assets] There is no MovieClip asset with an ID of "library:gxLed"

I am declaring two libraries as:

<haxelib name="swf"  />
<library path="assets/led.swf" preload="true" generate="true"/>
<library path="assets/library.swf" preload="true" generate="true"/>
<assets path="assets" rename="assets"  />

The movieclip I am trying to get is in led.swf which can found successfully in flash target.

Any idea?

Try Assets.getMovieClip ("led:gxLed") and see if that works

Thanks! it worked :smiley: