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




How Can I Get A Local Path Of The Local Disk With Swf



Since FileReference.download() doesn't download multiple files, I want to download files with php ftp_get by FTP.I need to pass the local path of the local disk where I can download the files from a remote serveur. How can I get a prompt to have a user choose a folder on his computor (local disk), if any way possible?




View Complete Forum Thread with Replies

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

Saving XML To Local Disk
Hello folks,

I would like to save to a local disk an XML object generated by a projector. Is it possible to do this?

I'm running in Windows 98?

Thanks in advance,

Output To Local Disk
I am wondering if this is a possibility with flash. I would like flash to load a jpg from my SQLdatabase (the database connection is complete) , then edit the photo with line drawings and coloring, then output the edited jpg to the users local disk. I collegue is telling me that flash can not output to local disk...is that true? could it inherit a JS that would allow it?

Any advice on this would be greatly appreciated.

Cheers

Mark

Saving MovieClips To Local Disk?
Hi ,

can i program a standalone player to save a movieclip from a server to my local harddrive?

The idea is to cache a movieclip for a future use...


any ideas would be greatly appreciated!

[F8] Saving Image To Local Disk
I am wondering if this is possible. I have searched and have found no clear answer yet.

Can flash save a image to a users local disk? for example allowing a user to load a photo, draw on the photo then save the resulting edited image to their hard disk?

I would really appreciate some insight on this 'mystery'

I know I have seen it done before...

Cheers

Mark

SWF On Local Disk To Load XML From The Internet
This is not for testing purposes.
This is a game that needs to read an RSS XML with news from Yahoo.
So I want this SWF to load the XML data from the site for my clients.
How can I do that?
Please help me on this.

Thanks,
Horea

Need A Way To Create, Save Xml Files On Local Disk
in flash 5 fscommand "save" did the trick just fine- can't do that in 6.
Has anyone used 3rd party plugins or another technique for creating, saving local XML or other text files?

Thanks!

Script Works On Local Disk But Not Online
The script below works absolutely perfect when executed from my hardrive, but once i upload it, it encounters problems. There are thumbnails which when clicked on load up a larger image, which has a resizing border depending on the dimensions of the image. If the .jpg is not in the users cache, the resizing border fails and shrinks in size and the the jpg loads up in a weird position. But now that the .jpg is in the cache, if the thumbnail is clicked again, it loads up perfect.

My guess is that the resize code should only function once the jpg has fullyy loaded in the memory but can't figure the code out.

Any suggestions?

heres the code:

code: spacing = 10;
containerMC._alpha = 0;

MovieClip.prototype.loadPic = function(pic){
_root.containerMC._alpha = 0;
this.loadMovie(pic);
_root.onEnterFrame = function(){
var t = containerMC.getBytesTotal(), l = containerMC.getBytesLoaded();
if (t != 0 && Math.round(l/t) == 1){
var w = containerMC._width + spacing, h = containerMC._height + spacing;
border.resizeMe(w, h);
delete _root.onEnterFrame;
}
}
};
MovieClip.prototype.resizeMe = function(w, h){
var speed = 5;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1){
this._width = w;
this._height = h;
_root.containerMC._x = this._x - this._width/2 + spacing/2;
_root.containerMC._y = this._y - this._height/2 + spacing/2;
_root.containerMC._alpha = 100;
delete this.onEnterFrame;
}
}
};

*edit: added AS tags for clarity.
gparis

How To Select A File From A Local Disk Dinamically?
Hi. I want to do a stand alone application in wich you can select a mp3 from local disk with Flash MX
I've been searching for a function or a method who allows to open a "browser window" or to have a string with the filenames but I haven't find nothing. I also have searched for an argument for fscommand but nothing.

Does someone know if some function exists in javascript to give a string with the filenames of a folder? And in this case, how to integrate it in actionscript?

I know that I can use a explorer to do that with javascript, but I need to do it without browsers.


Thanks!

