从一个mxml到另一个(子级到父级)获取值 [英] Get the value from an mxml to another (child to parent)
本文介绍了从一个mxml到另一个(子级到父级)获取值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
你好,我是flex的新手,我想知道如何从另一个mxml获取值.我在子mxml中有一个要解析为父mxml的值.然后使用该值创建搜索方法.
Hello I am quite new to flex and would like to know how do I get a value from another mxml. I have a value in the child mxml that i would like to parse to the parent mxml . Then use the value to create a search method.
推荐答案
使用Application.application.< mxml文件名>.<变量名称>
或
parentApplication.<变量名称>
注意:
确保将变量声明为公共变量.
use Application.application.<mxml file name>.<variable name>
OR
parentApplication.<variable name>
Note:
Make sure that the variable is declared public.
这篇关于从一个mxml到另一个(子级到父级)获取值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文