WindowLocation AS3 ClassPosted by: Jim Isaacs | August 9th 2008 |
Custom class dependancies: QueryParameters
The class works exactly the way you think it would except it has a couple of extras. One extra is that this class caches the value of any javascript call made by ExternalInterface. This way, if you need to call this class’s property more than once in a script the ExternalInterface method will only run once for the first time. The second extra is that all the url parameters available in the ‘search’ property, is also available in the parameters property which is an instance of QueryParameters. This means that you may directly access one parameter of the current window’s url, with all the string parsing already taken care of for you.
Without going on and on, please play around with the example below:
Filed under: examples, as3, development
Download 1.08 MB » (86)
Now here is the source of the class itself. Please make sure to review the QueryParameters class for additional information on this class.
Filed under: development, as3, src
Download 3.6 KB » (91)
Comment if you have any questions, or suggestions.
very thanks
THANKS!!!!!!!!!!