How To Select A File From A Local Disk Dinamically?
Hi. I want to do a stand alone application in wich you can select a mp3 from local disk with Flash MX
I've been searching for a function or a method who allows to open a "browser window" or to have a string with the filenames but I haven't find nothing. I also have searched for an argument for fscommand but nothing.

Does someone know if some function exists in javascript to give a string with the filenames of a folder? And in this case, how to integrate it in actionscript?

I know that I can use a explorer to do that with javascript, but I need to do it without browsers.


Thanks!

Projector - Saving XML File To Local Disk From Flash
I'm working on a flash application for a kiosk that will draw data from a local XML file to determine what displays and what doesn't. I am also adding in a screen that will allow certain people to make changes to the file from within the application (to make it point-and-click simple).

I've read the tutorial on editing XML within flash, but how do I tell Flash to resave an edited version of the XML file? The XML will be in the same directory as the projector, and will need to be written over whenever these changes are made.

Thanks for any help!!

Can I Save Image File In Flash To Local Disk?
Can I save image file in Flash to local disk?

Let say I use Bitmap class (actionScript) to manipulate the image file, and save it in my local disk, is that doable?

Save User`s "info" To Local Disk =Sol File
ok after asking in the forum for help with saving varables to a text file on the users local computer. I was told it cannot be done without the aid of a script or backend system to write the data.
this i thought was my only option for saving the information i needed.

I now want to eat my Hat and words, Because it can be done without the aid of a script or php,asp etc, all one needs is Flash MX and flash player 6 and up. ok enough rambaling lets do this........

SharedObject

Macromedia introduced shared objects with Flash MX. and works with flash player 6 and upwards! you need to find out what player the user has with action script or any other method before invokeing this command.

The shared object gives us the tools for storing actionscript data on the end user`s computer sharedObject supports local and remote, im dealing with local storage here, sharedOject, supports the following datatypes: number,string,boolean,undefined,null,array, and object.


Like cookies, shared objects are used to maintain data persistence. The object data is stored in an .sol file on the user's hard drive in the same directory as the Flash MX player. The files are stored in folders corresponding to the domain that generated the Flash movie.

here is some code i found for creating a two text box imput for name and email storing on a local system. play around with this and you will find you can do everything you require localy, even i may add somethings you shouldent.


on frame one of the movie add this code:

// Action script for sharedobject

// [Action in Frame 1]
if (init == null)
{
init = true;
so = SharedObject.getLocal("smooow.com/sharedObject");
if (so.data.name != null && so.data.email != null)
{
txtName.Text = so.data.name;
txtEmail.Text = so.data.email;
} //
}

ok next on your button called submit add this code to it :

// Action script for button

on (press)
{
if (txtName != null && txtEmail != null)
{
so.data.name = txtName.Text;
so.data.email = txtEmail.Text;
so.flush();
} // end if
}

ok thats all there is two it if you require more help with this do a google for "Sol"+sharedObject
and you will find some tutorials on sharedobjects, i hope this helps all the people like myself that simply want to store there arrays to a local txt like file

smooow

Path Local And On-line
Hello,
i've a big problem. I've done a site where image are loaded from extern. In my PC it's ok, but on-line NO OK!!! As if it doesn't find images....like folder's name is incortrect!!

Someone know why??

************************************************** *********code

while(numero<17){
loadMovie("images/advertising/piccole/img"+numero+".jpg", "img"+numero);
numero++;
}

************************************************** ********code

Thanks and sorry for my english....

How To Use Absolute Url At Local Path?
Hi guys,

I have a small problem (I think) with my .as file in flash CS3. I need to point to a XML file at local using some path..

Here´s the code of .as file what I need to change (look the underlined part)

private const url:String='H:Documents and SettingsadminMy Documentsflash_tyon_allawebsitepoll.xml';

