actionscript 3 - How to get/obtain Variables from URL in Flash AS3 -


so have url need flash movie extract variables from:

example link:
http://www.example.com/example_xml.php?aid=1234&bid=5678

i need aid , bid numbers.

i'm able full url string via externalinterface

var url:string = externalinterface.call("window.location.href.tostring"); if (url) testfield.text = url; 

just unsure how manipulate string 1234 , 5678 numbers.

appreciate tips, links or this!

create new instance of urlvariables.

// given search: aid=1234&bid=5678 var search:string = externalinterface.call("window.location.search"); var vars:urlvariables = new urlvariables(search); trace(vars.aid); // 1234 trace(vars.bid); // 5678 

Comments

Popular posts from this blog

javascript - Enclosure Memory Copies -

php - Replacing tags in braces, even nested tags, with regex -