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();
}
]]>
Ïà¹ØÎÊ´ð£º
ÐÎÈ磺 A B C
1 2 3
1 2 3
1 2 3
1 2 3
......
ÎÒ×öÁ˸öÍøÂçÍØÆËͼ¡£ÀûÓÃBlazedsÀ´È¥Êý¾Ý¶ÔÏó£¨remoteObject£©£¬ÏÔʾÔÚDataGridÀïÃæ£¬Á¬½ÓÊý¾Ý¿âÓõÄÊÇjdbc·½Ê½¡£Ô¶³Ì¶ÔÏóÈ¡µÃºóµ÷Ó÷½·¨È¡µÃÊý¾Ý¿âµÄÊý¾Ý£¬ÎÒÄܲ»Äܶ¨Ê±È¥µ÷ÓÃÔ¶³Ì¶ÔÏóÀïµÄ·½·¨À´È¡µÃÊý¾Ý¡ ......
ÔÚflashÖкÜÈÝÒ×ÄÜʵÏÖ°ÙÒ¶´°Ð§¹û£¬²»ÖªµÀflexÖÐÄÜ·ñͬÑùʵÏÖ¸ÃЧ¹û£¿
flexÖÐÃ²ËÆ²»ÐУ¬
air¿ÉÒÔ
mark
°ÙÒ¶´°ÊǶà¸öÍøÒ³ÔÚͬһ¸öÒ³ÃæÇл»Âð£¿
ÒýÓÃ
effects\Blinds.as
JScript code
package effec ......
ºǫ́javaÀàÊÇ
public class EFInputProperty
{
private String name;
private String value;
public String getName() {
return name;
}
public void setName(String properyName) { ......
ÎÊÌâÈçÌâÄ¿£¬
°ïæ¡£¡£
ÄãÊÇÖ¸swfAddress & swfObject ÕâÁ½Õß?
ÎÒµÄÒâ˼ÊÇ£¬£¬£¬±ÈÈçÔÚhtmlÀïÃæ£¬¿ÉÒÔÓÃ
<div>
<a name="a" id="a"> </a>
¶¥²¿ & ......