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




Dynamic Resize Of Boxes



Hello.I am trying to make each box resize to a different size.Each button will make all the boxes change to different sizes.Right now they ALL resize to the same size.Any ideas on how to set it up so each box will change , when the button is pressed, to independently different sizes? Thank you for any help!I did not create this file originally.



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX
Posted on: 03-11-2005, 04:23 PM


View Complete Forum Thread with Replies

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

Dynamic Resize Of Boxes
Hello.

I am trying to make each box resize to a different size.
Each button will make all the boxes change to different sizes.
Right now they ALL resize to the same size.
Any ideas on how to set it up so each box will change , when the button is pressed, to independently different sizes?

Thank you for any help!

I did not create this file originally.

Dynamic Resize Of Boxes
Hello.

I am trying to make each box resize to a different size.
Each button will make all the boxes change to different sizes.
Right now they ALL resize to the same size.
Any ideas on how to set it up so each box will change , when the button is pressed, to independently different sizes?

Thank you for any help!

I did not create this file originally.

How To Dynamically Resize Dynamic Text Boxes?
Having trouble with a Flash/ASP/pulling text from a database.

Right now.. I've figured out how to pull text from the database with ASP and populate it in an array that uses looping duplicating movie clips to display.

But.. If the text is longer than the movie clip that is duplicating it gets cut off and the next one in the loop is duplicated below it.

How can you pull from the array into a duplicate movie clip AND have the movie clip resize to fit the dynamic text properly?

All of the ASP/Flash/Text examples I've seen work on the basis of text fields being the same size.

So.. how do they reisize dynamically?

(text format autosize = true?)

Thanks in advance

ryano

Resize Boxes
Hey group,

I wanna learn how to do something...

I want to be able to change the size of a box on the stage when I click on buttons (links) But with a bounce effect to it. as seen in
http://otradesign.com/

To extend this even further, I also would like to learn how to have this change in size affect other objects on stage...

example: if there’s an object next to the box that changes size, then the object should move over based on the size change...

Anyone know of any tutorials?

Thanks,
Eager to learn!

Resize Boxes...HELP
ok we all have figured out and have loved the resize slideshow found here...
http://www.kirupa.com/forum/showthread.php?t=87388

now i am trying to achieve something like this...

http://www.robertreich.de/

or

http://www.kurtnoble.com/

any suggestions - ideas on how to start?

Resize Boxes...HELP
ok we all have figured out and have loved the resize slideshow found here...
http://www.kirupa.com/forum/showthread.php?t=87388

now i am trying to achieve something like this...

http://www.robertreich.de/

or

http://www.kurtnoble.com/

any suggestions - ideas on how to start?

Resize Text Boxes?
I have many static text boxes in my latest project, and they all end up being something like '612.12' pixels wide and '92.4' pixels high or 123.7 wide and 401.1 high, etc.

If I try to change them by selecting them with the selection tool and typing in a new size value, it skews the text, stretching it out of shape as it scales.

If I use the text tool to select the text box and try to resize it to say, 600.00 x 100.00 or 125.00 x 400.00, the text simply moves around like I would want, but it is hard to find a 'x.00' stopping place - it invariably moves in increments of .2 or .3 pixels, just enough to ensure I am left with 599.9 by 100.3 or 125.1 by 399.8 or something along those lines.

Is there a way to get a precisely measured text box, without skewing the text inside? I hope I have been clear about what I'm wanting and how I've already tried to do it. As an aside, I am using Flash 8, but trying to keep everything compatible back to 6 - not sure if that makes a difference.

Text Boxes That Resize To Fit Contents.
Is there any way to make a text box size to fit its contents? Or, is there any way to maybe fake this, even?

Apparently Flash 6 supports this (textField.autoSize), but no such luck with 5 as far as I've been able to tell.

Any insights would be greatly appreciated. Thanks all!

Dynamic Resize Issue: Resize From Corner, Not Center
Okay. So I just got this little slide show I'm doing to load the next image (i'm still working on making it loop, so if anyone wants to help me with that, too feel free!)

