Results 1 to 2 of 2

Thread: flash button problem

  1. #1
    Join Date
    Oct 2007
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default flash button problem

    Hi guys,
    I'm having a problem with my button.
    I'm not quite sure how to explain it in words. I'm very bad in explaining stuffs. haha

    ANyway I'll try
    So. I have 2buttons ( ON button and Off Button ) in 1 movie clip and those 2 buttons link to another URL.
    And it seems the button doesnt work and link properly.

    Here's the script :
    ON button :
    on (release) {
    getURL("index.php?do=ONHome","_self");
    }


    OFF Button :
    on (release) {
    getURL("index.php?do=OFFHome","_self");
    }


    another script in the movie clip is
    stop();

    this.onEnterFrame = function() {

    if (rewind == true) {

    prevFrame();

    }

    };
    this.onRollOver = function() {

    rewind = false;
    play();

    };
    this.onRollOut = function() {

    rewind = true;

    };

    I guess I shuld attach the file here to give a better understanding
    Any help would be very much appreciated

    Thx

  2. #2
    Join Date
    Aug 2005
    Location
    Other Side of My Monitor
    Posts
    3,494
    Thanks
    5
    Thanked 105 Times in 104 Posts
    Blog Entries
    1

    Default

    If you linking to another URL you need to use absolute not relative.

    Code:
    on (release) {
    getURL("http://nameofsite.com/index.php?do=ONHome","_self");
    }
    You should always use absolute URLs anyway. Also you need to set up the linkage (right click on button name in the library, select "linkage.." and check the box next to "Export for action script")
    {CWoT - Riddle } {Freelance Copywriter} {Learn to Write}
    Follow Me on Twitter: @InkingHubris
    PHP Code:
    $result mysql_query("SELECT finger FROM hand WHERE id=3");
    echo 
    $result

Bookmarks

Posting Permissions

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