Modify code to open any extension file?

Hi,
The following code is working fine to open any .PDF file by clicking on a  DataGrid row. Instead I want to use this code to open any file that browser supports. How to modify the following code?
myGrid.addEventListener(ListEvent.ITEM_CLICK , gridItemClick);
function gridItemClick (e:ListEvent):void
var urlR:URLRequest=new URLRequest(e.target.getItemAt(e.rowIndex).PDF)
    navigateToURL(urlR, "_blank");
Please do help.
Thanks.

the same code with the appropriate string assigned to the corresponding object property will work.

Similar Messages

  • I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.

    I'm running snow leopard. The try to open any .mov file in Quicktime, and I get an error message that says, "The document xyz.mov could not be opened. The movie is not in a format that Quicktime player understands. I'm a recent upgrade to Snow Leopard.
    Help!
    Thanks, Mark

    Unfortunately, the error message gives no details about what codec might be missing or what it needs.
    If the file can't be opened in QT, it only means you cannot use the QT "Inspector" window to check what compression formats were used to create the file. It does not mean you can't use the Finder "Information" window to check on the compression formats or use a third party media information window (e.g., like VLC which will open many compression formats not supported natively by QT) to determine what kind of data is included in the MOV wrapper. If the file cannot be opened in any app, it is usually a good sign that the file itself is corrupted.
    It's a stupid error message. Apple should do better than that.
    Error trapping is quite extensive but there are still many areas which require human oversight. The message is telling you that either the container has a problem (e.g., not properly terminated, non-standard, or corrupted) or that one or more of the compression formats used is not supported by your current codec component configuration or that the data was encoded using non-standard settings or preferences not supported by QT or that the fourCC code does not match the data contained in the file or that there are timecode inconsistencies, etc., etc., etc. In short there are a near infinite number of possible problems for which it would be very difficult/nearly impossible to program error trapping depending on your sourcing of content and how you process it before it reaches the player app. Think of it like trying to play a BD disc in an DVD player.
    I'll call Apple support when I get a chance.
    Chances are good that they will end up sending you back here. In any case, it is often a good idea to post a sample file for examination by other QT users. At the very least, they should be able to tell you if the sample file will play on other systems which would indicate whether or not the file itself is bad and under the best of circumstances whould allow them to examing the file in detail for various common problems.

  • Unable to open *any* picture files in Photoshop CC

    I cannot seem to open any picture files in Photoshop CC. It doesn't seem to matter what file type it is.
    .jpg .gif .png  no file will open.  They open just fine in Illustrator but Photoshop can't seem to find them.
    I've tried modifying what program "opens" the file but Photoshop isn't listed. Window Media Player is listed, as
    is Illustrator but I have to search for Photoshop and when I click on it, it doesn't do anything.
    Please help.

    Allyson,
    Another welcome here.
    Along with the answers to Trevor's questions, how are you attempting to Open those Image files, i.e. Dbl-clicking on them in Windows Explorer, or from the File>Open menu in the Toolbar? If you are using the former, please try the latter. If you want to work from Windows Explorer, Rt-click on the file, and choose Open With, then Photoshop.
    Your comment about WMP being the default viewing program, seems to indicate that your File Associations have been changed, with WMP now set as the target program. If this is the case, then you will likely want to go to Folder Options (check for your specific version of Windows), and reset the File Associations for, say PSD, PSB, JPEG, etc., to point to Ps.
    Good luck,
    Hunt

  • When openning a PDF file, a new tab will open but it will be blank, it does not download or open any pdf files, this just started the last 3 days....!!!!

    Hi,
    I am on the verge of deleting Firefox from my computer as it has wasted hours of my time, and none of the online trouble-shooting answers are of any help.
    Until recently I could open PDF files in my browser window, and today its impossible to open any pdf file, it will not even download if I choose to download it.
    This issue has been going on and off for nearly a year, and I downloaded Nitro PDF add-on to solve it previously as the Adobe reader add-on didn't do anything. Today In the options menu of applications where I can select the program I want to open the PDF files with I can no longer find the NitroPDF reader as an option, so I choose the Adobe add-on and no matter how many re-starts it refuses to initiate any PDF files, all I get is a open and empty new tab.
    Internet explorer opens PDF files fine, so I know its not computer related.
    I am running Windows Vista Ultimate, Firefox Version 19.0.
    If there is a way of fixing this, please help because currently I am at the end of my patience.
    Regards,
    Emre

    Hey thanx for the help, it worked like a charm.
    I think firefox changed the application lay out, as I used to be able to choose my PDF opener from the list at " Adobe Acrobat Forms Document' where I could choose Nitro-PDF reader, but it has now moved all the way to the bottom like you suggested to the obvious place of "Portable Document Format" section.
    If someone didn't tell me , I wouldn't have scrolled all the way down to be able to find it... it really should be with all its cousins up the top...
    Cheers again..

  • MAC OSX version 10.5.1 and I can't seem to open any PDF - FILES HELP

    I am having a lot of frustrations opening any pdf files on Safari.
    I re-installed adobe acrobat reader 7.0.9 and nothing is happening.
    Everytime I attempt to open up a PDF file it's blank or black.
    Please help me
    don't know what's happening?
    Deena

    MAC OSX version 10.4.11 and I can't seem to open any PDF
    I'm having this problem as well. I have both Acrobat Professional 8.1.2 and Adobe Reader 8.1.2 installed with the proper internet plug-in, using OS 10.4.11. When I try to open a pdf file in Safari I get a window asking me to choose an application to open the file, but both applications are dimmed and cannot be selected. I have tried re-installing Acrobat Reader, but without success. In Firefox I simply get a blank, darkened window. __Previously, before I installed Leopard and was using Tiger, I had Acrobat Reader 7.0 as well as AR 8.0 installed, and I was only able to select AR 7.0, but it worked. Now nothing works. This is a serious problem that Adobe needs to address!

  • After up grading to Adobe Reader XI why can't I open any PDF files?

    I am running windows vista and had been using Adobe Reader 8 - when I upgraded,  can not open any PDF files. When I attempt to open a PDF file, I receive the following messages:
    Update available
    Please take a few seconds to update Adobe AIR and get the very latest features. Acrobat.com cannot continue until you update Adobe AIR.
    after attemptng to down load the "update" I receive the following message.
    Sorry, an error has occurred
    This application requires an update to Adobe AIR but downloading that update was not successful.
    I have uninttalled all of my Adobe freeware & reinstalled statring with "adobe AIR" then "adobe Reader" and then attempted to opne a PDF file only to see the same  message
    Update available
    Please take a few seconds to update Adobe AIR and get the very latest features. Acrobat.com cannot continue until you update Adobe AIR.
    Agein after attemptng to down load the "update" I receive the following message.
    Sorry, an error has occurred
    This application requires an update to Adobe AIR but downloading that update was not successful.

    Thank you Pat,
    I have already been there done that. I first  Un-installed all of my adobe freeware (reader, flash player, air. etc) then started reinstalling. First I reinstalled reader (latest version Reader X), same error messages. added AIR (latest version not listed - Last updated April 1st, 2012 -
    maybe that should tell me something), same error messages. I un-installed these two and reinstalled AdobeFlash Player,Adobe Shockwave Player,&Adobe Media Player, verifying that each worked after each reinstall of the next program everything was OK until I put Reader back on (NOTE: I dug all the way back to version 8 & still had the problem). for some unknown reason I finally right clicked on a PDF file on my desk top & was greeted with a the drop menu & he option of "open with" for fun I clicked on the "open with" & found that I had two options the first was a white Icon with the Stylized A and labeled Acrobat.com the second was the normal red Icon we all know & live
    when I reset the default to the normal red Icon everything began to work just as I have always had adobe reader work. Now I have no clue how or when I picked up the "Acrobat.com" program even worse it does not show up under programs on the control panel. When I have a few moments this evening, I will run a search for "Acrobat.com" & hopefully be able to remove it from my computer.
    Bottom line I don't know how I got the program which seems to have caused the breakdown of adobe reader but by resetting the default program to open PDF files it is now working as it should
    Thanks for the suggestion.
    Sincerely,
    Richard L. Cornick
    Contact information: Cell (562) 522-5504;  Fax: (562) 531-0684

  • Can't open ANY pdf files. Updated to 10.1.8--still "Access Denied."

    Hello everyone,
    I am currently unable to open any PDF files.
    I recently did a clean re-install of Windows 7 (restored my Toshiba Satellite to out-of-the-box state).
    After that, I restored all of my personal files from an external HD.
    Now, every time I try to open a PDF, Adobe Reader gives me the following message:
    "There was an error opening the file. Access denied."
    The only solution I've been able to find online has been this:
    Edit > Preferences > General> Clear "Enable Protected Mode at Startup"
    Also,
    Edit > Preferences > Security (Enhanced)> Clear "Enable Enhanced Security"
    Neither of these has fixed my problem.
    I also updated to the lastest version--10.1.8--with no success.
    I also re-downloaded and installed PDF Creator and its companion, PDF Architect. Curiously enough, I can't open any PDF in that program either. I'm not sure if there is some global setting I'm missing or something.
    Access to these files is critical to my work, so any help is appreciated!
    Thanks,
    Lauren

    I updated from within the Adobe Reader X program (Help > Check for Updates) and it tells me: No updates available. Installed: Adober Reader X (10.1.8) MUI
    Is 11.0.5 something I would have to access another way?
    Also, I'm still not sure if that would fix my problem. It seems most people with the "Access Denied" error had it fixed with the very first 10.1 update, and I have 10.1.8, so I'm not sure what's causing mine.

  • Adober Reader suddenly won't open any PDF files (Mac)

    I had an old version, I downloaded the latest one, upgraded to the newest, even tried taking that one out and downloading an older version. It doesn't matter which version I seem to have, it won't open any pdf files from the web.
    I use a Mac, and Safari. It used to always load PDF files fine, one random place said I had to update it so I did and since then, lately it'd crash and close all Safari windows when loading a PDF or trying to copy something from a PDF. The smart Mac message I have says it could be related to an Adobe Plug in. However, now it won't even load PDF files at all, it always goes to a white page. Nothing happens.
    What do I do?? I can't even save the PDF's as individual files and view then in Preview as an alternative option. It's a link online and normally would work. What happened??
    HELP!
    I have a Mac OS X Version 10.5.8
    I've always used Safari, it's Version 5.0.5 (5533.21.1 if that means anything).
    Acrobat Reader, currently an old version 9.4.0 download. BUT, I had also the 10.0.1 version which also doesn't work. When I had that 10.0.1 version and checked for updates, there was an update (.3 I think?) and I did that and that also doesn't work!
    Why did it suddenly stop working?
    What can I do to fix it ASAP?
    Only with 9.4.0 version I can go to Help and "Repair Adobe Reader Installation" - I click that and the only box I can select is "Adobe PDFViewer Safari Plugin - View, fill-in and collaborate on Adobe PDFs within Safari"  - I click continue and it tells me there's "No missing components detected. Repairs are not needed." The only option is to click "OK".
    With any newer version of Adobe Reader, under Help there is no option to "Repair Adobe Reader Installation". So... I can't even try that with a new version.
    I am at a loss for solutions. Hope someone here can help! Thanks!

    There are several things you can do. My first step would be to repair permissions. If that doesn't work log on as a different user. If all works properly then you have a corrupt preference file (most likely) or a corrupt user font installed in your user Library (less likely). If that doesn't work download Applejack. Have it repair the disk, remove all system caches and user caches. Then have it check all system and user preference files. Remove any preference files that are corrupt. Reboot and see if your system is working properly.

  • Adobe Reader 8 will not open any pdf files.

    I have a Mac OS X G5. I have Adobe Reader 8 installed. I cannot open any pdf files. It has never worked since installing it. I tried going to File> Open with> Adobe Reader> I get an error that says: the file could not be opened because the file is either not supported or it has been damaged (for example it was sent as an email attachment and wasn't correctly coded). This error occurs no matter where I get the file; email or web page.
    Any thoughts? Thanks.

    I did get around this problem by trashing Reader 8 and confirming that I still had Reader 7.05 installed
    This tip in the MacWorld forum worked for me:
    http://forums.macworld.com/thread/102114
    Now I can open pdf files from the internet or email, in Reader 7.05.

  • I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt. I would rather have my 2008 Dell at this point. what is wrong with this thing

    I HATE my new MACBOOK PRO, it will not let me open any PDF files and I downloaded the ADOBE READER three freaking times and it keeps saying that all the files are corrupt or damaged. I would rather have my 2008 Dell at this point. what is wrong with this thing

    Perhaps the PDF files are corrupted.
    Hit the command key and spacebar, a blue Spotlight in the upper right hand corner appears, now type Preview and press return on the Preview program.
    Now you can try opening the PDF's from the file menu and see what's going on.
    If they are corrupted, perhaps they are trojans from your Windows PC or gotten from a bad location online.
    Download the free ClamXav and run a scan on the possibly infected folder.

  • I downloaded reader 11 and now i cant open any pdf files, i recieve internal error

    after downloading reader 11 , I can not open any pdf files on my computer... i recieve internal error

    Well, what computer?
    Mylenium

  • DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    DynamicLink Media Server is not available. I can't open any video file in Photoshop CC and when it does, Photoshop freezers and I can't do anything else. I'm using OS X 10.9.4-3.1 GHz Intel-16 GB DDR3. Any help please?

    Indicas que no puedes abrir ningun archivo de video, se supone que has probado varios formatos, mp4, mov,..
    Has actualizado el OSX a 10.9 ?, funcionaba antes? La versión de Photoshop es la CC, no la CC 2014?
    En el menú de Ayuda>Actualizaciones, cual es el resultado, dice que esta al día?
    Tienes abiertas otras aplicaciones?
    Prueba a cerrar todo, espera media minuto y abre Photoshop a ver que ocurre.
    (Estas utilizando un MacBook Pro?)

  • PS c24 won't open any psd files - program error

    my system:
    I'm running photoshop c24 extended. I've got an iMac running osx v.10.5.6, 2.4 ghz intel core 2 duo, and have 2gb SDRAM
    This morning (29/01/09) I installed a software updates - the iLife media browser update, iDVD update, Digital Camera Raw Compatibility Update and Quicktime update. After starting my computer back up I have not been able to open any psd files in photoshop. Jpgs open all right and I am able to create new files. But, anytime that I try to open and existing psd file, it opens up and then I immediately get the following message:
    "could not complete your request because of a program error."
    If I click ok, the same message pops up again and again, essentially freezing up photoshop and forcing me to force quit the app.
    I've tried opening up the same psd files on my laptop and they open just fine. I also tried going back into time machine to retrieve earlier versions in case the psd files I was working with in case they had been corrupted. Nothing has worked... seems to be photoshop not the files.
    Any help would be greatly appreciated!

    I tried doing the "repair permissions" thing and at first I thought it worked - I was able to open a few psd files. Then I started getting the same problem again.
    I don't think ilife installed any fonts - but when I tried to open a different file just now i got a message about some corrupt font files which i didn't get earlier. So I just ran a check with fontBook on all my fonts - got rid of 5 corrupt fonts and about 50 duplicate fonts.
    I'm hesitantly optimistic in saying that I think that solved the problem!
    thanks for the help!

  • How to write a code for  open new txt file in swing

    hai all,
    now i do one project in java.that project's GUI is Swing. But i don't known swing (basic).So how to write a code for open new txt file and "Open window " in menu item on swing.that means when i click the "New" on menu that time open a new txt file. open also like that type.
    plz give me that code ! very urgent
    Advance Thanks !
    RSK

    Swing Tutorial:
    http://java.sun.com/docs/books/tutorial/uiswing/index.html
    Since you don't know the basic of swing read the tutorial, it is for your own good because it is useless if we provide you with a code you don't even understand and how it works.
    If you want a menu read the tutorial about using menus and for opening a file read using JFileChooser.
    note: don't use the word urgent because it implies that your problem is more important than others.

  • Cannot open any pdf file with Adobe Acrobat X Pro

    Unable to open any pdf files out of sudden.
    Fatal Error - Acrobat failed to send a DDE command.

    Hey 12a758y,
    You might need to choose 'Check for Updates' options in the Help menu.
    If the issue still persists, then go to 'Help > Repair Acrobat Installation' option
    Regards,
    Anubha

Maybe you are looking for

  • Presentation Variable in prompt, then BIN

    Hello, I have a 4 presentation variables, related to date which will be entered by the user (prompted). Can I use the presentation variables to setup the BINS? I have tried it and it just doesn't quite like it. Example, We a field called Issue Date N

  • TABULAR BLOCK WITH PICTURES BELOW IN REPORTS 10G

    I have a requirement to create a tablular report that usually holds 4 to 5 line items. Each line item has a picture that i must put at the bottom of the tabular block and the pictures need to be horizontal as they correspond to the items in the tab b

  • Remember Reminders are firing too early

    Hello all. My remember reminders are firing exactly one hour too early. Calendar reminders and alarm clocks are fine but any reminder for a task created in the remember app is one hour premature. This is very annoying. Has anyone else met this and if

  • Calling COBOL from Forte

    To: [email protected] cc: Subject: Calling COBOL from Forte We have a large complex COBOL program that we've purchased that we currently run on our mainframe system. We are in the process of re-writing our system into FORTE but we want to keep this C

  • Oracle.imaging.axf.resources.AxfException: javax.ejb.EJBException

    We frequently get below error while clicking on "View Task" link and does not open the task . can someone help us what can cause this. [2012-10-30T10:01:30.942-04:00] [IPM_server1] [ERROR] [] [oracle.imaging.axf] [tid: [ACTIVE].ExecuteThread: '4' for