As each new picture is loaded in the slideshow, I have a border that automatically resizes to fit it. Right now it's resizing from the center, is there any way to make it expand out from the top right corner instead of the center (since the orientation of the pictures are different, it looks a bit unnatural for what I'm doing)

Here is the code for my actions layer and if anyone can take a look and tell me what I need to change/add to make this work, I appreciate it!!


Code:
#include "mc_tween2.as"
space = 10;
photo_mc._alpha = 0;
MovieClip.prototype.loadPhoto = function(photo){
photo_mc._alpha = 0;
this.loadMovie(photo);
_level0.onEnterFrame = function(){
// modified the total and loaded so as to round it up
// to smaller number.
var total = Math.round(photo_mc.getBytesTotal()/1024);
var loaded = Math.round(photo_mc.getBytesLoaded()/1024);
if (total != 0 && loaded>=total){
var w = photo_mc._width + space;
var h = photo_mc._height + space;
border.resize(w, h);
delete this.onEnterFrame;
}
}
};
MovieClip.prototype.resize = function(w, h){
//the higher the slower the resize of the border
var speed = 6;
this.onEnterFrame = function(){
this._width += (w - this._width)/speed;
this._height += (h - this._height)/speed;
if( Math.abs(this._width-w)<1 && Math.abs(this._height-h)<1){
this._width = w;
this._height = h;
photo_mc._x = this._x - this._width/2 + space/2;
photo_mc._y = this._y - this._height/2 + space/2;
photo_mc.alphaTo (100, 0.5, "linear")
delete this.onEnterFrame;
}
}
};
image_mc.onLoad = setInterval( nextImage, 7*1000 )
;
-SD

Input Boxes - Then Printing A Frame With Dynamic Boxes With The Input Text In Them...
I have created a flash document with input text... I put the input text with a a variable for each.. I need to print the variables on a seperate page. I used a bounding box inside a movie clip and the printing is working correctly... However it is not reading my input boxes into the dynamic text boxes..

What I did is I have the input boxes on the root timeline........ You input it and go through a few frames and you get the option to print from a button (which is printing 2nd frame of a movie symbol) NOTE: the printing is working correctly using #b.... This is what I have on the 2nd frame of the movie clip for the dynamic text boxes to read the input boxes and place those variables inside of those dynamic text boxes so it will print them as they inputted them...

Here is what I have for my button:

on (press) {
print(_root.Printing, "bmovie")
}


Here is what my variables are on the input boxes which are sitting on the root timeline, each word is a variable:

curious
passionate
accountable
resourceful
commited
teamwork
open
engerizing

External_focus
Clear_thinker
Imagination_courage
Inclusive_leader
Expertise


INSIDE THE PRINTING MOVIE I HAVE A FRAME WITH THIS ACTION ON IT FOR THE DYNAMIC TEXT BOXES TO READ THE INPUT TEXT BOXES:

External_focus1 = _parent.External_focus;
Clear_thinker1 = _parent.Clear_thinker;
Imagination_courage1 = _parent.Imagination_courage;
Inclusive_leader1 = _parent.Inclusive_leader;
Expertise1 = _parent.Expertise;
curious1 = _parent.curious;
passionate1 = _parent.passionate;
accountable1 = _parent.accountable;
resourceful1 = _parent.resourceful;
commited1 = _parent.commited;
teamwork1 = _parent.teamwork;
open1 = _parent.open;
engerizing1 = _parent.engerizing;


FOR SOME REASON IT IS NOT PRINTING MY INPUT BOX INFORMATION IN THE DYNAMIC TEXT BOXES.... DOES ANYONE KNOW WHY?

