tag:blogger.com,1999:blog-6843566830671277353.post5615311927298019425..comments2023-12-11T22:56:18.291-08:00Comments on Codedependent: Pulse of the Geek NationChet Haasehttp://www.blogger.com/profile/03250991041464602854noreply@blogger.comBlogger4125tag:blogger.com,1999:blog-6843566830671277353.post-7648337194285373912008-07-24T09:11:00.000-07:002008-07-24T09:11:00.000-07:00I was thinking mostly of the ActionScript methods ...I was thinking mostly of the ActionScript methods of adding the effect than the mxml methods. I was able to create a GlowLabel component and have it glow under certain conditions. The GlowLabel was created as a subcomponent of another component which is why I was looking for ActionScript methods. But, like I said, I got that working.Jim Adamshttps://www.blogger.com/profile/11067963006299375606noreply@blogger.comtag:blogger.com,1999:blog-6843566830671277353.post-45333756358033957082008-07-24T08:03:00.000-07:002008-07-24T08:03:00.000-07:00jim: Glad you're enjoying the blogs; I'll try to k...jim: Glad you're enjoying the blogs; I'll try to keep them coming. For glowing labels (or anything), you can take a similar approach of creating a subclass of whatever component you wish to glow, just like I did with GlowImage. Then attach an appropriate Blur filter to that instance and animate the alpha property of the filter over time, exactly as GlowImage does. <BR/><BR/>In fact, the only reason you need any subclass or custom code for your component whatsoever, as opposed to just attaching a filter directly to the Label (or other standard component) instance is that you need to reset the filters property on the component once the filter's properties have changed. That's the only reason I implemented GlowImage, and the only reason you'd need a subclass for other components you wish to pulsate.Chet Haasehttps://www.blogger.com/profile/03250991041464602854noreply@blogger.comtag:blogger.com,1999:blog-6843566830671277353.post-19107365553007177072008-07-22T07:49:00.000-07:002008-07-22T07:49:00.000-07:00By the way, I really like these blogs!By the way, I really like these blogs!Jim Adamshttps://www.blogger.com/profile/11067963006299375606noreply@blogger.comtag:blogger.com,1999:blog-6843566830671277353.post-27037137212448109092008-07-22T07:48:00.000-07:002008-07-22T07:48:00.000-07:00I was wondering how you would set this up in a dyn...I was wondering how you would set this up in a dynamic situation. Say I have something that creates a bunch of labels in ActionScript but I want some of them to glow. How would I add the effect to some of those labels?Jim Adamshttps://www.blogger.com/profile/11067963006299375606noreply@blogger.com