Flash :: Create Videos With Transparency/alpha-channel
Sep 21, 2010What 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 RepliesWhat 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 Replieshow to create the proper Actionscript code that will control the Alpha Transparency of a MC I want as a preloader. I want the MC to start of at 100% alpha-transparency, and then decrease to 0% alpha-transparency when the whole Scene is loaded. Also, it should show the precentage of the Scene loaded. I have the code that I thought would work to control the alpha transparency of the mc and loading it. But, I get confused with the perloader code to incorporate into the alpha transparency code? Does this make sense; is it possible?In Leaman's Terms, As the scene loads, the mc goes from invisible to visible at completion of the scene load.
Here is the code:
Code:
onClipEvent (enterFrame) {
loading = _parent.getBytesLoaded();
total = _parent.getBytesTotal();
[code]....
Now, I have no idea if and where you'd include the poper code to control the mc's alpha transparency based on the percentage of the scene loaded? Can someome maybe rework the code to make this work. And use a working example, that way I see it working to fully understand the concept? The mc's instance name is "sm_logo". Where would I use the instance name in this code, or better yet the proper code alltogether?
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 RepliesIs 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 RepliesI 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
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]....
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.
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 RepliesI 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 RepliesI 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
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]....
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 RepliesI 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 RepliesUsing 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 RepliesIs there any SWF to Video converters can convert flash to AVI with 32-bit RGBA transparency? Whats good?
View 3 Repliesis 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 RepliesI 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 RepliesWhen I load a PNG image onto my stage using AS3, Flash ignores its Alpha channel???
View 7 RepliesI 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]...
I'm using AS2 with Flash CS4. How can I change the alpha of a ComboBox? I tried:
MyCombo._alpha = 25;
// and
MyCombo.alpha = 25;
But both have no effect on my ComboBox, it just appears to have the alpha set to 100.
I haven't worked with AS3 for a few months, and even when I did I never took the time to learn it to extensively ..
I'm creating an isometric map editor, the bitmap that I'm using to take the tiles from has a transparent background, but when I draw the tiles to the main bitmap it displays as white, so it messes up the overlapping (since they're isometric).. How can I make the background of it transparent?
[Code]...
I have a movieclip and I am loading on it an external swf. The mc is just a square box basically...it is set to 69% alpha/transparent in the "Color effect: style: alpha" settings.The problem is, when I load the swf now the swf is also transparent (seems like 69%)...I basically want the mc to be transparent, but the swfs that load w/in it should not be transparent.
example code:
mc.createEmptyMovieClip("newClip", this.getNextHighestDepth());
mc.newClip.loadMovie("some.swf");
I have a .PNG image with almost 50% of the image as transparent pixels.I am using this image for a Mouse_Over event but the problem is the Mouse_Over event works even on the transparent area.
View 3 RepliesHow to use a video's alpha channel to define its hitspace for a button.
View 11 RepliesI'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 RepliesI 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.
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].....
I'm currently constructing a scrollbar as part of a website using as3 and png images. I've got loaders for each image inside of an array, and when loading on each image finishes, it's added as a child to a sprite on the stage. I've got a background image with no transparency, which loads fine. On top of that, I've got the actual slider, which loads the RGB data, and appears to be using the alpha as a 1-bit mask. So anywhere that I have partial transparency, it just shows up as black, where it should be showing the background underneath. I can't find any attribute that will change the way loaded images process alpha transparency.
View 2 RepliesI have a game and the user clicks on a button (a_btn), they are brought to frame 2 and they have to answer a question. If they get the question correct the alpha transparency of the a_btn is set to zero.
What I would like to be able to do is see if a number of buttons have zero alpha transparency then the user gets a complete message. This is what I have so far:
ActionScript Code:
if (c_btn.alpha=0 && h_btn.alpha=0){
infoComplete.text = "WELL DONE, GAME COMPLETE";
}
mc1.mask = mc2
mc2 is a movie clip that is 50% alpha. How can I mask mc1 and keep the alpha transparency? That's about it.