Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash








Displaying User Input Into A Dynamic Text Field


Hello everyone. Hope you are all well.

Have a bit or of a problem.

I have imported and XML file and using the code below i am able to store comments against a particular node.

//istener object for tree
var lo:Object = new Object();//a custom object called "lo" is created.
lo.change = function(evtObj:Object):Void{

var itm:Object = mytree.getSelectedItem();
if(itm.savedComment != undefined)
newcomment.text = itm.savedComment;

else
newcomment.text = "";
}
mytree.addEventListener("change",lo);//everytime the tree component generates a change event
//from the user selecting a different node the listener code runs.


//listener object for submit button
var lo2:Object = new Object();
lo2.click = function(evtObj:Object):Void{
var itm:Object = mytree.getSelectedItem();
itm.savedComment = newcomment.text;
}
addCommentbtn.addEventListener("click",lo2);

All i need now is that whenever the user clicks on a button ("viewComment") ALL the comments already submitted are presented in a dynamic text field.



ANy help is much appreciated. Thanks.




ActionScript.org Forums > ActionScript Forums Group > ActionScript 2.0
Posted on: 03-30-2007, 12:50 AM


View Complete Forum Thread with Replies

Sponsored Links:

Displaying ™ TradeMark Symbol In Input Text Field, Can It Be Done?
Can anyone please tell me if there is any chance of using superscript and / or subscript in input text fields?
Or if there is any way that i can fake it?

The users really need to use the trademark symbol ™, which displays fine in static text, but not in dynamic or input text fields. The symbol also displays when using _sans font, but I need to use various fonts.

I am making an application in Flash 5 where users can dynamically load text from a database and then edit the text. I´m using Macromedia Generator to load the dynamic content.

Suggestions anyone?

1ür

View Replies !    View Related
Parsing User Input From Text Field
I have an input text field into which a user types their answer to a question. The answer is "x, y, z" but can be upper or lower case, may or may not have spaces in it and the letters can appear in any order, i.e. "y, z, x".

Is there a way I can take the input, remove the white space, lowercase it all, tokenize the input and then test to see if any of it is correct?

I've done this in other languages but never in actionscript... I can't find a decent tutorial.

Any help / pointers appreciated thanks

View Replies !    View Related
Detect When User Leaves Text Input Field, How?
Hi,

I will start building some forms in flashMX soon.
I want flash to do the client-side-validation: check to see if requiered fields are indeed filled.

I can do the validation when the user submits the form. No problem.

However I want some fields to evaluated immediately when the user leaves the field.

So assume there is a input text field with var = FirstName which is requiered!

When the user selects this field and leaves it again without filling it in, I want an action (warning) to be done.

How can I detect when the user leaves the field?

View Replies !    View Related
Posting User Input Text Field On My Page
Hi, I need help with how to allow users to post to my page with an input text field. Can anyone help me out or does anyone know a good tutorial that will help me?
Thanks! I'm using Flash CS3 Actionscript 3.0.

View Replies !    View Related
Help Multi User Name & Pass For Input Text Field
Here is a copy of the code Im using but I cant seem to ad more usernames or passwords. Please help, many thanks.


on(release, keyPress "<Enter>" ){
if(userEnter.text == "member" && passwordEnter.text == "8871"){
_root.gotoAndPlay("success");
} else {
_root.errorMessage.gotoAndPlay("start");
}
}

View Replies !    View Related
How To Make An Input Text Field Trigger An Action When User Clicks On It To Write?
aHello everyone!

I'm trying to achieve something that I'm sure it's not that complicated, but unfortunately I have not clue how to do it.

I have created some text fields. And what I want to do, it's that when the user clicks onthem, in order to start writing, I want a specific movieclip to dissapear.

This could be achievable if I knew how to make the textfield behave like a button; but I don't know what code I need for this, as onPress it's not working at all.

Any help would be appreciated.

Cheers!

View Replies !    View Related
Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

View Replies !    View Related
Dynamic Text Field Not Displaying
Hi,
This is probably a newbie question but I'm tearing my hair out over something which I'm sure has a simple solution.

I have a button event:

mc_EasyButt.onPress = function () {
varLevel="1";
_root.loadVariables("hangmanwords.asp?l=e");
goToAndPlay(4);
}

The loadVariables url loads three variables - varASWordEncoded, varMEWord1 and varMEWord2.

At Frame 4 the following code should display my variable varASWord in a dynamic Text field which has the variable name set correctly:

if (varLevel == "1") {
trace("picked up the level");

for (x=0;x<varASWordEncoded.length;x++) {
if (varASWordEncoded.charAt(x) == "1") {
// 1 signifies the letter ash
varASWord+="u00E6";
} else if (varASWordEncoded.charAt(x) == "2") {
// 2 signifies the letter eth
varASWord+="u00F0";
} else if (varASWordEncoded.charAt(x) == "3") {
// 3 signifies the letter thorn
varASWord+="u00FE";
} else {
// not a special character
varASWord+=varASWordEncoded.charAt(x);
}
}
}


The text field is showing blank in the movie and the loadVariables works because it's displaying the other variables.
These 2 chunks of code are on separate layers, will this cause the problem?

Any ideas?
Thanks!

View Replies !    View Related
Displaying An Ambersand In A Dynamic Text Field
anybody know what I type in my xml file to display an ambersand in a dynamically loaded text field?

View Replies !    View Related
Dynamic Text Field Not Displaying In Nested MC...
Now I have a dynamic text field that loads and displays fine when I play the movie it is in from _root. But... I have that movie nested in another which is nested in another. When I play them nested together the dynamic text field will not display. There is an apparent area where the mouse changes to a cursor like a text field should be there, but nothing...

Anyone know how to fix this?

Here is the code where I create the text field...


ActionScript Code:
var news_var:String = "";
var xmlNews:XML = new XML();
xmlNews.ignoreWhite;
xmlNews.load("../news.xml");

xmlNews.onLoad = function(bSuccess:Boolean):Void {
if (bSuccess){
var xnRootNode:XMLNode = this.firstChild;
var aNewsItems:Array = xnRootNode.childNodes;
for(var i:Number = 0; i < 3; i++){
var aNewsItem:Array = aNewsItems[i].childNodes;
for(var j:Number = 0; j < aNewsItem.length; j++){
news_var += aNewsItem[j].firstChild.nodeValue + "
";
}
news_var += "
";
}
}
else{
news_var = "Document failed to load or parse. Error code: " + xmlNews.status;
}

_root.createTextField("newsText",5,251.9,7.8,348,197);
newsText.multiline = true;
newsText.wordWrap = true;
newsText.border = false;
newsText.html = true;
newsText.selectable = true;
newsText.embedFonts = true;

newsFormat = new TextFormat();
newsFormat.color = 0xffffff;
newsFormat.bullet = false;
newsFormat.underline = false;
newsFormat.size = 12;
newsFormat.font = "fontNews";

newsText.text = news_var;
newsText.setTextFormat(newsFormat);
};

View Replies !    View Related
Help With Displaying User Input
I know this is probably an easy thing to do but I am really struggling with AS3 and would be infinitely grateful if someone could clear the fog from my brain. I've been working on this since yesterday...

The goal is to have the user enter their name in the input text box and then click start. When they click start a ball starts rolling and a welcome message should display "Welcome + name".

At first the ball is rolling fine and the name is displayed - but after about 3 seconds the frames sort of flip and "Welcome name" turns into just "Welcome" (name dissapears)

I'm sure it's something really dumb but my eyes are crossing.

- layer 1 is my circle image (myCircle)
- layer 2 is my button (startButton)
- layer 3 is the input field (inputName) and the dynamic field (displayName)

Here's the code:

stop();

