BBGamelib.flash.imp.DefineMovie.parse C# (CSharp) Method

parse() protected method

protected parse ( byte data, Cursor cursor ) : void
data byte
cursor Cursor
return void
		protected override void parse(byte[] data, Cursor cursor){
			base.parse (data, cursor);
			_maxDepth = Utils.ReadInt32 (data, cursor);

			int framesCount = Utils.ReadInt32 (data, cursor); 
			_label_indexs = new Dictionary<string, int> (framesCount/4);
			_frames = new FrameObject[framesCount];
			for(int i = 0; i<framesCount; i++){
				FrameObject frame = new FrameObject(i, data, cursor);
				_frames[i] = frame;

				if(frame.label!=null)
					_label_indexs[frame.label] = i;
			}
		}