// Decompiled by DJ v2.6.6.51 Copyright 2000 Atanas Neshkov  Date: 6/15/2001 17:41:52
// Home Page : http://members.fortunecity.com/neshkov/dj.html  - Check often for new version!
// Decompiler options: packimports(3) 
// Source File Name:   com/macromedia/generator/api/Action

package com.macromedia.generator.api;

import com.macromedia.generator.api.peer.ActionPeer;

// Referenced classes of package com.macromedia.generator.api:
//            GenObject, GeneratorApiException

public class Action extends GenObject
{

    public Action()
        throws GeneratorApiException
    {
        peer = ActionPeer.New();
        if(peer == 0)
            throw new GeneratorApiException("unable to create peer");
        else
            return;
    }

    protected Action(int i)
        throws GeneratorApiException
    {
        peer = i;
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        else
            return;
    }

    public void addAdd()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddAdd(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding add action");
        else
            return;
    }

    public void addAnd()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddAnd(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding less action");
        else
            return;
    }

    public void addAsciiToChar()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddAsciiToChar(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding AsciiToChar action");
        else
            return;
    }

    public void addCall()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddCall(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Call action");
        else
            return;
    }

    public void addCharToAscii()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddCharToAscii(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding CharToAscii action");
        else
            return;
    }

    public void addCloneSprite()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddCloneSprite(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding CloneSprite action");
        else
            return;
    }

    public void addDivide()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddDivide(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding divide action");
        else
            return;
    }

    public void addEndDrag()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddEndDrag(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding EndDrag action");
        else
            return;
    }

    public void addEndIf()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddEndIf(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding EndIf action");
        else
            return;
    }

    public void addEndJump()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddEndJump(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding EndJump action");
        else
            return;
    }

    public void addEq()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddEq(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Eq action");
        else
            return;
    }

    public void addGetProperty()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddGetProperty(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding GetProperty action");
        else
            return;
    }

    public void addGetTime()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddGetTime(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding GetTime action");
        else
            return;
    }

