Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document. The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swfhttp://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )The code which formats the text boxes is:with (main["dragAct"+i].dragActText) { text = actText[i+1]; background = true; backgroundColor = "0xe2e2e2"; setTextFormat(myFormat); autoSize = "center"; border = true; borderColor = "0x666699";}my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:var myFormat:TextFormat = new TextFormat("Tahoma", 12); myFormat.leftMargin = 20;myFormat.rightMargin = 20;myFormat.bold = true;Any suggestions most welcome.Thanks
KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 11-28-2006, 07:28 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
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?
Border Around Dynamic Text Box
Is there a way to change the size of a border around a dynamically created text box, the only actionscript I can find is textbox.border=true or false, which draws a border width 1, as far as I can see. Is there any way of making the border bigger width?
Thanks
Dynamic Text Box Border
I am just starting to learn Flash and found script to add a date to a dynamic text box. This worked fine but there is a black border around the box that I can't remove. I tried removing the Stroke color but that doesn't do anything to the box. I also changed the font to be Arial, bold, italic and it's just Arial. It didn't make any of my changes. How do I remove the border and get the dynamic text box properties to work correctly?
Thanks for the help.
Removing Border Line Around Dynamic Text Box
I made a Dynamic Text box with flash.
when I see the movie after I export it , I can see the border line around the text box.
I want to remove the border line.
Can I do it?
How?
Dynamic Text In TextField, Extending Beyond Border?
Code:
createTextField("CaseBody", 101, 365, 80, 394, 394);
//
CaseBody.html = true;
CaseBody.multiline = true;
CaseBody.wordWrap = true;
CaseBody.autoSize = true;
CaseBody.border = false;
CaseBody.selectable = false;
//
CaseBody.embedFonts = true;
//
//
headFormat = new TextFormat();
headFormat.font = "DIN";
headFormat.color = 0x000000;
headFormat.bullet = false;
headFormat.underline = false;
headFormat.size = 21;
headFormat.leading = 1;
//
contentFormat = new TextFormat();
contentFormat.font = "FUT";
contentFormat.color = 0x000000;
contentFormat.bullet = false;
contentFormat.underline = false;
contentFormat.size = 16;
contentFormat.leading = 2;
//
introCopy = new LoadVars();introCopy.load("THFC.txt");
//
introCopy.onLoad = function(ok) {
if (ok) {
CaseBody.htmlText =introCopy.heading+newline+newline+introCopy.contents;
CaseBody.setTextFormat(contentFormat);
CaseBody.setTextFormat(0, introCopy.heading.length, headFormat);
} else {
trace("Problem loading the text file...");
}
//
Now what's happening is that it seems to be okay, except the end of the text (it is a long string) does some very weird things, it either doesn't completely load, or it just puts the final bit out as one long line that extends outside the border of the box and just goes on?
Anyone have any idea what the problem could be, is it not completely loading or something :-(
Dynamic Text Border / Printing Problem
When I create a dynamic text field and toggle on the 'Show border around text' option. The text field looks and prints correctly.
If I embed the font in the text field, the border still shows up when the SWF is viewed, but if I print the SWF, the border does not print.
I've even tried setting the border to true in actionscript with no success when printing. Any ideas?
Thanks!
Flash 8 Creating Dynamic Text Field With Border
Hi
I am new to Action Script and trying to create a text field runtime as below.
var txtField = createTextField("aTextField", 1, 15, 200, 60, 21);
txtField.border = true.
What I am after is to have different border like a raised bevel border or lower bevel border and not a line border. Any help is much appreciated.
Many Thanks in advance.
Bhanu
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
Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.
I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.
If someone could please inform me on how I should do this I'd be vary greatful.
If you need any further information I'll reply as soon as possible.
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!
Content For Dynamic Text Boxes?
Hi,
Is it possible to add a movie clip as content to a dynamic text box?
The reason being that I want to use the content of the text box (ie the movie clip) for several different things. I want to print out the content of the text box sans the border or scollbar component.
Can anyone shed some light on this please?
-- spiral
Reloading Dynamic Text Content
I've got 2 dynamic text boxes in my swf on _level7. Everything loads in fine the first go, however when a new section is clicked, one of the button actions is unloadMovie in _level7, resets the variable for the text file to be loaded, and then does loadMovie in _level7.
The problem is, when the new content is loaded, the one of the text boxes still shows the top half of the previous text which cuts into the top half of the new text. Only the new text is selectable and I can't figure out why the old text doesn't dissapear when unloadMovie is performed...does it have something to do with the height of my text box?
Dynamic Text Box With Random Content
i want to create something like "quote of the day",
and i want the content to be displayed in a dynamic text box that reads from an external txt file,
like i have this file:
quote1=love your enemy"e2=do not swear"e3=forgive my sins
the question is i want to general a random number from 1 to 3, but how can i tell with actionscript the textbox where to point to the txt file the quotes corresponding to the number generated?
Dynamic Text Content + Notepad
How do you get the content of dynamic text box to read off a notepad.txt file? So there's no text in the flash file but it's all in the notepad file.
Scrolling A Dynamic Text Content
Hi!
Does anyone has a solution for a scrollable dynamic text? The text would be loaded from an external source and it's length is various.
I've used the "text area" component till now but I don't like it's design and it is too big for my movie.
Thanks,
Peter
Scrollable DYNAMIC Text Content?
anyone knows how to make a text scroller that can scroll dynamic text?
the tutorial in kurupa only supports static text.
please help!
Dynamic Text Content Does Not Show Up
Hi, I'm attaching several movieclips onto the stage inside a for-loop and populating a dynamic textfield within the moviclip inside the same loop.
Tracing the texfield.text shows the proper value in the Output console. However, the text value is not visible on the stage.
I've drew a shape next to the dynamic textfield just to make sure the movieclip is being properly attached. I can see the shape but there is no text next to it.
Anyone got idea why it is so? THanks!
Code:
var xPos=200;
for(var i=0; i<image_list.length; i++){
xPos += 70;
trace(image_list[i].firstChild);
_parent.attachMovie("imagenumber_mc", "imagenumber"+i, i+21, {_x:xPos, _y:420});
_parent["imagenumber"+i].imagenumber_txt.text = i;
trace(_parent["imagenumber"+i].imagenumber_txt.text);
}
Testing If Dynamic Text Has Content
Im trying to make a site that tests if a dynamic test field has text loaded into it and then makes a button clickable. For now Im just working with the trace function and testing the lenght of the text but its not working. Anybody got any ideas why... here is the code at the mo.
ActionScript Code:
// testing if there is text in Location button 1 and making loc1date1_btn clickable
if (loc1date1_txt.text.length<=1) {
trace("no content in loc1date1_txt");
} else {
loc1date1_btn.onRelease = function() {
trace("content in loc1date1_txt");
};
}
Rotated Dynamic Text Field --> No Content
Hello,
I've got a dynamic text field in a movie clip. There's no Problem showing the right content in the field, until i rotate the movie clip or the text field.
When the text field is rotatet i don't see it on the preview.
i tried a lot of possible ways to show text in this rotated text field, without any result. I'm still
Please help me
Thank you
Regards
Fabio
Setting A Dynamic Text Fields Content
I have am creating text fields dynamically using:
this.createEmptyMovieClip("shape", 2);
shape.createTextField("textField", 1, 0, 0, 100, 200);
with (shape.textField) {
selectable = true;
type = "input";
html = true;
border = true;
background = false;
multiline = true;
text = "enter lable here";
autoSize = true;
}
path to each of these is on a count as follows
_root.MC1.shape.textField.text
_root.MC2.shape.textField.text
What I want to do is have a path like:
"_root."+target+".shape.textField.text" = TextVar;
But for some reason it will not work - guess it is something to to with the path to text being text not a var called text?!?
Can anyone help?
Cheers in advance
Ol
Dynamic Text Boxes With Linked Content - HELP
Hi there,
I am trying to find out how to do the following:
I have 2 text boxes "A" and "B" laid out on the stage. The content for them is pulled in from a text file... however the content needs to fill the first text box ("A") and then the overflow text needs to fill the second text box ("B".
The reason the textboxes are split is because there is an image (which will change) between them.
Please please HELP!!!
Thanks
Dynamic Content: Use A Text File Or MySQL?
I am planning out a site that will have dynamic content inside Flash. One of these dynamic elements is going to be a list of high scores from a flash game. The other dynamic element is going to be a news headline and link that can be updated from an admin.
So, knowing that the high score display will need to be MySQL, how should the headline/link and admin be handled? Should the admin PHP simply write to a text file, or should it write to a MySQL database?
Also, is there a rule for when to use a DB and when to use a text file? What variables need to be considered in making this decision?
jj
Duplicate Content In Dynamic Text Boxes?
what's the best way to get one dynamic text box to load the same text from another dynamic text box, so the content is duplicated?
i have two variables txt_msg and txt_msg2, each in a movie clip with a different instance name.
also, the text is loaded from an XML file, so i don't want to load it in twice, just copy the contents already loaded.
Adjust Dynamic Text Width To Its Content
Hi,
in my multi language flash animation, i allow users to select the interface language.
in order to remind them what language they chose, i display it into a dynamic text field.
However, as this text field is overlapped with a buttonclip, i would like to auto adjust the dynamic text field with its content.... and on the same time to do it also for the overlapping button. (this button allow end user to display the dialog box to choose another language)
to understand it, let's take an example. Application has the following languages : English, French, Spanish and Slovak.
each time that user select a language, the dynamic text field should display : the word "language" in the selected language + " : " + "language" word in the selected language.
so something like :
Language : English
Langue : Francais
Idioma : Espanol
Jazyk : Slovak
now, you can easily understand that the auto adjustment is a good choice to avoid a too large or too smal button and also text field (to display the whole words)
How can i do that ?
is there something under AS3, which count pixels or width of a sentence ?
thanks a lot,
A.
Display Content Of TextInput In Dynamic Text Box?
I got the script below from the forum here and it works great, but I need to display the numbers typed into the TextInput boxes in a dynamic text box and I can't seem to get that part to work. Here's what I've got.
On frame 1 are the TextInput boxes and the ActionScript below. On frame 2 are 3 dynamic text boxes that are supposed to display the content of the TextInput boxes from frame 1. I used the instance names "one", "two" and "three" for the TextInput boxes. I used resultBox1, 2 and 3 as instance names for the dynamic text boxes in frame 2. I set up 3 variables called "areaCode", "prefix" and "phone" and put the following code at the bottom of the code you see below:
var areaCode = one.text;
var prefix = two.text;
var phone = three.text;
I then set up ActionScript in frame 2 that reads:
resultBox1.text = areaCode;
resultBox2.text = prefix;
resultBox3.text = phone;
to display the content of the TextInput boxes. I get nothin'.
Can someone tell me what I'm doing wrong and how to fix it? I guess I should mention that I'm using Flash MX 2004.
Thanks
Here's the code I got from the forum:
put three text inputs (components) on your stage, call them "one" "two" and "three". Then put this code on the first frame (the frame they are on
import mx.controls.TextInput;
var one:TextInput;
var two:TextInput;
var three:TextInput;
var oneMaxLength = 3;
var twoMaxLength = 3;
var threeMaxLength = 4;
var oneListener = new Object();
oneListener.change = function(event) {
if (one.text.length > oneMaxLength) {
one.text = one.text.substr(0,oneMaxLength);
}
else if (one.text.length >= oneMaxLength) {
two.setFocus();
}
}
one.addEventListener("change",oneListener);
var twoListener = new Object();
twoListener.change = function(event) {
if (two.text.length > twoMaxLength) {
two.text = two.text.substr(0,twoMaxLength);
}
else if (two.text.length == twoMaxLength) {
three.setFocus();
}
}
two.addEventListener("change",twoListener);
var threeListener = new Object();
threeListener.change = function(event) {
if (three.text.length > threeMaxLength) {
three.text = three.text.substr(0,threeMaxLength);
}
}
three.addEventListener("change",threeListener);
Showing XML Content On A Dynamic Text Field
Hi there, i´m trying to read an xml file content and display it on a flash dynamic text field i take the AS code from a tutorial on the web, but it´s not working, i didn´t receive any errors on it it´s just shows the empty text field. Can anyone help me out with this?
PHP Code:
//Declara la variable "obj_xml" como un objeto XML
function loadXML(loaded) {
if (loaded) {
inventor = this.firstChild.childNodes[0].childNodes[0].firstChild;
mostrador_txt.text = inventor;
} else {
trace("file not loaded!");
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("datos.xml");
And this is the xml file:
PHP Code:
<?xml version="1.0" encoding="iso-8859-1"?>
<!--<!DOCTYPE note SYSTEM "note.dtd">-->
<siteconastec>
<principal>El alcance de este asesoramiento abarca el brokerage de sociedades, los comodities, la consultoría general en materia de finanzas, y el servicio de soporte y asesoría operativa.</principal>
<integrantes>
</integrantes>
<clientes>
</clientes>
<servicios>
</servicios>
</siteconastec>
I only want to show the existing text.
Thanks
Juan
Get Dynamic Text Specific Line Content
How can i get a dynamic tex specific line content?
The dynamic text is formatted in multiline.
Can't i get something like: texbox.line[5]? Of course this doesn't work.
But is there another possibility?
Dynamic Text Field: Can I Preload Content?
So, I thought it would be a great idea to use a dynamic text box to load html formatted text and images. The box works, but the response time is really slow. I'm having multiple text fields load over each other and images take for ever to load ( a 14kb PNG takes upwards of 5 seconds).
Is there a way to preload the .txt files and images that are not embedded in the SWF?
Here's the site if anyone wants to take a look:
www.alexcaton.com
http://www.actionscript.org/forums/i...es/redface.gif
Adjust Dynamic Text Width To Its Content
Hi,
in my multi language flash animation, i allow users to select the interface language.
in order to remind them what language they chose, i display it into a dynamic text field.
However, as this text field is overlapped with a buttonclip, i would like to auto adjust the dynamic text field with its content.... and on the same time to do it also for the overlapping button. (this button allow end user to display the dialog box to choose another language)
to understand it, let's take an example. Application has the following languages : English, French, Spanish and Slovak.
each time that user select a language, the dynamic text field should display : the word "language" in the selected language + " : " + "language" word in the selected language.
so something like :
Language : English
Langue : Francais
Idioma : Espanol
Jazyk : Slovak
now, you can easily understand that the auto adjustment is a good choice to avoid a too large or too smal button and also text field (to display the whole words)
How can i do that ?
is there something under AS3, which count pixels or width of a sentence ?
thanks a lot,
A.
ComboBox To Create Content Of Dynamic Text
Hello,
I'm trying to create a form that allows the user to pick some options and then once submitted I want my coding to add up all of my attached prices and give them an estimate. I'm stuck because I do not know how to use this to turn into variables that I can use in my coding.
Printing Dynamic Text Field Content...
blah... bluh... I realy hava a huge problem!
I'm working on of the most important projects in my life! that's school web site www.aat-edu.org - I did all the design and little bit of flash... but my client wants a print button, that will print that dumb text...
I have a dynamic text field, text is loaded from the external text file...
it looks like this:
ActionScript Code:
onClipEvent (load) {
loadVariables("news.txt", this);
}
onClipEvent (data) {
_root.scrolltxt.htmlText = this.MyText;
}
and now, I have to make a button that will print the content of the text file...
I drafted this code:
ActionScript Code:
on (release) {
print(_root.scrolltxt.htmlText,"bframe");
}
but the dumb button prints the whole page... I mean with all those buttons, but it is supposed to print only the content of the dynamic text field!
would be enormously glad if someone could help me out with this...
Dynamic Text Field Content Does Not Display In .swf
I am very new to Flash. I'm trying to update a dynamic text content in a .fla that someone else created. It seemed a pretty trivial task but I can't figure out why I do not see the current text displayed (before I made any changes) when I preview or build the .swf?
I've debugged the actionScript code and I see the dynamic text variable being set but like I said, it's as if this code is not executed when the movie plays.
Any help would be greatly appreciated. Thanks.
Below (and attached) is the actionscript 2.0 code that updates the dynamic text variable (daTextBox2):
(I'm not sure the code was attached to the thread because I got a runtime exception)
onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
Attach Code
onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}
Dynamic Text Field, Content And Alpha
Hi.
I have a MovieClip (mcContainer) that contains a dynamic text field (txt1), that was created directly on the Stage. Then I added text to the text field with:
this.mcContainer.txt1.text = "my wonderful text";
When I change the mcContainer's alpha, the text's alpha doesn't change. So, what am I doing wrong?
Thank you in advance.
Masking Content And Dynamic Text Boxes
so i have a problem...
i am loading external swf files into a masked content blank movie. it all seems to work fine except when the external swf file also contains a dynamic text box which loads text from an external text file. the swf works on its own, but when its loaded into the masked content on the main movie the text dosent show up. when i take out the mask on the main movie the text shows up just fine but now its unmasked. completely puzzled.
Adjust Dynamic Text Width To Its Content
Hi,
in my multi language flash animation, i allow users to select the interface language.
in order to remind them what language they chose, i display it into a dynamic text field.
However, as this text field is overlapped with a buttonclip, i would like to auto adjust the dynamic text field with its content.... and on the same time to do it also for the overlapping button. (this button allow end user to display the dialog box to choose another language)
to understand it, let's take an example. Application has the following languages : English, French, Spanish and Slovak.
each time that user select a language, the dynamic text field should display : the word "language" in the selected language + " : " + "language" word in the selected language.
so something like :
Language : English
Langue : Francais
Idioma : Espanol
Jazyk : Slovak
now, you can easily understand that the auto adjustment is a good choice to avoid a too large or too smal button and also text field (to display the whole words)
How can i do that ?
is there something under AS3, which count pixels or width of a sentence ?
thanks a lot,
A.
Masking Content And Dynamic Text Boxes
so i have a problem...
i am loading external swf files into a masked content blank movie. it all seems to work fine except when the external swf file also contains a dynamic text box which loads text from an external text file. the swf works on its own, but when its loaded into the masked content on the main movie the text dosent show up. when i take out the mask on the main movie the text shows up just fine but now its unmasked. completely puzzled.
Dynamic Content Imgs/Text Followup
In an earlier discussion I asked about how I could get my external imgs and text to load in an HTML that did not reside with the SWF file.
The link below is an example of how the imgs can get loaded:
http://imagehost.vendio.com/my/zoom/...img2=20577.jpg
I do understand how the ?svr section is calling the data. Is ther a script in the SWF that refers to these same URLs or does this allow you to put the code in on the HTML page that does not reside with the SWF?
[Help] Resize Dynamic Text Field To Fit The Content.
Dear all,
I'm now trying to add a dynamic text field in FLASH.
And, the question is:
Can the TEXTFIELD resize to fit the content using ActionScript?
I mean, if the content only contain 2 words, then the textfield resize and fit only 2 words.
(assume 10px for a word, then the text field will be 20px)
And if the content had 20 words, and the text field enlarge and fit the content.
(same assumption, the textfield enlarge to 200px.)
Thanks!
Dynamic Text : Dynamic Height (depending On Content)
Hi people.
Im working on a website, and in some part there is a dynamic text space that sets its width depending on the resolution.
But well, I want the text to be sitting downside of my webpage. For this (I guess) I need to set the height of the space to its contents, so that I can use the textspace height as a unit, for putting it to the ground
(myTextSpace.y=stage.StageHeight - myTestSpace.height)
But well, I do not know, if there is any way to set the textspace height to its contents.
I hope I'm clear, thank you.
How To Load Content In Text File Into Dynamic Textfield?
I try to use the loadVariable() method to know the data into the dynamic textfield, but I fail. I put the text file in the same directory as the movie. In fact I am not quite sure what the exact format of the data in the text file should be. In my text file I write:
myText.htmlText = "hello <b>world</b>!"
And my code is:
loadVariables("text.txt", "myText.htmlText");
Can anyone tell me what is the correct method of using the loadVariables() method?
Thanks a lot.
Loading Dynamic Text Content In The Listbox Component
How can I load variables from a txt file into the labels of the Listbox component in FlashMX?
loadVariables("0306.txt", "/");
lbPhotos.addItem(0);
lbPhotos.addItem(1);
lbPhotos.addItem(2);
lbPhotos.addItem(3);
function chlbPhotos() {
jpgMovie.loadMovie("/"+lbPhotos.getSelectedItem().data);
}
This is as far as I have got!
regards,
Huub Helsen
Netherlands
Force Dynamic Textbox To Display New Text Content
Hey y'all
I have a menu, which is dynamic text using the asfunction.
The buttons in the text simply change a variable, and an onClipEvent is supposed to load and overwrite the text in the same textbox (which originally had the menu text).
Problem is, the new text is not replacing the old text automatically, but it is possible to see the new text if you move the scroll bar or you can see it for a short moment when you reset (reload) the menu text.
So the text is there, it's just not replacing the old text.
Any ideas how I can force it to show the new text?
Dynamic Text Field Content Stops Half Way
I've created a flash file which reads an external text file. The text file is constantly updated as its a log of visitors to my website. The dynamic box reads it so far till it meets an '&.' It then stops. Is there a way with actionscript or php to cut out all these &'s?
XML>Flash Content, Dynamic Text Auto Size
Hi, I don't know how to auto size dynamic text field for the content. For Example XML Sends "Hi All" dynamic field shows this, but if the content is too long for example "Hi All, I have problem about Action Script... etc" dynamic text can't show all of them cauz dyanamic field's witdh and height is 100*25, So the problem is if the content is too long I want to auto resize dynamic text field's witdh and height. I want to do this cauz I have scrollbar which one is moving according to dynamic text height. How can I do this any idea ?
|