Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




I Want To Load Swf From Local Drive.



Hi Everybody,
Can anybody help me that I'm using preloader as soon as preloader get loaded 100% it should load swf file from local drive. Please tell me how to do this.

Regards,
Jitendra.



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-18-2005, 04:04 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

How To Load A Swf From A Local Drive To Another Swf On The Web
I have a site that has a container .swf that receives variables from a database (i.e
vchAddress=F:flashhandgardsoverviewhandgards_o ver_01.swf) and is supposed to load that local .swf (from a cd) into the container .swf (i.e.
loadMovieNum(_root.vchAddress, 20). Well I added a .cfg file, that allows the user to trust the F: drive, into the WINNT>SYSTEM32>Macromed>Flash>FlashPlayerTrust folder and we can access the local swf through the web when we don't use the container but we can't when we do. Also all this worked fine before Flash Player 8 came out. I don't know if I need to use Flash's localcontenupdater download. I tried it and don't have a clue as to whats going on. Can anyone help?

Load() XML File From Local Drive (offline App)
I'm working on a Flash (MX04) application that reads out a data.dat file from a USB dongle plugged in the computer. The .dat file is a XML file which contains some info that the application needs.

I've got this working on Mac OS X with this peace of code:

Code:
myXML.load("file:///NONAME/data.dat");
The problem is the application needs to work on a Windows PC.
I've changed the line in (it mounts as a d-drive:

Code:
myXML.load("file:///d:/data.dat");
myXML.load("file:///d:data.dat"); or
myXML.load("file:\d:data.dat");
but none seem to work.
Anyone knows the code I should be using?

tnx, Martijn

How To Load An Image Directly From A User's Local Hard Drive,not From Server
Hi Forums

how to load an image directly from a user's local hard drive,not from server, and into flash. is it possible to do without using any server side scripting languages.if any one have an idea about this please help me.....

Thanks in advance
Samprakash

Local Drive?
hi, this code works fine on my hd. but when I try to work it from the server it returns empty. how can I specify the path to user's local drive?


import flash.net.FileReference;
var listener:Object = new Object();

var imageFile:FileReference = new FileReference();
imageFile.addListener(listener);

uploadBtn.addEventListener("click", uploadImage);

function uploadImage(event:Object):Void {
imageFile.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);

}

listener.onSelect = function(selectedFile:FileReference):Void {
if (true) {
deneme = selectedFile.name;
ortaresim.contentPath = ("/"+selectedFile.name);



}
}

Preloader Off Of A Local Drive
Hi, I'm a relatively new flash developer and have run into a problem regarding preloaders. I'm working on a flash presentation that will ultimately distributed on a cd. This presentation will contain large amounts of video and the flash files take a long time to open. I've tried implementing preloaders, but they only work when I put my project on a website and try to access it from a URL. Is there any way of implementing a preloader that will work for files loaded off of a local drive? Any help would be greatly appreciated.

How To Download File From CD ROM To Local C:/ Drive
you have your flash.exe file + resource.pdf (for instance)file burned on CD-ROM.
how can you script the button in your flash movie wich will allow you to download resource.pdf to local c:/ drive?

Buttons Do Not Work On Local Drive?
My SWF files have buttons with navigation script that link one page to another. Everything works fine if I upload the files to the internet. Not so good on the local hard drive however. I have two computers and the buttons work locally on the one computer and does not respond on the other one. Both use IE and they both have identical settings under the internet options. If someone has seen this problem before and can help, I certainly would appreciate it.
Thanks,
Tom

Creating Text Files On Local Drive
Hi everyone - - we are creating a full screen Flash movie which needs to enable individuals to write a number of different text fields to a local hard drive.

Each person needs to create a different text file.

Suggestions for best ways to script this would be appreciated.

Cheers from Liverpool, UK

Download File And Save It On Local Drive
Hi,

I really need help in the actionScript in Flash 5. I'm new to Flash and I need to finish up a project within a week.

I need to download a file from the server and copy it to my local drive by clicking on a button. How should I go about it? Currently, I have tried using getURL but this will open the file in the browser which I don't wish to. I have tried loadVariables and this doesn't work at all as the file which I want to download is at the server, not at the same drive as my file.fla

