[Flashcoders] Max MovieClip Size Before Filters are Dropped?

2008-02-07 Thread Mark Hawley
Anyone know the maximum size, in pixels, a MovieClip can be before Flash
refuses to apply filters to it? It seems to be dependent on the filter
parameters, making me think there's a max size on the rendered clip.
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Odd Blend Mode Problem

2008-02-05 Thread Mark Hawley
I've got an API-drawn rectangle with a hairline stroke, with a blend mode of
3. (Multiply)

When the rectangle clip is tweened over a bitmap, occasionally there are
'flickers' of a lighter color right at the edges, where the stroke would be.
I've tried no stroke, a 1px stroke...everything I could think of to remove
this flicker. Anyone else experience this or have an idea why it's
happening?

Exported at Flash 8 in CS3.

-John Mark Hawley
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Re: Odd Blend Mode Problem

2008-02-05 Thread Mark Hawley
Forcing the width and height of the clip to remain an integer during the
tweens fixed the problem.

On Feb 5, 2008 11:57 AM, Mark Hawley [EMAIL PROTECTED] wrote:

 I've got an API-drawn rectangle with a hairline stroke, with a blend mode
 of 3. (Multiply)

 When the rectangle clip is tweened over a bitmap, occasionally there are
 'flickers' of a lighter color right at the edges, where the stroke would be.
 I've tried no stroke, a 1px stroke...everything I could think of to remove
 this flicker. Anyone else experience this or have an idea why it's
 happening?

 Exported at Flash 8 in CS3.

 -John Mark Hawley

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


Re: [Flashcoders] flashcoders list page

2007-10-23 Thread Mark Hawley
I've never gotten a password reminder myself.

On 10/20/07, Rob Buse [EMAIL PROTECTED] wrote:


 I've requested to be unsubscribed several times via:

 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

 The confirmation e-mail never shows.
 Neither does the password reminder.

 -Rob

 ___
 Flashcoders mailing list
 Flashcoders@chattyfig.figleaf.com
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] protoscript

2007-09-10 Thread John Mark Hawley
I've hunted around, but no luck--anyonethought about porting protoscript 
(protoscript.com) to AS3? It's a simple JSON-based set of behaviors for 
adding interactivity to sites.

___
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: [Flashcoders] Q:tag cloud and image analysis

2007-09-05 Thread Mark Hawley
C'mon, not only is that a jerky response, it doesn't address the questions
brought up in the first place. Save the google links for truly n00b
questions if you really *need* to respond like this to something.

On 9/5/07, Muzak [EMAIL PROTECTED] wrote:

 http://www.google.com/search?num=20hl=enq=flash+tag+cloud;

 - Original Message -
 From: [EMAIL PROTECTED]
 To: flashcoders flashcoders@chattyfig.figleaf.com
 Sent: Tuesday, September 04, 2007 10:20 PM
 Subject: [Flashcoders] Q:tag cloud and image analysis


  Hi
  I am trying to create a 'tag cloud' representation of an image.
  But am wondering if something like this:
 
  http://guiborchert.com/work/rga_tags.html
 
  is even possible in Flash 8.
 
  Is this a project for Flash 9?
 
  Can anyone offer suggestions/opinions on the best way to create this
 effect?
 
  I know I need to break down the project to
  1) image analysis
  2) text size, distribution, brightness/opacity based on #1
  3) allow for text items to increase in relative size based on times
 clicked
 
  Thanks for any feedback!
 
 


 ___
 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: [Flashcoders] Take movieclips from one mc and attach to another

2007-08-23 Thread Mark Hawley
You can't re-parent MovieClips in AS2. You could make your class control
arbitrary MovieClips as if they were reparented with a lot of math and
localToGlobal() calls, though. Probably not a great idea, though.

On 8/23/07, Alexander Farber [EMAIL PROTECTED] wrote:

 Hello!

 I've found a nice code (pasted at the bottom of
 this mail) to display a rotating set of movieclips.

 One problem with it is though that it assumes
 a hardcoded set of 7 movieclips in the library,
 called 0, 1, ... 6 and attaches them to the
 stage by calling attachMovie(i, mc+i, i);

 I'd like to change that to a MovieClip-based class
 which would take an arbitary array of MovieClips
 and attach them to itself:

 class Ellipse extends MovieClip {
 private var mcs:Array = [];
 ...
 public function setMovieClips(mcs:Array) {
 this.mcs = mcs;

 for (var i:Number = 0; i  mcs.length; i++) {
 var mc:MovieClip = mcs[i];
  // XXX  this.attachMovie(i, mc+i, i);

 And here comes the problem - how do I attach
 MovieClips (referred by mc above) to the Ellipse?

 There are only 2 methods - attachMovie() and
 duplicateMovieClip() - and they both need a linkage
 name as the argument.

 I.e. my general question is: how do I remove
 a child-MovieClip from one parent-MovieClip
 and assign it to another parent-MovieClip?

 Regards
 Alex

 PS: Here is the original code

 var N:Number = 7;
 var A:Number = 150;
 var B:Number = 50;
 var X:Number = 200;
 var Y:Number = 150;
 var GR:Number = Math.PI / 180;

 for (var i:Number = 0; i  N; i++) {
 attachMovie(i, mc+i, i);
 this[mc+i].alpha = 0+i*(360/N);
 this[mc+i].onEnterFrame = function() {
 this.alpha += (_root._xmouse - X) / 100;

 this._x = X + A * Math.cos(this.alpha * GR);
 this._y = this._xscale = this._yscale =
   Y + B * Math.sin(this.alpha * GR);

 this.swapDepths(this._y);
 };
 }
 ___
 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: [Flashcoders] array copy with random order

2007-08-13 Thread Mark Hawley
Just look up Fisher-Yates shuffle and use it. It's better than any number
of home-rolled randomizers.

On 8/13/07, Jesse Graupmann [EMAIL PROTECTED] wrote:

 Steven,

 I'm not really sure how to compare the differences between array sorts,
 but
 this seemed pretty straight forward.

 From what I can tell, using Math.round(Math.random()*2)-1 produced less
 movement in original number position than Math.round(Math.random()).



 //
 //  TEST
 //

 var array = [0,1, 2, 3, 4, 5, 6, 7, 8, 9 ];

 function randomizeArray ( a ) {
 // 0, 1
 var na = [].concat(a).sort ( function (){ return
 Math.round(Math.random()); } );
 analyzeArray( na );
 return na;
 }
 function randomizeArray2 ( a ) {
 // -1, 0, 1
 var na = [].concat(a).sort ( function (){ return
 Math.round(Math.random()*2)-1; } );
 analyzeArray( na );
 return na;
 }

 function analyzeArray ( a )
 {
 var len = a.length;
 var mov = new Array (len);
 var med = 0;
 var avg = 0; // average movement
 var ttl = 0; // total movement

 for ( var i = 0; i  len; i++ )
 {
 var num = a[i];
 var dist = i-num;
 mov [num] = dist;
 med += dist;
 ttl += Math.abs( dist );
 }

 avg = ttl / len;
 trace('\nttl: ' + ttl + '   avg: ' + avg + '   med: ' + med + '
 mov: ' + mov )
 }

 trace( '\n++ 1\n');

 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));
 trace (randomizeArray ( array ));

 trace( '\n++ 2\n');

 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));
 trace (randomizeArray2 ( array ));

 trace( '\n++ org\n');

 trace( array ); // no change good


 //
 //  OUTPUT
 //

 ++ 1


 ttl: 30   avg: 3   med: 0   mov: 7,0,6,2,-1,-1,0,-7,-6,0
 7,1,8,4,5,3,6,0,2,9

 ttl: 38   avg: 3.8   med: 0   mov: 9,-1,2,5,2,-2,1,-5,-3,-8
 1,9,7,5,2,8,4,6,3,0

 ttl: 22   avg: 2.2   med: 0   mov: 4,1,-1,-3,4,2,0,-2,-5,0
 3,2,1,8,0,7,6,5,4,9

 ttl: 12   avg: 1.2   med: 0   mov: 4,0,-2,0,-2,0,0,1,1,-2
 2,1,4,3,0,5,6,9,7,8

 ttl: 30   avg: 3   med: 0   mov: 7,0,4,-1,-4,4,-1,-3,-5,-1
 4,1,3,8,7,6,2,0,9,5

 ttl: 22   avg: 2.2   med: 0   mov: 7,0,-2,2,0,1,-3,1,-6,0
 2,1,8,6,4,3,5,0,7,9

 ttl: 36   avg: 3.6   med: 0   mov: 7,2,6,3,-2,0,-5,-7,-4,0
 7,6,4,1,8,5,3,0,2,9

 ++ 2


 ttl: 16   avg: 1.6   med: 0   mov: 0,5,3,-1,-3,-2,-2,0,0,0
 0,4,3,5,6,2,1,7,8,9

 ttl: 24   avg: 2.4   med: 0   mov: 0,0,7,1,2,-2,2,-2,-1,-7
 0,1,9,5,3,7,4,8,6,2

 ttl: 32   avg: 3.2   med: 0   mov: 1,8,3,0,2,-3,2,0,-4,-9
 9,0,5,3,8,2,4,7,6,1

 ttl: 10   avg: 1   med: 0   mov: 0,0,1,4,0,-3,0,-2,0,0
 0,1,5,2,4,7,6,3,8,9

 ttl: 22   avg: 2.2   med: 0   mov: 0,0,4,5,1,-1,-4,0,1,-6
 0,1,6,9,5,4,2,7,3,8

 ttl: 20   avg: 2   med: 0   mov: 0,2,2,-1,3,3,-5,-1,-3,0
 0,6,3,1,2,8,7,4,5,9

 ttl: 22   avg: 2.2   med: 0   mov: 1,6,0,0,0,4,-1,-1,0,-9
 9,0,2,3,4,6,7,1,8,5

 ++ org

 0,1,2,3,4,5,6,7,8,9




 _

 Jesse Graupmann
 www.jessegraupmann.com
 www.justgooddesign.com/blog/
 _


 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Steven
 Sacks
 Sent: Monday, August 13, 2007 11:23 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] array copy with random order

  array2.sort ( function (){ return Math.round(Math.random()); } );

 That's brilliant!  :)

 To build upon that with all 3 outcomes (-1, 0, 1), you can use:

 Math.round(Math.random() * 2) - 1)

 ___
 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: [Flashcoders] XML.load() not asynchronous?

2007-08-08 Thread Mark Hawley
The wait you're seeing isn't the XML file loading, it's Flash parsing the
XML. I'm guessing it's pretty large.

You see Start A.
You begin the XML load.
You see Start B.
The XML finishes loading.
Flash starts parsing the XML into an XML object.
...this takes a while, and Flash is so busy it can't fire off
setIntervals...
Eventually Flash gets the onLoad from the XML.

You can make your own custom XML parser that breaks things up over a few
frames as needed. There's code for it floating around on the net.

