ActionScript 3.0 :: Draw App With Transparent PNG Export?

May 14, 2008

ROLL_OUT event isn't always stopping the cursor from drawing. If the cursor is moved very slowly, you can draw outside the drawingBoard_mc area despite my event listener. I tried MOUSE_OUT too without success.

drawingBoard_mc is 600x100 pixels. When I call PNGExport and pass the clip and size the PNG from drawingBoard_mc.height and drawingBoard_mc.width I sometimes end up with a few extra pixels like... 607x101. This generally happens when the pen drew past the drawingBoard_mc slightly.

Missing Feature:

export the PNG with just black lines (drawn by the user) and a transparent background. Currently I have to edit the file afterward to remove the white background.[code]...

View 9 Replies


Similar Posts:


Actionscript 3 :: Draw Transparent Graphics Onto Transparent BitmapData?

Feb 5, 2012

I'm trying to draw PNGs onto BitmapData that is transparent.

I create my BitmapData like this (using ARGB for the color):

new BitmapData(width, height, true, 0x00000000);

And clean it by using the same ARGB value:

bitmapData.fillRect(bitmapData.rect, 0x00000000);

When I use copyPixels() to draw graphics onto the cleaned BitmapData, I get this result:

If I don't use ARGB for the BitmapData color, it works fine:

But I have to specify a solid fillColor, meaning I can't render what's behind the Bitmap.

How can I make my BitmapData transparent, but not have the above occur?

View 1 Replies

Professional :: 9-slice Scaled Object Won't Export As Transparent PNG

Aug 13, 2009

Is it possible to export a 9-slice scaled object as a transparent PNG? At the moment File > Export > Export Image > Transparent PNG will not output any 9-slice objects. This is quite a hassle, since I can't seem to get these objects transparently into Photoshop or Illustrator (both CS4) - what's the use of working with 9-slice objects if you can't export them flattened even to other applications? I use them extensively, but looks like I will have to convert them all the separate movieclips without this cool functionality, since it is more a pain than anything else once you need to use these graphics outside Flash CS4.

Am I missing something? "Work seamlessly between Adobe apps" is starting to sound more than a marketing/sales pitch than an actual reality. I have tried export these images as EPS/AI to open in Illustrator CS4 - they don't come out correctly at all / gradients messed up / errors on open. So, no more 9-slice scaling objects if I want to export to tranparent PNG from the IDE?

View 4 Replies

Cannot Draw A Transparent Rectangle In Flash CS4

Sep 18, 2009

In Flash CS4, when I draw a rectangle (or circle, or anything) with a color that has 0 alpha, nothing is drawn. Also, if I select a piece of drawing and change the color to 0 alpha, the drawing (e.g. rectangle) disappears!I know I can draw a non-transparent rectangle, convert it to movie clip and set the movie clip's alpha to 0, but I'd like to avoid this.

View 5 Replies

ActionScript 3.0 :: Draw Opaque Pixels On A Transparent Bitmapdata Background?

Oct 28, 2010

im trying to draw opaque pixels on a transparent bitmapdata background

heres the ex:

ActionScript Code:
//TRANSPARENT BACKGROUND
var _pixelColor:uint = 0x9998002E;
var _bmpd:BitmapData = new BitmapData(4, 7, true, 0x00333333);

[Code].....

This example paints 2 arrows, the first is using the transparent background, and the second is using an opaque background on the BitmapData.

What I'm trying to achieve is to paint the pixels of the arrow completely opaque on the transparent background. But as you can see, the pixel is at 99% of its opacity (var _pixelColor:uint = 0x9998002E) How can I paint 100% opaque pixels on a transparent BitmapData "canvas"?

View 1 Replies

Flash - Export A Drawing Made In Flash As A Transparent Png?

Jun 17, 2009

export a drawing made in flash as a transparent png in actionscript I know you can do it as a jpg with a white background but can you export the transparency?

View 3 Replies

ActionScript 3.0 :: Draw Bitmap Instead Of Export Bitmap?

Nov 5, 2009

I'm using Sandy to animate some objects in 3D. What I currently do to images which are EXPORTED in the library, I want to do to some bitmaps that I create using the DRAW technique. But it wont work :-(

CODE FOR 'CREATED BITMAP' :
ActionScript Code:
var bData:BitmapData = new BitmapData(myObject.width,myObject.height);
bData.draw(mask5);

[Code]....

Sandy doesn't seem to treat the 'created' bitmap the same as those that are exported from the library.

View 0 Replies

Flex :: Export App Including Database Files With Using Export Build Release Wizard?

Apr 1, 2011

When I try to export my application to native installer with using Export Build Release, it isn't importing my sqlite database files which are in my application directory. Is there a way that I can import those database files ?

View 1 Replies

Professional :: Transparent Background Is Not Working With Vmode Transparent?

