Fixed a bug in MovieClipEntity
Created a EntityFactory class.