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








Long Text Doesn't Fit Inside Single-line Input Text Field


Hi, I've been browsing these forums for a long time but this is my first post.

I'm creating an interface by which a user can design and order their own customized decal. Please see my example (I've added my script at the bottom of this post):
http://www3.sympatico.ca/sin.young/decaldesigner.html

My issues are:

1. I've set the character limit to 21, but if you were to type in 21 "W"s into the input field for whatever reason, or choose a wider font, the text shifts to the left and some of the characters become hidden as they don't all fit. I'd like to make the width of the text to always fit inside of the width of the white area. I can't figure out how to make this work.

Here's an example that does pretty much what I'm trying to describe: www.stickerjunkie.com.


2. I have the Standard Colors combo box working perfectly but can't seem to get the Fonts combo box working.

Any hints or links to actionscript tutorials/help that might be useful to my predicament is extremely appreciated.

// display colors and formatting
decalColor = new Color(decal);
color1 = new Color(decalColor);
//
function changeColor(comp) {
decalColor.setRGB(comp.getSelectedItem().data);
}
//Standard Colors array
standardcolors = [{label:'STANDARD COLORS'},
{label:'White', data:0xffffff},
{label:'Black', data:0x000000},
{label:'Silver', data:0x9c9c9c},
{label:'Gray', data:0x636b73}];

collistStandard.setDataProvider(standardcolors);
collistStandard.setSelectedIndex(0);
collistStandard.setChangeHandler('changeColor');
//
//Fonts array
myfonts = [{label:'FONTS'},
{label:'Arial', data:'Arial'},
{label:'Serpentine', data:'Serpentine'},
{label:'Enviro', data:'Enviro'},
{label:'Forte', data:'Forte'}];

fontlist.setDataProvider(myfonts);
fontlist.setSelectedIndex(0);
fontlist.setChangeHandler('');




DevShed > Flash Help
Posted on: June 24th, 2004, 07:39 PM


View Complete Forum Thread with Replies

Sponsored Links:

Single Line Text Field Scrolling Bug...
Whatever I do... It seems like this problem just won't go away. A few of my single line text fields scroll downward when there is text in them, and you click and pull the mouse downward.

It's causing problems for my users.

And, it's only random text fields that do it...

Type in some text, and then pull downward, some of the fields scroll down, some don't. I just re-created every single one... Didn't help!
http://www.designermichael.com/fbApp...eds/cpanel.php

*Note, this fla was converted from a previous version.

View Replies !    View Related
Content Of A Single Line In A Text Field
I am loading a hundred string values from a text field (each with a <br> after them) into a multiple line Dynamic text field set to display html. When a user clicks on any one of the lines, I want the content of that line only to be set into a variable for further processing.
any ideas on how to do this simply assuming that the loaded in data will be changing quite often?
thanks

View Replies !    View Related
Single Line Text Field Scrolling
I've got some single line text fields that are limited in size. When the cursor reaches the limit of the text field the cusor continues and the text scrolls off the left side and dissappears.

How can I stop this happening? I've thought about limiting the number of characters but these text fields sizes change dynamically according to how much space they need to fill. Is there a simple way around this problem?

Thanks

View Replies !    View Related
Input Single Line Text Fields
hi everyone!

I was wondering if there is any way to restrict number of characters to the space of the text field. It is just that it always annoyed me when I had some restricted number of characters but still plenty space in the text field to type something in.

any help will be very appreciated!!
thankyou!

View Replies !    View Related
Uiscroller Doesn't Hide On Single Line Text
I have a UIScroller attached to a dynamic text field. When the text field only has one line of text in it the arrows dissapear but the UIScroller still leaves a border shadow. Is there a way to have the UIScroller completely disappear when it's not needed?

Thanks much!

View Replies !    View Related
Input Text Field Doesn't Show Text...
Hi,

I've made a swf with an input-text-field. when i open it, i can write text and change it but -