Dynamic Text Boxes / Resizing Text Boxes
I have a site with a dynamic text box that I have initialized (I'm not sure that that is the correct term) at the beginning with:

myText = new LoadVars();
myText.onLoad = function()
{ textBox_txt.htmlText = this.content;
};
myText.load("text/bio.txt");
stop();

Then I have just used a text box throughout with the same instance name, although sometimes I have it on a new keyframe. I assumed I could just keep loading text into it on different frames with:

stop();
myText.load("text/performances.txt");

This appears to be working, except that sometimes it seems to be confused and the text box on a certain frame has the wrong text in it. Do I have to initialize one for each frame in order for them to display the right code? What could be causing it to load another text file if it's frame action is telling it to load something else? It seems unnecessary to have to re-initialize it for a new text box instance in every new frame, but is that the way it has to be done?

Also, I'm not clear on resizing text boxes. It seems like if I use the width and height numbers to resize this text box on different pages then it changes the size of the text inside, and the scroll bar (the UIScrollbar) is a little squishy looking sometimes. How does this work?

Thanks for any help.

Dynamic Boxes
How do I do the following:

* Create a dynamic box which can load pictures into it
* Have a button set a variable called picture and then have the above box load the picture which has the same name as the variable

If I can think of anything else I want I'll post it, or if you want any more info let me know.

Thanks

Dynamic Text Boxes
I have several dynamic text boxes which consist of user input on my site. The user fills them out then clicks on a submit button. I have this all figured out, but what I want to do is clear the text from the boxes after I play the successfully sent message.

Getting (NAN, Or INFINITY) In My Dynamic Boxes
I have a chart that I'm creating and in the dynamic text boxes, I have it as a multiline so I can get more than one answer for my calculations. My problem is when ever an answer is given, I get NAN, or INFINITY and then in one of the appropriate feilds I get the correct calculations.
ex..
box(1) box(2) box(3) box(4)
NAN INFINITY 65 36
NAN NAN NAN NAN
INFINITY NAN NAN NAN

Is there a way to have it so that I wont get any text in my boxes other that the correct calculations that are ment to be.

thanx

ANY SUGGESTIONS WILL BE APPRECIATED!

Dynamic Text Boxes
ok, this may be confusing.

I have a swf which opens inside another. The one that opens inside the other has a dynamic text box linking to a notepad file. When I change the resolution to a lower setting (to see how it looks) the text box does not appear to scale. The linked text does scale so what happens is some of the text disssapears.

If this makes sense to anyone, please help!

Dynamic Text Boxes
Hi folks.

Im using the dynamic text tutorial in flash kit to load up an exterior text file into some dynamic text boxes.

The following code loads the text into the movie:-

loadVariablesNum("Files/student_info_1.txt", 0);

The trouble is that when I embed the dynamic text boxes into a MC and then drag it onto the stage, it stops working

Why oh why?

Please help

Help With Dynamic Text Boxes
Hello,

I am trying to make A input text box react with a
Dynamic text box.

Here is what i mean.

The input text box is called "Box1" and The Dynamic
text box is called "Box2". Now say if i type the word
"flashkit rules" I want the dynaic text to to say "I
agree".

Does anyone know what i mean?
Or do you want me to expalin it more?

Thanks in advance, William Jenkins

Dynamic Text Boxes
ok, I got a few small, nigley problems with these damn text boxes and I'm hoping someone else has experienced them and found a solution.

Problem 1: I use two seperate dynamic text boxes each formatted differently (text size and colour) that refer to the same variable from a text file. Both of them have no trouble reading the text, but sometimes the second text box adopts the formatting of the first. very annoying and I've no idea why it does this. I don't want to have to refer to another variable with exactly the same data as the first.

Problem 2: Text wrapping in dynamic text boxes....some of my dynamic text boxes have a few paragraphs of text in. Sometimes, the second or third paragraph of text doesn't wrap but disapears beyond the boundary of the box. If I zoom in and out of the movie, it will often correct itself???

Any ideas greatly appreciated.

O.

Dynamic Text Boxes
Can you put lines and squares etc into a dynamic text box?

I want to be able to have boxes in the dynamic text field so that I can seperate the text.

Thank you for your time,
Ben

Dynamic Text Boxes
Hi All,

I'm working on Flash-MX and want to develop a series of dynamic text boxes. I've a list of items in an Array and i show them with Check boxes, and when user selects items in that list, in next step all those options should be displayed in separate text boxes.

How is it possible? I don't want to use movieclips to create it dynamically.

TIA

Shailendra

Dynamic Text Boxes
I've created a scolling dynamic text box, which uses a text file to fill the text box. I've got two problems with this -

1. The font is squashed. How do I stop this?
2. How do I make some of this text bold font?

Any help is gratefully accepted!

ZapCat

<> Masks And Dynamic Txt Boxes?
Hi,

Im using a mask to mask an area of a dynamically created vertical list of Mc's attached to a empty movie clip (like a menu). Essentailly I want it to work like a scrolling text box. The list is constructed of squarish Mc's which have text boxes sitting inside them which act as labels. These Mc's are children to an empty Mc attached via attachMovie() and linkage. THE PROBLEM IS: that without masking the dynamically populated txt boxes (within these created Mc's) recieve and display related text fantastically. BUT on the other hand, mask the layer (to add scrolling) which contains the parent empty clip and these very same text boxes not to display their text. Am I wrong in thinking that buy masking the parent that I would also be masking the dynamically created clips?? OR do dynamic txt boxes have issues with masks??.