public function LoadingXML(fla:MovieClip)
{
_fla=fla;

no_cache='?cachebuster='+new Date().getTime();

this.loadXML();


Pls help because my project´s deadline is coming closer and closer..

How To Use Absolute Url At Local Path? Pls Help
Hi guys,

I have a small problem (I think) with my .as file in flash CS3. I need to point to a XML file at local using some path..

Here´s the code of .as file what I need to change (look the underlined part)

private const url:String='H:Documents and SettingsadminMy Documentsflash_tyon_allawebsitepoll.xml';

public function LoadingXML(fla:MovieClip)
{
_fla=fla;

no_cache='?cachebuster='+new Date().getTime();

this.loadXML();

Do I need to just point like this or what?

i.e. const url:String='poll.xml';



Pls help because my project´s deadline is coming closer and closer.

Local Runtime Sharing? Local External AttachMovie?
I've been trying and searching through the forums but I think I am searching for the wrong keywords.

Is there ANY way of setting it up so that I can use attachMovie/removeMovieClip on external swf's? I've found these runtime sharing options but I am unable to make much sense of them. What I am creating is something that would always be run locally on a machine and not up on the web.

I want to use this one main 'engine' type of file that loads heaps of different movies into it. All of them swf's. Of course I realise that I could do things the loadMovie way, but it seems in this case like an option not really suitable for what I want to do.

Thanks for any tips

Launching A Local Html File From Local Swf ( Flash 8.)
Hello everyone i am having a problem launching a local html file from my swf. i have a button called print that when clicked it is supposed to open the local html file and print out the content. this is the code i used on the button

on (release){
getURL("folder/folder/file.htm","_self");
}

i also tried scripting it on the time line when that didn't work.

any ideas?
Thanks,
kool

How Do I Display Contents Of "local Disk" In Flash?
I would like to know how I can make a navigatable window within a swf that shows the contents of a local disk. The user would need to be able to view the the contents of various file folders in his/her computer.

This would be for a self contained learning exercise I am creating within Flash MX.

Thanks for your help.

SharedObjects - Path On Local Machine
Ive developed two flash-apps that are virtually identical (its a e-learning-platform) that you run on the same local machine.

I dont want to change the names for all the SharedObjects that I have in the applications, so they are the same. And they get stored in root (because they are accessed from multiple swf-files), using the code (for instance):

_global.gl_TextPath = SharedObject.getLocal("gl_TextPath", "/");

The last "/" makes sure the gl_TextPath-variable gets stored in root.

The problem is that the two applications share the same shared objects with this solution, since they are called the same and stored in the same place.

So Id like to make two different directories in root so I can keep the same name for both applications´ shared objects.

But the code that I thought would solve this doesnt work. I tried these 4 solutions:
_global.gl_TextPath = SharedObject.getLocal("gl_TextPath", "/app1");
_global.gl_TextPath = SharedObject.getLocal("gl_TextPath", "/app1/");
_global.gl_TextPath = SharedObject.getLocal("gl_TextPath", "app1/");
_global.gl_TextPath = SharedObject.getLocal("gl_TextPath", "app1");
But none works.

How can I put them in different folders?

Getting Local Shared Object Path?
Is there any way to actually retrieve the shared object local path. For Example if you had a variable such as var mySO:SharedObject = SharedObject.getLocal("XMLData", "/"); would there be a way to do something like mySO.getPath where it would return something like "C:Documents and Settings[userName]Application DataMacromediaFlash Player#SharedObjectsWKBNWUMElocalhostXMlData.s ol" ??

User Defines Local Image And Add It To A Local Swf(CD) ?
I have to run flash (swf) locally, which in my case means a CD.

What I want to do is allow the user to have a browse (local) function and pick an image from his hard disk and use that image to see a flash movie (swf) with his/her selected image in it!

Then after the user watched the movie with his/her photo on it, the user should be able to send this movie in a site(upload it). then naturally the user should be able to see it online at that site as well!

So my questions are how to have a browse function that puts the selected image somewhere I would like it to and then use this image in a flash movie (that will be a game with the photo on it).

And I guess then to send it online I do not really have to publish a new swf with the image in it, I can send seperately the swf (game) and the image file to the server through php? Did i get that right?

So far I know flash 8 has a new class for browsing, but how do I take a file selected from a user locally and use it in the movie again locally? load variable can do that but I should know the name of the file selected and also be possible to even select a local file??

Basically it is for educational movie. It will run from a CD. there will be many interactive exercices. At the end of the section there will be one game that in order to make it more personal I want to allow the users to add their photo at the game. So far everything should take place locally. Then if the user desires should be able to send in a specific site the movie he/she just watched(which means with their photo in it).

ANy ideas how I do that.

Even general ideas will help!

Thank you

Problem With Local File And Local Link
Hi to everybody,

I have installed a new version of flash player (9,0,28,0) and when I open a local file like:
c: estindex.html

When I click into some link that point to some local file like as:
c: est est.htm

I don't obtain nothing the page still remain index.html.

If i put the test directory into some server everithing working fine.
I have tried to change some machine and i have tried some old flash file but still the same!

How can solve it without upload all file everytime into some web server and without install some local web server?

Thanks in advance to everybody for any tips and sorry for my bad english!

John

FLVPlayback Source Returning Local Path
I'm having an issue with the FLVPlayback component using a Local Source when it's being viewed from online.

Setup:
config.xml contains a path to the videos.xml file
videos.xml contains the path to the FLV
loadFlv() sets the source to the FLVPlayback to the file given by videos.xml

Testing:
i'm creating a TextField dynamically that will return the FLVPlayback.source when loadFlv() is ran

Local Publishing:
When I Publish locally i get correct FLV and the source is located on the web. Just what should be happening.

Web Publishing:
When I upload my published files to the web and view, the source that is being returned is a local file, and not even to the correct folder.

I've triple checked all my files and there is no place for the Local directory to be coming from... any thoughts?

Browsing To A Local File And Passing The Path?
So.. I've got this app that going to be run 100% locally.

I'm using the following code to enable the user to browse for an image file, and place that image file in a movie clip.

import flash.net.FileReference;

var imageName:String = "1.jpg"
var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
_root.imageName = file.name;
holder_mc.loadMovie("../images/"+_root.imageName);
}

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

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

select_btn.onRollOver = function() {
this.gotoAndStop("on");
}
select_btn.onRollOut = function() {
this.gotoAndStop("off");
}
select_btn.onRelease = function() {
fileRef.browse([{description: "Image Files", extension: "*.jpg;*.gif;*.png"}]);;
}



Now, I know the problem is with the "solid" path I've written in this code line:

holder_mc.loadMovie("../images/"+_root.imageName);

I want to know if there's any way for me to pass the LOCAL path after the use has browsed and selected an image file?

Thanks so much.

Local Shared Object Storage :: Path On Win98 ?
What is the path to the local shared objects folder on Win98? Don't have a 98 box handy and I can't find the technote on MM's site.

On 2K it's C:Documents and SettingsuserApplication DataMacromediaFlash Player .

But there's no user directory on 98.

Dynamic FLVPlayback - ContentPath Require Full LOCAL Path?
I just created a 448x380 SWF with the following code:


Code:
import mx.video.*;
this.attachMovie("FLVPlayback", "corp_video", 10, {width:448, height:336, x:0, y:0});
my_FLVPlybk.skin = "SteelExternalAll.swf"
my_FLVPlybk.contentPath = "corp_demo_video.flv";
The FLA/SWF are in the same folder as SteelExternalAll.swf (the skin I copied to the local folder from Flash) and FLV file.

Why doesn't that load a video? The skin partially appears, but the video does not. Hitting "Play" gives a server error, even though I'm testing locally.

Does FLVPlayback need the full MACHINE PATH -- file:////blah blah blah -- to access that local file? You'd think not. Any suggestions are welcome and appreciated.

Thanks,
IronChefMorimoto

Local To 'other' Local Coordinates
Hi, I have a clip with twenty points in it.

I am trying to do a point hit test with these and a shape a few clips down - but nowhere near the _root.

I have used local to global before but would really like to just see what the coordinates would be on the other clip.

?? Cheers, M@)

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-

