0
그룹 컨테이너에 FXG 그래픽 자산이 있습니다. 기본적으로 보이지 않습니다. 페이드 인하려고 할 때 처음에는 훌륭하게 작동하지만 페이드 인하 고 두 번째로는 90 % 후 즉시 페이드 인 (fade in)으로 나타나고 그 다음 페이드 인 (if if 그것은 의미가있다).알파가 0으로 설정되어 있어도 FXG 자산이 표시됩니다.
저는 트위너와 관련된 문제 일 수 있으므로 트위너를 사용하고 있습니다.하지만 페이드 인하는 두 개의 다른 구성 요소가 있습니다.
Tweener는 트윈이 시작될 때 각 객체의 스냅 샷을 찍고 FXG 닫기 버튼이 보이지만 (알파는 적용되지 않음) 그 이미지에서 최종 이미지로 사라집니다.
MXML :
이<s:Image id="image"
left="20" top="80"
width="620" height="300"
useHandCursor="true"
buttonMode="true"
backgroundColor="black"
backgroundAlpha="1"
click="handleClick(event)"/>
<fxg:RoundCloseButton id="closeImageButton" width="24" height="24" top="82" right="22"
useHandCursor="true"
buttonMode="true"
click="handleClick(event)"/>
코드 :
image.alpha = 0;
image.visible = true;
closeImageButton.alpha = 0;
closeImageButton.visible = true;
imageExistsLabel.alpha = 0;
imageExistsLabel.visible = true;
Tweener.addTween([image, imageExistsLabel, closeImageButton], {alpha:1.0, time:0.25, transition:"easeOutExpo", delay:0.5});