Is AssetLibrary.getMovieClip deprecated?


#1

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?


#2

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


#3

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?


#4

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


#5

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


#6

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