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




Dynamic Text That Doesn't Change Size?



Hello!

Is there a way to make it so that dynamic text does not change with the size of the flash movie? I published a movie using "Percent" and not "Match Movie", so the flash movie changes with the size of the browser window. But I do not want certain text to change size...

I tried loading the text through a *.txt file and then setting the font size <font size = "12">, however, the font size still changes with the movie...

Can anybody help me?



FlashKit > Flash Help > Flash MX
Posted on: 08-31-2004, 07:16 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Dynamic Text Doesn't Stay When Change
my unit's btns will change what will display in the dynamic text. But the changed text doesn't stay but revised back to what was set initially!

please refer to my .fla.

How do i dynamically change the text if i want to affect change from another _level? i try setting my currentUnit.text = to a _global variable but it didn't effect the change.

erm, the external.swf is unnecssary ...cos the main thing is getting the text to display correctly, trigger but the drop down 5 bottns.. .

Dynamic Text Doesn't Stay When Change
my unit's btns will change what will display in the dynamic text. But the changed text doesn't stay but revised back to what was set initially!

please refer to my .fla.

How do i dynamically change the text if i want to affect change from another _level? i try setting my currentUnit.text = to a _global variable but it didn't effect the change.

erm, the external.swf is unnecssary ...cos the main thing is getting the text to display correctly, trigger but the drop down 5 bottns.. .

Did MX Come Out With A Dynamic Text On Mouse Over Cursor Doesn't Change
That thing that changes to a >>> I <<<< shaped thing when you roll over a dynamic text field. did MX come out with a function to not do that so it stays an arrow like how the static text field works??

Can I Change The Size Of A Dynamic Text
Here is my question. Is there a way to dynamically change the size of a text box in flash 5 while the movie is running. I have send data from a database to be displayed in a dynamic text box but I need the text box to grow or shrink depending on the amount of text I send to it.
Thank you all in advance.

Change Dynamic Text Color/size?
Hello, I was wonder how you change the color and size of text that appears in a dynamic text field. I tried selecting it and changing it in the "characture" panel, but that doesn't seem to do anything. how would I go about this?

Change Dynamic Text Font Size
I have a dynamic text box that I do not want to be over 234 px wide. When I load in text that is too long, I simply want to resize the font size until it displays all characters. Here is what I have tried:

//Getting current format of description text field
f_picdesc = PictureDescription.getTextFormat();

while(PictureDescription.textwidth > 234){
f_picdesc.size = --f_picdesc.size;
PictureDescription.setTextFormat(f_picdesc);
}

Doing it this way creates an infinite loop as it appears that PictureDescription.textwidth never changes even though I setTextFormat. What am I missing or is there a better way to do this? Thanks for your help.

Change Dynamic Text Font Size?
How do I change the dynamic text font size using actionscript?

I'm looking to do something like "instanceName.text = 50" but can't figure out how to. Thank you!

Is There A Way To Dynamically Change Size Of Dynamic Text?
Hi all!
Can someone tell me if there is a way to dynamically change the size of dynamic text box? I have a text display with two text fields and a graphic between them - i need to load text to the first field and change the height of the field acording to the amount of the text loaded and then the graphic has to follow straight after. Is there a way to do it?
thanks for any help

(FMX)Automatically Change Size Of Dynamic Text Box
I have an MC with a single-line dynamic text box in it. I am placing the MC on stage using attachMovie. Then I am loading text into the dynamic text box in the MC I just placed on stage. I am trying to figure out code that will make the dynamic text box either scale up or down to fit the text that I am loading into it. Any ideas?

Is There A Way To Dynamically Change Size Of Dynamic Text?
Hi all!
Can someone tell me if there is a way to dynamically change the size of dynamic text box? I have a text display with two text fields and a graphic between them - i need to load text to the first field and change the height of the field acording to the amount of the text loaded and then the graphic has to follow straight after. Is there a way to do it?
thanks for any help

(FMX)Automatically Change Size Of Dynamic Text Box
I have an MC with a single-line dynamic text box in it. I am placing the MC on stage using attachMovie. Then I am loading text into the dynamic text box in the MC I just placed on stage. I am trying to figure out code that will make the dynamic text box either scale up or down to fit the text that I am loading into it. Any ideas?

Change Font Size To Fit Dynamic Text Box Rather That AutoSize Text Box
Hey guys,

First post, I searched and couldn't find an answer to this question, I don't think this has been discussed but if it has I'm sorry.

All the threads I have seen are using autoSize to resize the text field around the text. What I would like to do is lower the font size of the dynamic text to fit the text into the dynamic text field. Is that possible? I saw a thread where they scale a movie clip to fit in an area but isn't what i want to do because it will cause more problems than it fixes.

Thanks in advance.

Why Does Posted Text Size Change With Dynamic Txt And/or UIScrollBar?
On the posted site the text size has shrunk dramatically compared to fla or swf files. Used dynamic text with UIScrollBar attached. Is this a browser or Flash Player issue? Is there a better way to do scrolling text?

Dynamic Color Change That Doesn't Work In Some Browsers
I just finished a mini-site:
http://www.priscillabistoen.be/commercial/

Under the image you have a submenu with numbers. The number of the active image changes to red. This is done by the following function:

function setSubButtonOn(nr) {
color = new Color(eval("_root.submenu.button"+nr));
color.setRGB(0xcc0000);
}

This works fine in IE, but the numbers don't change in Opera, Netscape or on Mac.

Any ideas?

Change Dynamic Fps And Size
Is there any way to change the fps and the movie size (not the scale) to a movie flash???

I make a container movie, on that I load diferent kind of movies and wich one have different size and framerate, cand I change the propertis of the container movie, ??

(sorry my english)
TNKS

Can You Change The Size Of A Dynamic Textfield?
can you dynamicly change the size of a textfield to hold the the size of the content, no matter how much content you stuff into to it?

I've seen it dodone nw with javascript?

jef

Text Field That Should Be Receiving It Doesn’t Change/update
Code:
part2.text = part1.text;
I have a problem. I have a button that takes numerical text from a text field and sends it to another! However this only works once! Say I type in 12.00 first it’ll send it! Then if I change it to something else and click my button the text field that should be receiving it doesn’t change/update! And I can’t figure out why!

How To Change The Text Size
How can i change the text size on the MC, i mean when YOU visit my web site to can chage the text size.

Change Size Of Text ? HOW?
Hi guys,

I have some text inside of a .fla file that I have and I want to make it larger. Inside of Flash cs3 I can do this and it changes to my liking, but when I export the movie it defaults to super tiny and the arial font.

Is there some kind of command I have to implement? There are other fields that have larger text, but it befuddles me to change it over here and there.

Thanks guys!

LoadVars, Variable Traces Correct But Text Doesn't Change
I'm not by my code at the moment, but I've used the loadVars object to load a series of variables from a file called configurations.txt.

These are the captions to a series of dynamically loaded images, a series of small slide shows I've been working on.

There's a global variable called imageCounter which designates which image and caption to load. The next button adds 1 to imageCounter, the previous button subtracts 1.

Contained within configurations.txt is a variable called imageMax, which is set equal to the amount of images in the folder. This way I can set up an

if (_root.imageCounter >= _root.myVars.imageMax)

to tell it to go back to the first image.

The images are coming out right, changing on cue, and in general the captions are, too. But every now and then the caption doesn't change for
two consecutive images.

Like I said, I'm not by the program now, but I believe this happens as the captions turn the bend (from last to first or visa versa).

The caption text code, if I recall, is set up like this:

_root.slideShow.captionText._variable = "caption"+_root.imageCounter

I really can't figure why, if when loading the image I use the same variable, the caption doesn't change.

Any ideas?

Any Way To Change Text Field Size From AS?
Does anyone know of a way to change the size of a text field using ActionScript? Are there any text box properties or methods I can call besides scroll and maxscroll. Or is that all they suport?

For example, say I have a dynamic text box with a variable name of myText. Something like this (which does not work by the way):

myText._xscale += 500;

Evidently, _xscale isn't a valid attribute for text boxes. Are there any?

BC

Change In Swf The Color Or Size Of The Text..
can somebody help me ? How can I change in swf the color or size of the text in an imput textbox??


thanks anticipate

