RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-13 Thread whispers
Hey Glen- 

thanks for the response.. 


I actually figured it out.. It was the threshold that was OFF after loading
in a larger image 

//original
//_BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new
Point(0, 0), "<", 0x, 0x00FF);

//new 
_BMP.threshold(_BMP, new Rectangle(0,0,
contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height), new Point(0,0),
"<", 0x, 0x00FF);

I figured it was something minor in the either the threshold or the
matrix.translate portion.. But I just could put my finger on it.

Thank guys.



-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Glen Pike
Sent: Tuesday, January 13, 2009 12:50 PM
To: Flash Coders List
Subject: Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

Hi,

It's a long shot, but without looking into your code too much, what
happens if you load a 1440 x 1440 image and don't rotate it in anyway - does
it break?
   
If that does not break, try loading in a 1441 x 1441 image - does this
break?

Not sure if the centering the image inside another clip causes problems
with the actual display area going over 2880, but the 1500 x 1500 size
sounds pretty close to 2880 / 2, so it could be something to do with that.

Maybe the mask position is wrapping around because you are going over
the limit - again, it's a long shot, but try finding out what dimensions
break it??

Like I said, it's a long shot, but could be an idea...
   
Glen
   

-whispers- wrote:
> Nope, it is not...
>
> the images that seems to break the application is 1500x1500.. while 
> other (smaller) images around 550x450 seem to work fine quick overview:
>
> A.) contentContainer
> B.) |-faceContainer
> C.) |--lineContainer (where I drawmy
lineTo() shape to be used as the base of my invertedMask function)
> D.) |--maskContainer (where the actual
invertedMask is created with the function I provided/am using)
> E.) |--centeredContainer (where the
image is loaded into)
>
> faceContainer X/Y is centered is the absolute middle of the display 
> area all child clips of faceContainer (clips C-E above) are then off set
by height & width /2..  so that when I scale or rotate faceContainer.. all
child clips scale from the 'center'..
>
> when I load in ANY image.. I check its height..and if bigger than my
display area.. I scale it down...
>
> again this works fine is I load in a smaller image...
> the only code is 1 (one) function.. (13 lines only) that 
> breaks when the image loaded is over a certain size (I believe sets 
> the X/Y to a negative number, beyond zero)
>
> this is the function in question:
>
> INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
>  
> //- [reverse mask code] - // 
> function inverseMask(mc:MovieClip) {
>  contentContainer.faceContainer.centeredContainer.cacheAsBitmap =
true;
>  var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
>  var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
>  var matrix:Matrix = new Matrix(); 
>  matrix.translate(0, 0);
>
>  //matrix.translate(mc._x, mc._y);  //doesnt work
>
//matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
>  //matrix.identity(); 
> 
> //matrix.scale(contentContainer.faceContainer.centeredContainer._xscal
> e, contentContainer.faceContainer.centeredContainer._yscale);
>
>  _BMP.draw(mc, matrix, invert);
>  _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
>  var BMP:BitmapData = _BMP.clone();
>  var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
>  maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
>  maskMC.cacheAsBitmap = true;
>  mc._visible = false;
>  return maskMC;
> }
>
>
> thanks to anyone that even point me in the right direction on debugging...
>
>   - Original Message - 
>   From: Jason Van Pelt 
>   To: Flash Coders List 
>   Sent: Monday, January 12, 2009 4:20 PM
>   Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. 
>

Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-13 Thread Glen Pike

Hi,

   It's a long shot, but without looking into your code too much, what 
happens if you load a 1440 x 1440 image and don't rotate it in anyway - 
does it break?
  
   If that does not break, try loading in a 1441 x 1441 image - does 
this break?


   Not sure if the centering the image inside another clip causes 
problems with the actual display area going over 2880, but the 1500 x 
1500 size sounds pretty close to 2880 / 2, so it could be something to 
do with that.


   Maybe the mask position is wrapping around because you are going 
over the limit - again, it's a long shot, but try finding out what 
dimensions break it??


   Like I said, it's a long shot, but could be an idea...
  
   Glen
  


