ActionScript 3/Flex程序员的面试问题

Dex*_*Ter 8 apache-flex actionscript actionscript-3

决定候选人是否具有使用Flex和ActionScript的强大或至少公平的知识可能是一个很好的问题.

Aka*_*ava 1

  1. [Binding] 和 [Binding("eventName")] 之间有什么区别
  2. x:XClass = XClass(y) 和 x:XClass = y as XClass 有什么区别
  3. 如何在动作脚本中设置样式值
  4. 什么是ChangeWatcher,假设ChangeWatcher不存在,你能创建一个吗?
  5. 如何访问托管 Flex 应用程序的 html 的查询字符串参数
  6. List、DataGridColumn等中的labelFunction是什么,如何使用它
  7. 如何使用内联匿名函数以及何时使用
  8. 展示如何使用 Function 作为方法参数的示例
  9. 运算符 >>>、===、!== 的作用是什么?
  10. encodeURI 和encodeURIComponent 之间有什么区别
  11. 如何在“C/C++/C#”中进行#ifdef和#define等条件编译
  12. for..in 和 for every..in 有什么区别
  13. with 关键字有什么作用
  14. flex 中是否有“Long”数据类型(否)
  15. 如何在 XML 中设置给定元素名称的“#text”元素,例如下面...

如何添加孩子的#text

<parent><child/></parent> 
Run Code Online (Sandbox Code Playgroud)

作为

<parent><child>child text</child></parent>
Run Code Online (Sandbox Code Playgroud)

孩子的名字将在运行时确定。

var x:XML = <parent><child/></parent>;
var n:String = "child";
Run Code Online (Sandbox Code Playgroud)

答案是

x.*[n] = "child text";
Run Code Online (Sandbox Code Playgroud)