How To Change The Text Size For A Component
Hey All,

I have a button and combobox that I've scaled down and would like the text to be scale down to a more appropriate size. Can anyone help me achieve this?

Thanks!

Using Text Field To Change MC Size
Okies, a dumbo question.
Anyone plz help me change the size of a MC by inputing numbers into a text field?.

ie Mc "box", 2 text fields, "width" height", then type in say 50 in width, and 25 in height to alter the box?.

Thanks!!!

Change In Swf The Color Or Size Of The Text..
can somebody help me ? How can I change in swf the color or size of the text in an imput textbox??


thanks anticipate

Can I Dynamically Change A Text Font Size?
I was just wondering... is it possible to change the text font size of a text field dynamically.

It might be obvious... but I just can't figure how this might be done.

I know that you could have the text in a movie say... and simply resize the movie to resize the text... but can you dynamically DIRECTLY change the text font size?

Any help would be appreciated.

Thanks.


Jam

How Do I Change The Text Field Size Dynamically
Hi...
I have a text field in a movie clip. Depending on the content I want to change the height of the text field so that the entire text fits in the text field.
I have two buttons to scroll the movie clip up and down.

If I try to scroll the text field instead of the movie clip then the scrolling is very fast. Is there any way to controll it?

Drop Down Menus - How Do I Change Text Size?
Hi. I created a site with Flash and made a lot of drop down menus that link the whole thing together. The buttons are just text, but I need to change the size of the text becuase it is too small. The only way that I could figure out to do this woudl be to make new buttons of larger sized text, but then I'd have to adjust each frame in the menu and deal with a lot of busy-work. Is there a quick/easy way of just changing the text size of the buttons and drop down menus? Need help ASAP, please respond if you can help me. Thank you!

How Can I Change A InputText's Text Color And Size
and the InputText is created by actionscript,thanks

Possible To Change Text Size In ALL Textfields In Stage And MCs?
Hello guys,

I'm just wondering... is it possible to set the text size for ALL the textfields in the movie with one script? Even if they have no instance names, even if they are created dynamically,...

Maybe some prototype which activates after the textfield is "created"?

Thanks for any comments and advices!

Poco

How Does Flash Change The Font Size To Fit The Variable Text
hi,

I made a text box and set a variable and I control the text with html tags,please check:

http://www.macromedia.com/support/fl..._variables.htm

Now, I want users write as much as they want and I want flash to change the font size to fit the text into the box.Ýf they write too much font has to get smaller.
How can I do that?

Thanks for your time,

Change Text Size As User Types More Characters
I am trying to allow a user to type in their own text, then change the color and font. BUT, the problem is I need the text to auto resize as they type in more characters. So if the had only a few letters it would show rather large characters, but if they typed in several letters the text would start getting smaller to fit in the boundries I specify... Please! Please! Help me, I am so close to getting the project done.

I have attached my working file...

Change Size Of TextField Dynamically According To The Text It Displays
Hi everyone:


I have a text field on the stage. It is in a single-line mode. I need to set it's width according to the text it will display. Is there any way to do it dynamically?

Enter Text In Field Causes Movieclip To Change Size Can It Be Done?
I have 3 textfields called A, B, and C. If the user places text in one of the textfields I want movieclip Z to be at about size 160. If they place type in 2 of the textfields I want movieclip Z to be at 130, and if they put text in all three textfields I want movieclip Z to be at 100. Is there anyway to do that?

Why Does Disabling Radio Buttons Change My Formatted Text Size?
When I recycle through a multiple choice quiz i have created, disabling the radio buttons also makes the label of the radio button resort to a (circa) point 12 font. There doesn't seem to be a way to get around this. Any advice?

CHANGE Menubar/Submenu Colors, Text Size And Color To
MenuBar/ Change colors Submenus, and Text

On menubar!

I obtain to modify the colors of menubar, but the letters and submenus, how I modify this?


Can you help????

Thanks!!!

I know that I have to go to search the components of menubar and already I modified them, which is the component of submenu?

Thanks!!! :oops: :cry: :roll:

Text Editor To Change Font Size Color And Face
Code:

var font_array:Array = TextField.getFontList();
font_array.sort();
cb.addItem("Font");
for (var i = 0; i<font_array.length; i++) {
   cb.addItem(font_array[i])
}
sizer.addItem("Size");
for(var i=1;i<=32;i++)
{
   sizer.addItem(i);
}

var dispText:TextField;
dispText.html = true;
bold_btn.onRelease = function (){
   addTag("<b>","</b>");
};
italic_btn.onRelease = function (){
   addTag("<i>","</i>");
};
underline_btn.onRelease = function (){
   addTag("<u>","</u>");
};
left_btn.onRelease = function (){
  addTag("<p align="left">", "</p>");
};
center_btn.onRelease = function ()
{
   addTag("<p align="center">", "</p>");
};
right_btn.onRelease = function (){
   addTag("<p align="right">", "</p>");
};
break_btn.onRelease = function (){
   addTag("<br>","");
};
deleteall_btn.onRelease = function()
{
   bodyText.text = "";
   dispText.text = "";
}
var cbListener:Object = new Object();
cbListener.change = function ()
{

var nite=cb.selectedItem.label;
trace(nite);
//addTag("<font face ="+nite">", "</font>");
addTag("<font face="" + cb.selectedItem.label + "">", "</font>");
}

cb.addEventListener("change",cbListener);
function addTag(startTag:String, endTag:String) {
   var startind:Number = Selection.getBeginIndex();
   var endind:Number = Selection.getEndIndex();
   var selectedText:String = bodyText.text.substring(startind, endind);
   bodyText.replaceText(startind,endind,startTag + selectedText + endTag);
   dispText.htmlText = bodyText.text;
}

/*var keyListener:Object = new Object();
keyListener.onKeyDown = function ()
{
dispText.htmlText = bodyText.text;
}
Key.addListener(keyListener);*/



hi someone hlep me in simple text editor to show font size and face
it is not working

Allowing Users To Change Menu Button Text Size...
I've been working for days, trying to come up with some solution to this. It's not a necessary feature for my upcoming website, but it would be nice because of the older age folks who might have trouble seeing some of the text. I've tried this:

on (press) {
myTextFormat = new TextFormat();
myTextFormat.size = 14;
scroller.setTextFormat(myTextFormat);
}

No luck with it, as it seems to have no effect on dynamic textfields within buttons. I've also tried:

on (press) {
dropdownmov.var4 = "<font face="Arial" size="12"> var4 </font>";
}


This changes the button text size, but unfortunately it takes the var4 variable and just uses its name instead of using the text that the variable actually holds. I don't know, it'd be cool if someone had some new ideas or whatever because I'm at the end of my rope on this one.

Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:

ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")

here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip

Dynamic Text Box Doesn't Update From External Text/html File
here is my code for a dynamic text box which is reading html from an external text file...problem is the text shows, but when I update it, it doesn't change...unless I empty the cache...I even tried some other suggestions on here such as adding a random # to the end of the file:

ran = math.round(math.random()*1000+1);
LoadVariables("./home.txt?ran="+ran,"")
If(home ne "")

here is a link to the fla file if you want to look at the whole thing:
http://mcc.larrychendesign.com/resou...ntitledmcc.zip

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

How To Make Text Move If It Doesn't Fit To The Dynamic Text Box?
well I load text from file to a dynamic textbox, what can I do to make it move automaticly if text is to long?

Sort of running string.

Thanx in advande!

Dynamic Text File Doesn't Display All Of The Text HELP
Hi everyone, I have a flash site that I created for a church, and on the homepage my client wanted to have a section called Announcements, where she could easily update the text from that section. To accomplish this, I went to the Kirupa tutorials for dynamic text files in Flash.

I used the XML (or was it PHP) code, pasted it in my Flash movie, opened up Notepad to create my text file, and began inserting paragraphs of text in the Notepad. I attached a scrollbar to the dynamic text file since I wanted to see all of the paragraphs. Scrolled down to the bottom, and then quite surprisingly the rest of the paragraphs were cut off!

The website I'm working on is www.jonesumc.org, and the Announcements section and scrollbar are on the bottom left side of the homepage. The paragraph cut off was originally supposed to say:

