Esempio n. 1
0
 internal MovieClip(RootMovieClip root, Sprite sprite, DisplayObject container)
     : base(root, container)
 {
     _sprite = sprite;
     IsPlaying = true;
     DontLoop = false;
 }
Esempio n. 2
0
        internal Button(RootMovieClip root, ButtonInfo info, DisplayObject container)
            : base(root, container)
        {
            _button = info;

            CurrentState = State.Over;
            SetButtonState(State.Up);
            LoadActions();
        }
Esempio n. 3
0
        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);
        }
Esempio n. 4
0
 internal static DisplayObject CreateAndPlace(ButtonPart buttonPart, StageObject parent)
 {
     var obj = new DisplayObject(buttonPart.Depth);
     if (!obj.SetPlacement(buttonPart, parent))
         return null;
     return obj;
 }
Esempio n. 5
0
 internal static DisplayObject CreateAndPlace(PlaceObject2Tag tag, StageObject parent)
 {
     var obj = new DisplayObject(tag.Depth);
     if (!obj.SetPlacement(tag, parent))
         return null;
     return obj;
 }
Esempio n. 6
0
 Movie.IDrawable ICharacter.MakeInstance(DisplayObject container, RootMovieClip root)
 {
     return new Movie.MovieClip(root, this, container);
 }