<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
<title>Effect on an image in a canvas: bug</title>
<description> Hi,

I use Flex 3 (sdk 3.3 or 3.4) 

I have a problem when using some preset on a pattern like FESAlpha on an image in a canvas

In order to show the &amp;quot;bug&amp;quot;, i create a minimum mxml application (see sources) like this:

I have a canvas ( w/h:600/400 x/y:100/100)
In this canvas, i have an image.
When loadComplete is dispatched, I use FESAlpha to show the image using canvas.addChild(myEffect).

test1.mxml:
With preset 13 (default), it works fine

test2.mxml :
with another preset (ex: 1, left to right), it doesn't (nothing appears and TRANSITION_END is not dispatched)

test2_workaround.mxml
If my canvas width is set to 908 (or higher), it works ! (with value near 908, sometimes it works, sometimes it doesn't work)

test3.mxml:
Same as test1, but with preset=5 (B+L2T+R): it doesn't work

test3_workaround.mxml
If my canvas size is set to w=1006 and y=952, it works !

So it seems that depending on the parent canvas with and height and the image x/y and the effect gradientWidth, the effect is bugging...

I have just opened a new Ticket for this issue</description><link>http://www.flasheff.com/forum/read.php?31,4625,4625#msg-4625</link><lastBuildDate>Mon, 20 May 2013 22:05:49 -0500</lastBuildDate>
<generator>Phorum 5.2.7</generator>
<item>
<guid>http://www.flasheff.com/forum/read.php?31,4625,4643#msg-4643</guid>
<title>Re: Effect on an image in a canvas: bug</title><link>http://www.flasheff.com/forum/read.php?31,4625,4643#msg-4643</link><description><![CDATA[ Hi,<br /><br />That's work fine with my examples and with my real project.<br /><br />Thanks]]></description>
<dc:creator>knbmedia</dc:creator>
<category>FlashEff 2.0 Flex</category><pubDate>Wed, 16 Dec 2009 02:35:38 -0600</pubDate></item>
<item>
<guid>http://www.flasheff.com/forum/read.php?31,4625,4637#msg-4637</guid>
<title>Re: Effect on an image in a canvas: bug</title><link>http://www.flasheff.com/forum/read.php?31,4625,4637#msg-4637</link><description><![CDATA[ Hi there,<br /><br />I took a look at your examples, and I found a workaround for resolving this.<br />An explication for this is: FlashEff has an integrated future that when it is removed from stage, it clear itself. Canvas has another feature that when the content is bigger that its dimenstions, it creates the scrollable pane, so it removes all the children and moves to another container - so activates flasheff's feature. To prevent this(FlashEFf's feature), see the code bellow (modified content is marked with Bold).<br /><br />&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;<br />&lt;mx:Application xmlns:mx=&quot;[<a rel="nofollow" href="http://www.adobe.com/2006/mxml&quot">www.adobe.com</a>]; layout=&quot;absolute&quot; frameRate=&quot;30&quot; viewSourceURL=&quot;srcview/index.html&quot;&gt;<br />&lt;!--<br />Test 3 workaround : in order to work, i need to change canvas width to 1006px or more AND height to 952 or more<br /><br />Important : when width/height are near these values (ex: width =1005 or 1007), sometimes it works, sometimes it doesn't ... so try lower/higher values to see the bug/workaround<br />--&gt;<br /><br />&lt;mx:Canvas width=&quot;1007&quot; height=&quot;1007&quot; x=&quot;100&quot; y=&quot;100&quot; backgroundColor=&quot;#aaaaaa&quot; id=&quot;canvas1&quot;&gt;<br />&lt;mx:Image width=&quot;400&quot; height=&quot;292&quot; source=&quot;../bin-debug/myImage.jpg&quot; id=&quot;myImage&quot; autoLoad=&quot;true&quot; scaleContent=&quot;true&quot; complete=&quot;loadComplete()&quot; x=&quot;100&quot; y=&quot;100&quot;/&gt;<br />&lt;/mx:Canvas&gt;<br />&lt;mx:Script&gt;<br />&lt;![CDATA[<br />import FlashEff2Flex;<br />import com.jumpeye.flashEff2.symbol.alpha.FESAlpha;<br />import com.jumpeye.Events.FLASHEFFEvents;<br /><br />private var myEffect:FlashEff2Flex;<br />private var showEffect:FESAlpha;<br /><br />private function loadComplete():void {<br /><br />myEffect = new FlashEff2Flex();<br />myEffect.addEventListener(FLASHEFFEvents.TRANSITION_END, endShowEffect);<br /><br />showEffect = new FESAlpha();<br />showEffect.tweenDuration = 2;<br />showEffect.preset=5; // B+L2T+R<br />showEffect.gradientWidth=10;<br />myEffect.showTransition = showEffect;<br /><br />canvas1.addChild(myEffect);<br /><strong class="bbcode">myEffect.addEventListener(Event.REMOVED_FROM_STAGE, removedFromStg,false,0xFF,true)</strong><br /><br />myEffect._targetInstanceName = &quot;myImage&quot;;<br />//myEffect.showDelay = 2<br />}<br /><strong class="bbcode">private function removedFromStg(ev:Event):void{<br />ev.stopImmediatePropagation();<br />myEffect.removeEventListener(Event.REMOVED_FROM_STAGE, removedFromStg)<br />}</strong><br />private function endShowEffect(evt:FLASHEFFEvents):void {<br />var effectInstance:FlashEff2Flex = evt.target as FlashEff2Flex;<br />trace(&quot;end&quot;);<br />}<br />]]&gt;<br />&lt;/mx:Script&gt;<br />&lt;/mx:Application&gt;]]></description>
<dc:creator>benji</dc:creator>
<category>FlashEff 2.0 Flex</category><pubDate>Mon, 14 Dec 2009 09:31:05 -0600</pubDate></item>
<item>
<guid>http://www.flasheff.com/forum/read.php?31,4625,4625#msg-4625</guid>
<title>Effect on an image in a canvas: bug</title><link>http://www.flasheff.com/forum/read.php?31,4625,4625#msg-4625</link><description><![CDATA[ Hi,<br /><br />I use Flex 3 (sdk 3.3 or 3.4)<br /><br />I have a problem when using some preset on a pattern like FESAlpha on an image in a canvas<br /><br />In order to show the &quot;bug&quot;, i create a minimum mxml application (see <a rel="nofollow" href="http://www.knbmedia.com/flash2eff/srcview">sources</a>) like this:<br /><br />I have a canvas ( w/h:600/400 x/y:100/100)<br />In this canvas, i have an image.<br />When loadComplete is dispatched, I use FESAlpha to show the image using canvas.addChild(myEffect).<br /><br /><a rel="nofollow" href="http://www.knbmedia.com/flash2eff/test1.html">test1.mxml</a>:<br />With preset 13 (default), it works fine<br /><br /><a rel="nofollow" href="http://www.knbmedia.com/flash2eff/test2.html">test2.mxml</a> :<br />with another preset (ex: 1, left to right), it doesn't (nothing appears and TRANSITION_END is not dispatched)<br /><br /><a rel="nofollow" href="http://www.knbmedia.com/flash2eff/test2_workaround.html">test2_workaround.mxml</a><br />If my canvas width is set to 908 (or higher), it works ! (with value near 908, sometimes it works, sometimes it doesn't work)<br /><br /><a rel="nofollow" href="http://www.knbmedia.com/flash2eff/test3.html">test3.mxml</a>:<br />Same as test1, but with preset=5 (B+L2T+R): it doesn't work<br /><br /><a rel="nofollow" href="http://www.knbmedia.com/flash2eff/test3_workaround.html">test3_workaround.mxml</a><br />If my canvas size is set to w=1006 and y=952, it works !<br /><br />So it seems that depending on the parent canvas with and height and the image x/y and the effect gradientWidth, the effect is bugging...<br /><br />I have just opened a new Ticket for this issue]]></description>
<dc:creator>knbmedia</dc:creator>
<category>FlashEff 2.0 Flex</category><pubDate>Fri, 11 Dec 2009 03:38:28 -0600</pubDate></item>
</channel>
</rss>