Flash MX - button link to iframe?

I have a HTML page with a created in Flash MX navigation bar. I would like to make the buttons open a URL in an iframe on the same page. The iframe is called simply "iframe".

I have read many forums and tried the suggested action a dozen scripts, but none works. A few examples below. Can someone please help me do the button open a url in iframe?

Examples that do not work:

on (release) {}
getURL (" http://www.whatever-target-page.htm", "iframe");
}

ANOTHER:

on (release) {}
getURL (" http://www.whatever-target-page.htm", "_iframe");
}

ANOTHER:

ANOTHER:

on (release) {}
getURL (" http://www.whatever-target-page.htm", target = "iframe");
}

ANOTHER:

on (release) {}
butoninstancename.onRelease = function() {}
getURL (" http://www.whatever-target-page.htm", "iframe");
};
}



Now is 01:12 and I've been at this since this afternoon. Some forums offer suggestions that do not work, and two said that it was not possible. It must be possible, isn't it? Can someone save my sanity?

Thank you

Jonathan

Jonathan,

> I have a HTML page with a bar of navigation, created in
> Flash MX. I would like to make the buttons open a
> URL in an iframe on the same page. The iframe is
> simply called 'iframe '.

Fair enough. :) It is probably better logic to name only iframe
something more descriptive, such as nav, or siteNav, but iframe is valid
name. When you say that this iframe is "called" 'iframe', what do you mean by
'called '? What HTML do you use?

> The examples that don't work:
>
> on (release) {}
> getURL (" http://www.whatever-target-page.htm", "iframe");
> }

The on() function is code of Flash 5-era. It still works very well, but it
must be connected directly to an object (such as a button) in order to work.
Today, it is more usual to put the code into keyframes. But assuming that
you've used on() correctly, the above code will get a named frame
'iframe '.<-- note="" the="" space="" character="" after="" the="" letter="">

> on (release) {}
> getURL (" http://www.whatever-target-page.htm", target = "iframe");
> }

Here, you still have this space after the 'e', but you're including
something outside the quote marks in the second parameter. The getURL()
function accepts up to three parameters, separated by commas and all
they must be strings. The second parameter * is * your target - it works
looks a lot like the HTML anchor tag - if you do not have to use the word
'target' here.

> ANOTHER:
>
> on (release) {}
> butoninstancename.onRelease = function() {}
> getURL (" http://www.whatever-target-page.htm", "iframe");
> };
> }

Here, you use the on() and the most recent (since Flash MX)
How to manage the events, that will not work. Due to the on()
function, this button does not need instance name – because it is clear
which button is intended to receive these instructions - so... I guess
Looks like you're mixing metaphors here. ;)

That said, your settings getURL() are on-site in this last example, so
revise your work like this:

on (release) {}
getURL (" http://www.whatever-target-page.htm", "iframe");
}

... and who should do it.

For some more details on the on() function, see this:

http://www.quip.net/blog/2006/Flash/museum-pieces-on-and-onClipEvent

David Stiller
Adobe Community Expert
Dev blog, http://www.quip.net/blog/
"Luck is the residue of good design."

Tags: Adobe Animate

