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
ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 11-19-2005, 12:23 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Loading Local User-Selected Image
Hi all, after much digging I cannot seem to find a way to allow the user to select an image from their local filesystem which can then be loaded into memory merely for display.
I do not want to upload this image or store it anywhere except in memory, simply as an overlay. FileReference.browse() doesn't allow me to get the filepath to the image selected for security reasons, so how can I implement similar functionality?
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
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.
[CS4] Save On A Local File Without User Intervention
hey,...sorry for my english...
i work with a other application who need to have the information written in the local file without an user intervention
so...
i would like to know if it s possible to write or rewrite on a local file without intervention of the user...
whitout the ""save dialogue box" or with a managed save dialogue box...
how to write in a local file without user intervention...
i need really an answer to make real my project...
thans for your conprehension
User Login - Writing Local Files From CD-ROM.
I'm working on a program that is going on CD and the web. The client wants to be able to have users enter a name and password, have the info saved locally and save some user data locally that can be accessed later. I looking for the best way to do this.
I've looked into using Shared Objects as well as using Third Party software like SWF Studio.
Does anyone have any ideas on the best way to handle this? I do not think the Shared Object will accomplish what I need to and I really prefer not using Third Party software. There is always the idea of using Director but I really do not want to do that either. The web version should be rather simple using Flash/PHP/XML or MySQL but I'm lost for the local CD version. Ideas?
Any help is greatly appreciated.
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
Flash Access User-selected Local Files
Hi,
I'm trying to make design a music player which allows the user to play there own music from their hard drive. I would like them to be able to select a particular song from their collection, or a folder. Can this be done?
Would it use the fileReference class? If so, how do you do that?
Any ideas,
Thanks.
Flash Screensaver Doesn't Run In Local User Mode
Hi, I'm not sure if anyone could give me some tips. I've used a screensaver maker program to create a flash screensaver. The flash piece is just animation. No sound, no file/network access of any kind (such as read/write). When I login to the computer as an administrator, the screensaver runs just fine. However, when I login as a local user (without administrative rights) the screensaver does not run.
I contacted tech support of the program but they say it works fine on their computer. Well, as I said, it works fine here, too, as long as you have administrative rights.
Just as a test, I created a screensaver with images only (no flash content) and that runs fine. This tells me that the screensaver (scr) itself is good, however there might be an issue with flash running in local user mode (no admin rights at login).
I've tried to adjust flash's security settings via adobe's flash panel (somewhere on their website) but it didn't help. Is there some sort of security settings I need to be aware of whereas flash screensavers don't run unless you are logged in to your computer as an administrator?
Thanks!
--LES
XML Flash MP3 Player Caching To Local User's Machine
Hi,
I want to use this Flash MP3 player http://www.flashstar.de/tutlist/index.php3?id=943 on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.
Is it possible NOT to cache the mp3 files to the user's local machine...?
Pls let me know if there is any other flash xml mp3 player which has the same functionalities.
Please help, attached .fla file. thank you
pravyn
XML Flash MP3 Player Caching To Local User's Machine
Hi,
I want to use this Flash MP3 player http://www.flashstar.de/tutlist/index.php3?id=943 on my website to play my music compositions. It is a fantastic player, but it is caching the mp3 files to location "C:Documents and SettingsuserLocal SettingsTemporary Internet Files" on the user's machine.
Is it possible NOT to cache the mp3 files to the user's local machine...?
Pls let me know if there is any other flash xml mp3 player which has the same functionalities.
Please help, attached .fla file. thank you
pravyn
Can Flash Store Data In Flat File On User's Local Machine?
I am developing a CD ROm training piece and need to know if it's at all possible for Flash to store data on the user's machine in a flat comma delimited file without the use of any server side languages?
I need to store a user record with about 5 fields. The user would pop the CD in, take the lesson and, ideally the responses from the lesson would be stored in a local text file.
Is that possible? If so, how?
Thanks
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?
Save An Image From A Local Swf
I am making a tool that allows me to do some editing to a movieclip and then save that movieclip as an image. This swf will run on my desktop only. Is there a way to save an image to the local hard disk without using a webserver , serverside script or installing Adobe Air? All the examples I find need serverside scripts.
Refering To A Local Image File
Hello!
1. I'm trying to make an application with flash where the user could browse a picture from his/her local HD and add it to this application without uploading the image to the server.
In html this is possible by using the 'input type="file"' -form element and passing the file url to the next view which is constructed using document.write.
Could it be possible to have somekind of browse button in the first keyframe and after the user chooses a local image the second keyframe has a pointer to this local file. f.ex
file:///C:myimage.jpg so it could be seen on the flash app as a locally linked element ?
thanks alot
/s
Loading Local Image Dynamically
If I obtain a link of a graphic, e.g.JPG, at run time, can I load the graphic and show it in flash immediately? supposing all graphic links are pointed to local file, thanks!
Error Loading Local Image
I am try to load a local image, but are constantly getting :
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
although i am 100% sure the path is correct, infact there is no path, image is in current directory. I am using the following code:
Code:
var pictLdr:Loader = new Loader();
var pictURL:String = "background.jpg";
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
this.addChild(pictLdr);
Does anyone know what could be the problem?
thanks
[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
Uploading Image From Local Machine
Hi,
I need to give the user an option to upload an image from his machine and load it into a container clip allowing him to give it a effect..ie:rotate, move..
can anyone help me on this..
Thanks
Nameez
Error Loading Local Image
I am try to load a local image, but are constantly getting :
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
although i am 100% sure the path is correct, infact there is no path, image is in current directory. I am using the following code:
Code:
var pictLdr:Loader = new Loader();
var pictURL:String = "background.jpg";
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
this.addChild(pictLdr);
Does anyone what could be the problem?
thanks
Browse To And Show Local Image
Hi !
I have tried everything and search everywhere, with no luck.... so here it goes....
I want to make a stand-alone application, where I can browse my harddisk and find an image, that if selected will be loaded in the application.
Using fileReference is not the anwser since this is only for upload/download files....
I have seen some forum posts that may suggests that a javascript would be able to solve this problem, but no tutorials or actual code ....
Do you guys have any ideas or input to a sollution ?!?
Thanks in advance
Allan Pedersen
Denmark
Load Image From Local Machine
hi there,
long time lurker, first time poster
i wonder if it's possible to load an image to a flash movie from your local hard drive without uploading the image to the server?
eg:
loadMovie("C://yourImage.jpg");
it works fine locally, but once i upload it to the server, the image won't be loaded.
the reason is, i want to build a flash site that allow users to create an e-Card using their own image from local drive. i don't want users to upload anything to the server.
TIA
Load Local Image From Remote SWF
I might be getting into the security issues again, but if I know the path to a local image, can I have a remote SWF load it? ie: through loadClip?
Error Loading Local Image
I am try to load a local image, but are constantly getting :
Code:
Error #2044: Unhandled IOErrorEvent:. text=Error #2035: URL Not Found.
although i am 100% sure the path is correct, infact there is no path, image is in current directory. I am using the following code:
Code:
var pictLdr:Loader = new Loader();
var pictURL:String = "background.jpg";
var pictURLReq:URLRequest = new URLRequest(pictURL);
pictLdr.load(pictURLReq);
this.addChild(pictLdr);
Does anyone know what could be the problem?
thanks
Broswe Local Drives And Select An Image
Hi Guys,
I dont know if this can be done in flash, but I am sure someone will be able to tell me here. I want to be able to run flash, then somehow use a file browser in the swf to locate an image on a local machine and pull it into a moveclip, loader component or something along those lines. Can anyone help out? Im getting really desperate!!!!
Also, I would like to be able to press a button that will send the image to a local drive along with a text file so another swf can loadvars the image and any text. I have figured out how to load the image into another swf using a text file, but cant figure out the front end. If anyone can suggest an idea? tutorial? a finger in the appropriate direction???? Anything would help!!
im using flash 8 by the way!
Thanks Heaps
Problem With Loading Remote Image To Local Swf
Hi,
I have the following code to load an image file(jpg) from remote server to a local swf. But it just says "Error opening URL".
Quote:
var swf:MovieClip = _root.createEmptyMovieClip("swf", _root.getNextHighestDepth());
var loader:MovieClipLoader = new MovieClipLoader();
var obj:Object = {};
obj.onLoadInit = function(target_mc:MovieClip) {
trace("onLoadinit");
};
loader.addListener(obj);
loader.loadClip("http://192.168.1.2/image/image02.jpg", swf);
trace(System.security.sandboxType);
I think it's a security issue. But the result of trace(System.security.sandboxType) is localTrusted.
According to the Flash Player 8 Security document, "SWF files assigned to the local-trusted sandbox can interact with any other SWF files, and load data from anywhere (remote or local).".
I have tried this image URL in the browser and it's OK.
Now I am confused. Do you guys have any suggestions?
Any help will be appreciated.
Problem With Loading Remote Image From Local Swf
Hi,
I have the following code to load an image file(jpg) from remote server to a local swf. But it just says "Error opening URL".
Quote:
var swf:MovieClip = _root.createEmptyMovieClip("swf", _root.getNextHighestDepth());
var loader:MovieClipLoader = new MovieClipLoader();
var obj:Object = {};
obj.onLoadInit = function(target_mc:MovieClip) {
trace("onLoadinit");
};
loader.addListener(obj);
loader.loadClip("http://192.168.1.2/image/image02.jpg", swf);
trace(System.security.sandboxType);
I think it's a security issue. But the result of trace(System.security.sandboxType) is localTrusted. According to the Flash Player 8 Security document, "SWF files assigned to the local-trusted sandbox can interact with any other SWF files, and load data from anywhere (remote or local).".
I have tried this image URL in the browser and it's OK.
Now I am confused. Do you guys have any suggestions?
Any help will be appreciated.
Image Loading Working On Local Machines, Not On Internet
Here is a very tricky problem to diagnose....
Basicly, I had a bunch of arrays that contain the names of images to load. A bit of code checks what section it is in, and loads the correct array to pass on. The images load correctly on my local mac, but will not work when uploaded to the internet!
So, I've coded a website that uses a bunch of arrays internally to have its location for the pictures to load. Some specs:
- Some people may appear in different pages, so they need an entry for each section with their own order.
An example of the arrays
// Fencing, corporate identity
_global.subCIDFencing = new Array();
subCIDFencing[0] = "This Number of the array is never used! to keep sync";
subCIDFencing[1] = "CIDfencing1.jpg";
subCIDFencing[2] = "CIDfencing2.jpg";
subCIDFencing[3] = "CIDfencing3.jpg";
So for a different section, I replace the initials CID with the name of another section, and have that as a different array too.
To load these, I have this code on the little thumbnail buttons:
// Fencing in the Corp. ID
if ((_global.CurrentSubsection == "Fencing") && (_global.folioSection == "BRO")) {
_level1.loadbigPic( [_global.subBROFulda[ this.choice ]])
}
So, the CurrentSubsection is set by the section, same for folioSection.
When both of those variables match, it invokes the load picture command to pring up the right one. this.choice is just the number of the thumbnail to load. I repeat the above bunch of code for each section
So, having explained that tricky part, heres the problem - All of the images load, except when it exists in two sections (as in has a part in say, corporate id, and brochures). I can't figure out the problem any further, because this all works fine when I run it on my mac, but when its on the internet - it won't load people that are in more than one category! I've double checked the file structure is exactly the same on the remote ftp and locally, incase it couldn't find the file. No dice there
The only thing I can think of drawing at straws, is the code to invoke loadbigPic will get confused when there are two sections that have at least one part evaluate to be true.
http://www.cressaid.com.au/clients/us is the link to the online version. For an example of a page which loads fine locally, but will not work on the internet. Try going to Folio -> Corporate id -> goldacres (green with yellow dots in the middle). The thumbnail images will not load, hanging as if it can't find the file (or array?). This works properly when running locally :/
I'm stumped! any thoughts on what I could look into further to diagnose this would be greatly appreciated.
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
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-
Browsing, Picking And Displaying An Image From My Local File System
Afternoon,
I'd like to be able to browse my local file system from within a flash app, select an image and display it. I'd then like the user to be able to upload the selected file (once they've previewed it) to a server.
Unfortunately due to the security restrictions on of the FileReference Object, once you've browsed and picked a file you can't get to the file path to then display it. I like the uploading functionality of the FileReference Object with a PHP script, but due to the aforementioned issue can't use it.
Anyone got any suggestions about the best/simplest way to solve this problem?
cheers.
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
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)
|