Problem With: Local Folder Path, With .swf File Inside A .html File
hey i have:

index.html
in the root of the "folder-structure".

and a photoslide.swf file inside

flashfiles/photoslide.swf

other files inside :
flashfiles/
is
flashfiles/pic1.jpg
flashfiles/pic2.jpg
flashfiles/pic3.jpg


now the index file is at root of the file structure and the photoslide.swf file is embedded in the index.html file.

and then the photoslide.swf file loads in the jpg files.

But it doenst work. unless i put the pictures inside the root level of the file structure. And by doing this i lose some of my options. anyway around this? obviously i could jsut set the photoslide.swf file to load files from the path flashfiles/pic1.jpg. But if i do this i must edit every photoslide.swf file in every flashfiles fodle ri have on the server. I have 10.


So my question is as following;

Is there a way to set the photoslide.swf file to always read from the folder the photoslide.swf file is? and not the folder it is embedded in.


thanks from Neptunesnectar

Please Help How To Get The Full File Path( The File Which Is In Local System) In Flash 8
Hi All,

It would be great if any one can help me about how to get the full file path( the file which is in local system) in flash 8.
i do not want to use any server side uploading or downloading....i just want to view the image in loader component when we select image from any location in the hard disk using browse dialog box.

here is my incomplete code ??? !!!

