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
Post a Comment