English 中文(简体)
四. 培养儿童的能力
原标题:Flash Builder Child Popup call Parent Function

我的习俗部分如下:

public function myFunc():void {
   //some code
}

public function createComp():void {
  var myVar:customComp = new customComp();
  myVar.button01.label = "Some label";
  PopUpManager.addPopUp(myVar, this, true);
}

当一个县(布顿01)受到压力时,我希望它把我的部队职能称作上级部门。 铭记所有这一切都是一样的。 我在什么地方补充活动听众?

问题回答

FIOFM, from this reference: http://www.mail-archive.com/[email protected]/msg86364.html

在PopUp,创造新的功能变量,从而形成一种纽托勒功能,如:

<fx:Script>
    <![CDATA[

        public var onSubmit:Function;

        public function buttonHandler():void {
            onSubmit.call();
        }
...

在父母中增加公共职能:

public function openCustComp():void
{
    var custComp:panelComp = new panelComp();
    PopUpManager.addPopUp(custComp, this, true);
    custComp.onSubmit = clearCISD;
    PopUpManager.centerPopUp(instSuppDiaAdd);
}




相关问题
Flex: MX + Sparks vs. MX-only components

I m playing with the video components of Flex. When starting a new project, I was able to choose between (MX only) and (MX + Sparks). When I set the project to (MX + Sparks), the only video component ...

external swf control flex application?

I have a flex application that loads an external swf file. I created the external swf file using flash cs4 so I can add code to it if that is what it takes. Here is the code I use to load my external ...

Whats the itemChangeEffect equivalent in Spark List?

In flex 3, with List component, you could add an effect to the itemChangeEffect property, allowing you to animate the addition/removal of the items in the list control. The equiv in the spark list ...

Add AIR 2 to FB4?

I downloaded and installed FB4 beta 2. I want to try out some of the new AIR 2 beta features, but AIR 2 is not packed with FB4 by default, how can I set this up? Thanks! (Also if possible I still ...

List management

I have a datasource, which I show as a list in a Flex UI. I refresh the list periodically, One of my UI requirements is to gracefully show when the datasource removes an item from the list, So I m ...

Flex 4 Bubbling custom event

How to create a bubbling custom event in Flex 4? To create and expose a custom event in MXML, you need to declare it at the component that will dispatch the event with this line: <fx:Metadata> ...

Flex 4 Datagroup Item Renderer coordinates

I d like to have an overlay that draws lines between selected items in different Flex 4 List controls. The problem is I can t figure out how to access the x, y coordinates of the list s item ...

热门标签