Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Desktop, Mobile and non-browser Environments > Projectors and CDs

Reply
 
Thread Tools Rate Thread Display Modes
Old 04-25-2002, 05:32 PM   #1
steve
Registered User
 
Join Date: Jun 2001
Location: england
Posts: 5
Default updateable and saveable text

greetings

does anyone know is it possible to create forms in flash which have text already in place which can then be personalised by each recipient and then saved with the new text in place - neither the swf or projector files appear to have a save facility. I have tried flash launching a pdf but unless each recipient has a full version of acrobat they can view and edit but not resave the new text. Same goes for producing the files as html in dreamweaver

Attached is a small jpg with a sample form, originally produced as a pdf, you can tab through each form field enter/edit you own text then the intention is to save the updated file to your desktop

The files are part of a presentation to go on CD

any ideas

thanks
Attached Images
File Type: jpg protocolcd01.jpg (78.1 KB, 85 views)
steve is offline   Reply With Quote
Old 04-26-2002, 02:12 AM   #2
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

If you published from Flash 5 as a projector you could use the SAVE fscommand to save the variables to the user's machine. Search these forums for more info ont he command. The syntax is:
ActionScript Code:
fscommand("save","file.txt");
Note that this iwll only work if the file is published as a projector from Flash 5 as Flash MX and the Flash 6 player have had this functionality disabled to stop virus population via Flash.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Old 04-26-2002, 03:53 PM   #3
steve
Registered User
 
Join Date: Jun 2001
Location: england
Posts: 5
Default

Greetings Jesse - top man

works a treat, however as ever I have a further question, (did you look at the attached jpg?). this form will run to 28 pages
with as many as 200 text fields in it. At the moment as you go to each new page I have

loadVariablesNum ("mytext1.txt", 0);
loadVariablesNum ("mytext2.txt", 0);
loadVariablesNum ("mytext3.txt", 0); etc

these correspond to each different text field on that page

then at the bottom of each page a save button with

fscommand ("save", "mytext1.txt");
fscommand ("save", "mytext2.txt"); etc

again to correspond to each text field on that page

rather than entering all this individually is there some catch all code to load all the text fields at once, and then the same to save them as well?

thanks

steve
steve is offline   Reply With Quote
Old 04-27-2002, 11:41 AM   #4
Jesse
Administrator
 
Jesse's Avatar
 
Join Date: Nov 2000
Location: Australia
Posts: 8,612
Default

The save fscommand will save all variables on the timeline it's executed from (or maybe it's all variables on the root.. I forget.. it's undocumented). Either way, y ou shouldn't have to execute multiple save commands for that reason. You should be able to save all your variables at once. Assuming you don't reuse variable names.
__________________
Cheers

Jesse Stratford
ActionScript.org Cofounder
Email: presented in this way to stop spam-bots: My email is composed of my first name (jesse) followed by my last name (stratford) followed by @ followed by actionscript.org

Please don't email or PM me Flash questions, that's what the Forums are for!

Please don't rely on me reading my PMs either. Email me about important stuff.
Jesse is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 04:20 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.