Google analytics code

Tuesday, October 13, 2009

Flash / Actionscript 3: DataFormat doesn't exist

I was looking through the ActionScript 3.0 Cookbook today and started experimenting with the URLLoader class. The example on page 437 talks about setting the format for the incoming URL. When setting the dataFormat property of URLLoader it suggests using the constant called DataFormat. The only problem is this constant doesn't exist. It's a typo.

The real value is called URLLoaderDataFormat. You can read more about it here.


  1. Sir, I thank you.
    I was just doing the same example :)

  2. Thanx, i ran into same dilemma, on the next recipe.



If you found this page useful, or you have any feedback, please leave a comment.