1.拖曳範圍轉換為影片片段(命為title)
2.視窗畫好,內容部分轉換為影片片段(實體對象:content_mc)
3.整體轉換為影片片段(實體對象:window_mc)
4.到window影片片段裡編輯,畫出一個按鈕(轉換為按紐MinMax_open),再轉換為影片片段(MinMax_MC)
5.重製MinMax_open命為MinMax_close按扭
//MinMax_MC第一格
on(press)
{
this._parent.content_mc._visible = false;
nextFrame();
}
//MinMax_MC第二格
on(press)
{
this._parent.content_mc._visible = true;
prevFrame();
}
//title指令(window影片片段裡)
on(press)
{
this._parent.startDrag(false);
}
on(release)
{
stopDrag();
}
//愛心指令(按一下可隨機位置出現,並可拖曳)
2.視窗畫好,內容部分轉換為影片片段(實體對象:content_mc)
3.整體轉換為影片片段(實體對象:window_mc)
4.到window影片片段裡編輯,畫出一個按鈕(轉換為按紐MinMax_open),再轉換為影片片段(MinMax_MC)
5.重製MinMax_open命為MinMax_close按扭
//MinMax_MC第一格
on(press)
{
this._parent.content_mc._visible = false;
nextFrame();
}
//MinMax_MC第二格
on(press)
{
this._parent.content_mc._visible = true;
prevFrame();
}
//title指令(window影片片段裡)
on(press)
{
this._parent.startDrag(false);
}
on(release)
{
stopDrag();
}
//愛心指令(按一下可隨機位置出現,並可拖曳)
on(press)
{
_root.attachMovie("heart1_mc","h1",0);
_root.h1._x = random(800);
_root.h1._y = random(600);
_root.h1.onPress = function()
{
this.startDrag(false);
}
_root.h1.onRelease = function()
{
stopDrag();
}
}
//左邊關閉按鈕
on(press)
{
this._visible = false;
}
//出現視窗按鈕(最外層)
on(press)
{
this.window_mc._visible = true;
}
>> GO TO SEE THE FLASH <<
全站熱搜
留言列表