Re: Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman

Aha!

Ok, here's some code:

-
class mtascTest {
 private var root:MovieClip;

 public static function main(rootMC):Void {
   if(rootMC == undefined) { rootMC = _root; }
   //Stage.scaleMode = noScale;
   //Stage.align = LT;
   var main:mtascTest = new mtascTest(rootMC);
 }

 function mtascTest(rootMC:MovieClip) {
this.root = rootMC;
   init();
 }

 private function init() {
   root.moveTo(0, 0);
   root.beginFill(0xff, 100);
   root.lineTo(5, 0);
   root.lineTo(5, 5);
   root.lineTo(0, 5);
   root.lineTo(0, 0);
   root.endFill();
 }
}
-

There's one line in the FLA's first frame:
mtascTest.main(this);

When I build with just the Flash IDE I get a small red rectangle in
the top left corner.  If I resize the window to be larger it doesn't
stay in the top left corner, but moves down and right (but doesn't
change size).

If I build the same code using MTASC it starts out looking the same.
However, when I resize the window the red square jumps around and
changes size.  It moves such that it's always touching one of the
edges of the window.  It's kind of hard to explain.

My guess is MTASC and the FlashIDE have different Stage defaults.  If
I uncomment the Stage.scaleMode line in the above code both the
FlashIDE and MTASC build SWFs act like the FlashIDE one worked without
the scaleMode being set.

  -Andy


Though I did figure one thing out.  (0, 0) was starting at the top left corner,

On 1/23/07, Rákos Attila [EMAIL PROTECTED] wrote:


Well, interesting - I just tried out and everything seems to be OK
with MTASC: without setting Stage's properties the default behaviour
is similar to that of movies compiled with MMC, and after setting
scaleMode and align it works as expected, too. Can you provide a
minimal script demonstrating the issue?

  Attila

___
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


Re: Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Hans Wichman

Hi,
yep there might be small differences, and its good to be aware of that. I'm
not sure if there is a list of these issues.
Another one for example is that Array(obj) in mtasc is an array cast, while
in the Flash IDE it is not.
These little things that can easily ruin your day:).

greetz
JC




On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote:


Aha!

Ok, here's some code:

-
class mtascTest {
private var root:MovieClip;

public static function main(rootMC):Void {
   if(rootMC == undefined) { rootMC = _root; }
   //Stage.scaleMode = noScale;
   //Stage.align = LT;
   var main:mtascTest = new mtascTest(rootMC);
}

function mtascTest(rootMC:MovieClip) {
   this.root = rootMC;
   init();
}

private function init() {
   root.moveTo(0, 0);
   root.beginFill(0xff, 100);
   root.lineTo(5, 0);
   root.lineTo(5, 5);
   root.lineTo(0, 5);
   root.lineTo(0, 0);
   root.endFill();
}
}
-

There's one line in the FLA's first frame:
mtascTest.main(this);

When I build with just the Flash IDE I get a small red rectangle in
the top left corner.  If I resize the window to be larger it doesn't
stay in the top left corner, but moves down and right (but doesn't
change size).

If I build the same code using MTASC it starts out looking the same.
However, when I resize the window the red square jumps around and
changes size.  It moves such that it's always touching one of the
edges of the window.  It's kind of hard to explain.

My guess is MTASC and the FlashIDE have different Stage defaults.  If
I uncomment the Stage.scaleMode line in the above code both the
FlashIDE and MTASC build SWFs act like the FlashIDE one worked without
the scaleMode being set.

  -Andy


Though I did figure one thing out.  (0, 0) was starting at the top left
corner,

On 1/23/07, Rákos Attila [EMAIL PROTECTED] wrote:

 Well, interesting - I just tried out and everything seems to be OK
 with MTASC: without setting Stage's properties the default behaviour
 is similar to that of movies compiled with MMC, and after setting
 scaleMode and align it works as expected, too. Can you provide a
 minimal script demonstrating the issue?

   Attila

 ___
 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


___
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


Re: Re[6]: [Flashcoders] External libraries

2007-01-23 Thread Andy Herrman

Oh, the Array(obj) thing ruined my day a month or so ago, as I didn't
know the FlashIDE was treating that as constructing an array instead
of casting.  Does the same with String(obj) (new string instead of
cast).  Took me a long while to figure that one out.

  -Andy

On 1/23/07, Hans Wichman [EMAIL PROTECTED] wrote:

Hi,
yep there might be small differences, and its good to be aware of that. I'm
not sure if there is a list of these issues.
Another one for example is that Array(obj) in mtasc is an array cast, while
in the Flash IDE it is not.
These little things that can easily ruin your day:).

greetz
JC




On 1/23/07, Andy Herrman [EMAIL PROTECTED] wrote:

 Aha!

 Ok, here's some code:

 -
 class mtascTest {
 private var root:MovieClip;

 public static function main(rootMC):Void {
if(rootMC == undefined) { rootMC = _root; }
//Stage.scaleMode = noScale;
//Stage.align = LT;
var main:mtascTest = new mtascTest(rootMC);
 }

 function mtascTest(rootMC:MovieClip) {
this.root = rootMC;
init();
 }

 private function init() {
root.moveTo(0, 0);
root.beginFill(0xff, 100);
root.lineTo(5, 0);
root.lineTo(5, 5);
root.lineTo(0, 5);
root.lineTo(0, 0);
root.endFill();
 }
 }
 -

 There's one line in the FLA's first frame:
 mtascTest.main(this);

 When I build with just the Flash IDE I get a small red rectangle in
 the top left corner.  If I resize the window to be larger it doesn't
 stay in the top left corner, but moves down and right (but doesn't
 change size).

 If I build the same code using MTASC it starts out looking the same.
 However, when I resize the window the red square jumps around and
 changes size.  It moves such that it's always touching one of the
 edges of the window.  It's kind of hard to explain.

 My guess is MTASC and the FlashIDE have different Stage defaults.  If
 I uncomment the Stage.scaleMode line in the above code both the
 FlashIDE and MTASC build SWFs act like the FlashIDE one worked without
 the scaleMode being set.

   -Andy


 Though I did figure one thing out.  (0, 0) was starting at the top left
 corner,

 On 1/23/07, Rákos Attila [EMAIL PROTECTED] wrote:
 
  Well, interesting - I just tried out and everything seems to be OK
  with MTASC: without setting Stage's properties the default behaviour
  is similar to that of movies compiled with MMC, and after setting
  scaleMode and align it works as expected, too. Can you provide a
  minimal script demonstrating the issue?
 
Attila
 
  ___
  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

___
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