When i loaded the swf into another swf, when i stand on the input field, it changes the cursor but i don't see any text in it.

please asist me,
thanks.

View Replies !    View Related
Input Text Field Doesn't Work In V8
Hello,

I'm using Flash 8, and I have a password text field that works fine when I publish the file for Flash Player 7, but when I change publish settings to Flash Player 8 and test the movie, the text field no longer accepts input text. When I rollover the field in the SWF, the cursor changes to the I beam, but when I click on it, there's no insertion indicator, and when I type, nothing shows. Does anyone have any idea why this could be? I didn't change any settings in the text field properties or any code in between changing the publish settings from 7 to 8

Thanks in advance!

View Replies !    View Related
[F8] Input Text Field Doesn't Allow Space Char
Here's the problem: I am loading (loadMovie) an external .swf (which contains a few input textfields, and nothing more) into my main movie. After that, I start typing into any of the input textfields. Well, everything works great, the letters appear (as they normally should) when I am pressing the keys. As I said, everything works great until I am pressing the Space Bar. The space character simply refuses to appear. The Enter (end of line) character does work as it should do, when I am using it into the multiline input field (see the images below)

The big dilema is I'm still able to input spaces (and they appear) when I am running the external .swf alone.

What on Earth happens? Any advice, anyone?
Did you encounter such odd behavior?

Thank you

View Replies !    View Related
Start Cursor Inside Input Text Field
I have two input text fields (username and password), and would like the cursor to be inside the username field when the movie is loaded, without having to click it first.

Is this possible?

Thanks for any advice

View Replies !    View Related
Input Text Field Setfocus Doesn't Show The Blinking Cursor
Pl help me....

I want automatically get focus on the textfield when the flash movie first loads.

The following code used for selection of text as well as automatically get focus on the textfield. But second option is not working.


Selection.setFocus("_root.txtVal");
Selection.setSelection(0,0)

this.onMouseUp = function(){

var beginIndex:Number = Selection.getBeginIndex();
var endIndex = Selection.getEndIndex()
var aa=_root.txtVal.text;
txtVal=eval(Selection.getFocus()).text.slice(beginIndex,endIndex)
if(txtVal==aa)
{

gotoAndPlay("v1")
delete this.onMouseUp;
}
}

Thankx
Sonum

View Replies !    View Related
Scrolling Text Horizontal In A Dynamic Text. Single Line
hi,

im trying to scroll text when it is to big for a single line dynamic text box.

i have searched and searched and found nothing..

hopeing someone can help me please..

View Replies !    View Related
Long Text In Dynamic Text Field
Last edited by Anik : 2008-02-16 at 07:48.
























I have a long text that needs to be loaded to a text field. (Around 12000 words)
Requirement is, the text field should be a single line, autosize to true, font size 12, color black, fonts to be embeded as font will change dynamically. Text will scroll on screen. Its basically a ticker tape.
The problem is,
The text disappears when published, if you make the text field selectable, I am able to select the text, copy it and when pasted in notepad I am able to see the text but not inside flash! After half the scroll, it suddenly appears and again disappears.

Any help would be greatly appreciated.


