rldjrsksl / flex-iframe

Automatically exported from code.google.com/p/flex-iframe
0 stars 0 forks source link

It can not perform normally to add showEffect or hideEffect event. #63

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
my mxml:

<mx:Iris id="irisOut" duration="3000"/>
<mx:Iris id="irisIn" duration="3000"/>
<iframe:IFrame id="rightIframe"
           source="http://www.obara.or.jp/"
           width="100%"
           height="100%"
           showEffect="{irisOut}"
           hideEffect="{irisIn}"/>

<mx:Button label="display" click="rightIframe.visible=true"/>
<mx:Button label="hide" click="rightIframe.visible=false"/>

when i click display or hide, it can not show effect.
please to tell me how can i do!

Original issue reported on code.google.com by yangyu...@gmail.com on 14 Jan 2010 at 9:45

GoogleCodeExporter commented 8 years ago
This is a normal behaviour: the iframe is not part of the Flash application, it 
is
outside, so you can't apply effects on it like any other DisplayObject.

If you want to apply effects to the iframe, you could do it on the webpage side 
by
triggering Javascript functions when the iframe is shown or hidden. I guess
Javascript libraries offer effects to do this. IMHO, that's a lot of pain and
overhead for a just graphical effect !

Original comment by Julien.N...@gmail.com on 15 Jan 2010 at 5:55