Open Links

I'm building an rss reader in flash. I have the rss displaying with no problem, the problem is, I need each title to open the web page to a particular site.
The link is the same for every header, so I assumed it wouldn't be that hard, but since I'm very new Flash and followed a tutorial to get this working, I have no idea how to do this
Can somebody look at my Action Script and help me out?
import fl.managers.StyleManager;
var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana";
logFormat.size = 10;
logFormat.bold = true;
StyleManager.setStyle("textFormat", logFormat);
var rssLoader:URLLoader = new URLLoader ();
var rssURL:URLRequest = new URLRequest("http://www.vegasdsports.com/feeds/nba.php");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;
function rssLoaded(evt:Event):void {
    rssXML = XML(rssLoader.data);
    //trace(rssXML);
    for(var item:String in rssXML.channel.item) {
        liLog.addItem( {label:rssXML.channel.item[item].title} );
for(var item:String in rssXML.channel.item) {
liLog.onRelease = function:void() {
getURL("http://www.vegasdsports.com/feeds/nfl.php");
Thanks in advance

1.  you're publishing for as3, not as2.
2.  the code you posted in this forum is NOT the same as the code in your fla.  specifically, the as2 code you posted is not in the fla and, if it were, you could not publish a swf.  the code in red is as2 code.
import fl.managers.StyleManager;
var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana";
logFormat.size = 10;
logFormat.bold = true;
StyleManager.setStyle("textFormat", logFormat);
var rssLoader:URLLoader = new URLLoader ();
var rssURL:URLRequest = new URLRequest("http://www.vegasdsports.com/feeds/nba.php");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;
function rssLoaded(evt:Event):void {
    rssXML = XML(rssLoader.data);
    //trace(rssXML);
    for(var item:String in rssXML.channel.item) {
        liLog.addItem( {label:rssXML.channel.item[item].title} );
for(var item:String in rssXML.channel.item) {
liLog.onRelease = function:void() {
getURL("http://www.vegasdsports.com/feeds/nfl.php");
3.  here's your corrected code with links to clicked items:
import fl.managers.StyleManager;
import fl.events.ListEvent;
var logFormat:TextFormat = new TextFormat();
logFormat.font = "Verdana";
logFormat.size = 10;
logFormat.bold = true;
StyleManager.setStyle("textFormat", logFormat);
var rssLoader:URLLoader = new URLLoader ();
var rssURL:URLRequest = new URLRequest("http://www.vegasdsports.com/feeds/nba.php");
rssLoader.addEventListener(Event.COMPLETE, rssLoaded);
rssLoader.load(rssURL);
var rssXML:XML = new XML();
rssXML.ignoreWhitespace = true;
function rssLoaded(evt:Event):void {
    rssXML = XML(rssLoader.data);
    for(var item:String in rssXML.channel.item) {
        liLog.addItem( {label:rssXML.channel.item[item].title,link:rssXML.channel.item[item].link} );
liLog.addEventListener(ListEvent.ITEM_CLICK,clickedLogF);
function clickedLogF(e:ListEvent){
    navigateToURL(new URLRequest((liLog.getItemAt(e.index).link)));

Similar Messages

  • I used to be able to open links in a new tab by clicking my middle mouse button, but now that I've updated it to the most recent update it doesn't work anymore. How do I fix this? I really love that feature. It works in IE and Chrome but not Mozilla.

    Ok, I used to be able to open links up in a new Tab using my middle mouse button. However, I updated firefox with the automatic Updates on the 26th of October and now I no longer can open links with my middle mouse button. Why? I use this feature just about every time I go searching on the internet so I really would like it back. I couldn't find anything that it was related to in the options so I turn this over to you guys.

    Do you have that problem when running in the Firefox SafeMode? <br />
    [http://support.mozilla.com/en-US/kb/Safe+Mode] <br />
    ''Don't select anything right now, just use "Continue in SafeMode."''
    If not, see this: <br />
    [http://support.mozilla.com/en-US/kb/troubleshooting+extensions+and+themes]

  • I can't open links in firefox. I must drag them to the tool bar or right click and open in a new page

    I am running Vista and installed a new version of firefox yesterday plus I messed around with trying to block some obnoxious advertising pop up windows. Now I can't open links and must drag them to the browser bar or right click and "open in a new window". How do I fix this? I tried to restart Firefox but it didn't help. thanks!

    Start Firefox in <u>[[Safe Mode|Safe Mode]]</u> to check if one of the extensions (Firefox/Tools > Add-ons > Extensions) or if hardware acceleration is causing the problem (switch to the DEFAULT theme: Firefox/Tools > Add-ons > Appearance).
    *Do NOT click the Reset button on the Safe mode start window or otherwise make changes.
    *https://support.mozilla.org/kb/Safe+Mode
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes
    Try to open a new window and see if that window works.
    You can check for problems with the localstore.rdf file.
    *http://kb.mozillazine.org/Corrupt_localstore.rdf

  • Opening link in a new tab disables back navigation to the first page

    If I am on page A (for an example, let's say it is www.yahoo.com) and I chose a link on that page and by right-clicking open pop-up menu and choose '''Open Link in New Tab''', the page B (let's say finance.yahoo.com) opens in a new tab. Now, if I click on any link on this page B to be opened in the same tab the page (we will call it C) opens, but all options to navigate back ('''Go Back One Page''' browser button, Alt-Left Arrow, '''Back''' option on pop-up menu) appear disabled. However, if I continue to navigate from page C in the same tab to let's say page D, and from there to pages E and F, I can go back all the way to page C, but no further. It looks like for some reason the opening link in a new tab fails to put it in that tab navigation history.
    I am running Firefox 4.01. It happens only on my office computer and not on any other computers I use. I had this problem before on the same office computer with Firefox 3.6. I could not get rid of it. Only after I uninstalled 3.6, cleaned all remnants of it and installed 4.0 – the problem went away. I updated to 4.01 and it worked fine for a while. But recently (I don't know what triggered it) the problem came back.

    Thanks for your post.
    I've seen it, and that's what I want to avoid. Like I said, if I click on a link which was suppose to open in a new window, it should open in new tab instead.
    Thanks.

  • 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.

  • Apex 4 - Flash Chart - How to open link in same page

    Hi,
    I need help in apex flash chart development. I want to open link in same page. Currently it open in new window with existing page intact
    I have created a flash chart.
    Below are setting
    Chart Type 2D line
    Series Type : Line
    Series siurce : sql query
    elect '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link,
    capture_date,
    round(sum(TOTAL_MB)) "Total_MB" ,
    round(sum(USED_MB)) "Used_MB" ,
    round(sum(FREE_MB)) "Free_MB"
    from SST.TABLESPACE_USAGE_HIST
    where DBNAME = :P15_ORACLESID
    group by capture_date
    order by capture_date
    Problem: when I run this page, chart is displayed. Now if I click on the series value of chart, it opens page ( '?p=&APP_ID.:2:&APP_SESSION.::::P2_ORACLESID,P2_CAP_DATE:&P15_ORACLESID.,'||capture_date link) It opens page 2 in new window. I want it to open in same window. Am I missing something ? Is this possible ? Is there anything I can change to achive this functionality
    Please help

    Hi All,
    I have an issue with Anychart link, can you please help me.
    1. I have created HTML region in a page with
    <div id="sampleClick">
    <div id="sample1">
    <script type="text/javascript" language="javascript">
    function ChartSample()
    var ChartSample = new AnyChart('/i/flashchart_v5/swf/AnyChart.swf');
    ChartSample.width = "500";
    ChartSample.height = "400";
    var ChartData = new htmldb_Get(null,$x('pFlowId').value,
    'APPLICATION_PROCESS=FINANCE_020',0);
    gReturn = ChartData.get();
    // prompt("xml",gReturn);
    ChartSample.setData(gReturn);
    ChartSample.write("sample1");
    ChartSample();
    </script>
    2. Then created Application process with "On Demand Run this application process when requested by a page process." in PL/SQL Anonymous block
    select 'f?p=&APP_ID.:136:&APP_SESSION.::::P33_ID:' || YEAR link,DECODE(period,1,'JAN',2,'FEB',3,'MAR',4,'APR',5,'MAY',6,'JUN',7,'JUL',8,'AUG',9,'SEP',10,'OCT',11,'NOV',12,'DEC')||'-'||year "MONTH",round(SUM(ytd_revenue)/1000000,2) YTD_REV from t_tc_qpcq2052
    where cntry='IND' and category='20'
    GROUP BY year, period
    ORDER BY YEAR, period
    I am able to see the chart, but I am not able to open or pass the value from one page to another page when I click the bar chart.
    Can you please help me on this.
    Thanks in Advance.

  • 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!

  • Open link in background when anchor's attribute "href" contains javascript

    Hi community,
    I support web enterprise-level application with some legacy parts, where some windows are opened by using window.open command inside of anchor's href attribute. (e.g. <a href="javascript:MyFunction('../someurl', '2')" ../> ... function MyFunction(url,
    id) { window.open(url, id) ...)
    Now I have to open link in the background by pressing ctrl + click (or middle click), but for IE (9, 10, 11) it always becomes focused.
    Are there any ways to open those new tabs in the background (only when ctrl is pressed)? 
    P.S. I know that it would be better to provide actual link inside of href attribute, but unfortunatelly I don't have such options, due to application specific.
    Thank you in advace for your help!

    Hi Rob,
    thank you a lot for reply!
    I think mine issue not related to security and popup blocker settings. What I try to achieve is similar behaviour as we have for links (<a>) with href attribute fullfilled with actual url. Specifically
    * by single click new tab should be opened focused (this is fine)
    * by shift + click it should be opened in new browser window (this is also fine)
    * by middle (ctrl + click) new tab should be opened in background. This feature doesn't work well, because new tab alway opens focused and this is what I'm trying to fix, or at least find official proof that IE works in this way with javascript
    inside href attribute
    Here is example:
    http://jsfiddle.net/hj3gud9j/
    It works as expected in chrome but not in IE
    Yours sincerely, 
    Eugene Novykov

  • "Open links from applications" in Safari 5

    Preferences > General > "Open links from applications"
    This has been removed in Safari 5, so when I open, say, 10 weblocs I keep in a folder in the Finder, I now get 10 separate windows.
    1) ***, Apple?!?
    2) Any suggestions for a hack to fix this stupid oversight?
    I could probably change Preferences > Tabs > Open pages in tabs instead of windows (which I currently have set to "Never" because it overrides keystroke+click for telling Safari how to open a link) and see what that does, but I like that preference the way it is.

    Hi,
         Is there any workaround for this issue. Because when multiple window gets spanned we are getting confused. Or let us know if there is any way to open the download prompt alone instead of opening up with the new window. One more thing to note is once the download is complete the new window also doesn't closes automatically which needs to be closed manually. This makes very annoying. Kindly let us know how to prevent the new empty window from opening.
    Vijay.

  • Macbook pro wont open links

    Hi all, i have a macbook pro and just recently it has stopped opening links. Although its not all things, for example, i cant click and open anything from google unless i right click and open in a new tab. I click on the link and nothing happens, its not only in google that this happens. Ive been getting around it by opening everything in a new tab and hoping it would sort itself out, but it hasn't and it is super frustrating.
    Hope someone can help!

    From the Safari menu bar, select
              Safari ▹ Preferences... ▹ Extensions
    Turn all extensions OFF and test. If the problem is resolved, turn extensions back ON and then disable them one or a few at a time until you find the culprit.

  • [SOLVED] Xfce terminal open links with wrong browser.

    After installing Opera as second browser, xfce terminal began to open links with it, instead of my default browser - Firefox.
    I right click on an URL, choose 'Open Link' and it opens in Opera.
    Firefox is set as default browser in Settings -> Preferred Applications -> Web Browser
    xdg-open http://archlinux.org
    - opens Firefox
    exo-open http://archlinux.org
    - opens Firefox
    After quick search through xfce terminal sources i found it uses some function - gtk_show_uri.
    I googled it, found that topic: https://bbs.archlinux.org/viewtopic.php?id=140028 and tried the solution:
    cat ~/.local/share/applications/mimeapps.list
    [Added Associations]
    x-scheme-handler/mailto=exo-mail-reader.desktop
    x-scheme-handler/http=firefox-browser.desktop
    strangely it doesn't help.
    After all righ click url in terminal and 'Open Link' still uses Opera.
    Any ideas? What else can i do to find out a reason?
    Last edited by spacetekk (2015-01-04 11:41:53)

    Tried BROWSER envar - doesnt help, and as i understand it must work only for cli apps.
    Editing of  ~/.config/mimeapps.list doesnt help eather:
    cat ~/.config/mimeapps.list
    [Default Applications]
    text/vcard=firefox.desktop
    text/html=firefox.desktop
    [Added Associations]
    text/vcard=firefox.desktop;
    text/html=firefox.desktop
    but maybe it's not correct.
    After that i tried to strace xfce4-terminal:
    poll([{fd=4, events=POLLIN}], 1, 4294967295) = 1 ([{fd=4, revents=POLLIN}])
    recvmsg(4, {msg_name(0)=NULL, msg_iov(1)=[{"\34\0.\331!\t`\2N\1\0\0\330\336\7\0\1\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 4096}], msg_controllen=0, msg_flags=0}, 0) = 352
    recvmsg(4, 0x7fff5ad349d0, 0) = -1 EAGAIN (Resource temporarily unavailable)
    stat("/home/user/.local/share//mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/home/user/.local/share//mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/mime.cache", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/globs", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/local/share/mime/magic", 0x7fff5ad34470) = -1 ENOENT (No such file or directory)
    stat("/usr/share/mime/mime.cache", {st_mode=S_IFREG|0644, st_size=115108, ...}) = 0
    open("/usr/share/applications/opera.desktop", O_RDONLY) = 13
    fstat(13, {st_mode=S_IFREG|0644, st_size=550, ...}) = 0
    read(13, "[Desktop Entry]\nVersion=1.0\nName"..., 4096) = 550
    read(13, "", 4096) = 0
    close(13) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    access("/usr/local/sbin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/local/bin/opera", X_OK) = -1 ENOENT (No such file or directory)
    access("/usr/bin/opera", X_OK) = 0
    getuid() = 1000
    stat("/usr/bin/opera", {st_mode=S_IFREG|0755, st_size=416, ...}) = 0
    pipe2([13, 19], 0) = 0
    pipe2([20, 21], 0) = 0
    clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7fd725cf1bd0) = 1469
    close(19) = 0
    close(21) = 0
    wait4(1469, [{WIFEXITED(s) && WEXITSTATUS(s) == 0}], 0, NULL) = 1469
    and it's strange but as i can understand it uses some mime cache file located at /usr/local/share/mime/mime.cache
    and before that some other non existing files, but i dont see there any familiar config files.

  • Safari wont let me open links in new tabs anymore? Please help!?

    On my Macbook, I'm using Safari as my browser.
    Everything was fine until this morning; suddenly Safari will not give me the option of opening links from one page in another tab in the same window.
    For example, if I'm browsing on EBay and want to open a search result in a new tab of the same window, usually when I would right click on my track pad or magic mouse, it would say "Open link in new tab" or "Open link in new window". However, now when I right click, it just says, "Open link" "Open link in new window" and "Copy link".
    I haven't changed any settings or anything on my Macbook whatsoever in the last 3 hours (at least that I'm aware of). Can anyone please tell me how to get this back to normal?
    Also, it seems that when I right click anywhere on a page, I only see the options "back" and "reload" whereas before there was "view source" etc.
    Please help!
    xx0

    Hi,
    From the Safari Menu Bar, click Safari / Empty Cache. When you are done with that...
    From the Safari Menu Bar, click Safari / Reset Safari. Select the top 5 buttons and click Reset.
    Go here for trouble shooting 3rd party plugins or input managers which might be causing the problem. Safari: Add-ons may cause Safari to unexpectedly quit or have performance issues
    Since you are running Snow Leopard, *make sure Safari is opening in 32-bit mode, not 64*. Right or control click the Safari icon in the Applications folder, then click: Get Info In the Get Info window click the black disclosure triangle next to General so it faces down. Select 32 bit mode. Also, (in that same window) *make sure Safari is NOT running in Rosetta.*
    

Web pages now include a small icon or 'favicon' which is visible in the address bar and next to bookmarks. These icons take up disk space and slow Safari down. It is possible to erase the icons from your computer and start fresh. *To delete Safari's icon cache using the Finder, open your user folder, navigate to ~/Library/Safari/ and move this file "webpageIcons.db to the Trash.*
    If Safari still won't let you open links in new tabs, go to the Safari Menu Bar, click Safari/Preferences. Make note of all the preferences under each tab. Quit Safari. Now go to ~/Library/Preferences and move this file com.apple.safari.plist to the Desktop. Relaunch Safari. If it's a successful launch, then that .plist file needs to be moved to the Trash.
    If your forum profile is correct (10.6.1) go to the Apple Menu/Software Updates ...
    Very important to keep your system software up to date.
    If you install the 10.6.3 update make sure and repair disk permissions.
    Quit any open applications/programs. Launch Disk Utility. (Applications/Utilities) Select MacintoshHD in the panel on the left, select the FirstAid tab. Click: Repair Disk Permissions. When it's finished from the Menu Bar, Quit Disk Utility and restart your Mac. If you see a long list of "messages" in the permissions window, it's ok. That can be ignored. As long as you see, "Permissions Repair Complete" when it's finished... you're done. Quit Disk Utility and restart your Mac.
    Carolyn
    Edited by: Carolyn

  • Open Link in New Window not working

    Using iWeb 08, I create a new entry on my blog/news page, highlight the text, go to the link tab, paste in a website, make sure 'Link to an External Page' is selected, and put a tick in 'Open Link in New Window'.
    When published it opens in the same window. Is this a bug or how can I correct it?

    Try redoing your link and, this time, deselect the link on the page and look at the inspector window to see if anything has changed. Then check the 'make hyperlinks active box". Your linked page should open in the browser when you click the link on the iWeb page.
    If this is OK do a "publish all to .Mac" and empty your browser cache before visiting your site.

  • "Open Link in new window" not working with OBIEE 10.1.3.4

    Hi All,
    Recently we upgraded from Siebel Analytics to OBIEE 10.1.3.4.
    In OBIEE Go to Settings > Administration > Managae Interactive Dashboard > Select any Dashboard > Right Click on Properties tab > Open Link in New window:
    This throws an error saying "javascript:void(null)".
    In Siebel Analytisc the above functionality used to work.
    Does anyone knows thereason behind this?
    Regards,
    Apoorv

    Get Firebug and inspect the element. You'll see that it actually is this:
    onclick="javascript:saw.runThis
    URL('saw.dll?PortalProperties&_scid=To2OnvCVXpY&PortalPath=/shared/paint/_portal/PoC\x2520FINS&Done=ManagePortals\x2526Done\x253dAdmin');return false" href="javascript:void(null)" FF doesn't even give you the "Open..." options and all IE versions as of 7 show them but actually don't do anything when you invoke them.
    Edited by: Christian Berg on Sep 9, 2009 10:36 AM

  • Open link in new window will not work

    I am running Firefox 3.6.12 on Windows XP and have never had a problem until just recently. If I right click and select "open link in new window", a new window will open, but it is blank. This started about a week ago while playing Pogo...the game rooms will not load because they open in a new window. Now I am noticing that it is with everything, not just Pogo.
    I have tried checking and unchecking the "block pop-ups" option and the new windows will not load either way.
    Any help would be appreciated!!!
    Thanks!

    Start Firefox in [[Safe Mode]] to check if one of your add-ons is causing your problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See [[Troubleshooting extensions and themes]] and [[Troubleshooting plugins]]

Maybe you are looking for