ActionScript Code:
ticker1_mc.ticker_txt.text = "GENERAL GUIDELINES: ------------------- 01. ALL ASU OFFICES TRANSACTIONS TO BE EXCLUDED FROM AIR TACTICAL ONLY (Bookings made by other offices for ticketing via ASUs are eligible for PRP by virtue of the bookning made.  02. ALL DNH OFFICES TRANSACTIONS TO BE EXCLUDED FROM ALL TACTICALS   03. EXCLUDE TEMP STAFF FROM ALL THE SCHEMES Staff Id > 800  04. ALL SALES EXECUTIVES TO BE EXCLUDED FROM THE SCHEME.  05. PAY EXTRA ATTENTION TO VALIDITY DATES   TACTICALS ---------- 01. Airline Tacticals - Ongoing Participating Airlines:  BA, QR, WY - AED 5 Economy and AED 10 Business LH - AED 10 Economy and AED 20 Business AZ - AED 25 Economy and AED 75 Business  02. DNH Tactical: Slab Based & Ongoing For packages between  500 -5000              payout of 25AED per package For packages between 5001-10,000        payout of 50AED per package For packages between 10,001-25,000           payout of 100AED per package For packages of 25,0001+         payout of 200AED per package   03. Insurance Tactical: AED 10 per voucher  04. AlKhayala: Introduced on 26th Aug For a minimum of any 5 segments sold on Al Khayala across various bookings made during the promotion, a payout of AED 100 will be awarded to the agent who has made the booking. Please note for e.g. DXB-JED is considered as one segment and DXB-JED-DXB as two (international and domestic). Promotion period and validity 26Aug07 - 30Nov07  05. American Airlines: Introduced on 27th Sep For every AA Business Class Return Ticket issued on an American Airlines document the PRP payout will be AED 100.  Promotion period and validity 01OCT07 ¿ 31DEC07 Valid ONLY for passengers/tickets originating from DXB.  Tickets need to be issued and booked in ¿D¿class. Valid only with EK, BA, LX and EI interline fares. Valid ONLY for passengers/tickets originating from DXB.   06. SilverJET Duration: 1st November - 19th November 07 (Extended until 31st Dec '07.) For every Silverjet (Y7) ticket booked and sold, earn AED 100.   07. SAS Airline: From 07-NOV-2008 to 31-MAR-2008 For every SK document (OW/RT ticket) Valid ONLY for passengers originating from DXB Tickets should be issued from UAE Outbound travel on or before 31 March 08 Business class = AED 50 Economy Extra = AED 30 Economy = AED 20 "
 
ticker1_mc.ticker_txt.autoSize = true   
this.onEnterFrame = function  () {
    ticker1_mc.ticker_txt._x -= 10
   
}

View Replies !    View Related
Multiline Dynamic Text Box Instead Of Single Line
Hello,
I hope you can help me with the following action script i found at this url:

http://www.kirupa.com/developer/mx20...r_captions.htm

Here is the action script they provide for the Hover Caption effect:


Code:
b1.onRollOver = function() {

captionFN(true, "E-Mail!", this);
this.onRollOut = function() {

captionFN(false);

};

};
b2.onRollOver = function() {

captionFN(true, "Portable Devices", this);
this.onRollOut = function() {

captionFN(false);

};

};
b3.onRollOver = function() {

captionFN(true, "Security", this);
this.onRollOut = function() {

captionFN(false);

};

};
b4.onRollOver = function() {

captionFN(true, "Regional Settings", this);
this.onRollOut = function() {

captionFN(false);

};

};
b5.onRollOver = function() {

captionFN(true, "Home Networking", this);
this.onRollOut = function() {

captionFN(false);

};

};
b6.onRollOver = function() {

captionFN(true, "Add/Remove Programs", this);
this.onRollOut = function() {

captionFN(false);

};

};
captionFN = function (showCaption, captionText, bName) {

if (showCaption) {

_root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth());
cap.desc.text = captionText;
cap._width = 7*cap.desc.text.length;
cap._alpha = 75;
//
if ((bName._width+bName._x+cap._width)>Stage.width) {

xo = -2-cap._width;
yo = -17;

} else {

xo = 2;
yo = -17;

}
hoverCaption.onEnterFrame = function() {

cap._x = _root._xmouse+xo;
cap._y = _root._ymouse+yo;
cap._visible = true;

};

} else {

delete hoverCaption.onEnterFrame;
cap._visible = false;

}

};


Now this works perfectly for me and i love it. But this tutorial is geared towards creating a single line caption and not multi line.

What i did was changed the text box properties to multiline, and enabled html formatting. In the caption area, i added a <br> in between the words i wanted on separate lines but this did not work.

