JSwiff
flash movies the java way
JSwiff Forum
  Search   Recent Topics     Member Listing    Back to home page 
Register / 
Login 
help,a ConstantPool issue.(resolved)  
Forum Index -> How Do I...
Author Message
andelie


Joined: Jul 18, 2007
Messages: 7
Offline

hi:
i encountered the following problem when i used the ConstantPool, the issue is that i can not add the constant in the ConstantPool.
following is a part of .xml file that I would like to do.
<actionblock>
<constantpool>
<constant id="0">
<value>delay</value>
</constant>
<constant id="1">
<value>clearInterval</value>
</constant>
<constant id="2">
<value>continue</value>
</constant>
<constant id="3">
<value>setInterval</value>
</constant>
</constantpool>
</actionblock>

and this is a part of my code:
DoAction doAction = new DoAction();
ConstantPool constantPool = new ConstantPool();
doAction.addAction(constantPool);

in jswiff api, I can not find a way to follow the example of the above .xml file. how did i do? thanks a lot.
Andelie
andelie


Joined: Jul 18, 2007
Messages: 7
Offline

thanks for Ralf.

the answer is following:
ConstantPool constantPool = new ConstantPool();
List constants = constantPool.getConstants();
constants.add("delay");
constants.add("clearInterval");
constants.add("continue");
constants.add("setInterval");

Andelie
 
  Forum Index -> How Do I...
Go to:   
Legal notes
Powered by JForum 2.1.4 © 2005 - Rafael Steil