set properties (scale swf) problem

VIGH KrisztiĆ”n <[email protected]> Thu, 31 Jul 2003 15:51:45 +0200
Newsgroups gmane.comp.java.jgenerator.devel
Organization Frutta Elettronica Ltd.
Message-ID <[email protected]>
hi,

i tried scale an existing swf file. i changed XSCALE and YSCALE 
properties, creating by an ActionScript; but there is no effect.
code is the following:

---------------

FlashFile flashFile = FlashFile.parse(swfInName);
// enlarge 4x
// set size of movie
flashFile.setFrameSize(new Rect(0, 0, width*20*4, height*20*4));
// scale 4x
Program program = new Program();
program.push("_root");
program.push(Program.PROP_XSCALE);
program.push(400);
program.setProperty();
program.push("_root");
program.push(Program.PROP_YSCALE);
program.push(400);
program.setProperty();
flashFile.getMainScript().getFrameAt(0).addFlashObject(new 
DoAction(program));
// write result
generateFlash(swfOutName, flashFile);

---------------

what is your opinion, what did i wrong?

thx,

krisztian





-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01