Skip to content

Instantly share code, notes, and snippets.

@IQAndreas
Created January 15, 2012 12:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save IQAndreas/1615665 to your computer and use it in GitHub Desktop.
Save IQAndreas/1615665 to your computer and use it in GitHub Desktop.
Adding property with custom namespace to dynamic object
package
{
public function dynamicObjectTest():void
{
// Namespace works elsewhere, but not on this dynamic object
//Exception fault: ReferenceError: Error #1056: Cannot create property custom::prop on Object.
var obj:Object = {};
obj.custom::prop = "val";
for (var property:* in obj)
{
trace(property, obj[property]);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment