PDA

View Full Version : fill effect


srlem
11-01-2002, 12:06 PM
Hi!

i've been browsing through tutorials trying to find a fill effect. You've all seen it on flash sites.. usually at the begining when the interface is loading . I've tryed shape tweening but i can't quite get the right effect. Then i tryed modifying individual keyframes one by one.. with this i can achieve the effect but this takes a lot of time.. especially if i wanted to modify it at a later time...

So i've attached a file so you can see what i'm aiming at. Is it possible to do it in actionscript? (i don't want to post this to two different places at the same time:))

thanks for your help:)

p.s. the sun is shining outside..but darn i ain't goin anywhere until i figure this out..:)

jimburton
11-01-2002, 02:47 PM
I can't look at your zip right now, so what exactly does the fill effect look like and can you post a link? (I am guessing you mean something to do with masking, not fill effects...?)

srlem
11-01-2002, 03:48 PM
ok..imagine a birthday cake (circle) and imagine that in every frame one pice is missing. that's the effect. But i would want to be able to do the effect with different object like a cube or smth... and the thing is i don't want to do it frame by frame...

jimburton
11-01-2002, 04:25 PM
I dunno, it sounds like quite a good candidate for doing it frame by frame to me, but you certainly could do it with code if you really wanted to...if you had a cube mc frinstance and you wanted to make the sides glow one by one you could go:


sideToGlow = 0;
numSides = 6;
function glowSide() {
sideToGlow < numSides ? sideToGlow++;sideToGlow = 0;
cubeMC["side"+sideToGlow].gotoAndPlay("glow");
setInterval("glowSide",3000);
}
glowSide();
}

where cubeMC has 6 nested mcs called side1, side2...side6, each with a frame called *glow* that leads to glow tween which will lead back to the non-glowing first frame with a stop action on it...


is that the kind of thing...? Maybe you can adapt idea.

srlem
11-01-2002, 06:32 PM
tnx..I will try it and get back to you

srlem
11-01-2002, 06:39 PM
check out this gif..this is what i want...this was exported from flash

jimburton
11-01-2002, 07:58 PM
I would definitely do a tween or frame by frame somehow...not sure why you particularly want to code something like that...? path of least resistance for me every time!

srlem
11-01-2002, 10:36 PM
the reason why..it's because the effect is too slow if done frame by frame even if i increase fps (to about 20-25).. the thing is if i want the effect to look good i have to change a little bit each frame and that increases the number of fames which slows down the animation as a whole..i hope u understand me...

but i guess it we'll have to do..it's ok..
thanx for advice...
regards:)

Billy T
11-01-2002, 10:57 PM
its possible but pretty tricky - circle would be a lot harder than a square

anyway have a look at the attached file and see if you can adapt it to what you want using curveTo and endFill etc

cheers

srlem
11-02-2002, 11:07 AM
i've tryed it and it seems it's better if I use frame by frame for this one. thanks for your advice guys..btw the script for drawing a circle will be useful in the future:)

thanx

srle