// Decompiled by DJ v2.6.6.51 Copyright 2000 Atanas Neshkov  Date: 6/15/2001 17:06:05
// 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/CacheCommand

package com.macromedia.generator.commands;

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

public class CacheCommand extends GenericCommand
{

    public CacheCommand()
    {
    }

    public void doCommand(FlashEnvironment flashenvironment, Script script, Context context, int i, Properties properties)
        throws FlashCommandException
    {
        _fld0109 = new GenVector(8);
        String s = properties.getProperty("forcemediacache", "false");
        s = context.apply(s);
        if(s.equalsIgnoreCase("true"))
            flashenvironment.getCacheManager().getMediaCache().setForce(true);
        else
            flashenvironment.getCacheManager().getMediaCache().setForce(false);
        s = properties.getProperty("forcefilecache", "false");
        s = context.apply(s);
        if(s.equalsIgnoreCase("true"))
            flashenvironment.getCacheManager().getFileCache().setForce(true);
        else
            flashenvironment.getCacheManager().getFileCache().setForce(false);
        _fld0109.release();
    }

    GenVector _fld0109;
}