var inputName:TextField = new TextField();
inputName.type = TextFieldType.INPUT;
inputName.x=200;
inputName.y=100;
inputName.width=150;
inputName.height=20;
inputName.border = true;
addChild(inputName);


// add an event listener to our button:
startButton.addEventListener(MouseEvent.CLICK, startButtonHandler);

// deal with the event when the button is clicked:
function startButtonHandler (evt:MouseEvent) {
myCircle.x = 50;
myCircle.y = 300;
gotoAndPlay(2);
moveCircle(); // add event listener to circle
}


// when the button is clicked, add an event listener to the circle
function moveCircle () {
myCircle.addEventListener (Event.ENTER_FRAME, goCircle);
}

// once event listener is added, move the circle ever frame

function goCircle (evt:Event) {
myCircle.x = myCircle.x+1;
displayName.text = "Welcome " + inputName.text;
}


Thanks sooooo much for you help

View Replies !    View Related
Displaying All Array Elements In A Dynamic Text Field
I have an array and I'd like to dump it's contents into a dynamic text field using a for loop. Here's my loop:

var length:int = lotr.length;
for (var i:int = 0; i < length; ++i) {
characters.htmlText = lotr;
}

The very last item in the array is the only item that makes it into the text field. I want all of the members of the array displayed. What am I missing?

View Replies !    View Related
Problems With Displaying Certain Characters In Dynamic Text Field
Hi There,

I am having problems displaying '%' and '&' in my text fields. I am using:

var myLV:LoadVars = new LoadVars();

myLV.onLoad = function (success:Boolean) {
if (success) {
main_mc.body_txt.htmlText = myLV.bodyCopy;
} else {
main_mc.body_txt.text = "There has been an error loading the requested information. Please contact the webmaster and report the fault";
}
}
var cssStyles:TextField.StyleSheet = new TextField.StyleSheet ();
cssStyles.load("styles/styles.css");
cssStyles.onLoad = function (success:Boolean) {
if (success) {
main_mc.body_txt.styleSheet = cssStyles;
myLV.load("copy/product01b.txt");
} else {
main_mc.body_txt.text = "There has been an error loading the requested information. Please contact the webmaster and report the fault";
}
}

to load the text file and the style sheet.

I have two external files, a text file and a .css file

this is the css style:

p {
font-family: "Arial Narrow";
font-size: 18px;
}

And this is the text file:

&bodyCopy=<textformat leading="2"><p>Save up to 30% on internet prices.</p></textformat>

I have also embedded the symbol into my text field and have also embedded the font itself into my flash file. Has anyone any idea how I can display these symbols.

Cheers

View Replies !    View Related
[MX04] Dynamic Text Field Not Displaying Text (NOT EMBEDDED)
Hello,

I am working on a Flash portfolio website for myself. I have several dynamic text boxes that display information about the various pieces in my portfolio. The text content of these boxes is loaded from external .txt files. The text fields are set to use "_sans" font and there is NO font embedding.

Recently, while working, I tested the site and noticed that my text boxes were no long displaying data. Through testing the problem I was able to determine that the data is being loaded from the external .txt files and into the correct variables, however, the text is not "appearing" in the text fields at run time.

I tried placing a new dynamic text box on the _root of the movie and writing the following code on the first frame of the ROOT timeline:


Code:
_root.myTest_text.text = "this is a test"
the dynamic text field (with instance name "myTest_text") again appeared blank at runtime. As before, the font was set to _sans and NO embedding was taking place.

I tried the same text box and the same code in the clean, empty file and it worked fine.

Has anyone encountered this problem? Is it a bug? Will I need to rebuild the file from scratch?

If anyone has any assistance or advice to offer I would appreciate it.

Thank you!

View Replies !    View Related
Displaying Empty Digit Fields In Dynamic Text Field
Hi guys,

Here's a teaser for ya.

I have a dynamically counting down text box which cycles from 999999 to 0. However, I would like all six character spaces to be filled, regardless of the number (e.g. 0XXXXX, 000XXX, 00000X etc).

I've tried using 0.999999 and then masking over the digits AFTER the '.', but Flash MX doesn't seem to like masking dynamic text boxes (nothing at all displayed).

Any ideas, lateral thinkers?

Lewis

View Replies !    View Related
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..

When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.

Mer

View Replies !    View Related
Dynamic Text Field Displaying Wrong Font When Published
The header says it all..

When I publish anything set to dynamic text it displays some sort of Times New Roman font, but when it's set to static it displays fine. The font I'm using is plain Verdana, no html formatting or anything fancy. The problem occured shortly after I imported some text from illustraor.

Mer

View Replies !    View Related
Having Trouble Displaying Accent Mark Letters In Dynamic Text Field
I'm having trouble displaying letters with accent marks in dynamic text field..

im using Arial and have all the fonts embedded including the latin ones, have render as html checked and still not working.. What am i doing wrong..?

my code:

Code:
System.useCodepage = true
myTextVar = "&#233";

View Replies !    View Related
Input/Dynamic Text Field
How do you have a user enter their name (or anything else for that matter) into an INPUT TEXT FIELD and then have the name that they entered display in a DYNAMIC INPUT FIELD on any pages after that?

I realize that one has to create a variable the references the input field but after that my mind draws a blank and like Homer Simpson, the circus monkeys in my brain start dancing.

Thanks

View Replies !    View Related
Input Text Box To Dynamic Txt Field
i dont need to load any text from an external doc.
i just want the ability to type text in an
input text box, and have it display in a dynamic text field.

not sure how to go about this.
any ideas?

View Replies !    View Related
[F8] Input And Dynamic Text Field Value
Hi guys.
This is my (probably very simple ) problem:

In scene 1, keyframe 1 I got an input text field (instance name = in1) and a button. The button got this code:

Code:
on(release){
gotoAndStop(2);
}

On keyframe 2 I only got a dynamic textfield (instance name= out1).

I want to write someting into the input text field on frame 1, press the button and when I'm on keyframe 2; I want the dynamical text field to display what I wrote.

On keyframe 2 I have written this code:

Code:
_root.out1.text=_root.in1.text;

(Im betting this is wrong!)
When I try this out I don't get my input data. I only get "undefined" in the dynamic text field.

Now this works perfectly fine if I use the same variable name, entered in the "variable box" in properties. But I would rather access the variables as a property of the textfield.

What am I doing wrong?

Thanks for a fantastic forum,
Ontrop.

View Replies !    View Related
Dynamic Input Text Field ?
Hi all,

This is possible to dynamically create input textfields and then style them with new textFormat something like

ActionScript Code:
this.createTextField("txtBox_txt", 1, 50, 50, 200, 20);
textBox = new TextFormat();
textBox.background = true;
textBox.backgroundColor = 0xffffff;
textBox.bold = true;
txtBox_txt.setNewTextFormat(textBox);
or is it possible to use the new TextFormat object on a input text field that is manually been placed on the stage. So I create a input text field called input_txt and then style it.

ActionScript Code:
textBox = new TextFormat();
textBox.background = true;
textBox.backgroundColor = 0xffffff;
textBox.bold = true;
input_txt.setNewTextFormat(textBox);

View Replies !    View Related
Dynamic Input Text Field ...
Is it possible to create a dynamic text fields at runtime (from code) that can be used as input text fields??? i.e: where the user can enter information ??? or do input text fields need to be created inside the flash application at development time ???

Thanks,
Stephen.

View Replies !    View Related
Dynamic Input Text Field
Dynamic input text field

Hi all,

This is possible to dynamically create input textfields and then style them with new textFormat something like

ActionScript Code:
this.createTextField("txtBox_txt", 1, 50, 50, 200, 20);textBox = new TextFormat();textBox.background = true;textBox.backgroundColor = 0xffffff;textBox.bold = true;txtBox_txt.setNewTextFormat(textBox);

