본문 바로가기

컴터/Flash & Flex

객체 생성해서 이벤트 적용하기

336x280(권장), 300x250(권장), 250x250, 200x200 크기의 광고 코드만 넣을 수 있습니다.
객체 생성해서 이벤트 적용하기

     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();