flex 3에서 iframe overlay로 인한 flex의 popup layer 안보이는 문제에 대한 야메 해결법.-_-
tip. flex
iframe overlay problem (우회해결법.) - 조금 수정됨.

문제점
flex에서 popup을 띄우면 iframe이 밑으로 숨는 문제점 발생...-_-

-> iframe을 항상 위에 있게 하기 위해..
index.template.html의 AC_FL_RunContent( 부분에

:
"name", "${application}",
"wmode","opaque",
"allowScriptAccess","always",
:

빨간놈 추가.


항상 iframe을 flex앞에 있게 함......-_- 항상...
always.

항상 popup위에 존재한다는 문제점 발생;;-_-;;;;;;;;
:Alert.show등이 안보임...-_-(가려짐)


iframe의 layer가 flex보다 앞에 위치하게 되어 flex의 popup 들(alert등)이 iframe에 가려 보이지 않는 현상

-> 야메 해결법이란걸 미리 밝혀둠..(나중에 더 좋은방법이 나올지도..)

iframe.visible=false;
alert등 popup처리
ok event 수신후 
iframe.visible=true;



야메긴 하지만 어쨋든 잘 됨.


구현예제
action script

  //지도
  public function alert(str:String):void
  {
       iframe.visible = false;
      Alert.show(str, "", Alert.OK, this, AlertListener, null);
  }
    // alert listener
  private function AlertListener(evt:Event):void
  {
       iframe.visible=true;
  }



참고자료
IFrame 관련 팁 - div가 보였다 안 보였다 할 때
http://cafe.naver.com/flexcomponent/2411

wmode
http://thlife.net/635

flex와 jsp연동하기.(아래부분의 alertlistener event 부분 활용.)
http://cafe.naver.com/flexcomponent/5072

by -레- | 2008/06/12 03:20 | Programming | 트랙백 | 덧글(0)
트랙백 주소 : http://zubilan.egloos.com/tb/4417960
☞ 내 이글루에 이 글과 관련된 글 쓰기 (트랙백 보내기) [도움말]

:         :

:

비공개 덧글



< 이전페이지 다음페이지 >