or is it possible to use the new TextFormat object on a input text field that is manually been placed on the stage. So I create a input text field called input_txt and then style it.

ActionScript Code:
textBox = new TextFormat();textBox.background = true;textBox.backgroundColor = 0xffffff;textBox.bold = true;input_txt.setNewTextFormat(textBox);

View Replies !    View Related
Dynamic Input Text Field
Hi:

For some reason I can't figure this out. I am creating an input text field. I want the text that the user inputs to be assigned to a variable. For some reason the user can only input text if I put a text property in. So i set the variable to have a starting value. However when the user input does not change the variable, so it still comes up as the original value.

this.createTextField("pic3Tag", p++, 5, 170, 250, 100);
pic3Tag.type = "input";
pic3Tag.border = true;
pic3Tag.background = true;
pic3Tag.multiline = true;
pic3Tag.text = myTag;
pic3Tag.embedFonts = true;
pic3Tag.variable = myTag;
pic3Tag.setTextFormat(textFormat);

i'm so confused.

View Replies !    View Related
Input Text Box To Dynamic Txt Field
i dont need to load any text from an external doc.
i just want the ability to type text in an
input text box, and have it display in a dynamic text field.

not sure how to go about this.
any ideas?

View Replies !    View Related
Input Text Field To Dynamic Text Field
Ok, I have an input text field with a variable name of "enter", and a dynamic text field with a variable name of "display". I also have a button on the stage. I want it so that when you press the button, it checks what the user has put into the input text field, and if it is valid it will display a certain message in the dynamic text field.
For example:
If the user types in "hydrogen" and then clicks the button, I want the dynamic text field to display the letter H. Likewise, if the user types in "oxygen" and then clicks the button, I want the dynamic text field to display the letter O. And finally, if the user types in something that is not specified in the code, it will just display "Not Valid".
I tried doing this with an on(release) action and then some if statements, but nomatter what I typed in it would always display H. I'm probably overlooking something simple, but nonetheless, I need help. Thanks

View Replies !    View Related
Input Text Field Into Dynamic Text Field
Hey guys,

I'm really new to AS 3.0. I would like to transmit information from an input text field into a dynamic text field once a submit button is clicked.

Any help would be greatly appreciated.

I'm using CS3 AS 3.0. Thanks!

View Replies !    View Related
Smiley In Input Dynamic Text Field
Hello, I am wondering if you could put a graphic smiley into a text field by a person simply putting in: ": )" or something else like that. Here is the code I have so far:
Code:
smiley = new Array("_root.happysmiley", _root.winkingsmiley, _root.funnysmiley);
onEnterFrame = function () {
if (test == ":)") {
_root.display += smiley[1];
}
if (test == ";)") {
_root.display += smiley[2];
}
if (test == ":D") {
_root.display += smiley[3];
}
};

This is a simple trial of code, that are among others that I am trying to put in. Is it even possible for Flash MX 2004 to have graphic images or movie clips in a dynamic text field?

View Replies !    View Related
Dynamic Bar Graph From Input Text Field
Hello!

I am trying to make a bar graph that tweens to the height, or decrease, according to the number defined in the Dynamic text box. I would like to use the tween class from MX for a nice bounce effect. Here is my code:

import mx.transitions.Tween;
import mx.transitions.easing.*;

ICcost._height = Number(ICC1);

new Tween(ICcost, "_yscale", Elastic.easeOut, 0, ICC1, 2, true);

ICC1 is the dynamic text field that displays a number from a formula through a couple input boxes. ICcost is the name of the MC I want tweened.

As I have it now it doesnt tween, the height just goes to the ICC1 number which is ok for now. Is there a way to set the tween to happen when flash registers a change in the number? I am fairly comfortable with AS2 and I know there is a way I just don't know exactly what I am looking for. Any help or suggestions would be great!

