2010-02-22 7 views

답변

2

당신은 (AN mx_internal 방법 displayDropdown를 호출)를 open 메소드를 호출 할 수 있습니다

<?xml version="1.0" encoding="utf-8"?> 
<mx:Application 
xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"> 

<mx:Script> 
    import mx.events.DropdownEvent; 

    protected function initializeInterruption():void 
    { 
    color.addEventListener(DropdownEvent.CLOSE, interrupt); 
    } 

    protected function interrupt(event:Event):void 
    { 
    color.open(); 
    } 
    </mx:Script> 

<mx:ColorPicker id="color" closeDuration="0" openDuration="0" 
    initialize="initializeInterruption()" 
    creationComplete="color.open()"/> 

</mx:Application> 

또한 ColorPicker 구성 클래스를 확장하고 일부 /이 모든 메소드 오버라이드 (override) 할 수있는 옵션이 있습니다

  • keyDownHandler
  • downArrowButton_buttonDownHandler
  • open
  • close

이 작동하는지 알려줘, 랜스

+0

이것은 내가 원하는 다만 방법을 열심히 감사합니다! – Yeti

관련 문제