1 50 51 package org.openlaszlo.iv.flash.commands; 52 53 import org.openlaszlo.iv.flash.parser.*; 54 import org.openlaszlo.iv.flash.api.*; 55 import org.openlaszlo.iv.flash.util.*; 56 import org.openlaszlo.iv.flash.context.Context; 57 58 public class AddExternalMediaCommand extends GenericCommand { 59 60 public AddExternalMediaCommand() {} 61 62 public void doCommand( FlashFile file, Context context, Script parent, int frame ) throws IVException { 63 String mediafile = getParameter( context, "mediafile" ); 64 boolean cache = getBoolParameter( context, "cache", false ); 65 file.addExternalFile( mediafile, cache ); 66 } 67 68 public boolean isGlobal() { 69 return true; 70 } 71 } 72 | Popular Tags |