AS3 question
AS3 question
- Started
- Last post
- 1 Response
- moth
I'm trying to do a simple redirect with AS3.
I have this;
navigateToURL(new URLRequest("person"), "_self");
The current URL is mydomain.com/people/
'people' is variable, so I can't hardcode it.
I want to redirect too;
mydomain.com/people/person
How the hell do I do it?
All I can achieve is mydomain.com/person
Thanks.
- thecreativefire0
something like this maybe:
var redirect:String = "http://www.mydomain.com/"+peopl...
var newurl:URLRequest = new URLRequest(redirect);
navigateToURL(newurl, "_self");
Obviously I don't know what 'person' is but you can use it as a string or if it's a variable you can cast it as a string.- ok that first line has chopped off. it should end with ... +people+"/person";thecreativefire