フェードイン

透明度を指定する属性opacityの値を0(透明)から1(不透明)に変化させます。

この内容を表示するためには Adobe Flash Plugin が必要です。

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee"> 
  <simplelayout />
  <button onclick="canvas.sq.animate('opacity',1,3000,false);">フェードイン</button>
  <view name="sq" width="50" height="50" bgcolor="0xff0000" opacity="0"/>
</canvas>

あるいは、

<?xml version="1.0" encoding="UTF-8"?>
<canvas proxied="false" bgcolor="0xeeeeee"> 
  <simplelayout />
  <button onclick="canvas.sq.anm.doStart();">フェードイン</button>
  <view name="sq" width="50" height="50" bgcolor="0xff0000" opacity="0">
    <animator name="anm" attribute="opacity" to="1" duration="3000" start="false"/>
  </view>
</canvas>