Merhabalar,
1- Scrooll Pane kullanımını için ilk önce “Window- Components- User Interface” içinden “ScrollPane” Komponentini seçip ekrana ekliyoruz.
2- Scroll Pane için kullanacağımız MovieClip in kütüphanedeki ismine “LİNKAGE” yöntemiyle isim veriyoruz.
stop();
var a:int;
a=1;
import flash.events.Event;
Belgem.source = icerikkismi;
btn.addEventListener(MouseEvent.ROLL_OVER,ustunde);
function ustunde(e:Event)
{
btn.gotoAndStop(2);
buttonMode=true;
}
btn.addEventListener(MouseEvent.ROLL_OUT,cikti);
function cikti(e:Event)
{
btn.gotoAndStop(1);
}
btn.addEventListener(MouseEvent.CLICK,basti);
function basti(e:Event)
{
trace(a);
if (a==1) { gotoAndStop(2); Belgem.verticalScrollPosition = 320;}
if (a==2) { gotoAndStop(3); Belgem.verticalScrollPosition = 420;}
if (a==3) { gotoAndStop(4); Belgem.verticalScrollPosition = 490;}
if (a==4) { gotoAndStop(5); Belgem.verticalScrollPosition = 515;}
if (a==5) { gotoAndStop(6); Belgem.verticalScrollPosition = 590;}
if (a==6) { gotoAndStop(7); Belgem.verticalScrollPosition = 670;}
if (a==7) { gotoAndStop(8); Belgem.verticalScrollPosition = 850;}
if (a==8) { gotoAndStop(9); Belgem.verticalScrollPosition = 850;}
a++;
}
//bakalim=Belgem.content;
//trace(bakalim)
//Belgem.addEventListener(MouseEvent.CLICK,kontrol_1);
var mcMain:MovieClip=Belgem.content as MovieClip;
mcMain.btn_1.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_2.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_3.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_4.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_5.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_6.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_7.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_8.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_9.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_10.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_11.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.btn_12.addEventListener(MouseEvent.CLICK,kontrol_1);
mcMain.bir.tarih.addEventListener(MouseEvent.CLICK,sil);
function sil(e:MouseEvent)
{
mcMain.bir.tarih.text=””
}
mcMain.iki.tarih.addEventListener(MouseEvent.CLICK,sil2);
function sil2(e:MouseEvent)
{
mcMain.iki.tarih2.text=””
}
mcMain.iki.tarih.addEventListener(MouseEvent.CLICK,sil3);
function Afyonkarahisar escort sil3(e:MouseEvent)
{
mcMain.iki.tarih3.text=””
}
mcMain.sekiz.tarih.addEventListener(MouseEvent.CLICK,sil4);
function sil4(e:MouseEvent)
{
mcMain.sekiz.tarih4.text=””
}
function kontrol_1(e:MouseEvent)
{
trace(“Tıkladım”);
btn.visible=true;
}
add a comment