import flash.net.FileReference;
import mdm.FileSystem;
var lo:mx.controls.Loader;
var listener:Object = new Object();

listener.onSelect = function(file:FileReference):Void {
_root.pa.text = file.name;
////////////////////////////

//////////////////

}
var fileRef:FileReference = new FileReference();
var bro:Button;
fileRef.addListener(listener);
_root.bro.onRelease = function(){
fileRef.browse([{description: "Images", extension: "*.jpg;*.gif;"}] );
};

It would be great if any one can help on this issue...

thanks
Jiby

Local Time Of My Country And Local Time Visitor
Dear all,

For a client's website in Holland, I would like to display the current Dutch date and time and I want to show for instance American visitors their local time.

Could anyone help me by providing the code for the Dutch time (as I know how to display the local time of my visitors)?

Thank you very much!

Michiel Schenkius

Ho To Get File Name And Full Path Of A Local File
I want to be able to get the file name and it's full path of a local file. I was thinking of using "FileReference" but FileReference doesn't permint accessing the local file path. Can anyone suggest a way of doing this.

Thanks

Cgi - Local
Hi All,
Can somebody explain the meaning and use of cgi-local and how can i make a form in flash which contains information like survey. Can somebody tell me how to do it pls. Please explain this things (if possible treat me as a new flash user and dont know the cgi-local and form thing)for me.

Local So Help
hello i am useing shared objects and i would like to tranfer info in between two different files. i beleive it is in the call up function and not finding the right file because thery are named different but are on the same level on my web page. i am using this function to call up the SO

accessSO = SharedObject.getLocal("mycookie")

this works great to save with the same flash file but i can't get it to work with different ones.

macromedia says it stored them by what the file is saved as but how would i open one that is not what the file name says.
well hope you guys understand. thanks. Pat

Local Url... Sorry But I Had To Ask
Ive made a MC which loads another MC when pushing a button. And it works fine when it is on my computer, but when i put on the internet it won't work. I'm using this command:
on (release) {
_root.hm.txt.gotoAndStop(10);
loadMovie("shootteacher.swf",0);
}
my site is in danish but here it is:
http://www.myg-ind-heaven.suite.dk/d...hjemmeside.swf

Local To Global Example For D/l
I made a quick example for n8w over at Were-Here, who was asking about this. I know it's pretty straight forward, but if it helps anyone, you are welcome to d/l it. It's in the downloads section (duh) at:

