ÈçºÎʹÓÃFlex HSlider ÖÆ×÷½ø¶ÈÌõ
Í϶¯Ë®Æ½¹ö¶¯ÌõÀ´¸Ä±äͼƬ´óС¡£
<?xml version="1.0"?>
<!--
Simple example to demonstrate the HSlider control.
ˮƽÍ϶¯Ìõ¡£
MyShareBook.cn ·Òë
-->
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
<mx:Script>
<![CDATA[
private var imageWidth:Number=0;
private var imageHeight:Number=0;
// Event handler function to change the image size.
private function changeSize():void
{
phoneImage.width=uint(imageWidth*hSlider.value/100);
phoneImage.height=uint(imageHeight*hSlider.value/100);
}
]]>
</mx:Script>
<mx:Panel id="panel" title="HSlider Control Example" height="100%" width="95%"
paddingTop="10" paddingBottom="10" paddingLeft="10" paddingRight="10">
<mx:HBox
Ïà¹ØÎĵµ£º
/*Copyright (c) 2006 Adobe Systems Incorporated
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, m ......
FlexÖпؼþ×é¼þÒ»´ó¶Ñ£¬×ܽáһϡ£
1£®
ÓÃÀ´²¼¾ÖµÄ¿Ø¼þÓÐ form¡¢canvas¡¢panel¡¢box µÈ¡£ µ±È»box ÖÐÓÖÓкܶàÁË£¬ÓÐvbx¡¢hbox¡¢VDividedBox¡¢HividedBox¡¢Tile¡£ µ±È»ÕâЩÀïÃæ´óÌåÉÏÓÖ·ÖΪÁ½ÖÖ
Ò»ÖÖÊǾø¶Ô²¼¾Ö¡¢Ò»ÖÖÊÇÏà¶Ô²¼¾Ö£¨¸öÈËÈÏΪ°¡£©¡£ÆäÖÐcanvas ÊÇÖ»Ö§³Ö¾ø¶Ô²¼¾ÖµÄ form¡¢box Ö»Ö§³ÖÏà¶Ô²¼¾Ö¡£¶øp ......
Óõ½µÄMX±êÇ©£ºconstraintColumns¡¢ConstraintColumn¡¢constraintRows¡¢ConstraintRow
¸ø´ó¼Ò˵˵ǰÌáÇé¿ö£ºÔÚ×öMXML²¼¾Öʱ£¬ÒªÇ¶Ì׺ܶà²ã¼¶£¬ÕâÀïÃæÓкܶàÎÊÌ⣺
1¡¢Ç¶Ì×Ì«¶à²ã¼¶»áÓ°ÏìЧÂÊ£¡
2¡¢Ç¶Ì×Ì«¶à²ã¼¶£¬´úÂëµÄ¿É¶ÁÐÔ¡¢¿Éά»¤ÐԲ
3¡¢Ç¶Ì×Ì«¶à²ã¼¶ÊÇÒòΪCanvas¡¢Vbox¡¢Hbox¹¦Äܵ¥Ò»£¬²»ÄÜÂú×ãÐèÒª£¬¶ø²»ÊDZØÐ ......
ÔÎĵØÖ·£ºhttp://blog.163.com/to_yht/blog/static/1227257742009741359326/
µ±³ÌÐò×öÍêºó£¬ÄãÊÇ·ñ»¹ÔÚΪÀÏÌ×µÄflex×é¼þĬÈÏЧ¹û·¢³î£¿ÊÇ·ñ»¹ÔÚΪÔõÑùÉèÖÃ×Ô¼ºµÄƤ·ô浡£ÄÇôÕâЩ¿ÉÄÜÊÇÄãÐèÒªµÄ¡£
Ò» ³¬¿áƤ·ôÖ÷ÌâÍÆ¼ö£º
1£® kingnarestyle:
ÏÂÔØµØÖ·£ºhttp://code.google.com/p/kingnarestyle/
2£®Carbo ......