FINANCIAL LITERACY BOOT CAMP The Financial Literacy Boot Camp for ages 5 - 18 will be held July 10th - 14th here at Jones. Applications are available today! Three levels offered, Elementary, Jr. High & High School. Our mission to “Expose & Empower” our children & youth to positive financial tools. Volunteers are needed for the week. See Hilary Byrde for more details.

Instead, the scrollbar and textbox cuts the paragraph to the word "Jr. High"
Does anyone know what the problem is?

This is the code inside Flash that allows the text file to communicate with the dynamic text box:

Code:
loadText = new LoadVars();
loadText.load("announcement1.txt");
loadText.onLoad = function() {
announce1.text = this.announce1;
};
The dynamic text box has an instance name of announce1, and the Var is labeled: announce1
The dynamic text box doesn't have any actionscript applied to it. The line type of this box is also Multiline, and the text wraps inside the box.

Inside Notepad, at the very beginning I was told to type "announce1="
Immediately after the equal sign, I could write any kind of text I wanted to. Instead of hitting the ENTER key I pressed the SPACEBAR key several times until I created a new line of text.

As for the code, that's it! There wasn't really anything complicated with the code and putting things together. In order to fully understand my problem I recommend taking a look at kirupa's tutorial for dynamic text. Thanks for your help!

Browser Size Doesn't Match Flash Movie Size
Can anyone help me figure out how to make the Browser or Window that launches my .swf file fit exactly the size of the Flash Movie's dimensions?

My movie is 800x550 yet when launched it in a browser there is extra space around it which shows the elements that are outside the border of the movie which I later tween onto the stage.

In short, how do I constrain the Browser Window to fit the dimension of the Flash movie?

Thanks,
Tony

Preloader Size Doesn't Match File Size.....
Alrighty, my preloader says that my filesize is 242kb. MY ACTUAL filesize is 179kb, according to flash and windows. Is there something I am missing here?
Why is my preloader giving me garbage?

www.paulhanak.com is the site.

Here is the code:

Code:
totalBytes = Math.round(getBytesTotal() / 1024);
loadedBytes = Math.round(getBytesLoaded() / 1024);
percentDone = Math.round((loadedBytes / totalBytes) * 100);
if (_root._framesloaded >= _root._totalframes) {
gotoAndPlay("start");
}
Thanks for any help! This is mind boggling.....

Why Doesn't Dynamic Text Alpha?
why doesn't dynamic text alpha?

http://www.prudentialutah.com/fisher...etTheTeam.html

scroll down, I'm still in beta of this site.

Dynamic Text Doesn't Display
hello,

i'm trying to load an external txt file into a dynamic text field inside a moiveclip. this works fine when i test the scene.

but when i place this movieclip on the stage and test the movie again on the main timeline. the text doesn't display.

is anyone can help me to solve this problem? or, it will really help if you have any sample file that can share with me.

thx!

Swf Within MC Doesn't Load Dynamic Text - WHY?
I'd apprepciate any help, I'm sure this is an easy one for just about anyone, but I'm stuck.

I've got an about (child) file, that I've set-up to dynamically import data from a text file. That was easy. Here's the AS code I used:

loadVariablesNum("http://homepage.mac.com/ehegwer/Sites/text.txt",0);

I've got this other file (parent), Index (my main workspace) where I use a button to call the about.swf, and the about file loads just fine EXCEPT, the dynamic text never shows.
How do I get the dynamic text to show in the movie clip in the parent?

So do I
a) have the wrong level in the about.swf?
b) need to preload the text.txt file in the Index.fla?
c) none of the above?
d) all of the above?

Thanks in advance

Dynamic Text Doesn't Wrap
I'm using the Properties Window to input dynamic text on one page and then another page to view the dynamic text once submitted. On the page that is used to view the inputted text, I've selected the 'multiline' feature expecting that it would wrap once it reaches the end of the text box. However, this doesn't happen, instead, I get a single line of text that cuts off once the end of the text box is reached.

I am a complete novice with Flash and have absolutely no experience writing action script. Does anyone know how I can solve this problem and if so how I would go about setting it up?

Thanking you in advance,

Ookami

Copyright © 2005-08 www.BigResource.com, All rights reserved