Similar Questions

  • Text using FLash &amp; amp; Buttons links

    They have worked well in the past, but my web pages that use Flash buttons or text require two clicks of the mouse to make the links work.
    This problem occurred a few months ago and applies to all of my web pages, certain years facts and some very recent, although more recent pages do not use them, I don't know when this started as at first I thought it was just on my computer.

    www.kyteweb.NET/pooleharbour is an example - why the links takes two clicks - I am lost, received help with gratitude.

    Ron

    It is a problem well known in Internet Explorer 6 and 7. Does not affect other
    browsers.

    See
    http://en.Wikipedia.org/wiki/Eolas

    http://www.Adobe.com/devnet/ActiveContent/

    http://www.howtocreate.co.UK/noclicktoactivate.html

    Which version of Dreamweaver do you use?

    DW8.0.2 and CS3 contains an automatic fix in e UI.

    For any other version, try http://blog.deconcept.com/swfobject/

    --
    Concerning

    John Waller

  • flash button link?

    I'm also new to Flash. I made a Flash (Flash 8u) button that I put on my web page creation of Dreamweaver. I can export to Dreamweaver, but definitely miss me something. It's probably pretty simple, but I can't get the button to post a link to another file in my folder. The best I can do is have the GET touches a url, but it does this automatically when you open the web page that has the 'Flash' button on it. I want the Flash button to access the web page (or file would be better) only when the button is clicked. I tried different versions of the script action so that it can work, but obviously I didn't do something correctly. I do not understand very well write code. Any help is appreciated. Thank you.

    Thanks Rafiq and Dan I have figured this out. It seems that the name of my button was too long! Once I shortened and made sure I had one of your scripts entered correctly, it now works fine. I can't believe it took me days to figure this out. I guess it was reassuring to your answers to see where I went just so that I could get something to go wrong. Thanks again.

  • several URL for the button link

    I have a file flash loaded on more than 150 sites. The button in the file currently goes to a unique URL, but we develop the URL for the link for each site. How can I do this in a single flash file? I don't want to create 150 files flash with different links. Can I variables or something? I don't have much knowledge about this Yes please be patient with me.

    If you use flashvars or a query string of HTML code, you can use the following text in your swf file:

    navigateToURL (new URLRequest (this.root.loaderInfo.parameters.yourURLVariable));

    where yourURLVariable represents the name of the variable of flashvars

  • Help multiple button links Dreamweaver simpleviewer galleries

    I'm doing it:

    http://www.airtightinteractive.com/SimpleViewer/examples/multiple_galleries/gallery1/index .html

    and here is another good example

    http://www.designhousestudios.co.UK/sampleportfoliogallery/sampleportfolio.html

    on my page here:

    http://Peachtree-designs.com/

    This seems to be the code concerning different slide shows (he is the example of how Web page I want it to be):

    -----------------------------------------------------

    < div id = "header" >

    < a href = "... / gallery1/index.html" > 1 < /a > Gallery | "» < a href = "... / gallery2/index.html" > Gallery 2 < /a > ".

    < / div >

    " < div id ="flashcontent"> SimpleViewer requires JavaScript and the Flash Player. < a href =" http://www.Macromedia.com/go/getflashplayer/ "> download Flash.» < /a > < / div >

    < script type = "text/javascript" >

    ------------------------------------------------

    The slideshow of 'Simple' Viewer gives instructions on how to integrate simply and I did it successfully, a link is here if you want to check:

    http://www.airtightinteractive.com/SimpleViewer/examples/embedded/

    I have this job very well, but would like to integrate several galleries. The instruction of "simple" Viewer page to create several galleries, what just you said

    " ... To create several SimpleViewer galleries, make a copy of the entire file SimpleViewer Gallery for each gallery. Create your individual galleries, as usual. You can now create a menu page that links to the page index.html in each subfolder. Here is an example that contains a menu to navigate between the 2 SimpleViewer galleries. »

    My confusion is what the heck is a menu page. I ignored this all together and I tried looking at the code of the pages that give examples. in particular, the page which shows a download of html.


    But I do not understand how to link the buttons in Dreamweaver to create different slideshows. I put the four files slide show (print, illustration, logo, design) in my main HTML page. I guess the solution is to put the above code in for each slideshow/Gallery... do refers to each gallery my folder names, but then somehow the DW buttons link to these files.

    I will continue to search this and see if I can understand, but any input, advice or help would be very appreciated. If you would like to speak in terms laymans terms I'd appreciate it, I know that flash well but I am new to dreamweaver and not very good at codeing so I managed.

    Thanks a lot in advance, sorry this is so long.

    Sharon

    What do you mean when you say: "the four files slide show (print, illustration, logo, design) I put it in my main HTML page. "? ".

    My intuition will in interpretting what you have presented, a menu page will be a page that contains links to the different pages of the Gallery, the pages that are in separate folders.  Your main html page could provide a home for this menu, as well as any other content you want to display on this page.  When you click on one of the menu buttons, you open the index page of the selected gallery folder.

  • The button links IE vs Firefox... sometimes...

    I have a series of buttons with links that are similar to the following example:

    some_btn.onRelease = function() {}
    getURL (" http://whatever.com", 'white' ' ");
    };

    The function of these buttons perfectly on my pc, as well in IE 6 & 7, Firefox 2. On my laptop but the links button work perfectly in IE, but not in the Firefox browser. I also used "_blank" with, as I suspected, no difference. All menu flash works although these button links work only in Firefox on a remote computer. Clues?

    Oh happy day, I could answer my own question for a change. In Firefox, it seems that when you use 'empty' in a legend of link that Firefox will stay there dead in the water unless you physically choose unblock the pop-ups on the site in which lies the link. So if the user has pop ups blocked in Firefox and you decide to open a link in a new page in your SWF file, it may or may not work depending on whether the user has an exception for pop-ups and one of the exceptions is be your page. It's not good for me. Is there a way to get around this? Maybe JavaScript? Or does drop the 'empty' of our links? Of course I was told long that I should have been a beta-tester due to my uncanny ability to discover the most obscure. 000001% scenario of probability which never applies to the mainstream.

  • Link to iframe from xml file

    Hello

    Could someone tell me what to do with this "simple question?"

    I want to connect to an iframe from a xml file, how do I write this code?
    It is used on a page of portfolio with a flash element:
    link: http://www.clownfish.nl/cfcc/portfolio/portfolio_ca/portfolio_ca.html

    part of my xml code example:
    < element path = "images/1.jpg" width = "200" height = "200" >
    Point < title > < /title >
    < description > the item description < / description >
    "< iframe name ="of the project"src="./projecten/project-1.html ">
    < / iframe >
    < / point >

    Thank you

    Pascal

    HI -.

    Not an answer, but have you looked at your page in Firefox?

    "helppascal911" wrote in message
    News:g56tsp$51O$1@forums. Macromedia.com...
    > Hello,
    >
    > Could someone tell me what to do with this "simple question?"
    >
    > I want to connect to an iframe to an xml file, how do I write this code?
    > It is used on a portfolio with a flash element page:
    > link:
    > http://www.clownfish.nl/cfcc/portfolio/portfolio_ca/portfolio_ca.html
    >
    > some of my xml code sample:
    >
    >The title of the item
    > Description of the object
    >
    >

    >
    > Thank you,
    >
    > Pascal
    >

  • How to remove the new but useless, "buttons links" at the bottom of the default FF start pg?

    By default new FF w/Google is great and thank you too much. Prefer to remove the new button at the bottom of the page links and have more empty space on the page where the new links are currently. The links are already very well for use at the top of the pg in a toolbar. Remove the 6 new possible button links? Thank you.

    Add code to the file in the chrome folder userContent.css.

    Customization files (interface) userChrome.css and userContent.css (Web sites) are located in the chrome folder in the user profile folder.

    You can use this button to go to the Firefox profile folder:

    • Help > troubleshooting information > profile directory: opens showing the file
    @-moz-document url(about:home){#launcher{display:none!important}}
  • Yet created the animation flash with HTML link

    Having some problems with (in CS6) recently.

    Use it to create a flash with the link of file HTML file.

    Flash is installed and running, but when clicking on the index file I just get the black box and nothing else in the web browser.

    Tried Firefox, IE and Chrome, all with the same results.

    It worked well on 09/05/16 but the 15th, it had stopped working.

    The play flash file directly works without any problem.

    Any help or ideas would be appreciated.

    I took a few minutes. An old yet to Flash projects displays the player controls and does not work. A new export shows no control and does not work.

    Nothing has changed in still (it has not been updated for a long time). Flash (23.0.0.162) and I don't think that has changed. I don't remember when it worked last.

    So I headed to the forum Flash and discovered that it was a new version of flash (5 days ago) which has the default value no local file access. It's a security issue. See this link for the workaround:

    Flash Player 23 23 AIR release notes

    All good once again!

  • How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    How to assign URLs dynamically using button/link on the page of peoplesoft? Please provide detailed instructions.

    1. define the URL, the Z_URL1 or the Z_URL2 definitions

    2. in the change of field button:

    If true Condition then

    ViewURL (URL. Z_URL1);

    On the other

    ViewURL (URL. Z_URL2);

    End - if

  • Why is popupFetchListener called not to each time on the button/link click on?


    Hello world

    My version of Jdeveloper is 11.1.2.3.0.
    I created a page, consisting of a single button (also created link later).
    When I click on the button/link a pop up opens, in the popupFetchListener I created a method. Everything works fine when I load the page and click on the button/link for the first time.
    When I click on the link/button second time the popupFetchListener method is not called.

    What can be the reason behind this?
    How will I be able to call popupFetchListener whenever I click on the button/link?


    your suggestions will be really useful.

    Thank you.

    Please use

    triggerType = 'action '.

    Thank you.

  • I download InDesign (I paid for it, so not the trial version), but I can only find the button/link "download trial". What should I do?

    I download InDesign (I paid for it, so not the trial version), but I can only find the button/link "download trial". What should I do?

    Hello

    Please refer to the help documents below to download the application Adobe CC:

    Creative cloud to desktop

    Download, install, update or uninstall applications

    Once you have the CC Office application installed, you can install the Indesign from there.

    Kind regards

    Sheena

  • Creating a text input dynamic in a form with a button link

    I saw an article about this before, but I can't seem to find now. I am trying to create a textInput with a button link below that says "add another element. I want to be able to create a form that is generated dynamically by the user. And can reach however many times the user click adds another.

    We saw this article? Or has an idea about the best way to go about this design?

    Thanks for your help.

    Hi Cootis,

    You can simply take a bread stick and create the textInput dynamically at execution in ActionScript. See the example for simpler code below...


    http://www.Adobe.com/2006/mxml"layout ="absolute">

      private var arrayCollectionList:Array = new Array();
        
    private void addTextInputToForm(): void
    {
    var textInput:TextInput = new TextInput();
    textInput.width = 250;
    textInput.height = 25;
    boxContainer.addChild (textInput);
    }

    ]]>


     
        
     

     

    Thank you

    Jean Claude

  • Flash button - links

    Hey, first of all Im a total noob to Flash. I created a button, but it cannot connect to a URL. The button does an action and emits a sound when the mouse cursor is on it and then made the same action, but in reverse when the cursor is removed and the button returns to its original state. However when I add:                                                                                                                                                                                                                         on(release)
    {
    getURL ("http://www.google.co.uk", "_blank");
    }
    to get the button to access a URL it a few times the action and the sound loop. The code I have for the button so that it can do what I want is: / / Btn2 on function
    function btn2Over(event:MouseEvent):void {}
    btn2.gotoAndPlay ("Over"); go to btn2 movieclip and play more image tag
    }
    Btn2 off function
    function btn2Out(event:MouseEvent):void {}
    btn2.gotoAndPlay ("out");     go to btn2 movieclip and play the off image tag
    }
    Btn2 function
    function btn2Down(event:MouseEvent):void {}
    this.gotoAndPlay ("myLabel"); play any image tag in a movieclip
    }

    / / Btn2 listeners
    btn2.addEventListener (MouseEvent.ROLL_OVER, btn2Over);
    btn2.addEventListener (MouseEvent.ROLL_OUT, btn2Out);
    btn2.addEventListener (MouseEvent.CLICK, btn2Down);
    ////////////////////////////////////////////////////////////////////////////////////////// ///////////////////////////////////
    //                                                                                                                                                                                                                         Any help would be greatly appreciated, I think it's the line / / this.gotoAndPlay ("myLabel"); / / reading of any image into a movieclip tag. This is false because I changed this code by a button I found online that makes actions of simliar to mine. Thanks Ash

    The problem is that you mix two different versions of actionscript, which will not work in the same file.  Get rid of all the code it (release)... , which is AS2 and stick with AS3 code, ensuring that your publication settings are defined for AS3.

    Then change your code to btn2Down to be...

    function btn2Down(event:MouseEvent):void {}
    navigateToURL (new URLRequest ("http://www.google.co.uk"));

    }

    If you don't want to use the gotoAndPlay line, then just remove it from this function, but is not the problem

  • Links inside the flash form buttons

    Is it possible to place buttons inside a flash of and use these buttons to leave the form and go to another page? I guess using GetURL would be used, but I failed to run. I also thought to make each button a button to send with a CF variable as value and then pass this value to the 'action' of the form, but again... no luck. I think I am barking the wrong branch of the tree so to speak.

    Thank you scarecrow. Which lead me to what I was looking for, use the syntax appropriate for the form element.

Maybe you are looking for