Example #1
0
 public void Add(MovieEventHandlers handlers)
 {
     handlers.load.ForEach(h => load.Add(h));
     handlers.postLoad.ForEach(h => postLoad.Add(h));
     handlers.unload.ForEach(h => unload.Add(h));
     handlers.enterFrame.ForEach(h => enterFrame.Add(h));
     handlers.update.ForEach(h => update.Add(h));
     handlers.render.ForEach(h => render.Add(h));
 }
	public void Add(MovieEventHandlers handlers)
	{
		if (handlers == null)
			return;

		handlers.load.ForEach(h => load.Add(h));
		handlers.postLoad.ForEach(h => postLoad.Add(h));
		handlers.unload.ForEach(h => unload.Add(h));
		handlers.enterFrame.ForEach(h => enterFrame.Add(h));
		handlers.update.ForEach(h => update.Add(h));
		handlers.render.ForEach(h => render.Add(h));
		UpdateEmpty();
	}
Example #3
0
        public Movie AttachMovie(Movie movie, string attachName,
                                 int attachDepth          = -1, bool reorder = false,
                                 MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                 MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                 MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            DeleteAttachedMovie(movie.parent, movie, false);

            MovieEventHandlers handlers = new MovieEventHandlers();

            handlers.Add(load, postLoad, unload, enterFrame, update, render);
            movie.SetHandlers(handlers);

            movie.m_name = attachName;
            return(AttachMovieInternal(movie, attachName, attachDepth, reorder));
        }
Example #4
0
        public void ClearMovieEventHandler(int instId)
        {
            if (instId < 0 || instId >= m_instances.Length)
            {
                return;
            }

            MovieEventHandlers handlers = m_movieEventHandlers[instId];

            if (handlers == null)
            {
                return;
            }

            handlers.Clear();
        }
Example #5
0
        public int AddMovieEventHandler(string instanceName,
                                        MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                        MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                        MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));

            if (instId >= 0)
            {
                return(AddMovieEventHandler(
                           instId, load, postLoad, unload, enterFrame, update, render));
            }

            if (!instanceName.Contains("."))
            {
                return(-1);
            }

            if (m_movieEventHandlersByFullName == null)
            {
                m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();
            }

            MovieEventHandlers handlers;

            if (!m_movieEventHandlersByFullName.TryGetValue(
                    instanceName, out handlers))
            {
                handlers = new MovieEventHandlers();
                m_movieEventHandlersByFullName[instanceName] = handlers;
            }

            int id = GetEventOffset();

            handlers.Add(id, load, postLoad, unload, enterFrame, update, render);

            Movie movie = SearchMovieInstance(instanceName);

            if (movie != null)
            {
                movie.SetHandlers(handlers);
            }
            return(id);
        }
Example #6
0
        public void RemoveMovieEventHandler(int instId,
                                            MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                            MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                            MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            if (instId < 0 || instId >= m_instances.Length)
            {
                return;
            }

            MovieEventHandlers handlers = m_movieEventHandlers[instId];

            if (handlers == null)
            {
                return;
            }

            handlers.Remove(load, postLoad, unload, enterFrame, update, render);
        }
Example #7
0
	public void Add(MovieEventHandlers handlers)
	{
		if (handlers == null)
			return;

		foreach (var h in handlers.load)
			load.Add(h.Key, h.Value);
		foreach (var h in handlers.postLoad)
			postLoad.Add(h.Key, h.Value);
		foreach (var h in handlers.unload)
			unload.Add(h.Key, h.Value);
		foreach (var h in handlers.enterFrame)
			enterFrame.Add(h.Key, h.Value);
		foreach (var h in handlers.update)
			update.Add(h.Key, h.Value);
		foreach (var h in handlers.render)
			render.Add(h.Key, h.Value);
		UpdateEmpty();
	}