http://www.developette.com

hope it helps someone...

Local And Global
hi...

can someone explain me the diff. between a normal variable & a variable created by var

i mean:
a = "name"
var a = "name"

i understand that its a local variable but wats the scope... the guide says its lasts in curly brackets only...

but can we use them across the frames...? on one timeline... or what...?

slightly confusing... i only use var for variables in loop like For (var i=0; i<=10; i++)

thanks
arpit

Local File In Pop-up
Just figured out how to launch a pop-up window, but how if I need to load a local file (say in a CD-ROM)? Flash seems can't recognise the path.

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

Detecting On Web Or Local
Hi there,

Is there a way to detect the swf be launched on Web or Local...

I am going to add a exit button for my flash video...


If it has been launched on Web I should use java script for EXIT button

If it has been launched on LOCAL I should use Fscommand for EXIT button

Any suggestions?

Cheers

About Local Connection
Can the parameters sent to the receiving side a function? I tried to send an object to the receiving side, but it seems that only properties of an object are sent. Is there any way so that I can send both the properties and method of an object to the receiving side?

Thanks.

Local Connection?
Hey guys,
Can anyone here explain how to use local connection. the explanation on Macromedia was very useful as it only showed how to transfer text fields. How do i send a variable from one movie in one html file to another movie in another html file. Thanks guys

Local To Global Help
I attach a movieholder clip on the stage. And in the movieholder clip i attach another movieclipA. how can i get the stage coordinates of the movieclipA?

Works Local But Not On The Www
hi,

I have school.swf file where i call a extra swf (calander.swf) It is calling some xml stuff. It works perfect on the local pc and preview in dreamweaver. But when I upload it it is not working. The

loadMovie("calendar.swf", "_level0.mc_loadCal");

works perfect in the school.swf. (local and on the net) But the monhthly news (that is the part what is not working) is not working on the net anymore.

this is to call the monthly news;

//_level0.dispNews(_level0.mc_loadCal.MyNewMonth);
NewsDate = new Date();
NewsMonth = NewsDate.getMonth();

_level0.dispNews(NewsMonth);
function dispNews(monthID) {
txt_monthlyNews = "";
txt_monthlyNews.scroll = 1;

Somebody has a idea. (it is a little difficult to descripe the problem) When you guys need more information...... here is the link where you can see the problem;



school.html (leftupper side there normally shoot be the monthly news stuff)

Local Application
Hey all,
I had an idea, and am wondering if I can get some input on how it would be done.

I want to make an application that my customers/visitors can download to search my online database for parts for their cars. Can Flash MX communicate to a DB via an .exe?

I would appreciate any help!

Local Paths
Here's my current problem.

I have a webpage that loads my .swf file from the same path and it works fine.

however, i have an option so that users can download the .swf to their local PC. now, when i specify to load it from their local pc (eg: value="c:/path/file.swf") it simply will not work.

i know that it used to work some time ago when i used Flash5, but not that I'm on FlashMX i cant get it working again.

Any ideas??

Local Connection
Hello all, I was wondering how to use Local Connection between two popups and have them interact together "on the fly".
An example of this is at www.microbians.com. On the first menu system, select Drag Across Windows (Win.IE). If you have any ideas on simple things like this...care to share?

Sharedobject, From Local To Cd
Hi,

My client has a flash which shows his pictures on a cd (his book). He can update the cd byhimself through a control panel that store variables in a sharedobject.

Then he copy the files (swf+jpegs) to a cd... and of course the sharedobject file do not "follow".

My question is :

How to make a sharedobject created and updated locally to "work" when the the same swf is copy on a cd?
Is it possible? If not, has someone an idea to make it?

For security reason, I do not want use a text file...

Thanks

Local Variables
I'm using the local variables actions in flash MX works great...My only pitfall is if the end user moves the file from folder to folder the local vars can't find the flash movie ... is there a way around this... also is way to save .txt files from flash on the harddrive?

thanks

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