On 8/8/07, Mendelsohn, Michael [EMAIL PROTECTED] wrote:

 Thanks for the reply, Ian.  I did change the order, but everything still
 stops.  I tried to observe the flow with a timeout, and what it does is
 trace Start A and Start B really quickly, then everything delays,
 then when the xml is loaded, the movie works again, and the other
 trace statement starts to happen.  Shouldn't the interval be firing even
 while the XML is in the loading process?

 function timeTest():Void {
 trace(Math.random());
 }
 function setDefaultPanels(documentType:String,
 documentLanguage:String):Void {
 _root.attachMovie(loading, loading, 10);
 xmlData = new XML();
 xmlData.onLoad = function(success:Boolean):Void  {
 // do stuff
 _root.loadingGraphic.removeMovieClip();
 };
 trace(start A);
 xmlData.load(stuff.xml));
 trace(start B);
 setInterval(_root.ui, timeTest, 10);
 }
 ___
 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: [Flashcoders] garbage collection and asychronous execution

2007-08-06 Thread Mark Hawley
That isn't a reference to a function -- it's a reference to a object method.
The object has to hang around.

On 8/6/07, Hans Wichman [EMAIL PROTECTED] wrote:

 Hi,

 hmm okay this might seem like a basic question, but this has been
 bothering
 me for a while:)

 Imagine i have a class that prints boo 10 seconds after it has been
 created, but returns immediately, so eg:


 public function doTest() {
  trace(here 1);
  new BooTest();
  trace(here 2);
 }

 doTest();

 this will print:

 here 1
 here 2
 boo

 My question is how does the garbage collector works in this case?
 Why isnt the BooTest object garbage collected before it executes since it
 has long fallen out of scope?

 I have no longer have any reference to the object, but still it is
 executing.

 My definition of BooTest:


 class BooTest {

 public function BooTest() {
   setInterval (test, 1000);
 }

 public function test() {
   trace (boo);
 }


 }
 setInterval has a reference to the test function, but not to the object
 itself.

 Any ideas / pointers?

 greetz
 JC
 ___
 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: [Flashcoders] Casting to Array

2007-07-20 Thread John Mark Hawley
David's suggestion doesn't actually cast to array, though -- it makes a shallow 
copy of the array and returns it. This will lead you to many tricky bugs.

If you really *really* need type checking on arrays, make a List class to wrap 
arrays and only use that.


 
 From: Danny Kodicek [EMAIL PROTECTED]
 Date: 2007/07/20 Fri AM 10:07:47 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Casting to Array
 
   As it's AS2, you might think about making it so 
  doMyArrayFunction will not expect an array, but will take anything:
  
  class ArrayTest {
  
  public function ArrayTest(a) {
  trace(a[0]);
  }
  
  }
  
  
  
  new ArrayTest([1,2,3,4]);
  
  works fine.
 
 Yes, but I'm trying to do things 'properly' :)
 
 I've been quite enjoying the discipline of strong typing and it seems a
 shame to lose it for a little technicality. I like David's suggestion, which
 I'd imagine works pretty fast.
 
 Thanks
 Danny
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] local connection,

2007-05-03 Thread John Mark Hawley

 
 From: Stephen Downs [EMAIL PROTECTED]
 Date: 2007/05/03 Thu PM 02:48:51 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] local connection,
   online swf - local stand alone projector.

snip
 
 The documentation for LocalConnection.send states the syntax for the  
 third argument is an Object, and you've put in a string literal. This  
 probably doesn't make a difference as Flash seems to do a lot of  
 behind the scenes casting, but it wouldn't hurt to change your code  
 to conform.


String literals are just fine here. There are very few, if any, reasons to use 
a String() object instead of a string literal in actionscript 2.0.

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Changing Green (halogreen) highlight color

2007-04-24 Thread John Mark Hawley
setStyle(themeColor, red ( or 0xFF or whatever ) );

 
 From: Helmut Granda [EMAIL PROTECTED]
 Date: 2007/04/24 Tue PM 02:04:23 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Changing Green (halogreen) highlight color
 
 Is there anyway to change the green highlight color for components without
 having to create a custom skin (The green/orange/blue highlight when the
 component has focus) ?
 
 TIA
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Flash and needed computer specs

2007-04-10 Thread John Mark Hawley
If you're serious about keeping these new developers, buy them the best 
computers you can get. If they want a Mac, get them a Mac. If they want a PC, 
get them a PC. You'll save more time keeping them from grumbling about having 
stinky computers than compiling slightly faster anyway.


 
 From: Dennis - I Sioux [EMAIL PROTECTED]
 Date: 2007/04/10 Tue AM 10:17:42 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Flash and needed computer specs
 
 A bit weird to ask such a lame question...
 But my co-worker has to order some working stations for more flash (game) 
 developers.. and was wondering what are handy computer specs for such.
 
 Especially what reduces large compiling time (besides using flasc and handy 
 file seperation and such).
 
 Does anyone have an opinion.. or if it's an old subject.. a link?
 
 With kind regards,
 
 
 Dennis 
 I Sioux
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Flash and needed computer specs

2007-04-10 Thread John Mark Hawley
If you're serious about keeping these new developers, but them the best 
computers you can get. If they want a Mac, get them a Mac. If they want a PC, 
get them a PC. You'll save more time keeping them from grumbling about having 
stinky computers than compiling slightly faster anyway.


 
 From: Dennis - I Sioux [EMAIL PROTECTED]
 Date: 2007/04/10 Tue AM 10:17:42 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Flash and needed computer specs
 
 A bit weird to ask such a lame question...
 But my co-worker has to order some working stations for more flash (game) 
 developers.. and was wondering what are handy computer specs for such.
 
 Especially what reduces large compiling time (besides using flasc and handy 
 file seperation and such).
 
 Does anyone have an opinion.. or if it's an old subject.. a link?
 
 With kind regards,
 
 
 Dennis 
 I Sioux
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Window component scrolling...am I insane?

2007-04-07 Thread John Mark Hawley
Do you happen to have a trick you can share for sizing a window properly 
when the scrollPane's scroll policies are set to auto? I can only seem 
to get things working properly if the vScrollPolicy is auto and the 
hScrollPolicy is off. (I want the window so it should just fit around 
the loaded content of the scrollPane if the width and height are below a 
given maximum size, only scrolling if necessary.)


-Mark Hawley

Merrill, Jason wrote:

I've never heard of Window having scroll features.  I've always placed a
list, datagrid or scrollpane on it.  I know that doesn't help you much
though as it sounds.

Jason Merrill
Bank of America  
GTO Learning  Leadership Development

eTools  Multimedia Team


 

  

-Original Message-
From: [EMAIL PROTECTED] 
[mailto:[EMAIL PROTECTED] On Behalf 
Of John Mark Hawley

Sent: Thursday, April 05, 2007 5:58 PM
To: flashcoders@chattyfig.figleaf.com
Subject: [Flashcoders] Window component scrolling...am I insane?

Have I gone completely mad, or does the v2 Window component 
really not support scrolling the contents? It extends 
ScrollView, and the guts of it make several references to the 
scrollbars, yet there seem to be no actual scrollbars present.


I've wasted a good deal of time today trying to throw a 
ScrollPane in there and getting it to work properly, but the 
automatic resizing ScrollPane does is causing me angina. 

So...am I missing something? Does anyone have a free/oss 
scrolling Window component floating around?


--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Enumerating properties from outside an instance.

2007-04-05 Thread John Mark Hawley
You can do it; you must have an error in your code.

for (var prop:String in clip)
{
var subObject:Object = clip[prop];
for (var otherProp:String in subObject)
{
trace(otherProp + :  + subObject[otherProp]);
}
}

It should look like that, but not horrible.

 
 From: Jason Lutes [EMAIL PROTECTED]
 Date: 2007/04/05 Thu PM 04:10:48 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Enumerating properties from outside an instance.
 
 I can't figure this out.
 
 I can set up a for...in loop to show me all the (enumerable) properties -- 
 variables and functions -- on the MovieClip instance where I place the loop, 
 but I can't enumerate properties for other (nested) MovieClip instances by 
 simply changing the focus object of that same for...in loop.
 
 Why not?
 
 If I move the enumerating loop into the nested clips it works as expected.
 
 
 -
 Jason
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Window component scrolling...am I insane?

2007-04-05 Thread John Mark Hawley
Have I gone completely mad, or does the v2 Window component really not support 
scrolling the contents? It extends ScrollView, and the guts of it make several 
references to the scrollbars, yet there seem to be no actual scrollbars present.

I've wasted a good deal of time today trying to throw a ScrollPane in there and 
getting it to work properly, but the automatic resizing ScrollPane does is 
causing me angina. 

So...am I missing something? Does anyone have a free/oss scrolling Window 
component floating around?

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Delegate Class Scoping self instantiated

2007-04-03 Thread John Mark Hawley
This looks like a lot of very strange stuff is going on in the design of this 
code. I think you should explain what you want to do at a very high level so we 
can see if there is a better and simpler way to accomplish it. (I can't figure 
out where the Delegate mentioned in the subject line is coming from, either.)

 
 From: Helmut Granda [EMAIL PROTECTED]
 Date: 2007/04/03 Tue AM 08:38:08 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Delegate Class Scoping self instantiated
 
 So I figured it out or at least I think I did,
 
 private var target: myClass;
 
 function myClass(){
 
  target = this;
 }
 
 now I can reference to properties within a class without breaking the app.
 So in the same lines, is there anyway to code the classe so that we don't
 have to reference to the properties and methods within the class without
 having to say
 
 target.objectA._x = 130;
 
 but just have
 
 objectA._x = 130;
 
 Thanks
 -h
 
 On 4/3/07, Helmut Granda [EMAIL PROTECTED] wrote:
 
  Oh, and I forgot an important point, the reson why I want to find the
  scope of the class is because inside the class there are variables that talk
  to each other and I can have them talk back and forth like this
 
  _level0.instance1.myVariable = blah;
 
  but this of course wont work when the movie is loaded into a new movie
  because the reference will be lost and changes to
 
  _level0.movieHolder.instance1.myVariable = blah;
 
  and of course it breaks the app.
 
  Thanks again,
  -h
 
  On 4/3/07, Merrill, Jason [EMAIL PROTECTED] wrote:
  
   Classes don't know their own scope, they are oblivious to anything
   outside of them, (unless of course you import some other class - then
   they know what the other class does, but still don't have any scope
   reference).  What are you trying to do?
  
   Jason Merrill
   Bank of America
   GTO Learning  Leadership Development
   eTools  Multimedia Team
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto: [EMAIL PROTECTED] On Behalf
   Of Helmut Granda
   Sent: Tuesday, April 03, 2007 9:05 AM
   To: Flashcoders mailing list
   Subject: [Flashcoders] Delegate Class Scoping self instantiated
   
I understand that when instantiating a class you can set the
   scope where the instance is going to run, but how about when
   we dont actually instantiate the class on the timeline but we
   just link the class directly to the items on the stage, how
   is the scope treated in this case? I assume the class has to
   be instantiated on itself or do we need a separate class to
   keep track of this item?
   
   TIA
   ___
   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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] PopUpManger window not modal