Example #8
0
        public Movie(LWF lwf, Movie parent, int objId,
                     int instId, int matrixId = 0, int colorTransformId           = 0,
                     bool attached            = false, MovieEventHandlers handler = null)
            : base(lwf, parent,
                   attached ? Type.ATTACHEDMOVIE : Type.MOVIE, objId, instId)
        {
            m_data                 = lwf.data.movies[objId];
            m_matrixId             = matrixId;
            m_colorTransformId     = colorTransformId;
            m_totalFrames          = m_data.frames;
            m_instanceHead         = null;
            m_instanceTail         = null;
            m_currentFrameInternal = -1;
            m_execedFrame          = -1;
            m_animationPlayedFrame = -1;
            m_postLoaded           = false;
            m_active               = true;
            m_visible              = true;
            m_playing              = true;
            m_jumped               = false;
            m_overriding           = false;

            m_property = new Property(lwf);

            m_matrix0         = new Matrix();
            m_matrix1         = new Matrix();
            m_colorTransform0 = new ColorTransform();
            m_colorTransform1 = new ColorTransform();

            m_displayList = new Object[m_data.depths];

            PlayAnimation(ClipEvent.LOAD);

            m_handler = (handler != null ?
                         handler : lwf.GetMovieEventHandlers(this));
            if (m_handler != null)
            {
                m_handler.Call(EventType.LOAD, this);
            }

            lwf.ExecMovieCommand();
        }
Example #9
0
        public void AddMovieEventHandler(string instanceName,
                                         MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                         MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                         MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));

            if (instId >= 0)
            {
                AddMovieEventHandler(
                    instId, load, postLoad, unload, enterFrame, update, render);
                return;
            }

            if (!instanceName.Contains("."))
            {
                return;
            }

            if (m_movieEventHandlersByFullName == null)
            {
                m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();
            }

            MovieEventHandlers handlers =
                m_movieEventHandlersByFullName[instanceName];

            if (handlers == null)
            {
                handlers = new MovieEventHandlers();
                m_movieEventHandlersByFullName[instanceName] = handlers;
            }

            Movie movie = SearchMovieInstance(instId);

            if (movie != null)
            {
                movie.SetHandlers(handlers);
            }

            handlers.Add(load, postLoad, unload, enterFrame, update, render);
        }
Example #10
0
        public Movie AttachMovie(string linkageName, string attachName,
                                 int attachDepth          = -1, bool reorder = false,
                                 MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                 MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                 MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            int movieId = m_lwf.SearchMovieLinkage(m_lwf.GetStringId(linkageName));

            if (movieId == -1)
            {
                return(null);
            }

            MovieEventHandlers handlers = new MovieEventHandlers();

            handlers.Add(load, postLoad, unload, enterFrame, update, render);
            Movie movie = new Movie(m_lwf, this, movieId, -1, 0, 0, true, handlers);

            return(AttachMovieInternal(movie, attachName, attachDepth, reorder));
        }
Example #11
0
        public void ClearMovieEventHandler(int instId)
        {
            if (instId < 0 || instId >= m_instances.Length)
            {
                return;
            }

            MovieEventHandlers handlers = m_movieEventHandlers[instId];

            if (handlers == null)
            {
                return;
            }

            handlers.Clear();
            Movie movie = SearchMovieInstanceByInstanceId(instId);

            if (movie != null)
            {
                movie.SetHandlers(handlers);
            }
        }
Example #12
0
        public void SetMovieEventHandler(string instanceName,
                                         MovieEventHandler load   = null, MovieEventHandler postLoad   = null,
                                         MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
                                         MovieEventHandler update = null, MovieEventHandler render     = null)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));

            if (instId >= 0)
            {
                SetMovieEventHandler(
                    instId, load, postLoad, unload, enterFrame, update, render);
                return;
            }

            if (!instanceName.Contains("."))
            {
                return;
            }

            if (m_movieEventHandlersByFullName == null)
            {
                m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();
            }

            if (load != null || postLoad != null || unload != null ||
                enterFrame != null || update != null || render != null)
            {
                m_movieEventHandlersByFullName[instanceName] =
                    new MovieEventHandlers(
                        load, postLoad, unload, enterFrame, update, render);
            }
            else
            {
                m_movieEventHandlersByFullName.Remove(instanceName);
            }
        }
