actionscript 3 - exsisting URL parameters to flash as3 -


how can url value without showing parameter string

sitename.com/example.swf?var1=[regionvar]

swf used inside virtual grid , above url string using var1=[regionvar]

does output region instance number using code

regionvar:string = loaderinfo.loaderurl;  text1.text = regionvar.tostring() 

the above returns

sitename.com/example.swf?var1=12345678

what need value without including parameter string in url

sitename.com/example.swf

being able check value of region without parameter string in url

is needed check if swf being used in proper region.

regionvar preexisting variable in grid

thank help

something like:

var uv:urlvariables = new urlvariables(loaderinfo.loaderurl.split("?")[1]);  trace(uv['var1']); 

p.s. try this, work:

trace(loaderinfo.parameters['var1']); 

Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -