Linking a URL to a button in Flash

I am building a website and the top navigation is in Flash. Each button links to a HTML page. My problem is that when each button is clicked it jumps to the wrong page and I can't figure out why as the URL links are correct. The buttons are movieclips if that makes any difference...
Here is a sample of the code I'm using for my buttons:
onClipEvent (mouseUp){
    getURL("index.php","_self","GET");
I have also tried using:
onClipEvent (mouseDown){
     getURL("index.php","_self");
... But it doesn't work either. Any help would be fantastic as I'm starting to pull my hair out with this thing!

I have also tried:
onClipEvent (enterFrame){
    this.mouseDown = function() {
        getURL("index.php","_self");
With no success...

Similar Messages

  • How to link an image to a button in Flash Builder 4

    I am new to Flash Builder 4 and have trouble to link an image to a button in Flash Builder 4.
    For example, I want an image of a round green button to replace the default retangle button in Flash Builder 4.
    Can anyone help me up?
    Thanks

    You could also use the mx:Image control and just add a click event handler:
    function(){return A.apply(null,[this].concat($A(arguments)))}
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx"
            width="500" height="400">
        <fx:Script>
            <![CDATA[
                import mx.controls.Alert;
                protected function image1_clickHandler(evt:MouseEvent):void {
                    Alert.show("You clicked the image");
            ]]>
        </fx:Script>
        <mx:Image source="http://helpexamples.com/flash/images/image1.jpg"
                click="image1_clickHandler(event);" />
    </s:Application>

  • Open a new link in html by clicking button in flash

    Hi,
    I'm facing problem while opening a new html window by
    clicking button created in flash.
    For this i don't want to write single code in flash but want
    to handle this through the html only.
    For this I have used <embed> tag to add swf file in
    html. but could not add click code in HTML on that button.
    Could any one help me out?

    This won't work. When you use the <object> and
    <embed> tags in the html document, you are giving over that
    part of the document to the codebase that you specify. This means
    that the browser will pay no attention to any direct action on that
    space in the document. Take a look at
    http://www.w3.org/TR/html401/struct/objects.html
    and
    http://devedge-temp.mozila.org/library/manuals/1998/htmlguide/tags14.html,
    for more information.

  • Open website url with buttons in flash

    i have a header built in a big flash file that i am using at
    the top of a website. i would like the buttons i put on the flash
    document to be able to open different pages of the document, if
    there is any codes in its simplest form to link a button to an
    outside link or url, out there please help me out. i am new to cs3
    and not really familiar with it but need to finish this
    asap.

    See:
    http://livedocs.adobe.com/flex/2/langref/flash/net/package.html#navigateToURL()

  • WDURLGenerator + link to URL via Button

    hi,
    i was searching this forum about the possibilities of the  WDURLGenerator.
    I need to link to a webpage via Button-Click.
    I set up an Button and corresponding action. In this action I simply want to call an URL (nice would also be a new window.
    Now I set up:
    WDURLGenerator.getWebResourceURL("http://www.<url>.de")
    do i have to also set up something like: wdThis.wdFirePlugUrl(url) ???
    thanx for help,
    matthias

    Matthias,
    No offence, here but:
    On the main WD forum screen just type your question in search box:
    open AND window AND url
    All the rest left as default.
    The very first hit!
    VS

  • Add URL to a button

    Alright I know this is gonna seem ridiculous, but I've done it a few times and something always goes buggar.. so using a button already made from a template the code is this:
    onClipEvent (load) {
         num = 5;
         link_num = _root.getMenuSystemOrder(num-1);
    on (rollOver) {
         if (_root.link<>link_num) {
              this.gotoAndPlay("s1");
    on (releaseOutside, rollOut) {
         if (_root.link<>link_num) {
              this.gotoAndPlay("s2");
    on (release) {
         if (_root.link<>link_num and _root.animation == 1) {
              _root.animation = 0;
              _root.link_prev = _root.link;
              if (_root.link != _root.pagesReadMoreFrame) {
                   _parent["item"+_root.getMenuPreviousLink(_root.link)].gotoAndPlay("s2");
              _root.link = link_num;
              _root.play();
    I want to make this button instead of a link to a page inside of the flash, I want it to be a link to an outside URL. Ex: google.com. (While Keeping the animations and such) I dont understand all the root.link<> and pagesReadMore etc.  BTW I want the page to load in the browser, NOT inside the flash / frame.
    Thanks in advance!
    Edit: This template also uses an outside source of a XML file.  would it be possible to change the link in the XML for ease / future changes, or does it need to be done in the flash script?  This is the XML script: (Shortened)
    <link systemOrder="5"><![CDATA[
    <font face="standard 07_56">CONTACTS</font>
    ]]></link>
    -- Continued further down in XML: --
    <page name="CONTACTS">
    <texts>
    <pageText><![CDATA[
    ]]></pageText>
    </texts>
    </page>
    Message was edited by: SalvationD

    Alright my bad, basically I just want a button to take me to the forum part of my website, no new browser loaded.  Just the button takes me to a URL instead of the code listed (which is an embedded page inside of the flash).  I don't know where to put in the getURL or whatever is needed.
    Currently when I click button 5 it takes me to a mini flash page, which is listed in the code I posted.  Instead I want the button to take me to a custom URL example: http://www.*****.com/forum

  • Captivate 4 Open url from a button not working?

    Hi All,
    I have published a scorm course from captivate 4 and have installed to our servers. I would like to have a link to a document that is online (.doc) but whenever I click the transparent button it starts to load, opens a window (which has the correct title name) but then disappears with no warning or error message.
    The link resides behind a transparent button, and has the settings On Success open url or file in a new window.  I know the problem is not specific to this document because I have had the same problem with a completly different online file location in the past.
    Please Help!!
    Many thanks in advance.
    Chris Maile

    Hi there
    Please send me a private E-Mail message to rstone75 (at) kc (dot) rr (dot) com and advise of the exact file name of the file you are linking to.
    I'll send you back a file that you can use to test and see if the link works.
    Cheers... Rick
    Helpful and Handy Links
    Captivate Wish Form/Bug Reporting Form
    Adobe Certified Captivate Training
    SorcerStone Blog
    Captivate eBooks

  • Links to URLs don't work in published file - Captivate 4

    In Captivate 4, my links to URLs do not work in my published file.  I am rolling this out via email to a small number of people.

    Hi there
    Likely you will need to ask each user to configure their list of Trusted Locations for the Flash Player to allow your Captivate to operate the URLs.
    Here is a small tutorial on configuring the trusted locations:
    Click here to view
    Cheers... Rick

  • Get Url doesnt work in my flash .swf page

    Get url doesnt work in my flash .swf page
    www.wackyworld.biz/north.swf
    click on the building is supposed to go to a site. I made all the buildings symbols and when i hit f9 the actions window opens i put
    on bowling building
    on (Release)
    get URL (http://wackyworld.biz/bowling/bowling.html", "_self ") ;
    why when i click on the buildings they dont work? can someone download the file and convert it to fla and tell me what im doing wrong?
    Brent
    Message was edited by: crashncrazy

    i did click on the button and then put in the code.
    on (release)
         "getURL" (http://www.wackyworld.biz/bowling/bowling.html, "_self");
    like this?
    if so this is what i have. still no way to click on button on site

  • URGENT: pass parameters from report to report without usting a link or URL

    HI.
    I want to send an ID field from a report to a report (like master-detail) and that should be done by pressing the next or previous button. So, not with a LINK or URL link.
    Is that possible? I used the wwsto_api_session package in several ways, but no luck so far.
    Thanks,
    Paul.

    If your requirement is to provide buttons that take the users to another report, you have to do the following:
    In your source report (report A), create a form containing a button. Use hidden fields for the parameters you have to pass to the target report (report B).
    You'd need to base your report A on a SELECT statement. One of the columns in the SELECT statement can be a string where you actually construct the entire HTML form, something like:
    SELECT ...., '<form action=... method=post> ... ' FROM ...Hope this helps.

  • Issue linking external URL's in task list

    When I link a URL to a task list, a pop-up at the bottom of the screen saying "Only secure content is displayed" with a button saying "Show all content"
    When I select "Show all content" an Internet Explorer pop-up appears asking to either "Leave this page" or "Stay on this page."
    Selecting "Stay on this page" does nothing, but selecting "Leave this page" logs me out of Planning. When I log back in, the web page appears when I click on the task list.
    When I log off and close my browser, I have to go through the same steps.
    Is there any way to have the URL task list work without having to go through those steps? Is this an IE security setting?
    Thank you in advance for any input.
    Tiffany

    What URL are you using, is that an FR or WA report? If so check this Oracle - Hyperion Labs......: Generate Smartcuts for all objects under a folder
    Regards
    Celvin

  • Linking a pdf to a button

    I'm completely new to flash and have figured out most of the basic features on my own thus far, but I'm completely stumped with this one issue of linking a pdf to a button.  I have read and reread all the postings on how to do this, but my button is not working still.  I'm using Flash CS5.
    I've used the recommended code on code snippet, I've used codes that were recommended and I've tweaked it, but it still not opening my pdf.
    here is the current code that I am using.  this is from the code snippet.  I've used this code to get my different scenes and it works, don't know why I'm having such a hard time with this. 
    AppPage_IndividualUSDoc.addEventListener(MouseEvent.CLICK, fl_ClickToNavigateToPDF_5);
    function fl_ClickToNavigateToPDF_5(event:MouseEvent):void
              navigateToURL(new URLRequest("APP_IND_US.pdf"), "_blank");

    you are awesome...thanks for you help. 
    import flash.events.MouseEvent;
    import flash.net.URLRequest;
    /* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Nominations_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_12);
    function fl_ClickToGoToScene_12(event:MouseEvent):void
              MovieClip(this.root).gotoAndStop(1, "NOMINATIONS");
    /* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Foundations_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_13);
    function fl_ClickToGoToScene_13(event:MouseEvent):void
              MovieClip(this.root).gotoAndStop(1, "FOUNDATION");
    /* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Programs_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_14);
    function fl_ClickToGoToScene_14(event:MouseEvent):void
              MovieClip(this.root).gotoAndStop(1, "PROGRAMS");
    /* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    Contact_Us_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_15);
    function fl_ClickToGoToScene_15(event:MouseEvent):void
              MovieClip(this.root).gotoAndStop(1, "Contact Page");
    /* Click to Go to Scene and Play
    Clicking on the specified symbol instance plays the movie from the specified scene and frame.
    Instructions:
    1. Replace "Scene 3" with the name of the scene you would like play.
    2. Replace 1 with the frame number you would like the movie to play from in the specified scene.
    HOME_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToGoToScene_30);
    function fl_ClickToGoToScene_30(event:MouseEvent):void
              MovieClip(this.root).gotoAndStop(1, "MAIN PAGE");
    AppPage_IndividualUS_BTN.addEventListener(MouseEvent.CLICK, fl_ClickToNavigateToPDF_5);
              function fl_ClickToNavigateToPDF_5(event:MouseEvent):void
    trace("called");
              navigateToURL(new URLRequest("APP_IND_US.pdf"), "_blank");

  • FAQ: How do I create buttons in Flash Pro?

    There are many different kinds of buttons that can be made in Flash Pro and different ways of creating them.
    Start here: Flash Pro Help > Creating buttons. This article describes the options and provides links to approved videos and tutorials.
    Be aware that all buttons in Flash Pro require at least some ActionScript code.
    For buttons made with the "Button" symbol type, these links provide detailed instructions:
    Video: Creating Buttons (Length: 9:16, tv.adobe.com)
    Video: Button symbols and interactivity in Flash CS4 (Includes some ActionScript 3.0, tv.adobe.com)
    Tutorial: Button symbols in Flash (Includes some ActionScript 3.0, Kirupa.com)
    Example: Animation portfolio piece (Flash Professional) (Adobe.com)
    Example: ActionScript 3.0 for a button to open a web page (Flashthusiast.com)
    Example: ActionScript 2.0 for a button to open an web page (Adobe.com)
    Example: ActionScript 3.0 for buttons to jump to different scenes in the Timeline (Flashthusiast.com)
    Example: ActionScript 3.0 for multiple buttons on the Stage at the same time (Flashthusiast.com)
    TechNote: How to create a simple button (Adobe.com)
    For buttons made with a movie clip symbol, these links provide detailed instructions:
    Tutorial: Movie Clip Buttons (ActionScript 3.0, Schoolofflash.com)
    Video: Creating a Movie Clip Button (ActionScript 2.0, Kirupa.com)

    Is you use the first option, "The field is the product of the following fields:" you should see a result. Just make sure the fields you want multiplied or selected.
    The following links show how to create calculations in various ways.
    How to use basic calculations in PDF forms
    How to do (not so simple) form calculations

  • Creating buttons within Flash for IE7

    When creating buttons with links to URLs I have encountered a
    problem with the buttons not working in IE7, yet they work in IE6
    and Firefox... I used a simple on release go to behavior... on
    (release) {
    //Goto Webpage Behavior
    getURL("
    http://heritagelife.org/connect.html","_self");
    //End Behavior
    our homepage is at
    http://heritagelife.org
    Any ideas?
    Thanks, Ann

    If it is the actionscript that you are not familiar with then what you do is assign a unqiue instance name to your button when you place it on the stage and then assign code to it... say you gave the button an instance name of "contact_btn"  THen in the actions layer in the frame where that button is (different lasyer) you would code...
    contact_btn.onRelease = function(){
         getURL("http://...your pageurl");
    If that is not what you are looking for, you have lost me.

  • How to find the Destination URL of a Button

    I have a text field and a GO button,when I click on the GO button the information from the text field to the URL on the button.
    I want to replicate the same thing on another GO button.
    Basically I need the URI on the seeded GGO button.
    Document:/oracle/apps/cs/knowledge/solution/search/webui/SolBSearchHeaderRN
    Region:SearchCriteriaRN

    what do you mean when you say
    "when I click on the GO button the information from the text field to the URL on the button"
    Do you mean that you see the link of the button as something when you hover over it and it has the value of text field appended to the link ?
    If that is the case, this may not be a simple go button and could be a submit button instead of a simple button.
    Thanks
    Tapash

Maybe you are looking for

  • Question about n:1 relation

    Hi, I have a question. If I have two persistence classes (say A and B)with n:1 relation. The B class has a collection that should contain all the instances of A class that reference the B class instance. The question is: If I create the instance of B

  • Prevent Text Boxes to shrink as big as the text in it - move existing InfoPath form from SharePoint 2007 to SP2013

    Hello Together, we have some simple InfoPath forms in place. With SharePint 2007 they are working well. Now we will move to SharePoint 2013. It was easy to re-publish them on a SharePoint 2013 Site and to work with, but i have an optical / technical

  • Image Quality of Slideshow When Exported for YouTube

    I have attempted several slideshows using A3 and the export quality I find is rather poor. The resulting file is an M4V. Is this a common problem or should I be looking at another form of creating/exporting the slideshow? Play back in A3 has excellen

  • Unable to update - Download error (49)

    Indesign and Bridge happily update, but Photoshop and Premiere continually get this error. Connected to the internet and no issues on any other site or transferring large files.. Any ideas?

  • 'Green Screen' Special Effects with iSight & iMovie?

    I need to record a short (30 - second) movie of just me talking. I thought I would record it with my iSight camera & Quicktime. If I use a green screen. . .can I swap in a different background in iMovie? If I can, does anyone have a good idea for a h