Dynamic Text Box Not Saving In FLA?
I have dynamic text boxes with scrollable text in them. I have two buttons that I created to scroll the text. The text box has the "selectable text" button pressed and the "render as html" button pressed. when I paste in my info into the dynamic text box, everything works great and the text just shows in the area that I initially created the dynamic text box (so in order to view all the text you have to put your cursor in the text box and scroll up or down. This works great... until I save my file, then open it back up to work on it... then all the dynamic text boxes extend as far as the end of the text that was in them. I then have to recreate it in order to work. What is going on? Why would it be doing this? I don't want to have to do this every time... please help me!
Thank you,
-- K
FlashKit > Flash Help > Flash General Help
Posted on: 08-27-2003, 11:45 PM
View Complete Forum Thread with Replies
Sponsored Links:
Problem Saving A .fla With Dynamic Text
Hello there,
Itīs be a while that i didnīt have this problem.
I make a box with dynamic text , and after i save the project (fla.) , when
i open the file again , the box is on the size of the full text.
That means that it change the box like it was static text.
Last time i had this problem , i solve it by put the dynamic box and the
"scrollbar" component on the same layer.
But this time , iīm not using the component.
Iīve made a "up" and "down" button , and also put it on the same layer
as the dynamic box.
But itīs not working.
I have this problem again.!!
If anyone knows how to solve this or has the same problem,
reply so we can discuss this issue.
thanks
View Replies !
View Related
Dynamic Text And Saving/loading
I have 2 dynamic text boxes and a save button on a movie called inputform.
the variable names for these 2 text boxes are:
lastname
age
the instance name of the button is save.
When a user finishes typing their lastname and age, and after they click the save button, I want the values to be stored in a text file.
On another movie clip called resultform, I also have 2 dynamic text boxes. I want the values of these 2 text boxes to populate with the values inputed from the inputform (of which are now stored in a text file)
I am using FlashMX...can you help me with the coding please?
View Replies !
View Related
Problem Saving A .fla With Dynamic Text
hello there,
Itīs be a while that i didnīt have this problem.
I make a box with dynamic text , and after i save the project (fla.) , when
i open the file again , the box is on the size of the full text.
That means that it change the box like it was static text.
Last time i had this problem , i solve it by put the dynamic box and the
"scrollbar" component on the same layer.
But this time , iīm not using the component.
Iīve made a "up" and "down" button , and also put it on the same layer
as the dynamic box.
But itīs not working.
I have this problem again.!!
If anyone knows how to solve this or has the same problem,
reply so we can discuss this issue.
thanks
View Replies !
View Related
Saving Text Files With A Dynamic Filename
How can I save all variables to a text file which has a dynamic filename? I want to save all my variables in an invoice with the invoice number and the extension .txt on a hard drive on a standalone flash application. The invoice number is generated each time you start a new invoice, but then I want to:
1- save the file as invoiceno(the value of it).txt and also 2- how can i later retrieve it?
View Replies !
View Related
Dynamic Saving
Hey all,
I am trying to set up something where people dynamically create something, using dynamic text mainly, and then they can save it to their computers. I have completed just about the entire thing except the saving part. A site that has the save function I am looking for is www.FlashButtons.com - You can create a button, then save it, and somehow it "freezes" what they dynamically created into a static file. Any help with this would be greatly appreciated.
Thanks,
Roller Rebel
Also: If you know how to do this, and it's not a hassle for you could you contact me on AIM at r0ller rebel and explain it to me? Thanks a bunch.
View Replies !
View Related
Saving Dynamic Files
http://www.redonegroup.com/saving_files_as3/
I have this code:
Code:
package
{
import flash.display.Sprite;
import flash.display.StageAlign;
import flash.display.StageScaleMode;
import flash.events.Event;
import flash.events.MouseEvent;
import flash.net.*;
import flash.text.TextField;
import flash.text.TextFieldType;
import flash.text.TextFormat;
public class SavingToTextFiles extends Sprite
{
private var txt_title:TextField;
private var txt_title_input:TextField;
private var txt_img:TextField;
private var txt_img_input:TextField;
private var txt_comment:TextField;
private var txt_comment_input:TextField;
private var txt_send:TextField;
private varstatus_txt:TextField;
private var txt_format:TextFormat;
private var myData:URLRequest;
private var variables:URLVariables;
private var loader:URLLoader;
private var numOfObject:uint;
public function SavingToTextFiles ()
{
init();
}
private function init() : void
{
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
buildForm();
trace(this);
trace(this.getChildAt(0).name);
trace(this.numChildren);
}
private function buildForm () : void
{
txt_title = new TextField ();
txt_title.text = "Title: ";
txt_title.x = 50;
txt_title.y = 50;
txt_title_input = new TextField ();
txt_title_input.background = true;
txt_title_input.width = 180;
txt_title_input.height = 20;
txt_title_input.x = 110;
txt_title_input.y = 50;
txt_title_input.type = TextFieldType.INPUT;
txt_img = new TextField ();
txt_img.text = "Image: ";
txt_img.x = 50;
txt_img.y = 80;
txt_img_input = new TextField ();
txt_img_input.background = true;
txt_img_input.type = TextFieldType.INPUT;
txt_img_input.width = 180;
txt_img_input.height = 20;
txt_img_input.x = 110;
txt_img_input.y = 80;
txt_comment = new TextField ();
txt_comment.text = "Comment: ";
txt_comment.x = 50;
txt_comment.y = 110;
txt_comment_input = new TextField();
txt_comment_input.background = true;
txt_comment_input.type = TextFieldType.INPUT;
txt_comment_input.x = 110;
txt_comment_input.y = 110;
txt_comment_input.width = 180
txt_comment_input.height = 60;
txt_send = new TextField();
txt_send.selectable =false;
txt_send.text = "send";
txt_send.height = 20;
status_txt = new TextField();
status_txt.x = 50;
status_txt.y = 10;
status_txt.width = 200;
status_txt.height = 20;
status_txt.text = "";
var s:Sprite = new Sprite;
s.buttonMode=true;
s.x = 265;
s.y = 175;
addChild(txt_title);
addChild(txt_title_input);
addChild(txt_img);
addChild(txt_img_input);
addChild(txt_comment);
addChild(txt_comment_input);
addChild(status_txt);
s.addChild(txt_send);
addChild(s);
s.addEventListener(MouseEvent.MOUSE_DOWN,sendData);
}
private function sendData (e:MouseEvent) : void
{
if(txt_title_input.text != "" && txt_comment_input.text != "" && txt_img.text != "")
{
myData = new URLRequest("http://www.redonegroup.com/saving_files_as3/save.php");
myData.method = URLRequestMethod.POST;
variables = new URLVariables ();
variables.Title = txt_title_input.text;
variables.Comments = txt_comment_input.text;
variables.Image = txt_img_input.text;
myData.data = variables;
loader = new URLLoader ();
loader.dataFormat = URLLoaderDataFormat.VARIABLES;
loader.addEventListener(Event.COMPLETE,dataOnLoad);
loader.load(myData);
}else {
status_txt.text = "All Fields are mandatory";
}
}
private function dataOnLoad (e:Event) :void
{
if(e.target.data.writing == "Ok")
{
status_txt.text="Submited data was saved";
}else {
status_txt.text="Error in saving submitted data";
}
}
}
}
And its giving me this error:
Error: Error #2101: The String passed to URLVariables.decode() must be a URL-encoded query string containing name/value pairs.
at Error$/throwError()
at flash.net::URLVariables/decode()
at flash.net::URLVariables$iinit()
at flash.net::URLLoader/flash.net:URLLoader:nComplete()
here is the php code
PHP Code:
<?php
//Capture data from $_POST array
$title = $_POST['Title'];
$comments = $_POST['Comments'];
$image = $_POST['Image'];
//Make one big string in a format Flash understand
$toSave ="Title=$title&Comments=$comments&Image=.$image";
//Open a file in write mode
$fp = fopen("http://www.redonegroup.com/saving_files_as3/save.txt", "w");
if(fwrite($fp, $toSave)) echo "writing=Ok&";
else echo "writing=Error&"
fclose($fp);
?>
can anyone help me out what is wrong, Please! ?
View Replies !
View Related
Tools For Saving Dynamic Flash Websites
hello fellow flash users,
What software do you guys use to save flash websites ? I have used many of them including offline explorer, inquiry, offline commander, flash saver, saveflash, etc.... None of these utilities can deal with dynamically loading .swfs. That is they'll save the initial .swf at a certain url, but cannot save the subsquently dynamically loaded swfs.
Really would appreciate anyone who knows of a better way to save an "ENTIRE" flash website with link translated for offline viewing and archiving.
p.s: the best utility i use ( comes close to saving an entire website with offline link translation ) is offline commander. But this program is no longer being updated as of 2005. therefore it will not load flash 8 or up swfs.
thank you guys.
View Replies !
View Related
SketchPad HELP - Saving/Redrawing Dynamic Drawings...
Hi guys
I am currently making a sketchpad in flash, the user can draw dynamic squares, line, circles, freehand etc....
I need to be able to save what the user has drawn, or click a "redraw" button and then flash re-creates what the user has just drawn.
Each different line, circle etc is draw in a new movieclip on a higher depth than the previous movieclip.
Does anyone know how to do this, or any good tutorials or .fla files I could use to help me!?
Many thanks
Jonny
View Replies !
View Related
Please,somebody - Anybody MERCY... Saving Text To Text Fiel On HD?
Hi everybody,
just wondering of anyone has any idea how to do this... it's been driving me mad..... :'(
working on this CDRom project where I need to set up a little notepad type utility, ie user types something in, clicks button which sends it to new text field, with date etc attached. Then there needs to be an option to save this to a text file on the hard disk...
As it's not going online it needs to be contained on the CD, but save this file externally onto PC, load it back in on request....
tried something like this:
on (release) {
fscommand("save", mainvar+".txt" ;
}
which saves the file, but no save box pops up , then I can't get it load in again either....
Seems to me that this shouldn't be that hard - well for script heads anyway - but I'm so stuck... can't figure it out....
I'd really appreciate it if someone could give me any thoughts, tips or tricks on this... before I lose my sanity....
hoping for some inspiration Prisca
View Replies !
View Related
Dynamic Saving/export Of Gifs From Flash Movie
Just wondering if anyone has any thoughts on how this might be done, I can't seem to get my mind around it.
I want to build a face generator that will allow users to create a face and then save it out of flash to a gif file.
So, let's say that I understand how to make the face generator... Well, I can imagine, and think I can pull it off. It is just the saving of the file that I don't know how to do.
The gifs will be used as avatars for members of the site after they are created.
The site is on a coldfusionMX server and the version of flash is MX as well.
Thanks in advance for any suggestions.
View Replies !
View Related
Saving From Grid Via Dynamic Variables & Accessing PDA Keyboard Via Flash
As a part of a university course in interaction design we are making an application which is supposed to be used on a PDA. Me and my partner (as well as another group) have encountered two problems which we don't know how to solve.
The first one is saving all the data in a datagrid when leaving the frame the grid is placed in. The data in the grid is being generated by the user which makes it impossible to know how many items there are, except for the fact that there will be at least two items in the grid. One of the items will always be edited by the user in the following step and therefore doesn't need to be saved. We are trying to solve this via dynamic variables that are being created in a for-loop. Unfortunaly there is something that goes wrong when we try to create the variables in following ways (inspired by the solutions in declair dynamic Variable names??? Howto? and A difficult dynamic variable problem):
Code:
//antalNu = number of items in grid +1 - i suppose dataGrid.length could be
//used as well?
for (local = antalNu - 1; local>0; local--)
{
//Trying w as well as w/o a listener:
this["snabbForseelse"+lokal] = "testtext";
}
trace (snabbForseelse2);
//Returns undefined
var theSelectedItem = my_datGrid.getColumnAt(local).label;
trace (theSelectedItem);
//Returns undefined
trace (["snabbForseelse"+lokal]);
//Returns snabbForseelseX (depending on value of X)
How should we go about to solve the problem? Can it be done?
Our second question (not sure wether it's customary to post alla questions together or seperately in this forum) is about different FlashPlayers for PDAs. We are using a HP running Windows Mobile 2003 SE if that matters. What we want to do is to play in fullscreen-mode (or with the start-bar) to be able to make the menu-bar look like we want. We've found players capable of doing this, but they don't seem to support using the soft keyboard at the same time, which is crucial to us. We therefore wonder if there is any way of accessing the soft keyboard via flash or if there are any players which lets you access the soft keyboard but still edit the rest of the menu-bar?
Thanks in advance!
View Replies !
View Related
Saving Text
I'm a bit of a newbie, so please forgive me if this is a question that has been asked before. Is there a way to save text that is imputed in the Flash movie as a .TXT file? Say as like a Diary or Journal. I figured out how to load a text file. I found some examples here at Flash Kit, but for the life of me, can't get them to work. Any help would be appreciated. Thanks in advance to all the kind souls willing to share their vast knowledge.
Gerry
View Replies !
View Related
Saving Text In Txt... PLS HELP...
Hello
I'm new here... and my English is not soo good
so pls try to understand...
Well... I made a game in Flash 5, and when some one is finish to play he has a score and the score is in a text box
for exm: "score" and there is anuther text box for his name: "name".
Now I'm wanna do a record table
And that the record will be save in a text file... or in the internet
If some one now how to do it pls let me know...
tnx
asdasdasd....
View Replies !
View Related
Saving Text Onfo
Hi and HEEEEEEEEELP!
I'm putting together a cd-rom on a Mac for PC that has 274 images that has 6 input fields for each. The info will need to be changed and updated regualarly.
Dose anyone know a script that will save the new info when the cd is re-inserted?
This will be a great help.
View Replies !
View Related
Saving To A Text File
Hello,
I am trying to create a project that saves variables to a text file. Flash is able to read data in from text files, but not write to them. I understand there is a work around using the "exec" command. I have only seen it with Flash 4, does it work with Flash 5? I have seen a couple variations of this......
Code:
fscommand ("exec", "command.com" add chr(9) add "/c" add chr(9) add "echo" add chr(9) add "text3=" add TypeVar add ">c:content.txt");
Code:
fscommand ("exec", "c|: extsavesaver.exe" add chr(9) add variable1 add chr(9) add variable2);
I am looking at a couple tutorials from here, but I cannot seem to get them to work.
notepad-Emad_Ham-3431
Rune Studios Flash Tutorial
Save to disc- Guy Watson
I am on a Windows Millenium OS, wondering if that might be a problem? Anyone know of an easy to follow tutorial of how to save data to a text file?
Thx in advance
~GD~
View Replies !
View Related
Saving Text Files?
All,
I am trying to open, edit and save text files in MX via a Input text field.
Loading a text file is easy.
Saving is not.
I know I need to use FS in projector. But where can I find an easy way to save text files? A tutorial etc?
It's likley I will only need to do this on a PC, not live on the web
Thanks for your help in advance!
View Replies !
View Related
Saving To Text File
I am almost out of patience (and time)and resorting to the seeking HELP! I am trying to save variables back out to a text file. I have no problem loading the varibles (using LoadVars). However, when I go to save it get Sh**. I do not receive any errors and all seems well except that nothing is saved. I have tried saveandLoad(), the fscommand("save"...) as well as shared objects all with the same result.. No change to the external text file.
I have pulled every example I can find from Flash Bibles to the various forums, yet they all talk about the above methods and how they 'should' work.
What is it that I am missing or not doing that would prevent any one or all the above methods from not working. Can anybody provide me with insite or better yet an that works (100%) so that I can see if it is me or something else?
downright
View Replies !
View Related
Saving The Text Into The Database
Hi all,
I had create an input textbox with a variable name called "Text1";
I need to save it into the database using asp. I had already written the asp code. May I know how to write the actionscript to save the text I entered into the database?
Regards
Fernado
View Replies !
View Related
Loading And Saving Text.
I used these 2 tutorials to work out how to load and save text.
http://www.flash-db.com/Tutorials/saving/
http://www.flash-db.com/Tutorials/loading/
Now i wanna load text into a text box, edit it and have a save button that will write it to the text file. I cant work out how to put the two scripts together. can someone please give me a little bit of help thanks.
View Replies !
View Related
Saving To Text File
Hi, I'm pretty new to Flash and Actionscript, and hope that someone can help with the problem. It seems to be something that I would have expected to be fairly simple but doesn't seem to be after searching online.
I'm using Flash MX, and making a quiz. I'm using one of the quiz templates, but have adapted the interface. On the final screen (with the score) I want people to be able to input their details, and then submit these (along with their score), to be saved in a text file (or database). The quiz will not be running from a server, it is intended to be run from the hard disk and the results saved to the same computer.
If anyone could help with this at all I'd be very grateful!
View Replies !
View Related
Saving To Text File
I have created an Input Text field at the front end of a Flash presentation for people to log-in.
These log-in names I want to record and save to a .txt file (preferably).
Can any one help.
View Replies !
View Related
Saving Input Text
Hi I'm working on a project in which i need to be able to save input text and possibly choices from lists and radio buttons etc and even maybe video files from a webcam/microphone files - does anyone know how i can save this stuff to a harddrive whilst on a flash application using ActionScript 3.0? Basically the idea is for a kiosk pc to be used to allow people to enter a competition and nominate other people - can anyone help it would save my life!
View Replies !
View Related
Saving Text Fields To HD
This might be a really dumb question, but is there a way to set up a script to save data to a HD from Flash.
Essentially, I'm creating a small application (which will run off line) that has input fields. And I want to give the user the ability to save what they have typed in as a .txt file?
Is this possible in Flash 5?
If so how do you set it up to save multiple fields...I'm lost on this one.
View Replies !
View Related
Saving Inut Text
hi,
does anyone know how to save input text?
i am trying to create a flash claender that you can write your notes in, so i need the ability to save what has been inputed, and go back to it later
does anyone know how to do that?
cheers
View Replies !
View Related
Saving To Xml Or Text File
hey im trying to bulid a level editor for a flash game and was wondering if anyone knows how to save XML to a file locally? here's my method to create the XML from flash:
ActionScript Code:
private function saveIT(e:Event):void
{
var objectStrings:String = "<objects>";
var XMLfile:XML;
var currentObject:picture;
if(editLayer.numChildren > 0)
{
for(var i = 0; i < editLayer.numChildren; i++)
{
objectStrings += "<object><layer>editLayer</layer><type>" + editLayer.getChildAt(i).name + "</type><zIndex>" + i + "</zIndex><xValue>" +
editLayer.getChildAt(i).x + "</xValue><yValue>" + editLayer.getChildAt(i).y + "</yValue></object>";
//trace(objectStrings);
}
}
else
trace("Nothing to save on the edit layer");
objectStrings += "</objects>";
XMLfile = new XML(objectStrings);
trace(XMLfile);
}
View Replies !
View Related
SAVING INPUT TEXT - PLEASE HELP
I have movie clips list1 and list2 that contain names. All names are entered as input text. I would like these names to remain even when I change from page to page. However, the names disappear when I go from list1 to list2 or vice versa. How can I keep these names undeleted?
Thanks for your help.
German
View Replies !
View Related
Saving External Text?
I have created a web page with a flash movie that gets its data (text only) from an external text document.
I have two questions:
1 in doing my load var I used absolute linking becuase I couldn't get relative links to work. Is there a way to get relative links?
2. I want to create an admin page for the client that allows him to add to the text doc via a dynamic text movie. Can I
a) get the content of the text doc
b) store that in a variable,
c) take his input and put it in a second variable
d) add the second variable to the first--thus adding it to the list
e) then save all the info as the text doc, overwriting it?
If yes, what would the action script look like? I am out of my depth.
View Replies !
View Related
Saving Text As A Variable
Here's my issue. I want to save a string of text as a variable. My code is this:
_global.scene_txt = "btnHome";
I am then using that variable in the code:
on (rollOut) {
slider.yMove = _global.scene_txt._y;
}
I'm creating a sliding menu selector on my site.
Slider is the name of my movieclip instance that slides along the menu.
"btnHome" is the instance name of the button that I want it to slide to.
I've tried to set the variable a couple different ways. Without the "_global." I've tried using the "var" command. I've tried putting in the actual instance name (btnHome) in the second code and it works fine, which means it's not a problem with the code elsewhere. It's just not recognizing "_global.scene_txt" as "btnHome"
None of them have worked.
I'm still very new to flash, so any help is greatly appreciated. Or if you need more information...
Thanks,
iLan
View Replies !
View Related
Saving Text As A Variable
Here's my issue. I want to save a string of text as a variable. My code is this:
_global.scene_txt = "btnHome";
I am then using that variable in the code:
on (rollOut) {
slider.yMove = _global.scene_txt._y;
}
I'm creating a sliding menu selector on my site.
Slider is the name of my movieclip instance that slides along the menu.
"btnHome" is the instance name of the button that I want it to slide to.
I've tried to set the variable a couple different ways. Without the "_global." I've tried using the "var" command. I've tried putting in the actual instance name (btnHome) in the second code and it works fine, which means it's not a problem with the code elsewhere. It's just not recognizing "_global.scene_txt" as "btnHome"
None of them have worked.
I'm still very new to flash, so any help is greatly appreciated. Or if you need more information...
Thanks,
iLan
View Replies !
View Related
Saving Variables To A Text File
Is it possible to load a variable from a text file (know that part), change it inside movie (know that part too) and than save the changed variable to same file it is loaded from (this part is troubling me).
(Everything on local computer)
View Replies !
View Related
In Need Of Help In Saving And Reading Text Files
I have sat and struggled for days on trying to get a perl script (file is a .pl) to save Flash variables to a text file and then have flash be able to read the file later on. I can't get the perl script to save outside the cgi-bin or the Flash file to read from a text file within the cgi-bin. As you can tell I know little about perl, and I am absolutely out of ideas. If anybody could help me, I would be so gracious. All the script has to do is to take variables from a flash file save it to a txt file, allow for future alteration, and then allow the flash file to read the text file. This has probably already been answered somewhere.
Thanks so much to whoever can help me.
chadz6
View Replies !
View Related
Saving To A Text File Offline From A CD ROM
I am creating an interactive questionaire style application for a client that is going to be run from a CD Rom. I want to have the function of having them be able to save half way through, and saving once they have finished. Is there any way of writing to a text file directly from a .swf or a projector? Or will this only work with server side help like php etc? I have read of a save to file function, but I wasn't sure of it's limits.
Also can I make this cross platform?
Thanks so much for your help.
J
View Replies !
View Related
Saving 'input' Text To A .txt File?
Hi,
I was wondering if anyone knows of a way that you could save 'input' text (from a .swf) into a text file?
For instance you have a flash movie, with input text box, which loads the file text.txt with a press of a button. Someone on my comupter wants to change the file, so they open up the .swf and type in what they want and save the text.txt file. ?? Would this be possible? And if it is how might I go about doing it?
Thanks for any help!
- Neoteric -
View Replies !
View Related
Saving Multiple Text Files
I'm developing an executable flash-based editable presentation in Flash 5 to compete with Powerpoint. It's pretty simple, the user can edit the presentation, and change the text, and the data in the included charts. The user can then save the data into an external text file using
Code:
fscommand ("save", "data.txt");
Now, we would like to add the option to save multiple versions of the variables. That's easy. But we also want Flash to be able to save information about the versions, specifically a name and a date created.
The easiest way I can think of is to create a seperate text file that contains only the name and modified dates of the files, which flash can use. Now, here's the question: can I use the "save" FScommand and Load Variables to deal with a small portion of the variables, or do they only save all data, and replace all variables in the file?
View Replies !
View Related
|