I've pasted the piece of code, and swithed the krpano.trace with a normal trace(for some reason krpano.trace never worked). But it doesn't trace anything (using flash tracer addon). So I thought maybe it gets stucks along the way so I put 2 traces before and after the parameter trace. Like this:
|
Quellcode
|
1
2
3
4
5
6
7
8
|
trace("begin trace")
var params:Object = loaderInfo.parameters;
for (var varname:String in params)
{
trace(varname + "=" + params[varname])
//krpano.trace(0,varname + "=" + params[varname]);
}
trace("end trace")
|
If I link to: url="plugins/still.swf?req=http://www.darkgfx.com/ObjectDetails2.xml"
The trace output is completely empty (not even begin trace/end trace) and the still swf wont be loaded (not even interface stuff, is completely blanc)
If I link it to url="plugins/still.swf?req=ObjectDetails2.xml", it loads the still and
I get
begin trace
req=ObjectDetails2.xml
end trace
I have no clue what so ever... It seems it's looking for a file called "still.swf?req=http://www.darkgfx.com/ObjectDetails2.xml" instead of still.swf with the req as parameter. Because the error krpano gives, is the same error you get when it cant find a picture.
Edit: When I remove http:// from the req it works! url="still.swf?req=www.darkgfx.com/ObjectDetails2.xml"
So I thought, ok it seems to deal with the / correctly, maybe it's the : I Url encode the all the slashes and : to
|
Quellcode
|
1
|
http%3A%2F%2F
|
and it works. Probally the : doesn't get encoded right?