i am new to flash and having some problem in IE6. when i send the URL in hardcoded way the data is loading from JSON and game is running. if i send it like
request.url =“index.php?file=c-quiz_engine_details&game_id=” + gameId;
the data is not loading and game is not running.
if i hard coded it like
request.url =“http://192.168.1.29:8087/index.php?file=c-quiz_engine_details&game_id=38”;
the game is working in all browsers.
can anyone of you let me know whats the problem?
Thanks in advance.
here is my code
public function loadJSONData(actiontype:String)
{
var loader:URLLoader = new URLLoader();
var paramObj:Object = LoaderInfo(root.loaderInfo).parameters;
for (keyStr in paramObj)
{
gameId = int((paramObj[keyStr]));
}
if(actiontype == “init”)
{
request.url =“index.php?file=c-quiz_engine_details&game_id=” + gameId;
trace("the Requested URL is "+request.url);
var dataURL:String = request.url;
loader.addEventListener(Event.COMPLETE, decodeJSON,false,0,true);
loader.addEventListener (ProgressEvent.PROGRESS, preloader);
try
{
loader.load(new URLRequest(dataURL));
}
catch(error:Error)
{
trace("Just catched the error :(");
}
trace("after loading the url request");
}//end of if block
}