Package flash.swf.actions

Examples of flash.swf.actions.Push


    public static Push createPushCpool(int index)
    {
        return (index < pushCpoolFlyweights.length)
                        ? pushCpoolFlyweights[index]
                        : new Push(new Short((short)index));
    }
View Full Code Here


                        : new Push(new Short((short)index));
    }

    public static Push createPush(String s)
    {
        return new Push(s);
    }
View Full Code Here

    public static Push createPush(float fvalue)
    {
        return fvalue == 0
                            ? pushFloat0Flyweight
                            : new Push(new Float(fvalue));
    }
View Full Code Here

    public static Push createPush(double dvalue)
    {
        return dvalue == 0
                            ? pushDouble0Flyweight
                            : new Push(new Double(dvalue));
    }
View Full Code Here

    public static Push createPush(int ivalue)
    {
        return ivalue == 0
                            ? pushInteger0Flyweight
                            : new Push(new Integer(ivalue));
    }
View Full Code Here

    case sactionTry:
      a = decodeTry(factory);
      break;

    case sactionPush:
      Push p = decodePush(offset, pos+len, factory);
      checkConsumed(pos, len, p);
      return;

        case sactionStrictMode:
            a = decodeStrictMode();
View Full Code Here

        return ActionFactory.createStrictMode(mode);
    }

    private Push decodePush(int offset, int end, ActionFactory factory) throws IOException
    {
        Push p;
        do
        {
            int pushType = reader.readUI8();
            switch (pushType)
            {
View Full Code Here

    public void testEqualsNegative()
    {
        DoAction doAction1 = new DoAction(new ActionList());
        doAction1.actionList.insert(0, new Branch(Branch.sactionJump));
        DoAction doAction2 = new DoAction(new ActionList());
        doAction2.actionList.insert(0, new Push(ActionFactory.UNDEFINED));
        assertFalse("doAction1 should not be equal to doAction2",
                    doAction1.equals(doAction2));
    }
View Full Code Here

TOP

Related Classes of flash.swf.actions.Push

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.