Linking a MovieClip button to a URL?

Hello all,
I have recently followed a Adobe Flash tutorial, which has helped me make MovieClip buttons which extend to the left when hovered over.
This tutorial can be found here:
http://www.schoolofflash.com/2008/05/flash-cs3-tutorial-movie-clip-buttons/
An example and download link for the project is at the bottom of that page.
Everything on the tutorial went fine, but now I am trying to work out how to make these MovieClip buttons link to another URL.
What code do I need to do this, and where do I need to put it?
Any help is appriciated, I am using Flash version CS5.5
Thanks,
Vanilla

Below is the Code to load an url
btn_mc.addEventListener(MouseEvent.CLICK,onButtonClick);
function onButtonClick(e:MouseEvent):void{
    var request:URLRequest = new URLRequest("http://www.foundation-flash.com/");
    navigateToURL(request);

Similar Messages

  • Linking buttons to a URL

    I am tring to make a flash web site and i got stuck. i need
    to knew how to link a button to a URL. i resently switched to Flash
    CS3 but i am having to save all of my file as flash 8 files to get
    the action script to work. i usauly use AS1&2 i tried switching
    to AS1&2 in the CS3 file format but that did not work. So i
    need to now how to do it in AS1&2 fomat. Also if you now how to
    do AS3 code for buttons and sutch, i could really use some help.
    Thanks. <3

    use the Code below :
    replace your address with " YOR URL ADDRESS ".
    on(press) {
    getURL("YOR URL ADDRESS", _self);
    }

  • How to make a movie clip button into a url link?

    Hello,
    I'm kinda new to using Flash and am trying to edit a template for a friend of mine, the problem is I'm trying to add a url link to the buttons. I tried adding this action to the button
    on(release){
    getURL(http://www.yoururl.com.);
    I saved as swf & got this error msg in the compiler errors: Symbol=but1,layer 4, frame=1 Mouse events are only for button instances
    In the library I checked the properties of the button and its a movies clip, I'm not sure if it will make any difference if I change to button or graphic?
    I would like to upload the fla and swf files but this forum doesn't seem to allow me to attach files to messages.
    Does anyone know how to do this? Any help is greatly appreciated.
    http://jaedenyoo.com

    Unfortunately that doesn't seem to be the problem, I checked and
    in my flash file its typed correctly.

  • Clicking on any hyper link or submit button shows a 'failure to load' URL message in the console in IE11

    Hi
    I am getting a console error message 'failure to load' while clicked on any hyperlink or submit button. This is only occurring in IE11 browser. why this is happening
    please find the attached screenshots from below url.
    http://screencast.com/t/BoUad8Vy
     and also there is open thread in "asp.net" forum. below is the url for the discussion.
    http://forums.asp.net/p/2022919/5820962.aspx?Clicking+on+any+hyper+link+or+submit+button+shows+a+failure+to+load+URL
    Thanks
    Pradeep

    Hi Viorel
    Thanks for your response,
    This is occurring in most of the websites and also you can observe the same error in "http://msdn.microsoft.com/ie" and you can observe it in IE11 browser only. please check the attached screenshot. ( http://screencast.com/t/jBez3nNpbfF )
    I have checked with different machine and get the same issue. i think my
    Internet Explorer is up to date, you can also check it once by enabling the console (F12).
    Best Regards
    Pradeep

  • Please add a "link" or "share" button to replies / answers for easier referencing and linking.

    Currently, the only ways to link to a specific reply or answer are:
    Hunt through the poster's activity page and look for the link to the post in question, or
    Inspect the post's HTML, extract the ID from the enclosing <li> tag, then manually construct the URL by adding it as an anchor to the top level URL.
    Example: https://social.microsoft.com/Forums/en-US/4fb9d481-741f-49ea-9059-ff1757ead511#b7e0c275-0645-4c3b-a314-480cb89ef04c was
    constructed using method 2. See that link for a discussion related to this topic.
    These both stink. A forum, especially one as full of information and as frequently cited as this one, really ought to have an easier way to link to specific replies.
    Please add a "link" or "share" button (or something similar) that generates a URL that links directly to the post. Perhaps it could go down next to the action links (reply, quote, etc) or over near the vote button.
    If one exists, I apologize but I have not been able to find it (and at least one moderator - the one who replied in the example link I just posted - is also unaware of it). This forum has been around long enough that I'm a bit surprised it does not have
    this yet.
    Thanks,
    Jason

    Sorry,  not possible.
    I want to correct myself. There is an old "hack" that still seems to work, which is to create a link to a file, but instead of pointing it to a file you point it to a folder. But Acrobat only lets you select a folder when you create such a link, so how to do it? Create a Word document with such a hyperlink and then use the PDFMaker plugin to convert the file to a PDF. This side-steps the Acrobat limitation and gives you a link to a folder, which when clicked will open it in Windows Explorer.
    As I said, it's a bit of a hack and it's possible it will stop working if Adobe ever decides to block it, so use it with care.

  • Add a link to a button

    Hi Guys,
    I am having problems trying to add a link to a button and it doesn't work.
    I converted a graphic to button and added the link to the button and when I tested the page show up as a blank page.
    Please help..I haven't touched Flash like 10 years...seem to forget everything
    -Tai

    i used this codes and still not working..any ideas?
    btt_1.addEventListener(MouseEvent.MOUSE_UP, goLayersSite);
    function goLayersSite(Event)
    var site = new URLRequest(‘ http...‘);
    navigateToURL(site);
    [url modified by moderator]

  • Problems with a mailto link from a button

    Dear All,
    I am trying to create a mailto link from a button within a page which will also pass several variables. Everything is working well until it comes to generating the body of the message. I can generate content in the body but if I add a new line into it (using %0A or %0D) the link stops working. Remove the offending hex and it works fine. Does anyone know how to pass a new line within the body of a mailto link. For detail the link is shown below
    mailto:&P41_CUST_EMAIL.?subject=Quotation Feedback Request&body=Dear%20&P41_CUST_NAME.,%0A

    I need to do the exact same thing. How did you accomplish this. I tried putting the URL in the footer, but the values of the body keep showing the item name, and not the value of the item.
    do you get the button to work?
    I'm tried creating it through a button, but it just creates some garbage and a non working link.
    How did you build the body? I'm having issues building the body using processes.
    Edited by: ABD - DBA on Mar 9, 2009 3:15 PM

  • I want to create a link (or a button)

    I want to create a link (or a button) from a cell in one sheet in a spreadsheet to another cell in a second sheet in the same spreadsheet. Some people call it a Hyperlink in Excel. So what happens when you click on the cell in the 1st sheet it takes you to the specified cell in the second sheet.  Does anyone know how to do this? Or is there a way to do this.
    I am using Numbers V3.2
    And my operating system is osx 10.9.3

    Numbers can only (at this time) link to URL (on the internet) or a file on your computer NOT an anchor in the document.  There are not buttons in Number on Mac OS X.
    You can post feedback to Apple using the menu item "Numbers > Provide Numbers Feedback"
    SGIII posted an Applescript to jump between sheets so maybe a quick search for that would help you script this behavior by jump to specific text (anchors):
    see here:
    Table navigation
    .  You may also be able to use search if you leave text like "ANCHOR_JUMP1" and "ANCHOR_THING2".  Then you can search for "ANCHOR"

  • Links on Flash buttons ( CS3 )

    Hi pros and newbies ,
    I have a question regarding linking flash symbols /
    buttons.What I mean is : after creating dynamic / interactive
    symbol in Flash I want to add link to it so any help will be
    welcomed.Also , After inserting "Media Flash button" in dreamweaver
    and make a link on it - the browsers ask ( after cliking on it )
    what program they should open it with - ? Why don't the links open
    in new tabs after clicking on Flash buttons ? Thanks for any
    answers.

    So you have a button in Flash and you want it to take you to
    a url when clicking on it?
    Here is a quick example of how to do this by applying
    actionscript to the button itself. When you have the button on the
    stage, select it on the stage and then go into your Actions panel
    to add the actionscript code at the end of this post. You can view
    the FLA for this by downloading it
    here.
    Here is the actionscript which needs attached to your
    button:

  • MovieClip buttons inside a MovieClip button inside another MovieClip button

    I am trying to make a Portfolio of my study abroad experience and can get something right about the movie clip buttons inside each other. I have a button to click on titled "travel" and a window shows up with more movieclip buttons to organize different locations of pictures. I can click on the button to have to slide of pictures but nothing happens. I have the "turnOffAllButtons"  coding and  also have the coding for stay clicked, but I can't get the 3rd set to show up. what am i not doing?
    I don't have any errors or output comments showing up

    I have it working now. what I did, I make a slideshow setup (gotoAndStop(1);) in a specific frame and the code I put in for the next, didnt work.
    this is was I have now, without the "turnOffAllButtons" coding:
    Main Button (actions Layer):
    stop();
    travelButton_mc.buttonMode=true;
    travelButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizetravelButton);
    function colorizetravelButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      travelButton_mc.gotoAndPlay(2);
    travelButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizetravelButton);
    function decolorizetravelButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      travelButton_mc.gotoAndPlay(21);
    travelButton_mc.addEventListener(MouseEvent.CLICK, loadtravelLocations);
    function loadtravelLocations(givenEvent:MouseEvent){
      travelButton_mc.gotoAndStop(50);
      travelLocations_mc.gotoAndPlay(1);
    Inside the travelLocations_mc I have currently one button to show a slide of pictures, this is the second layer of buttoncode:
    stop();
    scotlandButton_mc.buttonMode=true;
    scotlandButton_mc.addEventListener(MouseEvent.ROLL_OVER, colorizescotlandButton);
    function colorizescotlandButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      scotlandButton_mc.gotoAndPlay(2);
    scotlandButton_mc.addEventListener(MouseEvent.ROLL_OUT, decolorizescotlandButton);
    function decolorizescotlandButton(givenEvent:MouseEvent){
      if (givenEvent.currentTarget.currentFrame != 50)
      scotlandButton_mc.gotoAndPlay(21);
    scotlandButton_mc.addEventListener(MouseEvent.CLICK, loadscotlandInfoPage);
    function loadscotlandInfoPage(givenEvent:MouseEvent){
      scotlandButton_mc.gotoAndStop(50);
      scotlandInfoPage_mc.gotoAndPlay(1);
    I turned the alpha up so you can see the mc that loads
    I currently have a keyframe at 60 with a code of stop(); so the travelLocations_mc will still
    does this make sense?

  • DW CS4: How to play a Flash Movie in a NEW window after clicking a link or a button on a page?

    Hi, using Adobe Dreamweaver CS4, I would like to have a link or a button on a webpage that when clicked will play a Flash Movie in a new window.
    Using the 'Insert Panel' > Media: FLV I managed to insert the .flv file on the page, but the movie plays 'in line' instead of in a new window. So far I can't find any 'Properties' or settings to change this behaviour. E.g. like Target _blank for opening e.g. a .pdf in a new Window.
    > Please help.
    Thank you!

    Try using one of the popular javascript methods for this. I use shadowbox and you can find examples, info and a download here: http://www.shadowbox-js.com

  • PDF form with buttons opens up URL with security warning window

    I have a short-lived process that renders PDF form with data merged. The data is in XML format. 
    The form buttons are assigned URL values when the form is opened. When I click on them,I get a Security warning prompting me to allow/block that site. When I click on 'Allow', I get a window of download statistics of the website that in the URL.
    This would be annoying to the end user. How I do I suppress the Security warning window as well as the download statistics window before the PDF is opened ? Can this be done either at the process design, form design stage or using Java APIs ?
    Thanks,
    Jyothi

    I have a short-lived process that renders PDF form with data merged. The data is in XML format. 
    The form buttons are assigned URL values when the form is opened. When I click on them,I get a Security warning prompting me to allow/block that site. When I click on 'Allow', I get a window of download statistics of the website that in the URL.
    This would be annoying to the end user. How I do I suppress the Security warning window as well as the download statistics window before the PDF is opened ? Can this be done either at the process design, form design stage or using Java APIs ?
    Thanks,
    Jyothi

  • Linking a radio button to a text field in a pdf form

    Forgive my ignorance but does anyone know how to link a radio button to a text field in an Acobat pdf form?
    I have a series of 4 radio buttons. If you click on one of them I would like to activate a text field which you then have to fill in. In addition it would be good to have it so that if you don't click on the radio button you're not able to fill in the associated text box.
    I am a designer not a programmer so I don't know much about javascript. Can anyone help?
    Many thanks

    You might want to look at Hiding and Showing Form Fields by Thom Parker. You might also want to clear the text field when the radio button changes.

  • Movieclip button AS 2.0 help

    I have a movieclip button with up-over and out states
    plays fine but in the over state I need to have two more buttons
    1 button for each icon
    I need to make the hit state in one area with room for two I would guess invisible hit state only buttonds on top of the icons?
    how do I get two separate working buttons in there?
    any help?

    OK, after looking around I see what I need to do is have Nested Movieclips in a drop down menu.
    The drop down menu I made is here
    http://www.mediafire.com/?lynnkzjhkjt
    I think I may have been unclear in what I need to do but when you open the fla you see that the movieclip in the over state needs to have two separate buttons (or movieclips) acting as buttons so I can go to another frame. the mc/buttons shpuld have the hit states or target the two icons.
    I have tried everything as I did see some things for AS 3.0 but not for 2.0
    anybody?

  • While browsing in Releaselog, I can't open a new Tab from a link(Ctrl left button). It opens in the same Tab and has just started happening

    While browsing in Releaselog, I can't open a new Tab from a link(Ctrl left button). It opens in the same Tab and has just started happening this week. All other websites are ok.

    You're welcome

Maybe you are looking for