A Flash Developer Resource Site

Results 1 to 17 of 17

Thread: is getURL deprecated in AS 2?

  1. #1
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389

    is getURL deprecated in AS 2?

    Good morning,

    I'm using it in another clip much the same way as this, and the example doesn't function if I run it alone in a new file like this:

    Code:
    button.onPress = function():Void{
    getURL("mailto:mymailadress@gmail.com");
    }

  2. #2
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi Cap,

    Publish the html file with it and test it through that, it will now work.

  3. #3
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Hi, good day, Fruit. It isn't working. Did that as well.

  4. #4
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi,

    well post the *.fla then sir

  5. #5
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    will do that, FruitBeard.

    I'm trying to make a skeleton version of my file but it's still too big.



    The code I have for it is:

    backGround["mainMenuButton" + 16].onRelease = function():Void
    {
    getURL("mailto:jpuigmiquel@gmail.com");
    };

    it isn't working in swf nor html preview, not in my site, at least not for me.

  6. #6
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    You're doing a mailto. That's not a regular url. Mailto asks the browser to create an email addressed to the address given. You have to pass the rules for each browser.

  7. #7
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Hi and thanks, Fruit,

    but this used to work in the previous version of my page.

    I have just tried it in the regular explorer and it asks me for permission to open up a browser, so I may have some configuration problem in my chrome browser?
    Last edited by capdetrons; 04-26-2014 at 05:28 AM.

  8. #8
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi Cap,

    Well I hope you get it to work, about half way down the page in the link http://help.adobe.com/en_US/as2/refe...c47f-7fc9.html

    I don't use chrome, it probably gathers more data about you than facebook or the nsa
    Last edited by fruitbeard; 04-26-2014 at 05:55 AM.

  9. #9
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Thanks for the link, Fruit.

    It just won't work.

  10. #10
    Designer, Programmer, Musician angelhdz's Avatar
    Join Date
    Mar 2010
    Posts
    971
    You have to disable any popup blocker plugin in chrome like AdBlock. Try again. Hope that helps.
    Already mastering AS3. It was so fun. Now into Javascript and PHP and all its libraries

  11. #11
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Hi, thanks Angel,

    tried allowing all popups but it hasn't worked.

    I'm attaching screenshots of my google settings. I can't seem to find what it could be.Attachment 74879Attachment 74881Attachment 74883

    any other idea?

  12. #12
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi cap,

    I know it works on your site as I pressed the mail me link (firefox), this might be what you are looking for - http://stackoverflow.com/questions/1...ork-in-firefox

  13. #13
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Thanks, Fruit, as long as it works for others, it's OK. I'd just like it to work on mine as well though and I'd like to try to find the solution before restoring my PC again. It's a bummer...

    I found this Attachment 74885from the link you sent me, I appreciate it but I don't seem to find that button.

    Would there be different chrome versions ? THis is what my screen looks like: Attachment 74887

  14. #14
    . fruitbeard's Avatar
    Join Date
    Oct 2011
    Posts
    1,780
    Hi Cap,

    Sorry I don't use Chrome at all, it looks like you found the right area though, perhaps restart Chrome after you changed the settings, other than that I can not help you with the Chrome part.

  15. #15
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    You're right I never restarted it. Thanks,

    have a good day

  16. #16
    Senior Member
    Join Date
    Nov 2001
    Posts
    1,145
    If you're trying to test for users, you have to use default settings. Uninstall and reinstall chrome if there isn't a clear way to restore the settings.

    This is one of those things you shouldn't spend any time on. If you want to get into this stuff - browser behaviors/security, you can, but it's endless. Once you learn what you need to, you have to constantly stay updated on changes.

    Having users click on an email address to open their email client is not a good experience when it works perfectly. If you're trying to get a user to give you information, just get the information.

  17. #17
    Senior Member
    Join Date
    Jan 2007
    Location
    Barcelona
    Posts
    389
    Thanks, so it seems...

    I've just restarted chrome and it still doesn't work. It did on internet explorer partially asking me for permission to open a new tab but it then redirected me to google's main page.

    I am giving up on it. I guess I'll wait until I have a chance to get myself a domain and avoid headaches.

    Thanks though

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