PLEASE HELP!

Dynamic Text Boxes :D
im using Flash MX and what really weird is that i cant get variable to write into the text boxes im using, i trace them, and they work in the out put window, but not actually in the dynamic text field.


is there something new i dont know about. ?

the way im doing it is in the first frame i have this


Code:
textBox = "test"


trace(textBox)
the trace works , but nothing appears in the dynamic text box.

Dynamic Text Boxes
Hey all!
I’m creating a game where in order to shoot at enemies you need to collect your ammunition first. I’ve created a dynamic text box where it displays the amount of amo you have collected, and as you shoot…your ammunition decreases.
I would like to make it so that if you have zero ammunition…you don’t have the ability to shoot anymore, but I’m having a little trouble making it work.

Here is my code…what am I doing wrong?

if (amo >= 1){
collect(); //function which allows the character to shoot
}

if (amo <= 0){
walk(); //function which does not allow the character to shoot
}

is there a certain way you have to read values from dynamic text boxes??

Please help me!! Thanx so much!!

Dynamic Text Boxes
Hi there

i am tring to send text from a input text box to another dynamic text box, it works fine using the varible name option and when the dynamic box is on the same timeline, but no ive moved within a movie clip and now it does not work,

ive tried _root. and _global. but no luck

Please help

Jonathan

Dynamic Text Boxes
I have a problem with dynamic text boxes...

I have a complex but self-contained movie clip that works just fine AS IS when I put it into its own .swf file on its own. BUT, when placed inside another movie clip, it stops working the way I want. I know how dynamic text boxes work, as evidenced by the fact that on its own, this movie clip works just fine. It doesn't reference anything outside of itself.

Can anyone give me some common problems people have for not getting their data to show up in dynamic text boxes? I mean, I have a text box right on screen with actionscript giving the variable a value. It doesn't work unless its in its own movie. Any ideas? (I HATE FLASH)

Cannot See Dynamic Text Boxes
Hi All,

I Urgently need help with this one. I never had such a problem before. I made an email validation form in FlashMX, then I saved it as Flash 5 and exported it in Flash 5. This email form works fine when I look at it in the player alone, but as soon as I load it into the main movie the dymanic textboxes become invisible. But the button still appears. Can anyone please help. I thank you in advance.

Look at the main movie here: http://www.air-tecm.com and click on 'contact' to see the email form. Then also see the form alone at http://www.air-tecm.com/contact.swf

G-towr

Dynamic Text Boxes
How do you anti alias the text in dynamic text boxes, xo they look ugly.

Dynamic Text Boxes
Is it possible to create text boxes dynamically in FLash, like we do in VB.

Please let me know.

Jayakumar

Dynamic Text Boxes.
ok. so i can load my textfile variables into a dynamic text box...thats cool.

am i correct in the assumption that i CANNOT load anything else into them.
i.e. MC's.

if this is the case...does unloadmovieclip work with getting rid of loaded text files already showing in my dynamic text field?

Dynamic Text Boxes
Can you have multiple dynamic text fields in 1 mc and load different data into all of them at the same time? How is this done since I've been trying for the past 2 days and can't get it to work. Thanks!

