What's with the replacement of getURL() in Flash Player 9??
We now have to use navigateToURL() for Player 9 functionality! How many thousands of movies does everyone else have to change???
What the hell's next??
Not happy Adobe. :thumbsdow
Printable View
What's with the replacement of getURL() in Flash Player 9??
We now have to use navigateToURL() for Player 9 functionality! How many thousands of movies does everyone else have to change???
What the hell's next??
Not happy Adobe. :thumbsdow
Er, why would you have to go back and change your movie? FP9 still recognizes getURL, even if the "proper" AS3 method is different. The only big change I see regarding it is domain security:
http://www.adobe.com/cfusion/knowled...fm?id=50c1cf38
It actually looks like a major improvement when sending variables back to the server. And you can specify HTTP headers. It's not a replacement for getURL, just an advanced version of it for bigger tasks.
http://livedocs.macromedia.com/flex/...navigateToURL()
You sorta missed the help forums and went to the chat only Coffee Lounge forum instead.
Moved ya' back to where you could get an answer.
You do not need to change anything if the movie is exported for older version of FP. You would change to navigateToURL() only if you create F9 movie, but I cant see how there could be thousands of F9 movies around all using getURL.Quote:
Originally Posted by monkey_magic
If you want to open a javascript window with getURL (Flash 8) you need to use the ExternalInterface class. That is where getURL does not work any more.
I need to test navigateToURL() on a movie built in F8. Do I have to use FLEX to do that?
You can use the Flash 9 preview for that.
I am confused. I have created a movie in flash mx 2004 and embedded it into an html page using geturl(). I also tried navigatetourl(). I can't get either to work in flash player 9. I tried targeting "_blank" and nothing. I am not that advanced at scripting and could really use some help.
Thanks!
Maybe you should try getURL() instead of geturl().
sorry- I was typing too quickly. I tried getURL() and navigateToURL(). In Flash player 9 when you click the link, it turns into a circle with a slash and nothing happens.
Thanks
When you say "Flash player 9", what exactly are your publish settings?
My settings are :
Version- Flash Player 7
ActionScript version - ActionScript2
(the highest options in FlashMX04)
getURL worked fine when my browser plugin was flashplayer7.
Thanks a bunch!
getURL() should still work for regular web site URLs. What are you calling or doing exactly with getURL()?
I am just trying to open a mapquest link in another window
on (release) {
getURL("http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&pn1x=&a1x=&c1x=&s1x=&z1x =&un=m&cl=EN&qq=hltF3hzNT9tNhURP0HLlhh9UYBmHRqyBce g4Gkon14D8uewLk7pjHQ%253d%253d&ct=NA&rsres=1&1y=US &1ffi=&1l=&1g=&1pl=&1v=&1n=&1pn=&1a=&1c=&1s=&1z=&2 y=US&2ffi=&2l=&2g=&2pl=&2v=&2n=&2pn=&2a=194+West+A shland+Street&2c=doylestown&2s=pa&2z=&r=f", "_blank");
Thanks
}
getURL has a string length limit. Assign the string to a var and use that instead.
myLocation = "http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&pn1x=&a1x=&c1x=&s1x=&z1x =&un=m&cl=EN&qq=hltF3hzNT9tNhURP0HLlhh9UYBmHRqyBce g4Gkon14D8uew Lk7pjHQ%253d%253d&ct=NA&rsres=1&1y=US&1ffi=&1l=&1g =&1pl=&1v=&1n=&1pn=&1a=&1c=&1s=&1z=&2y=US&2ffi=&2l =&2g=&2pl=&2v=&2n=&2pn=&2a=194+West+Ashland+Street &2c=doylestown&2s=pa&2z=&r=f"
getURL(myLocation,"_blank");
Thanks... It works fine locally when I test the swf, but as soon as I embed the file in an HTML page (locally or on the web) the cursor turns into a "no" symbol as soon as I click the button. I am going crazy!!
Thanks
I was able to get the link to open in the existing window by deleting the target window name in the code( ie "_blank") But I still can't get it to open in a new browser window.
on (release) {
myLocation = "http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&pn1x=&a1x=&c1x=&s1x=&z1x =&un=m&cl=EN&qq=hltF3hzNT9tNhURP0HLlhh9UYBmHRqyBce g4Gkon14D8uew Lk7pjHQ%253d%253d&ct=NA&rsres=1&1y=US&1ffi=&1l=&1g =&1pl=&1v=&1n=&1pn=&1a=&1c=&1s=&1z=&2y=US&2ffi=&2l =&2g=&2pl=&2v=&2n=&2pn=&2a=194+West+Ashland+Street &2c=doylestown&2s=pa&2z=&r=f";
getURL(myLocation);
}
did you forget the _blank?
I actually was curious about this question myself, though I havent' dove into it yet, I just got a notice that the getURL method is not supported for the SCORM / LMS environment I create flash content for. was the navigateToURL method a solution to this type of problem?
anyone have a reference to some info discussing this change?
If I specify "_blank" I just get the "no"symbol when I click the link. The window remains the same. The only way I have been able to get the link to open at all, is without the window parameter, so I just deleted it from the code.I checked a site I had used getURL() on last year and the links no longer work in Flash Player 9. They also used the "_blank" window parameter. It just seems like I am missing something simple.
Thanks a bunch for your help!!
Thanks a bunch.
Ok, to demystify a myth. This is what I put in a movieclip:
These are my publish settings.PHP Code:on (release) {
getURL ("http://www.mapquest.com/directions/main.adp?go=1&do=nw&rmm=1&pn1x=&a1x=&c1x=&s1x=&z1x=&un=m&cl=EN&qq=hltF3hzNT9tNhURP0HLlhh9UYBmHRqyBceg4Gkon14D8uew Lk7pjHQ%253d%253d&ct=NA&rsres=1&1y=US&1ffi=&1l=&1g=&1pl=&1v=&1n=&1pn=&1a=&1c=&1s=&1z=&2y=US&2ffi=&2l=&2g=&2pl=&2v=&2n=&2pn=&2a=194+West+Ashland+Street&2c=doylestown&2s=pa&2z=&r=f", "_blank");
}
http://flashscript.biz/book/publish.gif
1. It will open a new window when test movie is done.
2. It will do nothing when the html is tested locally on the computer because of security reasons.
3. It will open a new browser window when it is uploaded on the server.
navigateToURL() will not work with these publish settings because it is ActionScript 3 syntax and replaces getURL(). :)
What version of flash are you using? Does this mean I have to upgrade to get my script to work?
Thanks!!
Do you have a popup blocker installed? google toolbar, ect?Quote:
Originally Posted by heidivandy
I'd check the Pop up blocker thing, because there's no reason why it shouldnt work.
I am using the Flash 9 preview. Since everybody here is talking about the Flash player 9 I have shown that getURL still works even the settings are 9 and AS1 or AS2 of course.Quote:
Originally Posted by heidivandy
You can set it to 7 or 8 and have player 9 installed and it would not make a difference.
I am going crazy. I closed all security programs and google toolbar. Still nothing. I tried it and it works in Netscape though. Could it be an IE 7 beta issue? that is the browser I am running.
Thanks
Have you done this?
http://board.flashkit.com/board/show...hlight=activeX
Thanks- I tried to install the patch and I got an error message telling me that it was not compatible with the version of IE I am running(7 beta 3)
After much frustration, I decided to use
on (release) {
getURL ("javascript:NewWindow=window.open()
and it works!
Thanks for all of your help!
I attempted many stabs in the dark trying to get a very old pre flash 8 version of a swf working (w IE7) and believe I have found something that will cover the "_self" case. After setting window.location.href with IE7 and escaping the double quotes as shown below I was only then able to successfully get this to work:
args = "?parm1=value";
baseURL ="http://mydomain.com";
getURL("javascript:window.location.href=\"" + baseURL + "MyServletName" + args + "\";");