To register for an Internet.com membership to receive newsletters and white papers, use the Register button ABOVE.
To participate in the message forums BELOW, click here


A Flash Developer Resource Site

Go Back   Flash Kit Community Forums > Flash Help > Actionscript 3.0

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 08-10-2006, 02:12 AM   #1
monkey_magic
Member
 
Join Date: Sep 2005
Location: Canberra, Australia
Posts: 37
[RESOLVED] [FP9] getURL gone in Flash Player 9!!!

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.
__________________
-- Actionscript will set you free --
monkey_magic is offline   Reply With Quote
Old 08-10-2006, 02:22 AM   #2
PAlexC
Retired SCORM Guru
 
PAlexC's Avatar
 
Join Date: Nov 2000
Location: NJ
Posts: 1,385
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()
__________________
"What really bugs me is that my mom had the audacity to call Flash Kit a bunch of 'inept jack-asses'." - sk8Krog
...and now I have tape all over my face.

Last edited by PAlexC; 08-10-2006 at 02:27 AM.
PAlexC is offline   Reply With Quote
Old 08-10-2006, 02:36 AM   #3
gerbick
yes.supermod
 
gerbick's Avatar
 
Join Date: Jul 2000
Location: undecided.
Posts: 18,769
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.
__________________
[ π ] | removethelabels | iTalk Magazine | EpicMob... soon.
[ fk ] | Flashkit's FAQ/Rules | The Arena | Photography | [ ]
gerbick is offline   Reply With Quote
Old 08-10-2006, 06:19 AM   #4
tonypa
Moderator
 
tonypa's Avatar
 
Join Date: Jul 2001
Location: Estonia
Posts: 8,105
Quote:
Originally Posted by monkey_magic
We now have to use navigateToURL() for Player 9 functionality! How many thousands of movies does everyone else have to change???
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.
__________________
My games, Tile based tutorials, Vectors, Latest finished game Rowowor
tonypa is offline   Reply With Quote
Old 08-10-2006, 07:19 AM   #5
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
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.
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Old 08-16-2006, 07:03 PM   #6
jAQUAN
it's automatic
 
jAQUAN's Avatar
 
Join Date: Jul 2000
Location: NaN
Posts: 2,000
I need to test navigateToURL() on a movie built in F8. Do I have to use FLEX to do that?
__________________
I approve this message.
AS3SOURCE: @ @ @ @
SD | fk css | Believe the HYPE | I tweet.
jAQUAN is offline   Reply With Quote
Old 08-16-2006, 08:03 PM   #7
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
You can use the Flash 9 preview for that.
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Old 08-17-2006, 01:35 AM   #8
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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!
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 05:43 AM   #9
Fall_X
crossconscious
 
Join Date: Sep 2005
Location: Belgium
Posts: 1,186
Maybe you should try getURL() instead of geturl().
__________________
www.crossconscious.com
Fall_X is offline   Reply With Quote
Old 08-17-2006, 09:40 AM   #10
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 11:00 AM   #11
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
When you say "Flash player 9", what exactly are your publish settings?
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Old 08-17-2006, 02:30 PM   #12
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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!
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 02:34 PM   #13
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
getURL() should still work for regular web site URLs. What are you calling or doing exactly with getURL()?
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Old 08-17-2006, 02:41 PM   #14
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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
}
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 04:05 PM   #15
jAQUAN
it's automatic
 
jAQUAN's Avatar
 
Join Date: Jul 2000
Location: NaN
Posts: 2,000
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");
__________________
I approve this message.
AS3SOURCE: @ @ @ @
SD | fk css | Believe the HYPE | I tweet.
jAQUAN is offline   Reply With Quote
Old 08-17-2006, 04:26 PM   #16
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 04:45 PM   #17
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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);
}
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-17-2006, 05:53 PM   #18
knottyDJ
Senior Member
 
Join Date: Feb 2006
Location: Portland OR
Posts: 133
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?

Last edited by knottyDJ; 08-17-2006 at 06:20 PM.
knottyDJ is offline   Reply With Quote
Old 08-17-2006, 06:17 PM   #19
heidivandy
Member
 
Join Date: May 2004
Posts: 37
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.
__________________
heidivandy
heidivandy is offline   Reply With Quote
Old 08-18-2006, 12:11 AM   #20
cancerinform
Mod
 
cancerinform's Avatar
 
Join Date: Mar 2002
Location: press the picture...
Posts: 12,120
Ok, to demystify a myth. This is what I put in a movieclip:
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");
}
These are my publish settings.

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().
__________________

- The right of the People to create Flash movies shall not be infringed. -
| www.Flashscript.biz | Help a little girl, Ana, who has cancer. | Flashscript Biz Classes/Components | Flash-Model-View-Controller-Modul |
cancerinform is offline   Reply With Quote
Reply

Go Back   Flash Kit Community Forums > Flash Help > Actionscript 3.0

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:48 AM.


internet.commerce
Be a Commerce Partner
 »  »  »  »  »  »  »
 »  »  »  »  »  »
 

    

Acceptable Use Policy

internet.comMediabistrojusttechjobs.comGraphics.com

WebMediaBrands Corporate Info


Advertise | Newsletters | Feedback | Submit News

Legal Notices | Licensing | Permissions | Privacy Policy


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.