| Home | Tutorials | Forums | Articles | Blogs | Movies | Library | Employment | Press | Buy templates |
|
|
#1 |
|
Senior Member
|
i am trying to write text to an existing text file in the same folder as my air app..
ActionScript Code:
the code doesnt do anything to the file |
|
|
|
|
|
#2 |
|
Senior Member
|
ActionScript Code:
Run those traces and let me know what you come up with. I think you might need to do this: dskTopFile = dskTopFile.resolvePath(fileString+"\test.txt"); But I'm not sure. |
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
|
traces don't seem to work at all
|
|
|
|
|
|
#4 |
|
Senior Member
|
Yeah... I'm working on it. Gimme a minute.
![]() |
|
|
|
|
|
#5 |
|
Senior Member
|
Well,.. actually, "trace" will work, but you have to go into debug mode to see your traces when working with AIR files. Basically, instead of hitting CTRL+Enter to test your movie, just use CRTL+SHIFT+Enter. You'll see your traces then.
|
|
|
|
|
|
#6 |
|
Senior Member
|
weird.. i couldn't get the trace to work so i created a dynamic text field that was my fileString variable... found the file!!!! but thats not where i wanted it.. it is going to the My Documents folder.. while my actual air file is in in the programs/writeTest folder.. i wanted the file to be in the same folder as the AIR file.. ho do i do that?
Erik |
|
|
|
|
|
#7 |
|
Senior Member
|
I got this to work:
ActionScript Code:
|
|
|
|
|
|
#8 |
|
Senior Member
|
|
|
|
|
|
|
#9 |
|
Senior Member
|
You may find this link quite useful for making AIR apps. I personally reference it on a daily basis.
http://www.actionscriptcheatsheet.co...cheatsheet.pdf |
|
|
|
|
|
#10 |
|
Senior Member
|
that gives me an error...
1119: Access of possibly undefined property applicationResourceDirectory through a reference with static type Class. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Writing to text file | theMonitor | Flash 8 General Questions | 6 | 10-05-2006 04:40 PM |
| External text loads partially & Render text as HTML prevents loading of text file | piercedwater | ActionScript 2.0 | 20 | 03-03-2005 12:33 AM |
| PLEASE HELP: using html tags 2 load image into text file | sineadhartley | ActionScript 2.0 | 11 | 05-15-2004 01:56 PM |
| Writing to a text file using actionscript | sharadha | ActionScript 1.0 (and below) | 1 | 08-01-2002 08:08 AM |
| help writing to a text file | seniorcrap | Other Flash General Questions | 4 | 04-05-2002 06:04 AM |