`

Flex 里[Exclude]标签的作用:对外忽略/隐藏内部某对象

    博客分类:
  • flex
 
阅读更多
 转载:http://www.cnblogs.com/fxair/archive/2010/08/09/1795614.html

 Flex 里[Exclude]标签的作用:对外忽略/隐藏内部某对象

比如,采用mxml来自定义组件 CustomComponent:

   1. <?xml version="1.0" encoding="utf-8"?>
   2. <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
   3. <mx:Button id="mybt"/>
   4. </mx:Canvas>

别的地方在使用此组件的时候,是可以访问到 mybt的,在输入属性设置的时候,都会有mybt属性的提示:

如果说不想让外部访问mybt,这个时候就用到了[Exclude]标签了。
修改自定义组件的代码为:

   1. <?xml version="1.0" encoding="utf-8"?>
   2. <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml">
   3. <mx:Metadata>
   4. [Exclude(name="mybt",kind="property")]
   5. </mx:Metadata>
   6. <mx:Button id="mybt"/>
   7. </mx:Canvas>

这样外部在调用CustomComponent的时候,就访问不到mybt了。

 

分享到:
评论

相关推荐

    jquery 导出excel

    exclude: ".noExl",//不被导出的表格行的CSS class类。 name: "Excel Document Name",//导出的Excel文档的名称。 filename: "myFileName" + new Date().toISOString().replace(/[\-\:\.]/g, ""),//Excel文件的...

    jquery导出excel

    exclude: ".noExl", // 可以将CSS类“noExl”添加到任何tr标记,以在导出时忽略指定的表数据 name: "Excel Document Name", filename: "xxx.xlsx", fileext: ".xlsx", exclude_img: true, // 确定是否排除图像...

    SQLite数据库 sqlitedll库文件 sqlite驱动JAR包 sqlite工具

    15 // If you want to only create a database in memory, exclude the +fileName 16 Connection conn = DriverManager.getConnection("jdbc:sqlite:"+fileName); 17 // Create a Statement object for the database...

    sqlmap手册.zip

    ./sqlmap.py -u http://www.evil0x.com/ test.php?p=2 -b –dump -C “user,pass” -v 1 –exclude-sysdbs 5. ./sqlmap.py -u http://www.evil0x.com/ test.php?p=2 -b –sql-shell -v 2 6. ./sqlmap.py -u ...

    Get My MSL1.3.apk

    This way I can find out what devices can and cant be supported and exclude this app from showing in the market for those devices (HTC + many others). I will make the dataset public.

    rsync只同步指定目录的方法(已测)

    rsync使用–include参数与–exclude参数来实现同步指定目录,并且–exclude目录放在后面。 例如: linux上文件目录 代码如下: ls /usr/local/apache/htdocs/site aa bb cc dd ee .. zz 只想同步aa,bb,ee这三个目录...

    sqlmap (懂的入)

    * It is possible to exclude system databases when enumerating tables, useful when dumping the entire DBMS databases tables entries and you want to skip the default DBMS data; * It is possible to ...

    flexlm_exporter:Prometheus导出程序,用于FLEXlm License Manager信息

    # FlexLM Licenses to be monitored.---licenses: - name: app1 license_file: /usr/local/flexlm/licenses/license.dat.app1 features_to_exclude: feature1,feature2 monitor_users: True monito

    rsync命令排除文件和文件夹(exclude-from)

    假设最开始的命令是这样的 rsync -e ‘ssh -p 30000’ -avl –delete –stats –progress demo@123.45.67.890:/home/demo /backup/ 一、排除单独的文件夹和文件 要排除sources文件夹,我们可以添加 ‘–exclude’ ...

    mkdocs-exclude:一个mkdocs插件,可让您从输出中排除文件或树

    - exclude/this/path/* - " *.tmp " - " *.pdf " - " *.gz " regex : - ' .*\.(tmp|bin|tar)$ ' 您可以提供每种类型的零个或多个模式。 (如果您不提供任何模式,那么将不会发生任何事情!)

    swc-loader:SWC的Webpack插件

    js $ / , exclude : / ( node_modules | bower_components ) / , use : { // Use `.swcrc` to configure swc loader : "swc-loader" } } ] ;} 您可以使用option属性将选项传递给加载程序。module:

    最全TypeScript中文入门指南详解案例教程

    Myeclipse---&gt;&gt; Exclude From Validation忽略红色的问题 5、看TypeScript例子源碼情況.ts文件,javascript源碼是.js 6、参考博客.. http://ju.outofmemory.cn/entry/954 ...

    jsxhint-loader:用于 Webpack 的 JSXHint 加载器——在爱的拥抱中使用 JSX 和 jshint

    用于 Webpack 的 JSXHint 加载器使用现有的和以及预加载器提示的配置。用法jshint: { //Options to jshint-loader .../, exclude: __dirname + '/node_modules', loader: 'jsxhint-loader' }]

    rsync详解之exclude排除文件

    问题:如何避开同步指定的文件夹? –exclude rsync –exclude files and folders ...直接添加–exclude 即可 比如–exclude “proc” –exclude ‘sources’ Note: the directory path is relative to the folder yo

    rploy:最小的rsync部署

    loy :delivery_truck: 最小的rsync部署 用法 npm i rploy -D 将源和目标选项添加到您的package.json : { " rploy " : { " source " : " public/ " , ... " exclude " : [ " .DS_Store " , " Icon " ,

    操作系统安全:ClamAV查杀恶意程序.pptx

    clamAV clamAV查杀恶意程序 开启服务 # service clamd start # netstat -nltup |grep clamd # chkconfig clamd on # clamdscan - V ...(6) --exclude=REGEX:不扫描与正则表达式匹配的文件 (7) --exc

    exclude-folders:括号扩展名,用于从文件树中排除文件夹,在文件中查找并快速打开

    粘贴(或输入) https://github.com/gruehle/exclude-folders并单击“安装” 默认情况下,此扩展排除所有的node_modules文件夹。 如果要排除其他文件夹,请在main.js第41行中编辑正则表达式。 例如,如果要排除所有...

    ring-ui-license-checker

    环ui许可证检查器 ... 愉快地发展(R) 选项 filename :字符串 format :(参数= {模块:模块[]})=&gt;字符串 exclude :RegExp forceAddPackages :模块[] customLicenses :模块[] ... 选项用法和module对象结构示例:

    cidr-tools:与IPv4和IPv6 CIDR网络列表配合使用的工具

    exclude ( [ '::1/127' ] , [ '::1/128' ] ) //=&gt; ['::/128'] cidrTools . expand ( [ '2001:db8::/126' ] ) //=&gt; ['2001:db8::', '2001:db8::1', '2001:db8::2', '2001:db8::3'] cidrTools . overlap ( '1.0.0.0/...

    statsvn.jar 统计代码

    使用方法: 进入新捡出的目录 svn log -v --xml &gt; logfile.log java -jar statsvn.jar -title ...**/*.py -exclude **/*.gif;**/*.jpg;**/*.png;**/*.bmp;**/*.zip;**/*.rar -threads 50 e:/abc/logfile.log e:\abc

Global site tag (gtag.js) - Google Analytics