Dynamic Text Boxes
Does anyone know whether dynamic text boxes have to be white? This is probably a really stupid question + I am sure I have missed something very simple but I am new to flash and I want to create scrollable text on top of an image.

I have created the buttons but the dynamic text box always comes up solid white so instead of seeing the image under the text I just have a white box containing the text.


Any help or pointers would be much appreciated because I can't seem to find the answer to this anywhere.

Dynamic Text Boxes
can you have two dynamic text boxes in 1 scene? i am trying to load two different texts to two different boxes and one will work but the other says undefined. i have check everything and cant figure out why it isnt working.

Using Dynamic Text Boxes...
Alright, I've heard plenty of rather complicated answers to my simple problem. I'm making a website for a local organization, and I want to make it in flash. I have a design all laid out in my mind and everything. The problem is that all the members of the club need to be able to access and change the text in it. None of them have Flash or Frontpage.

Here's what I need to do:
I need to have dynamic text boxes which call on a .txt document which is located in the same "folder" as the flash document.

That way, the members can just update the .txt document! It CAN'T be that difficult to do. All I need is the actionscript necessary for doing this.

Thanks for your time!

Dynamic Text Boxes
i cant seem to change the output font, using the properties inspector, whoudl i be using script?

Dynamic Text Boxes
What are dynamic text boxes?
haha, ok Im joking


Anyways, hey everyone. I have a question about Dynamic text boxes that could realy help me out.

Ok, as you know, when you place a scroller component and target it to a dynamic text box, the scroll bar will appear once the text box's text passes the height of the text box itself.

Hence the scroll.


But until the text gets to that point, the scroll is not visible but the bar is, leaving the simple white rectangle. Looks rather bad.

So my question is this. Is there way, when you put text into a dynamic text box, to tell if the text needs to be scrolled in which you then make visible a scroller component?

Thanks everyone!



Oh, and for those who helped me and my brother out on our first website, thanks alot (especially Kortex for his patience). You can see our website here at www.littlephotographer.ca

Dont judge too harshly, it is our first website afterall

Dynamic Text Boxes
Hello,

I am using Flash 8 Pro.

1) Is there anyone to show and hide text boxes? i.e. _visible etc.
2) Is there a command to flush and clear a dynamic text box when it is being updated every 5 seconds.

Dynamic Text Boxes
Hi,

Not sure if this is in the correct section, sorry if not!

I have got a php page with a rich text editor that updates a dynamic text box in my flash file.

I can add bullet points etc, but i can't change the text colour, size etc via the rich text editor as it just remains how it formatted in flash.

Any ideas how i make the dynamic text box reflect the formatting of the rich text editor and not how it is set in flash.

Many thanks,

Mark

Dynamic Text Boxes
Quick question, I'm building a movie that calls in text for a slide show.

The text is loaded one line at a time in bullet form like so:

• line #1 of slide show

• line #2 of slide show

• line #3 of slide show

My question is, how do i get the next line of text to load under the last line?
If a single bullet point is 2-3 lines long, how do i tell the next line to get the height of the previous line and start say 25 px under it.

if all the text that is loaded is only one line long, then i can do something like this:


Code:
text1._y=100
text2._y= text1._y+25
text3._y= text2._y+25


but if all the lines are different heights it becomes tricky. Any help would be appreciated.

Dynamic Text Boxes
I have to make a mobile phone in Flash and when each of the numbers are pressed it makes a sound and the corresponding number comes up on the screen.
I have used a dynamic text box to display the number. The problem is that when another number is clicked, the previous number is cleared from the screen and replaced. How can I get it to display all the numbers clicked in the correct order?

Any help is much appreciated, thanks.

Dynamic Display Of Boxes ...
Not sure where to start with this, but it needs to be dynamic, not animated on the timeline. Here is what I am trying to do:

1. I have a number of boxes (containing various graphics) that I need to display.
2. There will only be 5 of these boxes in view on the screen at any one time.
3. There is a total of 50 boxes.
4. So you will see 5 boxes side by side on the screen.
5. At the both ends of the boxes, there will be a button to progress the boxes.
6. So when you start, you will see boxes 1 through 5 on the screen and a button at each end of the boxes.
7. Clicking the button at the right hand side will change the boxes to 6 through 10, clicking the same button again will display boxes 11 through 15, and so on.
8. Clicking the button at the left hand side will shift the boxes down a set, exactly the reverse of what the right hand button does.