Im pulling my hair out here if someone could assist that would be awesome.

Thanks in advance

View Replies !    View Related
Very Long Dynamic Text Field
Hi,

I'm loading info from an XML file into a dynamic text field. At first, I did this by placing the text field on the stage and giving it a variable name. This worked fine except that I don't want to have to scroll this text field. I just want a very long list that would be scrolled using the browser scroll bar.

The stage area isn't big enough to accommodate a text box that will display all of the dynamic text, so I created a text box with AS. My text still displays, but I still have to define the height of the AS text box, so I'm right back where I started.

How do I create a text box that will display all of my data (without scrolling) regardless of the length.

Using Flash MX,
Thanks a bunch,
Debbie

View Replies !    View Related
How To Keep Text Field Text Values After Moving In Time Line?
I'm trying to to make flash application that requires the user to input data on several keyframes in the time line. I have buttons that take the user back and forth between the different keyframes so a user can input the needed data in what ever order they wish and/or go back and change it if they want.

My problems is, that as soon as the user clicks the button to go to another point in the timeline, and they come back, those input textfields that they entered data in are now empty again.

I hope that all makes sense. It seems that there must be an easy way (or even a hard way) to prevent this, and get these fields to retain the input data.

Any help would be GREATLY Appreciated!!!!!

Thanks in Advance!

View Replies !    View Related
Text Field Doesn't Display Text When Its In A Page Loaded W/ AttachMovie
I'm having a problem where I made a 'main' page that loads sub-pages via attachMovie and in those subpages I have text fields that are populated via a LoadVars object. The subpage works perfectly when I run it by itself -- but when I load it into the main page w/ attachMovie, the text field doesn't show up. Ideas? ?

View Replies !    View Related
AttachMovie Only Sees Dynamic Text As Single Line
I have an attachMovie which attaches "MC_Docs" to an empty clip. The "MC_Docs" Symbol has a dynamic text box inside. This text box is set to:

Code:

txtDocIntro.wordWrap = true;
txtDocIntro.autoSize = true;

and the actual text box height itself is enough for 1 line because the above code will increase my height automatically off an XML doc.

I've been having a problem where if the text box does increase, the attachMovie object only see's the height as the single line text box instance I created. I need the attachMovie to know the height of the clip it's attaching including the dynamically generated text box height.

I have been googling all over the place and can't seem to find a solution and I have tried a ton myself.

Does anyone know of a solution for this?

View Replies !    View Related
Width Of Text On The Last Line Of Multiline Text Field
I think this has been solved here:
http://www.actionscript.org/forums/s...d.php3?t=90797

However, when I paste that into Flash I get an error that says: "Attribute used outside class". Can anyone help me figure out why that's happening.. or offer a better solution for what I need to accomplish.

Ultimately, I'm trying to place a Quote MovieClip to the end of the last character in the last line of a dynamic text field.

Thanks.

View Replies !    View Related
Multi-line Text Field Auto Line Break
When a Dynamic Multiple line text field is used in Flash CS3, it has a very annoying feature that auto inserts a line break at the end of inserted text. It also auto inserts a line break if no text is entered too.

I'm having a problem with this because the text is being saved from flash to a text file on the desktop. With every multi-line text field there's a nasty looking line break.

Any way of "turning off" this auto-line-break-at-the-end feature?

View Replies !    View Related
Problems With Formating Text Cursor In Input Text Field II
You have a cursor which you move with your mouse, and when you type text in form field you have another cursor which is in this FlashKit form colored black.



I want it to be white.

There isn't a tut. to do that.


__________________
Buby

View Replies !    View Related
Making A Input Text Field Remove Text When Clicked
Hi,

I would like to know how would you remove text within a Input textfield when clicked. For example Barney's New York website has this field with text displaying Enter Email to subscribe, so when u click on the field it will remove the text when clicked.