    public void addGetURL(String s, String s1)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        if(s == null || s1 == null)
            throw new GeneratorApiException("null string");
        int i = ActionPeer.AddGetURL(peer, s, s1);
        if(i == 0)
            throw new GeneratorApiException("error adding get URL action");
        else
            return;
    }

    public void addGetURL2(int i)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int j = ActionPeer.AddGetURL2(peer, i);
        if(j == 0)
            throw new GeneratorApiException("error adding Get URL 2 action");
        else
            return;
    }

    public void addGetVariable()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddGetVariable(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding get variable action");
        else
            return;
    }

    public void addGotoFrame(int i)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int j = ActionPeer.AddGotoFrame(peer, i);
        if(j == 0)
            throw new GeneratorApiException("error adding goto frame action");
        else
            return;
    }

    public void addGotoFrame2()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddGotoFrame2(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding GotoFrame2 action");
        else
            return;
    }

    public void addGotoLabel(String s)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddGotoLabel(peer, s);
        if(i == 0)
            throw new GeneratorApiException("error adding goto label action");
        else
            return;
    }

    public void addIf()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddIf(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding If action");
        else
            return;
    }

    public void addJump()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddJump(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Jump action");
        else
            return;
    }

    public void addLess()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddLess(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding less action");
        else
            return;
    }

    public void addMBAsciiToChar()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddMBAsciiToChar(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding MBAsciiToChar action");
        else
            return;
    }

    public void addMBCharToAscii()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddMBCharToAscii(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding MBCharToAscii action");
        else
            return;
    }

    public void addMBStringExtract()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddMBStringExtract(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding MBStringExtract action");
        else
            return;
    }

    public void addMBStringLength()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddMBStringLength(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding MBStringLength action");
        else
            return;
    }

    public void addMultiply()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddMultiply(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding multiply action");
        else
            return;
    }

    public void addNextFrame()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddNextFrame(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding next frame action");
        else
            return;
    }

    public void addNot()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddNot(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Not action");
        else
            return;
    }

    public void addOr()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddOr(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Or action");
        else
            return;
    }

    public void addPlay()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddPlay(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding play action");
        else
            return;
    }

    public void addPop()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddPop(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding pop action");
        else
            return;
    }

    public void addPrevFrame()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddPrevFrame(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding previous frame action");
        else
            return;
    }

    public void addPush(String s)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddPush(peer, s);
        if(i == 0)
            throw new GeneratorApiException("error adding push action");
        else
            return;
    }

    public void addPushProperty(int i)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int j = ActionPeer.AddPushProperty(peer, i);
        if(j == 0)
            throw new GeneratorApiException("error adding pushProperty action");
        else
            return;
    }

    public void addRandomNumber()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddRandomNumber(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding RandomNumber action");
        else
            return;
    }

    public void addRemoveSprite()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddRemoveSprite(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding RemoveSprite action");
        else
            return;
    }

    public void addSetProperty()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddSetProperty(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding SetProperty action");
        else
            return;
    }

    public void addSetTarget2()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddSetTarget2(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding SetTarget2 action");
        else
            return;
    }

    public void addSetVariable()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddSetVariable(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding set variable action");
        else
            return;
    }

    public void addSetVariableArgs(String s, String s1)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        addPush(s);
        addPush(s1);
        int i = ActionPeer.AddSetVariable(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding set variable action");
        else
            return;
    }

    public void addStartDrag()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStartDrag(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding StartDrag action");
        else
            return;
    }

    public void addStop()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStop(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding stop action");
        else
            return;
    }

    public void addStopSounds()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStopSounds(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding stop sounds action");
        else
            return;
    }

    public void addStringAdd()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStringAdd(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding stringAdd action");
        else
            return;
    }

    public void addStringEq()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStringEq(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding stringEq action");
        else
            return;
    }

    public void addStringExtract()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStringExtract(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding StringExtract action");
        else
            return;
    }

    public void addStringLength()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStringLength(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding stringLength action");
        else
            return;
    }

    public void addStringLess()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddStringLess(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding StringLess action");
        else
            return;
    }

    public void addSubtract()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddSubtract(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding subtract action");
        else
            return;
    }

    public void addTellTarget(String s)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddTellTarget(peer, s);
        if(i == 0)
            throw new GeneratorApiException("error adding tell target action");
        else
            return;
    }

    public void addToInteger()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddToInteger(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding ToInteger action");
        else
            return;
    }

    public void addToggleQuality()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddToggleQuality(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding toggle quality action");
        else
            return;
    }

    public void addTrace()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddTrace(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding Trace action");
        else
            return;
    }

    public void addWaitForFrame(int i)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int j = ActionPeer.AddWaitForFrame(peer, i);
        if(j == 0)
            throw new GeneratorApiException("error adding wait for frame action");
        else
            return;
    }

    public void addWaitForFrame2()
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int i = ActionPeer.AddWaitForFrame2(peer);
        if(i == 0)
            throw new GeneratorApiException("error adding WaitForFrame2 action");
        else
            return;
    }

    protected void finalize()
        throws Throwable
    {
        if(peer != 0)
            ActionPeer.Release(peer);
        peer = 0;
    }

    public void release()
    {
        if(peer != 0)
            ActionPeer.Release(peer);
        peer = 0;
    }

    public void setTransitionState(int i)
        throws GeneratorApiException
    {
        if(peer == 0)
            throw new GeneratorApiException("invalid peer");
        int j = ActionPeer.SetTransitionState(peer, i);
        if(j == 0)
            throw new GeneratorApiException("error setting transition state for action");
        else
            return;
    }

    public static final int bsIdleToOverUp = 1;
    public static final int bsOverUpToIdle = 2;
    public static final int bsOverUpToOverDown = 4;
    public static final int bsOverDownToOverUp = 8;
    public static final int bsOverDownToOutDown = 272;
    public static final int bsOutDownToOverDown = 160;
    public static final int bsOutDownToIdle = 64;
    public static final int bsIdleToOverDown = 128;
    public static final int bsOverDownToIdle = 256;
    public static final int NOSEND = 128;
    public static final int GET = 129;
    public static final int POST = 130;
    public static final int PROP_X_POSITION = 1;
    public static final int PROP_Y_POSITION = 2;
    public static final int PROP_X_SCALE = 3;
    public static final int PROP_Y_SCALE = 4;
    public static final int PROP_ALPHA = 5;
    public static final int PROP_VISIBILITY = 6;
    public static final int PROP_ROTATION = 7;
    public static final int PROP_NAME = 8;
}