Inserting action script variables to a frame

"Niek Schroten" <[email protected]> Wed, 8 Jan 2003 14:09:23 +0100
Newsgroups gmane.comp.java.jgenerator.devel
Message-ID <[email protected]>
Hi,

I'm new to this list, but I have a question.
I'm trying to put some varibales in action script in a swt that alllready
contains action script code.
The code looks like this (actions for frame 2):
var buttonx = 265;
var buttony = 12;
var buttonwidth = 145;

var movingout = 0;
var movingin = 0;
var currentout = 0;
var takesteps = 8;
var currentstep = 0;

var prevy=0;
var prevx=0;
var holdcount=0;


I's like to add some variables to this list (like var name="value";).
Is this possible? If so, how can this be done?
I tried the following in my code (did not work):
FlashBuffer aFlashBuffer = new FlashBuffer(_aShockWaveTemplateByteArray);
 try{
     aFlashFile = FlashFile.parse("temp.swt",aFlashBuffer);
     ASAssembler aASAssembler  = new ASAssembler(aFlashFile);
     aASAssembler.setVar("extension",".COM");
     ..... etc.
All the objects are in the outputfile, but the variable extension is not in
the script.

Any suggestions?
Thanks in advance,

Niek



-------------------------------------------------------
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com