IDE :: Scrolling Text Boxes Individually?
Jul 3, 2009I have 2 text boxes in my scene and I want to be able to scroll both of them individually. I tried using the scrollbar component but I can only get it working on 1 text box.
View 1 RepliesI have 2 text boxes in my scene and I want to be able to scroll both of them individually. I tried using the scrollbar component but I can only get it working on 1 text box.
View 1 RepliesI have 2 text boxes in my scene and I want to be able to scroll both of them individually. I tried using the scrollbar component but I can only get it working on 1 text box. I tried changing the linkage. Can somebody send me a link to an example of how to get this to work?
View 1 RepliesI have 4 dynamic text boxes which duplicates the text from a main input text box. How do I write a code to make visible only the dynamic text box I want when clicked it's check box.What is the CODE to make each "DYNAMIC TEXTBOX" visible when clicked on it's checkbox?
View 6 RepliesI was wondering if it's possible to have a dynamic text box that can change sizes, without distorting the text displayed in it... I would also like to set it up dynamically.
View 4 RepliesI use .txt files a lot with flash to load external news and updates. Although you can use the loadVariablesNum() command to load the .txt files is there anyway to edit and save the external files in flash? e.g. say I have a text box and a submit button in flash is there some way where I can add the text boxes content to a .txt file?
View 1 RepliesI need to have an outline for the text typed in my input text boxes. How do I achieve this?
View 5 Replies! I just did the Kirupa XML tutorial (for Flash MX) and ... I actually understand! But now I need to change a few things.. and I haven't got a clue. Right now, I know how to import text from an XML file into different text boxes. But, what I need to do, is be able to import text regardless of how many text boxes my FLA file has.
[Code]...
The code I'm building creates two MovieClips on the stage, in one it instantiates several text boxes and in the other some buttons.
What I can't do is access data from the text boxes (e.g. textField.text) for use in the functions called by the eventListeners attached the buttons. I had the system all working nicely before I placed the text boxes and the buttons on separate movie clips.but this structure makes it much tidier to refresh the text I'm using.The button functions are fine with variables created prior to the building of the text boxes.
Am I failing to address the text boxes correctly (because they're on another movie clip) or is there a stage / movie clip property I need to set so they can see each other ... or is this something else altogether?Could it be that the buttons are created before the text boxes?
i've found this code on the web that works well and migrating from as2 to as3?i just don't know what the equivalent codes are?
PHP Code:
var lorem_lv:LoadVars = new LoadVars();
lorem_lv.onData = function(src:String) {
customers should not be able to download and play them anywhere off my site
Is it possible to tell a text box to auto fit to its text? What I mean is that when i change the size of a font to something smaller the text box remains its old large self. This is a problem because when I want to align this text with several other text boxes that have gone through similar treatment, the alignment will take into account the full box size rather than just the text.
So basically I have to go and manually shorten each text box. Which is a pain when you have to deal with a lot of text. Is there a script or button/option I'm not aware of that will auto fit the box constantly?
I want to parse the data from an XML file into an array and then put each of the values in the array into a dynamic text box on the stage. The text boxes are name "number1_txt", "number2_txt" &c.I have managed to set up a loop to parse the XML into my array and also to generate the names of the text boxes dynamically but I can't get the values from the array to display in the text boxes!
function parseXMLNumbers(doc:XML):Void {
temp = new Array();
for (a=0; a<doc.firstChild.childNodes.length; a++) {
[code]......
I have: Input text box Dynamic text box What's the code and where do i put it, so when entering a value to the input text, the dynamic will show the amount multiplied by 20?
View 1 RepliesI have a INPUT TEXT inside a mc called "txt mc" and DYNAMIC TEXT in the main time line.I'm trying to display what's typed in the INPUT TEXT (my_Input_Txt) in the DYNAMIC TEXT boxes (my_Dyn_Txt1, my_Dyn_Txt2, my_Dyn_Txt3).Here's the code. But it won't simply work perhaps because the INPUT TEXT is inside a MC. I need to have the INPUT TEXT INSIDE THAT MC while having the DYNAMIC TEXT boxes out in the main time line.
my_Input_Txt.onChanged = function() {
my_Dyn_Txt1.text = my_Input_Txt.text;
my_Dyn_Txt2.text = my_Input_Txt.text;
my_Dyn_Txt3.text = my_Input_Txt.text;
};
I'm making a program that draws a grid of boxes and the color of the box must be different to those adjacent to the box. My code compares the current box's color to those to the left and top. If any of them matches, it picks another random number (as the color). For the tiles on the first row/column, I make my grid's array indexes with negative numbers -1 so that it will not match.
What I have:
private function fillArray():void {
grid = new Array();
grid[-1] = new Array(-1,-1,-1,-1,-1); //paddles the grid[-1][0 to 4] with -1
for (var i = 0; i < HEIGHT; i++) {
[code]...
I'm trying to have a listbox that when an item is clicked will display relvant text and hopefully images in a dynamic text box on the same frame.
I have found this code that does what I want, but puts in a date.
Code:
// Preparation :
month=["January","February","March","April","May","June","July","August","September","October","November","December"];
[Code].....
I have a text input field. When I press on it I'd like something to happen. But it doesn't seem like I can target the input field like this.
myTextInputFieldName.onPress = function {
do something
}
I tried putting it inside another movieclip (which I can target), but then the text input cursor goes away and I can no longer access the input text box. I know there is probably a simple solution but I can't figure it out.
I want to control 2 Dynamic Text boxes with the same scroll bar component? I want them to scroll simultaneously with the user only needing to use the one component.
View 2 RepliesI've been staring at this code for hours.... I have a xml docthat contains football scores that will load into my flashscoreboard. If the game has been postponed, there's a node calledstatus that is populated with the info, otherwise this node isblank. My function sets the visibility property of status1_txt tofalse if there is nothing in that node (undefined), otherwise itdisplays the data that is there. If the first node is undefined, itwill start out blank, the way it's supposed to. But the minute itpulls data into that text box, it doesn't go away until there'sother data to replace it. Seems like it's ignoring the first partof my if statement.
View 4 RepliesI want to control 2 Dynamic Text boxs with the 1 scroll bar component? I want them to scroll simultaneously with the user only needing to use the one component.
View 3 RepliesI have 4 text boxes on a frame. My goal is to have them put numbers in the text boxes. I need to be able to show whether or not what they put in was correct. I have 4 input boxes and 4 dynamic boxes set up. I figured I could put code that says, "if >1 then "incorrect" shows up....if =1 then 'correct" shows up...that type of deal...Ultimately after I show whether or not they're correct...to go to the next frame/frame name...
View 3 RepliesI'm trying to get a Twitter API to work. I've managed to code most of it, however I still cannot seem to add additional necessary text boxes which will be used for the Twitter feed. I've managed to do one, but have not figured out how to do more than one, as I'm bombarded with errors when I do try. So here's the code below, I need 3 more text boxes to be used for tweet_2, 3 and 4 definitions.[code]...
View 0 RepliesStrange problem, least I think it is I just can't work out how to multiply two text boxes and then display it in another text box. I have tried the following but had no luck should these work thus some other code is messing it around or would non of these work;
box1.text = box2.text * box3.text;
box1.text = number(box2.text) * number(box3.text);
I have a order form ,that has a option to add text boxes dynamically.so the user can add boxes as they like and enter their details in these text boxes.there are some fixed text boxes are present on this form.I have no problem getting values/data from these text boxes.I set it up to send details from this form to my email address.I'm wondering how can I get data from dynamically text boxes that are add by user.
View 3 RepliesI'm trying to implement a feature like the text boxes in adobe photoshop. I want my user to be able to add a text box to the stage that they can move(drag and drop) and go back and change the text later. I also want to be able to keep track of the text boxes so I can let the user change the color, etc. How can I do this?
View 12 RepliesI had a form working fine at [URL] and then I edited something that made it screw up. I have been poring over the code but I can't figure out what I did wrong.look at the Contacts page and tell me if you can discern what would cause the lettering in the dynamic text boxes.
View 1 RepliesI'm stuck on a xml/dynamic text box issue... I can get a single dynamic text box to populate using this actionscript:
[Code]....
This might be straight forward, but I would like to know how could one link dynamic text boxes so that the information would flow? In a way, the information would flow from:
(XML) Input A into BOXA00, BOXA01, BOXA02, BOXA03, etc.
(XML) Input B into BOXB00, BOXB01, BOXB02, BOXB03, etc.
(XML) Input C into BOXC00, BOXC01, BOXC02, , BOXC03, etc.
I have a dynamic text box that I need to use swapDepths with and I understand that I should turn it into a movieclip but I get weird results.
View 2 RepliesI am a PHP Developer, I know nothing about Flash and with all respect I do not want to know anything about. I develop a CMS which provides the backend for a Flash front end. Data is passed to the template via XML. Everything is grand. The problem is with text formatting. Currently we use the dodgiest flash text formatter. It doesn't work half the time, its horrible but it - just about - does the job. I have been tasked with replacing it. I would like to bring in CKEditor or TinyMCE but when I do I have 2 major problems.
1) Pre-existing HTML messes up the display in TinyMCE due to its invalidity (I can solve this.)
2) The TinyMCE HTML breaks the flash template because of the valid HTML.
I have a problem with Input Text boxes within an exported swf. The font (Arial Narrow) has been embedded via Text > Font Embedding (Uppercase, Lowercase, Numerals, and Puncuation checked); but, upon export, certain characters do not register (specifically j, q. u, z, 8, and 9) or automatically take one case or the other (B, M, W, and X are always Uppercase; while k always appears as Lowercase).
View 1 Replies