Actionscript 3.0 :: Alpha Gradient Masks An Object Which Will Contain Text And Images
Jul 9, 2009
I want to mask an object which will contain text and images. I want the mask to be feathered at the bottom end, for a nice smooth effect when it animates into place. For my masking object, I've created a movie clip with a gradient, using a matrix fill. When I apply the mask, it works, but only as a rectangle. The feathered area (the grey bit) still masks completely. I'm stumped with this one. I've searched around for an explanation, but can't get it to work. Does anyone know of any examples of this working?
[Code]...
View 6 Replies
Similar Posts:
Mar 31, 2011
Is it possible to get a 'feathered' mask in Flash CS4 where the edges of the mask gradually transition to 0 alpha? I tried to set this up by creating drawing a shape with the pen tool, turning into a movieclip, then filling the original outline with a white (or lime green) center to black on outside, with the outside fading to an alpha value of zero. When I apply this as a mask, however, the borders are completely sharp rather than the layer below being 'partially' masked.
View 2 Replies
Jun 2, 2010
We need to show transparency (around 70%) in the text in textarea and other components in Flex 3.5 SDK. I checked up and found these: I could use an embeded font (only ttf) and make it transparent. Now as per client requirement we have to use different sizes of Verdana only. Even If I download Verdana font in ttf format then how will I make it transparent? Using gradient boxes around the text - I found a link but this seems a heavy procedure.
View 2 Replies
Oct 13, 2009
Is it possible to create gradient text with text in a text field, without using a different object?
I have three text fields sitting right next to each other, to create a row. Some times the text is longer than the width of the text field, I don't want to widen the the text field to make it fit, I just want to fade the last 20 - 50 pixels of the text out.
Is this possible to do without using an object above it, such as a gradient?
View 2 Replies
Oct 15, 2009
I am having problems with the _alpha property of dynamic masks. For some reason they don't seem to accept it. I have a holder mc that I use as a mask and the holder is full of dynamic mcs for which I would like to set apha properties. My code is:
[Code]...
View 6 Replies
Oct 15, 2009
I am having problems with the _alpha property of dynamic masks. For some reason they don't seem to accept it. I have a holder mc that I use as a mask and the holder is full of dynamic mcs for which I would like to set alpha properties.
My code is:
_root.createEmptyMovieClip('holder',_root.getNextHighestDepth());
function init() {
for (i=0; i<100; i++) {
holder.attachMovie("msk","msk"+i,i,{_xscale:0, _yscale:0});
_root.holder['msk'+i]._x = (550*Math.random());
_root.holder['msk'+i]._y = (380*Math.random());
View 3 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
Jan 1, 2010
Im using a movie clip to mask out another movieclip(layer).This works fine with below code:
maskee.cacheAsBitmap = true;
maskMC.cacheAsBitmap = true;
maskee.setMask("maskMC");
but when that swf is imported into a container in my main movie the masking does not work.
View 7 Replies
Sep 8, 2009
I have created an image gallery for a client using actionscript 2 and xml. I have the gallery pulling in the images and text from the xml file and displaying correctly. The problem is the rollover/rollout affect I need to do. The image need an itunes affect flip, so the image looks like it flips to display a description then when you roll out it should flip back to show the image. The flash so far can be seen here [URL]
The flash works by pulling the image in from xml and putting it inside a place holder MC inside another movieclip. This movie clip contains a mask which creates the flip affect and shows a white box containing text over the image. When you rollover this works fine, but when I roll out the image, and title have disappeared when the white box is removed.
At the moment I have left the rollover affect out (as you can see on the link) but for my own sanity I would love to know why I can't get this to work. I probably havent explained this very well so I have attached a demo of how I am trying to get the rollover affect to work.
View 1 Replies
Sep 8, 2009
I have created an image gallery for a client using actionscript 2 and xml. I have the gallery pulling in the images and text from the xml file and displaying correctly. The problem is the rollover/rollout affect I need to do. The image need an itunes affect flip, so the image looks like it flips to display a description then when you roll out it should flip back to show the image. The flash so far can be seen here [URL]
The flash works by pulling the image in from xml and putting it inside a place holder MC inside another movieclip. This movie clip contains a mask which creates the flip affect and shows a white box containing text over the image. When you rollover this works fine, but when I roll out the image, and title have disappeared when the white box is removed.
At the moment I have left the rollover affect out (as you can see on the link) but for my own sanity I would love to know why I can't get this to work. I probably havent explained this very well so I have attached a demo of how I am trying to get the rollover affect to work.
View 0 Replies
Oct 23, 2010
[URL] i want the object to fade out but in the object there's a lot of overlapping pictures and each becomes half transparent. how to make the movieclip to change the alpha as it was without objects?
[Code]....
View 2 Replies
Jul 13, 2010
i want to put gradient masking effect in my 20 images.
var arr:Array = ["m1.jpg","m2.jpg","m3.jpg","m4.jpg","m5.jpg"];
for(var i=0; i<20; i++){
duplicateMovieClip(ho, "newImg_mc"+i , this.getNextHighestDepth());[code].....
View 1 Replies
Sep 27, 2009
I have a bunch of objects that each contain a color swatch movie clip. The color swatch contains a bunch of frames, each a different colored rectangle.The objects that contain the swatch clips also have a mask layer that defines what portion of the color swatch is revealed.
When I have one frame in that mask, everything works correctly. I can change the swatches with no problem.However, I need to create different frame for the mask. Once I create a second frame with a different mask, I get a Null Object Reference and everything breaks.
I tried creating shape tweens between the frames, making each mask into its own movie clip, and putting each new mask on a different layer - but none of that works.
View 1 Replies
Feb 26, 2005
As far as I know theres in no way to cahnge the alpha of a dynamic text box. I put one in a movie clip and when i try to change the alpha of it everything else in it changes its alpha but the not the DT box. Could someone plz verify for me that u can't change alpha and help me find a component that allows alpha control with a dynamic text box. thx in advance.
View 5 Replies
Feb 25, 2009
I'm attempting to create a dry erase board style animation effect in my flash movie where I'm erasing the text, like a dry erase board type effect. I've tried doing a frame by frame mask animation and it's not turning out very well. Has anyone attempted this before? Are there any tutorials or maybe after effects > flash tricks?
View 2 Replies
Sep 13, 2004
im trying to scroll a movie clip that contains dynamic text and is covered by a mask. However when i publish the movie i cant see the dynamic text? Is there anyway around this or am I done for?
View 3 Replies
Mar 2, 2010
my first time trying to draw a multi-color gradient in actionscript 3. So I got this code from the help docs, but I can't seem to get a vertical gradient, whatever formula or number I use for rotate, it stays stuck on the default horizontal gradient :(
[Code]...
View 3 Replies
Dec 26, 2011
I'm trying to create spinning rays in actionscript to use in my website.Below is the rough idea of what i'm trying to create.Is it possible to create absolutely with 0 images.Following is the actionscript code in which i couldn't figure out how to add gradient, transperant background and little radial gradient to create glow effect.
Code:
function CreateRays():Shape {
var ray:Shape = new Shape();
ray.graphics.beginFill(0xFF9900,.5);
ray.graphics.lineStyle(1,0xFF9900,.5);
[code]....
If you paste above code in 1st frame of your scene with nothing on your scene, it will give you sweet rotating rays!
View 2 Replies
Sep 12, 2011
let's say i have this object on stage and it is called myShape and i want to manipulate it via action-script and apply a gradient color to it .. no if it is a fill color i could have used the colortransform method but i don't think that it will work ..
import flash.geom.*
import flash.display.*
var fillType:String = GradientType.LINEAR;[code]........
now when i test this i don't get any errors but i doesn't apply any thing ..
View 1 Replies
Feb 19, 2009
Basically I redraw a circular object ("moon") every frame, reposition it and rotate it. I want a gradient fill that's offset to the left (-x) by the circle's radius. Instead of wasting your time talking about what I think it might be, I'll just show you the code . . .
For simplicity's sake, I've changed the colors to blue, red, green (in that order). Only the last one's showing up. I've tweaked the vales in the matrix itself for hours, but I can't really change anything. I can get the gradient fill to center on the circle, but that's the best I've done so far . . .
ActionScript Code:
var centerX = Stage.width/2;
var centerY = Stage.height/2;
var radX = 210;
[Code]....
View 0 Replies
Feb 22, 2009
How can I apply a gradient to an existent object on the stage
in this example the canvas is drawed in actionscript.[code]...
View 5 Replies
Jul 27, 2005
Is there a way to customize / influence / set a gradient fill for an object?
I want to have a gradient background take on different colors depending on an input value... If there is a way, then an explanation / example would be nice... if not, I'll just put a semi-transparent object infront of a black-to-white gradient and assign a solid color to it..
View 8 Replies
Nov 23, 2009
I am trying to set gradient for a text in flash. But it never works. It only shows solid color. How it can be done?
View 2 Replies
May 21, 2010
I want textfield text color in gradient at runtime.
Has anybody work with this???
View 7 Replies
May 31, 2010
I've a flash template and the variables are editable in XML files. I need to define a gradient on dynamic text, Here's the code in the flash actionscript that i think it's linking to xml:
/*
we color the item elements
*/
[Code]....
anyone has ideas for defining a linear gradient?? i've researched and try somethings but this is really not my field, and I seem to keep failing.
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
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
Dec 28, 2011
I am using spark.label for Mobiles in Flex, I want gradient on label text instead of solid color. But performance should be kept in mind as it will run on mobile device.
View 1 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