flex ÀûÓÃhslider¿Ø¼þÒÔÈÝÆ÷ÖÐÐÄ·ÅËõͼƬ
ÇëÎÊ´ó¼Ò ÓÐһͼƬÔÚÒ»ÈÝÆ÷ÖУ¨canvas»ò vbox£©ÎÒÏëÒÔÈÝÆ÷ΪÖÐÐÄÀûÓÃhslider¿Ø¼þÀ´·ÅËõͼƬ£¬£¬¸ÃÈçºÎʵÏÖÄØ?ÔÚÏߵȴð°¸!!!
XML code:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical">
<mx:Script>
<![CDATA[
import flash.events.Event;
import mx.controls.sliderClasses.Slider;
private var actualWidth:Number = 0;
private var actualHeight:Number = 0;
private function center(flag:Boolean = false):void
{
if (flag)
{
actualWidth = image.contentWidth;
actualHeight = image.contentHeight;
}
image.move(Math.round((canvas.width - image.contentWidth) / 2),
Math.round((canvas.height - image.contentHeight) / 2));
}
private function sliderChangeHandler(event:Event):void
{
var value:Number = (event.target as Slider).value;
image.content.width = Math.round(actualWidth * value);
image.content.height = Math.round(actualHeight * value);
center();
}
]]>
Ïà¹ØÎÊ´ð£º
ÊÇÕâÑùµÄ£¬Õâ¸öÎÊÌâ¿ÉÄÜ¿´ÆðÀ´ÏñѯÎÊQTPµÄ£¬µ«Ö®Ç°¶ÔFLEX¿ª·¢ÓïÑÔÁ˽âµÄºÜÉÙ£¬×î½üÓиöÏîÄ¿£¬ÐèÒªÓõ½
QTP£¬È»ºóºÜÓôÃƵķ¢ÏÖ£¬Ê¹ÓÃQTP SPYÑ¡È¡²»µ½FLEXÒ³ÃæÖеÄÈκÎÒ»¸ö¶ÔÏó£¬Ö»¿ÉÒÔÑ¡È¡WINOBJECTÕâ¸ö¶ÔÏó£¬
......
ÎÒ×öÁ˸öÍøÂçÍØÆËͼ¡£ÀûÓÃBlazedsÀ´È¥Êý¾Ý¶ÔÏó£¨remoteObject£©£¬ÏÔʾÔÚDataGridÀïÃ棬Á¬½ÓÊý¾Ý¿âÓõÄÊÇjdbc·½Ê½¡£Ô¶³Ì¶ÔÏóÈ¡µÃºóµ÷Ó÷½·¨È¡µÃÊý¾Ý¿âµÄÊý¾Ý£¬ÎÒÄܲ»Äܶ¨Ê±È¥µ÷ÓÃÔ¶³Ì¶ÔÏóÀïµÄ·½·¨À´È¡µÃÊý¾Ý¡ ......
¸÷λ´óϺ£¬ÌÖÂÛÏÂʱÏÂÁ÷Ðеļ¼Êõ¡£
Ó¦Ó÷¶Î§ÊÇÍøÂç¹ÜÀíϵͳ£¬»òÆóÒµÄÚ²¿ÃÅ»§ÍøÕ¾¡£
¿ÉÄܵļܹ¹×éºÏÊÇasp.net MVC+flex
asp.net MVC+Silverlight
J2EE MVC+flex
J2EE MVC+Silverlight
¸÷Öּܹ¹¾ßÌå ......
ÎÒÏÖÔÚÐèÒªÓõ½Ò»¸öÈÕÆÚ³£Á¿£¬ÇëÎʸÃÈçºÎ¶¨Ò塣ллÁË
public static const currentDate:Date = new Date();
2Â¥µÄ¶Ô
³£Á¿ÒªÓôóдµÎ
¶¥2Â¥
ÒýÓÃ
³£Á¿ÒªÓôóдµÎ
Ò»°ã³£Á¿¶¼ÊÇ´óд
......
<mx:RemoteObject id="say" destination="Hello" >
</mx:RemoteObject>
ÓÃremoteObject µÄ getOperation ·½·¨µÃµ½µ÷ÓõÄjava·½·¨¡£È»ºóµÃµ½Ò»¸öAbstr ......