Is AssetLibrary.getMovieClip deprecated?

Hi, I’m just noticing this:

public function getMovieClip (id:String):MovieClip {
		
	return null;
		
}

Just wondering if that is intentional; should I be using getBytes instead?

I am guessing that some macro magic is happening, since I am currently using getMovieClip with .bundle files successfully. :slight_smile:

Use variable = Assets.getMovieClip(“LibraryName:SymbolName”);
http://www.openfl.org/learn/haxelib/tutorials/using-swf-assets/#creating-swf-content
Unless you mean to do something other than that?

1 Like

Thanks; I was commenting about the function here: https://github.com/openfl/openfl/blob/cfbbbe8d5b23a3695768ff4207250a2a90ce5219/src/openfl/utils/AssetLibrary.hx#L163

OpenFL AssetLibrary does not implement getMovieClip, but the SWF and SWFLite libraries (which extend it) do provide support for it

Thanks, I figured there must be something I was missing.