In AS2 to create a URL that would change depending on the current movie being viewed I would create variable and use this to make up the path, I can’t get this working in AS3, what do I need to do to make this work?
I have
var fileReq3:URLRequest=new URLRequest(currentPath);
var currentPath:String = "mainImages/imageA.jpg";
Then on my buttons I want to just reset the currentPath to image a b c and so on.
When I publish my swf I get an error #2007 parameter must not be null.
Any advice would be much appreciated.
Thanks
Ricky