Dynamic Shadow Of An Object
I doubt this is possible, but I guess I'll go ahead and ask. Is it possible to create a blurred shadow for a custom shape (it's not a square.) I have shapes that I want to have a shadow underneath. Is there a way to do this in MX 2004? Or do I have to result to importing a .png of the shadow?
KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 10-14-2004, 09:05 PM
View Complete Forum Thread with Replies
Sponsored Links:
Dynamic Shadow Of An Object
I doubt this is possible, but I guess I'll go ahead and ask. Is it possible to create a blurred shadow for a custom shape (it's not a square.) I have shapes that I want to have a shadow underneath. Is there a way to do this in MX 2004? Or do I have to result to importing a .png of the shadow?
View Replies !
View Related
Shadow From The Back Of An Object
hi again
i saw in many nice websites behind buttons or menus.....
shadows but i dont how to do that in flash or photoshop???
if any has any tutorials about this thing i would be very pleased if you could send it to me.....
thank you for your time
View Replies !
View Related
Flash To Include Soft Shadow On The Object
Hi all, anyone know how this website manage to create softshadow and there is a background on it.
http://www.nana-movie.com/
the two girl have a white soft shadow on it. From what i know, the only way to do it is in photoshop but the background cannot be remove. Or bring a gif but the shadow won't be solid.
Anyone know how they achieve it.
Thxs for reading.
View Replies !
View Related
DropShadowFilter: Mask Or Hide Shadow Underneath Object?
I have been using the filters in flash 8 and I have come across this problem.
I have boxes that have different alphas, I'm putting a dropshadow on them but the shadow is obviously still shown underneath the box... so it's appears darker.
This is the AS I'm using at the moment:
ActionScript Code:
import flash.filters.DropShadowFilter;
var dropShadow:DropShadowFilter = new DropShadowFilter(5, 80, 0x000000, 0.8, 5, 7, 1, 3, false, false, false);
bg.filters = [dropShadow];
How do I use AS to sort of mask out the area that I dont want the shadow to be created?
Is this possible?
Cheers
Sean
View Replies !
View Related
Dynamic Shadow
Okay, so I keep bumping in to challenges with my litte game.
On the scene there is now a movieclip that is now being rotated around. This movieclip is shaped like a rectangle. And at the bottom of the screen is a shadow (also a movieclip) that moves left and right, always staying aligned to the rectangle shaped movieclip.
This is pretty easy just by keeping both their xspeeds the same.
But the shadow's width should also vary depending on the rectangle's angle/rotation, being the shortest when the rectangle movieclip i standing upright. Can I get the value of the rectangle's angle and adjust the shadow's width accordingly, or what would be the best take on this?
View Replies !
View Related
HELP - Dynamic Border + Shadow
I am building a gallery of images.
I would like to load each image into its container by using the containers <instance name> (not sure how to write this : ("images/"+instanceName+".jpg");
Then add a 5px border and drop shadow to each gallery item dynamically based on the image size (They are all different sizes).
I've been searching and playing around but could not get exactly what i'm looking for...
Here is the code I'm working with now which kind of works
not loading in the way i want however
Actionscript on imageContainer1
ActionScript Code:
onClipEvent (load) {
this.attachMovie("photo", "photo1", 5);
this.attachMovie("shadow", "shadow1", 4);
shadowAmount = 5;
borderAmount = 3;
this.shadow1._width = this.photo1._width+shadowAmount;
this.shadow1._height = this.photo1._height+shadowAmount;
this.shadow1._x = shadowAmount;
this.shadow1._y = shadowAmount;
this.border1._width = this.photo1._width+borderAmount;
this.border1._height = this.photo1._height+borderAmount;
}
I need to somehow replace this
ActionScript Code:
this.attachMovie("photo", "photo1", 5);
so that it will load an external image using something like this
ActionScript Code:
container.loadMovie("images/"+imageName+".jpg");
But the problem is, when I just replace it with loadMovie,
the shadow is no longer added.
Also, if I add this
ActionScript Code:
imageName = "name of file to load";
In the onEnterFrame or on the actual frame, it is not being recognized and is trying to load "http://www.ultrashock.com/forums/images/.jpeg" instead of "inages/test1.jpg"
Please, any help would be greatly appreciated. Thanks
View Replies !
View Related
Drop Shadow With Dynamic Content
Hello all!
I am trying to apply a drop shadow to a dynamically loaded Jpeg. Can someone look at my code and see what might be wrong? I think I am close but not sure whats wrong. Funny when I knew nothing about actionscript it wasn't nearly as fustrating as knowing enough to write most of the code but not being able to put the final touches on it.
Code:
function yelGallery () {
for (var i = 100; i < 121; i++) {
this.attachMovie ("paintingMC", "paintingMC" + i, i);
this["paintingMC" + i]._alpha = 0;
this["paintingMC" + i]._x = 35;
this["paintingMC" + i]._y = 0;
if (this["paintingMC" + (i - 1)]._x > 200) {
this["paintingMC" + i]._y = this["paintingMC" + (i - 1)]._y + 90;
this["paintingMC" + i]._x = 35;
} else {
this["paintingMC" + i]._x = this["paintingMC" + (i - 1)]._x + 90;
this["paintingMC" + i]._y = this["paintingMC" + (i - 1)]._y;
}
this["paintingMC" + i].onRollOver = function () {
myOnRollOver (this);
};
this["paintingMC" + i].onRollOut = function () {
myOnRollOut (this);
};
this["paintingMC" + i].onPress = function () {
myOnPress (this);
};
var t1:Tween = new Tween (this["paintingMC" + i], "_alpha", null, 0, 50, 3, true);
this.myMCL.loadClip ("Galleries/forSale/tn_forSale/tn_painting" + i + ".jpg", this["paintingMC" + i].painting);
applyDropShadow ();
}
}
function applyDropShadow () {
var dropShadow:DropShadowFilter = new DropShadowFilter (5, 45, 0x000000, 0.8, 10, 10, 3, 3);
var dropFilter:Array = new Array ();
dropFilter.push (dropShadow);
this["paintingMC" + i].filters = filter_arr;
}
View Replies !
View Related
Dynamic Threedimensional Shadow Creation
hi,
i'm currently working on a little fun project consisting of a threedimensional isometric world in which i already can create a lot of primitive objects, but now i would like to add some lightning to the scene.
A first step would be to cast shadows from object in the scene on the floor, depending on the position and angle of 1 light. But my mathematical knowledge falls a bit short on all this lightning/raytracing stuff. So if anybody could point me in a good direction, even if it would be a lot of math-papers containing all the formula's
Thanks in advance.
View Replies !
View Related
Dynamic Image + Border + Shadow
I am building a gallery of images.
I would like to load each image into its container by using the containers <instance name> (not sure how to write this : ("images/"+instanceName+".jpg");
Then add a 5px border and drop shadow to each gallery item dynamically based on the image size (They are all different sizes).
I've been searching and playing around but could not get exactly what i'm looking for...
Here is the code I'm working with now which kind of works
not loading in the way i want however
Actionscript on imageContainer1
ActionScript Code:
onClipEvent (load) {
this.attachMovie("photo", "photo1", 5);
this.attachMovie("shadow", "shadow1", 4);
shadowAmount = 5;
borderAmount = 3;
this.shadow1._width = this.photo1._width+shadowAmount;
this.shadow1._height = this.photo1._height+shadowAmount;
this.shadow1._x = shadowAmount;
this.shadow1._y = shadowAmount;
this.border1._width = this.photo1._width+borderAmount;
this.border1._height = this.photo1._height+borderAmount;
}
I need to somehow replace this
ActionScript Code:
this.attachMovie("photo", "photo1", 5);
so that it will load an external image using something like this
ActionScript Code:
container.loadMovie("images/"+imageName+".jpg");
But the problem is, when I just replace it with loadMovie,
the shadow is no longer added.
Also, if I add this
ActionScript Code:
imageName = "name of file to load";
In the onEnterFrame or on the actual frame, it is not being recognized and is trying to load "/images/.jpeg" instead of "images/test1.jpg"
Please, any help would be greatly appreciated. Thanks
View Replies !
View Related
Dynamic 3D Shadow/Lightsource Effects
I'm looking for a way to dynamically move a shadow on the stage based on where the user's mouse is (think of the eyeball effect). Except as it moves, it would have to stretch, skew, and/or rotate based on how far away the mouse pointer is and what angle it's at. A picture's worth a thousand words, so I've attached one to explain what I mean. If that doesn't work, try this:
http://img451.imageshack.us/img451/6424/shadows0ry.gif
I think that should provide a clear enough explanation of what I'm looking for, but easier said than done, right? I would not need to dynamically create the object or its shadow (although maybe that's a project for another day). The shadow would pretty much be a clone of the object--just made to be all grey. All I would need is a script that skews and moves it appropriately with the mouse. Many thanks!
View Replies !
View Related
[help] Dynamic Text Box Drop Shadow With Duplicate Instances
Hey Flashers,
I'm having a simple problem.
I have duplicated a dynamic text box to create a drop shadow effect.
Both dynamic text boxes have the same instance name.
Unfortunately when the .swf is published only one set of the double instance is instantiated and displayed. Therefore now shadow effect is created.
What is my solution? I don't want to have to redo my AS to incorporate another instance to do the same thing. I think it would be redundant.
Any ideas?
ZeroKuhl
View Replies !
View Related
Putting A "shadow" On A Mask Object
Hey Guys,
Long time no post, but things are starting to get busy again so I am back.
I have an image that I am masking with a wine bottle shape so that only the area within the bottle is visible (a nice sunny mountain scene).
What i want to do (is this possible?) is put a "shadow" effect on the bottle mask without increasing the mask size if you know what i mean. Everytime i add a "shadow" it includes it as part of the mask.
Any ideas? I am a basic man so basic ideas please.
Thanks very much.
Nick
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
Dynamic Object
Hey, im calling a function with an argument and i want the argument to be the instance name of an object on stage. The function looks like this so far:
function cellMove(object_name){
_root.object_name._x = <new x value>;
_root.object_name._y = <new y value>;
}
This way in particular doesnt seem to work. Any help would be appreciated. Thanks in advance.
-cipha
View Replies !
View Related
Dynamic Object Tag?
We need to be able to load multiple swf files based on user screen resolution.
Using JavaScript it is easy to get the users rez of their monitor using screen.width.
Here is a snipped of my code:
Code:
<script language="JavaScript" type="text/JavaScript">
if (screen.width < 1280) {
swftoload="GMAT_Video_Course_CH1_large.swf";
width=1024;
height=768;
}else{
swftoload="GMAT_Video_Course_CH1_small.swf";
width=770;
height=600;
}
</script>
How do I get the swftoload name into the movie param as well as the width and height?
Code:
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="770" height="600" align="top">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="GMAT_Video_Course_CH1_small.swf" />
<param name="menu" value="false" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="salign" value="t" />
<param name="wmode" value="opaque" />
<param name="bgcolor" value="#29557c" />
<embed src="GMAT_Video_Course_CH1_small.swf" menu="false" quality="best" scale="noscale" salign="t" wmode="opaque" bgcolor="#29557c" width="770" height="600" align="top" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />
</object>
Thanks
View Replies !
View Related
Dynamic Object Name
Hi,
I have been having a problem get a dynamic object name
i am trying to build a simple sample where i press a BTN it passes the name of the object but then i cant seem to use it.
[CODE]
Action Frame 1
showHide();
function showHide(myName) {
trace(myName); // This returns ball1
this.ball1._visible = false; // Hides object
this.ball2._visible = false;// Hides object
this.ball3._visible = false;// Hides object
this.ball4._visible = false;// Hides object
trace(this.myName._visible) // This does nothing
this.myName._visible = true; // does not work
}
stop()
[/CODE]
[CODE]
my Buttons
on (press) {
_root.showHide("ball1");
}
[/CODE]
View Replies !
View Related
Dynamic Object
Hi,
i am trying to define a dynamic object name.. here my code, but i guess it is wrong. any ideas?
PHP Code:
i = 0
var knobListen = "knob"+i;
var knobListen:Object = new Object();
};
//add the event listener to the knob
myKnob_mc.addEventListener("onRotate", knobListen)
View Replies !
View Related
Dynamic Object
hi!
im trying to dynamically create objects, getting their name from an array and depth from a for loop.. i realize i probably need to use a function, but i just dont see how i can do it...
thats what i have so far..
ffunction create(name, depth) {
return (createEmptyMovieClip (name, depth));
};
this.create (uname, num);
now, uname is a name of an object (if i trace it, it gives me the right name) , and num = i+2(also traces fine).
can someone please help me with this?
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
|