Save A String Into File In Applicationdirectory And Get Its Real Location?
May 21, 2010How to save a string into file (file.superlongextention) in applicationdirectory and get its real locationon Hard drive (like C:/files/...)?
View 1 RepliesHow to save a string into file (file.superlongextention) in applicationdirectory and get its real locationon Hard drive (like C:/files/...)?
View 1 Replieshow to change the default location that comes up when saving a new flash file.
For some reason, when I go to save a .as file that i've created in flash it choose some deeply buried folder from a project I haven't worked on in ages. I have no idea how it got set up to do that, but if possible I would love to have it default to the last location I saved a file.
i want save a xml file without select location.
Code:
_xml = <xml><test>data</test></xml>;
var ba:ByteArray = new ByteArray();
ba.writeUTFBytes(_xml);
var fr:FileReference = new FileReference();
fr.save(ba, "1.xml");
!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?
2--Is it possible to create an image file at runtime from a flash projector file?
!--Does anyone know if it possible to save the local shared object(.sol) file at a desired location or to embed it within the flash movie?
2--Is it possible to create an image file at runtime from a flash projector file?
I have a string the user has typed and I want to save it into a file on the users harddrive.
View 4 RepliesI'm wanting to be able to save a string entered by the user to a text file that they can then save on their PC...
I'm using FP10 so is there a way of doing it without having to go to the server first?
I've made a little game in Flash, and I want it to have an online leaderboard. But after looking into it, it seems it's complicated saving a simple .txt file because of security, and the tutorials I have tried to use, using PHP to do it, have not worked, not even the excercise files. So I was wondering if anyone have either a working tutorial or code to save a simple string in a txt file, or know another way of saving data remotely?
View 13 RepliesI am looking for the script to save image or pdf from swf in real-time.
View 0 RepliesI now know that it is impossible to save a swf over a virtual server (in real time) which has had its text changed dynamically. But does this apply to webcam video? What I mean is, if I allow someone to use my app on the internet, and this app allows them to record a video using their webcam, can they then save this swf to their computer?
View 1 RepliesI created a simple button that displays an error messeage: "error opening 'url" when I test the movie, but does play and opens in browser after publishing. However, it won't open in the browser in a different location. I pasted the html code in a web page but it doesn't work there nor opens in the browser in a differnet location from where it was originally published and saved. Why is that?
View 13 RepliesI'd like to know a way to measure the real length of a text string in pixels. The problem is that every character has a different width.The length property informs us of how many characters does the string have...but how do we measure the pixels (x space) in a precise way?
View 2 RepliesI'd like to know a way to measure the real length of a text string in pixels. The problem is that every character has a different width. The length property informs us of how many characters does the string have...but how do we measure the pixels (x space) in a precise way?
View 2 RepliesI am trying to save user location in a course. I am looking for the a simple way for a new Flash CS4 and Actionscript 3 user. The program will be copied to the users hard drive. I am creating a course that has 3 topics each with about 8 sections. The user can go to any of the topics in order and when they complete can do a final assessment. I am looking for a simple way to keep track if the user has finished any of the topics, then to keep track of where they are in a section, so when they return to the program they can pick up where they left off. Also, wondered if their is a next label command like the nextScene command?
View 4 RepliesI am trying to make it so that when a user launches my air app, it positions itself and sizes itself to whatever it was the last time it was opened.
[Code]....
im just wondering if theres a way to get the real x and y positions of an object in the real movie ( the root screen) that is locted in another movie
i have an object which is within 2 movie clips, first one and then another , and then my object, now i want to know what the real x and y positions of it is, not the locations realtive to the movieclip it is inside.
I am playing with the Photo Gallery and trying to find the _x location of the tmumbnails
Code:
I could run a for loop i.e. X = 1 to 10
xlocation = "_level0.thumbnail_mc.t"+X+"._x";
trace (xlocation)
[Code]....
Any way of finding the x location of a range of thumbnails
I have a string that contains a full name input, and I would like to spilt them into 2 parts and save them inside an array, first name and last name. How do I do it with string.split? My current code is myNameArray = str_adminInput.split(" "); This code only works if the names are : Jack Lee, June Poh. This code does not work if the names are: Lee Tok Kong, Tan Beng Seng.
View 7 RepliesHow do we save file locally in Flash (ActionScript 3) without displaying dialog. I know we can use the following code to save file locally but it prompts Save dialog. I don't want this dialog while saving file locally.
[Code]...
I need to create a notepad in flash.here how could i save the file by prompting the save window?
View 11 RepliesIs it possible to play the video (mp4) in real time using some flash player? What I mean by in real-time is that player would receive data on the fly, not from alredy saved file but e.g. php script (which sends appropriate content-type header) THAT IS DOWNLOADING AND 'ECHO-ing' THE FILE AT THE TIME PLAYER PLAYS IT - like e.g. some kind of live stream.
View 3 RepliesI have a C executable (named myprogram). When I run it by ./myprogram I get some output statements on the standard output of my Linux shell. I used run.php to get access to whatever is being printed to the standard output:
#run.php
<?php
$output = shell_exec('./myprogram');
echo $output;
?>
Then I called an HTTPService having id="service" to access this run.php file and I also set the text attribute of a TextArea to {service.lastResult}. When I run my Flex app, the interface kind of halts for a moment and then the TextArea displays all the 20 lines at once. But if program is run from Linux shell they appear one by one. Is there a way by which I can display a line as soon as it gets printed to standard output? This will then make the TextArea show the output in real time.
Or is Flex unable to do this? Rather how can a PHP program achieve such effect i.e. showing, whatever is being printed on standard output, concurrently in the browser in real time? Myprogram outputs 20 lines each after some microseconds. I want only the first line of standard output to appear in TextArea of Flex or in the browser (but in real time) while the program may then continue running the program.
I have used LoadVars to load a srt file and manipulate its content successfully on my desktop computer. But when I post it on a real server, it can't be used.Here is my code. It seems that LoadVars cannot read an external file on real server or function parseCSV(raw) cannot work on real server.By the way, real server there I mean that this flash running on website [URL]
Code:
//Display subtitle
function loadSubtitle(subtitlePath){
startTimes1 = new Array();
[code]....
I want to know the 'file path' when an user selects a file from 'any location' on his hard disk. I like to know is it possible to fetch the entire file URL instead of the file name alone?
Code:
var fileRef= new FileReference();
fileRef.addListener(mylistener);
mylistener.onOpen = function(file){
[Code]....
All I'm trying to do is load an external .swf file into a precise location on the stage of my existing Flash file. I've spent an hour and a half on this site search and found nothing. What do I add to my loadMovie command to place the file at specific x,y coordinates?
View 3 RepliesI have a String variable in my flex (flash builder 4) application containing CSV data. I need to allow the user to download this data to a local file. For example, giving them a "csv" button to click and it might present them with a save file dialog (and I would be sending the contents of my string variable).Is this possible / how ?I am using the ResuableFX component for the datagrid to csv. This the code I ended up with that works to save the string to a text file for the user (in a web browser):
var dg2CSV:DataGrid2CSV = new DataGrid2CSV();
dg2CSV.includeHeader=true;
dg2CSV.target=adgEncounters;
[code]......
Basically I'm trying to output the contents of an XML document into a dynamic text field (as loaded - not just its node values and content - the entire thing - into a variable called _root.log). The text field is set to show the variable value of _root.log.This is the actionscript...
PHP Code:
var newProfileXML:XML= new XML("<contacts result='true'><contact name='John Doe'/><contact name='Jane Doe'/></contacts>");
[code].....
I am trying to make an object tween from its starting location to the location of a mouse click. I have a script, but it has a very annoying ease to it.I would LIKE the object to mantain a certain speed during while traveling from its starting location to the mouse click location.
View 16 RepliesIs there a way in as3 to trace out the swf file's location. I.E. if the swf is located at C:/documents and settings/Desktop/folder1 How do I get the swf to return that path?
View 1 RepliesI'd like to add an item to a particular location in an XML file. Location of parent node is given by string variable "itemtoaddto" and the XML file is given by "myXML":
[Code]...