Opening Local Files Via A .swf
Ok i have a slight problem with opening local files.I want it so when you click a button, it opens a file in a different folder to the on ethe .swf with the button is in. For example, when the "load page" button is clicked, i want the file at "/flash/vomitgame/index.html" to load. currently i am using this attached to a button instance, but it isnt working:on (release) {getURL("/flash/vomitgame/index.html","_blank ");}Also, i want another button to do the same thing, but open a .jpg. Would I use the same code?This is going to be put on a disc, with the "portfolio.swf" being the main file, and other files from differernt folders either opened or loaded into portfolio.swf.Can anyone help?
KirupaForum > Flash > Flash 8 (and earlier)
Posted on: 12-12-2006, 03:26 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Opening Local Files With GetURL
I know this may sound simple and probably is, but I can't figure it out. I'm using Flash MX and want to know how to open a local file using the getURL command. I am using a mac to create the files and the end product will be a CD-rom for PC.
Here's an example of what I want. If I have a file on a mac drive and the path is machd/files/xxx.txt, how would I input that address in Flash using the getURL so it will open up that file.
Also for the PC side I will need how to specify the path for a CD-rom for the file to open.
Any help on this matter would be much appreciated.
Wedge
Importing Files/ Opening Files In Files/ Adding Files Into Scenes.
Alright Here is the deal.
I got some movies, which are seperate FLA. files, and I want to eventually add all these 4 seperate files, into scenes in one main FLA. file. How do I do this so that I have the symbols ect. I am pretty sure you can't just copy/paste.
Which FLASH** guru out there can lead me in the right direction?
greatly appreciated...
*g.guru.
Opening Local Html Document
what do you do to open a html document from you local c drive. The get URL doesn't work without the (http://)
I want to do something like
getURL ("c:picturesa2.html", "_blank");
Obviously this does not work or I wouldn't have a question does anyone have a suggestion. Also what if I wanted to open a text file. For instance I want to open c:picturesa2.txt
Please help I really need this to finish my program.
Opening Local File From Projector
I'm trying to figure out how to open a Word file from a Projector movie. I've been trying to use the "exec" command from the "fscommand" but nothing happens.
Any ideas?
Opening A Local Folder With A Button
I'm trying to create a little application to put on my desktop to make accessing important links easier. When I've done something similar in the past with HTML I could just put the folder URL (e.g. "C:/system/") in an <a> tag and it would display the folder and its contents in Windows Explorer. In Flash when I do the same thing with both Goto Webpage Behavior and getURL in ActionScript, clicking on the button does not display anything.
Help would be much appreciated.
Thanks
[F8] Opening A Local Folder With Flash On CDROM
Greetings Everyone,
I was handed a project today where I need to make a cross platform (windows/OSX) CD ROM using a Flash 8 interface. All that happens is when the user clicks on a button in flash it opens up a folder on the CD ROM.
I'm guessing I'll be using the "fscommand" however my searches show me how to execute .exe files but I couldn't find anything on opening folders. Any advice?
Thank you!
Rich
Opening .pdfs And .zips From Local Folder?
I am trying to get a button to open a .pdf / .zip file in the same folder as where i saved my project ... no need for internet access...trying to put together a CD ROM.
/folder/xxx.pdf
i have tried using buttons with getURL but it doesn't work.
Any ideas?
Opening 2 Instance Of A Webpage With A Local Connection = Crash.
Ive been working on a project that gets flash and flex to talk to each other. Thats all working fine, but - when I open a second instance, the local connection fails: obviously because there is one with the same address is already open.
Now Im a little stumped as to how I can get get the second/third/etc instance working - in an elegant way.
thanks in advance!
PS this is my first post in nearly 3 years Ah flash, my first love
Local Issue With Opening Browser Window From Flash
I setup an annual report to be put onto cd in flash mx 2004 professional with a ton of components that call (when thumbnails are clicked) new browser windows of images on the cd. now that i have flash 8 installed, it says that the program is calling a potential unsafe internet address, which its not but i think the getURL function is fooling it into thinking that. now, this is made for work and our work has disabled us from changing our internet settings. is there a way to get around this?
Local Files And Creating Outside Text Files
I have two problems.
1: I can't get Flash to link to a local file instead of a website. How do you do it!!
2: I have been trying also to make Flash create a text file. I know how to make Flash load one, but I want it to create one. Is there any way to do this!?!
If anyone has the answers to my questions, i would greatly appreciate responses. Thank you.
Local Files
Is it possible in flash to play as a local movie and check for files on the file system? Create files? I've never really messed with flash as a local movie.
Linking Files - Opening Files
I am a novice on a steep learning curve!
I have just taken over a project with lots of flash/swf files which I think probably should have been setup as one file with many scenes. Is it possible to link from one file to another or will I have to start from scratch and copy and paste assets etc.
Also is it possible to create an action script for a 'button' to open a PDF file from within the movie similar to opening a URL?
Opening Files : Saving Files
Hi all, does Actionscript support the creation of simple text files?
For example, I want to create a new text file if one doesn't already exist, and then write to the file if the user chooses to save--just like using a streamreader etc.
If Actionscript supports these methods, could you point me to the documentation?
Thanks
Executing Local Files...
how can i execute a local file (specifically, a chm file [compiled html help]) by clicking a button and not opening internet explorer's download dialog?
Saving Local Files
Hi.
I know director has a way for you to be able to save a file or folder from the cd to your hardrive. Since I do not know how to use director, is there a way yo ucan d this in flash?
your help would be greatly appreciated!
Loadvariable With Local Txt Files
Is it possible to send variables to and from a local TEXT file? I can use the loadvar command to get the variables, however, I cannot manipulate them then send them back? Is it possible?
-Todd
Using Local Files For Internet
I want to use local files in a flash movie which plays into the internet.
How can I load this files into the movie?
Iīve tried something like loadMovieNum("g:\localfile.swf",1); but itīs not working.
Thanks
Swf Call Local Files?
hi
is there a way to make a running swf check a local directory of files and call or import them so thet can be used as elements in the swf when the names of the sound files are not known in advance?
i would like to be able to have a folder of changing sounds that can be used bhy the swf, so i dont know in advance the name of the files.
any help greatly appreciated
Help Linking To Local Files...
I have a page with a bunch of thumbnails. When I click on the thumbnails it opens a bigger picture into a "container" on the same page. All the full size pictures are SWF's and they are saved in a folder. I link to the folder. However when I publish my website online, it does not link to the folders. The only way it do it is if I actually type out the "http://" specific address. This becomes a problem because I have sooo many pictures that I need to be loaded.
Anybody know the solution? Sorry for the long explaination.
Thanks.
Browsing For Local Files
Here's what I want to do. I want to create a feature in my Flash application that will open a window where I can browse for PNG files and select ones to load. I know you can't do this in Flash alone, but it there a way to get directory information in JavaScript (and pass it to Flash using FSCommand)? I really want the actual browsing and selecting of files to be done in Flash, so a BROWSE button on my HTML page isn't what I'm looking for. I just need directory/file info to be passed to my SWF. Also, I am never EVER going to put this on the internet, it HAS to run locally. It would be best if I could do it with JavaScript. Also, it's fine if this only works on Windows or with IE. Does anyone know of any tutorials or pointers? Thanks a ton!
Linking To Local Files
I am developing a cd rom that is linking a button to local files on my hard drive (powerpoint, excel, Word, pdf) with the get url action. When I publish it as an .exe file and play the movie. The files link properly to the local files but don't pop up in front of my flash movie playing but behind the .exe file so the user can't really see that it linked and popped up. I've tried several ways to make this work but it still continues to link the local files and pop up behind the .exe Flash file. Is there a way to make the local files pop up in front of the flash file playing?
Thanks
Preloading Local Files From CD
Hello,
I'm creating a presentation that will consist of external swfs that will be loaded into a 'shell' that contols loading, sound, auto advancing etc. The application will initally be delivered on the web and then later on cd using the local flash player (without browser window). How will preloaders preform in this situation, I know that I cannot use the MovieClipLoader Class, as it doesnt work properly with local files... Please provide any insite that you may have.
Im assuming there will be a small delay whlie loading from cd.
Thank you much!
Josh
[CS3] - Viewing Local Files
Hi,
I have an .swf residing on the server. I'd like it to load a file from the users local machine. Is this possible?
Getting A List Of Local Files?
Hi,
I want to make a photo upload utility that allows the user to choose a local folder which then presents them with a list of images in the directory. They can then pick which images they want to upload.
The upload portion seems like it is easy now with the FileReference bits in Flash 8. However, how feasable is it to allow flash to peruse the local file structure?
Is JAVA my only option here?
Thanks in advance
Loadmovie Local Files
how can one with loadmovie (or another command) load local (on the users harddisk) files into an already loaded flashmovie within the browser? say i have a simple movie with a button:
uploadButton.onRelease = function() {
this.loadMovie("C:hello.jpg");
}
i upload this movie to the server together with the html page and load it into my browser by http. why doesn't this work?
Loading Local Files
Is there any way to load a file from the user's local machine into a Flash application without going through a server? I would like to be able to load an image directly but I suspect the only way this can be done is to first upload the file to a server (using FileReference) and then download it back into the player. Seems kind of silly to have to make this round trip when the file is already on the same machine as the player.
Downloading Local Files
I have wmv files that i need available for download from an swf (both swf and .wmv's will be on a DVD or CD). The wmv files are in a folder named WMV which is at the same level as the swf. I just want the user to be able to click on a button and select "Save As" and download the file. I've been trying to use the download() method but keep getting IO Errors and also tried using navigateToURL but it tries to download it through firefox (no "Save As" option, just tries to open with Windows Media Player) and windows media player says it can't find the file.
I'm sure I'm probably missing something very simple, but I'm new to AS 3, and Any help would be Awesome!
Thanks!!
How To Load Local Files
Hey all,
is it possible to load something thats in you library, as a external movie.
or is it possible to "preload" a external .swf?
thanks
Running Swf Files In Local
I would like running swf files in computers without internet conexion.
I donīt know if these computers have flash player, and i canīt download it from macromedia web, obviously.
I donīt know if i can generate a swf file to do that directly, or if i have to have the flash player to install every time in every computer.
Whats is the solution, and how to do it?
Thanks
AIR Load Local Files Into AIR App
I want to load a local file (stored in the applicationStorageDirectory) into my app. Do I make a reference to the file with a File instance and then pull that file in with a URLLoader(new URLRequest(File))?
I'm not clear on how to do this.
How To Load Local Files
Hey all,
is it possible to load something thats in you library, as a external movie.
or is it possible to "preload" a external .swf?
thanks
Running Swf Files In Local
I would like running swf files in computers without internet conexion.
I donīt know if these computers have flash player, and i canīt download it from macromedia web, obviously.
I donīt know if i can generate a swf file to do that directly, or if i have to have the flash player to install every time in every computer.
Whats is the solution, and how to do it?
Thanks
Local Text Files As Variables
Hello,
How do i load local text files as variables into flash? I am making an application that can be used locvally as a stand alone app or on the web.
Problem 1:
loadVariables("text.txt", 0); // Doesn't work
loadVariables("file://text.txt", 0); // Doesn't work
Problem 2:
The text I want to load is ver complicated and I fear that its contents will skrew with the variables.
example text I want to load:
1:1 paulov 3972 {N-NSM} apostolov 652 {N-NSM} ihsou 2424
{N-GSM} cristou 5547 {N-GSM} kat 2596 {PREP} epitaghn 2003
{N-ASF} yeou 2316 {N-GSM} swthrov 4990 {N-GSM} hmwn 2257 {P-1GP}
kai 2532 {CONJ} kuriou 2962 {N-GSM} ihsou 2424 {N-GSM} cristou
5547 {N-GSM} thv 3588 {T-GSF} elpidov 1680 {N-GSF} hmwn 2257
{P-1GP}
I am at the point of ripping my hair out... :-) plz help.
THX
Populating A Combo Box With Local MP3 Files
Hi:
MX2004 question/ problem.
Can I place mp3 files in local hard drive folder, and have Actionscript populate a combo box with them, regardless of whether I add or delete MP3's to the folder?
Linking To Local Html Files
hi, please let me know if I am doing something wrong. I just registered. I'm not sure how to even read the replies. I am a student in flash, four weeks into it. Have mercy please. :-)
I have been trying for five hours to try to find how to link in a flash movie, from a button, to an external file. Not a url, but a local html (index.html) file that resides in the same directory as the flash movie.Can anyone help me, or tell me where I can go, or what search words to use to find the answer. thank you very much.
Local Files Within Flash Player
Hi, this is my second post about this subject can anyone help?
I have tried using a getURL command to open a PDF file; it wont open in Flash Player when published as a projector. It will open if I publish as html or open the file in web browsers but not in the Flash Player.
My question is can I link to local files such as PDF when viewed using Flash Player (and published as a Mac projector file). So when the user clicks on a button in Flash player the PDF fires up, if it can be done can anyone explain how?
Many thanks for your time and patience.
Kind regards, James.
Loading Local Files With Flash?
Is it possible to load local files, such as images in Flash?
I'm thinking of making a file uploader. In the first place, can Flash handle file uploads?
Thanks in advance!
Importing Local Files During Runtime (swf)?
Hi All,
I've posted in the actionscript section, but didn't get any feedbacks, if anyone can help me out would be great!
does anyone know if a running swf can access or attach images from a users' local computer? Because I know a running swf can read .as files, so I was wondering if flash can grab local jpegs/pngs/swfs in run time. Please let me know if there's anyway that this can be done, thanks!
Preloader For Local Flash Files On A Cd
Hello,
I'm creating a presentation that will consist of external swfs that will be loaded into a 'shell' that contols loading, sound, auto advancing etc. The application will initally be delivered on the web and then later on cd using the local flash player (without browser window). How will preloaders preform in this situation, I know that I cannot use the MovieClipLoader Class, as it doesnt work properly with local files... Please provide any insite that you may have.
Im assuming there will be a small delay whlie loading from cd.
Thank you much!
Josh
Editing Local Files Through Flash
i'm wondering if there's any way for flash or javascript through flash to dynamically create/edit local xml/text files. i know about using xml.send() to send xml to be written by a server-side application, and about using jsfl for editing local files during authoring, but i cannot find the answer to this question! is there any way to do this? through ajax... or anything?
thanks so much.
stephen
Playing Local Flv Files Using VB Active-x Via SWF
Hi..
I know Flash 9 player SWF( Downloaded from Internet) can not play local FLV files.
If we install an active-x DLL developed in Visual basic and bundled with SWF(To playback local FLV files) in CAB , can we play local FLV files with Active-x?
I know there is SWF componnet available in Visual Basic , so communication between VB and SWF is possible.
As we can display Active-x in web browser , there is possibility of playing local FLV files with this active-x.
Can some please throw some light on it ?
NavigateToURL Not Working With Local Files
I have a navigateToURL request works when loaded to a server but when run locally it doesn't do anything. My client would like to present this locally but I don't know how to get it to work. I'm guessing it's some security issue but how do I get around it?
My code is...
var request:URLRequest = new URLRequest("index.html");
navigateToURL(request);
Is It True You Cant Preload Local Files?
Morning All,
I recently came across a few other forums that say it is impossible to preload local files with either a progress bar or by removing an animated child on the load.COMPLETE event listener. (Actually everything on the screen remains idle until the local swf im loading, loads) I know my code is correct because when putting an internaet image URL in, the progress bar works a dream.
Can anyone confirm this and better still is there any way of preloading a local file?
Updating Local Xml Files In Flash
Howdy, hope someone out there can point me in the right direction. I've been going in circles for a few hours now.
I've got a need to write an app that's going to run locally (always) on the users machine. It's going to be modifying and creating new elements in an xml that's being created for another application. (the schema is pretty much fixed)
So far I've started off using the examples in the foundation xml for flash book.
It's got me receiving the xml using the XMLconnector component and I've got an XUpdateResolver that's generating a deltaPacket from my dataset component which is tracking the changes. Any changes made are generating a XUpdate query.
That's kinda as far as I've managed to get. The book tells me I need some serverside-fu to write the xml updates. But the whole XUpdate thing confuses me. The only references I can find to it relate to XML DB's. I need a XML db now? :-(
What I really want to know is am I barking up the wrong tree with this approach? Should I be bothering with deltaPackets and update resolvers or is there a simpler/alternative way to write the xml back?
Bit of a ramble but that's the state my mind's in today it seems. Anyone out there able to point me in the right direction? Any and all help is appreciated.
Cheers, P
-edit-
and after checking something I should have checked first.. it appears the URI for the xupdate is now no longer valid. So xupdate definately doesnt seem to be the way to go..
Access Local AND Network Files
Hi !
I don't really like the fact that Flash 8 doesn't allow us to load local and remote files, but I understand the security problem beyond this. Unfortunatelly, it's even impossible to call a simple getURL ("http://www.hotmail.com","_BLANK") without any parameters (no parameters = no problem...)
So, does anyone think that it's possible to avoid that problem using javascript ?
Thanks
Mathieu
Accessing Local Files From Server Swf
Hi,
I have a swf in a server call layers.swf. This swf is called from a local html page (in the object tag). In the same directory than the local html page, there's a folder containing several images. The remote swf tries to access these images using the path -for instance- 'img/image1.jpg', but unfortunatelly, the swf does not load these images due to a security issue (i think). Has anybody know what could be happen or how to solve it?
Thanks in advance,
Fernando
|