[Flashcoders] bitmapdata question...

2007-02-02 Thread [p e r c e p t i c o n]

thank you sir!
___
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] bitmapdata question...

2007-02-02 Thread Patrick Matte | BLITZ
var bitmapdata:BitmapData = new
BitmapData(mc.width,mc.height,true,0x);

bitmapData.draw(mc);


BLITZ | Patrick Matte - 310-551-0200 x214

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of [p e r c
e p t i c o n]
Sent: Friday, February 02, 2007 10:50 AM
To: flashcoders
Subject: [Flashcoders] bitmapdata question...

i've taken a snapshot of a movieclip.  is there a way to keep it from
showing? meaning i don't want to see it on stage i just want to save it.

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


[Flashcoders] bitmapdata question...

2007-02-02 Thread [p e r c e p t i c o n]

i've taken a snapshot of a movieclip.  is there a way to keep it from
showing? meaning i don't want to see it on stage i just want to save it.

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] bitmapdata question / attachBitmap

2006-05-26 Thread grimmwerks

Hey - I'm merely curious...

Say I do this:

tPhoto =  pGui.thisScreen.createEmptyMovieClip("photoMC",
pGui.thisScreen.getNextHighestDepth(),{_alpha:0});
tPhoto.cacheAsBitmap=true;
bkgrnd = new BitmapData(1, 1, false, 0x00FF, {_alpha:0});
tPhoto.attachBitmap(bkgrnd, 1);

Now, say later, in some other function, I want to change this
bitmapData but I don't have a reference to it (other than the above
'temp' tPhoto) -- can I actually 'get' this bitmapData again through
some other means, or do I ALWAYS have to have a variable/ref to it?

Not sure if I'm explaining right: but as I have a ref to
pGui.thisScreen, which is a movieclip, and then 'photoMC' is a
movieclip in that, then I'm attachBitmap to photoMC ---

mainClip
  -photoMC
 - bitMapData


Does that make any sense?
___
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] BitmapData question

2006-01-23 Thread Latcho


//take your snapshot !
//--> untested example of USAGE

import Converter;

var conv:Converter=new Converter()
var snapshot_bd=conv.movieClipToBitmapData(mcToCapture)

//paste snapshot
conv.bitmapDataToMovieClip(snapshot_bd,_root,"snap_mc",10)


//tested and working CLASS Converter.as
**
import flash.display.BitmapData;

class Converter extends MotovieClip{
function Converter(){
}

function 
bitmapDataToMovieClip(srcBitmap:BitmapData,baseMC:MovieClip,mcName:String,newDepth:Number):MovieClip{

   var dpt:Number;
   if(newDepth==undefined){
   dpt=baseMC.getNextHighestDepth()
   } else {
   dpt=newDepth
   }
   baseMC.createEmptyMovieClip(mcName,dpt)
   baseMC[mcName].attachBitmap(srcBitmap, 
baseMC[mcName].getNextHighestDepth());

   return baseMC[mcName];
   }

   function 
movieClipToBitmapData(srcMC:MovieClip,transp:Boolean,fillColorHex:String):BitmapData{

   //TODO transparency on or off
   var converted_bd:BitmapData=new 
BitmapData(srcMC._width,srcMC._height, true, 0x);

   converted_bd.draw(srcMC)
   return converted_bd;
   }   
}







Matt Muller wrote:

Hi, does anyone know if its possible to use getPixel or something like that
to take a snapshot of a movieclip that contains some vectors and dynamic
text fields and return that as a bitmap image to use elsewhere in the site,
say as a reflection?

Thanks

MaTT
___
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] BitmapData question

2006-01-19 Thread Ramon Tayag
Here, force to bitmap class that I made:

http://www.flashkit.com/board/showthread.php?t=659163&highlight=force+bitmap

On 1/20/06, Matt Muller <[EMAIL PROTECTED]> wrote:
> Hi, does anyone know if its possible to use getPixel or something like that
> to take a snapshot of a movieclip that contains some vectors and dynamic
> text fields and return that as a bitmap image to use elsewhere in the site,
> say as a reflection?
>
> Thanks
>
> MaTT
> ___
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>


--
Ramon Miguel M. Tayag
___
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


RE: [Flashcoders] BitmapData question

2006-01-19 Thread Scott Hyndman
Read the documentation on BitmapData.draw()

Scott


-Original Message-
From:   [EMAIL PROTECTED] on behalf of Matt Muller
Sent:   Thu 1/19/2006 12:58 PM
To: Flashcoders mailing list
Cc: 
Subject:[Flashcoders] BitmapData question

Hi, does anyone know if its possible to use getPixel or something like that
to take a snapshot of a movieclip that contains some vectors and dynamic
text fields and return that as a bitmap image to use elsewhere in the site,
say as a reflection?

Thanks

MaTT
___
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] BitmapData question

2006-01-19 Thread Ralph Caraveo
You can snapshot any movieclip and get a reference to it's bitmapData
and then use that.  The techniques posted everywhere on the web.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Matt
Muller
Sent: Thursday, January 19, 2006 9:59 AM
To: Flashcoders mailing list
Subject: [Flashcoders] BitmapData question

Hi, does anyone know if its possible to use getPixel or something like
that to take a snapshot of a movieclip that contains some vectors and
dynamic text fields and return that as a bitmap image to use elsewhere
in the site, say as a reflection?

Thanks

MaTT
___
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] BitmapData question

2006-01-19 Thread Matt Muller
Hi, does anyone know if its possible to use getPixel or something like that
to take a snapshot of a movieclip that contains some vectors and dynamic
text fields and return that as a bitmap image to use elsewhere in the site,
say as a reflection?

Thanks

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