Archive for category Integration

How to pass variables from HTML to the document Class in AS3

I thought I’d make a post about this¬† just to make it easier for people to find answer for this question: How to pass variables from HTML to the document Class in AS3? I knew this would be more complicated then in ActionScript 2 because it was just too darn simple.¬† My first guess was that you would retrieve the variables from the constructor of the document class, but I was wrong. You have to use the LoaderInfo class for the root object. Here is a link showing you how to do it.

, ,

No Comments