ActionScript 3.0 :: CopyPixels And Alpha Channel Of An Image

Jan 21, 2010

I am having problems dealing with the alpha channel of an image. Basically I do this:

1. I load an image (.png) and keep it in a bitmap:...

[Code]...

View 4 Replies


Similar Posts:


Alpha Channel Deteriorates On Scaling Image?

Sep 24, 2009

Using Flash CS4. I have some images with transparent backgrounds that I'm putting into Flash. Placed in Flash at original size, transparency looks great. However, when I scale the images to any different size, the edges of the alpha channel get real rough, not smooth and aligned to object. I've experimented with png, targa, gif, but all seem to have this problem. Is this some issue with Flash? I don't remember seeing this problem in say Powerpoint.

View 3 Replies

ActionScript 3.0 :: Add Alpha Channel To Image In Library

May 6, 2010

is there a way to add alpha channel to an image that is imported to a library and doest have alpha channel? e.g if i use setPixel32 to set a pixel of an image, the alpha channel is ignored. do i have to copy the entire image data into a new bitmap or is there a better and faster way?

View 1 Replies

ActionScript 2.0 :: Interactive Image Panning & Alpha Channel Masking

Sep 15, 2007

i have a problem with Interactive Image Panning & Alpha Channel Masking. without panning codes masking is working but with panning i can't see my masked area. code is below and icant find where i am wrong or what i am missing

[Code]...

View 2 Replies

ActionScript 3.0 :: Alpha Channel An Mc Programmatically?

Mar 24, 2009

How is a movie clip programmatically alpha'd? I've tried everything in my .as script, I run the movie, and nothing happens.

View 4 Replies

Send Live Alpha Channel VP6?

Aug 8, 2011

I need to send a live streaming to Adobe Flash Media Server  encoded with on2 VP6  8 bit alpha channel (chroma key) so all clients see only the speaker with no background.what hardware or software support realtime encode VP6 alpha channel

View 1 Replies

Video Encoding For Alpha Channel

Jan 20, 2010

I am experimenting with video using the alpha channel capability of the FlashCS3. I followed the tutorial on the gotoandlearn website on how to create chroma keyed video. I exported an avi video file having removed the background. Ive used Flash video encoder for VP6 and flash player 8 with encode alpha channel ticked. However my swf is not showing the video, just a white blank where it should be. It puts out the audio only.

This is the log file.
FILE SUCCESSFULLY ENCODED
- Source file: C:downloadsflash greenscreenvideoscreentestalpha.avi
- Output file: C:downloadsflash greenscreenvideoscreentestalpha2.flv
- Video codec: On2 VP6
- Alpha channel encoded: yes
- Deinterlace: no
- Frame rate: 25 fps
- Key frame interval: 50 frames
- Video data rate: 40 kbps
- Width: 720 pixels
- Height: 576 pixels
- Audio codec: MPEG Layer III (MP3)
- Audio data rate: 16 kbps (mono)
- FLV duration: 00:00:10
- Encoding time: 00:01:00

View 1 Replies

ActionScript 2.0 :: Get The Alpha Channel Value From External .png?

Jun 7, 2007

i can now getPixel() from a external jpg but what i finallly want to achieve, is getPixel32() the alpha value is always FF(255)

[URL] take a look on this sample~ in this sample the photo is partially transparent, i can see that in photoshop if i put my code in this file, the color picker can tell the alpha changes. that why i still think there is a chance for getting the alpha value from external .png~ just don'y know how to achieve it T_T (i've try transparent png and also alpha channel added png, doesn't work like the sample)

Code:
import flash.display.BitmapData;
import flash.geom.ColorTransform;
import flash.geom.Matrix;

[Code]....

View 2 Replies

IDE :: Alpha Channel And Mouse Events?

Nov 3, 2009

I have some png images which were converted to movieclips and exported. I would like all clicks on the transparent parts of the png to be ignored by a movie clip on a closer layer and have a movie clip under the transparent parts receive the event. Is there a way to do this? When I convert the symbol to a movie clip, the authoring tool automatically puts a bounding box on it so all clicks in the bounding box are detected. I tried searching mouse events and alpha channel stuff on the forum.

View 3 Replies

Professional :: Integrating Video With Alpha Channel?

May 9, 2007

I have a little video showing a text animation on a black background. The alpha channel is encoded. I want to integrate that video under flash but I want the alpha channel to be taken into account and I don't know how I can do that. After integrating the video, I get always that black background, how can I remove it?

View 4 Replies

Flash :: Export PNG Images With Alpha Channel?

Jun 25, 2011

I have this FLA with animation and when played, the animation has alpha channel. I cant understand why when I look in the library I see the frames without the alpha channel and also when I try to export/extract the image again the image dont have alpha channel. How is it that in flash this image has alpha channel and how to get it out like that into PNG? Here is the link to download the FLA:[URL]..

View 1 Replies

Professional :: Experience Effects Of AVI With Alpha Channel?

Nov 29, 2011

Is there any SWF to Video converters can convert flash to AVI with 32-bit RGBA transparency? Whats good?

View 3 Replies

ActionScript 3.0 :: HitTest Between Point And PNG With Alpha Channel

Dec 6, 2010

I want to check a hit test between a point and a png bitmap with an alpha channel. I know bitmaphittest is for 2 bitmaps. Hittest is for 2 bounding boxes and hittest point is for a point and shape, but it doesnt work with a alpha channeled bitmap. So what do I use to test a point against an alpha mapped bitmap?

View 6 Replies

ActionScript 3.0 :: Loaded PNG's Don't Include Alpha Channel?

Jun 1, 2009

When I load a PNG image onto my stage using AS3, Flash ignores its Alpha channel???

View 7 Replies

Use A Video's Alpha Channel To Define Its Hitspace For A Button?

Jul 15, 2009

How to use a video's alpha channel to define its hitspace for a button.

View 11 Replies

Professional :: Import QuickTime With Alpha Channel Into Flash CS3?

Nov 8, 2011

Is it possible to import a QuickTime movie with alpha channel into an FLA and have the FLA recognize the Alpha channel? When I've done this, it just shows opaque black instead of an alpha channel. I need that black to be transparent so I can see the layers below the video layer.

View 6 Replies

Flash :: Create Videos With Transparency/alpha-channel

Sep 21, 2010

What is the best way to create a video with an alpha channel, suitable for flex/flash? Does it need to be FLV, or can it be MP4/MOV as well?

View 1 Replies

Flash :: FLV Premultiplied Alpha Channel - Adding To Webpage As A Swf?

Aug 23, 2011

I have this FLV movie file that's got a premultiplied alpha channel and I want to insert it into a webpage to play as an animation, I imported it into flash and that's where I'm a bit lost as to how to make it appear transparent

The video looks to be inverted so background is black and the animation is white so if I try to publish it like that it just stays the same so it doesn't look right

View 1 Replies

ActionScript 3.0 :: Mouse Event Under An Object That Has An Alpha Channel

Jun 21, 2010

I'm building a custom UI for a program and I'm having trouble with a mouse event on an object that is visible, but is |. Imagine the top object being a frame and the lower object being a photo. I want to detect mouse events on the photo. So what happens currently is that only mouse events on the top object are detected. Thoughts on how to get around this?

View 3 Replies

ActionScript 3.0 :: 2 Sliders To Controll Timeline And Alpha Channel?

Feb 1, 2011

I want two sliders with the first I can controll the time line and with the second the alpha of an Video.

I tried this:

HTML Code:
gotoAndStop(slider.value);
video.alpha = (slider2.value / 10);
but it doesnt works.

View 1 Replies

IDE :: Strange Noise When Importing An FLV File With Alpha Channel?

May 14, 2009

I have a strange issue with the FLV files i imported to my site.These FLVs were imported with Alpha channels.In my site there is a button, that when its pressed for each FLV it starts playing.The Problem is after its been playing for awhile there is a strange Noise at the background that starts appearing slowly. (Please see attached file)The only code i have on each FLV is for transparety and a Loop (Plaese see below):

