Guest User

Ocultar Imagem com Flex

a guest
Jul 29th, 2010
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" width="486" height="330">
  3. <mx:Script>
  4. <![CDATA[
  5. private function ocultar():void {
  6. img.visible = false;
  7. }
  8. ]]>
  9. </mx:Script>
  10.  
  11. <mx:Panel x="68" y="30" width="350" height="250" layout="absolute" title="Ocultar Imagem">
  12. <mx:Image source="@Embed('imagens/desert.jpg')" id="img" width="100%" height="100%"/>
  13. <mx:Button x="283" y="94" label="OK" click="ocultar();"/>
  14. </mx:Panel>
  15.  
  16. </mx:Application>
Advertisement
Add Comment
Please, Sign In to add comment