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.*; 61 62 public class XMLListCommand extends GeneralXMLListCommand { 63 64 public XMLListCommand() {} 65 66 public void doCommand( FlashFile file, Context context, Script parent, int frameNum ) 67 throws IVException 68 { 69 initParms( context ); 70 71 Script listScript = makeList( file, context, parent, frameNum ); 72 73 if( scrollPaneName != null ) { 74 ExportAssets es = new ExportAssets(); 76 es.addAsset(scrollPaneName, listScript); 77 file.getMainScript().getFrameAt(0).addFlashObject(es); 79 parent.getFrameAt(frameNum).removeElement(getInstance()); 80 } else { 81 Script script = getInstance().copyScript(); 82 Frame listFrame = script.newFrame(); 83 listFrame.addInstance(listScript, 1, null, null, "contents"); 84 85 addMask( parent, frameNum ); 86 } 87 } 88 89 } 90 | Popular Tags |