A Flash Developer Resource Site

Page 1 of 2 12 LastLast
Results 1 to 20 of 28

Thread: [RESOLVED] [FP9] getURL gone in Flash Player 9!!!

  1. #1
    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 --

  2. #2
    Retired SCORM Guru PAlexC's Avatar
    Join Date
    Nov 2000
    Location
    NJ
    Posts
    1,387
    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()
    Last edited by PAlexC; 08-10-2006 at 01:27 AM.
    "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.

  3. #3
    supervillain gerbick's Avatar
    Join Date
    Jul 2000
    Location
    undecided.
    Posts
    18,987
    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.

    [ Hello ] | [ gerbick ] | [ Ω ]

  4. #4
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,223
    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.

  5. #5
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

  6. #6
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    I need to test navigateToURL() on a movie built in F8. Do I have to use FLEX to do that?

  7. #7
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    You can use the Flash 9 preview for that.
    - The right of the People to create Flash movies shall not be infringed. -

  8. #8
    Member
    Join Date
    May 2004
    Posts
    41
    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

  9. #9
    crossconscious
    Join Date
    Sep 2005
    Location
    Belgium
    Posts
    1,188
    Maybe you should try getURL() instead of geturl().

  10. #10
    Member
    Join Date
    May 2004
    Posts
    41
    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

  11. #11
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

  12. #12
    Member
    Join Date
    May 2004
    Posts
    41
    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

  13. #13
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

  14. #14
    Member
    Join Date
    May 2004
    Posts
    41
    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

  15. #15
    Total Universe Mod jAQUAN's Avatar
    Join Date
    Jul 2000
    Location
    Honolulu
    Posts
    2,429
    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");

  16. #16
    Member
    Join Date
    May 2004
    Posts
    41
    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

  17. #17
    Member
    Join Date
    May 2004
    Posts
    41
    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

  18. #18
    Senior Member
    Join Date
    Feb 2006
    Location
    Portland OR
    Posts
    138
    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 05:20 PM.

  19. #19
    Member
    Join Date
    May 2004
    Posts
    41
    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

  20. #20
    Senior Member cancerinform's Avatar
    Join Date
    Mar 2002
    Location
    press the picture...
    Posts
    13,448
    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. -

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center