2007-04-02 Thread John Mark Hawley
You can poke around in mx.controls.Alert for some modal-making code, then 
extend Window using it. It's got another variation on the 
big-invisible-button-behind-the-clip trick.

 
 From: Merrill, Jason [EMAIL PROTECTED]
 Date: 2007/04/02 Mon AM 10:18:46 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] PopUpManger window not modal
 
 Yes, that is true - that's a limitation of setting enabled = false.
 There is no other way around it I have found with the popup manager, so
 I have just accepted that fact.  You can make your own close button if
 you choose, that's what I do. But it DOES make it modal wich is nice.
 Saves a ton of coding having it be modal.
 
 Jason Merrill
 Bank of America  
 GTO Learning  Leadership Development
 eTools  Multimedia Team
 
 
  
 
 -Original Message-
 From: [EMAIL PROTECTED] 
 [mailto:[EMAIL PROTECTED] On Behalf 
 Of Matthew Ganz
 Sent: Monday, April 02, 2007 11:12 AM
 To: flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] PopUpManger window not modal
 
 that kinda works in the sense that i can't interact with 
 anything behind it but now i can't drag my window either and 
 the close button also becomes disabled.
 - Original Message -
 From: Merrill, Jason [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Monday, April 02, 2007 9:45 AM
 Subject: RE: [Flashcoders] PopUpManger window not modal
 
 
  Set enabled = false on the Popup window and it should be modal.
 
  Jason Merrill
  Bank of America
  GTO Learning  Leadership Development eTools  Multimedia Team
 
 
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf
 Of Matthew Ganz
 Sent: Saturday, March 31, 2007 9:35 AM
 To: Flashcoders mailing list
 Subject: [Flashcoders] PopUpManger window not modal
 
 hi.
 
 am i correct in assuming that when i create a new Pop up
 window using the PopUpManager via:
 
 myWindow =
 mx.managers.PopUpManager.createPopUp(_root,mx.containers.Windo
 w,true,{title:Search Criteria,contentPath:searchCriteria});
 
 ...and set it to be modal via the true arg that you
 shouldn't be able to interact with anything behind it?
 
 my problem is that i have a combobox that i'm able to open up
 behind this window. anyone experience s/thing like this before?
 
 thanks for any helpful tips.
 
 matt.
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] .aso cache frustration

2007-03-20 Thread John Mark Hawley
Are you sure you just haven't written another class with the same name higher 
up in the include paths?

 
 From: Merrill, Jason [EMAIL PROTECTED]
 Date: 2007/03/20 Tue AM 11:03:32 CST
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] .aso cache frustration
 
 So I am updating an AS 2.0 class file I wrote last fall, and when I go
 to publish the .swf, I get the classic problem where the .swf doesn't
 update with the new code in the class.  I verified it by commenting out
 everything but the constructor which only contains the trace statement.
 So I figured, it was just a simple matter of deleting the .ASO files
 because Flash was still caching my old .as file. But no luck.  I also
 verified all my classpaths were correct and pointing to the right parent
 directory where the class file lives as a package.  The only way I can
 get the new code to get injected into this .swf is to name the class and
 file something else completely different and then import that into my
 .swf instead.
 
 Has anyone fixed this issue before? (and please don't tell me to use
 MTASC instead - had enough problems with that which I plan to tackle
 later :) )  Deleting ASO files (at least from the Flash 8 IDE option)
 doesn't seem to do the trick.  Do I need to manually hunt down these old
 .aso files?  Thanks.
 
 Jason Merrill
 Bank of America  
 Global Technology  Operations
 Learning  Leadership Development 
 eTools  Multimedia Team
 
 
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Print a big dynamic text on multiple pages

2007-02-08 Thread John Mark Hawley
You have to print the text using an embedded font, or Flash will screw up the 
scroll properties on the print and you'll end up repeating a few lines of text 
from page to page.

 
 From: Flap Flap [EMAIL PROTECTED]
 Date: 2007/02/08 Thu AM 08:46:06 CST
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Print a big dynamic text on multiple pages
 
 Hi there,
 
 We have a big dynamic text to print so he must be on several pages.
 
 We make some tests by using the scroll properties (we print, we scroll of
 the number of lines printed and print again to the end of the text) the
 display is good but at print some of line of the first page come to the
 second page, wich he's weird because display is good... It seems that flash
 recaculcate the scroll for the print ?
 
 Any clue to come around this bug or some pieces for print a big text ?
 
 Thanks for any help
 
 -- 
 Flapflap
 http://www.kilooctet.net (Dev Blog Flash Fr)
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Changing the computer code of a swf file?

2007-02-08 Thread John Mark Hawley
You could open it up with a hex editor and poke at it if you really knew what 
you were doing. Otherwise, your best bet is to edit the FLA and republish. If 
you can't do that, you'll have to decompile, edit *that* FLA, and republish.

 
 From: Dennis - I Sioux [EMAIL PROTECTED]
 Date: 2007/02/08 Thu AM 10:11:38 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Changing the computer code of a swf file?
 
 Hey guys,
 
 Just a long shot..
 
 But i had a request if it was possible to change the file source from the 
 swf... the code you see when you open a swf in notepad :)
 
 This to ad a (Security/affiliate) var.
 
 
 With kind regards,
 
 
 Dennis
 -- 
 This message has been scanned for viruses and
 dangerous content by MailScanner, and is
 believed to be clean.
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Shorhand for if statement without else statement

2007-01-26 Thread John Mark Hawley
For that specific example, you can usually turn lines like

return object ? true : null;

into

return Boolean( object );

as long as object != 0 and your code doesn't mind getting a false instead of a 
null. Most objects, as long as they exist, evaluate to Boolean true.

Really, though, the ternary operator is confusing enough as is. It tends to be 
a lot easier to read and maintain plain old if-statements in the long run.

-John Mark Hawley


 
 From: Helmut Granda [EMAIL PROTECTED]
 Date: 2007/01/26 Fri PM 03:01:25 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Shorhand for if statement without else statement
 
 does anybody knows if there is any short hand for if statement without the
 else statement?
 
 at the moment I am using
 
 object ? true : null;
 
 thanks...
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] how to tell if you're running in the ide

2007-01-26 Thread John Mark Hawley
You can also set up your code along these lines:

var inTestMovie:Boolean = false;
trace( inTestMovie = true );

if (inTestMovie)
{
// do wacky test movie stuff
}
else
{
// do normal stuff
}

Then you can just turn off trace statements when you want to see the 'normal' 
behavior, and leave them on when you want your 'test movie' behavior. You're 
probably turning off trace statements on your deliverables anyway.

If you do a done of stuff like this, though, it might be best to use a 
preprocessor on your source and have it dump out two different code branches 
for you. (I don't have any recommendations on AS preprocessors; I had to throw 
one together in Perl at work myself.)

-John Mark Hawley


 
 From: Chuck Hoffman [EMAIL PROTECTED]
 Date: 2007/01/26 Fri AM 08:59:59 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] how to tell if you're running in the ide
 
 I've occasionally used the trick of checking whether this._url begins
 with file:  Doesn't exactly tell you if you're running in the IDE, but
 does tell you whether it's running locally on your machine or in a
 browser, from a web server.
 
 
CHUCK HOFFMAN
 PROGRAMMER
 T8DESIGN.COM | P 319.266.7574 - x150 | 877.T8IDEAS | F 888.290.4675
   
 
 This e-mail, including attachments, is covered by the Electronic
 Communications Privacy Act, 18 U.S.C. 2510-2521, is confidential, and
 may be legally privileged. If you are not the intended recipient, you
 are hereby notified that any retention, dissemination, distribution, or
 copying of this communication is strictly prohibited. Please reply to
 the sender that you have received the message in error, and then please
 delete it. Thank you.
 
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Josh
 Santangelo
 Sent: Thursday, January 25, 2007 8:41 PM
 To: Flashcoders mailing list
 Subject: [Flashcoders] how to tell if you're running in the ide
 
 Is there a way for a SWF to know if it's running in the test movie  
 environment vs the browser or standalone players? I often have a need  
 to compile in different settings in test-movie than I do for  
 deployment, and have to manually remember to take them out before  
 shipping a build. Or is there a more elegant way to handle that sort  
 of thing?
 
 -josh
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Skinning buttons Part II

2006-12-26 Thread John Mark Hawley
You don't normally need to do any of those extra steps. Something else is hosed.

 
 From: Mendelsohn, Michael [EMAIL PROTECTED]
 Date: 2006/12/26 Tue AM 08:23:55 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Skinning buttons Part II
 
 I just discovered that you have to add mx.skins.SkinElement to the AS2
 class field in the linkage dialog box and an onClipEvent(initialize)
 function to the button instance to assign it skins.  But, does this code
 have to be there for every button instance?  There's got to be a more
 streamlined way, right?
 
 - MM
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Skinning buttons Part II

2006-12-26 Thread John Mark Hawley
That might be it -- themes are wild and woolly things I try not to fuss with 
too much.

 
 From: Mendelsohn, Michael [EMAIL PROTECTED]
 Date: 2006/12/26 Tue AM 09:37:35 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Skinning buttons Part II
 
 Could it have something to do with the fact that I imported the Halo
 themes folder into my library?
 
 Thanks,
 - MM
 
 
 
  You don't normally need to do any of those extra steps. Something else
 is hosed.
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] XRay and projectors

2006-12-26 Thread John Mark Hawley
Am I missing something here? I can't get XRay to successfully take snapshots of 
a Flash Projector. It sure seems like it ought to work, but I'm always told 'No 
swf is available to connect with.'

I *do* get log messages from the projector. Anyone more familiar with this 
situation on the job today?

-mark

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] XRay and projectors [SOLVED]

2006-12-26 Thread John Mark Hawley
D'oh. I forgot to mention that I was using the Zinc wrapper. I managed to 
discover a fix here:

http://www.mdmforum.com/forum/index.php?showtopic=16240b=1st=p=#entry

-mark

 
 From: John Mark Hawley [EMAIL PROTECTED]
 Date: 2006/12/26 Tue PM 02:40:33 CST
 To: Flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] XRay and projectors
 
 Am I missing something here? I can't get XRay to successfully take snapshots 
 of a Flash Projector. It sure seems like it ought to work, but I'm always 
 told 'No swf is available to connect with.'
 
 I *do* get log messages from the projector. Anyone more familiar with this 
 situation on the job today?
 
 -mark
 
 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Complex objects in a DataProvider

2006-11-14 Thread John Mark Hawley
I'm about to go ape over this, and strongly suspect I'm missing an easy fix.

I have an Array of complex objects which I want to display in a DataGrid. I 
assign the array to the DataGrid's dataProvider. As expected, the properties of 
the complex objects appear in the DataGrid.

However, what I want is to be able to see the results of certain method calls 
on the objects in my dataProvider. Is there some way to accomplish this feat 
without going berserk?

-Mark

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Find item in array