"Click on the fallowing below, so you would know what exactly what I'm talking about."

http://www.barneys.com

Thanks!

Abel Gudino(Creativemindz.biz)

View Replies !    View Related
Actionscript: Email Text From An Input Text Field Problem.
I am having difficulty with my email example.
I am using Flash mx2004 pro 7.2

(This example needs to be viewed in a explorer browser)

My first problem is that when you type in the & Character into the input text field.
The text following the & Character cuts out when sending info to the outlook program..

The code on my send button looks like this:

on (release) {
getURL("mailto:Youraddress@domain.com?subject=Stan dard title"+"&body="+body);
}


I would also like to find out if it’s possible to retain text format from a copy/paste job into a input text field that translates all the way to outlook.


Thanks for any suggestions you may provide.
~Josh

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
Button WITH Text & Input Text Field Color Difference
Hi all,

In Flash MX 2004 Pro, I am trying to create a rectangular button that has the word "Enter" on it. For some reason, the text is gone and I don't know what happened to it. Can someone take a look and tell me what I'm doing wrong, please?

Oh, also... There is an input text field I created, but it's white (and so is the rest of the movie). How can I change it so that the background of the entire scene is different from the input text field (so it is seen)?

Thanks!

Chris

PS. I'm a Flash NEWBIE so please use small words!

View Replies !    View Related
Dynamic Input, Make Shorter If The Text Is To Long
How can i shorten dynamic text that's loaded through an xml file?

So if i have a name like:

"A name like this is too long"

iw has to be shortend to something like this

"A name like..."


how can i do that?

View Replies !    View Related
How To Stop Text Floating To Right Side Of An Image Inside A Dynamic Text Field
Hi

I have dynamic text field that loads in a txt file containing
html formatted text including an embedded image.
When I test the movie the text that should appear bellow
the image, instead, runs down the right side of the image.

I have tried adding various html attributes including -


Code:
<br clear="all"><img src="image.gif" /><br >
I have also tried attaching a style sheet and appying the
following class -


Code:
img.allClear {
clear: all;
}
and also redefining the image tag -


Code:
img {
clear: all;
}
None of witch have worked.

Can someone help with this please.

Regards Mydogmax

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
Changing Text Inside A Text Field, Bold/Italic/Underline Ect ...
Is it possible to change the appearance of text inside a text field, like say to bold, italic, underline, color and even a type of font if need be ... ?

Example:

Like say you have text field, and you have some option buttons, (bold/italic/underline/color/type-of-font) that when clicked on will dynamicaly change the text/font appearance in the text field.

Any tutorials on this matter, anyone know ?

View Replies !    View Related
Multiple Font Styles In A Single Text Field?
I'm using variables to load a single text area with multiple strings...like this:

textBox = string1+string2+string3;

My question is, is there any way each string could be a different font color?

Obviously I could seperate the strings into multiple text fields, but because of alignment issues and the way the movie is setup, I can't.

Any suggestions?

View Replies !    View Related
Need To Display Multiple Font In Single Text Field
Hi All,
I am working on a flash application which would have a text field displaying multiple fonts in it. I have embedded the fonts and have added it to the library.I can view them in my computer whereas when viewed in another computer without the font used, display is different.

Add a <font face="library font one">registered mark </font>directly (®) or <font face="library font two"> with a Unicode escape sequence</font>

After the fonts are embedded size of the swf does go up. What could be wrong?

View Replies !    View Related
[F8] Single Dynamic Text Loaded With Multiple Input And Others
I just need some guidance here... I am using 4 or 5 input text fields, name, age, score, etc. etc. I also have a couple combo boxes with about 4 choices each, and 2 radio (yes or no) buttons.

This is all on frame 1. The hope is the user will come in and fill out the form, checking the appropriate boxes and radios, and then filling in the input text boxes.

