Skip navigation
JEDean89
Currently Being Moderated

Flash button link AS 3.0

Jan 29, 2010 11:07 PM

I have a flash button link using actionscript 3.0. The animation is a fade in of a logo. The problem is that the button is only a link during the animation, ie. when the logo has fully faded in it stops becoming a link. Here is the actionscript code i am using, does anyone know where i am wrong? Thank you so much.

 

import flash.events.MouseEvent;
myButton.addEventListener(

MouseEvent.CLICK, myButtonFunction);
function myButtonFunction(event:MouseEvent):void {
var request:URLRequest = new URLRequest("http://flightswitch.com/home.html");
navigateToURL(request, "_self");
}
  • Currently Being Moderated
    Community Member
    Jan 29, 2010 11:38 PM

    Hi,

     

    If the logo animation is completely fade then the link is not enabled?

     

    Is it?

     

    Disable the logo button after it fade.

     

    Saransoft

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jan 30, 2010 12:46 AM

    Hi,

     

    Did u want to add the link to  the button after the fade stop?

     

    then call the function by the instance of the button.

     

    Saransoft

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jan 30, 2010 1:50 AM

    Hi,

     

    Set myButton to visible to all the frame in the flash document.

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jan 30, 2010 2:40 AM

    Hi,

     

    See the attached file.

     

    Saransoft

    Attachments:
    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jan 30, 2010 3:29 AM

    Hi,

     

    Could u send me the flash file..

     

    Saransoft

    |
    Mark as:
  • Currently Being Moderated
    Community Member
    Jan 30, 2010 5:05 AM

    Hi,

     

    Check out this attachment.

    Attachments:
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points