Please HELP!

Flash 5 Server Vs. Local Drive Detection
Is there any way for flash 5 to detect whether it is being run off a server or off a local drive?
I ask because I am using a getURL that is sending a variable to a html page. This works fine off the local drive using:
getURL ("mypage.html%3FmyVariable="+Number(variableNumber ));

And off the server using:

getURL ("mypage.html?myVariable="+Number(variableNumber)) ;

But neither one of these works on the other. So if I can detect whether it's on a server or not I can write a simple if statement.

Any help is greatly appreciated,

Gracias

Link To Local Program On My Hard Drive
Hello and thank you in advance for your help. I am attempting to author a flash MX file that contains links to programs on my hard drive. Upon clicking said links I would like to activate the local programs. Is this possible? Any insight on how to do this? Thanks again!

Regards,
Mark

Writing To Txt File To A Local Hard Drive
i having a problem to write to txt from flash to my local hard drive.

i used a fscommand, but it doesn't work please help to find a solution this


att


Jonathan Rodriguez Cabrera

Saving An XML File To The Local Hard Drive..?
Is there a way using ActionScript 2.0 to save a properly formatted XML file to the local hard drive?

[F8] Create An Updateable Txt File On Local Drive
I'm trying to create a calender that has a user input. I need the Flash projector to create a text file that can then be updated from within the projector so that users can add and save comments to days within the calendar. It may also be necessary to have it work for multi users (from the same PC). Also to work on PC and Mac. I'm using Flash 9. (I've got the calendar part sorted out - it's just the file creation and updating that's a problem).
Thanks

Loading User-specified Mp3 Off Local Hard-drive
All this pertains to AS3 and Flash CS3.

Ok, so I'm trying to make some sort of dynamic mp3 loader, where the user can browse his/her hard-drive and have flash play back the mp3. So far I have a FileReference object and the file browsing functionality is working fine. However, all the stuff I've been reading leads me to believe that what I have to do is upload the user-selected mp3 to some server, then download it back into flash's memory so I can play it back.

But is there any way I can just skip the uploading and downloading process and just use the mp3 as is? It seems to me that uploading a file then downloading it back is a bit redundant.

Accessing A File On The Local Hard Drive?
Hi all,

A client has asked for something with the same functionality as this:

http://www.bbc.co.uk/cbeebies/tweeni...inthetweenies/

Bascially it's a kid's thing where you are told to save a picture of yourself called "me.jpg" in a directory on your hard drive called "temp", and then flash supposedly incorporates it into the animation without uploading it to a server.

I've never really seen this done elsewhere, and I can't even get that Tweenies one to work on my pc (and certainly not on the mac, but that doesn't suprise me).

Obviously I want to go back to them and advise them that's it's a bad idea, and we should be uploading the picture rather than getting Flash to read straight off the user's hard-drive, but I want to be clear about exactly why it can't / shouldn't be done.

I suspect it's something that's prevented by the added security of service pack 2 or is it something that's stopped by newer version of the flash player?

Can anyone advise?

Cheers,
Mark.

Saving An XML File To The Local Hard Drive..?
Is there a way using ActionScript 2.0 to save a properly formatted XML file to the local hard drive?

ActionScript To List Directory Contents On Local Hard Drive?
I am using Flash MX and I would like to create some ActionScript that would read a directory from a local hard drive and be able to list the directory's content to the screen...

Any ideas?

Thanks,
Bill

Small Movie (4kb) Works On Local Drive But Display Is Quirky On Web Server
hehe.. run into some unexpected problem, anyone faced this before?

Here is the URL to the triangle area finder thing I've been working on:
http://www.cabin34.net/triangle_area.html

Attached in the .zip file is the .fla, .swf and .html.

Problem:
It displays and works fine when I preview it on my on machine. However, when I upload to my school's e-learning portal, students are not able to view the swf properly. If you visit the site above you will get what I mean. The top title fails to display on some occasions (the same with the dynamic text on the 2nd display bubble. (refresh a few times and you will see the anormally)

My source file is pretty straightforward (i think) and I don't know what's wrong.. I thought it might be a loading problem so I added a preloader for it but the glitch persists (I have since removed the preloader). Besides it's only 4kb!

Need help from fellow Flashers again.

Thanks!!

How To Check File Name In Local C Drive And Run Exe File
Hi All,

I'm newbie user in action script. How can i check sepecific file name in local c: drive and if file doesn't exist in local drive download from server and run and if exist go to frame ..... .

Please help to me.

Thanks,

Cannot Load File From C:drive
I have tried heaps of things and getting desperate.
I cannot load a text file into my projector if it is not in the same place as the projector file.


If I use

on (press) {
loadVariablesNum("gorilla.txt", 0);
}

I can see all the variables in the debug output window

If I use

on (press) {
loadVariablesNum("c:/gorilla.txt", 0);
}

I get an error in my outputwindow

I have tried loading in a target instead of a level.
I need to use my c-drive because the projector will be on cd and I need to save to the local hd

Guy

Load Movie From Hard Drive
Can i load a movie into anther movie from
my local hard drive ?
the movie is not on line is just that i want to
know it it can be done. what is the command
4 that?
i have a flash movie on my desktop all i want to
do is make that movie load another movie that is
in my hard drive.
thank u 4 u time

Load Variables From Hard Drive
I've created a flash CD-ROM which writes some variables to the user's hard drive using:

on (release) {
fscommand ("save", "C:\test.txt");
}

I need to be able to load the variables but want to be able to locate the file which is situated on the hard drive how do I write the route of the file.

I thought the following would work, but it doesn't:

loadVariablesNum ("C:\test.txt", 0);

Whatever I try I seem to get a cannot find file error.

Any help is greatly appreciated!!

Load Files From CDROM Drive
hi

I want To Paly The FLV or MP3 Files In Mediaplayback Component From CDROM Drive(For Example: G:filesmovies1.flv) This is Right In My System But While I Runing The Program In Another System This is'nt Right.
Because The CDROM Drive On Each System Was Different By Another System
Now How Can I Addressing The File That The File Is Playing.

Please Help Me

Save To Hard Drive/load From Another Swf
Is there a way to trace or find out the path or extension of a swf that I would be saving varibales to the hard drive from?

it seems that saving information from one swf will NOT load into a different one...

If you know different, please let me know. It would be much appreciated!

Thank you in advance!

l2eDsanD

Load Song From Hard Drive
This would strictly be run from my pc.

I have an idea for making a movie that I will use on my active desktop in windows. I also have a folder full of mp3's. I wish to be able to type in the song's name into a textbox, hit a button, and have the song start playing. in effect, this would be a jukebox built into my desktop.

I have NO experience in 'loading' movies or variables, so any help would be great. I think its a pretty good idea.

Projector Wont Load On Dif Drive
hi,

I'm running into this weird problem, where my projector file works fine in the drive where I develope my Flash(G, but once I move the entire folder to my desktop(C, loadMovie no longer loads anything. Now, I've used relative paths, and I really can't think of what the issue is...

Any thoughts?

ps: I'm publishing for As2.0, version 8


Thanks in advance,

Al

Load Image From Hard Drive To Movieclip?
Evening All,

I am in the middle of building a kind of image editing application.

Basically the user uploads their picture and then can draw on it, (sounds silly I know!).

I was toying around with allowing them to just upload their file onto my server where it would be saved and then they could edit it through flash, but I don't want the responsibility of porn, cyber bullying etc going on on my webspace!!

So I'm trying just "loadMovie" with the local path of a file, but it is not loading when I put the swf on the web! It all works fine locally but not on the web?

Is there some security bypass I can write into my actionscript that will allow this?

Load Image From Hard Drive To Movieclip?
Evening All,

I am in the middle of building a kind of image editing application.

Basically the user uploads their picture and then can draw on it, (sounds silly I know!).

I was toying around with allowing them to just upload their file onto my server where it would be saved and then they could edit it through flash, but I don't want the responsibility of ****, child **** cyber bullying etc going on on my webspace!!

So I'm trying just "loadMovie" with the local path of a file, but it is not loading when I put the swf on the web! It all works fine locally but not on the web?

Is there some security bypass I can write into my actionscript that will allow this?

Load Image From Hard Drive To Movie Clip
Evening All,

I am in the middle of building a kind of image editing application.

Basically the user uploads their picture and then can draw on it, (sounds silly I know!).

I was toying around with allowing them to just upload their file onto my server where it would be saved and then they could edit it through flash, but I don't want the responsibility of porn, child porn cyber bullying etc going on on my webspace!!

So I'm trying just "loadMovie" with the local path of the selected file, but it not loading when I put the swf on the web! It all works file locally but not on the web?

Is there some security bypass I can write into my actionscript that will allow this?

Load Variables From Text File On Hard Drive?
Hello, all.

Can some one help me with an issue I'm having with loading variables from a text file that is sitting on a Hard Drive rather than the server?

I would like each computer station to pull data from the server based on their individual Station IDs (which is defined in the text file on the hard drive).

The path to the text file is C:StationID.txt - I am having trouble with defining the PATH to the text file on the actual hard drive.

Thank you very much

Local Exe Can't Load Local Swf's Into It?
Hi!

I have created a presentation with Flash that has an exe file which loads swf files to it with loadMovie command.

Some of our clients have had problems with this. They can execute the exe file fine, but it doesn't load any of the swf's or other external files into it. All the files are local on users computer on the same folder.

At some computers this works fine, so it seems like it is some sort of security thing that an exe file cannot load anything external to it. Has anyone had similar problems?

-sumo-

How To Access A Drive (A Drive) Through Flash?
Does anyone know how to access a drive (A drive) through flash?

Any help in the shape of tutorial or fla will be appreciated.

Thanks in advance.

External Drive/flash Drive
Ok. This might be a "duh" question, but here it goes: Is it possible to use an external drive as a flash drive? Using it to save pictures on and/or Word documents. Stuff like that. And also, would it require any installation when JUST using it for Word docs. and pics? I would like to use it for school and I'd like be able to store a LOT of things because I'd like to keep all the documents I put on it. Thanks for any help you can get me. If you have any specific comments/replies then you can e-mail me at three_days_grace_psycho@hotmail.com If you DO e-mail me, please, in the subject heading, put external drives, flash drives, or anything else that I can tell what it is about and I don't skip it. Thanks again.

How To Access A Drive (A Drive) Through Flash?
Does anyone know how to access a drive (A drive) through flash?

Any help in the shape of tutorial or fla will be appreciated.

Thanks in advance.

How To Access A Drive (A Drive) Through Flash?
Does anyone know how to access a drive (A drive) through flash?

Any help in the shape of tutorial or fla will be appreciated.

Thanks in advance.

How To Access A Drive (A Drive) Through Flash?
Does anyone know how to access a drive (A drive) through flash?

Any help in the shape of tutorial or fla will be appreciated.

Thanks in advance.

Load Local PDF- On Mac
Hia, tricky one here and cant find any reference to it anywhere online.

Just used the ftoolapp.exe method to open a local PDF on windows machines, brilliant- but now need the equivelant for the macs like yesterday-

anyone know of a sloution to opening a local pdf thru flash on a mac??

cheers
jon

Local XML Load
New to Flash and under pressure to get this working ...


Is it possible to show a tree structure of a part of a local file system and load a selected XML file into a variabe?

If so, any scripts would be a great help.

regards
Mark H., AFX

Load Swf From Server Into Local Exe
has anyone loaded an swf from an online server into a locally playing executable? If not with flash MX maybe with some 3rd party software like SWF studio?

Load A Local Xml File?
I am trying to use the FileReference class to allow a user to open an xml file.

the xml looks like this


HTML Code:
<?xml version="1.0" ?>
<level>
<row>0,0,0,0,0,0,1,1,0,0</row>
<row>0,1,0,0,0,0,1,1,0,0</row>
<row>0,1,1,0,0,0,0,1,0,0</row>
<row>0,0,1,0,0,0,0,0,1,0</row>
<row>0,0,1,1,1,0,0,0,0,0</row>
<row>0,0,0,0,1,0,0,0,0,0</row>
<row>0,0,0,0,1,1,1,1,1,0</row>
<row>0,0,0,0,0,0,0,1,0,0</row>
<row>1,1,0,0,0,0,0,0,0,1</row>
<row>0,1,1,1,0,0,0,0,0,1</row>
</level>
this is for a level editor. I want the user to be able to save xml files from this app, and load them back in to start where they left off. I know saving to a file from flash is probably not possible, but opening from flash seems like it should be.

here's the FileReference code I'm using


ActionScript Code:
import flash.net.FileReference;

var allTypes:Array = new Array();
var fileTypes:Object = new Object();
fileTypes.description = "XML (*.xml)";
fileTypes.extension = "*.xml";
allTypes.push(fileTypes);

var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
    trace("onSelect: " + file.name);
    if(!file.upload("http://www.yourdomain.com/yourUploadHandlerScript.cfm")) {
        trace("Upload dialog failed to open.");
    }
}

listener.onCancel = function(file:FileReference):Void {
    trace("onCancel");
}

listener.onOpen = function(file:FileReference):Void {
    trace("onOpen: " + file.name);
}

listener.onProgress = function(file:FileReference, bytesLoaded:Number, bytesTotal:Number):Void {
    trace("onProgress with bytesLoaded: " + bytesLoaded + " bytesTotal: " + bytesTotal);
}

listener.onComplete = function(file:FileReference):Void {
    trace("onComplete: " + file.name);
    trace(file);
    //I NEED THE DATA HERE!!!
}

listener.onHTTPError = function(file:FileReference):Void {
    trace("onHTTPError: " + file.name);
}

listener.onIOError = function(file:FileReference):Void {
    trace("onIOError: " + file.name);
}

listener.onSecurityError = function(file:FileReference, errorString:String):Void {
    trace("onSecurityError: " + file.name + " errorString: " + errorString);
}

var fileRef:FileReference = new FileReference();
fileRef.addListener(listener);
fileRef.browse(allTypes);

is it possible to access the data from the selected file using only flash?

thank you in advance!

Load Local MP3 From SWF On Server.
This seems to violate sandbox but is it possible to load a local MP3 from a SWF which is hosted on a server? I have a complicated authenticated web app which loads MP3s at runtime off the server for the administrator only(not regular users). The client is concerned about load time(although minute) caused from loading MP3s off the web server, and if possible wants to load the MP3s off his local machine instead. However, I can't move the entire app local, is has to stay on the webserver for a host of reasons. Is there any workaround to make it possible?

Eyeing up Apollo for the future...

Load Local MP3 From SWF On Server.
This seems to violate sandbox but is it possible to load a local MP3 from a SWF which is hosted on a server? I have a complicated authenticated web app which loads MP3s at runtime off the server for the administrator only(not regular users). The client is concerned about load time(although minute) caused from loading MP3s off the web server, and if possible wants to load the MP3s off his local machine instead. However, I can't move the entire app local, is has to stay on the webserver for a host of reasons. Is there any workaround to make it possible?

Eyeing up Apollo for the future...

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

XML Will Load In Local SWF, But Not In HTML
i'm trying to use an XML slideshow in my flash website. i've gotten the xml to load into a swf and show all the images just fine. then i loaded that swf into another swf (my website) and things are no longer fine. if i 'preview movie' everything still works, but when i open up the html file that i published from the website swf, the images don't show up...

...any ideas?

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

Load Variables From Local Machine?
Hi
Can any one tell me when I can save txt file on any damm local hd drive then why I cant load them back?
----I have used these actions-----
fscommand("save","c:\mytxtfile.txt")

To get back the var:----
loabVariablesNum("c:\mytxtfile.txt",0)

I get the message "Error opening url"

Thanx if any one can solve this!

Fastest Way To Load Local Variables?
I am looking for the fastest way to load variables from a local file into flash mx. The thing is the variables in the file are constantly updating. I'm not sure if I should use loadVariables, XML.load, or SharedObject.

Any help would be appreciated!

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved