jidd

Jim Isaacs Design & Development

WindowLocation AS3 Class

Posted 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:

Download Icon AS3 WindowLocation Example - Version 1.0
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.

Download Icon com.jidd.external.WindowLocation - Version 1.0
Filed under: development, as3, src
Download 3.6 KB » (91)

Comment if you have any questions, or suggestions.

2 Responses to “WindowLocation AS3 Class”

  1. force

    very thanks

  2. Ra√∫l

    THANKS!!!!!!!!!!

Leave a Reply

info@jimisaacs.com
Bear