Oct 17, 2010

I imported a video into flash and have a transparent photoshop layer to create an iPod skin. The video works fine, but I cannot get the "stage" to be transparent so that you do not see the flash background color behind the iPod skin.
 
I've read in the forums and have followed the instructions here from Adobe. If you look at my code, I have

[Code]...

View 6 Replies

ActionScript 3.0 :: Remove Transparent Pixels From Transparent Png?

Feb 27, 2010

I am creating a map in flash cs4 with all the countries on it. I used photoshop for creating the map and separated countries. Now I imported all pngs in Flash and I want to give Mouse CLICK event and Mouse Hover on all pngs, but as the transparent pixels are overlapping the other states, it is getting difficult. So, I converted all pngs in movieclips and now then I broke up pngs. Now I want to delete all pixels having alpha 0 using eraser tool, as per the borders. And I have to do it manually for individual countries. So is there a way to remove transparent pixels from the bitmap data?

View 2 Replies

ActionScript 3.0 :: Transparent Png Not Acting Very Transparent?

Oct 6, 2009

I have two png's that kind of look like paint brush strokes. they have some transparency in them that lets the stage colour bleed through a bit.

I am adding two of these images to the stage in AS 3. One adds quite fine - looks as expected. The second one however doesn't have any transparency other than around its edges. What i mean is it looks more like GIF than a PNG. Rough around the edges, no transparency "inside" the image itself (where there should be)

i have tried re-creating the image (yes it IS a PNG) which did nothing. I ensured the library item is not being treated as a JPEG. I also even tried externally calling the PNG to see if that made a difference. Unfortunately it did not.

why this second PNG doesn't seem to have a transparency set?

View 8 Replies

ActionScript 3.0 :: BitmapData Draw() Method - Draw The Bitmap On The Stage At Design Time?

Mar 18, 2009

I am using the draw() method of the BitmapData to encode a jpeg of part of the image. Now this should be easy enough given the object I want to draw to the bitmap is on the stage at design time so I know its location and dimetions exactly! Heres the code I have in place.

Code:
var myBitmapSource:BitmapData = new BitmapData ( street.width, street.height, false, 0x333333);
myBitmapSource.draw(street, null, null, null, new Rectangle( 96, 5, 571, 450 ), true );

I know for a FACT that no part of the street clip I am drawing out is in negative space, and it's registration is (0,0). However, it cuts off A lot of the top of my image. y=5 in the above rectangle is where I need the top to be, but it cuts the top off of the image... even if I change it to 0, it has no effect.

View 2 Replies

ActionScript 3.0 :: Youtube Api Draw - Error #2121: Security Sandbox Violation: BitmapData.draw

Jun 30, 2011

I'm making something that requires me to draw() the youtubeplayer Giving me this pretty error:

[Code]...

View 4 Replies

ActionScript 3.0 :: BitmapData.draw() Failing To Draw Entire MovieClip?

Dec 15, 2009

I'm trying to do some lean blitting for an object that rotates by rotating it once at startup and capturing a BitmapData snapshot of each 5 degrees. The problem I'm having is that the draw() method of the BitmapData object is only picking up pixels in the MovieClip that are below and to the right of the registration point. If I change the MC so that the registration point is in the top left corner, I sometimes get what looks like most of the pixels, but the entire object rotates into and out of the frame, since it's rotating around the corner and not the center.

View 5 Replies

Actionscript 3 :: Movieclip - Draw Line Without Using The Draw API?

Apr 5, 2012

I need to be able to draw a thick patterend line between 2 points in AS3, I can't use the draw API because it doesn't all me to actually put detail (pattern etc) into the thickness of the line, I thought about perhaps using the line to create a bitmap version and then using that as a mask, but I remember many years ago seeing some examples that use a movieclip as a source for a line.

View 1 Replies

ActionScript 3.0 :: Using BitmapData.draw(stage) - Error #2123 Security Sandbox Violation: BitmapData.draw

Jan 9, 2012

I am having an issue with using BitmapData.draw(stage). I am getting the following error:

SecurityError: Error #2123: Security sandbox violation: BitmapData.draw: file:///C|/Documents%20and%20Settings/bla...bla...bla.swf cannot access null. No policy files granted access. Here is a portion of my code:

var bd:BitmapData = new BitmapData(2800, 2100); bd.draw(stage);//this is where the error happens All of the files referenced (.xml/.jpg/.swf) are located in the same local folder as the main .swf. How do I get around this error? The main objective is to print the stage using PrintJob(). I am using Flash Professional CS5.5 and publishing to Flash 10.0/10.1. Let me know if I need to supply any more info.

View 4 Replies

Flex :: BitmapData Draw - Set Where To Draw?

Dec 16, 2010