View Replies !    View Related
Take Value From Input Field And Display It In A Dynamic Text Box?
Hi,
I have an input field, which asks how many of a product someone wants.
Say they enter 3, I want them to be able to press a button which will display 3 in another dynamic text box. So basically copying the value to another text box.

Can someone help?

Thanks,

-rob

View Replies !    View Related
Can't Access Dynamic Text>properties>var (text Input Field) In AS3
Hello,

I got VB to put text in a dynamic text field I created in actionscript 2 but can't get it to work with as3. The difference being that in as2 I can draw a dynamic text field on the stage name the instance 'testField' in properties and then there is a var: text box also in properties where I can add a variable name 'testVar.' As3 won't let me access that var:text box in properties. Why is this? For some reason VB needs both the instance name 'testField' and also the variable name 'testVar.' How do I set the variable name in as3 for a dynamic text field? Is the var:text box in properties to give the dynamic text field a variable name in as2?

Thank you if you can help me clear this up! If something in my questions does not make sense please ask me!

View Replies !    View Related
HELP Can INPUT BOX Number Value Change A Dynamic Text Field?
Yeah, I am trying to get my input field to change the value of a dynamic text box, which is accessing a variable from a .txt file.


The input field is called "Quantity1", "Quantity2", etc...

The Dynamic text fields load variables called "Price1", "Price2", etc...

Both go up to 10.

If I input a value, let's say 10, into "quantity4", then "price4" should change accordingly.

HOW CAN I DO THIS?

View Replies !    View Related
Input And Dynamic Text Field Problem (Flash 8)
Hi,

I have 2 text fields in my flash movie (Flash 8, AS 1 or 2). The first is an input text field (level0.body.additional) that on the enter key will add it's value to a dynamic text field (level0.body.totalrequested - please see code below).

A global variable is used to store the total and add it to what the user enters into level0.body.additional. I've tried the following code but all it does is concatenate as if both values were strings (inserting carrage returns inbetween) - not numbers (so say global.total was 50 and the user enters 20 in the input text box, the dynamic text box has 50 then 20 on the next line - I've changed the dynamic text field property to be single line but it doesn't make a difference).

I've tried wrapping "this.text" in the Number() function call but I get "Not a Number" returned.

Any ideas please?

Thanks for any help,

Richard

----------------------

var newTextField:Object = new Object();
newTextField = _level0.body.additional;

newTextField.onKeyDown = function() {
if(Key.isDown(Key.ENTER)) {
_global.total = _global.total + this.text;
_level0.body.totalrequested.text = _global.total;
};
};

newTextField.onSetFocus = function() {
Key.removeListener(this);
Key.addListener(this);
};

newTextField.onKillFocus = function() {
Key.removeListener(this);
};

View Replies !    View Related
[F8] Input And Dynamic Text Field Problem (Flash 8)
Hi,

I have 2 text fields in my flash movie (Flash 8, AS 1 or 2). The first is an input text field (level0.body.additional) that on the enter key will add it's value to a dynamic text field (level0.body.totalrequested - please see code below).

A global variable is used to store the total and add it to what the user enters into level0.body.additional. I've tried the following code but all it does is concatenate as if both values were strings (inserting carrage returns inbetween) - not numbers (so say global.total was 50 and the user enters 20 in the input text box, the dynamic text box has 50 then 20 on the next line - I've changed the dynamic text field property to be single line but it doesn't make a difference).

I've tried wrapping "this.text" in the Number() function call but I get "Not a Number" returned.

Any ideas please?

Thanks for any help,

Richard

----------------------

var newTextField:Object = new Object();
newTextField = _level0.body.additional;

newTextField.onKeyDown = function() {
if(Key.isDown(Key.ENTER)) {
_global.total = _global.total + this.text;
_level0.body.totalrequested.text = _global.total;
};
};

newTextField.onSetFocus = function() {
Key.removeListener(this);
Key.addListener(this);
};