2006-09-19 Thread John Mark Hawley
Unless the loop is a proven bottleneck, please don't use that while loop. I see 
enough mystical journeys going through other people's code, I'd hate to start 
seeing that floating around all over the place. Premature 
optimization...evil...etc Pity the Java programmers who wander over into 
AS2 and 3 land and have to squint at oddball loops.
 
 
 From: Steven Sacks | BLITZ [EMAIL PROTECTED]
 Date: 2006/09/18 Mon PM 11:27:33 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] Find item in array
 
 There has been extensive testing on this (search the archives) and it's
 been proven to my satisfaction that pre-decrementated loops are
 consistently faster than post-decremented loops, and specifically that
 while (--i -(-1)) is faster than while (i--), less p-code or not.
 
 To the point that it's more readable, that's like saying that you prefer
 quarter notes instead of sixteenth notes when reading music.  Once you
 write while (--i -(-1)) a bunch, you have no trouble reading it.  It's a
 hell of a lot easier to read than the fastest for loop syntax.
 
 for (var i = myArray.length; --i -(-1); ) {}
 
 I mean, if you find inline conditionals or non-braced if statements hard
 to read, does that mean you shouldn't write them or that you should
 learn to write them so you can learn to read them.
 
 I didn't like mustard when I was younger.  Does that mean I shouldn't
 ever like mustard?   ;)
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Q:Reduce file size of mx.transitions.Tween ??

2006-09-07 Thread John Mark Hawley
Steal the actual math from the Easing classes you want to use and shoehorn them 
into ugly, small onEnterFrame functions.

 From: [EMAIL PROTECTED]
 Date: 2006/09/07 Thu AM 08:47:29 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Q:Reduce file size of mx.transitions.Tween ??
 
 Hi
 Working on a project where file size is important...and the built in 
 mx.transitions.Tween comes in at over 6k.
 
 Any suggestions to reduce the size?
 
 Thanks!
 Jim bBachalo 
 [e] jbach at bitstream.ca
 [c] 416.668.0034
 [w] www.bitstream.ca
 
 ...all improvisation is life in search of a style.
  - Bruce Mau,'LifeStyle'
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] ComboBox,Depth, Draw API - Bug?

2006-09-07 Thread John Mark Hawley
 way to get the
  comboBox's
   dropdown in front of drawn content on mc while using
   getNextHighestDepth() for mc?
  
   Jason Merrill
   Bank of America
   Learning  Organization Effectiveness - Technology Solutions
  
  
  
  
  
   ___
   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
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Remote access of local files: Possible anymore?

2006-09-07 Thread John Mark Hawley
I am looking for a way to get at some local SWFs from a remote HTML page. 
(Basically, I want to be able to offer high-quality installable assets on CD 
that can be used instead of the remote assets in case the user has a slow 
internet connection.) After a few failed attempts, I came across this article:

http://www.actionscript.com/flashweek/0361.html

It sounds as though what it describes is exactly what I'm after, but since it 
dates back to 2002 and I can find no other references to the technique, I doubt 
it works anymore and can't figure out a way to duplicate it.

So far I've attempted the following:

1. embedding a flash movie with a file:/// source
2. using javascript to jump to a locally HTML file with the local flash 
embedded within it
3. using an IFRAME loading the local content
4. having a remote SWF try to load a local SWF (with all combinations of 'allow 
local'/'allow remote')

All have failed in at least IE or Firefox. Does anyone know another option that 
doesn't seem incredibly fragile?

-mark


--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Zinc Mirage Licence Protector

2006-08-29 Thread John Mark Hawley
Has anyone here attempted using these two beasts in conjunction to safeguard a 
Flash-y CD?

-mark hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] oop question kind of...

2006-08-21 Thread John Mark Hawley
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] [:::] appending html to a var for display not

2006-08-15 Thread John Mark Hawley
Do you have the italic and bold versions of the font used in the field in your 
library, if you have embedFonts set to true?

 
 From: dnk [EMAIL PROTECTED]
 Date: 2006/08/15 Tue PM 05:13:40 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] [:::] appending html to a var for display not
   working and code not runnign as expected.
 
 dnk wrote:
 
  And to top it off - no matter what my text field does not have the HTML 
  loaded into it.
 
 
 
 I wanted to thank everyone for their great help in explaining the other 
 part of this original post regarding the testing... now i just wanted to 
 touch on the other issue i was still having with this
 
 I was trying to assign html to an html text field.. and for some reason 
 it comes up as empty - even though ha trace of the same var holding the 
 html shows all my results. I checked and double checked, and it is set 
 to html, set to multi line.
 
 
 ideas on this one?
 
 
 
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Can't access mc

2006-08-11 Thread John Mark Hawley
Class 'linker' is not dynamic. This means that unless you add something like

private var theClip:MovieClip;

(or:

dynamic class linker extends MovieClip)

to your class definition, you can't reference it within the class.


 
 From: Mendelsohn, Michael [EMAIL PROTECTED]
 Date: 2006/08/11 Fri AM 08:47:08 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Can't access mc
 
 Hi list...
 
 I'm trying to access a mc within a mc in my class as follows:
 
 class linker extends MovieClip {
   function linker() {
   trace(theClip);
   }
 }
 
 The linker clip is on the stage, and there's a mc within it called
 theClip.  I get the error There is no property with the name
 'theClip'.  What am I missing to access it?
 
 Thanks,
 - MM
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] |:::| can you write dynamic meathods in a class?

2006-08-11 Thread John Mark Hawley
com.dynamicflash.utils.Delegate is the other Delegate class that allows 
argument passing.

http://dynamicflash.com/2005/02/delegate-class-refined/

-mark

 
 From: Bbt Lists [EMAIL PROTECTED]
 Date: 2006/08/11 Fri PM 12:54:04 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] |:::| can you write dynamic meathods in a class?
 
 Ramon Miguel M. Tayag wrote:
  Sorry, I'm using a custom delegate class.. I completely forgot.  Let
  me dig up that post that has what you need...
 
 I was just reading a reference to a proxy class that does similar to 
 delegate, but allows args to the functions. So I was not entirely insane 
 (as in not knowing about passing args with delegate).
 
 Curious to see if you are referencing the same class.
 
 And also I still have my question about re-assigning a new arg.
 
 -- 
 dnk
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] x,y coordinates of a character

2006-08-02 Thread John Mark Hawley
Can you make your life easier and use a monospace font?

 
 From: Robert Gordon [EMAIL PROTECTED]
 Date: 2006/08/02 Wed AM 09:12:10 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] x,y coordinates of a character
 
 Hey List!
 
 I'm trying to find a way to determine the stage coordinates of a character
 within a dynamically constructed text field (multiline, wrapping, html
 formated). I've experimented with Erik's TextFieldExtension - but the html
 formatting  wrapping seem to throw it off. Anyone have another solution?
 One thought I had was to recolor the field to white, colour the character of
 interest to non-white, convert to a bitmap object and walk it pixel by
 pixel. Can't imagine that's going to be very efficient though...
 
 Thanks in advance for any suggestions,
 
 r o b
 
 
 | Robert Gordon
 | The Article 19 Group Inc.
 | phone: 514.938.8512
 | email: [EMAIL PROTECTED]
 | http://www.article19.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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] x,y coordinates of a character

2006-08-02 Thread John Mark Hawley
I think you're stuck with either mucking with bitmaps or measuring the width of 
each character, the kerning between each pair, the line heights...(hope you at 
least stick with one font size and one font for these text fields if you're 
working in Flash 7 or lower, and forget about Unicode)

 
 From: Robert Gordon [EMAIL PROTECTED]
 Date: 2006/08/02 Wed AM 09:56:38 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] x,y coordinates of a character
 
 Wish I could ... But I need the formatting...
 
 r o b
 
 
 | Robert Gordon
 | The Article 19 Group Inc.
 | phone: 514.938.8512
 | email: [EMAIL PROTECTED]
 | http://www.article19.com
 
 
  From: John Mark Hawley [EMAIL PROTECTED]
  Organization: Nilbog
  Reply-To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Date: Wed, 2 Aug 2006 9:17:15 -0500
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Subject: Re: [Flashcoders] x,y coordinates of a character
  
  Can you make your life easier and use a monospace font?
  
  
  From: Robert Gordon [EMAIL PROTECTED]
  Date: 2006/08/02 Wed AM 09:12:10 CDT
  To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
  Subject: [Flashcoders] x,y coordinates of a character
  
  Hey List!
  
  I'm trying to find a way to determine the stage coordinates of a character
  within a dynamically constructed text field (multiline, wrapping, html
  formated). I've experimented with Erik's TextFieldExtension - but the html
  formatting  wrapping seem to throw it off. Anyone have another solution?
  One thought I had was to recolor the field to white, colour the character 
  of
  interest to non-white, convert to a bitmap object and walk it pixel by
  pixel. Can't imagine that's going to be very efficient though...
  
  Thanks in advance for any suggestions,
  
  r o b
  
  
  | Robert Gordon
  | The Article 19 Group Inc.
  | phone: 514.938.8512
  | email: [EMAIL PROTECTED]
  | http://www.article19.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
  
  
  --
  John Mark Hawley
  The Nilbog Group
  773.968.4980 (cell)
  
  ___
  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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Row Height in Tree Components

2006-07-27 Thread John Mark Hawley
I'm having a problem setting the row height in a Tree component. Since Tree 
extends List, you'd think tree.rowHeight = 50 or tree.setRowHeight( 50 ) would 
do the trick, but neither seems to be doing squat.

I tried using icons of varying heights and failed to see any corresponding 
change in row heights -- just icons that overlap each other.

Can anyone point me int he right direction here? Do I have to write a 
cellRenderer to accomplish something this dinky?

-Mark

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Array Empowerment

2006-07-26 Thread John Mark Hawley
One thing about putting these methods into a class -- it would be nice if they 
were a mixin so only Arrays that actually needed the methods got them. (Mixing 
into the Array prototype would add them to all Arrays if a user decided that 
would be worthwhile.)

I occasionally make utility classes (ArrayUtil) and exporter classes 
(ArrayUtilExporter) -- the utility class has methods like:

ArrayUtil.contains( toCheck:Array, item:Object ) :Boolean

and the exporter class is a mixin that adds the ArrayUtil methods to a given 
array.

-mark

 
 From: Chris Hill [EMAIL PROTECTED]
 Date: 2006/07/26 Wed PM 01:20:15 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] Array Empowerment
 
 Found a couple problems with sum():
 First off, instanceof works with *objects* not primitives, and so you 
 must do:
 
 var a:Array = new Array(new Number(2),new Number(3),new Number(54),new 
 Number(6),new Number(7),new Number(8),new Number(9));
 
 instead of say:
 
 var b:Array = new Array(2,3,54,6,7,8,9);
 
 So you *have* to check with typeof for primitives, then instanceof for 
 objects. Horrible, I know.
 
 Additionally, it would help to have a return statement :D.
 
 Array.prototype.sum = function() {
 var x = 0;
 var a = this.length;
 while (--a -(-1)) {
 var num = this[a];
 if (typeof(num) == number || num instanceof Number) {
 x += num;
 } else {
 return undefined;
 }
 }
 return x;
 };
 
 //Here are the test cases i wrote to verify functionality
 
 var a:Array = new Array(new Number(2),new Number(3),new Number(54),new 
 Number(6),new Number(7),new Number(8),new Number(9));
 var b:Array = new Array(2,3,54,6,7,8,9);
 var c:Array = new Array(2,new Number(3),new Number(54), 6,7,8,9);
 var d:Array = new Array(2,3,4,new Number(54),6,7,8,9); //should return 
 undefined
 trace(a.sum());
 trace(b.sum());
 trace(c.sum());
 trace(d.sum());
 
 
 Lastly, there were a couple places where you did not use 'var' and the 
 compiler caught it when I encapsulated your AS 1 into a class. I'll post 
 if you like.
 
 Peace
 C
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Re-parenting movie clips in AS 2.0

2006-07-25 Thread John Mark Hawley
Simple movies can be almost re-parented by deep-copying all the data and 
methods from one movie into another, but you'll run into problems if you try 
this with MovieClip subclasses that require constructor calls, and things 
rapidly get complicated as the clip you need to reparent gets more complicated. 
There is no magic bullet for this. (But there's always another way to 
accomplish whatever you're trying to do.)

 
 From: Jason Lutes [EMAIL PROTECTED]
 Date: 2006/07/25 Tue AM 09:02:12 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Re-parenting movie clips in AS 2.0
 
 Surely there is a work-around, however convoluted, for assigning a movie
 clip instance to some other parent movie clip in AS 2.0. Does someone know
 of a trick? It can involve undocumented features, removing/attaching...
 whatever.
 
 Much appreciated.
 
 
 -
 pixelTwiddler, a.k.a. Jason
 
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] exporting dynamic swf art to other apps

2006-06-30 Thread John Mark Hawley
How about trying to print the _root as a pdf using {printAsBitmap: true}? 
That's supposed to play well with transparency, innit?

 
 From: Jolyon Russ [EMAIL PROTECTED]
 Date: 2006/06/30 Fri AM 10:39:24 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] exporting dynamic swf art to other apps
 
 This is a method used a lot by Joshua Davis, I took his FITC boot camp
 course and no, you can't retain the alpha values and presumably filter (not
 tried w/filters).
 
 I think you'll find that because the alpha and filter properties are applied
 at run-time the pdf you output will only embed the standard library symbols
 without any of this information.
 
 Also, you might find you get better result printing as .ps files,
 Illustrator will like them more than pdf but it still won't solve your
 problem, sadly.
 
 Jolyon
 
 PS. First reply so :-P
 
 On 6/30/06, Mason Wendell [EMAIL PROTECTED] wrote:
 
  Thanks a lot. I haven't explored decompilers. I'll check some out and see
  what my options are. Has anyone else tried this method? Any
  recommendations
  for a good decompiler or technique?
 
  On 6/30/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote:
  
   I think the issue you'll find here is that, the work area of the Flash
   IDE is not the Flash player.  Any content created in the IDE can be made
   use of however Adobe see fit as it's an IDE, but the player is cut down
   for file size and speed purposes.
  
   Your best bet is to either look up exporting frames from an SWF in the
   IDE itself, or lookup other IDE's / decompilers and see if they support
   it.
  
   Lee
  
  
  
  
   -Original Message-
   From: [EMAIL PROTECTED]
   [mailto:[EMAIL PROTECTED] On Behalf Of Mason
   Wendell
   Sent: 30 June 2006 15:36
   To: Flashcoders@chattyfig.figleaf.com
   Subject: [Flashcoders] exporting dynamic swf art to other apps
  
   Hey all,
  
   I'm generating art in actionscript that I need to export from my swf and
   bring into Illustrator or Photoshop for final tweaks before sending it
   out
   to a large format printer. I know you can export from the IDE but since
   everything I'm using is dynamic I can't use those functions.
  
   My current best method is to print the swf to a pdf from the player and
   open
   that pdf in Illustrator. Unfortunatly I lose all my alpha and filter
   data in
   this process, and since I might have 1000 or more instances in my export
   those values are nearly impossible to recreate. I've tried adjusting the
   pdf
   settings but I haven't found the right combo yet.
  
   Does anybody here know of a method to export still frames (I'm not
   trying to
   export video or motion here) from the swf in a vector format?
  
   This issue has been nagging me for quite a while now, and I haven't
   found
   any tutorials or tips online on how to do it. I'd really appreciate any
   feedback from this forum. Thanks a lot.
  
   -=Mason
   ___
   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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] exporting dynamic swf art to other apps

2006-06-30 Thread John Mark Hawley
Going the PrintJob route is going to flatten everything no matter what, unless 
your layers are in separate movieclips that you can print to PDF separately, 
but you can always scale your clip up to the required resolution, print, then 
scale back down again...

 
 From: Mason Wendell [EMAIL PROTECTED]
 Date: 2006/06/30 Fri PM 01:50:07 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: Re: [Flashcoders] exporting dynamic swf art to other apps
 
 John: I just played around with this. Unfortunately it flattens all the
 layers to screen resolution and I need to blow it up for print. It also
 flattens it to the background, and Ideally I'm looking for a more flexible
 solution.
 
 Joylon: That's a good point about the pdf writer only having the ability to
 pull the library assets, and not the runtime alterations. I hadn't put that
 together. It explains why I had no luck with different pdf settings.
 
 I'm downloading some decompiler trials, and hopefully I'll have more luck
 with one of those.
 
 
 On 6/30/06, John Mark Hawley [EMAIL PROTECTED] wrote:
 
  How about trying to print the _root as a pdf using {printAsBitmap: true}?
  That's supposed to play well with transparency, innit?
 
  
   From: Jolyon Russ [EMAIL PROTECTED]
   Date: 2006/06/30 Fri AM 10:39:24 CDT
   To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
   Subject: Re: [Flashcoders] exporting dynamic swf art to other apps
  
   This is a method used a lot by Joshua Davis, I took his FITC boot camp
   course and no, you can't retain the alpha values and presumably filter
  (not
   tried w/filters).
  
   I think you'll find that because the alpha and filter properties are
  applied
   at run-time the pdf you output will only embed the standard library
  symbols
   without any of this information.
  
   Also, you might find you get better result printing as .ps files,
   Illustrator will like them more than pdf but it still won't solve your
   problem, sadly.
  
   Jolyon
  
   PS. First reply so :-P
  
   On 6/30/06, Mason Wendell [EMAIL PROTECTED] wrote:
   
Thanks a lot. I haven't explored decompilers. I'll check some out and
  see
what my options are. Has anyone else tried this method? Any
recommendations
for a good decompiler or technique?
   
On 6/30/06, Lee McColl-Sylvester [EMAIL PROTECTED] wrote:

 I think the issue you'll find here is that, the work area of the
  Flash
 IDE is not the Flash player.  Any content created in the IDE can be
  made
 use of however Adobe see fit as it's an IDE, but the player is cut
  down
 for file size and speed purposes.

 Your best bet is to either look up exporting frames from an SWF in
  the
 IDE itself, or lookup other IDE's / decompilers and see if they
  support
 it.

 Lee




 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of
  Mason
 Wendell
 Sent: 30 June 2006 15:36
 To: Flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] exporting dynamic swf art to other apps

 Hey all,

 I'm generating art in actionscript that I need to export from my swf
  and
 bring into Illustrator or Photoshop for final tweaks before sending
  it
 out
 to a large format printer. I know you can export from the IDE but
  since
 everything I'm using is dynamic I can't use those functions.

 My current best method is to print the swf to a pdf from the player
  and
 open
 that pdf in Illustrator. Unfortunatly I lose all my alpha and filter
 data in
 this process, and since I might have 1000 or more instances in my
  export
 those values are nearly impossible to recreate. I've tried adjusting
  the
 pdf
 settings but I haven't found the right combo yet.

 Does anybody here know of a method to export still frames (I'm not
 trying to
 export video or motion here) from the swf in a vector format?

 This issue has been nagging me for quite a while now, and I haven't
 found
 any tutorials or tips online on how to do it. I'd really appreciate
  any
 feedback from this forum. Thanks a lot.

 -=Mason
 ___
 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

[Flashcoders] TextField PrintJob oddities

2006-06-29 Thread John Mark Hawley
I'm having an odd problem with a wrapper I've written for the PrintJob class. 
One of the methods of the wrapper, printString(), takes a string of arbitrary 
length and is *supposed* to print all of it, breaking it over pages as needed. 
It *almost* works, and I need some assistance figuring out where the real 
problem is. Here's how it works now:

1. start the printJob so we have access to pageWidth and pageHeight

2. create a temporary TextField with the dimensions of pageWidth and 
pageHeight, with multiline and wordWrap on, all other settings as default

3. put the string into the TextField

4. get the number of pages and number of lines per page by setting scroll=1 and 
checking bottomScroll and maxscroll

5. add enough newline padding to the end of the string so that the last page 
can scroll up high enough

5. for each page:
a.  set scroll = loopIndex * linesPerPage + 1
b.  addPage( tempTextField )

6. send the printJob to the printer

Sound good? Good. Now, when I look at my temporary text field on screen, I see 
that, with my printer settings and default formatting, 50 lines are visible on 
screen at a time. *However* when I look at my printouts, I get 55 lines per 
page! (This is a problem because the code *thinks* only 50 lines fit on a page, 
so the pagination goes screwy.) Oh, and this happens even if I printAsBitmap.

Is there an alternate approach I'm missing? Is the size difference between 
screen and print text linear? Should I be fooling around with different 
TextFormats to try applying to my temporary TextField? I welcome any 
suggestions.

-Mark Hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] [SOLVED]TextField PrintJob oddities

2006-06-29 Thread John Mark Hawley
Hooray for me! It looks like embedding the font and applying a TextFormat to 
the temporary TextField does the trick. Of course, now I have to ensure that 
there's a suitable font embedded in any SWF that uses this class, but I guess 
you can't have it all. Anyone else discover an alternate solution that would 
avoid this?

-mark hawley

 
 From: John Mark Hawley [EMAIL PROTECTED]
 Date: 2006/06/29 Thu PM 01:22:27 CDT
 To: Flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] TextField PrintJob oddities
 
 I'm having an odd problem with a wrapper I've written for the PrintJob class. 
 One of the methods of the wrapper, printString(), takes a string of arbitrary 
 length and is *supposed* to print all of it, breaking it over pages as 
 needed. It *almost* works, and I need some assistance figuring out where the 
 real problem is. Here's how it works now:
 
 1. start the printJob so we have access to pageWidth and pageHeight
 
 2. create a temporary TextField with the dimensions of pageWidth and 
 pageHeight, with multiline and wordWrap on, all other settings as default
 
 3. put the string into the TextField
 
 4. get the number of pages and number of lines per page by setting scroll=1 
 and checking bottomScroll and maxscroll
 
 5. add enough newline padding to the end of the string so that the last page 
 can scroll up high enough
 
 5. for each page:
 a.  set scroll = loopIndex * linesPerPage + 1
 b.  addPage( tempTextField )
 
 6. send the printJob to the printer
 
 Sound good? Good. Now, when I look at my temporary text field on screen, I 
 see that, with my printer settings and default formatting, 50 lines are 
 visible on screen at a time. *However* when I look at my printouts, I get 55 
 lines per page! (This is a problem because the code *thinks* only 50 lines 
 fit on a page, so the pagination goes screwy.) Oh, and this happens even if I 
 printAsBitmap.
 
 Is there an alternate approach I'm missing? Is the size difference between 
 screen and print text linear? Should I be fooling around with different 
 TextFormats to try applying to my temporary TextField? I welcome any 
 suggestions.
 
 -Mark Hawley
 
 --
 John Mark Hawley
 The Nilbog Group
 773.968.4980 (cell)
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] trying to call a function passed as an argument

