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




Resizing Text Box Without Stretching It?



Well I've got mgPePe's Scrollbar tutorial (http://www.gotoandlearn.com/forum/viewtopic.php?t=9553) and I'm trying to put everything inside a movie clip(the whole thing. mask, scrollbar and content), It worked, but now goes the problem, I'm trying to resize this movie clip, so no matter the resolution of your screen, you'll always see the text (with the scrolling effect) fitting exactly in your screen, cause I have borders in my page, so if don't resize it it'll come over the borders.here's the code I've usedmask1._x= 40;mask1._y= 180;mask1._width= Stage.width / 2 - 100;mask1._height= Stage.height * 2;



General Flash
Posted on: Wed Mar 21, 2007 7:43 am


View Complete Forum Thread with Replies

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

Resizing A TextField Object Without Stretching The Text?
How do you get a textfield object the size you want without stretching the text inside it? Everytime I try to get my text box lined up where I want it, at the size I want, the text that goes into it gets stretched as well.

Resizing Stretching Problem
I have an instance of the listbox component in my library and I use the following code to put it on the stage

CODE_root.attachMovie("List","myList",1);
_root.myList._width = 325;
_root.myList._height = 500;
_root.myList._x = 100;
_root.myList._y = 50;

Problems With Loaded Content Resizing And Stretching
We have an SWF containing content (text and images) that gets loaded into our main movie. We use the movieclip loader class to do this(loadClip).

First we loaded all the content together in one single SWF, but the images seemed to stretch and resize to the width of the text within the SWF.
So then we tried to set the width and height of the images in the loaded SWF file using actionscript, but this didn't help.

Can anyone help?

Greetings,

Berry&LeO

'Stretching' Text
Hi everyone

Can anyone tell me how I can 'stretch' the width of a font, so that it appears flatter?

I'm using Insane 3D Flash Animator which of course allows me to select the height (size) of the font, but I can't seem to find how to alter the width.

If anyone can tell me how/whether this is possible, I'd be really grateful.

Thanks


Jay

Stretching Text
Hi, I'm currently working my way through making a a hover/caption swf for a website and one i've come across a couple of problems:

1) Firstly all the dynamic text for the captions is extracted from an xml file - how would I write in the xml a new line feed? I've tried putting both '
' and '
' in the xml but flash just writes these out as if they are text.

2) How could I change the height of the movie clip depending on the length of the text (or even betterthe number of line feeds)? Changing the caption movie clips height stretches the text.

This is the code (only slightly changed from the Kirupa caption tutorial):


Code:
captionFN = function (showCaption, captionText, bName) {
if (showCaption) {
_root.createEmptyMovieClip("hoverCaption", this.getNextHighestDepth());
mc_caption.txt_desc.text = captionText;
mc_caption._width = 150;
mc_caption._alpha = 85;
//mc_caption._height = ??;

if ((bName._width+bName._x+mc_caption._width)>Stage.width) {
xo = -0-mc_caption._width;
yo = -50;
}
else {
xo = -0;
yo = -50;
}
hoverCaption.onEnterFrame = function() {
mc_caption._x = _root._xmouse+xo;
mc_caption._y = _root._ymouse+yo;
mc_caption._visible = true;
};
}
else {
delete hoverCaption.onEnterFrame;
mc_caption._visible = false;
}
};
and a screenshot of an idea of what I'm trying to do and the problems I'm having:





Cheers to anyone who can help.

stibos

How To Stop Text Stretching In Dynamic Text Fields
Hi,

I have many dynamic text fields in my application, wih strings of various lengths in them. All the text boxes are the same size but the boxes with les characters in are stretching the text, is there a way to stop this?

Thanks for your advice

Weird *stretching* Of Anti-aliased Text In Textbox
I'm using Flash 8 (actually using CS3 but saving everything in Flash 8 mode and using AS2. Also I'm kind of new at this).
I have a button that loads dynamic text into a Text box using this actionscript:

on (release) {
loadText = new LoadVars();
loadText.load("sometext.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
_root.textBox.outsideFilename.htmlText = this.externaltext;
}
};
}

Everything loads fine -- EXCEPT when I choose "Anti-alias for readability" (and use a non-standard font and embed certain character sets) all the text in the Text Box comes out elongated up and down -- it comes out looking stretched for some reason. Is that normal behavior? Looks terrible and not what I want. If I don't choose either of the "Anti-alias" choices, then the proportions are all correct, but not anti-aliased of course. What am I missing here? I would like the anti-aliased text to look proportionally correct.

Resizing Textbox Without Resizing Text - How?
Hi there,

I create a dynamic textbox (it doesn't matter about the dynamic bit actually, I've tried it with the others), type some text in.