-whispers- wrote:

Nope, it is not...

the images that seems to break the application is 1500x1500.. while other 
(smaller) images around 550x450 seem to work fine
quick overview:

A.) contentContainer
B.) |-faceContainer
C.) |--lineContainer (where I drawmy 
lineTo() shape to be used as the base of my invertedMask function)
D.) |--maskContainer (where the actual 
invertedMask is created with the function I provided/am using)
E.) |--centeredContainer (where the image 
is loaded into)

faceContainer X/Y is centered is the absolute middle of the display area
all child clips of faceContainer (clips C-E above) are then off set by height & 
width /2..  so that when I scale or rotate faceContainer.. all child clips scale 
from the 'center'..

when I load in ANY image.. I check its height..and if bigger than my display 
area.. I scale it down...

again this works fine is I load in a smaller image...
the only code is 1 (one) function.. (13 lines only) that breaks 
when the image loaded is over a certain size (I believe sets the X/Y to a 
negative number, beyond zero)

this is the function in question:

INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //

function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new 
BitmapData(contentContainer.faceContainer.centeredContainer._width, 
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);


 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x, 
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity(); 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale, contentContainer.faceContainer.centeredContainer._yscale);


 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new Point(0, 0), 
"<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip = 
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedMask",
 contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP, 
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}


thanks to anyone that even point me in the right direction on debugging...

  - Original Message - 
  From: Jason Van Pelt 
  To: Flash Coders List 
  Sent: Monday, January 12, 2009 4:20 PM

  Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2


  I can't go through all of your info, but just off the top of my head what
  is the size of the image you are trying to load? Is it larger than the 2880
  x 2880 pixel limit?


  JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

  PETER A MAYER ADVERTISING
  324 CAMP ST  •  NEW ORLEANS, LA 70130
  TEL 504-210-1232  •  FAX 504-529-4431

  vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


  -  
  PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
  Confidentially, we loathe confidentiality notices. Still, our lawyers tell us they are essential in today's world. That said, please consider yourself confidentially notified that this email and any attachments may contain confidential and privileged information. If you are not the intended recipient, please notify the sender with a reply email-confidentially, of course-and destroy all copies. And, just between you and us, any dissemination by a person o

Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-13 Thread Hans Wichman
HI,

can you put up a simplified zip that allows us to try it out?

And then for something else, if you don't get a response within a day,
there's need to get cynical or offensive referring to us as 'coders' as if
everyone here is only a wannabe of some sort. Last time I checked I'm geting
paid to respond within 4 hours of one of your emails :).

get in line and give it some time ;)

grtz
JC

On Tue, Jan 13, 2009 at 1:21 AM, -whispers-  wrote:

> Nope, it is not...
>
> the images that seems to break the application is 1500x1500.. while other
> (smaller) images around 550x450 seem to work fine
> quick overview:
>
> A.) contentContainer
> B.) |-faceContainer
> C.) |--lineContainer (where I drawmy
> lineTo() shape to be used as the base of my invertedMask function)
> D.) |--maskContainer (where the actual
> invertedMask is created with the function I provided/am using)
> E.) |--centeredContainer (where the
> image is loaded into)
>
> faceContainer X/Y is centered is the absolute middle of the display area
> all child clips of faceContainer (clips C-E above) are then off set by
> height & width /2..  so that when I scale or rotate faceContainer.. all
> child clips scale from the 'center'..
>
> when I load in ANY image.. I check its height..and if bigger than my
> display area.. I scale it down...
>
> again this works fine is I load in a smaller image...
> the only code is 1 (one) function.. (13 lines only) that breaks
> when the image loaded is over a certain size (I believe sets the X/Y to a
> negative number, beyond zero)
>
> this is the function in question:
>
> INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
>
> //- [reverse mask code] - //
> function inverseMask(mc:MovieClip) {
> contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
> var _BMP:BitmapData = new
> BitmapData(contentContainer.faceContainer.centeredContainer._width,
> contentContainer.faceContainer.centeredContainer._height, true, 0x);
> var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
> var matrix:Matrix = new Matrix();
> matrix.translate(0, 0);
>
> //matrix.translate(mc._x, mc._y);  //doesnt work
> //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
> contentContainer.faceContainer.centeredContainer._y); //doesnt work
> //matrix.identity();
>//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
> contentContainer.faceContainer.centeredContainer._yscale);
>
> _BMP.draw(mc, matrix, invert);
> _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
> new Point(0, 0), "<", 0x, 0x00FF);
> var BMP:BitmapData = _BMP.clone();
> var maskMC:MovieClip =
> contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedMask",
> contentContainer.faceContainer.maskContainer.getNextHighestDepth());
> maskMC.attachBitmap(BMP,
> contentContainer.faceContainer.maskContainer.getNextHighestDepth());
> maskMC.cacheAsBitmap = true;
> mc._visible = false;
>     return maskMC;
> }
>
>
> thanks to anyone that even point me in the right direction on debugging...
>
>  - Original Message -
>  From: Jason Van Pelt
>  To: Flash Coders List
>  Sent: Monday, January 12, 2009 4:20 PM
>  Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2
>
>
>   I can't go through all of your info, but just off the top of my head
> what
>  is the size of the image you are trying to load? Is it larger than the
> 2880
>  x 2880 pixel limit?
>
>
>  JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER
>
>  PETER A MAYER ADVERTISING
>  324 CAMP ST  •  NEW ORLEANS, LA 70130
>  TEL 504-210-1232  •  FAX 504-529-4431
>
>  vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM<http://www.peteramayer.com/>
>
>
>
>  -
>  PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE:
>  Confidentially, we loathe confidentiality notices. Still, our lawyers tell
> us they are essential in today's world. That said, please consider yourself
> confidentially notified that this email and any attachments may contain
> confidential and privileged information. If you are not the intended
> recipient, please notify the sender with a reply email-confidentially, of
> course-and destroy all copies. And, just between you and us, any
> dissemination by a person other than the intended recipient is unauthoriz

Re: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread -whispers-
Nope, it is not...

the images that seems to break the application is 1500x1500.. while other 
(smaller) images around 550x450 seem to work fine
quick overview:

A.) contentContainer
B.) |-faceContainer
C.) |--lineContainer (where I drawmy 
lineTo() shape to be used as the base of my invertedMask function)
D.) |--maskContainer (where the actual 
invertedMask is created with the function I provided/am using)
E.) |--centeredContainer (where the image 
is loaded into)

faceContainer X/Y is centered is the absolute middle of the display area
all child clips of faceContainer (clips C-E above) are then off set by height & 
width /2..  so that when I scale or rotate faceContainer.. all child clips 
scale from the 'center'..

when I load in ANY image.. I check its height..and if bigger than my display 
area.. I scale it down...

again this works fine is I load in a smaller image...
the only code is 1 (one) function.. (13 lines only) that breaks 
when the image loaded is over a certain size (I believe sets the X/Y to a 
negative number, beyond zero)

this is the function in question:

INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new 
BitmapData(contentContainer.faceContainer.centeredContainer._width, 
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);

 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x, 
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity(); 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale, 
contentContainer.faceContainer.centeredContainer._yscale);

 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height), new 
Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip = 
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedMask",
 contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP, 
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}


thanks to anyone that even point me in the right direction on debugging...

  - Original Message - 
  From: Jason Van Pelt 
  To: Flash Coders List 
  Sent: Monday, January 12, 2009 4:20 PM
  Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2


  I can't go through all of your info, but just off the top of my head what
  is the size of the image you are trying to load? Is it larger than the 2880
  x 2880 pixel limit?


  JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

  PETER A MAYER ADVERTISING
  324 CAMP ST  •  NEW ORLEANS, LA 70130
  TEL 504-210-1232  •  FAX 504-529-4431

  vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


  - 
 
  PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
  Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
  -


--


  ___
  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


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread Jason Van Pelt
I can't go through all of your info, but just off the top of my head what
is the size of the image you are trying to load? Is it larger than the 2880
x 2880 pixel limit?


