ActionScript 3.0 :: Cannot Scale A Movieclip That Contains A Movieclip With A Drop Shadow Filter Without The Drop Shadow Acting
Feb 20, 2009
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've dynamically drawn a gradient background on a little widget I've built (pulls in EPA/National Allergy Bureau climate data from a vendor, if you're curious), and I have applied an AS 2.0 drop shadow filter to the background. Standard stuff...except...
...I embedded the SWF using SWFObject and matching the dimensions of the widget stage exactly. And the left/right edges are cutting off. Are there any guidelines for using a background AS 2.0 drop shadow filter and accommodating the filter with the embed? It's a 10px (5px depth, 5px blur) 90-degree filter, and I left room on the stage for the 10px below the background. But the "edge" I expect to see on the embed isn't showing up.
Here's the filter code, BTW:
Code: outlineShadow = new DropShadowFilter(5,90,0x000000,0.33,5,5,1,2,false,false,false);
[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...
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.)
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.
It works pretty well, the only problem is that it makes the video much slower. If I take out the Drop Shadow Effect the video plays well. Is there a way to apply a Drop Shadow with AS3 without making the Video slower?
I have a grey rectangle, with a drop shadow that I use as a backdrop for some portfolio images, to view the images and and their explanation I have set up some rollover buttons at the side. Now every piece of type or image I lay over the grey box also has a drop shadow, no matter what I do, they have nothing attached to them in the filter menu....
I am trying to make a xml based portfolio in Flash CS5. I want to use a UILoader to load external images, but I want the images to have a drop shadow when displayed. I tried saving the image with a drop shadow in Photoshop with a .png format. When it was uploaded the image didn't show the drop shadow and had jaggy edges. Normally I use a filter in Flash but the option isn't available for the UILoader object. if there is a way my images can be displayed with a drop shadow, otherwise I will do without.
I'm currently experimenting flex 4 skinning. I successfully skinned most of the components i need for my application, but i can't find a way to avoid this damn blue drop shadow which is displayed when u'r focused on a textfield or a combobox.
I have some textfields generated from code, and if I apply a drop shadow filter on them, sometimes the right or the bottom part of the textfields' border just disappear.
Is there a way to add an inner drop shadow using TweenLite? I'm trying to add it to an input text field that I've created. I don't want to have to load an image, but I think i might have to.
I have a complex graphics data on a sprite or a shape (no matter which is exactly). But I want to draw shadow (inner too) for one Rect ( [10, 10, 240, 25] for example) or another path.
I have some code that builds a shape and adds a shadow filter. If I use a single call to make the shape, like drawRect() or drawRoundRect() all looks fine including the shadow. However, when I do something like:
Code: shape= new Shape(); shape.graphics.beginFill(0xfffffff, 1); shape.drawRect();[code]...
The boundaries of these draw calls do overlap each other. The final shape by itself looks fine. But as soon as I add the shadow filter, parts of the shape get transparent. I belief it has to do with the various draw calls within begin and end fill.
I'm trying to create this drag and drop sequence where the "temperature_small" movie clip is dragged and dropped onto a spot on the stage. I've got the drag and drop part of the ActionScript ready, but the trouble comes when I want to re-size the movieclip to make it smaller, I keep getting the error code:
The thing is: I have got 5 movieclips which are able to drag and drop. Next to that I've got 20 containers which are all droptargets. The movieclips are able to be dragged and then dropped on a container. So far so good. But what I want is that when I drop a movieclip on a container which already has a movieclip dropped on it, the first movieclip gets removed and the second movieclip is dropped on the container. Or you could also say.. that the second movieclip replaces the first movieclip. This instead of the fact that a container has multiple movieclips dropped on itself.
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?
I have some drop targets that work, but I also have a movie clip that can be turn on over the main timeline. All this clip is, is some low alpha colors for a viewing effect. Since it's above the drop target though it doesn't want to work. Is there a way to make it associate with the droptarget underneath, or a way to make the
first attempt to make a website and my first attempt to do anything in actionscript. the site is at the url given below. [URL] my problem is that the dropdown menu on the "services" button appears behind the page content, how do i solve this issue? as3 code is given below, not the tidiest of the script but its my first attempt.
I have a movie clip that I am dragging onto another movie clip and i want it to stay put. But once I add in another 'OR' statement in the if statement, it freaks out and doesn't work. Why is this?
This code DOES NOT work: Code: btn1.onRelease=function(){ stopDrag(); if( (eval(this._droptarget) != btn1Hold) || (eval(this._droptarget) != btn2Hold) ) {//CHANGED LINE [Code] ..... For whatever reason it doesn't like the extra 'OR' in the if statement! why!?
I created a movie clip (which I add to the main class of the scene in FlashCS5 with addchild). Its registration point is on its upper left. Its class is:[code]The problem is that it is not moving properly, like jittering.