Flash buttons

Discussion in 'Web Design & Coding' started by Core, Jun 30, 2009.

  1. Core

    Core in pounce mode Moderator

    Joined:
    Jun 30, 2003
    Messages:
    1,557
    Location:
    Akaa, Finland
    I'm new to Flash. I am working with a Flash template and trying to edit it; I've found this to be the most effective way for me to learn stuff.

    The template has some buttons but they are not associated with anything. They are just set to do a motion (movie, essentially) when cursor hovers over them. I would like to use a getURL function somehow to load a URL of my choice when I click on the button.

    However I haven't been able to figure out how to code it. Currently the buttons just have this in Actions:
    Code:
    on (rollOver) {
        gotoAndPlay(2);
    }
    on (rollOut) {
        gotoAndPlay(11);
    }
    What should I add to this to get the desired effect?
     
    Core, Jun 30, 2009
    #1
    1. Advertisements

  2. Core

    danperteet I broke it again. VIP Member

    Joined:
    Dec 17, 2008
    Messages:
    221
    Location:
    Georgia
    you need to look into some actionscript tutorials. Actionscript is what makes the actions happen in flash. what version of flash you are using would determine what version of actionscript your using. Back when I used mx 2004 it was as2. in cs3 its as3.
     
    danperteet, Jun 30, 2009
    #2
    1. Advertisements

  3. Core

    Core in pounce mode Moderator

    Joined:
    Jun 30, 2003
    Messages:
    1,557
    Location:
    Akaa, Finland
    Well it said online that for CS3 I need to use navigateToURL instead of GetURL.

    This is what I have now, I found it from an AS3 tutorial but it doesn't work:

    Code:
    on (rollOver) {
        gotoAndPlay(2);
    }
    on (rollOut) {
        gotoAndPlay(11);
    }
    on (release) {
    navigateToURL("www.salakka.com","_self");
    }
     
    Core, Jun 30, 2009
    #3
  4. Core

    danperteet I broke it again. VIP Member

    Joined:
    Dec 17, 2008
    Messages:
    221
    Location:
    Georgia
    I will look into it tomorrow afternoon and see what I can find. I've been looking for a reason to use flash again. I'll either post my findings tomorrow or Wednesday. Sorry I can't help you right now but I have alot to do before 2:30a.m. and it's 10:01p.m. right now.
     
    danperteet, Jun 30, 2009
    #4
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. vishnu

    setting mouse buttons

    vishnu, Feb 1, 2005, in forum: Hardware
    Replies:
    10
    Views:
    1,405
    richbtwo
    Feb 5, 2005
  2. binarysoul

    Customizing mouse buttons

    binarysoul, Jul 3, 2006, in forum: Hardware
    Replies:
    3
    Views:
    1,431
    Goober
    Jul 3, 2006
  3. Dennis Reinhardt

    Home-screen buttons

    Dennis Reinhardt, Jun 11, 2009, in forum: iPhone
    Replies:
    5
    Views:
    314
    Michelle Steiner
    Jun 13, 2009
  4. Nick
    Replies:
    0
    Views:
    394
  5. steam3801
    Replies:
    0
    Views:
    407
    steam3801
    Nov 14, 2006
  6. Colin
    Replies:
    0
    Views:
    394
    Colin
    Nov 14, 2006
  7. Fred
    Replies:
    1
    Views:
    482
  8. DJMick

    Recovery process buttons

    DJMick, Sep 13, 2007, in forum: Computing
    Replies:
    0
    Views:
    278
    DJMick
    Sep 13, 2007
Loading...