Opening external files in Director Projector... *URGENT*

Hi, this should be really basic, but I just can't work it
out...
I want to open external files (but kept in the same root
directory as my projector file) from a mouse/button click in my
projector.
I don't know any Lingo, but I am assuming it should be pretty
straight forward... I need to launch a .pdf, a .html file (I can do
this with the goto URL behaviour actually), and a .exe.
Is there not a preset behaviour for this somewhere?
Your help is much appreciated.

> Are we sure that I am doing this right?
What about the following - copy it into your cast as a
behavior and
attach it to all your buttons, one at a time, choosing the
file you want
to open when you click each button. You might need to remove
previous
code attempts from your buttons. Be sure to include FileXtra4
with your
projector - (Menu:) Modify -> Movie -> Xtras..., click
Add, locate the
xtra and add it to the list displayed; or simply place it in
a folder
named 'Xtras' alongside your projector
property myFile
on getPropertyDescriptionList
fx4 = xtra("FileXtra4").new()
tRange = fx4.fx_FolderToList( _movie.path )
fx4 = VOID
return [#myFile: [#comment: "File to open:", #format:
#string,
#default: tRange[1], #range: tRange]]
end
on mouseUp me
tDelimiter = the itemDelimiter
the itemDelimiter = "."
tType = the last item of myFile
the itemDelimiter = tDelimiter
fx4 = xtra("FileXtra4").new()
if tType = "exe" then
OK = fx4.fx_FileRunApp( _movie.path & myFile )
else
OK = fx4.fx_FileOpenDocument( _movie.path & myFile )
end if
if ( OK <> 1 ) then
alert "Error opening file:" && myFile
&RETURN& fx4.fx_ErrorString()
end if
fx4 = VOID
end

Similar Messages

  • Opening External Files using SWF

    Hi all,
    Is there a way to open external files using swf? I have gone
    through a number of forums and all seem to tell me to open with a
    window projector. my problem is, I need to embed the swf into a
    html to be viewed online... So I need to do it in swf format.
    Any ideas?

    When you say 'external files' I presume you mean local files
    on the users hard drive.
    If that's true:
    When you say 'open' what do you mean? It could mean to open
    and load a text file/xml file or another swf in flash or it could
    mean to launch a document in its native application e.g. .doc
    launches word etc. Flash projectors can do the first thing, but not
    the second thing. And you need to know the path of the file because
    I don't believe you can retreive it from the filereference browsing
    support. 3rd party tools are necessary to really add a lot of file
    system support to projector applications, and then you can do both
    things mentioned here, without the limitations of flash player
    security which is only slightly reduced with regular projector
    files.
    The filereference class in flash is primarily for
    upload/download support. You can't 'open' local files with it.
    There is, to my current knowledge, no way you can do that with
    flash in a html page directly.
    The only way I can think that it might be possible (untested)
    would be to have a separate local MS Office (or any other host for
    a flash activex that gives filesystem access) with some embedded
    flash in a document that (perhaps) could talk via local connection
    with your html page content and which would in turn talk to its VBA
    host to request local file system activity. I don't know if this
    would work because I've not used localconnection, but perhaps it
    might.

  • Hyperlink in WebI document to open external files

    Hi all,
    I'm creating a WebI 3.0 document in Infoview and would like to know if it is possible to create a hyperlink on a drill down WebI report which will then open external file formats like PDF, TIFF, JPEG or etc. The external files reside outside BOE and they're in another system in DocuFlo.
    If yes, how can we do so? I've tried OpenDoc but got to realize that it doesn't work for external files. Is there a workaround for this?
    Hope my question is not too confusing. Thanks in advance.

    Yes Kuldeep, I could.
    But the situation that I have now is - the object that is carrying the data will open the relevant external document stored on the server.
    e.g. [State] is a dimension in my universe and the data could be US, UK and NY.
    When I activate the drill and click on US, it should open the US document. (http://servername/US.pdf)
    When I click on UK, it should open the UK document (http://servername/UK.pdf)
    My problem now is, when I click on any of the states, it opens the same document (http://servername/US.pdf). I'm running out of idea and solution
    Many many Cheers~

  • Open external files

    I`ve been doing some research for a while, but haven`t found any solution for opening external files in my java app.
    Short about my problem:
    I`m giving users of the program the opportuninty to upload different kind of files. When a file is uploaded a label with the filename appears in the screen. When they click on the label I want my program to launch the correct program... Acrobat Reader for .PDF, Paint for jpg,gif.... aso.
    I found something similar that launch the cmd.exe, but it isn`t a general solution that opens all kinds of files...
    http://forum.java.sun.com/thread.jspa?threadID=625707&messageID=3569795
    As mentioned above I haven`t, so far, found a reliable solution for the problem, and I would have apprecated any kind of help.
    YS.
    Kaare

    Pre 1.6:
    JDIC
    org.jdesktop.jdic.desktop.Desktop.open(java.io.File)
    Java 6
    java.awt.Desktop.open(java.io.File)

  • Opening external files

    Hello, im starting in flash, and i want to open external
    files with buttons, for a cd menu that i'm creating. I have created
    an fscommand folder and a launcher.bat that execute the file that i
    want when i press the button. But what i really want is to execut a
    file whatever it name is. For example i want to execute a .pdf file
    whitout calling it by the name to give me the chance to use de cd
    menu with various cds. Can anyoune help me with the code to the
    launcher.bat file? I have tryed start *.pdf but it didn't work.
    Thank you.

    does it have to be through a url, can't it be trough a path,
    like C:\file.rar or something like that? it's because the computer
    where i'm going to do the presentation does not have internet, so
    that way won't help me much

  • Open a file from a Projector?

    Hi folks,
    I'm probably just missing something, but here's my problem. I
    have a flash projector file for a client. Within the file are two
    buttons. One I want to point to a word document, and one I want to
    point to a pdf file. I don't want either of these to appear in a
    browser window though - just to launch in word / acrobat. I'm sure
    I've done this before. Any ideas?

    Sunil Vishin wrote:
    > Hi folks,
    > I'm probably just missing something, but here's my
    problem. I have a flash
    > projector file for a client. Within the file are two
    buttons. One I want to
    > point to a word document, and one I want to point to a
    pdf file. I don't want
    > either of these to appear in a browser window though -
    just to launch in word /
    > acrobat. I'm sure I've done this before. Any ideas?
    You don't have any other options because flash can't open any
    files
    except executable type. getURL is the only way if using flash
    itself.
    You could go with BAT files but it will produce ugly black
    dos window
    while processing the call. If you need it neat and easy than
    only with
    3rd party tools.
    For many years I have been using Flash Jester tool call
    JStart. Works like charm
    all the way, no extra pop up DOS windows :)
    http://flashjester.com/?section=tricks_jtools_jstart
    JStart will allow you to not only launch a program, but use
    parameters to make the
    program open files, perform special actions and just about
    anything you can use
    parameters for. You can also choose to launch files with
    their default associated
    program.
    Another solution is provided by Rick Turoczy, it's pretty old
    but it should still
    work. Perhaps give it a try.
    http://www.flashgeek.com/tutorials/07_launchapp_01.asp
    Easy to use tool that allow you to launch basically anything
    from the projector.
    As long as there is system default application supporting
    particle file.
    Best Regards
    Urami
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • How to open external files in a Java stored procedure?

    Hi y'all,
    I'm trying to open an external text file from a Java stored procedure. The java sp has been successfully loaded, resolved, published, etc. in Oracle. I'm using the following statement to try to open the file (enclosed in a try/catch block):
    BufferedReader fileObj = new BufferedReader(new FileReader("fileName.txt"));
    I'm getting a file not found error. Where is Oracle looking (i.e., what directory)?
    Your help is greatly appreciated,
    Gary

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Gary Nool ([email protected]):
    Hi y'all,
    I'm trying to open an external text file from a Java stored procedure. The java sp has been successfully loaded, resolved, published, etc. in Oracle. I'm using the following statement to try to open the file (enclosed in a try/catch block):
    BufferedReader fileObj = new BufferedReader(new FileReader("fileName.txt"));
    I'm getting a file not found error. Where is Oracle looking (i.e., what directory)?
    Your help is greatly appreciated,
    Gary<HR></BLOCKQUOTE>
    Hi Gary,
    you must use a "database directory", e.g:
    SQL>create directory WORKING_DIR as '/home2/common/';
    SQL> select * from all_directories;
    OWNER DIRECTORY_NAME
    DIRECTORY_PATH
    SYS WORKING_DIR
    /home2/common/
    Gert

  • Openeing external files with defualt open settings

    hi can NE one tell me hwo to open an external file with it's defualt viewer
    e.g. open a .mdb file in access or a .txt file in notepad
    thnx
    help would be much apreciated

    hi,
    this is what i use on a win2000 platform:
    try {
    Runtime rt = Runtime.getRuntime();
    Process p = rt.exec("cmd /c start yourFile.ext");
    } catch(Exception e) {
    System.out.println(e);
    it is possible that a full path of the file is required.
    good luck

  • Open external file

    simple: how do I open and external file such as notepad or picture?

    If you want to open the text or picture with notepad or windows picture viewer you can use the System exec vi. There is surely of lot of other methods depending on want what you exactly want to do.
    Ben
    Select the type of file and browse to it.

  • Trouble opening external files in Web Player

    When using the Web Player with Authorware 7.02, whenever I try to open an external file in Winword (Microsoft Word) it looks on the desktop.
    This happened even when I used the "get. put. bin  win  file name.doc" in an .aam web file, so instead of looking in the same folder as the .aam is in as the Map file basics instuctions indicated, it looks on the desktop.

    The FileLocation is a variable that holds the location where your file is currently being executed. It doesn't go in the aam file it goes into the JumpOutReturn call...
    JumpOutReturn("",FileLocation^"A1ChangeStrategyAgendaR.doc")
    Mike

  • System exec, get orders to the opened external file!!

    Hi,
    I would like to learm to use the system exec, i call the external soft and open, but i would like, with commands, get the soft open the file i put and do any success and close the soft , all controlater from lb.
    I would like to know, How i can say to the program, open any file or save any file????.
    I need to know the commands...
    Any link or example file....
    Regards, Fonsi.

    Hi Dennis!, Thanks for the reply...
    The program is very easy...
    One is icprog to program pic. Right now i can execute it with the system exec.vi... but i would like directly the lb order open the file , in the program is control+o and program all is F5, i dont need more, but maybe would be interesting activex...
    I attached the icprog and you can see if i could use it with the system exec or need more advanced system like activex, although i dont know anything about the activex.
    The other soft is MPASMWIN.EXE, i only need open the browse the file and asemble and close...
    Tell me if i could use the system exec for that or the activeX, and If to get it ant activeX is easy, since i am very loss on activeX.
    Regards,Fonsi.
    Attachments:
    icprog1.zip ‏871 KB

  • Opening external files directly?(without prompting)

    Hello,
    I'm making a DVD menu in flash. It will open several kinds of files. .mov .avi . ppt . pdf etc.
    But i want to open those files directly, without prompting. When i try to open non web files, a popup window appears, as shown in this screenshot: http://img32.imageshack.us/img32/5188/testtemp.jpg
    Can i remove it?
    I tryied to open the ppt file in the example with this ActionScript 2.0 code:
    on(release)
    getURL("estudo_01.pptx");
    Regards,
    Felipe

    If you're publishing an executable you need to look into the FSCommand functionality and use it to "run" an exec command against your files. Using getURL prompts the system to open the file using the browser, and naturally the browser wants to download the file first.
    Alternatively you can publish (if you have CS4 or up) a native executable using AIR 2.5 that can run simple load and execute the file but that's most likely more complex than just using FSCommand in your current project.
    Here are a couple of links to help you out with that:
    http://www.actionscript.org/forums/showthread.php3?t=18405
    http://www.northcode.com/blog.php/2007/08/14/FSCommand-EXEC-is-Broken-in-Flash-CS3

  • How i can open external file in un src in Visual Studio?

    I have the version VS2012
    I try navigate in file with F12 like function definition but this not work
    <script src="~/Scripts/Inventory/Output/Create.js"></script><link href="~/Content/bootstrap.min.css" rel="stylesheet" />@{Html.RenderPartial("_Files", @Model);}
    Is there any way to do this? without having to go find the file in the file browser? (is tedious)
    if there is no way to do this I hope VS2015 already have this
    thnks in advance

    Hi ch2o,
    Based on your issue, I tried to use the F12 to find the JS or CSS file. I find that I get same result with yours, so I did some research about your issue. I find some similar thread for your issue, so I suggest you could refer it and then check your issue
    in your side.
    Reference:
    http://stackoverflow.com/questions/11776697/how-to-quickly-open-a-file-in-visual-studio-2012
    http://stackoverflow.com/questions/2667528/is-there-a-way-to-quickly-find-files-in-visual-studio-2010
    Best Regards,
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Opening External File with bookmarks

    Thank you for any help given.
    I have set-up 1 dropdown to filter info in to a second dropdown that when i select that item, it opens a new file over the top of the page. Great.
    The file that is being opened has been set to No Bookmarks "Page Only" & view at 65% in Document Properties, However when it is opened the file opens with Bookmark tab open showing "Local Disk" & "file:///C|/Documents%20and%20Settings/Craig%20Ryan/Desktop/FILE%20SYSTEM/CPG%20Paperwork /Handouts/Inclusions Elegance.pdf" being its location & name, as well as the page being viewed at 100%?? is there an option or way that when the file is opened and the Files Properties are uses to display the file?
    i think i got it all :-)

    this is my page
    where is htmlhead?
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"
         xmlns:ui="http://java.sun.com/jsf/facelets"
         xmlns:h="http://java.sun.com/jsf/html"
         xmlns:f="http://java.sun.com/jsf/core"
         xmlns:s="http://jboss.com/products/seam/taglib"
         xmlns:selectitems="http://jboss.com/products/seam/selectitems/taglib"
         >
         <body>
              <ui:composition>
                   <f:view>
                        <h:form>
                        </h:form>
              </f:view>
         </ui:composition>
         </body>
    </html>

  • How to open .caf files in Director

    Anyone who knows how to open (import) and play .caf (CoreAudioFormat, from apple). ?
    sincerely Helge

    Convert it to something Director understands.

Maybe you are looking for

  • Adobe Bridge not running in the background

    I have bridge setup to load and run in the background when I start windows.  However it doesn't run in the background but launches and runs as normal.the icon does not load in the control panel as does other programs that load and run in the backgrou

  • Image processing over wireless

    Hi, One of our subsidaries has a setup where continuous video stream is generated from certain application servers processing real time image processing. The setup goes this way; 3 PC's which run these image processing & are connected to a 3750G swit

  • This field cannot be updated as there are open sales order lines

    When trying to enable Item Attributes then I am getting a message "This field cannot be updated as there are open sales order lines". I cancelled the Sales Order ( which was having only 1 sales order line and that is also cancelled) but still I am ge

  • Using 2 ipods with 1 itunes

    I currently have a Windows XP machine with the latest itunes on it. It's already working with my iPod nano (2G) - I just got a iPod Video (gen 5 30G). When I plug the iPodVideo in, iTunes doesn't see it. (I have plugged it into a new machine that's n

  • 1st Gen iPod Nano won't work with new Nissan interface.

    I just bought an 09 Nissan Cube that has the factory ipod interface where you can control everything through the steering wheel and radio, well my ipod has been great, yes old, but works great and always has in other cars such as the Scion xB I just