English 中文(简体)
能否从灵活性中的儿童部分中指定一项职能?
原标题:Is it possible to call a function in a parent component from a child component in Flex?

我需要把一项功能放在父母的构成部分,并将儿童部分的呼吁列入灵活性3。 是否有办法从儿童构成部分获得父母部分的职能? 我知道,我可以组织一次有关儿童的活动,并在父母中增加一位听众来宣传这一功能,但我只想知道,是否也可以直接从儿童中指定家长的职能。 增 编

问题回答

您可使用母体申请

例如,如果是主人的话。 我们把儿童称为其中一部分。 哺乳期,主要从儿童内部传承职能,具体做法如下:

parentApplication.parentsFunctionName(parameters);




相关问题
HTML + Passing Param b/w Parent & Child

It might be a simple, but the funny thing is i ve tried it for almost 2-3hrs and haven t been able to solve it :(. I have a parent window, which has a text box, and it has a value. I do a window.open ...

How to model parent to child pair in MySQL (SQL)

I have a data model that includes element types Stage, Actor, and Form. Logically, Stages can be assigned pairs of ( Form <---> Actor ) which can be duplicated many times (i.e. same person and same ...

Require a method in parent class to be called in PHP

As the title states, I m trying to make a method in a parent class required. Although, I suppose it could be any class. For instance: class Parent { function foo () { // ...

Querying Parent-child Relationships Efficiently

Assuming you have the following database table: create table Names ( Id INT IDENTITY NOT NULL, Name NVARCHAR(100) not null, ParentNameId INT null, primary key (Id) ) create index ...

热门标签