2011-12-09 6 views
0

私はツールチップマネージャを実装していたと私はサンドボックスルートに子を追加するISystemManagerにからtopLevelSystemManagerを使用:Flex 4.5 - addChildToSandboxRoot?フレックス3.2で

次のようにコードはでした:フレックスをアップグレードするための私の努力で

var sm:ISystemManager = getSystemManager(currentTarget) as ISystemManager; 
      sm.topLevelSystemManager.addChildToSandboxRoot("toolTipChildren" , currentToolTip as DisplayObject); 

をこのメソッドがもはや存在しないことを発見しました。

このコードを4.5に移行するには、どのような方法が適していますか? ActionScriptクラスの

一部はここに示されています:

mx_internal function createTip():void 
{ 
    // Dispatch a "createToolTip" event 
    // from the object displaying the tooltip. 
    var event:ToolTipEvent = 
     new ToolTipEvent(ToolTipEvent.TOOL_TIP_CREATE); 
    currentTarget.dispatchEvent(event); 

    if (event.toolTip) 
     currentToolTip = event.toolTip; 
    else 
     currentToolTip = new toolTipClass(); 

    currentToolTip.visible = false; 

    var sm:ISystemManager = getSystemManager(currentTarget) as ISystemManager; 
      sm.topLevelSystemManager.addChildToSandboxRoot("toolTipChildren", currentToolTip as DisplayObject); 
} 

すべてのヘルプは大歓迎されます。

答えて

0

私はちょうどあなたが、私は先に言及したコードのスニペットとToolTipManageImplクラスがもはや必要とされていないと言っている。この

sm.topLevelSystemManager.toolTipChildren.addChild(currentToolTip as DisplayObject) 
1

hereの説明に従ってツールチップマネージャを使用してください。

+0

を使用することができますか?判明 – kkudi

関連する問題