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
Similar Posts:
May 31, 2010
Does Flash Player 9's BlendMode ability transpose to normal bitmap data (JPG, PNG, etc.) outside or beneath the SWF? I have a movieclip that I'm trying to blend with an HTML background like Photoshop. It currently doesn't react to the options I've tried.
View 2 Replies
Aug 19, 2010
Set 2 MovieClips on the stage each having a rectangle in it which have different colors. Put them one over another and apply to the top one some blend mode that shows some visual difference. Ok so what I need to do now is grab the bitmapData from both and redraw it into a single MovieClip, so what I need is to merge the 2 bitmapData, which worked fine without a blendMode, but I can't get it to work right with blendMode[code]...
View 3 Replies
Oct 1, 2011
I've been searching for the formula used intrinsically in Flash but I couldn't find anything. Does anybody know how the result colors are obtained when the 'layer' blend mode is chosen for the upper object? I thinks it's done separately in each channel using the transparency values.There might be some bitwise operations going on there but I'm not sure.
View 7 Replies
Nov 10, 2009
I am trying to erase one movieclip from another using the blendmode="erase" setting, but can only get it to work on the stage as the parent. This means it erases a hole through everything! The attachmovie also doesn't seem to work as I was expecting and I was hoping that when you drag the movieclip, the attached clip would move with it? If you check out the FLA [URL] you can see whats happening right now and what I want to achieve (diagrams provided in FLA).
View 1 Replies
Feb 17, 2011
Overlay blending mode in flash on trasnaprent, imported images, doesn't work properly! It leaves dimmed black background instead of transparency. Same thing is in CS4 and in CS5. What is even more weird is that in Flash preview stage window everything is fine, and it works, but after publishing the SWF, you can see black background.I looked for workaround that...no success. No one answeres to this question.
-I tried with 24png, 8png, gif with different settings. No success.
-Tried also with After Effects, and then export to SWF, it works surprisingly.
View 1 Replies
Oct 19, 2011
Im trying to create a 'neon glow effect thru a combination of both BlendModes and glow filter Problem is, they seem to cancel each other out if applied together...not having any luch doing this dynamically.
View 1 Replies
Aug 24, 2009
How can I punch out a alpha hole with the blue circle in the red circle with code? I can't wrap my head around setting up the blendMode properties.
View 1 Replies
Oct 4, 2010
I'm loading a batch of 50 jpgs and once loaded, on enter frame, I'd like to change their alpha individually and apply BlendMode.ADD to all of them (also individually).
I can do this easy using normal Sprite objects, but this is not efficient enough (processor wise). I've played a bit with BitmapData.draw(source, null, null, BlendMode.Add) and that's still not efficient enough.
So I was wondering if I could achieve similar effect using copyPixels (which I know should be more efficient). Still, I'm a bit clueless on how could I apply BlendMode and alpha on a bitmapData object (I mean, I know I can't, but I was wondering if I could make this work using Matrix and filter manipulations).
View 8 Replies
Sep 24, 2009
i've a problem with a MC containing 3 3D nested animated MC. When i place this MC on the main TLine, it give me
error #2007 Parameter blendMode must be non-null.
The I tried to set the blendmode of the 3 nested MC in the nested timeline:
nestedMC.blendMode = BlendMode.NORMAL;
but it keep giving me error...
View 4 Replies
Jun 22, 2010
so, a blendMode seems to break on a nested movieclip in FP10 when you change a 3d propery of the parent clip? rotationY, rotationZ, etc...Example here (sorry, not enough posts to actually link):
ActionScript Code:
import flash.utils.*;
import flash.display.*;
[code].....
View 0 Replies
Oct 7, 2010
i need to mix two images one photo and a placeholder. The idea is that we see the placeholder except where the palceholder has a particular color, in that case the user sees the photo. Something like chroma key.For this purpose i wrote a Pixel Bender shader that acts as a BlendMode. If the background is in the right color output the pixel image otherwhise output the pixel from the placeholder.
<languageVersion : 1.0;>
kernel Crossfade
< namespace : "mynamesp";
vendor : "Artbits snc";
[code]....
Everything works fine except for the fact that i had multiple placeholder, one over the other and my shader don't check the color of its own placeholder but the color of everything under the photo.Is there a way to force BlendMode to consider only a layer or a specific background color ?Is there a smarter way to obtain the same result ?
View 1 Replies
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
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
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
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
Mar 12, 2011
I am developing a flash game entirely in FlashDevelop, i.e., only with AS3 code.I want to do the following: blend, as ADD (adding their colors), a couple of moving DisplayObjects, such that the blending occurs only between them, and not with anything else in the screenWith no success, I've tried to do this: insert the moving DisplayObjects in a parent DisplayObject named container with blendMode as ADD, while all the rest of the game has blendMode NORMAL.I've also tried to set the blendMode of the moving DisplayObjects as ADD, with ontainer.blendMode == NORMAL, with also no success.Adobe's AS3 API mentions that the ADD Blend mode "Adds the values of the constituent colors of the display object to the colors of its background"
View 1 Replies
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
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
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
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
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
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
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
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
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
Jul 8, 2009
How do I set an area to be transparent in ActionScript 3.0?At the moment I'm creating a subtitles area to sit over the player and it has the following code:[code]
View 1 Replies
Oct 12, 2009
I have made a box with a rounded corner and a border in Flash but when I publish the file the outer edge of the corner is still white and I want it transparent so it takes on the color of the website background.
View 5 Replies
Nov 3, 2009
I have imported a button made in photoshop as a PNG into Flash. I want to animate the shadow behind the button.
How do I make the shadow png. go from 0% to 100% transparent? I have tried altering the colour alpha option but as expected this doesnt work.
View 1 Replies
Jan 28, 2010
On the opening of the map where it shows a transparent red spreading would you create the growing red transparent area over the map in the Pacific with transparent shape tween. Also any tutorials on doing this.
View 2 Replies