Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Adobe Flash [AS3] Rename flashlog.txt to something else ?

Community Beginner ,
Dec 03, 2016 Dec 03, 2016

Hello, as the title said, I would like to rename the flashlog.txt to another file name (including the extension) Because i am working with huge parsing of (.csv) that got like 70K rows, I want that when i parse all data the output of the entire trace log is changed.

Because each time we start a trace this put everything  in the same file and it's always the same name ("flashlog.txt"), Super annoying and it would be seriously good if adobe could add a few new arguments THAT will make it possible to change the name+default extension.

Problem of ByteArray is that the output is a total trash this hold un-needed character (even in plain text) and the formating sux this doesn't put the value i want on the same line (like .csv does) + LineReturn like i want, I achieve the correct formating using flash trace, but the problem is that i need to manually dump the file i need because if i add everything to do an "automatic dump" everything will be in "flashlog.txt" and with files that hold more than 75K Rows it become a several problem.

Just want adobe to add 2 new args for the flash trace, "filename" and "default extension" a bit similar to FileReference lol, Thanks !

TOPICS
ActionScript
443
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2016 Dec 04, 2016

you can assign the path/file name  by using the TraceOutputFileName property in your mm.cfg file if you use an old version of fp.  after fp 9, the location is hard-coded.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2016 Dec 04, 2016

Hello sorry if i wasn't clear let's say i have 3 ByteArray holding those .csv or whatever,

I want that when i trace the first ByteArray the output flashlog is named ByteArray1.txt when i then trace the next ByteArray a new flash trace is created and named ByteArray2.txt

I doubt we can do that in a function... Editing the mm.cfg isn't interesting because i want to set the file name relative to the Data i'm dumping in my function, using lastest flash player.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 04, 2016 Dec 04, 2016

what kind of app?  web-based?  air?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Beginner ,
Dec 04, 2016 Dec 04, 2016

Full action script 3 web based not air.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Dec 05, 2016 Dec 05, 2016
LATEST

you can use the filereference class to save a text file.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines