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

package com.macromedia.generator.commands;

import com.macromedia.generator.api.*;
import com.macromedia.generator.app.*;
import java.util.Properties;

public class StopCommand extends GenericCommand
{

    public StopCommand()
    {
    }

    public void doCommand(FlashEnvironment flashenvironment, Script script, Context context, int i, Properties properties)
        throws FlashCommandException
    {
        _fld0109 = new GenVector(8);
        String s = properties.getProperty("stop", "true");
        s = context.apply(s);
        if(s.equalsIgnoreCase("true"))
            try
            {
                int j = script.getCommandFrameIndex(i);
                Action action = (Action)_fld0109.add(new Action());
                action.addStop();
                script.insertAction(action, j);
            }
            catch(GeneratorApiException _ex)
            {
                logError(flashenvironment, "UnableToInsertAction", null);
            }
        _fld0109.release();
    }

    GenVector _fld0109;
}