Flex Modal SkinnableContainer

时间:2012-08-06 19:21:42

标签: flex modal-dialog adobe flex-spark

我有这个SkinnableContainer,我需要实现什么来为这个容器创建模态?由于某些原因(mxmlContentFactory,skin),它必须是SkinnableContainer ...我不能使用弹出管理器 - 我使用Spark Move效果定位容器(它从屏幕边缘开始,然后滑出。

请问任何想法,理论和建议? 谢谢。

EDIT 这是我的代码:(mxml)

    <s:Application width="800" height="600">
     <RightTabGroup width="100%" height="500" verticalCenter="0">
      <RightTab id="tab1">
       <RightTabHandle id="tab1handle">
        <s:Label />
       </RightTabHandle>
       <RightTabContent id="tab1content">
        <s:TextInput />
        <s:TextInput />
        <s:TextInput />
       </RightTabContent>
      </RightTab>

      <RightTab id="tab2">
       <RightTabHandle id="tab2handle">
        <s:Label />
        <s:Button />
       </RightTabHandle>
       <RightTabContent id="tab2content">
        <s:TextInput />
        <s:Button />
       </RightTabContent>
      </RightTab>

      <RightTab id="tab3">
       <RightTabHandle id="tab3handle">
       </RightTabHandle>
       <RightTabContent id="tab3content">
        <s:TextInput />
        <s:TextInput />
        <s:TextInput />
           etc...
        <s:TextInput />
       </RightTabContent>
      </RightTab>
     </RightTabGroup>

    <s:Button id="Problem 1"/>
    <s:Button id="Problem 2"/>
    <s:Button id="Problem 3"/>
      ...etc
    <s:Group id="Problem N">
    </s:Group>

    </s:Application>

<s:Application width="800" height="600"> <RightTabGroup width="100%" height="500" verticalCenter="0"> <RightTab id="tab1"> <RightTabHandle id="tab1handle"> <s:Label /> </RightTabHandle> <RightTabContent id="tab1content"> <s:TextInput /> <s:TextInput /> <s:TextInput /> </RightTabContent> </RightTab> <RightTab id="tab2"> <RightTabHandle id="tab2handle"> <s:Label /> <s:Button /> </RightTabHandle> <RightTabContent id="tab2content"> <s:TextInput /> <s:Button /> </RightTabContent> </RightTab> <RightTab id="tab3"> <RightTabHandle id="tab3handle"> </RightTabHandle> <RightTabContent id="tab3content"> <s:TextInput /> <s:TextInput /> <s:TextInput /> etc... <s:TextInput /> </RightTabContent> </RightTab> </RightTabGroup> <s:Button id="Problem 1"/> <s:Button id="Problem 2"/> <s:Button id="Problem 3"/> ...etc <s:Group id="Problem N"> </s:Group> </s:Application>

RightTabGroup是s:我的自定义布局组 RightTab是s:带皮肤的SkinnableContainer(SkinPart tabContentGroup和tabHandleGroup) RightTabHandle是s:SkinnableContainer
RightTabContent是s:SkinnableContainer

EDIT2
看到这2张图片:
全部关闭 - http://tinypic.com/r/11c6ypw/6
一个开放且活跃的 - http://tinypic.com/r/2rgc1uw/6


0 个答案:

没有答案