Example #13
0
        public void AddMovieEventHandler(string instanceName,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));
            if (instId >= 0) {
            AddMovieEventHandler(
                instId, load, postLoad, unload, enterFrame, update, render);
            return;
            }

            if (!instanceName.Contains("."))
            return;

            if (m_movieEventHandlersByFullName == null)
            m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();

            MovieEventHandlers handlers =
            m_movieEventHandlersByFullName[instanceName];
            if (handlers == null) {
            handlers = new MovieEventHandlers();
            m_movieEventHandlersByFullName[instanceName] = handlers;
            }

            Movie movie = SearchMovieInstance(instId);
            if (movie != null)
            movie.SetHandlers(handlers);

            handlers.Add(load, postLoad, unload, enterFrame, update, render);
        }
Example #14
0
        public void SetMovieEventHandler(int instId,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
        {
            if (instId < 0 || instId >= m_instances.Length)
            return;

            MovieEventHandlers handlers;
            if (load != null || postLoad != null || unload != null ||
                enterFrame != null || update != null || render != null) {
            handlers = new MovieEventHandlers(
                load, postLoad, unload, enterFrame, update, render);
            } else {
            handlers = null;
            }
            m_movieEventHandlers[instId] = handlers;

            if (instId == m_rootMovie.instanceId)
            m_rootMovie.SetHandlers(handlers);
        }
Example #15
0
        public void SetMovieEventHandler(string instanceName,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));
            if (instId >= 0) {
            SetMovieEventHandler(
                instId, load, postLoad, unload, enterFrame, update, render);
            return;
            }

            if (!instanceName.Contains("."))
            return;

            if (m_movieEventHandlersByFullName == null)
            m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();

            if (load != null || postLoad != null || unload != null ||
                enterFrame != null || update != null || render != null) {
            m_movieEventHandlersByFullName[instanceName] =
                new MovieEventHandlers(
                    load, postLoad, unload, enterFrame, update, render);
            } else {
            m_movieEventHandlersByFullName.Remove(instanceName);
            }
        }
