开发者

Flex pass object to component by event

I need to call a component and pass an object. Now I am using event initialize to pass into the method of component but it seem to execute only once as foll开发者_运维问答ows. Is there anyway that I can make it call every time it loads. initialize="parentApplication.projectView.projectDetails.loadProject(newProject)">

<mx:TabNavigator id="tn" x="38" y="10"  >
    <s:NavigatorContent label="List Matter" width="100%" >
        <view:ProjectList id="projectList" LoadRecord="loadRecordHandler(event)">

        </view:ProjectList>


    </s:NavigatorContent>
    <s:NavigatorContent label="Matter" width="100%" >
        <view:ProjectDetails id="projectDetails" initialize="parentApplication.mainView.projectView.projectDetails.loadProject(newProject)">

        </view:ProjectDetails>
        <mx:LinkButton x="594" y="10" label="Set Matter Permission"/>
    </s:NavigatorContent>


if you need an event that is called every time your component becomes active - try some of the following:

add, added, addedToStage, show


You may try show event, if I understand you

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