Results 1 to 3 of 3

Thread: Button code / beginner help

  1. #1

    Button code / beginner help

    HI there,
    Can anyone help a beginner: I have already tried various codes that I found by searching from the net but nothing seems to work...
    So I need to get a code for my flash CS3 button (which will sit in the website I am doing with Dreamweaver). I want to link the button "minni" to the file "minni.html" (i.e. just a link to another page on the website).
    Would really appreciate your help

  2. #2
    Code:
    import flash.net.*;
    import flash.events.MouseEvent;
    
    minni.addEventListener(MouseEvent.CLICK, onMouseClick);
    
    
    function onMouseClick(event:MouseEvent):void 
    {
      var url:String = "minni.html"; // this should be the absolute path of the webpage
      var req:URLRequest = new URLRequest(url);
      else navigateToURL(req, "_blank");
    }
    Hope it helps.

  3. #3

    Thank You!

    Thank you so much giobongio for your help, really appreciate it!! I got the buttons working now, although just one minor thing - had to take the 'else' out of else navigateToURL(req, "_blank");as flash was saying there was a 'syntax error'. Anyhow, could not of done it without you, so a big thank you!!

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