Posts Tagged ‘Object’

How To Discriminate Between JavaScript Object and ActionScript Object In AIR

chart-accept-128x128JavaScript and ActionScript share a nearly identical syntax, object model, and even many object classes because both of them are based on the ECMA-262 (ECMAScript) standard. ActionScript implements the arguments object, which supports the callee and length properties, just like JavaScript. ActionScript also implements the Array, Boolean, Date, Math, Number, Object, and String classes familiar to JavaScript programmers.Adobe AIR allows ActionScript and JavaScript base object can be convert each other.But sometimes we still need to know which is javascript objct and which is actionscript object.The following code shows how to detect Javascript objct and ActionScript.

(more…)