There is then a submit button. Once clicked we go off to frame 2. Here I have a single multiline dynamic text box. What I am trying to do is get the infor from Frame 1 into the text box on frame 2, all neat and readable with spaces, line breaks, etc.

I have gotten as far as to get the input text info over, but not the check boxes or radios, and the input text shows up as one word.

Example if the user says Name: Joe, Age: 23, Score: 50,000, Do you Like Games? Yes radio checked, Interests: RPG checked, Action Checked, Adventure checked.

I want Frame 2 to show:

-------------------------------------
Welcome Joe
Your age is 23
Your Score is 50,000

Because you like games and your interests include:
RPG
Action
Adventure

We want you to do something funny!
---------------------------------------------

Notice that all info is on it's own line and there is added text, also notice the extra carriage returns.

Currently I get this:

-----------------------
Joe2350,000
------------------------

Any help would be appreciated!

~MoN

View Replies !    View Related
Input Text Field To External Text File
Is there anyway to send the information typed into an input text field to an external simple text file? I don't know CGI scripting.
Thanks

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
Unicode Text In Input Text Field Flash MX
Hi
Do you know how to type in the input text field (Flash MX) in Unicode as we're Vietnamese but Flash MX input text field cannot afford this typing. But when I copy text (Unicode Vietnamese language) from Word then paste into that field, it appears correctly. I don't know why. Pls help me

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
[F8] Send Text From Input Field To Text File?
Hi!
How can i send text in an input field to a text file in the same folder by clicking a button?
Just as pure text?

I thought maybe sendandsave or something..
I have no idea..

Please help?

Thanks.

View Replies !    View Related
Resizing Text Input Field Stretches Text?
I made a Text Input field, made it multiline and resized it by dragging it to make it square for a comments field.

When I tested it, the font was HUGE inside the text area. It seems to have stretched with the resizing of the field.

Is there a way to fix this so you font size stays the same and is not effected by resizing?

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
Datagrid: Add Text Ellipsis (...) To Data Too Long For Column Field
I was wondering if anyone had any experience with cropping text and adding a text ellipsis (...) when text data is too long for a column field.

The actual adding of the ellipsis is obviously easy, but detecting when and exactly where to implement is whats got me stumped.

You can get the column's width, and probably the text label width in the cell field or a character count or some kind of work around to compare the two, but unless your using a monospace font, i'm hard pressed to find a good solution to adding this.

View Replies !    View Related
The HTML Text Field Won't Center The Text Inside... Why?
Hello there,

The thing is: I have a HTML text field in my movie that loads a variable from a txt file. I set in the text field paragraph option the 'center' mode.

Ok, it should work fine, but it doesn't... The text loads fine, but it starts in the left side of the field and not in the center as wanted.

I tried to put HTML center tags in the txt like:

Code:
&text=<center><a href="http://www.link.com">This is my text</a></center>
and:


Code:
&text=<div align=center><a href="http://www.link.com">This is my text</a></div>
Both options didn't work as well.

Is there a way to do that or I'll just have to let the HTML aside and use regular dynamic text fields?

Thanks in advance and sorry for the 'ingrish'

View Replies !    View Related
Clickable Text Inside Multiline Text Field
Hi there,

I have a movie with a dynamic multiline text field, and want each line of the text to be clickable. The text is put into the text field from a script, and I am using HTML formatting to make the text clickable, as in

mytextfield = "<a href="http://www.domain.com"> + string + "</a>";

However, I don't actually want my clickable text to go to URLs, I want it to run some ActionScript, but I can't figure out if it is possible. Basically what I want to do is something like this

mytextfield = "<a href="_root.gotoAndPlay(4)"> + string + "</a>";

Maybe I'm going about it the wrong way, but I can't find any advice on how to make clickable text in a text field which triggers an ActionScript command.

Hope you can help - Sam

View Replies !    View Related
Loading A Different File For Each Button In A Single Dynamic Text Field
Hi,