newTextField.onKillFocus = function() {
Key.removeListener(this);
};

View Replies !    View Related
Scale Dynamic Input Text Field At Runtime
Hi to every one.

If there is a way to increase width or height dynamicaly creat input text field at runtime by scaling or by typing in field.

View Replies !    View Related
Passing Data From Input Field To Dynamic Text Box
Sorry guys if someone has covered this but I couldn't find the answer in past threads.

Basically I just need information that is entered by the user into a input field to be passed to a dynamic text box.

Ie on a contact form when they submit their request a message is displayed saying "Thankyou{users name}, your request has been recieved.

The rest of the form is working, it's just this bit!!!

Any info would be gratefully received.

View Replies !    View Related
Passing Data From Input Field To Dynamic Text Box
Sorry guys if someone has covered this but I couldn't find the answer in past threads.

Basically I just need information that is entered by the user into a input field to be passed to a dynamic text box.

Ie on a contact form when they submit their request a message is displayed saying "Thankyou{users name}, your request has been recieved.

The rest of the form is working, it's just this bit!!!

Any info would be gratefully received.

View Replies !    View Related
Html Input Field To Flash Dynamic Text Box
is there a way to mirror a html input field to flash dynamic text box

View Replies !    View Related
Problem With Dynamic Text And Input Text Field
hi,

in flash movie how to Preserve the font.in my system swf shows the specified font in the dynamic and input field.but in other systems it does not shows the specified font what is the problem help me.

thanx
shan

View Replies !    View Related
Input Text To Scrolling Dynamic Text Field - Help
Greetings all:

I am attempting (with little success) to come up with a way to do the following:

1. Have user type input into an input field and have it display in another dynamic text field - Got that done.

2. I would like the display text field to scroll automatically across the screen (to the left). I can get it to scroll once user hits enter key, but no luck with the continuous scroll and still have the ability to add words to the field.

My code is below which works in so far as it goes, it scrolls up one word at a time. I am using Flash Mx and any help would be greatly appreciated.

Thanks in advance...




button_two.onPress = function() {
word();
rootup();
}




//show.text=_root.input.text

function word() {
show.text=_root.input.text
input.text=""
thing.gotoandstop(2);
example2.push(show.text);
preview2 = example2.join("<br>");
}
function rootup() {
_root.up = true;
scroll_words();
}
function scroll_words() {
if (_root.up) {
_root.preview2.scroll += 1;
}
else if (_root.down) {
_root.preview2.scroll -= 1;
}
}

View Replies !    View Related
Show A Name From A Input Text In A Dynamic Text Field
Hi,

I'm creating a interactive cd in flash for a college project.
I want to have a input text field at the begining of the cd, for the user to insert its name, so that it can be showen in some sections of the cd.

Can anyone help me?

View Replies !    View Related
Input Field Inside Scroll Not Displaying
Hello all,

I have a registration form that I am using with static, dynamic and input fields.

All of these are located inside a scroll.

When I run the movie, only the static displays correctly. The dynamic and input fields do not show at all.

Any idea what might be doing this ? The FLA and SWF are available below

Thanks in advance for any help.

Register.zip

View Replies !    View Related
Subscript & Superscript In Dynamic And Input Text Field In Flash
I want just want to share with you the way I get may subscript and superscript inin dynamic and input text field in Flash:
<sub> & <sup> tags are not supported by Flash but you can
use Subscript & Superscript in dynamic and input text field in Flash:

Download & install Subscript & Superscript fonts from http://www.subscriptfont.com or http://www.superscriptfont.com
You will need to restart Flash software after installed fonts.
Create a dynamic text field with Arial font embeded. Set the HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like below:
Some text<font face="Superscript">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscript'>TM</font>";

They are better than CG since it goes lower than the baseline and it's real subscript..

