Text Field Help Please
I wish to create text fields or text box with a different colour.
The default are Background colour WHITE with default text colour BLACK.
I wish the background to be a different colour as the attached graphic shows.
Can anyone please tell me step by step how to do this. Also if I wish to change the text colour.
I'm using Flash MX
I have looked in the properties box and there is nothing there although I have seen it on Flash sites.
I'm desperate.
All help will be much appreciated
ActionScript.org Forums > Flash General Questions > Other Flash General Questions
Posted on: 06-11-2003, 03:32 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...
Currently I'm using javascript which works fine to pass text from textfield A to textfield B:
Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
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.
Your help/advice would be greatly appreciated,
-Scott
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
Getting A Text String Value From A Text Field And Duplicating It In Another Text Field
I'm trying to take the text from one text field and duplicate it in another.
I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root,video_title.
I have tried this:
_root.video_title.text = _root.MC_Control.tab_title.text;
and this:
_root.video_title.text == _root.MC_Control.tab_title.text;
neither one seems work....am I missing something?
[FMX04] AS - Showing Text Field As HTML Field With XML/CDATA.
Hey all -
Trying to get a text field in my Flash MX movie to pull from and XML file with CDATA tags to show as HTML. I've checked the box to render as HTML for the text data field... but I'm having problems with the Actionscripting.
The field from this line is what I need to recognize as HTML reading CDATA tags:
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
I know I need to do more than just change it to ".html" instead of ".text" and have tried a couple things, but nothing seems to work.
Any help greatly appreciated!
Code:
//Create the XML Object
myXML = new XML ();
myXML.load(newXml);
myXML.ignoreWhite = true;
//Load XML file
myXML.load("PBintro.xml");
//Make a reference to current timeline
myXML.ref = this
// Parse XML and fetch
myXML.onLoad = function(success){
if(success){
var root = this.firstChild ;
nodes = root.childNodes
for(var i=0; i<nodes.length; i++) {
this.ref["Title_txt"+i].text = nodes[i].attributes.name
subnodes = nodes[i].childNodes
this.ref["Comments_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i].text = subnodes[0].firstChild.toString()
this.ref["Link_txt"+i] = subnodes[1].firstChild.toString()
this.ref["holder_mc"+i].loadMovie(subnodes[2].firstChild.toString())
this.ref["textField"+i].text = subnodes[3].firstChild.toString()
this.ref["textField"+i] = subnodes[4].firstChild.toString()
}
} else trace("Error loading XML document")
}
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
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!
XML And MC Text Field Propigation (text Field Appear At Frame 2)
I am using xml and actionscript to propicate two fields in a mc.
The problem I am having is that both fields dont show up until the second frame of the mc. since they are not on the first frame the xml doesnt propicate the fields.
Is there any way to refence a field on the second from of a MC
I am using the following code:
Code:
function loadXML(loaded) {
if (loaded) {
_root.attractions = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
_root.description = this.firstChild.childNodes[0].childNodes[1].firstChild.nodeValue;
_root.theaterinfo.header.text = _root.attractions;
_root.theaterinfo.description.text = _root.description;
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("attractions.xml");
stop();
The text boxs header and description dont appear until the second frame of the MC theaterinfo
If i move these text field to the first frame they propigate with their text just fine. once they are moved to the second frame they no longer work.
edit: I also would like to mention that the movie clip theaterinfo has frame one blank with a stop(); command and then on frame 2 the dynamic text fields are referenced.
all help is much apreaciated
Thanks
Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.
This is my approach but if there is an even easier way let me know.
I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash
i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.
then on the flash movie.swf. all on root level. i have the following code
var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.
var_sender = new LoadVars();
myData = new LoadVars();
var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)
myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");
on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.
here is the heart of the script.asp code. not showing the record set filtering stuff.
<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)
response.write(text_value)
%>
but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?
So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.
I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.
Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?
Help Have Text Field Tab To Next Text Field Auto
Example:
I'm trying to get 7(a-g) input boxes (max 1 character) to tab automaticaly when the user enters a character in the text field.
text box(a) goes to text box(b) and so on.
once a character has been enterd.
I can't figure it out, is it even possible?
Thanks
Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.
The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.
message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene
Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes
Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers
Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!
Text Field "overflow" Into Another Text Field
Hi there peeps,
looking for a solution to link two separate text boxes, so that the overflow text can flow into another text box. Text is loaded dynamically, but the TextFields are input at authortime?
Any ideas? Max Chars? Split String?...
thanks,
MM
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
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('');
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 ?
Loading A Html-tagged Text File Into A Text Field...it's Just Not Working For Me...
hi,
i'm trying to load news.txt into a textfield using loadvars.
news.txt:
-----------------------------------
&news=<p font face="Verdana" size="12"><b>Recent Achievements:</b><br>Congratula etc. etc.
the as:
----------------------------------
loadnews = new LoadVars();
loadnews.load("flash/news.txt");
loadnews.onLoad = function(success) {
newstext = loadnews.news;
trace(newstext);
gotoAndStop(2);
}
the trace is showing that newstext is the text out of news.txt ... in the frame 2 that the onLoad function refers to is a textfield (multiline, with the html as true) which is supposed to display the newstext variable.
If i set newstext to something else ... eg: newstext = "some text" then it works fine ...
what's going on???
Cheers,
Ben
Button Function - Load Text File To Dynamic Text Field
Hey again,
okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.
Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.
Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.
here is what i have as the script.
Frame1 - body.swf
_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}
loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);
Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}
can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks
Wolfie
PS - Let me know if you want or need more info. Am happy to post it up.
Using Buttons To Change The Text File A Dynamic Text Field Loads?
I have a text field that loads text from a text document which works great for the news section of my site. However, is there a way I can keep that same text field and change it's content based on what button is pressed? For instance, if someone is viewing the "news" section of my site, and then they click on the "links" button, can I unload news.txt and load links.txt into that text field?
Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Here's my actionscript:
PHP Code:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
Here is my stylesheet:
Code:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
Resizing Dynamic Text Field & Maintaining Text Font Properties
I have created a dynamic text field and have specified the height and width in the property inspector. The font is set at Verdana, 12, multiline. After searching these forums I also clicked the Character button and set it to embed font outlines for all characters.
My problem is that when I try to type or paste text into the field it is stretched to fit the field dimensions. I just want to preserve the Verdana 12.
Any help is greatly appreciated.
Dynamic Text Field Loads Text, Font Not Showing Properly
I have a flash 8 movie in which there is a dynamic text field loading data from the server. The data loads beautifully and appears in a text field formatted as html.
This html-formatted text field uses a stylesheet as well which works great for everything except the font. Using Flash, I have specified a font of DIN-Medium for the dynamic text box on my stage and yet the text that appears when I publish to my hosting provider appears to be Times New Roman. WTF?
My stylesheet does not specify any font family.
Can anyone tell me how I might get the dynamic text box to show the text using the DIN font? Do I need to export the font in the library of my flash movie or something?
Attach Code
//Here's my actionscript:
stop();
import TextField.StyleSheet;
var myStyleSheet:StyleSheet = new StyleSheet();
myStyleSheet.onLoad = function(success:Boolean) {
if (success) {
// trace("Styles loaded:");
} else {
// trace("Error loading CSS");
}
};
myStyleSheet.load("styles.css");
txtFilmNews.html = true;
txtFilmNews.styleSheet = myStyleSheet;
txtFilmNews.width = 295;
txtFilmNews.autoSize = true;
txtFilmNews.selectable = false;
var lvFilmNews:LoadVars = new LoadVars();
lvFilmNews.onLoad = function(success) {
if (success) {
txtFilmNews.htmlText = lvFilmNews.html;
} else {
trace('load failure!');
}
}
lvFilmNews.load('getHTML.php?q=filmNews');
//Here is my stylesheet:
p {
color: #53301A;
font-size: 12px;
margin-bottom: 0px;
padding-bottom: 0px;
border:none;
}
.title {
font-size: 15px;
text-transform: uppercase;
color: #D06F1A;
font-weight:bold;
}
a {
color: #D06F1A;
font-weight:bold;
}
a:hover {
color: #53301A;
}
Help With Dynamic Text Field Being Populated From A Button On Same Stage Using Text Files...
I am using the following code:
var ImportsText = "Imports";
Imports.addEventListener(MouseEvent.CLICK,doClick);
function doClick(evt:MouseEvent):void {
List.text = ImportsText;
}
This will generate the word Imports on my List.text dynamic text field.
I have a list of 30 things that need to go in the place of the word imports, one each per line.
Is there a way for me to create a text file and load it instead?
So I have button1 which loads the text from the text file text1.txt and puts it in Last.text
and so button2 loads the text from the text file text2.txt and it is put in last.text
and so on.
Would like the text files to be able to have some formating that is translated to the Last.text
I am very new to AS3.0 so please bar with me. I think I am almost understanding what I need to do but I need a push in the right direction.
Thanks allot in advance.
Tamer Z
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
External Text Loaded Into Text Field Won't Change File Attached
I have 3 textfields in 3 different frames. Each text field is for a different section of my website. I want to keep all the code that works for 1 textfield and just change the URL that is loaded. I tried so many different ways. I don't get a error so I believe the URL is being cached somewhere. When I trace it It shows that the other text doc has loaded but the text field doesn't show any change. Is there away to reload/stop cache/delete a variable?
PHP Code:
stop();var newsURL:String = "text/news.txt"//Below is other variables if you wanted to swap out the actual variable versus the url./*bioURL:String = "text/bio.txt"tourURL:String = "text/tour.txt"*///var newsURL:String = "text/news.txt"var textLoader:URLLoader = new URLLoader(); var textReq:URLRequest = new URLRequest(newsURL);var style:StyleSheet = new StyleSheet();//style defined belowstyle.setStyle("a" , {color:"#CC0000"});style.setStyle("a:hover", {textDecoration:"underline"});function textLoaded(event:Event):void{ text_mc.text_txt.styleSheet = style; text_mc.text_txt.htmlText = textLoader.data; }textLoader.load(textReq);text_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;textLoader.addEventListener(Event.COMPLETE, textLoaded);function onClickNews(event:MouseEvent):void{ newsURL = "text/news.txt";// I tried including this in the button textLoader.load(textReq);// also this gotoAndStop(1);}news_btn.addEventListener(MouseEvent.CLICK,onClickNews);function onClickBio(event:MouseEvent):void{ newsURL = "text/bio.txt"; gotoAndStop(2);}bio_btn.addEventListener(MouseEvent.CLICK,onClickBio);function onClickTour(event:MouseEvent):void{ newsURL = "text/tour.txt" //var newsURL:String = "text/tour.txt" gotoAndStop(3);}tour_btn.addEventListener(MouseEvent.CLICK,onClickTour);
Please help Thanks
http://www.theofficialvip.com/testUR...RLSwitcher.zip
Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended
Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}
etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.
ie.
Code:
archivetitle.text = this.title1;
when button one is pressed
Code:
archivetitle.text = this.title2;
when button two is pressed.
Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!
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? ?
Save My Swf App's Text Field To A Text File Or Open It In A Browser Window
How would I go about creating a button in my flash application (swf) to simply save the contents of a single text field (plain text) to a text file in the location of the user's choice?
Or, even better, could I have it open up in a new browser window?
Also, is there an easy way to print that same text field--nothing else, just the text. This actionscripting is still hard to grasp. I'm not having any luck making the print dialog even show up. Here's my script:
printpage_btn.onRelease = function(){
var my_pj = new PrintJob();
var myResult = printJob.start();
if(myResult){
myResult = my_pj.addPage ("AminoAcids_txt", {xMin: 0, xMax: 540, yMin: 0, yMax: 720});
myResult = my_pj.addPage ("AminoAcids_txt", {xMin: 0, xMax: 540, yMin: 720, yMax: 1440});
my_pj.send();
}
delete my_pj;
}
Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.
The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);
but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);
Any ideas what I'm doing wrong?
Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.
Thanks
Resising A Dynamic Text Field Depending On The Amount Of Text...
Hi all...
I have a flash movie reading a xml file...
i m getting a list of questions and their respective answers...i d like to load those answers into a Mc that contains a dynamic text field ...
the question is:
how can i "resize" (add lines) my dynamic text field depending on the amout of text - i tried getting maxscroll and resizing but that only makes it bigger and doesnt add any additional lines like i d like it to...
thanx 4 ur help
Loss Of Text Formatting When Using Dynamic Text Field & Scroller
Hi all,
Using MX...
Another small problemo im having is when i format text in my dynamic text field and attch the scroller component to it, in preview mode i lose all the text format and it goes to the first text format it encounters and uses that for everything else in the dynamic text box.
Im not actually loading any text into the dynamic text box, im just using it with static text, so i can use the scroller component.(as i understand it, you can only attach the scroller component to a dynamic text box ??)
Why am i losing my text format AND is there a better way to have a scrolling text field when i just want to use static text...???
Thanks guys..hope thats not too confusing
Cheers
Linking External Text Files To Load Into A Text Field
hmmz.. i followed this tutorial.. http://www.flashkit.com/tutorials/In...40/index.shtml
Actionscript for Flash 5 dummies: Scrolling a text box II
so i manage to get everything to work so far minus the scroll bar which i omitted..
now i would like to be able to have different buttons to load different text files externally into the same text field..
what code shld i put for this buttons??
the movie clip of the textfield+scroller is called textbox
the textfield is called textbox2
the var of the textfield is called welcome
hope someone understands me..
Html Text Field Write To Flash Dynamic Text Box
I have a dynamic text field in Flash.
I would like to have users type a message in the HTML text field and have it eventually appear in the Flash dynamic text field.
How can I get text from an HTML text field (on the same page as the swf) to write to the Flash dynamic text field?
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
Using Text File For Dynamic Text Field From External Domain
I have a .SWF file on a (we'll say original.com, for reference purposes)... I have a dynamic text file in that .SWF file, which is currently loading a text file using the loadVariables function. I would like the movie to start loading the text file from another server, which we'll call new.com, for reference purposes.
I'm told that Flash will not load files from external domains, but is that it - end of story? Is there any way I can somehow get this to work?
I know some stuff about PHP, so maybe that'll help?
Any help would be greatly appreciated... Thanks.
Can Text Loaded From Variable Be Scrolled In A Dynamic Text Field ?
Simple problem here.
I put a dynamic text field on the stage. Added a scroll bar component and filled in the values in the parameter box. I typed lots of text directly into the text field, and it scrolled well. So far, so good.
Now I wanted to load that text from an external file, did the necessary action script und assigned the text to a variable, added this variable to the dynamic text field parameters.
Now the text field shows as much of the text as fits in it, but the text can not be scrolled any more. The rest of the text is just cut off.
Why the **** ???
And - can it be made scrollable somehow?
And if not - why the **** not ???
Loading Text Into Dynamic Text Field With Full Justify - Can It Be Done
Hi!
Trying to load in text into a dynamic text field that is html formatted and "full" justify the text.
Cant seem to full justfiy the text.
"full justify": spreads text out to fill up a whole line by automatically setting the spacing between words.
1)
I have tried using html formatting to align the text: <p align="justify"></p>
justify isnt accepted by flash
2)
set the text field in flash to full justify
works fine if text inputted into the dynamic text field before compiling
But if text is loaded in, then the formatting is lost.
Anyone got any ideas how to do this?
I'm thinking of using php's GD lib to create a jpg using text retrieved from a database with the text fully formatted in the jpg image and loading in the jpg image, but then I lose my html formatting.
any other solutions? or have I overlooked something here?
cheers
xiang
Determining Number Of Lines Of Text In A Dynamic Text Field
I'm working on a movie that has a large number of dynamic text fields in it, which are being fed data from .xml sources.
The width of the dynamic text fields are set and cannot be changed, and I need is to find a way to determine how many lines tall each text field will need to be to fit it's data. If I were using a monospaced font this could be done pretty easily, but it has to use a non-monospaced font since the look of the piece is critical.
So.. is there any way to determine when Flash uses a linefeed within a dynamic text field? Or any way to find out how many lines have been filled with text after it's been populated with data?
Thank you.
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)
Dynamic Text Field In My Custom Component Shows No Text In SWF
Flash MX 2004 on MAC platform (not professional version)
------------------------------------------------------------------------
Hi,
I created a custom component in Flash MX 2004, which has two custom text fields defined by variables and one link defined by a variable also (3 variables total).
When I publish my movie, one of the text fields in each instance of my component on the stage is always empty (the same one) ...does anyone have any idea why?
It doesn't make sense to me that i have it working for one text field and not for the other....I don't THINK that I am doing anything differently between them...?
I have uploaded my small FLA here:
http://www.lucid-life.com/my_component.fla.zip
Can anyone help?......
Thanks,
Cheska
[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!
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!
|