ActionScript 2.0 :: Alpha Gradient Mask_in A Container?

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


Similar Posts:


ActionScript 3.0 :: Showing Alpha / Gradient In Text

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

Flex :: Variable (Linear Gradient) Transparency For UI Container?

Mar 19, 2010

I would like to have a variable transparency for a Flex UI container. The upper half of the container should be completely opaque but the lower part of it should smoothly change from completely opaque to completely transparent.

View 1 Replies

IDE :: Gradient Masks - Edges Gradually Transition 0 Alpha

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

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

ActionScript 2.0 :: Apply The Gradient Fill To The Container Movieclip Which Has The Instance Name Of "flower"

Dec 30, 2008

I intend to apply a linear gradient via actionscript to an image (.png) with transparent areas. Of course, I previously converted this image to a movieclip. So I actually want to apply the gradient fill to the container movieclip, which has the instance name of "flower". Here's the code:

[Code]...

There must be something wrong with my code because nothing happens when I call the myFunc() function. the more time I'm spending on trying different variations of these variables, the more frustated

View 9 Replies

Flash :: Create A Vertical Color Gradient (or Any Other Angle Besides A Flat Horizontal Gradient)?

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

ActionScript 3.0 :: Flash : Create Gradient Fill, Transparent Background And Radial Gradient?

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

ActionScript 3.0 :: How To Change Alpha Of A "container"

Jun 2, 2011

I have 4 btn (text1, text2, text3, text4) in the "left_side" and each of those change "contain1" to "contain4".contain1, contain2, ... are all in my library and my btnthat's the code:

import fl.transitions.*;
import fl.transitions.easing.*;
// claim MCs from library to use on stage when needed using addChild

[code].....

View 5 Replies

Flex :: Prevent Container In ItemRenderer From Exceeding Width Of List Container?

Jul 2, 2011

In a Flex Mobile project I have a simple itemRenderer where I'm trying to create an "bubble" texting effect, similar to ichat or iphone (just so you get what im going for). But if the text is longer than the screen it runs off, rather than just going down a line.

If I set Group thats holding the rectangle(to create the bubble effect) and the label to 100% it works and keeps it from exceeding the list containers bounds, BUT the group is always at 100% and looks bad, I'm trying to keep the "bubble" JUST AROUND the text.

Anyway so, at the top of my itemRenderer I tried specifying:

<s:ItemRenderer xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark" width="100%" height="100%">

And here's my layout I figured since msg_container has a width of 100% I was hoping bubble_lable_group would just not exceed that but...it doesnt...it just runs off. I tried setting a max width but that does not allow you to input percents. And just to say it 1 more time. I know if i set bubble_lable_group width to 100% it works, and keeps it from going off the edge, but then the rectangle "bubble" stretches all the way across and just looks bad.

<s:VGroup id="main_container" horizontalAlign="left" paddingBottom="10" paddingTop="10"
verticalAlign="top" width="100%">

[Code]....

View 1 Replies

Professional :: Run Project (main Container SWF And Child SWFs) Into Another Container File Which Place On A Website?

Jun 17, 2010

I am facing a issue in Flash container. I am having a project which has main container which call different SWFs into it. Now I call this main container file into another container, and their problem starts. Many option doesn't work properly which generally have _root, _parent etc...
 
If I want to run project (main container SWF and child SWFs) into another container file which place on a website. I want to show whole project from this container file so what I need to do?

View 1 Replies

ActionScript 3.0 :: Setting The Alpha Of MovieClip With Objects Changes The Alpha Separately For Each Object

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

ActionScript 3.0 :: Curious Tip: Flipping Sprite.alpha=0 To Alpha=1 Back And Forth With No Logic?

Dec 15, 2011

just spotted this curious trick. If you want to flip something to go invisible on a click, and then reappear on another click (etc etc), try this:

create the sprite, setting alpha to either to 1 OR -1
mySprite.alpha=1; //OR
mySprite.aplha=-1;

[code]....

View 9 Replies

ActionScript 2.0 :: Loading A Movie A Solid Shape Is There With Alpha At 100% Then Over A Period Of 5 Secs Its Alpha Is Reduced To 0?

Jun 27, 2003

using AS, on loading a movie a solid shape is there with alpha at 100% then over a period of 5 secs its alpha is reduced to 0.

i'm new to this......please help if you want to if you don't have a good weekend but think of me struggling onwards and upwards...

View 14 Replies

Flex :: Dynamically Adding Container To A Dynamic Container

Sep 21, 2011

I have a loop that goes through data from a book and displays it. The book is not consistent in it's layout so I am trying to display it in two different ways. First way(works fine) is to load the text from that section in to a panel and display it. The second way is to create a new panel (panel creates fine) and then add collapsable panels(nested) to that panel. Here is the code from the else loop.