I'm trying to make something where I have many buttons associated to a different file. Each time a button is clicked it should load the text from that file into the dynamic text field. Also in future, just to be able to open any file associated to the button dynamically

------
This is the code I put in for each button:

on (release) {
_root.gotoAndPlay(1);
}

This is the code I got from Kirupa.com so that the file text can be displayed in the dynamic text field:
/****************************************
*********************
****************************************/
ranFile = new LoadVars();
ranFile.onLoad = function(success) {
if (success) {
ran = this["txt"];
file_txt.text = ran;
}
else {
file_txt.text = "The text failed to load due to an error";
}
}

//need to figure out how to get fileNum to be able to determine which file Number //from which button was clicked
fileNum = "1"

//fileNum represents the number in the file name
ranFile.load("\assets\button_load_file" + fileNum +".txt");

stop();


------

Thanks!

View Replies !    View Related
Dynamic Text Inside Text Input Boxes?
I have a website project I'm working on where content is entered into input boxes in Flash and then I use PHP and MySQL to store the text and display it on the main part of the Flash site. Site users will use the same input boxes for edit the text, so I would like, if there is currently text in db, for it to show up inside the input box as well when they go to change it. I am not much of an Actionscript coder, so I am using mostly scripts that I found on the internet. I have a script for pulling info from the db and displaying it inside a dynamic text box in Flash, and another script for taking the text from the input box and sending it to the database. Both of these snippets of code work fine when I use them in other places on the site. When I use them together, however, the text from the db displays inside the input box just fine, but when I change it and hit Submit to change the text, instead of entering the text I wrote it enters the word 'undefined' and this is what shows up in the text box from that point forth. Does anyone have any idea what I need to do to make the 'output' code work with the 'input' code? Here is the code as I'm using it:

Code:
//this section pulls the text from the db, it seems to work just fine
myData = new LoadVars()
myData.ref = this
myData.load("wp_getdata.php")
myData.onLoad = function(success){
if(success){
in_col1_title.text = this.col1_title
}
}

//this section sends the text from the input box to the database. It works fine when used by itself, but submits the word 'undefined' when used with the above code
var php_process:LoadVars = new LoadVars();
send_button.onRelease = function() {
_root.col1_title_popup._visible = false;
var post_variable:LoadVars = new LoadVars();
post_variable.string1t = in_col1_title.text;
post_variable.sendAndLoad("wp_connect_col1_title.php",php_process,"POST");
getURL("javascript:window.location.reload(true);");
};

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
Changing Text With A Input Text Field
Not sure if this is possible. Can I change text that is within a symbol, with an input text field which is outside of that symbol. Basicly I want the user to be able to change the text in my movie on the fly. Any suggestions 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
Input Text To Dynamic Text Field
I am trying to populate a dynamic text field from an input text field after a submit button is clicked. This is not submitting to a database or a website but to the actual document itself.

I am creating a madlib for some kids. So first they fill in the nouns, verbs etc then by clicking submit it populates the dynamic text field with the input text.

I just don't know how to begin this AS. I do know I have to name the fields and possibly thier instances but I am not familiar with how to proceed. All searches for this have turned up actual forms on the internet etc.

Many thanks for any help.

Josh

View Replies !    View Related
Text Size In The Input Text Field
Hi all,

How can I set the text size of the input text field?

View Replies !    View Related
Limitting Text Input To The Text Field
Good Day to All!


i have a problem with textfields:

i created a textfield using action script:

createTextField("profile",6,340,5,250,150);
var tf:TextFormat = new TextFormat();
tf.size = 11;
tf.font = "Verdana";
tf.color = 0x000000;
tf.align = "left";
tf.leading = -2;
profile.setNewTextFormat(tf);

but the text data that is being input to that textfield is longer than the field
itself... how can i make it so that it will automatically go to the next line if the
entered text data is longer that the text field width?


thanks!!!

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