Belajar Bareng

Membuat Simple Effect Resize

by aura_anar on Jun.09, 2009, under Tutorial Flash

Nich sekarang mau buat simple effect resize. Hasilnya sich seperti ini:

dan untuk scriptnya aku buat seperti di bawah ini:

<?xml version=”1.0″ encoding=”utf-8″?>
<mx:Application xmlns:mx=”http://www.adobe.com/2006/mxml” layout=”absolute” width=”400″ height=”200″>
<mx:Script>
<![CDATA[
private function hideChos():void{
if(choseImg.width==0){
choseImg.width = 180
btnColapse.toolTip = "Click to colapse Image panel";
}else{
choseImg.width = 0
btnColapse.toolTip = "Click to expand Image panel";
}
}
]]>
</mx:Script>
<mx:Resize id=”rezEff” duration=”400″ />
<mx:HBox x=”0″ y=”0″ width=”100%” height=”100%” horizontalAlign=”center” verticalAlign=”middle” horizontalGap=”3″>
<mx:Panel id=”choseImg” width=”100%” height=”100%” layout=”absolute” title=”Panel 1″>
<mx:Label text=”Klik button to Play Effect” horizontalCenter=”0″ verticalCenter=”0″/>
</mx:Panel>
<mx:Button height=”34″ width=”20″ click=”{hideChos()}” id=”btnColapse”/>
<mx:Panel width=”100%” height=”100%” layout=”absolute” title=”Panel 2″>
<mx:Label text=”This Panel set to 100%” horizontalCenter=”0″ verticalCenter=”0″/>
</mx:Panel>
</mx:HBox>

</mx:Application>

dan yang terpenting yaitu effect Resize.

Terima Kasih

Share this post: Share this post with the world.
  • TimesURL
  • Gatorpeeps
  • Muti
  • Facebook
  • del.icio.us
  • Digg
  • Google
  • Reddit
  • StumbleUpon
  • Technorati
  • LintasBerita
:,

1 Comment for this entry

Leave a Reply

Looking for something?

Use the form below to search the site:

Still not finding what you're looking for? Drop a comment on a post or contact us so we can take care of it!

Kalender

March 2010
M T W T F S S
« Feb    
1234567
891011121314
15161718192021
22232425262728
293031  


0
Unique
Visitors
Powered By Google Analytics