A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: Application???

  1. #1
    Senior Member Zoranan's Avatar
    Join Date
    May 2008
    Posts
    126

    Unhappy Application???

    Ok, I originally wanted to make an application print a list. I still want to do this, however, is there a way to save the list, and then open it from the application? or possibly make it so that the save dialogue comes up, and when it saves, it will open the file (a ".txt" file in notepad)?

    From there the application user could print from notepad. (It would still be nice to include a print function in the application...)

    Please Please Please respond...

    Zoranan

  2. #2
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    you could also make the application save as html
    so you can layout the text better,

    this would be easy in php, but as an application? no idea.
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  3. #3
    Member
    Join Date
    Jun 2007
    Location
    Germany
    Posts
    76
    You can use the Application class that is only availible on .exe export. It's very easy, let me show you:

    Code:
    var path = Application.fileSaveDialog ("list.txt","List","txt");
    
    if (path != null)
    {
    	list.save(path);
    }
    else
    {
    	// user has cancelled the saving
    }
    list has to be the String variable that contains the text to be saved.

    I've thought of a workaround for printing with a batch script that is dynamically generated and executed by 3DFA. If you need more infos, just ask.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center