So does anyone know of a tutorial or an .fla somwhere so I can learn this. As I said above, it needs to be dynamic and not use the timeline with keyframes.

Thanks,
Stephen.

Dynamic Text Boxes And '
I'm calling in text into a dynamic text box that uses ' a lot, in words such as I'm and I've and also words that have an 's. Where ever ' apears the text stops from displaying in the dyamic text box.

I have been told to try to avoid ' & and ! in dyanamic text.

I want to know if there is at all any way I can use ' in the dynamic text box, I don't want to have a bunch of misspelled words on my site.

I have tryed using "&rsquo;" but that also kills the text. Does any one have any advice with dealing with this problem?


Thanks
~Chris

Dynamic Text Boxes
FL8

I have a class extending movieclip. The class has a property 'info'
which is an instance of another class.

The movie clip has a dynamic text box. Can i set its var to info.prop??
Or something similar? I dont want to break out the info from 'info'
just to display its props

Alex

Dynamic Text Boxes
Hello,

I have a flash application at the moment where i need to create labels to add to a diagram, where they can be dragged around. However i am having difficulties with the dynamic text boxes. I use an input text box, where the contents entered goes into a dynamic text box within a movie clip, which is dragable. As this application is completly dynamic, i dont know how much text will be entered into the boxes, therefore i was wondering if there was any way in which i could dynamically resize the text box depending on the amount of text entered??

Hope this is possible,

If anyone can help it would be greatly appreciated :)

Cheers

Dynamic Text Boxes
Hi
I need to place a few dynamic text boxes one under other. The problem I have is that the number of lines in the top text box will vary and I want the text boxes underneath to be aligned relative to that text box. Does anyone out there know the best way to do this.

Cheers

Dynamic Combo Boxes
Hello All,

You know how you can have actionscript set a variable by lets say

myvar = textbox1.text;

how would I set a variable based on the selected Label of a combobox?

Dynamic Text Boxes
I have developt a site http://www.momentumdesign.com.au/

and when the dynamic text boxs in the fla file are set and I publish the swf all works BUT when I go to make changes to the text boxes copy etc I have to re size all the boxes again??

also can I link URL to dynamic text ?

Thanks

Dynamic Text Boxes
I was wondering if it's possible to have a dynamic text box that can change sizes, without distorting the text displayed in it...

I would also like to set it up dynamically... is there a way that I can do that?

Dynamic Boxes Problem
I have two movieclips on _root, one is colorbox and the other is boxoff.

My goal is two create an 8 x 8 grid, with both boxoff and colorbox.

I need colorbox to sit behind the boxoff boxes. So that boxoff is clickable.

I'm having a few problems, first there is no box being shown at position 0, and the second is I can't get boxoff to display above colorbox.



Code:
xgridlines = 9;
ygridlines = 9;
distance = 35;
totalboxes = xgridlines * ygridlines;
setProperty ("boxoff", _visible, false);

k = 0;
for (j=1; j<=xgridlines-1; j++) {
for (i=1; i<=ygridlines-1; i++) {
duplicateMovieClip ("boxoff", "boxoff"+k, k);
duplicateMovieClip ("colorbox", "colorbox"+k, _root.getNextHighestDepth());
setProperty ("colorbox"+k, _x, distance*i);
setProperty ("colorbox"+k, _y, distance*j);
setProperty ("boxoff"+k, _x, distance*i);
setProperty ("boxoff"+k, _y, distance*j);
this["color_"+k] = new Color("colorbox"+k);
iColor = "0xFF0000";
eval("color_"+k).setRGB(iColor);
k++;
}
}

for(var i=0;i<totalboxes;i++){
_root.attachMovie("boxoff", "boxoff"+i, i);
_root["boxoff"+i].onRelease = function(){
trace(this._name);
//this.removeMovieClip();
};
}

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