ActionScript 1/2 :: Write A Log File?
Apr 27, 2011I have created the flash exe which will be working on the local machine. what i want is to write a log file. How can i do it...? I have tried using
[Code]...
I have created the flash exe which will be working on the local machine. what i want is to write a log file. How can i do it...? I have tried using
[Code]...
I am trying to write a class file using a .as file instead of writing code into the script tab of a .fla file.When I write stage.addChild(img); I get an error that stage is null. When I take out stage, and just write addChild(img); the code runs fine, but nothing appears on stage. Do I need to do something to set a stage active?
Is this because I don't have a Main class? My class is named after the file and I don't have a file named Main.Here is the code. As it is, it runs and I get the two trace outputs, but no graphic on my screen.
package { import flash.display.DisplayObject; import flash.display.Sprite; import flash.display.Loader; import flash.events.*; import flash.net.*; public class HelloWorldImage extends Sprite { private var background:DisplayObject, foreground:DisplayObject; private var url:String = "hw_jpg.jpg"; private var loader:Loader = new Loader( ); public function
[code].....
I want to write the bulk of data into xml file ,the data coming from the backend(mysql) using cgi by httpservice, read the xml file and bind it into list. can anyone send the sample code for this?
View 1 RepliesI've a flash project that's developed in Flash 3.0 and action script 3.0. My requirement is I need to print debug statementsinto a seperate text file. on the serverTo be in detail Let's assume that I need to print my debug statements inside the file can someone provide us with the sample codesnippet that prints stataments inside a text file?
View 3 RepliesI have some XML I've edited in ActionScript that I would like to save locally via php. My php script (called writeFile.php) is the following:
<?php
$variable = $_POST['data'];
$file = "tmp.xml";
$fh = fopen($file, 'w');
[code].....
However, no file is being created, and thus obviously nothing is being written to it.
I want write into XML file example new node or rewrite attribute. If this is possible to do with action script?
View 1 RepliesI need to save and later read some info to and from a file... I know i can do that with PHP, but how could i do that WITHOUT PHP ?
View 3 RepliesI have a lot of clips that I am working on simultaneously, along with a very large project. I see that I can combine my work into a flash project, but I need to be able to write notes to myself in each .fla file I am working on. Is there something I am missing? I'd like to outline, check off what I have done, see what needs to be done etc.
View 9 RepliesI was wondering so long that how can people analyze the trait of each file extension (of course open it in notepad is not readable) For example, I want to write a program that can read everything from .fla file like timeline, movie clips, position of each MCs or all the motion tween values. And get the image embeded in it. (I'm planning to use flash as IDE for another project.)
(The reason that I tried to read proprietary format is I want to utilize their awesome editor. What I actually want to do is, I want to make an iOS game with cocos2d. There is a code to move things around in cocos2d but there is no decent editor. So I'd like to use Flash as an editor, then convert the motion to objective-C cocos2D code by reading the .fla file.)
I'm working on a method of authentication, and i have 2 text fields named 'username' and 'pass' I want to make it so that when the user enters their username and password, that info gets stored into a text file. So when they log back in, it reads the username and password from that text file to log in.
View 3 RepliesI have an application which takes live data from internet,I want to develop another application which reads data from the internet and writes it
to an XML file (i.e. I want to save the state in an XML file).THE ONLY THING I NEED IS HOW TO WRITE THIS DATA IN AN XML FILE. I WANT TO SAVE THE XML FILE ON LOCAL DRIVE (SAY C: DRIVE OR D: DRIVE BUT ON LOCAL HARD DRIVE FOR EXAMPLE say I have a combo box which takes top 10 fifa world cup watching sites,now I want to write this information (i.e. whatever the data this combo box takes as input into an xml file).
i want to write audiodata in a flv file. I found the structure of video tag in flv to be
Name Expression Description
codecID (byte & 0x0f) » 0 2: Sorensen H.263, 3: Screen video, 4: On2 VP6, 5: On2 VP6 Alpha, 6: ScreenVideo 2
frameType (byte & 0xf0) » 4 1: keyframe, 2: inter frame, 3: disposable inter frame
[Code]...
I'm writing a Flex app which is a kind of light CMS. The front site is using an XML file which contains texts and images links. Is it possible to write some XML inside this existing file from Flex? The fileReference allows to save XML content as a new file, but not to write inside an existing one.The XML looks like:
<?xml version='1.0' encoding='utf-8'?>
<content>
</content>
[code].....
I need to write into XML file from flash action script 2 in local project?
View 1 RepliesI want to send data from flash to asp.net. so i write it to an external xml file. Then asp.net read that xml file to get data.[code]...
View 3 RepliesHow do I write a date to an xml file?
View 1 RepliesI load my xml file. Can I using action script 3.0 to write in the xml in the runtime because I want to store some data from the user when he use run the application.
View 1 Repliesis there any way to get flash (via actionscript) to write an xml file?
What I'd like to do is build a picture gallery which only requires me to upload images/thumbnails/description text to specific directories on my web server, these images will then be viewable in my gallery without me having to edit the code.
One way I've seen of doing this is to store the information about the images locations in an xml file.
Can flash/actionscript write an xml file based on the directory structure?
How do i write variables in a .txt file?
View 1 RepliesHow do i write variables in a .txt file with ActionScript?
View 1 RepliesWas thinking about a new game with Save function. But i was thinking about flash writing a file? is this possible? Can flash Edit XML-files or TXT-Files?
View 9 Repliesi'm using adobe flash cs4 to make my web site template, and also i'm using an xml file to add the menu and the item, it works ok...
but when i'm trying to write an arabic text in the xml file, the specific item don't display
i need to save and later read some info to and from a file... I know i can do that with PHP, but how could i do that WITHOUT PHP ?
View 13 RepliesI have to write some xml and save it to a file in AIR, and I've realised I'm not very good at it.My data is currently stored in an ArrayCollection of Product Objects, and needs to be serialised in the format:
Code:
<data>
<product page="1" id="product_1" pid="81100"/>
<product page="1" id="product_2" pid="81109"/>
<product page="1" id="product_3" pid="81252"/>
<product page="1" id="product_4" pid="81194"/>
</data>
At the moment, I have the following code, but it spits trying to create the product attributes.
Code:
var newXmlString:String = "<?xml version="1.0" encoding="UTF-8"?>";
var newXml:XML = new XML();
var data:XMLList = new XMLList(<data></data>)
[code]...
don't get mean and be like search for it. I've been searching for almost a year to do this task. I want to be able to have flash write to a text file or whatever is best to do so. What i want to do is when the user clicks the button it saves the text, and maybe some properties to the file so that when it is reopened its all there, Now I don't want to do flash cookies, do not want to use php or any server ways, but have this do this task offline, say flash drive, so that way their information is always with them, If you need more info, about wat the operation i'm trying to do let me,
View 2 Repliesis there any way to get flash (via actionscript) to write an xml file?What I'd like to do is build a picture gallery which only requires me to upload images/thumbnails/description text to specific directories on my web server, these images will then be viewable in my gallery without me having to edit the code.One way I've seen of doing this is to store the information about the images locations in an xml file. Can flash/actionscript write an xml file based on the directory structure?
View 2 RepliesI have my flash setup so that it stores information in an XML file. It grabs the current XML file and then appends the new data to the end of the XML file. It does this by using the short PHP file below:
[Code]....
The problem is that I want to make it so people can't just go and grab the data.xml file. How do I protect the data.xml file so that no one can access it unless it is accessed via the Flash?
I have tried messing with some .htaccess settings but can't seem to get it to work. I was thinking I could create some kind of .htaccess setting so that the data.xml file would be password protected and only the swf and php file could have access to it.
I'm new to the community, and have decided to make an account because I'm probably going to be asking a few questions about the project I am currently working on. I am probably biting off more than I can chew with this, but I need something to work on, to keep myself occupied.
The first bump in the road that I came across, and I have searched far and wide for help with this, but had no luck finding anything for AS3.
I want to make an app that saves variables to a server, and then it able to load those variables, the next time it runs.
I want to use fscommand to write a local file.
variable = "1235";
path = "file.txt";
fscommand ("save", path);
textbox1.text = "HI"; //just so i know it is getting to this point.
One, does this work on vista? I am running vista so that may be why its not working.
Two, I also heard rumors about it not working in IE7 or higher, is that true?
Three, I also have read that it only works when running the swf file in flash projector, is that true?
I see references to this all over. but no specifics on how to write a text file from Flash CS5. I am collecting responses during a assessment lesson and I want to write the collected responses to a text file on a local and/or a server.
View 2 Replies