Example #16
0
        public Movie AttachMovie(string linkageName, string attachName,
		int attachDepth = -1, bool reorder = false,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
        {
            int movieId = m_lwf.SearchMovieLinkage(m_lwf.GetStringId(linkageName));
            if (movieId == -1)
            return null;

            MovieEventHandlers handlers = new MovieEventHandlers();
            handlers.Add(load, postLoad, unload, enterFrame, update, render);
            Movie movie = new Movie(m_lwf, this, movieId, -1, 0, 0, true, handlers);
            if (m_attachMovieExeced)
            movie.Exec();
            if (m_attachMoviePostExeced)
            movie.PostExec(true);

            return AttachMovieInternal(movie, attachName, attachDepth, reorder);
        }
Example #17
0
        public Movie AttachMovie(Movie movie, string attachName,
		int attachDepth = -1, bool reorder = false,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
        {
            DeleteAttachedMovie(movie.parent, movie, false);

            MovieEventHandlers handlers = new MovieEventHandlers();
            handlers.Add(load, postLoad, unload, enterFrame, update, render);
            movie.SetHandlers(handlers);

            return AttachMovieInternal(movie, attachName, attachDepth, reorder);
        }
Example #18
0
        public void ClearMovieEventHandler(
		int instId, MovieEventHandlers.Type type)
        {
            if (instId < 0 || instId >= m_instances.Length)
            return;

            MovieEventHandlers handlers = m_movieEventHandlers[instId];
            if (handlers == null)
            return;

            handlers.Clear(type);
        }
Example #19
0
 public void SetHandlers(MovieEventHandlers handler)
 {
     m_handler.Clear();
     m_handler.Add(handler);
 }
Example #20
0
	public int AddMovieEventHandler(int instId,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
	{
		if (instId < 0 || instId >= m_instances.Length)
			return -1;

		MovieEventHandlers handlers = m_movieEventHandlers[instId];
		if (handlers == null) {
			handlers = new MovieEventHandlers();
			m_movieEventHandlers[instId] = handlers;
		}

		int id = GetEventOffset();
		handlers.Add(id, load, postLoad, unload, enterFrame, update, render);

		Movie movie = SearchMovieInstanceByInstanceId(instId);
		if (movie != null)
			movie.SetHandlers(handlers);
		return id;
	}
Example #21
0
	public int AddMovieEventHandler(string instanceName,
		MovieEventHandler load = null, MovieEventHandler postLoad = null,
		MovieEventHandler unload = null, MovieEventHandler enterFrame = null,
		MovieEventHandler update = null, MovieEventHandler render = null)
	{
		int instId = SearchInstanceId(GetStringId(instanceName));
		if (instId >= 0) {
			return AddMovieEventHandler(
				instId, load, postLoad, unload, enterFrame, update, render);
		}

		if (!instanceName.Contains("."))
			return -1;

		if (m_movieEventHandlersByFullName == null)
			m_movieEventHandlersByFullName = new MovieEventHandlersDictionary();

		MovieEventHandlers handlers;
		if (!m_movieEventHandlersByFullName.TryGetValue(
				instanceName, out handlers)) {
			handlers = new MovieEventHandlers();
			m_movieEventHandlersByFullName[instanceName] = handlers;
		}

		int id = GetEventOffset();
		handlers.Add(id, load, postLoad, unload, enterFrame, update, render);

		Movie movie = SearchMovieInstance(instanceName);
		if (movie != null)
			movie.SetHandlers(handlers);
		return id;
	}
Example #22
0
 public void SetHandlers(MovieEventHandlers handler)
 {
     m_handler.Clear();
     m_handler.Add(handler);
 }
Example #23
0
        public void ClearMovieEventHandler(
		string instanceName, MovieEventHandlers.Type type)
        {
            int instId = SearchInstanceId(GetStringId(instanceName));
            if (instId >= 0) {
            ClearMovieEventHandler(instId, type);
            return;
            }

            if (m_movieEventHandlersByFullName == null)
            return;

            MovieEventHandlers handlers =
            m_movieEventHandlersByFullName[instanceName];
            if (handlers == null)
            return;

            handlers.Clear(type);
        }
Example #24
0
 public void SetHandlers(MovieEventHandlers handler)
 {
     m_handler = handler;
 }
Example #25
0
        public Movie(LWF lwf, Movie parent, int objId,
			int instId, int matrixId = 0, int colorTransformId = 0,
			bool attached = false, MovieEventHandlers handler = null)
            : base(lwf, parent,
			attached ? Type.ATTACHEDMOVIE : Type.MOVIE, objId, instId)
        {
            m_data = lwf.data.movies[objId];
            m_matrixId = matrixId;
            m_colorTransformId = colorTransformId;
            m_totalFrames = m_data.frames;
            m_instanceHead = null;
            m_instanceTail = null;
            m_currentFrameInternal = -1;
            m_execedFrame = -1;
            m_animationPlayedFrame = -1;
            m_lastControlOffset = -1;
            m_lastControls = -1;
            m_lastHasButton = false;
            m_lastControlAnimationOffset = -1;
            m_skipped = false;
            m_postLoaded = false;
            m_active = true;
            m_visible = true;
            m_playing = true;
            m_jumped = false;
            m_overriding = false;
            m_attachMovieExeced = false;
            m_attachMoviePostExeced = false;
            m_movieExecCount = -1;
            m_postExecCount = -1;

            m_property = new Property(lwf);

            m_matrix0 = new Matrix();
            m_matrix1 = new Matrix();
            m_colorTransform0 = new ColorTransform();
            m_colorTransform1 = new ColorTransform();

            m_displayList = new Object[m_data.depths];

            PlayAnimation(ClipEvent.LOAD);

            m_eventHandlers = new EventHandlerDictionary();
            m_handler.Add(lwf.GetMovieEventHandlers(this));
            m_handler.Add(handler);
            if (m_handler != null)
            m_handler.Call(EventType.LOAD, this);

            lwf.ExecMovieCommand();
        }
Example #26
0
        public Movie(LWF lwf, Movie parent, int objId, int instId, int matrixId = 0,
                     int colorTransformId       = 0, bool attached = false,
                     MovieEventHandlers handler = null, string n   = null)
            : base(lwf, parent,
                   attached ? Type.ATTACHEDMOVIE : Type.MOVIE, objId, instId)
        {
            m_data             = lwf.data.movies[objId];
            m_matrixId         = matrixId;
            m_colorTransformId = colorTransformId;
            m_totalFrames      = m_data.frames;

            if (!String.IsNullOrEmpty(n))
            {
                m_name = n;
            }
            m_instanceHead               = null;
            m_instanceTail               = null;
            m_currentFrameInternal       = -1;
            m_execedFrame                = -1;
            m_animationPlayedFrame       = -1;
            m_lastControlOffset          = -1;
            m_lastControls               = -1;
            m_lastHasButton              = false;
            m_lastControlAnimationOffset = -1;
            m_skipped               = false;
            m_postLoaded            = false;
            m_active                = true;
            m_visible               = true;
            m_playing               = true;
            m_jumped                = false;
            m_overriding            = false;
            m_attachMovieExeced     = false;
            m_attachMoviePostExeced = false;
            m_movieExecCount        = -1;
            m_postExecCount         = -1;
            m_blendMode             = (int)Constant.BLEND_MODE_NORMAL;

            m_property = new Property(lwf);

            m_matrix0         = new Matrix();
            m_matrix1         = new Matrix();
            m_colorTransform0 = new ColorTransform();
            m_colorTransform1 = new ColorTransform();

            m_displayList = new Object[m_data.depths];

#if LWF_USE_LUA
            m_isRoot = objId == lwf.data.header.rootMovieId;
            if (m_isRoot)
            {
                lwf.GetFunctionsLua(objId, out m_rootLoadFunc, out m_rootPostLoadFunc,
                                    out m_rootUnloadFunc, out m_rootEnterFrameFunc, true);
            }
            lwf.GetFunctionsLua(objId,
                                out m_loadFunc, out m_postLoadFunc, out m_unloadFunc, out m_enterFrameFunc, false);

            if (m_isRoot && !String.IsNullOrEmpty(m_rootLoadFunc))
            {
                lwf.CallFunctionLua(m_rootLoadFunc, this);
            }
            if (m_loadFunc != String.Empty)
            {
                lwf.CallFunctionLua(m_loadFunc, this);
            }
#endif
            PlayAnimation(ClipEvent.LOAD);

            m_eventHandlers = new EventHandlerDictionary();
            m_handler       = new MovieEventHandlers();
            m_handler.Add(lwf.GetMovieEventHandlers(this));
            m_handler.Add(handler);
            if (!m_handler.Empty())
            {
                m_handler.Call(EventType.LOAD, this);
            }

            lwf.ExecMovieCommand();
        }
Example #27
0
	public void ClearMovieEventHandler(
		string instanceName, MovieEventHandlers.Type type)
	{
		int instId = SearchInstanceId(GetStringId(instanceName));
		if (instId >= 0) {
			ClearMovieEventHandler(instId, type);
			return;
		}

		if (m_movieEventHandlersByFullName == null)
			return;

		MovieEventHandlers handlers;
		if (!m_movieEventHandlersByFullName.TryGetValue(
				instanceName, out handlers))
			return;

		handlers.Clear(type);
		Movie movie = SearchMovieInstance(instanceName);
		if (movie != null)
			movie.SetHandlers(handlers);
	}
Example #28
0
	public void ClearMovieEventHandler(
		int instId, MovieEventHandlers.Type type)
	{
		if (instId < 0 || instId >= m_instances.Length)
			return;

		MovieEventHandlers handlers = m_movieEventHandlers[instId];
		if (handlers == null)
			return;

		handlers.Clear(type);
		Movie movie = SearchMovieInstanceByInstanceId(instId);
		if (movie != null)
			movie.SetHandlers(handlers);
	}
Example #29
0
        public Movie(LWF lwf, Movie parent, int objId, int instId, int matrixId = 0,
			int colorTransformId = 0, bool attached = false,
			MovieEventHandlers handler = null, string n = null)
            : base(lwf, parent,
			attached ? Type.ATTACHEDMOVIE : Type.MOVIE, objId, instId)
        {
            m_data = lwf.data.movies[objId];
            m_matrixId = matrixId;
            m_colorTransformId = colorTransformId;
            m_totalFrames = m_data.frames;

            if (!String.IsNullOrEmpty(n))
            m_name = n;
            m_instanceHead = null;
            m_instanceTail = null;
            m_currentFrameInternal = -1;
            m_execedFrame = -1;
            m_animationPlayedFrame = -1;
            m_lastControlOffset = -1;
            m_lastControls = -1;
            m_lastHasButton = false;
            m_lastControlAnimationOffset = -1;
            m_skipped = false;
            m_postLoaded = false;
            m_active = true;
            m_visible = true;
            m_playing = true;
            m_jumped = false;
            m_overriding = false;
            m_attachMovieExeced = false;
            m_attachMoviePostExeced = false;
            m_movieExecCount = -1;
            m_postExecCount = -1;
            m_blendMode = (int)Constant.BLEND_MODE_NORMAL;
            m_requestedCalculateBounds = false;
            m_calculateBoundsCallback = null;

            m_property = new Property(lwf);

            m_matrix0 = new Matrix();
            m_matrix1 = new Matrix();
            m_matrixForAttachedLWFs = new Matrix();
            m_colorTransform0 = new ColorTransform();
            m_colorTransform1 = new ColorTransform();
            m_colorTransformForAttachedLWFs = new ColorTransform();

            m_displayList = new Object[m_data.depths];

            m_eventHandlers = new EventHandlers();
            m_handler = new MovieEventHandlers();
            m_handler.Add(lwf.GetMovieEventHandlers(this));
            m_handler.Add(handler);

            #if LWF_USE_LUA
            m_isRoot = objId == lwf.data.header.rootMovieId;
            if (m_isRoot) {
            if (parent == null)
                lwf.CallFunctionLua("Init", this);
            lwf.GetFunctionsLua(objId, out m_rootLoadFunc,
                out m_rootPostLoadFunc, out m_rootUnloadFunc,
                    out m_rootEnterFrameFunc, true);
            }
            lwf.GetFunctionsLua(objId, out m_loadFunc, out m_postLoadFunc,
            out m_unloadFunc, out m_enterFrameFunc, false);

            if (m_isRoot && !String.IsNullOrEmpty(m_rootLoadFunc))
            lwf.CallFunctionLua(m_rootLoadFunc, this);
            if (m_loadFunc != String.Empty)
            lwf.CallFunctionLua(m_loadFunc, this);
            #endif

            PlayAnimation(ClipEvent.LOAD);
            if (!m_handler.Empty())
            m_handler.Call(EventType.LOAD, this);

            lwf.ExecMovieCommand();
        }
Example #30
0
 public void SetHandlers(MovieEventHandlers handler)
 {
     m_handler = handler;
 }