Package flash.swf.actions

Examples of flash.swf.actions.Branch


        return a;
    }

    private Branch decodeBranch(int code, ActionFactory factory) throws IOException
    {
        Branch a = new Branch(code);
        int offset = reader.readSI16();
        int target = offset + reader.getOffset();
        a.target = factory.getLabel(target);
        return a;
    }
View Full Code Here


    }

    public void testEqualsPositive()
    {
        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 Branch(Branch.sactionJump));
        assertEquals("doAction1 should be equal to doAction2",
                     doAction1, doAction2);
    }
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.Branch

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.