2006-06-29 Thread John Mark Hawley
You can't pass a reference to a method call like you seem to be trying to do by 
'bar.doLast'. You *can* pass functions around, but not object methods -- they 
no longer know what object they are supposed to act on.

See:

var a:Array = [1, 2, 3];
a.shift(); // a = [2, 3];
var shiftMethod:Function = a.shift;
shiftMethod(); // a still equals [2, 3] - this did nothing

One solution would be something like this:

public function doFirst(aString:String, aBarInstance:Bar, 
aBarMethodName:String) {
 trace(the first string is +aString);
 
 aBar[aBarMethodName]();
}

This is pretty nasty, though. You should probably let us know what the effect 
you are going for is so someone can suggest a better way, probably involving 
either untangling these two objects or using mx.utils.Delegate.

-mark hawley
 
 From: Elie Zananiri [EMAIL PROTECTED]
 Date: 2006/06/29 Thu PM 02:21:47 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] trying to call a function passed as an argument
 
 Hi all,
 
 I have this method where I need to call a function passed as an argument
 (kind of like in setInterval()) and I don't understand the documentation and
 can't get it to work.
 
 First of all, I don't understand how to pass the function as a parameter.
 Am I passing a String or an actual Function object?  Can I pass a Function
 with parameters?  Do I have to write the parentheses in the parameter?
 
 Next, how do I call this function?  The Function.call() function requires a
 parameter but I don't get what it does...
 
 Thanks for the help!
 
 -Elie
 
 Here is the structure I have:
 
 class Bar {
   public Bar() {
   }
 
   public function doLast(bString:String) {
 trace(the second string is +bString);
   }
 }
 
 class Foo {
   var bar:Bar;
 
   public Foo() {
 bar = new Bar();
 doFirst(hello, world, bar.doLast);
   }
 
   public function doFirst(aString:String, bString:String,
 aFunction:Function) {
 trace(the first string is +aString);
 
 // call the second function here ???
 aFunction.call(??);
   }
 }
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [SPAM?] RE: [Flashcoders] XPcomponents set

2006-06-29 Thread John Mark Hawley
DepthManager and FocusManager cause a few headaches for people used to working 
without the MM components. Granted, nowhere near as bad as XP is sounding in 
this thread, but still...

-mark hawley

 
 From: Steven Sacks | BLITZ [EMAIL PROTECTED]
 Date: 2006/06/29 Thu PM 02:39:22 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [SPAM?] RE: [Flashcoders] XPcomponents set
 
  MM did that as well, did you say scam then too ?
 
 With the exception of the DRK series of components, MM's components came
 free with Flash.
 
 And I don't recall any MM components that caused other things to break
 in your application.  The components themselves were buggy and certain
 components didn't play nicely with others, but they didn't require you
 to build your application in a very specific way.
 
 The scam is not that the XP Components break native Flash code.  The
 scam is that they're not components, it's an entire architecture you
 must adhere to but they call them components on their website, IMPLYING
 that they are COMPONENTS not a FRAMEWORK.
 
 XPFramework would be honest.
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Q:Determining timeline scope from within class

2006-06-28 Thread John Mark Hawley
You can always do this in your first keyframe of your root movie:

_global.myRoot = this;

and just use _global.myRoot wherever you would have used _root. This gives you 
the slight advantage that should you later want to embed what used to be your 
root movie into another swf, all your '_root-y' method calls will still work.

Or you can do something like this:

class MyRoot
{
public static var _root:MovieClip = _root;
}

...and just have a lot of MyRoot._root calls all over the place, if that looks 
prettier than _global to you. (or hide it behind a singleton and end up with 
MyRoot.getInstance().getRoot() and blah blah blah...)

I'm not exactly sure what the problem is you're running into. _root is just 
another movie clip reference that you know will always point to something. How 
is it working differently than you expect? Having to reference _root directly 
often is generally a bad idea -- just try to pass in into whatever class(es) 
will need it when they are constructed or allow everything to reach it via a 
singleton.
Eh? Sorry, long day.

-mark hawley



 
 From: [EMAIL PROTECTED]
 Date: 2006/06/28 Wed PM 04:32:32 CDT
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Q:Determining timeline scope from within class
 
 Hi
 Normally when defining local scopes in the timeline I'll use
 
 //set local scope
 _global.localScope=this;
 
 
 However
 this doesn't seem to work if I need to call a 'timeline based' method from a 
 class.
 
 Only '_root' seems to work which I'd like to avoid using...
 
 Any suggestions?
 Thanks in advance
 Jim Bachalo
 
 [e] jbach at bitstream.ca
 [c] 416.668.0034
 [w] www.bitstream.ca
 
 ...all improvisation is life in search of a style.
  - Bruce Mau,'LifeStyle'
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
The constructor for TextFormat() would have to be called before your class was 
ready to be instantiated. Class properties can only be initialized with 
primitives outside of a constructor -- and the wierdness inherent in assigning 
arrays in a property definition means that just about all initalization of 
properties should occur either in a constructor or within an initialization 
function.

 
 From: Mendelsohn, Michael [EMAIL PROTECTED]
 Date: 2006/06/27 Tue AM 11:04:27 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] init TextFormat prop in a class
 
 Hi list...
 
 Why is it that when I try to init a prop for my class, I get this error:
 A class's instance variables may only be initialized to compile-time
 constant expressions.
 What exactly does that mean?
 
 Thanks,
 - Michael M.
 
 class test{
   private var tf:TextFormat = new TextFormat();
   function test(){
   trace(hello);
   }
 }
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
Mike Keesey hit the nail on the head. By primitives, I meant null, undefined, 
numeric, boolean, and string literals (4, true, some text). 

Literal Object and Array instances ( {}, [] ) can also work like primitives in 
a class definition, but they behave a bit oddly because they end up sitting in 
a class's prototype instead of in a class instance.

BTW, you also can't do this:
class MyClass
{
private static var kMyState:String = value; // good
private static var kMyInitialState:String = kMyState; // bad
}

You've have to write
private static var kMyInitialState:String = value;
in order to get the compiler to allow this.

-mark

 
 From: Mendelsohn, Michael [EMAIL PROTECTED]
 Date: 2006/06/27 Tue AM 11:55:41 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] init TextFormat prop in a class
 
 Thanks, Mike and John for your responses.
 John: what do you mean by primitives?
 
 - MM
 
 
 
  Class properties can only be initialized with primitives outside of a
 constructor
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] init TextFormat prop in a class

2006-06-27 Thread John Mark Hawley
You're a hundred percent correct. I must have been pulling some other 
shenanigans when I had the compiler cranking at me when I tried that about a 
year ago...sorry for the misinformation.

-mark hawley

 
 From: Yotam Laufer [EMAIL PROTECTED]
 Date: 2006/06/27 Tue PM 12:53:25 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: RE: [Flashcoders] init TextFormat prop in a class
 
  BTW, you also can't do this:
  class MyClass
  {
  private static var kMyState:String = value; // good
  private static var kMyInitialState:String = kMyState; // bad
  }
 
  You've have to write
  private static var kMyInitialState:String = value;
  in order to get the compiler to allow this.
 
  -mark
 
 I don't think you are correct on that one.
 
 class a {
   private static var kMyState:String = value;
   private static var kMyInitialState:String = kMyState;
   static function echo() {
   trace(kMyInitialState);
   }
 }
 
 b = new a();
 a.echo();
 
 // outputs: value
 
 It works well.
 
 Regards, Yotam.
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] OT: Junior Developer Flash/Flex Salary?

2006-06-20 Thread John Mark Hawley
 
 
 
 
 
  ___
  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
 
 
 
 
 
 
 --
 Radley Marx
 [EMAIL PROTECTED]
 310.220.4088
 http://www.radleymarx.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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Is Object scope lost when using Delegate?

2006-06-09 Thread John Mark Hawley
You can use com.dynamicflash.utils.Delegate instead of mx.utils.Delegate 
and pass the myNewMc clip as an argument to onMenuRelease. person13's 
Proxy class can also be used similarly.


-mark hawley

Jeff Jonez wrote:

I'm wondering if, when I use the Delegate class to set the scope of an
event handler, is it possible to reference the previous scope? My
problem is this...

I have a class which implements a menu. Each menu item is a movieclip
and I add new menu items by calling a function called addChild like
this.

var myMenu: new Menu();
myMenu.addChild( Item1 );
myMenu.addChild( Item2 );

In class Menu, the function addChild does something like this,

