[RESOLVED] Invalid URL Request?
Trying to figure out how a few simple combinations of a string results in a fail conversion to a url.
PHP Code:
for(i;i<numberOfProjects;i++)
{
var currentN:Number = new Number(i + 1);
var l:Loader = new Loader();
var locationOfPicture:String = new String("http://<my domain>/PROJECTS/_IMAGES/" + currentN.toString() + "-0.png");
var urlRQ:URLRequest = URLRequest(locationOfPicture); //Project number + card Image (card image is always 0)
The result:
Code:
TypeError: Error #1034: Type Coercion failed: cannot convert "http://www.oarlus.eu/PROJECTS/_IMAGES/1-0.png" to flash.net.URLRequest.
at Editor_fla::MainTimeline/loadCompleteF()[Editor_fla.MainTimeline::frame3:35]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/onComplete()