JASON VAN PELT  •  SENIOR INTERACTIVE DEVELOPER

PETER A MAYER ADVERTISING
324 CAMP ST  •  NEW ORLEANS, LA 70130
TEL 504-210-1232  •  FAX 504-529-4431

vanpe...@peteramayer.com  •  WWW.PETERAMAYER.COM


-  
PETER MAYER ADVERTISING CONFIDENTIALITY NOTICE: 
Confidentially, we loathe confidentiality notices. Still, our lawyers tell us 
they are essential in today's world. That said, please consider yourself 
confidentially notified that this email and any attachments may contain 
confidential and privileged information. If you are not the intended recipient, 
please notify the sender with a reply email-confidentially, of course-and 
destroy all copies. And, just between you and us, any dissemination by a person 
other than the intended recipient is unauthorized and may be illegal.  
-  ___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Thanks for the advice & reply..

Unfortunately.. I dont think it 'can' be broken down into smaller parts..

Most of the 'babble' was just to put the project into perspective..


The only problem is 'tweaking' that inversedmask() function...

If the intially loaded image is a failry big in dimensions Is seems the
inversed mask function is 'offset' and only shows in the upper left
corner... 

"I" believe it has something to do with the images initial X & Y values
being a negative... So the matrix or threshold portion of the code is
'breaking'

(even though I re-size the images being loaded on the onLoadInit() callback
event to be smaller.. I believe, or is my understanding its either taking
the original clips data or is off-setting it somehow)..

If there is any other information that would help anyone trouble shoot it
with me.. I'd be glad to give it..

Thanks

 

-Original Message-
From: flashcoders-boun...@chattyfig.figleaf.com
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Merrill,
Jason
Sent: Monday, January 12, 2009 3:38 PM
To: Flash Coders List
Subject: RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

>> Anyone?  Tons of emails about the same topic over and over? But not 
>>one reply to some AS2 coding help??
>>Surely it cant be too difficult for most of you 'coders' here, on this 
>>mailing list?

