Help, Text Changes Size
I'm just learning flash and i have made a new movie. I have two symbols, each with text buttons inside of them.For some reason the text changes sizes from symbol to symbol even though it says its 18 points in each symbol, its alot larger in one symbol than the other, i know its something obvious i'm missing. Anyone know whats up with this.
Thanks alot
j3r3mv
FlashKit > Flash Help > Flash Newbies
Posted on: 06-29-2003, 10:10 AM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
How To Adjust The Size Of Text Field (according To String's Size)
Hello everybody,
Can anyone help me with this? How to adjust the size of dynamically created text field according to the "size" of the string which is in it. I would need this to create buttons for menu and the "source string" for each button is the string from XML node.
Thanks a lot!
Poco
Stage Size And Dyn. Text Fiel Size
I'm verrrrrrry close to solve my problem...
I'm using a dynamic text box that will contain external text. The lenght of the text may be just a few words or can be as long as a small paragaph.
I've found a way to make my text box longer to fit the amount of text in it with this line of code:
mytextbox.autoSize = true; (This is great!!!!!!!!)
Now... The size of the flash i'm using have to be longer or shorter depending of the size of the dynamic text box...
How can I do that? The Flash need to folow the size of the text box... It will display my blog titles on an html page.
Is it possible?
Text Size/file Size
I just realized that the "Loading Data" text I use on the 1st frame of my movie preloader weighs in at a whopping 135KB! Even the static symbol file for the Loading Data text alone is 79KB!
Does anyone know of a way to bring down the file size? It seems like I could draw something similar at a fraction of the size.
I am using a simple static font (called JH Titles) at 28pt size and tweening the brightness -100 to +100.
Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.
Link
In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:
_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;
Thanks so much!
Alter Text Size Option On A Flash Site Using Dynamic Text
I would like some advice on how to Implement ability for “user” to alter text size on a flash website (enlarge decrease ) (10 Pages) through a plus / minus icon at the top of the header. Clicking this icon would alter all text areas through out the site .This would only apply to content areas of the site on each page that holds text. All the pages are laid out within the same template. Menu across the top, single left hand column of text with scroll's and an image on the right. The text is dynamic on this site. The text is stored externally in a separate fold as text files for each page.
I would greatly appreciate some advice
Controlling The Size And Font Of Text Within A Dynamic Text Box While Importing Txt
I am trying to control the size and font of text that my SWF file loads from an external .txt file. The import works and it displays text, but the size of the font is ALWAYS as huge as the defined text box region I made in flash.
Working with Flash 5 on a PC (details).
Can anyone tell me how to tell flash the desired font size and/or font type when importing from a txt file during the movie?
Thanks much
Dahmer
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.
Resizing Text (keeping Text The Same Size On All Screens)
Please could someone help me,
I have created a website and Published it with the following settings:
100% x 100% and Exact fit
So that the website could be viewed ful screen on all browsers
The only problem that I have got is that is MY TEXT, on a 800*600 screen monitor the text shrinks and disorts. On a 1024*768 and higher screen setting the text increases it size.
Please could someone help me and let me know how I could keep the text to one size in all screen settings.
Thank you
Size Of Text Box = Size Of Var
Hello,
I am loading muiptle text variables which will always be a different length. I would like for the Text box in flash to be come the same length.
Any ideas?
Thanks
Aaron
Stretchable Window With Text - Text Changes Size
Greetings
I have a stretchable window (please see attached file), with an input textfield, but the input text changes size as the window is stretched.
does anyone know how I can have the text stay the same size?
Thanks for any help
[F8] Scaling Text To A Text Area Size?
Hi guys,
If i ad a dynamic text area to the stage and name it: "mytext"
is there a way to make any text shrink to the size of the text area?
So no matter what is in the text area when it it dynamically added from:
name.swf?text="hello everyone how are you"
and the area is only " " this big, can i make the sentance scale smaller to fit in that space?
Thanks for any help.
Cheers.
Changing Text Box Size To Fit Text Problem
Is there a way in which I can have ActionScript change the height of a text box to fit the text? Or, which would work just as well, is there a way in which ActionScript can find where the text in a text box stops and give it an "_y" variable?
I'm going to have two text boxes in white the text will be changing every time the movie clip they're nested in is used. What I'm looking for is a way for ActionScript to see how tall one text box is and change the Y position of the second text box to be right up under the first one. I know I can change the Y position with simply making the "_y" value equal whatever a variable is. All I need is either a way for flash to detect the height of the text or for it to automatically size the text box to fit the text so I can get it's height via a simple "_height" command.
Anyone know if this is possible?
Keep Text In Text Field With Original Size
hey, how do i keep text in a text field from being stretched? when i say text i also mean pics cuz i loaded from a html file.
the thing is, i have a container that resizes to display different content and the text field is in it.. i dont want to alter it
Max Text Size In Dynamic Text Field
I am running into an issue with applying a font size larger than 130 on a dynamic text field. Is there a limit to how large the text size can be?
Thanks
[AS1][text Fields]text Changing The Size Of A MC
If you have a text field created in a MC (with the createTextField) method will it change the _height and _width parameters of the MC?
I am trying to create and position several pieces of text with the following code but they are overlapping one another.
ActionScript Code:
message_mc.title_mc.createTextField("title_txt",1,0,0,300,0);
message_mc.title_mc.title_txt.border = false;
message_mc.title_mc.title_txt.autoSize = "left";
message_mc.title_mc.title_txt.multiline = true;
message_mc.title_mc.title_txt.wordWrap = true;
message_mc.title_mc.title_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
message_mc.body_mc.createTextField("body_txt",1,0,0,300,0);
message_mc.body_mc.body_txt.border = false;
message_mc.body_mc.body_txt.autoSize = "left";
message_mc.body_mc.body_txt.multiline = true;
message_mc.body_mc.body_txt.wordWrap = true;
message_mc.body_mc.body_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX";
message_mc.detail_mc.createTextField("detail_txt",1,0,0,300,0);
message_mc.detail_mc.detail_txt.border = false;
message_mc.detail_mc.detail_txt.autoSize = "left";
message_mc.detail_mc.detail_txt.multiline = true;
message_mc.detail_mc.detail_txt.wordWrap = true;
message_mc.detail_mc.detail_txt.text = "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXX";
message_mc.title_mc._x = 10;
message_mc.title_mc._y = 5;
message_mc.detail_mc._x = 10;
message_mc.body_mc._y = message_mc.title_mc._y + (message_mc.title_mc._height + 10);
message_mc.body_mc._x = 10;
message_mc.detail_mc._y = message_mc.body_mc._y + (message_mc.body_mc._height + 10);
I'm doing some effects to the text after it is loaded and formed, that is why everything is embedded into 'message_mc'.
Any thoughts as to what is wrong here?
--xenite
Text Box Size And Dynamic Text
I have a row of buttons that contain single-line textboxes. The textboxes get their text from a LoadVariables() call. How can I change the width of the textboxs so that they fit the text that they contain? I want to be able to reposition the buttons so that they do not overlap and there is not too much space beween them. I understand that Flash 6 has an attribute called "autosize", unfortunately I am working in Flash 5.
Size Of Text In Dynamic Text Box
Ive got another problem with my dynamic textbox (yay). I have added another identical copy to the flash file, except for changing variable names where I have to. For some reason the text shows at different sizes in each box and I have not ever done anything to change the font (they both are set to the same size font in the textbox properties). What script can I use to define the size of the text so it will always be the same?
I have tried putting <font size=whatever>text on site...</font>, but then nothing shows up at all in the text boxes. There must be another way to do this.
Text Size?
Hello,
What if I do not know the text size. How can I make it scroll a text box if I do not know the text size?
Thanks,
Text Size
Hi...I have two different scenes in my movie..each with a dynamic text box. Both the dynamic text boxes are exactly the same size and the content of both boxes have exactly the same font attributes. When I view these two scenes it appears af if one text is bolded while the other is not. (Depends on screen resolution how much different they look). Shouldn't the text appear exactly the same in both boxes if the font attributes and text boxes are exactly the same? To see what I mean, check out http://www.abcomputers.ca/summer/demo2.html
Any help would be greatly appreciated.
Abe
Text Size In Help
After looking everywhere I finally figured out how to increase the text size with IE7 in Flash HELP.
The tech note from Adobe does not work. (http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_18954)
You also need to fix an error in the pages.js file (located in the same directory as the help_pc.css file that the tech note tells you to fix) (HelpPanel\_sharedassets directory)
The problem is in the section of javascript code that selects which css file to use depending on whether it is a mac or pc...
It does not work with IE7. You can fix this by commenting out the IF statement and forcing it to use the help_pc.css file..
//if (version.indexOf("Mac") != -1) {
// document.write('<link rel=stylesheet href="../../_sharedassets/help_mac.css" TYPE="text/css" media="screen">');
// document.write('<link rel=stylesheet href="../../_sharedassets/help_mac_print.css" TYPE="text/css" media="print">');
//}
//else if (version.indexOf("Windows") != -1) {
document.write('<link rel=stylesheet href="../../_sharedassets/help_pc.css" TYPE="text/css" media="screen">');
document.write('<link rel=stylesheet href="../../_sharedassets/help_pc_print.css" TYPE="text/css" media="print">');
//}
//else {
document.write('<link rel=stylesheet href="../../_sharedassets/help.css" TYPE="text/css">');
//}
No one at Adobe must have a PC (they must all have Macs) or they would have found this bug...
Text Size
I can change the text's size, thats not a problem, but because the end user will be doing that at run time, I need to know what size the text is..and I cannot get it to tell me... I am using htmltext if that makes any difference
cheers
Zen
Increase Text Size
hello!
i have a dynamic text box in a movie. is it possible to place a button on the stage that will increase and decrease the font size of the text??
can this be down with variables??
cheers,
jake
Dynamic Text Box Size
Dear Friends
I have a Query ::
Generally we have the Dynamic text boxes to display the variable values. While creating this object in the flash movie, we select the text tool and drag it to create the text box . the text box size now depends on how we have created it .
Is it possible to define the textbox size depending on the size of the variable to be displayed or the number of characters in the variable.
The text box size should change dynamically as soon as the variable value is given.
Can something like this be done??
Text Field Size
Is there a way to modify the text box length and width via set property or other method that allows me to 'dynamically' change the size of a text box.
Thanks
Dynamically Size A Text Box
lets say i have have an array of quotes that all differ in length, the first of which has 10 charecters, the second 70 characters and the third 300 characters
i want to create three seperate text fields to display the text, all the text boxes need to be 100 pixels wide and the height of the textbox depends on the number of characters it needs to display
basically i want to know how you adjust the height of the textfield to show all of the text/characters
-----
cheers
Dynamic Text Box Size
This sounds like a simple question. I'm trying to make a dynamic text box a certain size so I can snap it to an exact location. I thought manually entering the pixel size in the "W:" and "H:" box was the answer, however the text resizes with the box. Now I can't get the text size back to regular scale.
Is there a simple way to create a dynamic text box with an exact size and not rescale the text. This is simple to do with static text.
Thanks,
Robert
Dynamic Text-box Size
Hi there,
I tried to create a news-ticker which gets the text information from a database via PHP. This text should scroll horizontal. But know I've got a little problem:
Because the text in the Database changes from time to time it also changes its lenght, so I have to create a dynamic textbox , which recognizes how long this text is...
Does anyone know how to handle this problem???
Thanks a lot,
Daniel,
Germany
Text Size Problems
I am using dynamic text and even if I set all the text the same size
it seems to change depending on the actual size of the box it is in,
in other words I am having trouble getting the text equal in size. I am using several text boxes.I have tried making all the boxes equal but there always seems to one which is bigger or smaller than the rest.this is very frustrating and I cannot understand why it is happening, surley if you set 10pt text it should display 10pt!!
any help appreciated..
Get Point / Text Size, Then...
Howdy,
OK,
Dynamic text field "A" has a text size changer component on it.
If user changes text size, how can I "listen" or "get" the text size,
then...
Have text that is loaded into dymanic text box "B" load at the size of the text that is in "A".
In plain english, something like:
on press
get property text size "A"
load text into "B" at text size of "A"
how would I properly write this in Actionscript?
Anyone?
Thanks!
B
ComboBox - Text Size?
I am in the process of working on a page that will be using the combo box as a method of selecting a movie to be displayed, question is, can you alter the text size? As it is, the default textis huge and gaudy.
If it's not possible, is there another way to emulate a drop-down box that will function in the same manner?
Text Size Gets Crunched
Hopefully last question for the evening. After exporting a movie and opening it in a web browser...when the chrome is down a bit so a few menus are shown in the browser...the text gets too small to read - especially on 800*600 browser.
When I bring the browser chrome up it gets bigger and displays just fine. Am I going to have to export my file as .html so a scroll bar is created and the text stays the same size? Or is there some way to make this happen as a .swf?
Know what I mean?
Changing Text Size
right now i have a dreamweaver (html) page with style sheets.
I would like to put a button on the site so that the user can enlarge or make the fonts smaller.
do you have any ideas?
Text-size-problem
Hi there
I have a text that I want to fit in to a special square. Size 7 is to small and 8 is to big. So i try with decimals. From 7.1 up to 7.9 it is just small changes, but it is a big change between 7.9 and 8. Can I come around that problem in any way? I have Flash 5. Is that the problem? Hope somebody can help me with this.
Anders
Text Size In A Listbox
Using a listbox in flash 6, but tried to apply
myStyleFormat.textSize = 20;
to change the size of the text, but it didn't work. Can you give me a hint?
Also how can I change the colors in a listbox in MX2004?? MyStyleFormat dont work there or??
Changing Text Size
im positive that ther is a way to change the size of text dynamically. i just cant figure out how. can anybody help? another question on the side is how does the autosize property work? i cant figure any of it out. thanks.
Text Size Problem
Hello all,
I am working on a contact form in Flash that we will be using to capture form data and have it e-mailed to us. Is there some way that I can change the size of the text in the Text Box components I have already set on the stage?
Help Help Text Size Has Changed
Sounds strange I know, but the size of the text in the help menu in flash mx 2004 has gone really small in the development enviroment, anyone know how to fix this its driving me crazy.
Text Size Variable
Hi i'm making a flash cue prompter, but I want to give the text size a value from within the textfile, so that I can change the font size without opening the fla. But the textfield is inside a movieclip, i'm lost
I'm using Flash 8
can someone help plz?
here's the file
Changing Text Size
Ok.
So, I have a whole bunch of Animations, that I want to share with the world via Youtube. So, I converted one to MPG and uploaded it to see what happened.
Turns out the text size is too small
My question is:
Is there a way to change all the text size at once, rather than going through every single frame and changing it manually.
I suppose in essence, I want to select all text within a whole animation/fla file, and change it.
Any way to do this?
Thanks
TCGS
[CS3] Changing Text Size
Hi,
What is the best approach when it comes to change the size of some text? Basically what I am trying to achieve here is to make a piece of text changing from a small size to a bigger size.
I was told that it is better to change the font size rather than the dimensions of the movie clip, is tha that the case? If it is, I cannot work out how to change the font size within a movie clip?
Thanks for your help
P
Text Size In Pixels.
Hi, I would like to know if it's possible to get the size in pixels of a dynamic text, depending of the number of the letters, or is there a function to do that?
Thanks!
Text Size Problem
Heya,
I am trying to create a simple web page but i'v ran into this problem i cant seem to be able to solve.
Im creating textfield where im trying to load an external text file (so far this works). But for some reason the Text format properties do not work at all. The text it loads looks really small when i publish it as html.
Code:
on (release) {
_root.createTextField("TxBox4",20,66,250,200,200);
_root.createEmptyMovieClip("kuva1",25);
kuva1._x=300;
kuva1._y=250;
Txbox4.background=true;
Txbox4.backgroundcolor=0xefd466;
Txbox4.border=true;
Txbox4.borderColor=0x000000
Txbox4.multiline=true;
Txbox4.wordWrap=true;
Txbox4.variable="myText2";
myText2Format = new TextFormat();
myText2Format.font = "Arial";
myText2Format.size = 20;
myText2Format.color=0x000000
Txbox4.setNewTextFormat(myText2Format);
loadMovie("fpulko.jpg","kuva1");
loadText = new LoadVars();
loadText.load("etusivu.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
theTextBox4.html = true;
theTextbox4.htmlText = this.myText2;
}
}
}
Thanks for help!
Re-Size Font To Fit Text Box
Hello all...
I would like my text to automatically re-size to fit a dynamic text box.
A quick search found this code:
Code:
// Function to resize the text in a text field so that it fills up the maximum space available
function fixTextSize(textfield, maxheight) {
textfield.autoSize = true;
thistextsize = 10; // Start at 10pt size
thisheight = thistext.textHeight; // Get current height
myTextFormat = new TextFormat(); // Instance of TextFormat object required
// Loop until height exceeds limit, font getting bigger each time
while (thisheight < maxheight) {
thistextsize++;
myTextFormat.size = thistextsize;
textfield.setTextFormat(myTextFormat);
thisheight = thistext.textHeight;
}
// Reduce size by 1 as we have exceeded limits
thistextsize--;
myTextFormat.size = thistextsize;
textfield.setTextFormat(myTextFormat);
}
It was posted on this forum and looks absolutely perfect for what I am trying to achieve.
However, when I use it, rather than resizing the font it simply makes the text box bigger.
Does anybody know where I might be going wrong? Or perhaps another way or resizing text?
I've tried embedding the font but when I did this the text did not appear at all.
Thanks in advance for any help - and I hope the original poster of the script doesn't mind me re-printing here,
David
Button Size To Text
hello everyone
i was wondering how to make a button like the ones on this site.
http://www.templatemonster.com/flash...tes/13952.html
i know how to make mc buttons dynamically but my question is how do they make the button size to the text its showing like the ones in the middle of the home page (latest news section). could someone point me in the right direction to find this out. thanks in advance.
any help would be appriciated.
Button Text Size
Out of curiousity, is it possible to drag a button from the Component window onto the stage and change the "Label" text size?
I resized the button, and changed the "Label" property to display "Click me to Save". How can I control the actual text attributes of that Label? Can I change it's font, size, color, etc... ?
Thanks!
Help Menu Text Size
My font for the help menu is about a 4 or 5 in size. Absolutely impossible to read without a magnifying glass ;-)
How do I get the help menu to read in the standard 10 or 12 point font that it is supposed to display in?
Kevin
|