View Replies !    View Related
Subscript & Superscript In Dynamic And Input Text Field In Flash
I want just want to share with you the way I get may subscript and superscript inin dynamic and input text field in Flash:
<sub> & <sup> tags are not supported by Flash but you can
use Subscript & Superscript in dynamic and input text field in Flash:

Download & install Subscript & Superscript fonts from http://www.subscriptfont.com or http://www.superscriptfont.com
You will need to restart Flash software after installed fonts.
Create a dynamic text field with Arial font embeded. Set the HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like below:
Some text<font face="Superscript">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscript'>TM</font>";

They are better than CG since it goes lower than the baseline and it's real subscript..

View Replies !    View Related
Number Of Lines Used In Dynamic Text Frield/input Field
Hello,
I have a large multiline input field that I would like to know how many lines of that space are being used in real time. Can I do this?

I know of .maxscroll, but since .maxscroll will not be changing, how would I do this?

Thanks much

View Replies !    View Related
Subscript & Superscript In Dynamic And Input Text Field In Flash
Yes, <sub> & <sup> tags are not supported by Flash... but you can
use Subscript & Superscript in dynamic and input text field in Flash:

Download & install Subscript & Superscript fonts from http://www.subscriptfont.com or http://www.superscriptfont.com
You will need to restart Flash software after installed fonts.
Create a dynamic text field with Arial font embeded. Set the HTML property to true.
Create a dynamic text field with Subscript font embeded.
Create a dynamic text field with Superscript font embeded.
Use HTML tag to set text to subscript or superscript like below:
Some text<font face="Superscript">©</font>
If you are using ActionScript to test the htmlText, use script like below:
my_txt.htmlText = "Some text<font face='Superscript'>TM</font>";

They are better than CG since it goes lower than the baseline and it's real subscript..

View Replies !    View Related
Input Numbers From Cellphone Into Dynamic Text Field By Clicking On Buttons
hey there,

I am constructing a form mailer that has a cellphone skin. To add some functionality I want to let the user click on the numbers of the phone and have the numbers appear into a seperate dynamic text field. (not to be sent via the form) How do I code it where they can click on the numeric button and the number will be added to the field while letting the numbers that were already clicked will remain in the field and not be erased.

thanks
-J

View Replies !    View Related
Detecting What The User Has Typed In An Input Field
I want to play an animation when a user types in a certain letter in my input field. I made a frame action that says if text equals "A" then play the movie clip. But it doesn't work. I tested the movie and listed the variables and it says that the text field does equal
"A" so why doesn't the movie clip play?

I added a button just to see if it would work, and when I typed in "A" and pressed the button, the movie clip did play, but I don't want to use a button. I want the clip to automatically play depending on what is typed in the field.

Does anyone know how I can fix my prob?

Thanks!!

View Replies !    View Related
[F8] Isolating Certain Characters In A User Input Field
I need to create a serial number decoder and was wondering if someone can give me a hand. I am not sure what script I should use as I am still new to Action Scripting.

For example if the user types in XT3406, I know that the first two digits represent the manufacturing plant. The second two digest represent he week so in this case it’s the 34th week. The last two digits represent the year in this case its 2006.

So there are two functions here that I have not dome previously which is isolating certain parts of a string and then using those part and referencing a list. Can anyone out there point me in the right direction? I am not sure what scripting I should use. Any help would be greatly appreciated.

View Replies !    View Related
Dynamic Text From An Input Text Field?
I have an input text field where the visitor types their first name,
I've named it: firstName, and called it a variable: _global.firstName


I have it set to get the info from inside the text field like so:

on(release) {
getURL("_global.firstName")
}


...and also to post it when it jumps to the next actionscript marker:

ThankU.text = "Thank you, " + _global.firstName + "!"

(I want it to say "Thank you, <firstName>!")

Nothing shows up when I preview. It's just a blank space.
Does anyone have any ideas as to why this isn't working out for me?
Thanks!

View Replies !    View Related
Copyright © 2005-08 www.BigResource.com, All rights reserved