I then go to resize and replace the textbox using the properties panel. This way of course you can get quick and pixel perfect placment.

BUT, when I use the properties panel to resize the box, the text gets all squished, stretched and distorted. Why? The box never goes smaller than the text that's in there so there'd be no pressure on the text to resize.

When I click and drag the handles on the text box it resizes with no problems at all, but this isn't quite accurate enough.

How do I resize the text box using the properties panel but without affecting the actual text inside it? Is there a property or a box that I haven't clicked/need to click?

Cheers

[F8] Resizing A Movie Without Resizing The Text
I am trying to make a Flash movie with the dimensions of 100%x100% instead of specific pixel dimensions. So no matter what window size the browser is everything will appear.

However, when the window shrinks the text does too. I have seen many other sites that use the same 100%x100% that follow the size of the browser, and shrink everything but the text.

Can someone help me out? Is that a new feature of Flash CS3?

Thank you all so much in advance.

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.

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

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

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

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

Dynamicly Resizing The Text Box Via Text Input?
I currently have a text input and it outputs it to a dynamic text box above. Unfortunatley I have the dynamic text box at a set static size and Id like for it to stay the same static width but not height.
Is there some sort of syntax via the _y variable of the textbox instance that I can have it set to an IF statement via how many characters are entered to change the _y position? Or collision to the end of the width of the textbox?

thanks guys like always
-russ

Resizing Dynamic Text Boxes To Fit Text
Ok,

maybe this soundz pretty newb... but I've been lookin everywhere and have found nothing...

Say I have a variable called textcontent?

textcontent = "blah blah blah blah blah";

and the dynamic text box can only show "blah blah"

how can i make it resize vertically not horizontally to accomodate the rest of the text....

I tried to make this simple but alot of times i over complicate things. Any help would be much appreciated.

Resizing Text Field Scrunched Text?
When resizing text fields to fit a proper dimension, the text (font) is stretched or scrunched. Is there a way to stop this? Do I have to get the exact text field dim correct or start over? Seems a bit inefficient.

Resizing Dynamic Text Field To Fit Text
I have built a dynamically built button has its text passed to it from a .txt file loaded on frame 1.

What I am trying to do is set up the dynamic text field so that when it's text is passed to it, it extends in width to fit the text. I cant make it huge to fit all text text possibilities because once it has had its text passed to it i need to get the width of the text field to use as a coordinate to position other elements in the button.

The text will have a rounded corner box behind it which I have split into three sections, Left rounded corned end sits at _x=0 the middle section (no rounded ends) scales in relaion to the text field width and the right hand rounded end will be positioned according to the text field width. This will then make a nice scalable rounded corner box that doesnt distort its corners.

Currently I can pass the text to the text field okbut it wont extend to fit and I also dont seem to be able to get its width. I have tried: this.middleMC._width=this.txtField._width but it dont seem to work.

Any advice?

Cheers.

d

Text Resizing
ok, this one has had me stumped all day.

I have a dynamic textfield into which I load text from the first node from an xml file. 2 buttons (previous and next) are used to go through the nodes - so far so good. My client has now requested that the text be resizable using 2 buttons ( a small 'A' and a larger 'A'). I guess this would involve applying a stylesheet initially and then having the 2 buttons dynamically switch between 2 classes in the stylesheet (one for small text and one for large text). Ideally I'd like the timeline to stay on the same frame throughout. Files attached.

Anyone have any ideas? Help much appreciated.

Resizing A Text A Box
This might seem like a stupid question, but how do you resize a text box without it scaling up? I have a blank stage which I want to have a text box on which fits the dimensions exactly, but when i type in the values in the Property inspector, it scales the text up.

any help appreciated. thanks

Resizing Text
Is it possible to resize text when clicking on a button? Thanks in advance.

Text Resizing
ok, this one has had me stumped all day.

I have a dynamic textfield into which I load text from the first node in an xml doc. 2 buttons (previous and next) are used to go through the nodes - so far so good. My client has now requested that the text be resizable using 2 buttons ( a small 'A' and a larger 'A'). I guess this would involve applying a stylesheet initially and then having the 2 buttons dynamically switch between 2 classes in the stylesheet (one for small text and one for large text). Ideally I'd like the timeline to stay on the same frame throughout. Files attached.

Anyone have any ideas? Help much appreciated.

Resizing Text Box
something happened to my flash where if i resize my text box using the properties panel, it resizes the text inside.

it never used to do this.

i have tried restarting flash and it doesn't work.

i'm running MX 2004 Professional

does anybody know what to do about this?