onClipEvent (load) {
this._alpha = 0;
this.dir = -1;

[code].....

View 1 Replies

ActionScript 3.0 :: Flash - Keep 'Alpha Channel' Data With PNGEncoder?

Jul 25, 2011

I'm trying to import an image and assign it to a Loader object, which works just fine, though I want to use the PNGEncoder rather than a the JPGEncoder, because if the source image has an alpha channel (transparency) I want that data preserved. The code, or the encoder, or something is preventing or deleting the alpha channel data. What should be transparent is showing as white.

[Code]....

View 2 Replies

ActionScript 3.0 :: Flash Can PerlinNoise Control Alpha Channel?

Oct 17, 2011

I'm trying to accomplish a similar effect as seen on :[URL].. I suspect its just perlin noise displacement with a loop on the DisplacementMapFilter to decrease/increase the distortion over time as well as an alpha tween. I have been able to spy that they are using caurina tweener, which isn't of interest to me.

Its the principle I'm after, not a copy of their effect. I'm trying to assign an alpha value to say, the White/Black area of a PerlinNoise generated Bitmap. Where the White would be 0% and the dark 100%. And have that White value increase over time so that the entire image, the filter is applied to, gradually fades into view.

View 2 Replies

Math :: Mapping Rect In Small Image To Larger Image (in Order To Do A CopyPixels Operation)?

Jun 16, 2010

I'm coding in actionscript 3 - the functionality is: large image loaded at runtime. The bitmapData is stored and a smaller version is created to display on the available screen area (I may end up just scaling the large image since it is in memory anyway).The user can create a rectangle hotspot on the smaller image (the functionality will be more complex: multiple rects with transparency: example a donut shape with hole, etc)

3 When the user clicks on the hotspot, the rect of the hotspot is mapped to the larger image and a new bitmap "callout" is created, using the larger bitmap data. The reason for this is so the "callout" will be better quality than just scaling up the area of the hotspot.The image below shows where I am at so far- the blue rect is the clicked hotspot. In the upper left is the "callout" - copied from the larger image. I have the aspect ratio right but I am not mapping to the larger image correctly.[code].....

View 2 Replies

ActionScript 3.0 :: Maximum Of Loaded Png's With Alpha Channel In Attached MovieClips?

Jan 10, 2011

On my stage I have 2 empty MC holders, each of them in a seperate layer. In the bottom mc holder called 'map' a map image is loaded from my XML file using MovieClipLoader. This works fine.

What I want to achieve is that on top of the map, 24 PNG images with Alpha channels are loaded into seperate MovieClips attached in MC holder 'projects'. For every PNG image a MovieClip from my library is attached in order to determine the hit shape of the PNG image. This works fine too!

However all of sudden my first 2 MovieClips with the PNG images in it dissapear as soon as all of the images are loaded. But when I roll over on of the other MovieClips they suddenly show up again and when rolling out they dissapear again!

It has nothing to do with my XML file nor my PNG images, because when I move my first 2 XML nodes (the ones that are dissapearing) to the end, 2 different MovieClips dissapear! It worked absolutely fine before but since I added 2 more MovieClips the problems started. It almost looks like I can't load more then 22 PNG images, but that would be extremely weird.

I tried creating the first half of the MovieClips in one MovieClip and the second half in a different MovieClip, but that doesn't change anything. But when I create the first half of the MovieClips in the _root and the second half in a MovieClip, only 1 MovieClip dissapears instead of 2!

I really don't get it. I'm totally confused and lost since I don't know what else I could try.

Here's my AS2 code:

Actionscript Code:
var pimage = new Array();var pmc = new Array();var ptitle = new Array();var phit = new Array();var ptooltip = new Array();var pmenu = new Array();var ptotal:Number;var phalf:Number;function fillProjects() { nodepath =

[Code]....

View 21 Replies

ActionScript 3.0 :: Playing Video With Alpha Channel - Objects Behind Clickable

Jul 30, 2011

I have a Video object which plays a video with an alpha channel. There are objects behind the Video object which I'd like to allow the user to interact with, so if someone mouses over the playing video nothing happens but if they mouse over objects in the background, something happens. Is this possible?

View 3 Replies

Actionscript 3.0 :: Augmented Reality - Export A Mov With The Alpha Channel To Let The Background Go Away?

Oct 23, 2010

I tried to playing around with the augmented reality. Therefore I watched the tutorial (http:url....) and all works like a charme to me. I replaced the kramer.m4v with my own video. It works perfectly.But I want to have my own video on a transparent layer.So that I can see myself not within the background of my video.Therefore I did a video on a greenscreen and keyed the background. All seems to be ok!I exported the video in an .mov with the alpha channel. It works so far, but the black background is still there if i hold the marker to the camera.so my question is: Is it not possible to export a mov with the alpha channel to let the background go away?

Any hints or workaround? I just want to have a video with me speaking on a transparent background and not with teh black background. I changed the kramer.m4v in the HELLOFlar.as to kramer.mov (its with my own video, just the name is the same) but the background isnīt gone

View 11 Replies

ActionScript 2.0 :: Create Is A Loader That Fades In An Image Using The Aplha Channel?

Jan 9, 2009

all i want to create is a loader that fades in an image using the aplha channel. my movie clip instance is called mc_01. whenever I simulate a download it shows nothing. anyone know what im doing wrong? Coded on Action layer frame 1 of scene named "preloader"

stop();
mc_01._alpha = 1;
this.onEnterFrame = function():Void {
var loadedData:Number = this.getBytesLoaded();
var allData:Number = this.getBytesTotal();

[Code]....

View 5 Replies

ActionScript 2.0 :: Alpha - Fade One Image Out While Fading Another Image In?

May 29, 2002

What I want to do is fade one image out while fading another image in. The script that I am using fades one image to alpha 0 then fades the next one in to alpha 100.The script that I am using is this.On first frame of main timeline

back._visible=false;
function goPage(whichWay){
slides.alphaChange=-5;[code]....

This script works fine but I want to modify it.

View 12 Replies

ActionScript 2.0 :: Alpha Fading In/out Loaded External Image?

Jan 4, 2009

i will like to create an alpha in effect when i load my external jpg, and alpha out when i close it..on this?below are my script

PHP Code:
this.createEmptyMovieClip("container_mc",this.getNextHighestDepth());
var mclListener:Object = new Object();

[code].....

View 5 Replies







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