1 50 51 package org.openlaszlo.iv.flash.commands; 52 53 import java.io.*; 54 import java.awt.geom.*; 55 56 import org.openlaszlo.iv.flash.parser.*; 57 import org.openlaszlo.iv.flash.api.*; 58 import org.openlaszlo.iv.flash.util.*; 59 60 import org.openlaszlo.iv.flash.context.Context; 61 62 public class ListCommand extends GeneralListCommand { 63 64 public ListCommand() {} 65 66 public void doCommand( FlashFile file, Context context, Script parent, int frameNum ) throws IVException { 67 initParms( context ); 68 69 Script listScript = makeList( file, context, parent, frameNum ); 70 71 if( scrollPaneName != null ) { 72 ExportAssets es = new ExportAssets(); 74 es.addAsset(scrollPaneName, listScript); 75 file.getMainScript().getFrameAt(0).addFlashObject(es); 77 parent.getFrameAt(frameNum).removeElement(getInstance()); 78 } else { 79 Script script = getInstance().copyScript(); 80 Frame listFrame = script.newFrame(); 81 Instance listInst = listFrame.addInstance(listScript, 1, null, null, "contents" ); 82 83 addMask(script, 0, listInst); 85 } 86 } 87 88 } 89 | Popular Tags |