A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: flash button command "hit" doesnt work

  1. #1
    Junior Member
    Join Date
    Sep 2013
    Posts
    4

    flash button command "hit" doesnt work

    hi everyone,
    for some reason when im making a button and want to make the "hit" an website
    it doesnt work, iv tried to make the button movie clip and within make the action scrpit but with no success,

    im putting the file iv been working on to see if anyone know how to fix it,
    its really frustrating

    http://www.2shared.com/file/VaurXpH7/rayman_banner.html

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

    Give your Rayman clip a name, in this case "movieClip_6" no quotes, then put the following code on the main timeline, maybe the same layer as the Rayman logo.
    PHP Code:
    movieClip_6.addEventListener(MouseEvent.CLICKfl_ClickToGoToWebPage_15);

    function 
    fl_ClickToGoToWebPage_15(e:MouseEvent):void
    {
        
    navigateToURL(new URLRequest("http://rayman.ubi.com/legends/en-gb/home/index.aspx" ), "_blank" );

    You missed off some quotation marks on the URL and I'm not even sure where you put the original code or why it was there, but it was not firing.

  3. #3
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    hi thanks for answering,
    iv tried it and it still doesnt work,

    could you do it in the file iv made and upload it so i can see the problem im making?

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

    No I can't sorry, However you can strip the file down to just the necessary bits that need the link and post another link, that was about 14mb, then I could possibly do it.

  5. #5
    Junior Member
    Join Date
    Sep 2013
    Posts
    4
    okay i made it work, thanks a bunch!
    could you also tell me how to do it for gotoandstop script?

    or is there a website for scrpits?

    again, thanks a ton!

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