else if (newPanel == false){
// simpleData is just for the title bar of the new panel
// otherwise the panel has no content

[Code]....

The error I get is: ReferenceError: Error #1069: Property panel4.4 not found on components.readTest and there is no default value.

I have tried setting the "name" property instead of the "id" property.

View 1 Replies

Flex - Hide Container Of A Viewstack Container?

Dec 23, 2010

I have a viewstack container w/ 3 views: red, black, and blue. How can I completely hide the black & not include it?

[Code]...

View 2 Replies

Flex :: Drag Circle From One Container To Another Container?

Jan 13, 2012

I am creating an flex Air project,so mxml file will run. I have circles in one Big circle at one side and will be same on other side.

Now how to drag any circle from any Big circle to other side. Or it could be like any two container having circles, then how to drag and drop circle?

For one circle i am able to do drag and drop.But I want one Big circle on left hand side and one big circle on right hand side .And small circles with class names will be in these big circles.Now i want to drag and drop those small circles in big circles.Big cicles should not move. Even i have tried this code in actionscript

package
{
import flash.display.Sprite;
import flash.events.MouseEvent;

[Code].....

But in this i want big circles should not move and small circles should only be dragged.

View 1 Replies

ActionScript 3.0 :: Scale Container In Another Variable Container?

May 6, 2010

I need to place an image into a container. The problem is that I will not know the size of the image or the container beforehand, so it all has to be dynamic.this is how I started (have not gotten to stage(or container) changing size yet. No matter what I try, either all the images are the same width, or they are all the same height. If some images are portrait and other landscape, I don't want all the images to be X pixels high. In this variation of the code, all the images turn out the same height, regardless of portrait or landscape.

ActionScript Code:
var ratio:Number = container.width/container.height;//get the ratio, if width is bigger than height then ratio is greater than 1, else ratio is smaller than 1

[code]........

View 0 Replies

Flex :: Moving Children Of A Container (defined In MXML) Inside An "inner Container"

Jan 27, 2010

I'm currently working on a custom component which extends Canvas (let's call it SuperCanvas) ; it's basically a container that let you zoom & pan its contents. It would be too long to explain why, but I can't use scrollRect, so I was forced to declare a Canvas object (called innerCanvas)... inside my SuperCanvas (I know, not very nice =/) I would like to know if there's a proper way to "redirect" the creation of my component's children in this canvas.

[Code]...

View 1 Replies

Set Alpha For Whole Stage Down But Have 1 Mc Full Alpha?

Aug 2, 2011

I want to do aplpha = .5 for the whole app, but then have a MC display at full alpha, is there any way to do this?

View 6 Replies

IDE :: Gradient Mask In CS5?

Nov 13, 2010

Is there a way to create a gradient mask in Flash Pro CS5? I am able to get it to work in FPCS4 but apparantly the process was changed or the functionality eliminated in CS5.

View 1 Replies

ActionScript 2.0 :: Dynamic Text Alpha - Find A Component That Allows Alpha Control With A Dynamic Text Box?

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

Gradient Tool No Worky

Apr 20, 2006

When I create a gradient and fill with it, sometimes the gradient transform tool works perfectly. Other times, I click on the gradient fill with the gradient transform tool and the gradient is selected as if I clicked it with the "Selection Tool."I can't get the gradient transform tool to give me any handles to adjust the gradient once applied.

View 11 Replies

ActionScript 3.0 :: Draw Gradient Box?

Nov 7, 2009

i have drawn a gradient shape on the stage and i want to replicate it with code now.how the gradient looked on the stage.how do i spread it out more?, you can see on the picture that its wider than shape's height.and i am also guessing the angle...

Code:
var upColor:uint = 0x9999cc;
var downColor:uint = 0x000000;[code].....

View 0 Replies

ActionScript 3.0 :: Add Gradient On A Linestyle?

Dec 20, 2009

With linestyle, I can only specify a color unit value. How do I add a gradient to the line?

View 1 Replies

Actionscript 3.0 :: Gradient On A Rhombiod?

May 6, 2009

i want to color a rhombiod with an gradient and i've no clue how to do this.so the rhombiod is a movieclip and has already a gradient fill (which was done manually). and now and want to change this gradient fill from as3.but the problem is that the gradient is always appering behind the rhomboid and i've found no ressources to skrew it to the right angle.

View 1 Replies

ActionScript 2.0 :: Change Gradient With It?

May 29, 2003

Is there any way to use flashes new Color () method to change colors in a gradient?

I have a fire effect using a three part gradient, and I'd love to be able to change the color of the fire dynamically through actionscript.

View 2 Replies

IDE :: Remove A Cursor From The Gradient Bar?

Jan 28, 2009

How can I remove a cursor from the gradient bar in the color TAB ?

I'm using Flash CS4

(see attachment)

View 2 Replies

IDE :: Flash Site With Gradient Bg?

Apr 11, 2009

What do i write in the index.html file for a flash site so that the background is a gradient fill?

I know this code changes the bg to a solid colour:

<body bgcolor="#1b1b1b"> but what do I need to make a gradient like this site:[URL]..

View 1 Replies

IDE :: Save The Custom Gradient?

Dec 12, 2009

I really need to save this gradient, but i don't know how to?

View 2 Replies







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