This content has been marked as final. Show 13 replies
are you waiting long enough for the "loaded" swf to actually load?
Yes I have waited 5 mins and still just a blank screen
and then when you reload the main swf and retry your getURL() code, it works? and it continues to work until you clear your cache?
show your getURL code and do you have a popup blocker?
Button.onRelease = function()
no I dont have a pop up blocker
I have just found this
which appears that it only happens when the user has firefox as their default browser.
I have changed mine to IE to test and it works fine.
Only think is I dont really get the solution code
i thought you said it failed in both ie and firefox.
and the work-around is to use an absolute path.
It did not work until I changed my default browser to IE
I'm the author of the article you pointed out. I'm sincerely sorry that you found the solution code difficult to understand.
As kglad suggests, the problem is based on how Firefox handles the url that Flash Player gives to it. (Although you're using a relative url, behind the scenes Flash Player turns it into an absolute url, one that starts with "file:///c|/..." or something like that. (Firefox chokes on the pipe "|" character, even though it shouldn't.) The workaround code in my article just constructs an absolute url for you (using a colon ":" in place of the pipe character, as in "file:///c:/..."). When you pass the absolute url to the getURL() function, Flash Player passes it along to the browser unmodified, so Firefox gets it with a colon and doesn't choke.
I hope that helps make things clearer.
H. Paul Robertson
Platform Developer Documentation
Adobe Systems, Inc.
i thought that was a great article. congrats on a significant contribution.
Yes Thanks. That is alot clearer