<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Setting effects with ActionScript in Flex</title>
	<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Thu, 08 Jan 2009 12:27:56 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: KillerSpaz</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16611</link>
		<author>KillerSpaz</author>
		<pubDate>Fri, 07 Nov 2008 16:43:41 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16611</guid>
		<description>OK I figured this out... SOrta...

You can't always get the value apparently...

So the livedocs say to set the value to null, such as:
myMenu.setStyle("showEffect", null);

But, that hardly works on extended class; instead, you should just use .clearStyle("showEffect")...

This seems to work every time...

just my $0.02!</description>
		<content:encoded><![CDATA[<p>OK I figured this out&#8230; SOrta&#8230;</p>
<p>You can&#8217;t always get the value apparently&#8230;</p>
<p>So the livedocs say to set the value to null, such as:<br />
myMenu.setStyle(&#8221;showEffect&#8221;, null);</p>
<p>But, that hardly works on extended class; instead, you should just use .clearStyle(&#8221;showEffect&#8221;)&#8230;</p>
<p>This seems to work every time&#8230;</p>
<p>just my $0.02!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: KillerSpaz</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16526</link>
		<author>KillerSpaz</author>
		<pubDate>Sun, 02 Nov 2008 20:50:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16526</guid>
		<description>I've recently been messing with stuff like this, and have read the documentation and such of how this is all supposed to work...

My current problem is that when I use the getStyle() method to get the "openDuration" and "showEffect" of a Menu object, it always returns null... I was originally doing this to be able to restore these styles, but getting null back every time didn't let me access the toString() method of the objects, and would throw Errors.

Also, the documentation also states that setting the values to null will default them, but with my showEffect and openDuration, it doesn't work...

Any ideas? Is this a bug maybe?</description>
		<content:encoded><![CDATA[<p>I&#8217;ve recently been messing with stuff like this, and have read the documentation and such of how this is all supposed to work&#8230;</p>
<p>My current problem is that when I use the getStyle() method to get the &#8220;openDuration&#8221; and &#8220;showEffect&#8221; of a Menu object, it always returns null&#8230; I was originally doing this to be able to restore these styles, but getting null back every time didn&#8217;t let me access the toString() method of the objects, and would throw Errors.</p>
<p>Also, the documentation also states that setting the values to null will default them, but with my showEffect and openDuration, it doesn&#8217;t work&#8230;</p>
<p>Any ideas? Is this a bug maybe?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16235</link>
		<author>peterd</author>
		<pubDate>Fri, 17 Oct 2008 18:54:43 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16235</guid>
		<description>Kristian,

You can't fade text, so you will need to embed your font, if you aren't already.
I don't think I have any examples of fading Menu control's with embedded fonts, but there should be several examples of generic font embedding.

Peter</description>
		<content:encoded><![CDATA[<p>Kristian,</p>
<p>You can&#8217;t fade text, so you will need to embed your font, if you aren&#8217;t already.<br />
I don&#8217;t think I have any examples of fading Menu control&#8217;s with embedded fonts, but there should be several examples of generic font embedding.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Kristian</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16221</link>
		<author>Kristian</author>
		<pubDate>Fri, 17 Oct 2008 11:08:04 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-16221</guid>
		<description>Hi Peter.

I'm trying to use the Fade effect on a Menu, but it's not working as expected - I can get the Menu to fade away nicely, but the items in the Menu stay with an alpha of 1 until the Menu background fades completely, then they 'blink' away!  Doesn't look too nice.

I'm using an array of objects to populate the Menu in Actionscript, so therefore I can't apply a Fade effect to the actual dataprovider or anything.

Any tips/pointers?

Cheers,
K.</description>
		<content:encoded><![CDATA[<p>Hi Peter.</p>
<p>I&#8217;m trying to use the Fade effect on a Menu, but it&#8217;s not working as expected - I can get the Menu to fade away nicely, but the items in the Menu stay with an alpha of 1 until the Menu background fades completely, then they &#8216;blink&#8217; away!  Doesn&#8217;t look too nice.</p>
<p>I&#8217;m using an array of objects to populate the Menu in Actionscript, so therefore I can&#8217;t apply a Fade effect to the actual dataprovider or anything.</p>
<p>Any tips/pointers?</p>
<p>Cheers,<br />
K.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sascha/hdrs</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-15571</link>
		<author>sascha/hdrs</author>
		<pubDate>Sun, 14 Sep 2008 12:40:24 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-15571</guid>
		<description>Thanks for the example! One question: how do you handle the effect if for example on a Fade effect the visible property is set by ActionScript? If a displayobject is set to visible=false, then the effect is applied and then visible is set to true all on the same frame it doesn't work. One frame needs to pass before setting visible to true again. I could use callLater() but I wonder if there is a better solution for this?</description>
		<content:encoded><![CDATA[<p>Thanks for the example! One question: how do you handle the effect if for example on a Fade effect the visible property is set by ActionScript? If a displayobject is set to visible=false, then the effect is applied and then visible is set to true all on the same frame it doesn&#8217;t work. One frame needs to pass before setting visible to true again. I could use callLater() but I wonder if there is a better solution for this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Babita</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-14413</link>
		<author>Babita</author>
		<pubDate>Thu, 31 Jul 2008 10:28:09 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-14413</guid>
		<description>This is really good one.</description>
		<content:encoded><![CDATA[<p>This is really good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lisa</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-14340</link>
		<author>Lisa</author>
		<pubDate>Fri, 25 Jul 2008 10:52:31 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-14340</guid>
		<description>wonderful!! this is exactly what i need.


thanks</description>
		<content:encoded><![CDATA[<p>wonderful!! this is exactly what i need.</p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: gurpreet</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-13200</link>
		<author>gurpreet</author>
		<pubDate>Tue, 03 Jun 2008 04:55:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-13200</guid>
		<description>hiiiiiiiii its really a gud one i really appreciate it a lot......</description>
		<content:encoded><![CDATA[<p>hiiiiiiiii its really a gud one i really appreciate it a lot&#8230;&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: saravanan</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-8205</link>
		<author>saravanan</author>
		<pubDate>Thu, 27 Mar 2008 09:55:36 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-8205</guid>
		<description>Hi this is cool man ...

thanks a lot...

                              :)



~sara~
http://sara-intop.blogspot.com</description>
		<content:encoded><![CDATA[<p>Hi this is cool man &#8230;</p>
<p>thanks a lot&#8230;</p>
<p>                              :)</p>
<p>~sara~<br />
<a href="http://sara-intop.blogspot.com" rel="nofollow">http://sara-intop.blogspot.com</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-7253</link>
		<author>peterd</author>
		<pubDate>Sat, 01 Mar 2008 01:17:23 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/02/27/setting-effects-with-actionscript-in-flex/#comment-7253</guid>
		<description>Paulo,

Yes.

Peter</description>
		<content:encoded><![CDATA[<p>Paulo,</p>
<p>Yes.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
</channel>
</rss>