i have a class thats create a class with bitmapData that merge 2 IBitmapDrawable. one of them is 24*20 while the other is 16*16.i want to draw the smaller first in a bitmapData object which its width and height are 24*20 but i want to draw it in the center of the big bounds.

[Code]...

View 2 Replies

Carousel & Transparent Video - Add A Transparent Video In The Center

Oct 30, 2007

there are few comments i hear from other people. some say the axis of the carousel crooked and the icons are pixelated when they are scaled down. i m trying to add a transparent video of myself in the center but when i mask the carousel the embeded swf files also get the mask so i was wondering if there was a way to make the icons have alpha 0 when they are back all the way.. here s the link for the regular website [URL] and below is my actionscript

[Code]....

View 9 Replies

Make A Transparent SWF?

Aug 5, 2009

is it possibel to make a transparent SWF, or not? i want to make a word glow but have no background you see?

View 2 Replies

Transparent Stage In CS4?

Aug 9, 2009

Id like to create a transparent stage for my site hosted here... [URL]so i can change the background in html to a pattern and it will look like the flash bit is sitting on top of it.

View 2 Replies

ActionScript 2.0 :: Use Gif Or Pgn To Get A Transparent ?

Nov 16, 2006

I'm the admin for this site (in swedish) and I'm thinking of redesign it soon.I thought Flash would be one of the best ways for the "square menu" but I wanted to ask you before i decide. Here's some pro's and con's Ive come up with

smaller file size?

easier then fiddling with alot of divs

more options to make cool animations

no need to use gif or pgn to get a transparent bg

View 6 Replies

IDE :: XML, Transparent Images?

Jun 11, 2009

I have an XML file that loads in JPG images great, but if I try to load either a PNG or GIF instead of a JPG - it simply does not load at all.Does ActionScript & Flash not allow for transparent files, or even these formats of images to be brought in via XML file?BTW:I used this tutorial, step 1-9, and all works well but if I change the images to my personal PNG - the only thing that displays is the preloading bar as if the file just doesn't want to file/load the image. The text does come in though.

View 4 Replies

Export Swf To Avi On Mac?

Jun 22, 2009

I'm looking for software which can export my swf to a video format like avi / mov etc. Uncompressed and including any movieclip animations, actionscript made animations and stuff like that. Is there such a programme available for macintosh?

View 3 Replies

Export From FLA / SWF Into WMV?

Jan 14, 2011

I have a CS3 flash .fla animation and I need to convert it into WMV or MP4 to use in Camtasia Studio

Is there any way of doing that in CS3?I tried looking for downloads on the web, so far I have found lots of software that claims to be "free" but sticks a watermark until you pay

View 2 Replies

IDE :: Export SWF To AVI?

Dec 29, 2009

I need to export the movie to AVI format, that will run in a store in USA I downlaoded the Divx compressor and "he" dont let me export the movie more than 720x480, my movie is 1360x765

the other comprassor on my computer turn the movie with very bad quality

I try export in Flash, flash run for 5 minutes and than cracshed with no movie

View 1 Replies

ActionScript 3.0 :: BlendMode Vs Transparent Png

May 21, 2009

So you've got a transparent png. Rather than importing that png with its alpha channel, I've always assumed it's better to import it with a black or white matte, then use Flash's blend modes (lighten, darken, screen, multiply) to show the transparency.Am I right on this, or does it make no difference in terms of cpu usage?I do believe that in terms of filesize, the matte saves quite a bit over the alpha channel.

View 5 Replies

How To Make A Background Transparent

Jun 9, 2009

A friend and I are working on a Flash game. He is programming it and needs the different character animations in SWF form. The problem is when he places them in-game, they are surrounded by the white block that was behind the character animation.

How do you make the background of the SWF/flash file transparent so they white block will no longer be visible. I know how to do it in HTML for the web, but this must be different.

View 4 Replies

Fade Movieclip To Transparent

Sep 16, 2009

I have made a slideshow from this tutorial: [URL]

I have added a reflection, and it works just great. But i would like to make the right and the left side fade to transparent. I have tried to make a little demo here: [URL]

The first movie looks good, but only because I have faded from nothing to black and the background is black on the home page. And as you can see, the movie does not look that great, when the background is white.

I found this link: [URL], but I can't figure out how to implement it into my already "working" slideshow.

View 5 Replies

CS3 How To Create A Transparent Banner

Oct 17, 2009

well ive been tryin to create a small site with a banner using flash. i went to publish settings and changed the setting to transparent, published it and embedded the code into my html page on the page there is a white part at either side of the banner that shouldnt be there and doesnt look right, ive attached a picture

View 2 Replies

Static Background And Transparent SWF

Feb 3, 2010

What I need to is to alter the html flash generated to have a static background that fills the browser, doesn't tile or scale that my movie can load over. I have messed with all the publish settings and I am sure I am just making all the wrong choices.

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved