BBGamelib.flash.imp.MovieImp.Play C# (CSharp) Method

Play() public method

public Play ( MovieCallback callback ) : void
callback MovieCallback
return void
		public override void Play(MovieCallback callback){
			if (callback == null) {
				Play();
				return;
			}
			if (_startFrame == _endFrame) {
				GotoFrame(_startFrame);
				callback(this);	
				return;
			}
			Stop ();
			
			GotoFrame (_startFrame);
			MovieImpAction action = new MovieImpAction (this, _startFrame, _endFrame);
			CCActionFiniteTime callbackAction = new CCCallBlock (delegate {
				callback(this);			
			});
			CCActionInterval seq  = CCSequence.Actions (action, callbackAction) as CCActionInterval;
			if (_loop) {
				_action = new CCRepeatForever (seq);
			} else {
				_action = seq;
			}
			_view.runAction (_action);
		}
		public override void Stop(){

Same methods

MovieImp::Play ( ) : void