ActionScript 3.0 :: Images With Alpha Transparency
Oct 25, 2011
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 Replies
Similar Posts:
Sep 14, 2009
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.
View 1 Replies
Aug 28, 2009
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]...
View 7 Replies
Nov 11, 2009
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");
View 4 Replies
Jun 17, 2011
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 Replies
Sep 10, 2011
I 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";
}
View 9 Replies
Jan 9, 2010
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.
View 3 Replies
Jun 14, 2010
I have embedded a font type in my application. Its working fine inside a text area. Now i need to add 60% transparency to it. In fact I need multiple transparency levels. Like -
60 % transparency for TextARea
70% for WindowShade Header etc.
How do I add alpha values to it?
View 1 Replies
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
Jun 14, 2010
I have embedded a font type in my application. Its working fine inside a text area. Now i need to add 60% transparency to it. In fact I need multiple transparency levels.
-60 % transparency for TextARea
-70% for WindowShade Header etc.
View 2 Replies
Mar 7, 2005
how 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?
View 2 Replies
Jun 27, 2010
how to grab the transparency (or alpha value) of individual pixels in an embedded or loaded video? We tried copying over a frame of video into a bitmapdata object with transparency enabled. However, even though we can "see through" the video at certain spots (indicating alpha = 0 there), the alpha value comes back as 0xFF for every single pixel in the BitmapData object.Obviously alpha data is being stored inside the embedded video, but how can I actually get that value?
View 0 Replies
Oct 5, 2010
im trying to do a shape hittest against 2 imported pngs with transparent outer areas..
PHP Code:
if (_root.circlePNG.hitTest(_root.trianglePNG._x, _root.trianglePNG._y, true)) { trace('Hit');}
above is an example of the code i used, the triangle png image would be hitting the circle png image with transparency around the outside of each shape.Shapeflag just doesnt seem to cut it with png's, it just seems totreat it as a hit and miss bounding box hittest, is there another way i can do it that will be pixel sensitive and ignore all transparent pixels?
View 3 Replies
Jan 13, 2005
I'm creating a photo gallery, but my pictures have transparency, that is why I can use the jpg format to load the pictures from a folder. I read the tutorial to make a photo gallery but it works only for jpg files, I also want them to appear and disappear using alpha. I think I must use the attachMovie method and keep the images in png format in the library but I can't get to the correct script.
View 2 Replies
Jan 13, 2005
I'm creating a photo gallery, but my pictures have transparency, that is why I can use the jpg format to load the pictures from a folder. I read the tutorial to make a photo gallery but it works only for jpg files, I also want them to appear and disappear using alpha. I think I must use the attachMovie method and keep the images in png format in the library but I can't get to the correct script.
View 2 Replies
Apr 22, 2010
The images that cycle through on the top of this page: [URL]..There is a transparency "curtain" that is used to transition between the images. Does anyone have any suggestions on how this can be replicated?
View 1 Replies
Oct 6, 2009
I am using Flash 8 - trying to get started by simply fading in/out using Alpha. I totally get on the first layer converting image to movie, inserting key frame and motion tween, selecting clip and changing alphato 0%. Where I am absolutely lost - is when it comes the second, third, fourth and fifth image. I have tried inserting new layers and repeating the steps - but for some reason 2-5 images do not transition like image one.
View 2 Replies
Aug 19, 2003
I have the code below which rotates a MC and fades it in to 100alpha and then fades it out again to 0 alpha. bearing in mind that all this happens on one frame, is there a way to get rid of the ghost image of the MC once the alpha gets down to 0?
I've tried to achieve this at the foot of this code with the removeMovieClip() but it doesn't seem to work.I know i could just let the timeline play to another frame once the animation is over to get rid of the ghost image but i'd really like to keep the animation to just the one frame...
onClipEvent (load) {
amount = 5;
count = 0[code]..........
View 3 Replies
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
Jun 13, 2010
what is it called when you have a image say 50x500 but is shown as a 50x50 and every so many seconds it changes its x by +50 making it play like a filmstrip. Also is it possible to color-to-alpha images imported VIA .load ?
View 1 Replies
May 6, 2006
I'm creating a portfolio which has tiny square buttons (one for each image) and arrows buttons to navigate through the portfolio. Everything is working just great, but I need the square buttons, when pushed, to change alpha or turn to dk grey instead of lt grey, and remain this way until the next image is shown. They should act as indicators as to where you are in the portfolio. The code I'm using is as follows:
picture._x=24;
picture._y=31;
function loadXML(loaded) {
[Code]....
View 1 Replies
Sep 12, 2008
[Code]...
This code isnt working to fade in my loaded images. am i missing something?
View 4 Replies
Sep 18, 2009
It has been years since I have used flash so I am probably a beginner again. I have just got CS3 but most of what I remember I think is action script 1.I have a website that I want to make the images load from external into swf file. I want to then control the alpha with the rollover. I got so far but... alpha works only if jpg is inside. when I have it outside it just flashes on and off on load.I need to make the my_mc to load from outside then fade in. After which I have the rollover fade in/out code below...
Button.prototype.fadeIn = MovieClip.prototype.fadeIn = function () {
this.onEnterFrame = function () {
if (this._alpha<100) { [code].....
View 12 Replies
Mar 21, 2005
What im trying to achieve is an alpha effect with image transitions. I have some links that I want to make an alpha fade for images when the users passes over the buttons. The effect that im searching for is like this one:
[URL]
But only, they should be triggered by rollovers not mousemovement. In addition i have some images connected to the buttons. for instance on productslink the product image should be "alpha 100%" and the previous image should animate from 100 to 0 % alpha.
View 1 Replies
Jul 22, 2011
I've got something very strange happening with the alpha of some loaded pictures. I load 27 images dynamically from within a class:
PHP Code:
package{
import flash.display.*;
import flash.net.URLRequest;
import flash.events.*;
public class Portrait extends Sprite{
[Code] .....
However the first 4 portraits won't change alpha to a float number, I can only set the alpha to 1.
Code:
test_portrait = new Portrait(i, 0.8, (film_width/2)-(240), white_bg_square.y);
Results in a blank screen for the first 4 portraits... All the other portraits change transparency fine. There's nothing wrong with the loaded pictures because I swapped 1 for 10 and the problem remained while image 10 in an other position changes alpha just fine.
View 5 Replies
Jan 15, 2011
I'm in the middle of building a simple flash slideshow, using alpha fades between images. I have three layers, the first one being text, on the timeline for each layer/image. The other two layers are images, small footprint (sized and optimized in photoshop, each less than 100k). When I hit the Enter key it will play on timeline but the preview and fla file just won't start, hung up on the first frame.
Flash 5 Pro
11.0.2.489
iMac 3.2 Intel i3
10.6.6, 8GB Ram
View 2 Replies
Sep 16, 2004
the problems is that the alpha fade that I created, does not reset when a new images is loaded.Here is the script.
start of script
onClipEvent (load) {
photos = new Array("images/mel_1.jpg", "images/mel_2.jpg", "images/mel_3.jpg", "images/mel_4.jpg", "images/mel_5.jpg");[code].....
View 1 Replies
Oct 2, 2003
All the images have to be in timeline 1 on different layers(they all have to be in timeline one........).I have a frame, it has a lot of images on it, with them all set to _alpha = 0;
on a button press the required image has its alpha set to 100;
however this means there will be a lot of images on the screen at once....
If alpha is set to 0 does flash have to still draw the object, is there a better way ?
View 5 Replies
Feb 2, 2004
Is it posible to realize a alpha tween effect between two images with an interval of let'ssay 7 seconds, based on ActionScript.
View 3 Replies
Sep 16, 2004
I am learning actionscript and having a tough time of it... Here is the script I am having problems with...the problems is that the alpha fade that I created, does not reset when a new images is loaded. Here is the script,
[Code]....
View 1 Replies