Category Archives: ActionScript

ActionScript

Apache Flex: MXML or ActionScript ?

Deciding to create components in MXML or ActionScript
 
One of the first decisions that you must make when creating custom components is deciding

More…

Posted in ActionScript, Flex | Tagged , | Leave a comment

Using XML filter in ActionScript – Flex中过滤XML

我一直不喜欢在AS中频繁的操作XML, 但没办法, 最近所有的data都是来自于XML, 没有任何ValueObject, 清一色的XML.

把把都得翻书找手册 :(   弱到爆

 

image

Trace到的结果:

image

Posted in ActionScript, Flex | Tagged , , | Leave a comment

ActionScript: conversion to Boolean

The following table summarizes the results of casting to the Boolean data type from other data types:

Data type or value
Result of conversion to Bo

More…

Posted in ActionScript, Flex | Tagged , | Leave a comment

ActionScript: Check if a xml attribute/element exists 检查XML属性/元素是否存在

Here is the XML:
<XeSex sexIDElement='MID'> <SexID> M </SexID> <Name> Male </Name> <Active> y </Active> <

More…

Posted in ActionScript | Tagged , , | Leave a comment

Flex Build: org.xml.sax.SAXParseException :The entity name must immediately follow the ‘&’ in the entity reference

在过去接近4年的时间里, 很少使用MXML, 几乎都是纯AS, 最近操作了一点点MXML, 譬如:
<s:Button enabled=”isDirty() && canSaveNow()” />
 
在build的时候遇到错误:
org.xml.sax.SA

More…

Posted in ActionScript | Tagged , , | Leave a comment