The forums have permanently moved to forum.kirupa.com. This forum will be kept around in read-only mode for archival purposes. To learn how to continue using your existing account on the new forums, check out this thread.


Results 1 to 2 of 2

Thread: Flash CS3 ,AS3, Button Hyperlink Problem..Please Help

  1. #1

    Flash CS3 ,AS3, Button Hyperlink Problem..Please Help

    Hi guys,
    well just to let u guys now, i'm very new to flash,
    i'm trying to create a basic website with help from some notes on the web...
    The Problem i'm having is with creating buttons...
    i created a rectangle....converted it to button...then changed the color when it goes to over and down situation...but when i add text to the button and then hyperlinked that text ....the link work but when i rollover mouse on my text the color does not change and when i rollover my mouse on button the color changes but the link don't work........

    so i searched online ...the only thing i found was the following code from http://flashgameu.com/ask_gary here's the link to code below:
    http://flashgameu.com/ask_gary/ask_g...n_as3_way.html
    here's the code:
    Code:
    myButton.addEventListener(MouseEvent.CLICK, myButtonFunction);
    function myButtonFunction(event: MouseEvent) {
    var request:URLRequest = new URLRequest("http://flashgameu.com");
    navigateToURL(request);
    }
    There are 2 main problems with the above code:
    1. in this code i don't know where to add " _self " so it will open in same window...
    2. this code only work when testing movie ...when published buttons stop working....

    using flash cs3, windows vista and IE7

  2. #2
    Well, I'm not an expert either, but I just normally put the text inside my button, on the up and over state, then I hyperlink the button itself by clicking on the button on the stage, then adding your link via actionscript.

    When you add it to your site via html (or however) I think you could add the alt name in and it should still be indexed on the search engines.

    I've found that if you try to link it html, it adds a "hotspot" (for lack of better word) for the mouseover and it seems to cover up your flash mouseover affect.

    Hope this makes sense.

    Someone correct me if this is wrong.
    Last edited by crittle1; March 2nd, 2008 at 04:26 PM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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

Home About kirupa.com Meet the Moderators Advertise

 Link to Us

 Credits

Copyright 1999 - 2012