It might not be MTASC itself, but something that FlashDevelop is doing with MTASC that caused it (an option I couldn't find or something). Either way, setting it at the beginning of my script fixes it, so it doesn't really matter anymore. :)
-Andy On 1/24/07, Rákos Attila <[EMAIL PROTECTED]> wrote:
I tried out your code and get exactly the same result with Flash IDE and MTASC. Did you try it in the stand-alone player? If in the browser, may be you have changed the default scaling and alignment values in the Publish Settings? Anyway, the most secure method is to set Stage options by script - it works everywhere. Attila AH> Aha! AH> AH> Ok, here's some code: AH> AH> --------- AH> class mtascTest { AH> private var root:MovieClip; AH> AH> public static function main(rootMC):Void { AH> if(rootMC == undefined) { rootMC = _root; } AH> //Stage.scaleMode = "noScale"; AH> //Stage.align = "LT"; AH> var main:mtascTest = new mtascTest(rootMC); AH> } AH> AH> function mtascTest(rootMC:MovieClip) { AH> this.root = rootMC; AH> init(); AH> } AH> AH> private function init() { AH> root.moveTo(0, 0); AH> root.beginFill(0xff0000, 100); AH> root.lineTo(5, 0); AH> root.lineTo(5, 5); AH> root.lineTo(0, 5); AH> root.lineTo(0, 0); AH> root.endFill(); AH> } AH> } AH> --------- AH> AH> There's one line in the FLA's first frame: AH> mtascTest.main(this); AH> AH> When I build with just the Flash IDE I get a small red rectangle in AH> the top left corner. If I resize the window to be larger it doesn't AH> stay in the top left corner, but moves down and right (but doesn't AH> change size). AH> AH> If I build the same code using MTASC it starts out looking the same. AH> However, when I resize the window the red square jumps around and AH> changes size. It moves such that it's always touching one of the AH> edges of the window. It's kind of hard to explain. AH> AH> My guess is MTASC and the FlashIDE have different Stage defaults. If AH> I uncomment the Stage.scaleMode line in the above code both the AH> FlashIDE and MTASC build SWFs act like the FlashIDE one worked without AH> the scaleMode being set. _______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com
_______________________________________________ Flashcoders@chattyfig.figleaf.com To change your subscription options or search the archive: http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Brought to you by Fig Leaf Software Premier Authorized Adobe Consulting and Training http://www.figleaf.com http://training.figleaf.com