Movieclip link to new webpage

I want to have a movieclip "button" that when clicked will go to another page on a website, a different URL, not another frame in the flash application. I am trying to use this actionscript
var targetPage:URLRequest = new URLRequest("update0709-2.html");
procedures_mc.p_dropdown_mc.p_body_mc.newPage = "update0709.html";
procedures_mc.p_dropdown_mc.p_body_mc.buttonMode = true;
procedures_mc.p_dropdown_mc.p_body_mc.addEventListener(MouseEvent.CLICK, goToPage);
function goToPage(e:MouseEvent):void
   targetPage = (e.currentTarget.newPage);
      navigateToURL(targetPage);
I get this error when I run it
TypeError: Error #1034: Type Coercion failed: cannot convert "update0709.html" to flash.net.URLRequest.
at header03_fla::MainTimeline/goToPage()
I want the new page to open in the current browser window and not to open a new browser.
Thanks for your time

You have targetPage as a URLRequest, and that is correct, but you reassign it in the functon - that is not correct...
var targetPage:URLRequest = new URLRequest("update0709-2.html");  //CORRECT
procedures_mc.p_dropdown_mc.p_body_mc.addEventListener(MouseEvent.CLICK, goToPage);
function goToPage(e:MouseEvent):void
   targetPage = (e.currentTarget.newPage); //NOT CORRECT
   navigateToURL(targetPage, "_self");
If you want to get some string newPage from the clicked clip then you will need to do a new URLRequest with it... and there's no reason to wrap that in parenthesis.
function goToPage(e:MouseEvent):void
    targetPage = new URLRequest(e.currentTarget.newPage);
    navigateToURL(targetPage, "_self");

Similar Messages

  • How do I get firefox to open a new window when i click on a link in a webpage ?

    When I click on a link in a webpage in Firefox, generally it opens the new page in the window i am in (though some times it does not). How do I get it to open a new window (or tab) each time I click a link.
    For example, on www.bbc.co.uk if I click on a link, the new page opens in the same window, if I then click another link in the new window, again, it opens in the same window. To get back to the original window, I have to use the back button twice. Surely there is a setting so that all 3 windows can be open on separate tabs or separate windows.
    I have been to the tabs window in options, but doesn't seem to make a difference.

    Open link/bookmark in new tab in same window:
    *Middle-click (press the mouse scroll wheel) the link
    *Ctrl+left click the link
    *right-click the link, choose "Open Link in New Tab"
    Open link/bookmark in new window:
    * Shift+Enter on the link
    * Shift+left click on the link
    See: http://www.7is7.com/software/firefox/shortcuts.html

  • Open new tab from any webpage, click any link on new tab, waits till the page is loaded and try to go back one page on new tab (arrow is disabled).

    It happens whenever I open new tab from any wabpage. Once the tab is opened and initial webpage is loaded I may use any link to jump on another, second webpage in same tab. However, if I want to go back on initial webpage I can't do it cause that option (arrow) is disabled. I could use link on second webpage to jump on third, and only at that moment go back option becomes available again. However, I could not ever go back on initial webpage any more. As initial webpage has never existed.
    It happens quite often (95%).

    Right click the Back button and select the page you want to go back to from the list.
    If the list is too long to display via the Back button, hit CTRL+H, change the view to "Last Visited" and then load it from there instead.

  • I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I open a new webpage in a new tab. I then go to a link and the back button does not allow me to go back to the original webpage. Any suggestions?

    I don't think you understood the question. I am having the exact same issue. I open a link in a new tab or window, for example: https://addons.mozilla.org/firefox/addon/backforedrop/
    When the new tab opens, I click on "reviews" to open the link: https://addons.mozilla.org/en-US/firefox/addon/backforedrop/#reviews in the existing tab because I want to see the reviews for this feature. After I read the reviews, I want to go back to the main link, but the back button on my browser is greyed out, as though I was never even on the previous page. So my options are 1) Open every link I ever click on in a new tab or window, or 2) Hope the website is user friendly and attempt to navigate back to the previous page using links inserted on the current page.
    You never realize how frustrating not having back button is until it happens.

  • I just to open every Google searched link in ( new tab ) in same webpage , when i click the link

    hello sir/mam
    i just to open every Google searched link in ( new tab ) in same webpage , when i click the link
    what to do
    please replay
    thank you

    I am not sure what you want. Do you want to open links in a new
    tab / window, or the same window you are in?
    Type '''about:preferences#general'''<Enter> in the address bar.
    Check the settings under''' Tabs'''

  • Open link in new window/tab

    Hello, is there anyone that can tell me how you can make a link to a webpage outside your wiki that opens in a new window or tab, so that the wiki stays open.
    thanks in advance...

    I am having the opposite issue. I am wanting all internal and external links to open within the same tab and window. It seems by default that all links that we add are opening externally.

  • Right click to open link in new tab sometimes missing

    example:
    http://en.wikipedia.org/wiki/StannardRockLight
    In Safari 3, I could right click on the image to the right and get the contextual menu item "Open link in new tab." In Safari 4, it's missing. However, if I hold down the command key and click, it does open in a new tab - so it seems to be an issue with just the contextual menu somehow.
    This problem doesn't occur with every webpage.

    Hi Donnie
    Seems if the image is contained within a frame, then no "save as" option appears. I suggest reporting the bug to Apple via the Safari Menu>Report Bugs to Apple.
    Alternative for saving is to click/drag the image to the desktop.

  • Safari open link in new tab is gone

    hi i have problem with safari(5.0.5) 10.6.7, from the past  2weeks it is behaving very oddly,
    -.the short menu adressing open link in new tab is not at all appearing , at present i m using on keyboard options
    -when i enter webpage it opens in the other tab instead of the tab i intend to ,the content from other tab becomes the same as the other, also some of ther options from short menu lke save image , save image as also lost .
    -when i reset safari and restart open link in new tab appears in the short menu for 5-10 min (occassionally) and then again the same problem .
    i tried setting preferences , updated software ,
    but nothing works. .can anyone help me plz

    Check Safari / Preferences then select the Extensions tab. If you have any installed, turn that off, quit then relaunch Safari to test.
    And try troubleshooting the Safari .plist file  (preferences)
    Quit Safari.
    Open a Finder window. Select your Home Folder in the Sidebar on the left. It has a small house icon. Then open the Library folder then the Preferences folder. Move the com.apple.Safari.plist file from the Preferences folder to the Desktop.
    Relaunch Safari. If that made a difference, move that .plist file to the Trash. If not, move the .plist file back to the Preferences folder.
    And try resetting Safari. From the menu bar click Safari / Reset Safari. Select the top 7 buttons, click Reset.

  • When clicking on a link a new window comes up empty

    When I click on a link on a webpage, for example in gmail I click on compose email and then click on the contact list to select contacts to send an email to and the window that holds my contacts information come up there is nothing there. It does this with many other websites as well. Basically when I click on a link on the page a new window pops up where the information is supposed to be but it never loads the information

    It's possible that you are having a problem with some Firefox add-on that is hindering your Firefox's normal behavior. Have you tried disabling all add-ons (just to check), to see if Firefox goes back to normal?
    Whenever you have a problem with Firefox, whatever it is, you should make sure it's not caused by one (or more than one) of your installed add-ons, be it an extension, a theme or a plugin. To do that easily and cleanly, run Firefox in [http://support.mozilla.com/en-US/kb/Safe+Mode safe mode] (don't forget to select ''Disable all add-ons'' when you start safe mode). If the problem disappears, you know it's from an add-on. Disable them all in normal mode, and enable them one at a time until you find the source of the problem. See [http://support.mozilla.com/en-US/kb/Troubleshooting+extensions+and+themes this article] for information about troubleshooting extensions and themes and [https://support.mozilla.com/en-US/kb/Troubleshooting+plugins this one] for plugins.
    If you need support for one of your add-ons, you'll have to contact its author.
    If the problem does not disappear when all add-ons are disabled, please tell me, so we can work from there. Please have no fear of following my instructions to the line, as all can be easily undone.

  • How to make Firefox stay on current tab, while opening new link in new tab.

    I want Firefox to stay in the current tab window after clicking a link. I want the link to open in a new tab window, but not switch to it automatically.
    In a nutshell, I want to be able to click on a link and have it act the same way it does when I right click and select "open link in new tab".

    { Ctrl + click } or Middle-click on hyperlinks to open that link in a new Tab.
    As far as whether or not the new Tab grabs focus, that will depend on how the webpage wants that link to be opened. Some JavaScript links will just open the tab and focus on that new Tab. You would need a tab-related add-on to change that, in some cases.

  • In version 9 is there anyway to put the "Open Link in new Tab" back to where it was when right clicking on a link?

    The menu editor addon no longer works with FF v9.0.1, is there another way to change the location of the "Open Link in New Tab" contextual menu item when right clicking on a link?

    You can do that with code in userChrome.css.
    See my post here:
    *[[/questions/791244?page=2#answer-161497]]

  • Right-clicking on links and selecting "Open Link in New Tab" opens a blank tab.

    Seems like opening links in new tabs just doesn't work in any fashion. I right-clicked a link (several, actually) to open it in a new tab. It opened a blank tab. No sign of ever acknowledging the link, nothing in the URL bar. Just blank.
    Wonder if this is related to my earlier question about opening links from Thunderbird being broken as well...

    2 Solutions found in [http://support.mozilla.com/en-US/questions/791244]
    the user cor-el has a method that does not require any add-ons. He States
    This code in userChrome.css will move "Open Link in New Window" to the top of the context menu.
    <pre>@namespace url("<a href="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul</a>"); /* only needed once */
    #contentAreaContextMenu &gt; * { -moz-box-ordinal-group: 2; }
    #context-openlink { -moz-box-ordinal-group: 1 !important; }</pre>
    the user jay_ff shows how to do it using the Menu Editor Add-on
    1. Install the Menu Editor add-on from https://addons.mozilla.org/en-US/firefox/addon/menu-editor/ .
    2. After the installation, go to Firefox> add-ons (or simply use Ctrl+Shift+A)
    3. Go to the Menu Editor "Options"
    4. In the "Main context menu," simply grab the "Open link in New Tab" and place it below the "Open Link in New Window"
    5. and Voila! You may also change other menu options if you want to!
    I tried jay_ff method first and found that indeed changing the Main Context Menu did cause the hotlink context menu to change as well.

  • Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL..

    Using firefox 14.0.1. Loading a link using right-click and "Open Link In New Window", results in new window opening but address bar does not show URL. However, if I right click on a link and select "Open Link In New Tab", the Tab shows URL in address bar. So it's working when it's a New Tab but not a New Window.

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • URL iView doesn't open link in new window

    Hi All,
    I'm have an URL iView that I want to display in the portal content area but whenever the user clicks on a hyperlink on that iView launch a new window for the link.
    I've tried using the 'Open iView links in new window' without any success. Is this supposed to work or this property is for another purpose...? Can someone point me to a solution.
    Thanks

    Hi Detlev,
    I checked what you said. I've already looked at that page but didn't saw that important disclaimer. My problem was that I didn't had a captured area-URL iView but a full page-URL iView as it says:
    +These properties are relevant in the following instances only:
    §         The iView content is displayed in its source format. The rendering type must be defined as Keep Source Formatting. See Defining the Look and Feel of the iView Content.
    §         The iView content displays a captured area, and not the entire Web page. See Selecting the Capture Area.+
    I only had to change the 'Open iView links in new window' to Yes after capturing a part of my page and it started working.
    Thanks for sharing

  • Issue while opening Shop Link in New Window

    Hi All,
    Recently We have upgraded SRM5.0 to 7.0 and now we are using Portal for Front end application. We have configure the SRM appliation in Portal EP 7.0.
    Now i can fetch the data from SRM but problem is when i am opening Shop Link ( Employee Self Serviece --> Shopping Area ) in new window then it's navigating to Home Page instead of opening the Shop application.
    When i am opening the Shop Link in Content area that time its opening correctly.
    Can you please assist us how we can resolve this issue when i am opening Shop link in new window.
    Regards,
    Rahul Sanas.

    Dear Poster,
    As no response has been provided to the thread in some time I must assume the issue is resolved, if the question is still valid please create a new thread rephrasing the query and providing as much data as possible to promote response from the community.
    Best Regards,
    SDN SRM Moderation Team

Maybe you are looking for

  • Setting value of items based on a radio group selection

    Hi, I have a radio group with 3 values (let's say A, B, C)... at the moment I have dynamic actions set to hide and unhide items based on the selection from the radio group... e.g when value A is selected then only item_1 and item_2 are displayed, whe

  • Organising word templates

    I've happily and relatively easily made the transition from Appleworks to Pages for word-processing and other things, but what I miss is the ability to organise my templates into different categories, letter templates, financial templates, dvd/cd cov

  • Adobe Reader 10.2.0 (58582) on iPad 2 with iOS 5.1.1 (9B206) dies rendering USGS topo maps

    I downloaded Adobe Reader today from the app store because I wanted to look at some high resolution, multi-layered topo maps with Cub Scouts on my iPad 2 and I figured that Adobe Reader would be the best app for the job. Example: http://ims.er.usgs.g

  • Deleting songs and scanning for broken links.

    I've encountered a couple weird problems today. I've read through every area of the preferences, right-clicked everywhere I can think of in the iTunes window to see what pops up in those menus, and can't find the solutions to my problems. 1) It used

  • CS4 + 10.6.5 - Delete Photoshop Settings file?

    I'm having major issues when starting Photoshop CS4 on an iMac running OS X 10.6.5.  My keyboard almost becomes "stuck" and invokes strange actions.  I am using Spaces and using the Option key + arrow key to move between Spaces. Tried opening up Fire