ActionScript 3.0 :: BeginGradientFill For A Vertical Shadow
Jan 15, 2010
I'm having problems creating a vertical shadow using beginGradientFill. Basically, I'm just trying to put a verical shadow on my player controls. The horizontal shading looks great, but then why I try to move to the vertical it just goes grey (when I'm using a combination of white and black).
into an equivalent beginGradientFill call. My best guess of the translation is this
var matr:Matrix = new Matrix(); matr.createGradientBox(20, 20, Math.PI/2, 10.294, -0.276); g.beginGradientFill(GradientType.LINEAR, [0xFFD500, 0xF5A106], [1,1], [0,1], matr);
but I'm not sure if this is right, nor I know what the size of the box should be (the two 20s in the code above are just me trying stuff). Would love any expert expert opinions!
I am using actionscript to create a gradient fill which works beautifully until I try to load the colour variables from an XML. The variables load successfully, when I trace the dynamic variables they show whats in the XML file (0xf6e3ba, 0xe9c98d) but the gradient appears white to black. When I use the HEX colour values in the code directly (the gradient works) but the trace returns (15321485, 16180154). If I use these values in the XML file I still get white to black.
i have been searching the internet for a bit, and maybe i don't know what to look for but i know filters have stage scaling enable, not sure that is what i am dealing with but for some reason i can not scale a movieclip that contains a movieclip with a drop shadow filter without the drop shadow acting like the light source has changed, have tried copying the bitmapdata....anyone know how to "freeze" the drop shadow.
i found i can get vertical dynamic text block by setting to vertical and then to dynamic. But, then it ends up being horizontal, and if inside a clip, only the letters over another item in clip show. Like veritcal text on a vertical bar gives only the 1 or 2 letters that fit across bar, rest truncated. i've tried embedding text to get this far, but still doesn't work 'all the way' i see online they talk about all scripting for dynamic, vertical text; is that necessary, or am i missing something??
I've got a placed png file in flash that is set to multiply for it's blending. It's a shadow.If I were to put an image below in the flash file it would look fine, however I'm having save it out as is and pass on to a developer who's laying the swf file over an image on a html page.When this is done the shadow looks bad as it's transparency fades through white, so when on a dark image in the html page it looks rubbish. Is there a way to achieve a good look as if the dark image was in flash? Should I be creating the shadows in photoshop differently?
[URL]See the scrolling text on the flash banner? I added drop shadow filter to it and it isn't showing up, the drop shadow isn't there. I am making that scrolling happen with action script?
First i made the images with drop shadows in Illustrator and they looked fine there. When i copied them in to Flash they became pixelated.
I then got rid of the drop shadow in Illustrator and re-made it directly in Flash using the Filter/Drop Shadow property. It still is coming out very pixelated, even on "high quality" setting.
I'm using Flash CS5 on Macintosh.Googling has led me to maybe a dozen tutorials on creating a drop shadow in Flash, so I understand how the procedure is supposed to work. Select the object and then look for "Filters" and apply the "Drop shadow" filter. Simple enough.But it seems that you can only apply a filter to an "object." The things I've been trying to create a shadow on are of type "drawing object." Everything else I've tried to create or import has some other name, and none of them have the Filters menu.I'm embarrassed to have to ask about something that should be (and according to all the tutorials is) drop-dead simple, but I just don't see any way to create a drop shadow in Flash.
I'm trying to add drop shadow to text, however, I don't see the "filters" panel. I'm not sure how to enable it.I've uploaded a screenshot of my current workspace, maybe someone can tell me where I go to enable the filters window/panel: URL...
Okay so quite an ambiguous title but what I'm trying to do is cast a shadow off shapes from a light source. Simple enough and I have it working but I just can't work out how to fix the problem of when the light source is at a certain angle to the shape I'm casting a shadow from.I know it's the whole 180 to -180 thing, but I just can't think of a work around.I've attached the swf and fla so you can see for yourself.Basically the code works by chucking points of the shape in an array and then arranging the array by the angle of each point from the light source. No big deal. From there it just takes the first and last point in the array and draws a shadow from there. Sketchy for the time being I know, but I just don't understand why it's doing what it is.
I want to display an image gallery that when clicked shows a video over top of the browser (like shadowbox)- full screen.I have tried full screen but I can't get rid of the message about using the esc button that flash player displays.
So, the good news is that I've got this about 90% solved. Anyway, I'm trying to use TweenMax to have a drop shadow fade up on a Mouse Event (on a roll out). Everything works fine except for the shadow color. I've got it set to black (0x000000), but it's making a shadow that's the same color as the menubar sprite it's trying to shadow.
In other words: I've got a bright blue menu button, and it's giving it a bright blue shadow, despite the fact that I've got the color value set to 000000. Basically, I've got some code to put together the parts of the menubar (size, shape, text, shadow, etc.)
How do you remove the border & shadow from a scrollpane?I've tried to edit the component parts (after reading that it's a filter applied) but I can't find the component that needs edited.I've also tried setStyle for shadowColor and borderColor but that isn't making any difference.
I am fairly fluent in Photoshop, and im trying to figure out a small problem I am having. I will try to be as clear as possible, so bear with me...
I have created a character (superman) in Flash (action script3) who is divided in many layers. His eyebrows, mouth, wrinkles, eyes ect are all on seperate layers. I figured that was something you needed to do to allow ease in animation? Keep the head as one solid object, but keep the eyes, eyeborws ect on a different layer to animate... (right?) After building the face color layer, I added a shadow and highlights layer on top of it. After doing so, I have tried to `merge` them (which i believe is when you make it a `symbol'?) and it gives me a strange result. Either the shaded areas turn black, or the cut out the color of the face, almost like they have become a mask. Here is a before and after:
So im curious, is there any way I can merge my highlights and shadows layer to the base layer, without this problem? Or is there something I am missing. The shadows and highlights were made just by layering a black, or white, layer with opacity, over top of the solid color layer. I figured it would be as easy as it would be in Photoshop, just merge them in the end, but no. Then again, this is new software all together for me, so I could be missing something.
As you can see, its made up of many layers:
So the other question is: After I manage to merge the proper layers with each other (Face, face outline (stroke), highlights and shadows to make up the HEAD) how do I cut the rest of it up for animation? Seeing as his body is one piece, from neck to feet (including arms), how am I going to cut that up and still maintain the vector lines? Or will I need to build the arms totally separate, and then layer it that way...
Is it possible to add drop shadow to plan views of vehicles (vehicles are png images as MovieClips) such that as the vehicles change direction along roads (also png images) the shadow is always cast to north west ot the vehicle ? Buildings in the base png image have shadows but vehicles also need them so as to belong to the scene and not appear false.
Is there control over opacity and softness ?
If I were to have plan views of humans walking would the shadows follow the leg movements ?
This probably goes for all programming languages. I use Adobe Flash AS3 and for some reason that is boyond this post, I cannot use built-in dropshadow filters. I do, however, have bitmap data available, with color and alpha values. So there should be a way to draw my own dropshadow filter.... right? Any good existing algorithms I should go and check out? Not specifically looking for an AS3 implementation, any other example will probably allow me to convert the code.
I'm having a hard time removing some type of shadow in a button control. Here's the button:
The button that's giving me trouble is the "zoomer" one. As you can see, the borders are not straight. I assume that there's some kind of gradient/shadow or sth that's inherited from the default skin.
I am new on AS3, I try to wrote an as3 file to add shadow effect on an object, it work fine, however I can't remove that effect by removeEventListener. AS3 file and FLA enclose.