컴터/Flash & Flex
객체 생성해서 이벤트 적용하기
우렁씨
2008. 9. 27. 11:05
객체 생성해서 이벤트 적용하기
var popImg:Image = new Image();
popImg.width = w;
popImg.height = h;
popImg.x = (customWidth-w)/2;
popImg.y = (customHeight-h)/2;
popImg.load(incVars.incUrl().s_domain + path);
popImg.showBusyCursor = true;
this.addChild(popImg);
var irisEft:Iris = new Iris();
irisEft.showTarget = true;
irisEft.target = popImg;//taget으로 생성된 객체지정
irisEft.play();
var popImg:Image = new Image();
popImg.width = w;
popImg.height = h;
popImg.x = (customWidth-w)/2;
popImg.y = (customHeight-h)/2;
popImg.load(incVars.incUrl().s_domain + path);
popImg.showBusyCursor = true;
this.addChild(popImg);
var irisEft:Iris = new Iris();
irisEft.showTarget = true;
irisEft.target = popImg;//taget으로 생성된 객체지정
irisEft.play();