funciton addChild( txt:String ):Void
{
  // make new mc, with a text field and set the txt
  myNewMc.onRelease = Delegate( this, onMenuRelease );
{

function onMenuRelease( ):Void
{
  // here I want to access class variable No problem!
  // now I want to change properties of myNewMc! How do I access it?
  // If I have 12 menu items, how can I know which one was triggered
the onRelease!?

}

So, when I get to the onRelease event handler, is there a way to
reference the scope of the MC that the event hander is attached to?
Or, because I used Delegate has the mc scope been lost and I need to
somehow keep track of that by, perhaps setting a focus variable or
something...

Makes sense?

Thanks.
___
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: [Flashcoders] Re: NumericStepper in CellRender disappears and gets 256 levels of recursion...

2006-05-31 Thread John Mark Hawley

Thanks, I found mentions of this on the web but the links were busted.

Josh Santangelo wrote:

There's a multiline CellRenderer in the Flash 8 documentation.

http://livedocs.macromedia.com/flash/8/main/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=3131.html 



(Or just search CellRenderer in the Help panel.)

I made one based on this code and it worked fine, the only trick being 
setting the rowHeight of the component to the height of the largest 
row you need to display.


-josh


___
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: [Flashcoders] Get Original Variable's Name in Function?

2006-05-30 Thread John Mark Hawley
Why would you need to know the variable name? It sounds like something 
has gone heinously wrong with your code if this need is popping up.


Doug Coning wrote:

Greetings all,

Is it possible to retrieve the name of the variable passed into a
function?  For instance:

function myFunct(str:String){
// GET ORIGINAL NAME of str?
}

var foo:String = ABC;
var moo:String = DEF;
myFunct(foo);
myFunct(moo);

In the above, how can myFunct know that the first call was sent 'foo'
and the second call was sent 'moo'?

Thanks,

Doug Coning 
Senior Web Development Programmer

FORUM Solutions, LLC
 
This e-mail and any attachment(s) are intended for the specified recipient(s) only and are legally protected.  If you have received this communication in error, please reply to sender's e-mail address with notification of the error and then destroy this message in all electronic and physical forms.

___
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: [Flashcoders] Re: NumericStepper in CellRender disappears and gets 256 levels of recursion...

2006-05-30 Thread John Mark Hawley
I triple dog dare someone to post a gallery of basic CellRenderers, 
especially a multiline text field one like the one I'm going to have to 
put together tomorrow amidst much cranking that no one has posted one 
online yet that I can find via Google...don't be a chicken, some person 
with more gumption than I...


Really, CellRenderers are so annoying to put together if you don't fool 
around with DataGrids often, it would be a mammoth boon to have all the 
basic possible ones covered -- ComboBox, NumericStepper, RadioButton, 
CheckBox, etc.


grimmwerks wrote:

Curious - does anyone have a good example of a NumericStepper CellRender?
___
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: [Flashcoders] WAV to SWF Audio

2006-05-24 Thread John Mark Hawley
I believe that you can change the *.mp3 extension to just about anything else, 
and Flash will still wink at you and load it into a Sound object anyway. This 
lets you sneak around companies that block *.mp3 files. Right?

-mark hawley


 
 From: Lewis, Chuck [EMAIL PROTECTED]
 Date: 2006/05/24 Wed PM 12:44:10 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: RE: [Flashcoders] WAV to SWF Audio
 
 I am converting to SWF due to many of the corporations I do work for
 block external MP3 files from entering their network.  Trust me; I would
 like to take the easiest (MP3) route.
 
 -- Chuck
 
 -Original Message-
 From: [EMAIL PROTECTED]
 [mailto:[EMAIL PROTECTED] On Behalf Of Nick
 Weekes
 Sent: Wednesday, May 24, 2006 1:37 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] WAV to SWF Audio
 
 Why not batch convert the WAVs into mp3 using any tool you can get your 
 hands on  (Nero, MS Encoder etc), then use a bit of actionsctipt in a 
 single SWF to determine which MP3 to load.
 
 
 Lewis, Chuck wrote:
  I have over a thousand audio (WAV) files that I need to convert each
 to
  SWF.
 
  Does anyone have an idea to streamline the conversion???
 
  -- Chuck
 
 
  ___
  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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Do objects lose their class identity when they are

2006-05-19 Thread John Mark Hawley
I don't recall the semantics off the top of my head, but you must use 
Object.registerClass() in order to retain class info in your sharedObjects.

Well, whaddaya know!

http://chattyfig.figleaf.com/pipermail/flashcoders/2002-May/034342.html

...has the scoop.

-mark hawley

 
 From: Manuel Saint-Victor [EMAIL PROTECTED]
 Date: 2006/05/19 Fri AM 08:31:02 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Do objects lose their class identity when they are
   stored and retrieved from an lso?
 
 This is probably a dumb question but I haven't found an answer on Google.
 When I save a set of data to a Local Shared object do I need to create some
 sort of deserializer to get it?  I just tested some stuff from my shared
 object with a instanceof operator and it returned false.
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] xpath xml strangeness

2006-05-11 Thread John Mark Hawley
perm/item has no children with 'name' attributes. It has no children at 
all...


Kent Humphrey wrote:

ok, been banging my head against a wall for ages on this one.

These lines of code work:

menu_root = XPath.selectNodes(this, root/menu/item/@name);
trace('menu_root: ' + menu_root);

These don't:

perm_items = Xpath.selectNodes(this, root/perm/item/@name);
trace('perm_items: ' + perm_items);

The trace returns undefined.

Here is  the XML, trimmed down to the vitals:

root
menu
item name=Profiles colour=0x73556b
item name=The Salon type=content colour=0x7797ac 
height=400 filename=profiles-the-salon/
item name=Meet Michael Van Clarke type=content 
colour=0x7797ac height=400 filename=profiles-mvc/

item name=Team Profiles /
item name=Testimonials type=content height=400 
colour=0x7797ac /

/item
item name=Book Online colour=0x73
item name=Booking Form /
/item
etc etc
/menu
perm
item name=Special Offers /
item name=Book an Appointment /
item name=Register for Newsletter /
/perm
/root



Anyone have any ideas what the problem is?
___
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: [Flashcoders] How to make flash more strict with errors ?

2006-05-10 Thread John Mark Hawley
If you're writing something quick and dirty with a lot of code thrown all over 
the timeline (like an ad prototypeyou have two hours to put together), coding 
in a __resolve function on the _root (or right on the Object prototype) that 
throws errors when called can be a typo-finding lifesaver.

 
 From: Paul BH [EMAIL PROTECTED]
 Date: 2006/05/10 Wed AM 09:34:33 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] How to make flash more strict with errors ?
 
 thats a very open question, even though it may not feel like it.
 
 here are some of the things you can do to try and reduce things
 happening unexpectedly:
 
 1: In your classes make your variables / methods private unless they
 absolutely must be public.
 2: Strictly type *everything* - this may seem like a pain at first,
 but it will save you heavy pain later.
 3: This includes dispatched event Objects
 4: And elements of an array if you know (or expect) that they are all
 of the same type. By this I mean, if you are iterating through the
 elements of an array, do soemthing like this:
 
 var arrayItem:SomeItem
 var max:Number = arr.length
 for (var i:Number=0;imax;++i){
  arrayItem = SomeItem(arr[i])
 }
 5: Use Exceptions
 6: Unit test your apps.
 
 
 On 5/10/06, Nik Derewianka [EMAIL PROTECTED] wrote:
  Hi,
 
  Is there anyway to make flash actually throw errors when things go wrong.
  instead of just silently failing and pretending that everything is all okay
  ?
 
  Cheers,
  :: Nik Derewianka ::
  ___
  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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] OT: Designing in team overhead

2006-05-10 Thread John Mark Hawley
http://www.amazon.com/gp/product/0201835959/002-6472617-2448856?v=glancen=283155

Yes, there is a point on that curve where things get worse.

-mark hawley

 
 From: Sander [EMAIL PROTECTED]
 Date: 2006/05/10 Wed PM 12:47:04 CDT
 To: Flashcoders mailing list Flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] OT: Designing in team overhead
 
 I was wandering what you guys think the design overhead is when  
 working in a team, as opposed to coding a project alone. And even  
 more interesting: how does the overhead evolve as more members are  
 added to the team?
 
 02 persons 20% overhead?
 04 persons 30% overhead?
 10 persons 50% overhead?
 
 Is there a point on the curve where adding members actually slows the  
 project down? :-)
 
 Greetz,
 
 Sander.
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Duplicate Class errors

2006-04-07 Thread John Mark Hawley
Could it be that some interdependent classes are each importing all of a 
package when they only need to import a certain class from them?

I generally run into these problems when trying to run some new AsUnit 
TestCases that have sloppy imports in them (i.e.

import com.this.that.*;

when

import com.this.that.Thingy;

would do the trick)

This also tends to happen when #include-ing files that perform the import * 
maneuver.


 
 From: Sam Thorne [EMAIL PROTECTED]
 Date: 2006/04/07 Fri PM 01:00:44 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Duplicate Class errors
 
 Hi List,
 
 We've been developing an application over here and sending updates to  
 a colleague, all has been fine until he started getting compilation  
 errors.
 
 The odd thing is, the class that is supposed to be conflicting, is in  
 fact conflicting with itself.
 
  : Line 6: The name of this class,
  'com.native.components.ScreenElement',
  conflicts with the name of another class that was loaded,
  'com.native.components.ScreenElement'.
   class com.native.components.ScreenElement {
 
 Previously clearing ASO cache files worked fine, but it seems it's  
 this isn't working now either.
 Unzipping a different copy somewhere else on his machine has also  
 failed with the same error.
 
 Anyone got any idea what might be happening here?
 
 Regards,
 
 Sam Thorne
 Interaction Design
 
 Web: http://www.native.com/
 Tel: +44 (0)207 588 7970
 Fax: +44 (0)207 588 7971
 
 
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] large projects

2006-04-05 Thread John Mark Hawley
Combining a few of these large project development things, I'm thinking of 
experimenting with keeping the entire development suite (or as much of it as 
possible) under version control. Eclipse throws a lot of ephemeral files 
aroundhas anyone run into problems with multiple developers sharing a 
development environment under subversion control? (We'd be handling any 
installs that we can't shove into subversion due to registry entries or 
what-have-you with a version-controlled batch file to set up environment 
pathsto make sure that each computer has things in the same places.)

 
 From: JesterXL [EMAIL PROTECTED]
 Date: 2006/04/05 Wed AM 09:32:28 CDT
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: Re: [Flashcoders] large projects
 
 - think of using Flex instead of Flash
 
 - get a competent and accountable architect to enforce best coding practices
 
 - define standards of coding up front, and enforce those standards
 
 - use source control (Subversion, CVS, Source Safe)
 
 - use develoment servers, staging servers, and production servers.  Everyone 
 should have the exact same setup such as Eclipse + JRun + ColdFusion all 
 installed on their box (or whatever your setup is).  That way, everyone can 
 run the app and if something doesn't work, it's the person's machine or them 
 doing something wrong, and not the code.  It's ok if the actual database 
 doesn't exist on the same box, although, I encourage it to be.  Staging is 
 to test app before it goes to production, but not on a dev box.
 
 - time must be allocated for code-reviews and re-factoring.  This should go 
 into time estimations given to client.
 
 - use a directory structure that encourages re-use of code, even from other 
 projects legalities permitting.
 
 - Original Message - 
 From: Mark Lorah [EMAIL PROTECTED]
 To: flashcoders@chattyfig.figleaf.com
 Sent: Wednesday, April 05, 2006 8:44 AM
 Subject: [Flashcoders] large projects
 
 
 This is a general question about workflow. For a long time I have
 been working on Flash projects independently. Over time everything
 has gotten bigger. Projects are now at a scale where I must
 collaborate with other Flash programmers. I am looking for
 suggestions about best practices for organizing and dividing up work
 on large Flash projects. What are problems and solutions that people
 have encountered when sharing work?
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Architecture opinion...

2006-03-28 Thread John Mark Hawley
You want to use bit flags for your constants...

http://java.sun.com/docs/books/tutorial/java/nutsandbolts/bitwise.html

(plenty of other tutorials floating around as well, if that don't float yer 
boat...)

-Mark Hawley


 From: eric dolecki [EMAIL PROTECTED]
 Date: 2006/03/28 Tue PM 01:44:20 CST
 To: Flashcoders mailing list flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] Architecture opinion...
 
 I'm about to create an uber-class that is basically something that controls
 walkthroughs of various situations.
 
 I have configuration states... (sets of three basically)
 
 var CONFIG_1A :Number = 0;  // Has item A
 var CONFIG_1B:Number = 1;   // Has item A and B
 var CONFIG_1C:Number = 2;   // Has item A and B and C
 var CONFIG_2A:Number = 3;   // Has item A and D
 var CONFIG_2B:Number = 4;   // has item A and D and B
 ... etc. for quite a number of different configuration options. 15 of them
 in total.
 
 
 I am using CONFIG_ for use in if/else statements, etc. but I don't think
 this is a very elegant way of doing things. I'd like the code to be readable
  this isn't much better than using simple numerals to set this up. I am
 looking for opinions on how to best set this up. Something where if I wanted
 to later could add CONFIG_1D and wouldn't have to renumber things. An array
 of configs?
 
 Each config setting will have different paths throughout a tutorial. What
 might be the best way to avoid having switches or if/else statements galore
 at each step of the process?
 
 Thanks - I know this is a strange request :)
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] Protecting Shared Objects

