Actionscript 3.0 :: Pass The Text Field To An XML File ?
Aug 23, 2010
Computer A - running a projector file
Computer B - running a projector file
NEED: pass the contents of a text field on comp A to a text field on comp B.At this point, the best solution I can come up with is to pass the text field to an XML file on a shared server and then pull the XML into the second computer.
PROBLEM: My (albeit little) experience is in PHP, and my company uses ASP. I'm on the television broadcast side and don't have access to create or test on our shared server.
QUESTION: Is there any other way to pass this text field without using .asp?
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.
I've created a dynamic text field - mediaImportName001 (created , and populated it with the name of a file that I choose to import using a browse button (as3 and AIR).This works fine - I can import the file, and the name appears in the field.
I'd now like to pass the contents of the text field to another text field. But I can't get the contents. If I try to trace the contents of the textField trace("mediaImportName"+thisNum).text - Flash returns "undefined" (even though I'm asking it to trace after the field has been populated).
I use the following code to check that the field really is there and named correctly (the code returns the children):
I'm trying to pass a parameter from a URL into a text field in flash, but it doesn't seem to work...I've got a dynamic text field (display as html is checked), with an instance name txt_txt. Here's the only line of code in the file:
I am loading txt data with data load event handler. When the data is loaded, I want to pass certain data to different object text fields. This is what I would like to do, but does not work.
I'm trying to pass text from an input text in frame 1 to a dynamic text field in frame 10. Thus when the user enters text and clicks the submit button it takes them to frame 10 and shows them what they typed. It's not working but I'm not getting any errors. Here's the link:
I've created a form-like input to receive user input in the form of text in a frame. Now, I would like to pass that input into an external text file. I hope to get help to implement this. Let's assume that this app will be only used locally and not over the web.
I have a problem with a dynamic text field. I have 1 text field on frome 10 which displays text from a text file. This text can change when a button is clicked. I have another text file on frame 20, which i want to display what ever text is in the text filed on frame 10.
I have tried:- [AS]MyTextboxFrame20.text = MyTextboxFrame10.text;[/AS] but it doesn't work.
I have the folowing codo to load text from a text file into a text field in my flash document:
loadVarsText = new loadVars(); loadVarsText.load("homePage.txt"); loadVarsText.onLoad = function(success) {
[Code]....
the same, and I want to make the homePage.txt file load when the flash file starts, that is what it does right now by placing the code on the main timeline.
I know this is a tutorial on this site but I'm having trouble finding it, and its been a while so I can't remember exactly how to do it. I just need to make a dynamic text field that you can edit via text file.
how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
I have a dynamic text field that displays text from an external file. The text file has lists of text such as a1=(text here)&w1=(text here)& etcI want to be able to make a button so that will add one to the word count, such as, a button that says "Next" and when i do that, it loads the text string A2, when i click it again, it loads A3
I have a dynamic textfield being populated with an xml files' content. I then have a css stylesheet loaded into format the text. This all works great, but what doesn't work is the ability to bold some of the words in that text. I have both the regular and bold versions of the font embedded into the swf, I can test out just a bold block of text and it works fine. The css is also working as it will change the size of the text that I tell it to. Everything is working, but for some reason I am not able to get the bolder version of the font to display in the same text box as the regular one. I have also tried to change fonts but had the same outcome.
I know this is a tutorial on this site but I'm having trouble finding it, and its been a while so I can't remember exactly how to do it. I just need to make a dynamic text field that you can edit via text file.
how I can have a text field load some data from an xml and then the user can change the text in the text field and send it back to the xml file. Like load, edit, send.
I'm reading text from a text file and displaying it into a text field. The problem is when i read it doesn't display the text as it is in a text file. For ex - See below imageNow , as you can see, second line in the text file starts right where first line ends.But flash doesn't display it like that. I have hundreds of lines and in most cases flash spaces consumes less space then a text file. The font in both text field in Flash and notpad is to Arial so the font shouldn't be a problem.
i am loading text to an text field from an xml file in which i am having superscript and subscript text. i enabled the html property for my Textfield. but still the text is displaying the in the textfield is normal like i am giving u example .its an mathematical expression;
if i write like this my_txt.htmlText = "x<sup>2</sup>";
it showing like x2 where as it has to show like x to the power of 2.so what should i do to display the text like this ...
Is it possible to login through flash using one Dynamic Text Field and one Input Text Field and no buttons? If so how? I have seen many tutorials dealing with logging in to PHP using flash but it requires you to make your own php scripts which i am not familiar with. Can some one tell me how to do this with PHPBBs existing php scripts... I want to be able to login thorugh a Input Text Field box and have it verify it in PHP and also be able to register and view other PHP info such as users online and FAQ..
I'm making a calculator using Flash MX that works the same way as the basic calculator found on windows (not the scientific one). But having the user input a number, store it as a variable, store which function the user wants to perform and clear the text field then store the new input in the same text field as a different variable and multiply or add or divide or subtract the 2 numbers and getting the equals sign to display the answer when clicked is harder than I thought it would be.
I'm working with my .fla file and an external .as file. I've got things working the way I want and now I'm trying to add a dynamic text field to my .fla file. I've added the dynamic text field to the stage manually (not via action script code) and when I go to publish my file I get the following error message. 1046: Type was not found or was not a compile-time constant: TextField. Do I need to add an "import" to the front of my .as file? I currently have these import statements... import flash.display.MovieClip; import flash.display.Bitmap; import flash.display.Loader; import flash.events.*; import flash.net.*;
I am trying to load an xml file (just the content, not the tags) into a text field... I have tried every code I could find on the internet and nothing seems to work. [code]...
If I hardcode the file name in the code, then it works fine. This is on the first frame of my movie, which holds the dynamic text field.
Code: myData = new LoadVars(); myData.onLoad = function(success) {
[Code]....
Is there a trick to defining url's for dynamic text fields? Because if I hardcode the path from the server, it works locally, but again not on the server...
Could it be a problem of permisson (since the url of the txt is from a different page than the one the swf is on)?
I am working on a file that has a rotating dial, and I'd like the dial to reveal contents of a text field (a link) as the dial points in the direction of the text field. I have 4 text fields located at 90, 180, 270 and 360 degrees (top, bottom, left and right). I have it controlled via AS, so I've got all the Math but I was hoping someone might know how to reveal the links when the arrow (in the dial) is pointing in these directions.I set up a text field for testing, which shows the degrees, but I'm getting 'NaN' in the field (problems with Theta and converting degrees to Radians, I think). I thought this might help me figure out how to reveal those links, if I can get the NaN to work.Currently, the file is rotating with an onPress, but I'm going to convert it to a mouse follow, instead, so the user only has to float around to see the links.
While creating one photo gallery I am facing one problem in controlling the Font Color, Font Size and other characteristics of a text loaded into a text field from an XML File. The name of the text field in question is �my_txt� it loads the title from the xml file attached herewith. how I can control the behavior of the text loaded in that text field.
If I hardcode the file name in the code, then it works fine. This is on the first frame of my movie, which holds the dynamic text field.
Code: myData = new LoadVars(); myData.onLoad = function(success) {
[Code]....
Is there a trick to defining url's for dynamic text fields? Because if I hardcode the path from the server, it works locally, but again not on the server..
I'm loading data from an XML file with html specific tags so I can put all the formatting of the text field in the XML file, my XML looks something like this: