Re: [Flashcoders] Dynamic drop shadow
Hi Jim, I'd like to check the code out, my email is [EMAIL PROTECTED] Thanks. - Original Message - From: "Jim Kremens" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, February 17, 2006 2:45 PM Subject: Re: [Flashcoders] Dynamic drop shadow 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" > 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
Re: [Flashcoders] Dynamic drop shadow
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" 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" 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
Re: [Flashcoders] Dynamic drop shadow
Right, although the client has yet to determine that. I would like to have a few options available. Thanks, Philip - Original Message - From: "Charles Parcell" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, February 17, 2006 11:40 AM Subject: Re: [Flashcoders] Dynamic drop shadow You should have noted that you needed a Flash 7 class in your original post. Charles P. On 2/27/06, Philip Smith <[EMAIL PROTECTED]> 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" 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
Re: [Flashcoders] Dynamic drop shadow
The window pane is constantly resizing. I'm working within the framework of another developer's project, and an encapsulated Flash 7 class would be the solution I would like to implement, one that is also less memory intensive than the new DropShadow filter class. Thanks, Philip - Original Message - From: "Jim Tann" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, February 17, 2006 11:29 AM Subject: RE: [Flashcoders] Dynamic drop shadow Can you duplicate the movie you want the shadow on and tint it to be black set its alpha to 35% and offset it from the original slightly. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Philip Smith Sent: 28 February 2006 04:30 To: Flashcoders mailing list Subject: Re: [Flashcoders] Dynamic drop shadow Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7 version of the Quasi file? I know the drop shadow can be created with a shape tweening class from scratch, but there is not enough time in this project for that. I found the Flash 8 DropShadowFilter class which enabled me to create the effect in about two minutes, but the client may not want to output for the Flash 8 player. Philip - Original Message - From: "eric dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, February 17, 2006 10:45 AM Subject: Re: [Flashcoders] Dynamic drop shadow http://www.quasimondo.com/archives/000202.php Quasi is mondo :) Not a class - but check it out. On 2/17/06, Mike Mountain <[EMAIL PROTECTED]> wrote: We're assuming you're using Flash 8 If not then a drop shadow class is a perfectly reasonable thing to try and tackle in mx04 M > > On 2/27/06, Philip Smith <[EMAIL PROTECTED]> 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 > > > ___ 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
Re: [Flashcoders] Dynamic drop shadow
Thanks for the responses. Is there an AS 2.0 equivalent AS 2.0 Flash 7 version of the Quasi file? I know the drop shadow can be created with a shape tweening class from scratch, but there is not enough time in this project for that. I found the Flash 8 DropShadowFilter class which enabled me to create the effect in about two minutes, but the client may not want to output for the Flash 8 player. Philip - Original Message - From: "eric dolecki" <[EMAIL PROTECTED]> To: "Flashcoders mailing list" Sent: Friday, February 17, 2006 10:45 AM Subject: Re: [Flashcoders] Dynamic drop shadow http://www.quasimondo.com/archives/000202.php Quasi is mondo :) Not a class - but check it out. On 2/17/06, Mike Mountain <[EMAIL PROTECTED]> wrote: We're assuming you're using Flash 8 If not then a drop shadow class is a perfectly reasonable thing to try and tackle in mx04 M > > On 2/27/06, Philip Smith <[EMAIL PROTECTED]> 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 > > > ___ 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
Re: [Flashcoders] Dynamic drop shadow
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" 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] Dynamic drop shadow
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