internal MovieClip(RootMovieClip root, Sprite sprite, DisplayObject container) : base(root, container) { _sprite = sprite; IsPlaying = true; DontLoop = false; }
internal Button(RootMovieClip root, ButtonInfo info, DisplayObject container) : base(root, container) { _button = info; CurrentState = State.Over; SetButtonState(State.Up); LoadActions(); }
internal StageObject(RootMovieClip root, DisplayObject container) { _container = container; Root = root; Parent = null; Visible = true; Context = new ActionContext { Constants = null, DefaultTarget = this, Registers = new ActionVar[4], RootClip = Root, Scope = new LinkedList<ActionObject>(), Stack = new Stack<ActionVar>(), This = this }; if (Root != null) Context.Scope.AddFirst(Root.GlobalScope); Context.Scope.AddLast(this); }
internal static DisplayObject CreateAndPlace(ButtonPart buttonPart, StageObject parent) { var obj = new DisplayObject(buttonPart.Depth); if (!obj.SetPlacement(buttonPart, parent)) return null; return obj; }
internal static DisplayObject CreateAndPlace(PlaceObject2Tag tag, StageObject parent) { var obj = new DisplayObject(tag.Depth); if (!obj.SetPlacement(tag, parent)) return null; return obj; }
Movie.IDrawable ICharacter.MakeInstance(DisplayObject container, RootMovieClip root) { return new Movie.MovieClip(root, this, container); }