在以下代碼中,水果圖像的onclick如何使水果圖像在盒子圖像中下降並具有適當的效果(即應將水果圖像丟棄到盒子圖像中) ..使圖像在FLEX/AS閃光燈中移動
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[
import mx.controls.Button;
import mx.controls.Alert;
public function clickhandler(event:Event):void
{
}
]]>
</mx:Script>
<mx:Canvas id="myCanvas"
height="800" width="800"
borderStyle="solid"
backgroundColor="#A9C0E7">
<mx:Image
height="50" width="50"
x="100" y="10"
source="@Embed(source='fruits.jpg')"
click="clickhandler(event)" />
<mx:Image
height="200" width="200"
x="300" y="350"
source="@Embed(source='box.jpg')" />
</mx:Canvas>
<!--<mx:TextInput x="231" y="175" id="txtLogin"/>-->
</mx:Application>
這就是我正在尋找。謝謝.. – Rajeev 2011-04-25 09:47:13
你是歡迎:) – Constantiner 2011-04-25 09:50:13