Shadow Filter
ok how can you do this, for example let say that I want to use the Shadow filter in Flash 8 in my whole SWF .... so in the first frame I got this .
Code:
import flash.filters.*;
var ds:DropShadowFilter = new DropShadowFilter(0,90,0x000000,1,10,10,1,3,false,false,false);
middleCube.filters = [ds];
and what happend here is that I just can use this when the code and the MC (middleCube) are in the same frame ... so if i have this movie clip called "middleCube" in another frame or inside another MC how can use the same Var [ds] without repeating the all the above (import falsh.filters.*; .... etc ) in the other parts of my movie as well ?
there is anyway to do this.
thanks.
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 06-04-2006, 03:51 PM
View Complete Forum Thread with Replies
Sponsored Links:
Shadow Filter
ok how can you make for example let say that I want to use the Shadow filter in Flash 8 in my whole SWF .... so in the first frame I got this .
Code:
import flash.filters.*;
var ds:DropShadowFilter = new DropShadowFilter(0,90,0x000000,1,10,10,1,3,false,false,false);
middleCube.filters = [ds];
and what happend here is that I just can use this when the code and the MC are in the same frame ... so if i have this movie clip called "middleCube" in another frame or inside another MC how can use the same Var [ds] without repeating the same (import falsh.filters.*; .... etc ) in the other pars of my movie as well ?
thanks.
View Replies !
View Related
Drop Shadow Filter Not Showing
Hi -
I'm using the Filter tab on the Properties palette to apply a drop shadow. as I'm working on the FLA it looks as expected but when I publish it - no shadow. The shadow is not part of the MC but applied after the MC is placed on stage.
What's wrong? Why aren't I seeing the shadow in the swf?
TIA your input.
jl
View Replies !
View Related
Trouble With Drop Shadow Filter
hello
i am working with a drop shadow filter class and for some reason i am un able to adjust the params of the DS after i set it up
this works
protected var commonDSropShadowFilter = new DropShadowFilter(2,45,4,.3,4,4,1,1);
but this doesn't
protected var commonDSropShadowFilter = new DropShadowFilter();
commonDS.distance=2;
commonDS.alpha=.3
commonDS.angle=45;
commonDS.quality=1;
any ideas what im doing wrong?
View Replies !
View Related
Drop Shadow Filter Problem - Bizarre
i'm building a small site at the minute, and i have a small tooltip that pops up when you mouse over menu items. sometimes the tooltips displays a small thumbnail and some text, and other times it's just text - it depends on the link. the tooltip resizes based on the amount of text and whether there's an image or not - pretty standard stuff so far. i also have a dropshadow filter on the tooltip to give it a bit of depth
my problem:
* link 1 has text that makes the tooltip say, 150 wide. link 2 has text that makes the tooltip 50 wide. moving from one to the other before any thumbnails have been loaded into tooltip works fine, no problem.
* sublink 1 - a sublink of link 1 - has text and a thumbnail. that gets loaded in and displayed properly
* i move back to link1, and the tooltip resizes properly
* i move down to link 2, and the tooltip resizes to 50, but now there's 100 pixels of "ghost" image to the side of it. stepping through the code, the size of the tooltip is still 50, even though it displays 150 pixels (the proper 50 and the "ghost" 100)
i thought i was doing something crazy and cue about an hour and a half of bug fixing, before i finally disabled the drop shadow filter, and everything's working as it should.
has anyone come across anything like this? is this a bug in flash or something i'm doing wrong? the image loading / resizing is all pretty standard stuff. i've stuck up an image here so you can see what i'm talking about better. note in the images that the textbox in the movieclip has an outline, and there's only one
on a side note, has anybody else noticed that 9-slice scaling doesn't work properly sometimes? as in, if you've a movieclip/whatever with detailed corners. you can see it in the middle image of the link if you look at the top left corner of the tooltip - the inner dark grey bit is meant to follow the outside curve, but it doesn't even though all the graphics are fill shapes on the same layer
View Replies !
View Related
Safari Browser And The Drop Shadow Filter
Hi All,
I've created a plethera of components for a site I've built. A few of these components need to have a DropShadow on them. SO I use the DropShadow Filter to implement this dynamically. no worries. all works good.
When testing in IE and Firefox, all is good. However, in Safari on MAC, the drop shadow seems to flicker and grow stronger in terms of shadow strength.
I was wondering if anyone has come across this problem before, and / or could provide a solution?
Thank you.
View Replies !
View Related
Tree Component - Applying Shadow Filter
Does anyone know how to apply the shadow filter to the tree component?
I tried (with tree the instance name of the component):
ActionScript Code:
import flash.filters.DropShadowFilter;this.tree.setFilters(3);var isDropShadow:Boolean = true;function setFilters(dis):Void { // Define a new array for the filters. var filtersArr:Array = new Array(); // If isDropShadow is true, make a new // DropShadowFilter object, and add it to the array. if(isDropShadow) { //(distance:Number, angle:Number, color:Number, alpha:Number, blurX:Number, blurY:Number, strength:Number, quality:Number, inner:Boolean, knockout:Boolean, hideObject:Boolean) var dropShadow:DropShadowFilter = new DropShadowFilter(dis, 81, 0x000000, .3, 5, 5, 4, 15, false, false, false); filtersArr.push(dropShadow); } // Assign the filters array to the filters property // of imageClip in order that the filters will // get applied. tree.filters = filtersArr;}
View Replies !
View Related
Drop Shadow Filter Problem With Buttons/components
Hi,
Wondered if anyone has come across this before:
I have a toolbar created in Flash8 where if you click a button, a drop-down menu appears. The drop-down menu is a MC that I've applied a dropShadow filter to.
If you place a button onto the drop-down menu MC or anything that redraws when you roll over or click it (ie pretty much any component), then it creates a 'hole' in the drop-down menu MC through which you can see the background - really annoying - and draws a shadow.
Remove the dropShadow filter and the problem with the 'hole' goes away.
I've worked round this by defining my own button class and in every mouse event putting the following code:
this.parentFilters = _parent.filters;
_parent.filters = [];
this.gotoAndStop("Up"); // or whatever redraw you're getting it to do
_parent.filters = this.parentFilters;
and this solves the problem but I really don't have to write all my own components as I now need loads of other components on my drop-down menus. I also really like the drop-shadow filter effect and don't want to scrap that.
Any ideas?
View Replies !
View Related
Drop Shadow Filter - Embed Cutting Off Edges?
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);
Any suggestions?
Thanks,
IronChefMorimoto
View Replies !
View Related
Drop Shadow Filter - Embed Cutting Off Edges?
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);
Any suggestions?
Thanks,
IronChefMorimoto
View Replies !
View Related
Bitmapdata, Apply Filter To One Channel? Realease A Filter
Hi there, I have two question:
Is it possible to apply a filter only to one channel or to access only one channel?
I've found somewhere:
Display.BitmapData.Channel.ALPHA
Is it something we can access at runtime?
When I appply a filter to a Bitmapdata, the Bitmapdata isn't really modified but just filtered, so if for example I copy one of its channel to another bitmapdata, I copy the source bitmap without the filter...
What I'd like to do is "release" the filter so it definetely modify the image. Is it a function to do so or can I only perform this by doing a screenshot of my MovieClip?
Thank you inadvance for your help.
View Replies !
View Related
Colormatrix Filter And Blur Filter Tween
Last edited by sks447 : 2006-10-17 at 15:11.
I want to have a picture fade from blurry and grayscale to sharp and colorized. I have the blur to sharp part working ok. I have the grayscale to color to working ok. The only thing is the filters dont work together. Ive tried to push one into another with no luck yet. You can see the comments in the code below. Thanks.
ActionScript Code:
function blurFunction(myVar) {
// init what movieclip to blur
if (myVar == undefined) {
myVar = promoContainer.p1;
}
// BLUR FILTER
import flash.filters.BlurFilter;
import flash.filters.BitmapFilter;
import flash.filters.ColorMatrixFilter;
var blurFilter:BlurFilter = new BlurFilter(0, 0, 3);
desaturation = 1;
var filterArray:Array = new Array();
filterArray.push(blurFilter);
var blurX:Number = 100;
var blurY:Number = 100;
onEnterFrame = function () {
prevPromo._visible = false;
nextPromo._visible = true;
if (desaturation>=1) {
des = -0.03;
} else if (desaturation<=0) {
des = 0;
delete (onEnterFrame);
}
desaturation += des;
// color matrix
//myVar.filters = new Array(getDesaturationFilter(desaturation)); <---- I can have this....
blurX -= 10;
blurY -= 10;
blurFilter.blurX = blurX;
blurFilter.blurY = blurY;
// blur filter
//myVar.filters = filterArray; <---- Or I can have this but not both.......
if (blurY<=0) {
blurY=0;
blurX=0;
//delete (onEnterFrame);
}
};
}
function getDesaturationFilter(t:Number):BitmapFilter {
t = t != undefined ? t : 1;
var r = 0.212671;
var g = 0.715160;
var b = 0.072169;
trace("colormatrixfilter called");
return new ColorMatrixFilter([t*r+1-t, t*g, t*b, 0, 0, t*r, t*g+1-t, t*b, 0, 0, t*r, t*g, t*b+1-t, 0, 0, 0, 0, 0, 1, 0]);
}
View Replies !
View Related
Shadow Help
is here a way i can make a circular object move acording to how close in the y axis the mouse is....then the further away the mouse is the shape movse back??????
View Replies !
View Related
HELP WITH SHADOW....*Look*
Hey,
I am completly stumped on how to do somthing on an intro im working on..
I need to create a shadow on the groud that moves with the timing of the moon and i am COMPLETLY stumped on how to go about doing this...
Here is the movie so you can see what it is so far..
http://www.krissosa.com/clients/moonlight/
Please i need some serious help!!!!!!!!!!!!
Thanks,
Kris
View Replies !
View Related
Shadow
ok me again with me imported images and that...
basically ive got images imported in, and i have the jpegs, as basically a product, with a grey background and a shadow that ive put in on photoshop, now the background of my movie is the same shade of grey, so it looks like the shadow is in the background as it were, but it looks very bad, i want some kind of grid behind it or a gradient fill, but this is not possible as i have a shadow on my images, and i have to have the shadows,
Is there a way to make shadows in flash, where you get a gradual falloff,
could you just create an instance of an image, and just change the colour/ brightness/ tint/alpha, i dunno!
Any ideas people
lee
View Replies !
View Related
Where Does This Shadow Come From?
I've downloaded the fla file from the following location, and I was wondering if someone could point out where the shadow is originating from, in this file. Hopefully, you understand what I am asking.
http://www.ffiles.com/flash/animatio...lower_788.html
View Replies !
View Related
Inner Shadow
Hi Guys,
Here is a photo gallery that loads images via xml.
All works fine, accept for the dynamic inner shadow functions on the loaded (xml) images - onRollOver, OnPress and OnRollOut.
A trace(); showed that the functions were being reached. And The inner shadow function works when on its own in a movie.
But it doesn't work with the loaded (xml) images.
Anyone got an idea what's wrong here?
Here's my code..
Code:
myPhoto = new XML();
myPhoto.ignoreWhite = true;
myPhoto.onLoad = function(success) {
//portfolioTag = this.firstChild;
numimages = this.firstChild.childNodes.length;
//create opening image from XML (main)
this.picHolder = this.firstChild.childNodes[0];
this.is_it_original = this.picHolder.attributes.main;
loaderFade.loader.loadMovie(this.is_it_original);
bannerHolder.textBanner.title_txt.text = this.firstChild.childNodes[0].attributes.title;
bannerHolder.play();
loaderFade.play();
//center text field
bannerHolder.textBanner.title_txt.autoSize = "center";
//create thumbnail menu for XML(thmb)
spacing = 123;
for (i=0; i<numimages; i++) {
this.picHolder = this.firstChild.childNodes[i];
this.thumbHolder = thumbnails.createEmptyMovieClip("thumbnail"+i, i);
this.thumbHolder._x = i*spacing;
this.thumbLoader = this.thumbHolder.createEmptyMovieClip("thumbnail_image", 0);
this.thumbLoader.loadMovie(this.picHolder.attributes.thmb);
this.thumbHolder.title = this.picHolder.attributes.title;
this.thumbHolder.main = this.picHolder.attributes.main;
//apply a inner shadow filter to thumbHolder
var myFilter = new flash.filters.DropShadowFilter();
this.thumbHolder.onRollOver = function() {
myFilter.inner = true;
myFilter.angle = 45;
myFilter.distance = 10;
myFilter.blurX = 10;
myFilter.blurY = 10;
myFilter.alpha = .5;
this.thumbHolder.filters = [myFilter];
};
this.thumbHolder.onPress = function() {
myFilter.alpha = .8;
myClip.filters = [myFilter];
};
this.thumbHolder.onRollOut = function() {
myFilter.inner = true;
myFilter.angle = 0;
myFilter.distance = 0;
myFilter.blurX = 0;
myFilter.blurY = 0;
myFilter.alpha = 0;
this.thumbHolder.filters = [myFilter];
};
//onRelease the selected main picture is loaded
this.thumbHolder.onRelease = function() {
if (is_it_original != this.main) {
loaderFade.loader.loadMovie(this.main);
loaderFade.play();
bannerHolder.textBanner.title_txt.text = this.title;
bannerHolder.play();
is_it_original = this.main;
}
};
}
};
myPhoto.load("xml/photogallery.xml");
View Replies !
View Related
Hi About Shadow
i wanted to create a shadow for an object then when i resized the object i need also the shadow to be reduced with it and what are the different ways to give shadow please help.
View Replies !
View Related
Shadow
This is gonna sound really stupid but ill really will appreciate your help...
the thing is that im trying to add a drop shodow effet to a image but the drop shodow effect i get on the insert effect time line effects looks really simple.. just like a gray copy of mi image on the back... is there any way to eddit it like blured it or something?
thnx
View Replies !
View Related
Shadow
I once read a tutorial on how to make shadows on images quite easily where you make a copy of the outline, and shift it to one side, then paint inbetween the copy and the orignal outline using a darker colour. If you keep the coppied outline highlighted the whole time, it can easily be deleted after you have finished and you end up with a darker shade on one side of the object.
Now ive not done it for a bit, but im new to Flash 8 and im sure its acting a bit different. When you keep the outline highlighted and move the copy to one side, when deleting it after you have finished, it automatically cuts out the image from behind. Im sure this wasn't the case when I used MX because I know I used to be ok with this and had no problems. I tried to use seperate layers for the copy, but it doesnt work either. So im either missing something obvious, or something has changed.
Any help would be appreciated.
Thanks
RR
View Replies !
View Related
Drop Shadow?
Is there a simple way to create a drop shadow in flash? I can't find one and when I bring something in from fireworks it makes it a bitmap. Someone please help!
View Replies !
View Related
Animating A Shadow?
hi there!
can anyone help me with that:
i have this simple idea of animating a box on a background. the box should seem to be floating, therefore i'd like to add a shadow beneath the box (how can i achieve that?). i want the box itself to be scaled - including the shadow beneath it of course. can anyone tell me how to do that (in first place how to make the shadow of course, because a simple imported file made with photoshop can't be scaled without being blurry).
see the attached jpeg for how it should look like!
thanks to you guys,
cheers,
rene
View Replies !
View Related
Blending A Shadow
Hi
I would like to put a small shadow behind my nav buttons just like http://www.logoyes.com but i can't work out how to do it, is this an image imported or is it drawn in falsh i can't seem to tell how they've blended it so well.
Regards
jon
View Replies !
View Related
How To Generate A Shadow
Hello,
I want to create a ball that drops and hits a flat surface, and was wondering if anyone knew of some good tutorials to show an animating shadow that reflects the movement and positioning of the ball as it drops.
Thanks!
View Replies !
View Related
Shadow Effect
Hello,
Can someone please tell me, how these flashy new websites have a shadow effect around the main background box??
Here are some examples:
http://www.design-insights.com
http://www.jake.co.za/core.htm
http://www.twinphotographie.com
Many thanks,
Bob.
View Replies !
View Related
Drop Shadow
Hi
How do I put a drop shadow behind my flash site? Is it done in the html page? Do I need to use a jpg or is there a vector way that will give a nice gradient?
Thanks
View Replies !
View Related
[CS3] Shadow Effect Help
http://www.truthaboutsmart.co.uk/
On the above website, and on various others i've seen, there is a really nice shadowed paper/background effect.
Has anyone got any tips on how to do this effectively and to a high standard like in the above flash site?
I've tried it with glow/drop shadow, etc but it is no way near as nice.
Thanks in advance for your tips.
View Replies !
View Related
All-around Shadow For Text?
Hi!
I am looking for a way to display an all-around shadow behind dynamic text. I obviously tried displaying a copy of the text, in black and slightly shifted, behind the original text, but I don't like the result. I am really looking for something like a black border around each individual letter. Anyu idea how I can achive that?
Thanks for your ideas.
View Replies !
View Related
PopUp With Shadow
Hello,
how do I display main window in shadow (disabled) while I have popup (movieclip) shown?
What I want is to disable the main window when I have popup shown.
Should I set somekind of a transparent field in popup so that it covers the whole screen (flash window) or is there feature for this?
Excuse me, I'm new at this.
Thank you.
View Replies !
View Related
I Need Some Help With A Button And It`s Shadow
Hello ! I`m trying to move a shadow behind the last button that was clicked.
I`m using the _x of the button to know where the shadow should move.
I have some problems with this cause if i say at the button "this._y - 5" .. the shodow goes to the top of the movie -5 .. i don`t want that
You can find my flash file at http://www.geocities.com/wwwluckyro/well.zip
After you download it. DON`T open it! It will be corrupted. Change the name of "well.zip" to "well.fla" .. then it will work
Hope you can help me,
Lucky
my email: wwwluckyro @ yahoo . com
View Replies !
View Related
Shadow For Hot Air Balloon
I have created a basic hot air balloon using the following as on a balloon mc.
ActionScript Code:
onClipEvent(load)
{
// create movement speed
_root.speed = 200;
// create random size to scale to
_root.randscale = Math.Round((Math.random()*100)+100);
//trace(_root.randscale);
//create a random x and y target
_root.targetx = Math.random()*400;
_root.targety = Math.random()*300;
trace("targetx" + _root.targetx)
trace("targety" + _root.targety)
//work out difference between startpos and endpos and divide by speed
_root.xdiff = (_root.targetx - this._x)/_root.speed;
_root.ydiff = (_root.targety - this._y)/_root.speed;
}
onClipEvent(enterFrame)
{
//if baloon has scaled(taken off)
if((Math.round(this._xscale) == _root.randscale)&&(Math.round(this._yscale) == _root.randscale))
{
// move step by step
this._x += _root.xdiff;
this._y += _root.ydiff;
}
else
{
//move upwards and across but slower
this._x += (_root.xdiff/2);
this._y += (_root.ydiff/2);
//scale up frame by frame
this._xscale += 1;
this._yscale += 1;
_root.balloon_mc.shadow_mc._xscale -= 0.5;
_root.balloon_mc.shadow_mc._yscale -= 0.5;
}
}
I have also created a shadow_mc within the balloon_mc that i want to follow the balloon creating the illusion of a shadow. What i'm not sure how to do is place the shadow_mc at the correct offset so that it trails behind the balloon whatever direction it is travelling in.
Any ideas?
Thanks.
View Replies !
View Related
Drop Shadow
When I apply a drop shadow or blur or glow etc to an image, when the clip is played, it plays really SLOW. Why is that? Is there a way to speed it up? And I do mean slow compared to how it was before.
View Replies !
View Related
AS Drop Shadow
I created a drop shadow in my movie via AS, but don't understand how to adjust its thickness, alpha, etc.
Here is what I have so far:
import flash.filters.DropShadowFilter;
var dropShadow:DropShadowFilter = new DropShadowFilter();
var filtersArray:Array = new Array(dropShadow);
myImage.filters = filtersArray;
How do I adjust the strenght of the filter?
Thanks a lot for any help!
View Replies !
View Related
Drop Shadow
A newbie question here regarding text drop shadows. Is there a quick simple way of achieving drop shadows without breaking the text apart?
Also, I'm finding that some of the text I've typed into a menu I'm working on comes out very blurry while other words typed with the same pixel font are very clear. Any ideas why this happens and how to remedy it?
Many thanks!
View Replies !
View Related
Drop Shadow?
can anyone instruct me how to put a drop shadow on a web page please?
I want the main page to seem as though it's away from the background.
any help greatly appreciated as always !
Mike....
View Replies !
View Related
Giving A Box A Shadow...
Like this one has: http://www.chillskatemag.com/
It's probably the most simplest thing in the world, and yet I can't figure it out and can't find any sort of tutorial related to it.
Something tells me I have to draw with the paintbrush, but when I do the brush isn't soft enough.
Anyone care to help a lil stupid n00b?
View Replies !
View Related
|