2006-03-22 Thread John Mark Hawley
The program does have an installer and uninstaller, so leaving things 
behind shouldn't be a problem. I'm surprised no one else shares my 
co-workers' willies -- everyone is scared of doing something as silly as 
relying on souped-up cookies to implement a database.


-Make Hawley

Sam Thorne wrote:
Just as long as you document it somewhere or off the option to 
uninstall, so that when someone actually is deleting things for a good 
reason, they can be sure they really are removing the whole 
application, including the archiver and it's backup.



John Mark Hawley schrieb:
I'm working on a CD product that needs to store a lot of data locally 
for easy lookup. Before your eyes glaze over and you point me at 
Zinc, know that this poor little product needs to run on OS 9, OSX, 
and Windows. Zinc doesn't do OS 9.
But, aha, local shared objects! We can use them! Sure we can, but 
then there's a problem that some wiseguy could wipeout our entire 
database by clicking around in the Flash plugin settings for a good 
long time.
So: the tentative plan says we could run a little executable via an 
fscommand at startup that checks to see if the LSO's are in good 
order, and archives them elsewhere if so. If they've been hosed, the 
little executable would un-archive the last backup and put them back 
in the right location.
This sounds a little a rinky-dink, but it seems a heck of a lot 
easier than wrestling with a custom director wrapper and a real 
database. Just how icky does this sound to everyone? Anyone ever 
attempt something similar?


Regards,

Sam Thorne
Interaction Design

Web: http://www.native.com/
Tel: +44 (0)207 588 7970
Fax: +44 (0)207 588 7971


___
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] Protecting Shared Objects

2006-03-21 Thread John Mark Hawley
I'm working on a CD product that needs to store a lot of data locally for easy 
lookup. Before your eyes glaze over and you point me at Zinc, know that this 
poor little product needs to run on OS 9, OSX, and Windows. Zinc doesn't do OS 
9.

But, aha, local shared objects! We can use them! Sure we can, but then there's 
a problem that some wiseguy could wipeout our entire database by clicking 
around in the Flash plugin settings for a good long time.

So: the tentative plan says we could run a little executable via an fscommand 
at startup that checks to see if the LSO's are in good order, and archives them 
elsewhere if so. If they've been hosed, the little executable would un-archive 
the last backup and put them back in the right location.

This sounds a little a rinky-dink, but it seems a heck of a lot easier than 
wrestling with a custom director wrapper and a real database. Just how icky 
does this sound to everyone? Anyone ever attempt something similar?

-Mark Hawley 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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: [Flashcoders] need choose your own adventure source code

2006-03-21 Thread John Mark Hawley
I have some slightly hairy old CYOA code stuff up at: 
http://www.nilbog.com/CYOA/NILBOG_CYOA_SOURCE_Nov_2004.zip

I haven't looked at it in forever, and I have no doubt that it is somewhat 
crappy, but you might find some use in it.

-Mark Hawley

 
 From: .:: { andi } ::. [EMAIL PROTECTED]
 Date: 2006/03/21 Tue PM 05:49:34 CST
 To: flashcoders@chattyfig.figleaf.com
 Subject: [Flashcoders] need choose your own adventure source code
 
 need choose your own adventure game source codecan't find any  
 *anywhere*! ...or ideas...or I dunno, just have to make a cool game  
 for work, would like a pre-made game or game-maker(preferably in  
 Flash)
 
 a.
 ___
 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
 

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] RadioButton CellRenderer vs. CheckBox CellRenderer

2006-03-07 Thread John Mark Hawley
I have need of a DataGrid with one column filled with CheckBoxes, and another 
column filled with RadioButtons. The RadioButtons should all be in the same 
RadioButtonGroup. I put together CellRenderers for these two columns, and 
everything *almost* works.

Problems:

No RadioButtonGroup is ever constructed by my radioButtons, for one thing. 
RadioButton.as should be building a Group as soon as it sees the need for one. 
I've monkeyed with my cellrenderer to keep track of the selected radioButton 
and deselect all other radioButtons  as needed, so this shouldn't be a huge 
problem.

Clicking a checkBox affects the radioButton in the same row, without rhyme or 
reason.

Does anyone have yet more cellrenderer code they can share, with radioButtons 
and checkboxes playing happily together? RadioButton cellRenderer code seems 
very hard to come by.

(I know this sounds like a very stupid looking dataGrid, and there are much 
better ways to present the data -- but I have to match the HTML version of the 
table in dispute as closely as possible.)

-Mark Hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Installing Custom Ant Tasks in Eclipse

2006-02-23 Thread John Mark Hawley
There doesn't seem to be a simple tutorial for actually getting custom Ant 
tasks installed and running. Even as2Ant leaves you out to dry when it comes to 
actually getting it to work the first time. Any help?

Has anyone else on the list experimented with the Prebob preprocessing Ant 
task, or custom Ant tasks in general in Eclipse? I can't seem to get mine to 
work...I have a feeling it's because I don't have the java SDK installed, and 
no one else is running into this because mot of the Flash devs fooling around 
with Ant and Eclipse in the first place are also developing Java occasionally. 
(UPDATE: well, installing the SDK, and making sure Ant could see tools.jar did 
squat.)

In Eclipse-Preferences-Ant I can see the preprocessor task is defined.

Vanilla Ant builds are working 100%, but ant tasks installed as Eclipse plugins 
don't work when built, they just croak and give a massive, unhelpful Ant error.

--snip from build.xml---

!-- adding this does nothing
taskdef name=preprocess classname=com.objfac.prebop.ant.PreprocessorTask/
 --

target name=preprocess description=Run preprocessor
!-- perform preprocessing steps here --
echo message=Allegedly running preprocessor/
preprocess indir=${src_dir} outdir=${targetdir} out=merge 
except=${skip}
   !-- testing junk --
   var name=smell value=rose/
   filetype commentend=*/ commentbegin=/* extensions=as/--
/preprocess
/target

--end snip---

--partial output---

preprocess:
 [echo] Allegedly running cpp or equivalent

BUILD FAILED
C:\PATH_HIDDEN_TO_PROTECT_THE_INNOCENT\buildPreprocess.xml:24: Could not create 
task or type of type: preprocess.

Ant could not find the task or a class this task relies upon.

(GIANT ERROR MESSAGE SNIPPED)


Any suggestions?

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] Re: Installing Custom Ant Tasks in Eclipse

2006-02-23 Thread John Mark Hawley
UPDATE: After a lot of flailing and forcing Ant to specifically include the 
jars for Prebob, I actually got it to run. However, all it does it copy things 
from one directory to another, and no amount of manual flogging and guesswork 
can get it to actually preprocess anything. Has anyone tried Prebop and gotten 
it working, or does anyone have an IDE-friendly preprocessing solution 
themselves?

--

Mark Hawley said:

There doesn't seem to be a simple tutorial for actually getting custom Ant 
tasks installed and running. Even as2Ant leaves you out to dry when it comes to 
actually getting it to work the first time. Any help?

Has anyone else on the list experimented with the Prebob preprocessing Ant 
task, or custom Ant tasks in general in Eclipse? I can't seem to get mine to 
work...I have a feeling it's because I don't have the java SDK installed, and 
no one else is running into this because mot of the Flash devs fooling around 
with Ant and Eclipse in the first place are also developing Java occasionally. 
(UPDATE: well, installing the SDK, and making sure Ant could see tools.jar did 
squat.)

In Eclipse-Preferences-Ant I can see the preprocessor task is defined.

Vanilla Ant builds are working 100%, but ant tasks installed as Eclipse plugins 
don't work when built, they just croak and give a massive, unhelpful Ant 
error.

--snip from build.xml---

!-- adding this does nothing
taskdef name=preprocess classname=com.objfac.prebop.ant.PreprocessorTask/
 --

target name=preprocess description=Run preprocessor
!-- perform preprocessing steps here --
echo message=Allegedly running preprocessor/
preprocess indir=${src_dir} outdir=${targetdir} out=merge 
except=${skip}
   !-- testing junk --
   var name=smell value=rose/
   filetype commentend=*/ commentbegin=/* extensions=as/--
/preprocess
/target

--end snip---

--partial output---

preprocess:
 [echo] Allegedly running cpp or equivalent

BUILD FAILED
C:\PATH_HIDDEN_TO_PROTECT_THE_INNOCENT\buildPreprocess.xml:24: Could not create 
task or type of type: preprocess.

Ant could not find the task or a class this task relies upon.

(GIANT ERROR MESSAGE SNIPPED)


Any suggestions?

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
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] The Amazing infinite call stack, part 2

2005-12-13 Thread John Mark Hawley
A for loop wouldn't give we any way to pause for input, or to wait and let the 
UI animate to reflect the last command's doings, though.

I need a way to avoid recursion, not use it. Ideally:

1. advance to next command.
2. execute command.
3. Wait for command to finish.
4. repeat 1-3

in some way that lets step 1 pop off the call stack while waiting for step 3.  
There has to be an example floating around somewhere.

-Mark

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] AS 3.0 - stage.focus and keyboard event scopes

2005-11-24 Thread John Mark Hawley
What's the 'right' way to handle keyboard input in AS 3?  I can see how 
one class at a time can handle keyboard events as long as stage.focus is 
set to it, but what happens when that object loses focus?  Is there a 
way to ensure all keyboard events are going to make it to an object? An 
Object that isn't descended from Sprite and clan?


(I'm putting together a keymapping utility for a few games -- all input, 
mouse and keyboard, needs to filter through it, where it figures out 
what command was meant. Then it calls the appropriate factory method to 
build the command blah blah blah.)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] Open Source Flash MMORPG

2005-10-29 Thread John Mark Hawley
I've ben working on-and-off, though mostly off, on a MMORPG/Roguelike hybrid 
for a long time now, and would really like to get a team working with me so 
that I have some impetus to actually get serious on it.  I will be open 
sourcing all the code base (both the AS and backend), and, once at the 
prototype stage, hope to form a company to run some servers hosting enhanced 
versions of the game.

I'll be happy to share more information with people with serious interest in 
the project -- just email me. I'd welcome any comments about remote 
collaboration on coding Flash projects, but they should probably go here on 
this list, as they are widely applicable.

For more information on roguelikes, if they are unfamiliar:

www.nethack.org
http://roguelikes.sauceforge.net/pub/index.html

-Mark Hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


[Flashcoders] ObjectCopy mishaps

2005-10-26 Thread John Mark Hawley
I sent in a message a while ago about problems with ObjectCopy -- they're in 
the archive, but never made it to any emails I received. Whatever.

Anyway, does anyone know of a deep-copy function sitting around somhere that 
actually works all the time, reliably?  It seems like every time I rely on 
mx.utils.ObjectCopy I find a new problem with it and end up wasting time. I 
don't want to have to bother making my own if someone else already slogged 
through it.

It doesn't handle nulls, doesn't deep copy once it hits an array, barfs when it 
hits a basic type, etc...

-Mark Hawley

--
John Mark Hawley
The Nilbog Group
773.968.4980 (cell)

___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders