The samples on the following page all work in Flash 7 using a framework I
*was* developing.  A lot of the shadow and light stuff I was doing became
pointless when Flash 8 came out.  If you're interested in the code, let me
know.

http://jimkremens.com/toolkit/

Jim Kremens


On 2/17/06, Andreas Rønning <[EMAIL PROTECTED]> wrote:
>
> > As noted, I am working within another developer's framework, and
> cannot make fundamental design changes at this time.
> I didn't say it can't be done. I said it wasnt the smart thing to do. If
> you work with someone elses framework but can't subclass or supply your
> own prototypes along the road, you got a pretty shit deal in my opinion.
> Funny this comes up now, so soon after we discussed the value of
> properly organizing your depths, spacing them out to make room for
> adjustments and extra content. In my window class, the base clip is
> empty, with the first layer of graphics being drawn on level 10 of that
> clip. This gives me 10 depths to stick whatever frivolous junk i want
> underneath the window.
>
> >The new DropShadowFilter works on the principle I described
>
> Not at all really. Any filtered movieclip in Flash 8 is bitmap cached,
> and is thus rendered by the bitmap renderer, which filters a given
> movieClip based on the contents of its filters array. You don't assign a
> clip to a filter, you assign a filter to a clip. Which goes along the
> same lines of what i described. Since you're not actually filtering
> anything in flash 7, the smart thing to do is draw the dropshadow in the
> same process that draws/rescales your windows.
>
> >You could do it in Flash 7, but it would take a lot more code than
> even you could write in one minute.
>
> It would take a lot more code than i WOULD write in one minute. Don't
> get all fussy with me. First i assumed you were using flash 8 (in which
> the solution is laughably easy) and merely urged you to find your own
> solution. Then, as i realise you're stuck with flash 7, i urge you to
> pursue a solution that's not a hack, but stable, reliable and smart. If
> my boss asks me to add a dropshadow to a framework that is prohibitive
> against a smart solution, i'll tell him it's a frivolous thing to spend
> so much time on, given the limitations of the project. Choose your
> battles. Complex doesn't mean it's smart.
>
> Your real problem stems from the fact that you can't attach the drop
> shadow clip to the clip you want drop shadowed, mostly because you also
> want the clip to be resizable and drawing the drop shadow would be
> dependant on the clip's width and height. Drawing in a clip alters its
> width and height with every lineTo, which means you need to do something
> like store the clip's "real" width and height to some temporary variable
> before updating, based on whatever width it originally had. So say you
> do a different thing, and draw all the drop shadows on a completely
> separate clip on a lower depth, so all your dropshadowed clips are being
> drawn together. The problem then is managing their depths in relation
> not only to the clip they're shadowing, but also of other clips,
> shadowed or unshadowed.
>
> The actionscript solution to the problem as you describe it sounds, in
> my book, a lot like skiing on tarmac. And i tend to be mr can-do.
>
> - Andreas
>
> Philip Smith wrote:
> > As noted, I am working within another developer's framework, and
> > cannot make fundamental design changes at this time. The new
> > DropShadowFilter works on the principle I described, you register a
> > view and bang, full functionality in a couple of lines of code. You
> > could do it in Flash 7, but it would take a lot more code than even
> > you could write in one minute.
> >
> > Philip
> >
> > ----- Original Message ----- From: "Andreas Rønning"
> > <[EMAIL PROTECTED]>
> > To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> > Sent: Friday, February 17, 2006 1:02 PM
> > Subject: Re: [Flashcoders] Dynamic drop shadow
> >
> >
> >> Nah man. For flash 7 it's not a smart thing to write a dropshadow
> >> class like the one you describe at all.
> >> You'd put the drop shadow functionality in your window class draw
> >> method. The big problem with your
> >> approach is you'd have hell to juggle the depths (because without
> >> overlapping, what's even the point of a dropshadow).
> >> That, guessing you'd want windows to take the highest depth when
> >> given user focus.
> >>
> >> - Andreas
> >>
> >> Philip Smith wrote:
> >>> Ok smartie, let's see you write your own drop shadow class for the
> >>> Flash 7 player in 1minute...
> >>>
> >>> Philip
> >>>
> >>>
> >>> ----- Original Message ----- From: "Andreas Rønning"
> >>> <[EMAIL PROTECTED]>
> >>> To: "Flashcoders mailing list" <flashcoders@chattyfig.figleaf.com>
> >>> Sent: Friday, February 17, 2006 9:31 AM
> >>> Subject: Re: [Flashcoders] Dynamic drop shadow
> >>>
> >>>
> >>>> Philip Smith wrote:
> >>>>> Hi there,
> >>>>>
> >>>>>    I'm looking for an AS2 class that will provide a drop shadow
> >>>>> for a window pane that is continually resizing. I would prefer a
> >>>>> class with an easy interface, that allows a movie clip to be
> >>>>> registered as the clip to be shadowed, with a constant loop
> >>>>> running inside of it to keep the shadow proportional.
> >>>>>
> >>>>>   Any classes that do this would be greatly appreciated.
> >>>>>
> >>>>> Thanks,
> >>>>>
> >>>>> Philip
> >>>>> _______________________________________________
> >>>>> Flashcoders@chattyfig.figleaf.com
> >>>>> To change your subscription options or search the archive:
> >>>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>>>
> >>>>> Brought to you by Fig Leaf Software
> >>>>> Premier Authorized Adobe Consulting and Training
> >>>>> http://www.figleaf.com
> >>>>> http://training.figleaf.com
> >>>>>
> >>>> Hahahah. Dude. Write your own classes. That class would take me
> >>>> less than a minute to write, and i'm not a particularly clever guy.
> >>>> I'd still get PAID for that minute though at work.
> >>>>
> >>>> Open flash, hit F1. Learn. You'll love yourself for it.
> >>>>
> >>>> - Andreas
> >>>> _______________________________________________
> >>>> Flashcoders@chattyfig.figleaf.com
> >>>> To change your subscription options or search the archive:
> >>>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>>
> >>>> Brought to you by Fig Leaf Software
> >>>> Premier Authorized Adobe Consulting and Training
> >>>> http://www.figleaf.com
> >>>> http://training.figleaf.com
> >>>>
> >>>
> >>>
> >>> _______________________________________________
> >>> Flashcoders@chattyfig.figleaf.com
> >>> To change your subscription options or search the archive:
> >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>>
> >>> Brought to you by Fig Leaf Software
> >>> Premier Authorized Adobe Consulting and Training
> >>> http://www.figleaf.com
> >>> http://training.figleaf.com
> >>
> >> _______________________________________________
> >> Flashcoders@chattyfig.figleaf.com
> >> To change your subscription options or search the archive:
> >> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >>
> >> Brought to you by Fig Leaf Software
> >> Premier Authorized Adobe Consulting and Training
> >> http://www.figleaf.com
> >> http://training.figleaf.com
> >>
> >
> >
> > _______________________________________________
> > Flashcoders@chattyfig.figleaf.com
> > To change your subscription options or search the archive:
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
> > Brought to you by Fig Leaf Software
> > Premier Authorized Adobe Consulting and Training
> > http://www.figleaf.com
> > http://training.figleaf.com
>
> _______________________________________________
> Flashcoders@chattyfig.figleaf.com
> To change your subscription options or search the archive:
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
> Brought to you by Fig Leaf Software
> Premier Authorized Adobe Consulting and Training
> http://www.figleaf.com
> http://training.figleaf.com
>



--
Jim Kremens
_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to