Sorry - with all those objectives and all that code you posted (when I'm
busy and someone posts a ton of code, I usually gloss over or ignore since I
don't have time to step through it all), you gave us a lot to chew on.  You
might want to make your question more succinct.  Or at least break your
problem down into separate posts and have us help you tackle a little at a
time rather than one big overall goal.  


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff
Support L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash
Platform Developer Community Interested in innovative ideas in Learning? 
Check out the Innovative Learning Blog and subscribe.




___
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


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread Merrill, Jason
>> Anyone?  Tons of emails about the same topic over and over? But not one
>>reply to some AS2 coding help??
>>Surely it cant be too difficult for most of you 'coders' here, on this
>>mailing list?

Sorry - with all those objectives and all that code you posted (when I'm busy 
and someone posts a ton of code, I usually gloss over or ignore since I don't 
have time to step through it all), you gave us a lot to chew on.  You might 
want to make your question more succinct.  Or at least break your problem down 
into separate posts and have us help you tackle a little at a time rather than 
one big overall goal.  


Jason Merrill
Bank of America Instructional Technology & Media   ·   GCIB & Staff Support 
L&LD

Interested in Flash Platform technologies?  Join the Bank of America Flash 
Platform Developer Community 
Interested in innovative ideas in Learning?  Check out the Innovative Learning 
Blog and subscribe.




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


RE: [Flashcoders] inversed mask (bitmapData/matrix) help.. AS2

2009-01-12 Thread whispers
Anyone?  Tons of emails about the same topic over and over? But not one
reply to some AS2 coding help??


Surely it cant be too difficult for most of you 'coders' here, on this
mailing list?


 
// Original email/post: -//


ok..maybe you gents can help me on a problem I've had off and on..
 
project summary:
 

*   load in a dynamic image 

*   trace/create a lineTo object/fill on a layer above this loaded image


*   click a button to create an inversed mask of this above created
lineTo object 

*   effect is the part you drew/colored is not 'cropped' out of the
loaded image (revealing whatever content below)

laymen's terms:
 
load in a image, using the mouse you draw an shape/object 'on' the loaded
image clip, click a button.. it crops it out (thats the effect).. so if you
load an image of a face..you draw a shape/object around the teeth/eye
(whatever) it will 'knock it out'..revealing whatever objects/clips are
underneath the loaded image clip..
 
project layout:
 
contentConainer: 
 
a clips called faceContainer..  inside faceContainer is a clip called
centeredContainer 
 
I load the image into faceContainer.centeredContainer (an offset/center the
centeredContainer inside faceContainer) so that if/when I scale/rotate
faceContainer clip..is scales/rotates form the center point..  (make sense?)
 
so:
 
parent.parent clip (contentContainer)
---parent clip (faceContainer)--
--lineContainer (holds the shape/object I'm using for my source of the
inverse mask --maskContainer (empty clip to hold the dynamically created
clip from the inverse mask method above) --centeredContainer (the place
where the dynamically loaded image gets loaded into, and is 'masked' by the
inversedMask method)

everything actually works FINE until I load in a BIG image.. if I load
an image that DOES not (originally) go -0 (before resize) or is smaller that
the display area..it works fine.. if I load in a HUGE image, something has
an _x value of less than 0 (zero).. it doesnt work..  (FYI: on the
movieClipLoader.onLoadInit() I do resize/scale the movieClip...but
again..for images that are originally very BIG before re-size..the
inversedmask effect does NOT work)
 
I'm fairly certain it has to do with the matrix.translate or maybe I need to
add to it?  but no matter what I've tried.. I cant seem to get it to
work..or possible the threshold portion??
 
ok..onto the problem/question...
 
code snippets..
 
here is the resize code/check I do once the movieClip initializes
 
RE-SIZE:
 
// if height is too big then resize to fit height  if
(target_mc._parent._height > max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  // if height
is too small then resize to fit height  }else if(target_mc._parent._height <
max_height) {
  target_mc._parent._height = max_height;
  target_mc._parent._xscale = target_mc._parent._yscale;  } 
 
 
INVERSED MASK: ( mc = contentContainer.faceContainer.lineContainer)
 
//- [reverse mask code] - //
function inverseMask(mc:MovieClip) {
 contentContainer.faceContainer.centeredContainer.cacheAsBitmap = true;
 var _BMP:BitmapData = new
BitmapData(contentContainer.faceContainer.centeredContainer._width,
contentContainer.faceContainer.centeredContainer._height, true, 0x);
 var invert:ColorTransform = new ColorTransform(0, 0, 0, 1);
 var matrix:Matrix = new Matrix(); 
 matrix.translate(0, 0);
 //matrix.translate(mc._x, mc._y);  //doesnt work
 //matrix.translate(contentContainer.faceContainer.centeredContainer._x,
contentContainer.faceContainer.centeredContainer._y); //doesnt work
 //matrix.identity();
 
//matrix.scale(contentContainer.faceContainer.centeredContainer._xscale,
contentContainer.faceContainer.centeredContainer._yscale);
 _BMP.draw(mc, matrix, invert);
 _BMP.threshold(_BMP, new Rectangle(0, 0, Stage.width, Stage.height),
new Point(0, 0), "<", 0x, 0x00FF);
 var BMP:BitmapData = _BMP.clone();
 var maskMC:MovieClip =
contentContainer.faceContainer.maskContainer.createEmptyMovieClip("invertedM
ask", contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.attachBitmap(BMP,
contentContainer.faceContainer.maskContainer.getNextHighestDepth());
 maskMC.cacheAsBitmap = true;
 mc._visible = false;
 return maskMC;
}

 
anybody good with matrix stiff and bitmap class??
 
I've tried doing/changing everything I can  but it hasn't seemed to
work..
 
again to re-cap.. everything works..  if the image I load is 'around' the
470x410 dimension..(or smaller) it works fine..
 
I've tested it on a 550c462 image..and it works..however when I load in
an image 1500x1500 for example.. the inversed mask DOES NOT work..
 
it ONLY seems to work in the upper, left hand most corner
 
I guess my 'thoughts' on this are:
 
since the image is centered, and being that it