HELP - Resizing A Dynamic Text Box On The Fly?
I am duplicating MCs and positioning them horizontally across the screen. Each MC has a textfield within it that gets set to a different value each time a new MC is created. I'm having a problem with getting the MCs to be evenly spaced. Flash takes the total size of the textfield and uses it for the width of the movie as opposed to the actual length of the text within the field. Creating the illusion of uneven spacing. I tryed to set the textfield to extending but it doesn't extend on the fly.

any ideas?

thx,

Paul

Resizing A Text Field
how would you create a dynamically resizing text field with wordWrap.

Dynamic Text Box Resizing
Is there any way to dynamically resize a text box based on what a user types. The point is to enable the user to type in a text box with a defined width but no defined height. The text box will be on a multicolored background so in order for the text to be visible, it needs to have the white background behind it that the text box provides.

The user could type anywhere from at least 5 to maybe 100 words and they all need to be visible (no scrolling). So a dynamically resizing text box based on the amount of words the user type would be Perfect for me.

Is there any Flash Guru out there who can help me out??

Resizing Dynamic Text
interested if anyone knows how to dynamically resize a dynamic text field while maintaining the font size. The function would be like resizing a window on yur desktop. the window and text field resize and the text adjusts to fit in the newly sized window. Any help would be great. Thanks.

Or is there a source file around I could download.

Resizing Text Field
Interested if anyone knows how to dynamically resize a text field while maintaining the font size. The function would be like resizing a window on yur desktop. the window and text field resize while the text adjusts to fit in the newly sized window not changing the font size. Any help would be great. Thanks.

Or is there a source file around I could download

Resizing Text Windows?
I keep having this same problem in flash and I can't figure it out:

I need to create a text box that is exactly the right size to fit into a box, but with the text drag-n-drop tool you can't be precise, so I make it roughly the right size, and then use the H/W coordinates in the Properties panel to resize it...

The problem is that although my pixelfont looks perfect before I resize, when I alter the H/W coordinates it stretches the text box instead of actually resizing it so all my fonts look messed up.

How can I create the text box the perfect size without having to resize it and stretch the text?

Thanks, Neil

Resizing Dynamic Text
How do I resize text which slides onto a block on my screen so that it fits. The text is running dynamically from a database.

Help...this is urgent.

thanks
dcheketri

Text Resizing Issues
I've got some text in my anim and when I laid down the bounding box for it flash didn't let me snap it to the grid. So after I had typed the text in I resized the bounding box and it squashed up my text, I try resizing the text but it is still deformed! Is the some way to force the text to be a certain size (and in proportion).

Thanks, Alex

Font Resizing With Text Box
Hi there,

A couple of you guys helped me with a dynamic text box that gets its info from an external .txt file, it works fine,

I am ammending my project slightly, so I made the dynamic text box twice the height it was,

Now all my font is twice the size as well???

the text box is set to a font of 12? it reads HTML from the text file, so i tried <font size="12px"> but nothing?

Can anyone advise please

PS it has a scroller on it, which I need...as the file will get bigger.

Thanks

Automatically Resizing Text
Hi,
Is there a way to automatically re-size the text in a dynamic text box if the text is too long.
I know there is an autosize for re-sizing the textbox but I need to resize the text as there is no room for any change in size of the text box.


Thanks.
Kaan.

Text Box Dynamic Resizing
I tried searching the forum for this but the search function wasn't working.

I'm loading a variable from a text file into a dynamic text box. The variable could be just one sentence, or could be several paragraphs long. Since there are other scripts (scroll buttons) that depend on the height of the text box, I need the text to have no white space after it.

How would I write a script that would size the text field to show just the text that's loaded into it?

Text Resizing Problem
On Flash mx 2004 i have a strange problem. in the fla file everything looks fine but after i publish it and look at the swf all the text seems to be unaligned and hidden behind some images etc. what could cause this?

Dynamically Resizing Text Box
I'm trying to create a textbox that has a fixed width, but the height changes depending on how much text there is. I can't quite seem to figure out how to determine when the text overflows the current textbox size.

Resizing A Dynamic Text Box
Is there any way to load text into a dynamic text box and have the text box scale to the size of the sentence?

for example, if I am loading "hello" the box would be just the width and height of that word, but then I could load the text "hello, how are you?" and the text box would then scale to be the size of that sentence (I guess just scaling in the X direction would be all that was needed)

thanks

Resizing A Text Field?
I've got a movie with a text field.

The text field (multi line) is being updated dynamically, by reading a external text file. If there's alot of text in the external text file, Flash will only display as much text as it can fit into the text field, the rest will be hidden!

How can I force Flash to display all the text?

Thanks.

Universally Resizing Text
Please pardon my ignorance,
I'm new to flash, and I'm currently making a website for a friend.
The website is going well but I want the text to be visible at most resolutions. Currently at low resolutions the webpage resizes so that some of the smaller text is difficult to distinguish.

What i'd like to know is: Is there a way to create a button that when clicked will increase the font size of the entire site by say +2 per click.

Thanks for your help,
Regards.
Evan

Resizing Text Field
I was wondering what command would work to dynamically resize a TextField. I am going to load data into the field, and I want it to keep a constant width, but if it becomes multi-lined, I want it to automatically increase height. Is there a way to do this?

RESIZING Text In Textfields.....
hey everyone...
i'm working on a guestbook in flash mx 2004, using sql and php.
i have a few questions on this but my first is:

How do you resize the input text for users in the textfields?

you can see the work-in-progress here:
efrain's gbook @ kindalikesorta

as you can see, when you enter text into the fields, the text is not easily visible because it's too big. is there a way to fix that? this happened because i resized the textfields in flash.
Is there an easy way to customize the size of text in the boxes, within flash?

thanx and i look forward to your replies

Dynamic Text Resizing
Hi,

I'm wondering if it is possible to dynamically resize the font size of text with a flash swf?

I need to be able to increase/decrease the font size for users with impaired vision.

Can you control the text font size with the TextFormat class? or would it be better to use a style sheet? Can you swap style sheets on the fly?

Thanks

Dynamic Text And Resizing
Im curious why, if you resize a dynamic text box, it will then stretch the text of anything that is displayed in it. Anyway to prevent this?

Stretching A MC
Plz help me out from my situation...i am briefing my probs here..

I have some movie clips in _root. and there will be hotsopt point in each MC. on pressing and dragging that point the MC will resize accordingly...

This thing i want to do it with ActionScript...i am planning for another MC(empty MC) in _root which is having ActionScript for changing the other MCs..

The ActionScript MC will take parameters of MCname to resize and current Width and Height..

I have all the idea in my mind....but i am not good at ActionScript .. can any one help me..whether my idea is wrong or right ???

all kinds of comments would be appriciated..

Thanks in adv,

Stretching MC
Hey all,

I have some MCs which I have stretched (keyframed) to suit the content that is loaded into them. I have used the external preloader tutorial.

The problem I have, is that when the MCs are stretched, it's stretching the 'loading' text in the transitions. Is there a simple way around this?

I assume it might be possible with _xscale, or something similar. The MC's are only stretching horizontally.

Cheers,
dreeft.

Help With Stretching...
I have a very simple design for a website I want to make...
What I need help with, is to make the orange square (see attaxhed picture) stretch to each side so that it always cover the entire screen/window.
Everything else (text images etc.) needs to be centered.. I really hope someone can give me a helping hand here

Stretching MC
Hey all,

I have some MCs which I have stretched (keyframed) to suit the content that is loaded into them. I have used the external preloader tutorial.

The problem I have, is that when the MCs are stretched, it's stretching the 'loading' text in the transitions. Is there a simple way around this?

I assume it might be possible with _xscale, or something similar. The MC's are only stretching horizontally.

Cheers,
dreeft.

RESIZING DYNAMIC TEXT BOXES
Does anyone know how to get a dynamic text box to resize automatically when the text assigned to its variable is to long to be displayed as i cant seem to figure out how to do it.....

Maybe it has to be done manually, well using actionscript which seems a bit stupid if not impossible...

Any help would be great..

Cheers

Dynamically Resizing Text Box Width
Hello,

I'm working on a movie that imports a list of peoples names via XML, and then horizontally scrolls the names on the movie (similar to a stock ticker).

I have everything working, but I'd like to make it a bit cleaner by fixing up the spacing between the names as they scroll by. Currently, I have a MC instance that I dyanamically create via ActionScript for each name. Every MC instance is 200 pixels wide with a 150 pixel space between each MC instance. This would be fine if everyone's name were the same length, but they are obviously not.

What I would like to do is to minimize the width of each instance depending on the length of the name so that the spacing between each MC instance is approximately the same.

Does anyone know a way to do this that doesn't involve a fixed-width font?

Thanks in advance,
-mike

Resizing Dynamic Text Boxes?
Hi and thank you inadvance for your replies.

How do can you resize or skew a dynamic text box so that the text within the box is also resized or skewed?

Case:
I have a dynamic text box reading in from an external file. The text box has the setting of word wrap because the text will always be different. In my mc, this text box has to shrink and disappear.

Attempts:
I have placed the text box in a separate image instance and was able to resize it but the text (because it's set to word-wrap) makes the text just wrap instead of becoming static.

So, how do you turn a dynamic text box into a static textbox through scripting or other means?

Dynamic Text Fields Resizing
I have a dynamic text box importing info from a text file.

How do I set the text field so it expands with the amount of text entered into the text file?

Thanks

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