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




Expanding Dynamic Text Box?



I have a dynamic text box and I'm loading in text for it, the problem is that sometimes the text loading in is longer than the box, I don't want the dynamic text box to be a fixed height I want it to expand to the height of the content that is loaded in. How do I do that?



FlashKit > Flash Help > Flash ActionScript
Posted on: 08-29-2007, 01:24 AM


View Complete Forum Thread with Replies

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

Expanding Dynamic Text Box
I have a scroll pane that is linked to a movie clip with a dynamic text field. The scroll pane expands automatically based on the length of the dynamic text field. I would also like to have the dynamic text field expand automatically to fit the dynamic content from an external .txt file if there is too much text to fit in the default text field length.

Here is the code I am using to get the .txt files:

myLoadVars = new LoadVars();
myLoadVars.onLoad = function() {
// the data is loaded in the myLoadVars object as a property of the object
myText.htmlText = myLoadVars.myHTMLdata;
}
myLoadVars.load("MCAS-EMST/Body-1.txt");

Thank you for your help

Expanding Dynamic Text Box With Actionscript
I am sucking a .txt file into a dynamic text box. The .txt file contains a number of items = "words". These are cycled into the text box. Rather than setting the text box to a fixed size i want to use script to check the number of characters now loaded into the box and then resize it and the background. I can't seem to make it work.

I have used autosize, length and maxChars but must not be using them correctly. Any assistance would be great!

Textbox Not Expanding For Dynamic Text?
I am trying to create a scrolling ticker:

Code:
//two variables from the text file
for (i=1;i<3;i++) {
//textbox instance name
dupText = 'textBox' add i;

//duplicate the textbox
_root.foto.image.textBox0.duplicateMovieClip(dupText, i);

//input the text from the textfile
this.image["textBox" + (i-1)].textB.text=_root["tick" +i];

//set it to the right of the previous one
this.image["textBox" + i]._x = this.image["textBox" + (i-1)]._x+ this.image["textBox" + (i-1)]._width;

}
The movie already on the stage is called textBox0 with a textbox inside called textB

I'm having several problems. The first one is that the text box is not resizing for the dynamic text. Its cut off. How can I fix that?

and because of that I can't tell if the duplicated clips are moving over as they should.

Expanding Height On A Dynamic Text Box ?
I am trying to get a dynamic text box, with a fixed width, to automatically expand its height to accomodate the amount of content being loaded. Is this possible. It seems like it should be a really simple thing.

Please help
Thank you

Dynamic Expanding Menu
Hi All,

I am in the process of building a launch page of sorts; it’s going to be used to launch various short courses. I am building it as dynamically as possible and am have a hard time with the menu. The text inside the menu will come from an external text file and the menu has a Topic with sub topics under it.
I would like to build it so that it “knows” how many items are below it expands/collapses and moves the items below it accordingly

For example in the linked image until the user rolls over the menu all they would see is Menu Item Number 1 and Menu Item Number 2. If they were to mouse over Menu Item Number 1 it would expand to revel what is below it, pushing Menu Item Number 2 down.
The “Main” topics and “subtopics” are all coming from a text file.

Like I said I’m having a hard time setting this up, not sure how to start though I have a sneaking suspicion XML may come in handy here.

If anyone has any tips or has come across any tutorials that may be helpful I would appreciate any advice!

Thanks.

Ivan

Menu layout

How Is This Done? Expanding Grid (dynamic)
How is this done?

Go to this site: http://www.kurtnoble.com/

When the "Portfolio" section opens, click on an item. Notice how it expands?

Each item will expand to fit the box, no matter where it is positioned. I imagine this is done dynamically according to the item's location.

Anyone know of a tutorial or example file that can explain this?

Thanks.

How Is This Done? Expanding Grid (dynamic)
How is this done?

Go to this site: http://www.kurtnoble.com/

When the "Portfolio" section opens, click on an item. Notice how it expands?

Each item will expand to fit the box, no matter where it is positioned. I imagine this is done dynamically according to the item's location.

Anyone know of a tutorial or example file that can explain this?

Thanks.

Expanding Banners -- Dynamic Advertising
Need help creating a banner that expands over the text in the page.

When hovering over the banner, the banner expands to reveal a larger picture.

Please let me know if you know what I am talking about, these ads are always visible on Yahoo and MSN

Dynamic Expanding And Collapsing Menu
I downloaded this menu and was curious if anyone knows if i can add a 3rd tier of the nav and how i would do that. Also How can i give each button its own background color so they arent all the same.

http://www.flashkit.com/movies/Scrip...9895/index.php

Dynamic Expanding And Collapsing Menu
I downloaded this menu and was curious if anyone knows if i can add a 3rd tier of the nav and how i would do that. Also How can i give each button its own background color so they arent all the same.

http://www.flashkit.com/movies/Scri...-9895/index.php

here is my modified version

http://www.industrialbrand.com/hidden

Dynamic Expanding And Collapsing Menu
I downloaded this menu and was curious if anyone knows if i can add a 3rd tier of the nav and how i would do that. Also How can i give each button its own background color so they arent all the same.

http://www.flashkit.com/movies/Scri...-9895/index.php

here is my modified version

http://www.industrialbrand.com/hidden

Dynamic Expanding And Collapsing Menu
I downloaded this menu and was curious if anyone knows if i can add a 3rd tier of the nav and how i would do that. Also How can i give each button its own background color so they arent all the same.

http://www.flashkit.com/movies/Scri...-9895/index.php

I also have modified it a bit. Please take a look at my file, it looks like when i publish it, it scales the button about 2%.. weird...

http://www.industrialbrand.com/hidden

I've Lost A Tut On: Dynamic Expanding Menu Boxes. Can You Help Me Find It Pls :)
Hiya! Saw a really good tut on hear the other day, or was it a link to one?? mmm Anyone help me find it please?

...It was all about creating expandable menus. When a user clicks a menu button, the menu expands downwards a set distance, whilst the other menus move to accommodate it (I've checked the 'accordian' menu threads, not quite it - someone had posted a really simple swf the other day - it was for RollOvers but the principal was the same)...eg.>>

A)

------
menu1
------
menu2
------
menu3
------


B)User clicks 'menu2'

------
menu1
------
menu2
V
V
V
------
menu3
------

The particular tut I'm looking for explained how to keep the text size within the menus static but still stretch the containers. mmm - I'll keep searching Kirupa etc.

Any help would be greeeeeat

P

Expanding Text 2
Hey peeps,

thanks for the earlier post scudsucker. This probably represents perfectly what i am trying to do, check out the top nav of main page. - the expanding rollovers. are there any tutorials that can show me how to do this

http://www.acmi.net.au/index.htm

Thanks again

Expanding A Gif With Text
I have a dynamic text that lies on a sort of button.
I read in text into the textbox and as the text decrease or grows I want the button to expand so the text will fit perfectly.

I have solved a bit of the problem by dividing the button into 3 parts because the corners are rounded and so.

Is there anyway to script it like that?

New To This. Expanding Text.
I'm trying to figure out how to create expanding text where the spacing between the letters gradually increases but the letters themselves stay the same size. I've tried using the timeline effect Expand but that expands the letters as well as the spacing between the letters. Thanks for any help.

Expanding A Text Field To Fit Text Dynamically?
ok here's the situation. i have two text fields with the same font but one is bold and the other is light. what i need is for the one dynamic text box to be able to stretch only on a x axis and expand to fit whatever text is put into it, say the same word but a different language. then i'll make it so the second dynamic text field makes it x value to be at the end of the first text box. but that part i got on my own groovy?

[CS3] Expanding Text Boxes
hi

i am hopeing to create in flash something that looks like the expanding text boxes here

http://www.flooble.com/scripts/expand.php

is it possiable.

regards

[CS3] Expanding Text In Flash
I have a basic general knowledge of flash. Im trying to get back into it and learn more for work. Im fooling around with the expand effect for text. I think Ive got a pretty good handle on it, but I would like more options on the controls. Currently its blowing apart the text well, but the letters on the ends are blowing apart farther then the letters in the middle. I would like ALL letter to blow apart so that the same amount of space is between them at the end.
Currently my settings in the expand dialog box are as follows...
Effect Duration: 10 frames
Expand
shift group center by:
x:0
y:0
Fragment offset: 10
Change fragment size by:
height:0
width:0

Im thinking this is probably the easiest way to get the effect im looking for but its blowing apart the wrong way.

If anyone has ANY suggestions I would be VERY grateful!
Thank you in advance

Expanding Text (Like A Node)
Hey everbody I was wondering if you could provide me with a example or a link to a collabsable block text: for example:
if this is my body of Text:


Quote:




BODY 1 TITLE
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer erat. Nunc condimentum, neque et vulputate viverra, pede felis placerat leo, eu imperdiet lorem mi sit amet erat. In leo lectus, interdum ut, blandit et, tempor in, tellus. Aenean suscipit, tellus vel fringilla dignissim, augue nisi interdum purus, non tristique libero enim at justo. Curabitur porttitor sollicitudin dui. Cras vitae nulla nec ipsum ornare blandit. Curabitur consectetuer felis eu sapien. Nulla facilisis elementum nulla. Vestibulum arcu. Nulla facilisi. Maecenas id eros vel enim tristique consequat. Pellentesque erat massa, consequat sagittis, sagittis sed, semper eget, purus. In pharetra. Mauris placerat aliquam justo. Etiam ut risus. Maecenas enim enim, rhoncus sit amet, mollis tincidunt, aliquet sit amet, lorem.





I want to be able to change it to


Quote:




BODY 1 TITLE
Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Integer erat. Nunc condimentum, neque et vulputate viverra, pede felis placerat leo, eu imperdiet lorem mi sit amet erat....[+]




and have the [+]and a [-] to expand and collapse the body of text

Expanding Text Effect
I am looking to create a particular text effect I have seen.

Visit www.andrewcollinge.com
select the hair car option and look at the mouse over effects on the buttons.

I have used plain buttons and the mouse over effect but the transition is not right.

I have created a similar effect with DHTML & CSS but my client wants a particular font and NOTHING ELSE WILL DO!

I am wondering is this a movie that has a rewind function based on th frame or is it just a conditional loop that either add ++ or subtracts -- from the text size based on the mouse over property?

I could really use some help here is its one of the last requirements to get the site finished.

Thanks

Expanding The Input Text Field
I have an input textfield with autowrapping. I want the user's text to wrap to the next line normally, but when there is a really long word larger than the width of the textfield, I want the textfield to grow with the length of the long word. Is this possible?

Thanks.

Vertically Expanding Text Boxes/movies
hi all,

i want to dynamically load info into message boxes on the home page of my website. the messages that i will be loading will be loads of different sizes and therefore i will need the text boxes (and also the movie clips they are contained in) to resize vertically depending on how much text there is.

I looked at the dynamic text boxes and found that you could make boxes which resize themselves automatically but it doesn't seem to work for me.

can anyone offer advice on this subject?

cheers

Expanding / Contracting Text In Subnav (mx Or Mx04)
Hi,

For the site
http://www.dieselmarketing.com/main.htm

just curious if anyone knows how to do this cool expand / contracting effect in the subnav? For example under the slide-out menu, notice the words -- "advertising" -- "interactive" -- "design" -- and "direct" These words expand and contract (with easing) when the mouse rolls over them.

I imagine that it could be done with "static" gifs or jpegs -- but I'm hoping there's a more elegant AS solution which would allow the use of dynamic text fields?

Dynamicly Expanding Text Field Within Complex Scroller
I have a tricky issue that I am trying to work out...I have made the following "Booth Info Popup" when a user clicks a booth in my main application...this popup appears...and the fields within it are scrollable...this is fine and dandy and works great...until I run into a profile that is longer than the text field within each "item" in the popup...what I want is the last two items to have autosizing text fields...that seems easy but the issue comes when I try to resize and reposition all the rest of the stuff like the gradient masks and the shadow at the bottom of the "item" and also the rest of the items with respect to the one that is being placed...the popup is populated with items through actionscript...the "item" movieclip is an element in the library that is being brought in by actionscript...(AS2.0)...please take a look and if anyone could shed some light on how I can attack this problem, I would greatly appreciate it...(BTW as far as I know...I will always have 4 items and the first two do not need to resize and the last two do need to resize...if that helps at all)

http://www.expocadvr.com/test/default.html

here is the code that generates the popup
code:
function fadeIn(my_mc, my_mcP)
{
if(_root.dropped)
{
my_mc.myTween.stop();
my_mcP.tweenHandler1.stop();
my_mcP.tweenHandler2.stop();
my_mc.myTween = new mx.transitions.Tween(my_mc, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 65, 2, true);
my_mcP.tweenHandler1 = new mx.transitions.Tween(my_mcP.titleText, "_xscale", mx.transitions.easing.None.easeNone, 100, 130, .5, true);
my_mcP.tweenHandler2 = new mx.transitions.Tween(my_mcP.titleText, "_yscale", mx.transitions.easing.None.easeNone, 100, 130, .5, true);
}
}
function fadeOut(my_mc, my_mcP)
{
if(_root.dropped)
{
my_mc.myTween.stop();
my_mcP.tweenHandler1.stop();
my_mcP.tweenHandler2.stop();
my_mc.myTween = new mx.transitions.Tween(my_mc, "_alpha", mx.transitions.easing.Strong.easeOut, 65, 0, 4, true);
my_mcP.tweenHandler1 = new mx.transitions.Tween(my_mcP.titleText, "_xscale", mx.transitions.easing.None.easeNone, my_mcP.titleText._xscale, 100, 1, true);
my_mcP.tweenHandler2 = new mx.transitions.Tween(my_mcP.titleText, "_yscale", mx.transitions.easing.None.easeNone, my_mcP.titleText._yscale, 100, 1, true);
}
}
function scrollItems(myClip, myMask, mySpeed)
{
if (myMask._xmouse > 0 && myMask._xmouse < myMask._width && myMask._ymouse > 0 && myMask._ymouse < myMask._height)
{
mouseY = myMask._ymouse;
clipY = myClip._y;
maxY = myClip._height - myMask._height - 2;
minY = 0;
midY = myMask._height / 2;
speed = mySpeed;
if (mouseY <= midY && clipY <= minY)
{
diff = (midY - mouseY) / speed;
myClip._y = clipY + diff;
}
else if (mouseY >= midY && clipY >= -maxY)
{
diff = (mouseY - midY) / speed;
myClip._y = clipY - diff;
}
if (myClip._y >= minY)
{
myClip._y = minY;
}
else if (myClip._y <= -maxY)
{
myClip._y = -maxY;
}
}
}
function loadItems()
{
for (var i = 0; i < 4; ++i)
{
var item_mc = newsScroll.newsItemHolder.attachMovie("item", "item" + i, i);
item_mc._x = 0;
t = newsScroll.newsItemHolder;
item_mc._y = t["item" + [i - 1]]._y + t["item" + [i - 1]]._height;

/*var colorTrans:ColorTransform = new ColorTransform();
var trans:Transform = new Transform(item_mc.newsItemButton.buttonInner);
colorTrans.alphaMultiplier = 0;
trans.colorTransform = colorTrans;*/
var colorTrans = new flash.geom.ColorTransform();
var trans = new flash.geom.Transform(item_mc.newsItemButton.button Inner);
colorTrans.alphaMultiplier = 0;
trans.colorTransform = colorTrans;

item_mc.newsItemButton.buttonInner.cacheAsBitmap = true;
item_mc.newsItemButton.gradientMask.cacheAsBitmap = true;
item_mc.newsItemButton.buttonInner.setMask(item_mc .newsItemButton.gradientMask);

item_mc.onRollOver = function ()
{
fadeIn(this.newsItemButton.buttonInner, this);
}
item_mc.onRollOut = item_mc.onReleaseOutside = function ()
{
fadeOut(this.newsItemButton.buttonInner, this);
}
}
}

newsScroll.newsItemHolder.setMask(newsScroll.scrol lMask);

newsScroll.onEnterFrame = function ()
{
if(_root.dropped)
{
scrollItems(newsScroll.newsItemHolder, newsScroll.scrollMask, 5);
}
}

loadItems();

newsScroll.newsItemHolder.item0.titleText.newsCont ent_txt.text = "Applied Computer Technology";
newsScroll.newsItemHolder.item0.content.text = "69 S. La Salle"+"
"+"Aurora, IL 60505";
newsScroll.newsItemHolder.item1.titleText.newsCont ent_txt.text = "Contact";
newsScroll.newsItemHolder.item1.content.text = "phone: 630-555-0000"+"
"+"e-mail: blah@expocad.com";
newsScroll.newsItemHolder.item2.titleText.newsCont ent_txt.text = "Profile";
newsScroll.newsItemHolder.item2.content.text = "This is a really cool Company";
newsScroll.newsItemHolder.item3.titleText.newsCont ent_txt.text = "Categories";
newsScroll.newsItemHolder.item3.content.text = "Software, Space Travel, Snorkeling, Kayaking, Snowboarding, Moon Pies, Porta Potties, WW2 Memorabilia";

[flash Mx] Expanding Xml Menu - Display HTML In Text Box?
Hey all -
I used the code from Kirupa's tutorial for the expanding XML menu, but I'd like it to display HTML in the dropdown field. http://www.kirupa.com/developer/acti...pdown_menu.htm Is this possible? If so, how? I took my best stab at it below. PLEASE HELP!! I'm under the gun with a project due in a couple days and am hung up on this. THANKS IN ADVANCE!!


Code:
// generates a list of menu items (effectively one menu)
// given the inputted parameters. This makes the main menu
// as well as any of the submenus
GenerateMenu = function(container, name, x, y, depth, node_xml) {
// variable declarations
var curr_node;
var curr_item;
var curr_menu = container.createEmptyMovieClip(name, depth);

// for all items or XML nodes (items and menus)
// within this node_xml passed for this menu
for (var i=0; i<node_xml.childNodes.length; i++) {
// movieclip for each menu item
curr_item = curr_menu.attachMovie("menuitem","item"+i+"_mc", i);
curr_item._x = x;
curr_item._y = y + i*curr_item._height;
curr_item.trackAsMenu = true;

// item properties assigned from XML
curr_node = node_xml.childNodes[i];
curr_item.action = curr_node.attributes.action;
curr_item.variables = curr_node.attributes.variables;
curr_item.name.text = curr_node.attributes.name;

// item submenu behavior for rollover event
if (node_xml.childNodes[i].nodeName == "menu"){
// open a submenu
curr_item.node_xml = curr_node;
curr_item.onRollOver = curr_item.onDragOver = function(){
var x = this._x + this._width - 5;
var y = this._y + 5;
GenerateMenu(curr_menu, "submenu_mc", x, y, 1000, this.node_xml);
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}else{ // nodeName == "item"
curr_item.arrow._visible = false;
// close existing submenu
curr_item.onRollOver = curr_item.onDragOver = function(){
curr_menu.submenu_mc.removeMovieClip();
// show a hover color
var col = new Color(this.background);
col.setRGB(0xf4faff);
};
}

curr_item.onRollOut = curr_item.onDragOut = function(){
// restore color
var col = new Color(this.background);
col.setTransform({ra:100,rb:0,ga:100,gb:0,ba:100,bb:0});
};

// any item, menu opening or not can have actions
curr_item.onRelease = function(){
Actions[this.action](this.variables);
CloseSubmenus();
};
} // end for loop
};
// create the main menu, this will be constantly visible
CreateMainMenu = function(x, y, depth, menu_xml){
// generate a menu list
GenerateMenu(this, "mainmenu_mc", x, y, depth, menu_xml.firstChild);
// close only submenus if visible durring a mouseup
// this main menu (mainmenu_mc) will remain
mainmenu_mc.onMouseUp = function(){
if (mainmenu_mc.submenu_mc && !mainmenu_mc.hitTest(_root._xmouse, _root._ymouse, true)){
CloseSubmenus();
}
};
};
// load XML, when done, run CreateMainMenu to interpret it
menu_xml = new XML();
menu_xml.ignoreWhite = true;
menu_xml.onLoad = function(ok){
// create main menu after successful loading of XML
if (ok){
CreateMainMenu(10, 10, 0, this);
message_txt.html=true;
message_txt.htmlText = "Testing this spot";
}else{
message_txt.htmlText = "error: XML not successfully loaded";
}
};
// load first XML menu
menu_xml.load("PBmenu1.xml");

// closes all submenus by removing the submenu_mc
// in the main menu (if it exists)
CloseSubmenus = function(){
mainmenu_mc.submenu_mc.removeMovieClip();
};
// This actions object handles methods for actions
// defined by the XML called when a menu item is pressed
Actions = Object();
Actions.gotoURL = function(urlVar){
getURL(urlVar, "_blank");
};
Actions.message = function(msg){
message_txt.html=true;
message_txt.htmlText=msg;
};
Actions.newMenu = function(menuxml){
menu_xml.load(menuxml);
};
Actions.openWindow = function(newwindow){
testWin.loadMovie(newwindow);
gotoAndStop(30);
};

Dynamicly Expanding Text Field Within Complex Scroller
I have a tricky issue that I am trying to work out...I have made the following "Booth Info Popup" when a user clicks a booth in my main application...this popup appears...and the fields within it are scrollable...this is fine and dandy and works great...until I run into a profile that is longer than the text field within each "item" in the popup...what I want is the last two items to have autosizing text fields...that seems easy but the issue comes when I try to resize and reposition all the rest of the stuff like the gradient masks and the shadow at the bottom of the "item" and also the rest of the items with respect to the one that is being placed...the popup is populated with items through actionscript...the "item" movieclip is an element in the library that is being brought in by actionscript...(AS2.0)...please take a look and if anyone could shed some light on how I can attack this problem, I would greatly appreciate it...(BTW as far as I know...I will always have 4 items and the first two do not need to resize and the last two do need to resize...if that helps at all)

http://www.expocadvr.com/test/default.html

here is the code that generates the popup

ActionScript Code:
function fadeIn(my_mc, my_mcP){    if(_root.dropped)    {        my_mc.myTween.stop();        my_mcP.tweenHandler1.stop();        my_mcP.tweenHandler2.stop();        my_mc.myTween = new mx.transitions.Tween(my_mc, "_alpha", mx.transitions.easing.Strong.easeOut, 0, 65, 2, true);        my_mcP.tweenHandler1 = new mx.transitions.Tween(my_mcP.titleText, "_xscale", mx.transitions.easing.None.easeNone, 100, 130, .5, true);        my_mcP.tweenHandler2 = new mx.transitions.Tween(my_mcP.titleText, "_yscale", mx.transitions.easing.None.easeNone, 100, 130, .5, true);    }}function fadeOut(my_mc, my_mcP){    if(_root.dropped)    {        my_mc.myTween.stop();        my_mcP.tweenHandler1.stop();        my_mcP.tweenHandler2.stop();        my_mc.myTween = new mx.transitions.Tween(my_mc, "_alpha", mx.transitions.easing.Strong.easeOut, 65, 0, 4, true);        my_mcP.tweenHandler1 = new mx.transitions.Tween(my_mcP.titleText, "_xscale", mx.transitions.easing.None.easeNone, my_mcP.titleText._xscale, 100, 1, true);        my_mcP.tweenHandler2 = new mx.transitions.Tween(my_mcP.titleText, "_yscale", mx.transitions.easing.None.easeNone, my_mcP.titleText._yscale, 100, 1, true);    }}function scrollItems(myClip, myMask, mySpeed){    if (myMask._xmouse > 0 && myMask._xmouse < myMask._width && myMask._ymouse > 0 && myMask._ymouse < myMask._height)    {        mouseY = myMask._ymouse;        clipY = myClip._y;        maxY = myClip._height - myMask._height - 2;        minY = 0;        midY = myMask._height / 2;        speed = mySpeed;        if (mouseY <= midY && clipY <= minY)        {            diff = (midY - mouseY) / speed;            myClip._y = clipY + diff;        }        else if (mouseY >= midY && clipY >= -maxY)        {            diff = (mouseY - midY) / speed;            myClip._y = clipY - diff;        }        if (myClip._y >= minY)        {            myClip._y = minY;        }        else if (myClip._y <= -maxY)        {            myClip._y = -maxY;        }    }}function loadItems(){    for (var i = 0; i < 4; ++i)    {        var item_mc = newsScroll.newsItemHolder.attachMovie("item", "item" + i, i);        item_mc._x = 0;        t = newsScroll.newsItemHolder;        item_mc._y = t["item" + [i - 1]]._y + t["item" + [i - 1]]._height;        /*var colorTrans:ColorTransform = new ColorTransform();        var trans:Transform = new Transform(item_mc.newsItemButton.buttonInner);        colorTrans.alphaMultiplier = 0;        trans.colorTransform = colorTrans;*/        var colorTrans = new flash.geom.ColorTransform();        var trans = new flash.geom.Transform(item_mc.newsItemButton.buttonInner);        colorTrans.alphaMultiplier = 0;        trans.colorTransform = colorTrans;        item_mc.newsItemButton.buttonInner.cacheAsBitmap = true;        item_mc.newsItemButton.gradientMask.cacheAsBitmap = true;        item_mc.newsItemButton.buttonInner.setMask(item_mc.newsItemButton.gradientMask);        item_mc.onRollOver = function ()        {            fadeIn(this.newsItemButton.buttonInner, this);        }        item_mc.onRollOut = item_mc.onReleaseOutside = function ()        {            fadeOut(this.newsItemButton.buttonInner, this);        }    }} newsScroll.newsItemHolder.setMask(newsScroll.scrollMask);newsScroll.onEnterFrame = function (){    if(_root.dropped)    {        scrollItems(newsScroll.newsItemHolder, newsScroll.scrollMask, 5);    }}loadItems();newsScroll.newsItemHolder.item0.titleText.newsContent_txt.text = "Applied Computer Technology";newsScroll.newsItemHolder.item0.content.text = "69 S. La Salle"+"
"+"Aurora, IL 60505";newsScroll.newsItemHolder.item1.titleText.newsContent_txt.text = "Contact";newsScroll.newsItemHolder.item1.content.text = "phone: 630-555-0000"+"
"+"e-mail: <a href="mailto:blah@expocad.com">blah@expocad.com</a>";newsScroll.newsItemHolder.item2.titleText.newsContent_txt.text = "Profile";newsScroll.newsItemHolder.item2.content.text = "This is a really cool Company";newsScroll.newsItemHolder.item3.titleText.newsContent_txt.text = "Categories";newsScroll.newsItemHolder.item3.content.text = "Software, Space Travel, Snorkeling, Kayaking, Snowboarding, Moon Pies, Porta Potties, WW2 Memorabilia";

Jumping To Areas Of Dynamic Text, Printing Dynamic Text
hello,

I have a movie clip that loads a .txt file into a dynamic text field. Due to the amount of content in the file a scroller bar is needed in order to view all of it. I want to create buttons that jump to different areas of the dynamic text for easier navigation so the user can go directly to various sections instead of having to use the scroller all the time. What kind of coding would I need to put on the buttons and within the .txt file at the areas I want to jump to?
Also, I would like to give the user the option to print everything within the dynamic text field only, not the surrounding elements in my movie clip. Is that possible?

thanks!

Dynamic Text Not Loading On Server . . . Other Dynamic Text Issues
ok - here's the url

http://www.rongilcreast.com/Test_Site/main.html

when I 'test movie' in Flash, the text comes in. But not now that it's online . . .

2nd problem. I want to add a scrollbar to the textbox, but when I drag the scrollbar onto the textbox, it doesn't snap-to the text box and resize itself.

all the files are here:

http://www.rongilcreast.com/Test_Site/main.fla
http://www.rongilcreast.com/Test_Site/main.swf
http://www.rongilcreast.com/Test_Site/Index.txt

whatamIdoin'wrong?

tia . . .

[AS2] Changing Text In Dynamic Text Field With Dynamic Instance Name
I dont know what I am missing here but what I want to do is change the text inside a dynamic text field via actionscript. the code I am using runs in a loop within a function. Trace is outputting the correct values.


PHP Code:



    for(i=0; i<=4; i++) {
        if(_root["order_"+ q][i] == 0) {
            ["order_"+ i]text = "First";
            trace("first");
        } else if (_root["order_"+ q][i] == 1) {
            ["order_"+ i]text = "Second";
            trace("Second");
        } else if (_root["order_"+ q][i] == 2) {
            ["order_"+ i]text = "Third";
            trace("Third");
        } else if (_root["order_"+ q][i] == 3) {
            ["order_"+ i]text = "Fourth";
            trace("Fourth");
        } else if (_root["order_"+ q][i] == 4) {
            ["order_"+ i]text = "Fifth";
            trace("Fifth");
        }
    } 




basically I want to do this -


PHP Code:



order_0.text = "First"; 




So how can I change this line to work as expected?


PHP Code:



["order_"+ i]text = "First"; 





EDIT- The instance names for the dynamic text fields are set
Thanks

Trying To Take The Text From One Dynamic Text Field And Populate Another Dynamic Text
I'm trying to take the text from one dynamic text field and populate another dynamic text field with its contents.

I want to display the text that is in the text field _root.MC_Control.tab_title in another text field called _root.video_title.

I have tried this:

_root.video_title.text = _root.MC_Control.tab_title.text;

and this:

_root.video_title.text == _root.MC_Control.tab_title.text;

neither one seems work....am I missing something?

Asfunction - How To Load Dynamic Text With Dynamic Text? [F8]
Hello dear helpers !!!

I'm trying to get external, dynamically loaded text to load different text files into a text box. I've figured out that I need asfunction to do it through calling a function in the movie and passing it variables, although i haven't been able to write this function at all... would anyone mind giving me a hand???


thanks sooo much!!

p.s. I've managed to get this working by creating a toggle function, so at the moment I have 25 text boxes and a show/ hide function, but that's very buggy.

Loaded Text File Wont Show All Of The Text In Dynamic Text Field
When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.

The text that is in the text file is as follows, and as far as I can see there is no reason why all this text shouldnt show in the dynamic text field; by the way all my targets are correct, I know that for fact.


message=Code: Cheat:
BEEPSAGONER Deactivate the censor beeps
DRACULASTEABAGS 50 lives
DUTCHOVENS Frying pan mode
XFYHIJERPWAL IELWZS Debug mode
BOVRILBULLETHOLE Shoot all objects
EASY Easy mode
VERYEASY Very easy mode
SPUNKJOCKEY New death animation
SEXYMANN Birdy & Squirrel scene

Code: Unlock chapter:
PRINCEALBERT Barn Boys
CLAMPIRATE Bats Tower
ANCHOVYBAY Slopranos
MONKEYSCHIN Uga Buga
SPANIELSEARS Spooky
BEELZEBUBSBUM It's War
CHOCOLATESTARFISH The Heist
WELDERSBENCH All chapters and scenes

Code: Unlock Multiplayer character:
WELLYTOP Conker
EASTEREGGSRUS Neo Conker
BILLYMILLROUNDABOUT Gregg the Grim Reaper
CHINDITVICTORY Weasel Henchmen
EATBOX Cavemen
RUSTYSHERIFFSBADGE Sergeant and Tediz Leader
BEEFCURTAINS Zombies and Villagers

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?

Trasfering Text From One Dynamic Text Box To A Input Text Box On A Differnt Page?
Ok so I have a text box set up which receives the date on a callendar which you click on. On another page (a seperate html file) I have an input text box for receiveing this text.

I've been trying to do this using various methods using getURL, but, I can't get it to work. This is becoming tedious especially as I'm not able to test it without having to reupload the files.

If someone could please inform me on how I should do this I'd be vary greatful.

If you need any further information I'll reply as soon as possible.

Expanding
Hi,
I would like to expand a square (0,0,100,100) to (0,0,200,200)position with using an Aaction Script(not using timelines with tweening).

Is there any way?

Thank you.

Expanding Mc
I was looking around some flash sites and came across www.2advanced.com (Excellent site, very impressive) and I noticed that they have what I can only describe as an expanding mc where they load other mcs' and content. All the stuff below them is then pushed out the way. How is this effect achieved?

Regards.

Expanding Box
I would like to know what how to (or what script to use) in making a button that will make a box expand in a menu.

[F8] Expanding SWF
How can I create an SWF that expands over the rest of the html content when I roll over it (popular in advertising banners right now. Example: the crafts man banner at http://my.yahoo.com/).

What is this employing besides just the swf, dose this use java of something else to allow it to expand over other content?

If so where can I find out more on how to do something like this?

I have looked on this site and many others and haven't found vary many good answers.

Thanks.

Expanding SWF AS2
How can I create an SWF that expands over the rest of the html content when I roll over it (popular in advertising banners right now. Example: the crafts man banner at http://my.yahoo.com/).

What is this employing besides just the swf, dose this use java of something else to allow it to expand over other content?

If so where can I find out more on how to do something like this?

I have looked on this site and many others and haven't found vary many good answers.

Thanks.

Expanding Ads--
I've been looking everywhere to find out how to make expanding flash ad's such as the one that can be found on
http://www.cbs.com/

also the one that is found on

http://www.informationweek.com/news/...leID=177102947
in the top right corner of that page

Are there any tutorials on this topic? I searched but came up with nothing.

Help With MC Expanding
I want to create a movie clip, then place a text field inside.

The movie clip is just a black rectangle, with a simple colored outline, but when I place the text field inside, I want the movie clip to expand as long as the text is.

I tried setting the width of the movie clip to the width of the text field, to no avail??

Any ideas?

How To Break Up Text When Calling Text Into A Dynamic Text Field
I am calling test in from a .txt and was wonding if there was a way to have a page with a bunch of information and have it obly call an indevidual paragraph or sentance depending on what i want it to ask.


ThnX

Load Text From A Text File Into A Dynamic Text Field
I'm trying to load text from a text file into a dynamic text field. The text field is on the "blog" page of the website. When I test my movie, the first time I go to the blog page, the text from the external text file (AND the CSS styles) show up fine. But when I click from the blog page to go to the "profit calculator" or "contact" pages and THEN click to go BACK to the blog page, the blog page animates back in, and right as the animation ends, the text on the blog page suddenly disappears and won't come back. PLEASE help me figure this out!

Dynamic Text Box / Xml Content - Text Is Too Close To Border Of Text Box
Hi,

If you take a look at my flash movie you will see that I have draggable movie clips, which contain dynamic text fields. These text fields contain text drawn in from a simple xml document.

The problem I have is that the text in the text fields is hedged right next to the border of the autosized text box. This makes them look untidy and in the worst case difficult to read. I wonder how I can add some margin to the left and right of the text to fill in some space.

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.swf

http://www.nottingham.ac.uk/home/ccz...AndDrop3.1.fla
(you also need the xml doc at : http://www.nottingham.ac.uk/home/ccz...scriptions.xml )

The code which formats the text boxes is:

with (main["dragAct"+i].dragActText) {
text = actText[i+1];
background = true;
backgroundColor = "0xe2e2e2";
setTextFormat(myFormat);
autoSize = "center";
border = true;
borderColor = "0x666699";
}

my text formatting looks like this, and you can see that I have tried to use leftMargin / rightMargin but these properties don't seem to work:

var myFormat:TextFormat = new TextFormat("Tahoma", 12);
myFormat.leftMargin = 20;
myFormat.rightMargin = 20;
myFormat.bold = true;

Any suggestions most welcome.

Thanks

Free Flash Source For Dynamic Slideshow With Automatic Thumnbails And Dynamic Text?
Is there any free flash source for dynamic images slideshow with automatic thumnbails and dynamic text / caption just like the one here:
http://images.businessweek.com/ss/06.../slideshow.htm
or this one:
http://www.clubparis.net/gallery

TIA

Dynamic Vars, Dynamic Paths Using Variables And External Text Files
Hi there,

first off, apologies for the long post, but its a tricky problem to explain... and on my first post too! (sorry )
Im have a bit of bother with flash calling variables from a text file, and using them to make paths to other variables, and to control the amount of time a duplicate clip occurs. The first of these 2 problems is this:

Im loading a text file "content.txt" into _root. (this works fine)
it contains the variables:

webclipcount=2
&webhenry=hello hello
&webbutton01=henry

on the main timeline I have this button

on(press){
sectiontitle="web"
clipcount=webclipcount
}

there is a text box on the main timeline with variable name of bodycopy.

on a clip on the main timeline I have this;

onClipEvent (enterFrame) {
if (num< _parent.clipcount) {
duplicateMovieClip(thebutton, "button"+depth, depth);
this["button"+depth].name = _parent[_parent.sectiontitle+"button"+num];

this gives button01 the name henry- this works.

on the duplicated clip I have these actions:

on(mouseDown){
_parent._parent.bodycopy=_parent._parent[_parent._parent.sectiontitle+this.name]
}

so we end up with a path like:

_parent._parent.bodycopy=_parent._parent.webhenry

and it in turn should make the textbox on the main timeline contain "hello hello"

but it doesnt.

also for the duplicating clip, unless i use:

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it wont work either. it seems neither can be dynamic/ pulled from the text file. (well, i can get them to work!)

If I use direct paths like:

on(mouseDown){
_parent._parent.bodycopy="bloody hell it works!"
}

and

onClipEvent (enterFrame) {
if (num< 2) {.....
<snip>

it works, but not if they are dynamicly set from the txt file...
Anyone care to shed some light onto this? its doing my head in!
thanks in advance or the help.

cheers,

chris

Expanding A Square
Hey, I'd like to have the out line of a square (which will act as a mask) expand (technically keep the top of the square in one spot while dragging the bottom part of it towards the bottom of the screen. I'm not sure how I would do this, also, would it be best to make the square a graphic or image?

thanks
Tyler

Expanding Boxes
I have these boxes(4)lined up next to each other,each are a different colour and about 1 inch thick. With 4 buttons to the left of them(one for each box). I would like it so when you click the button one of the four boxes expands over the other boxes so it will just be one big box. I tried a bunch of differnet things all last night and today, and now I come to the community for help. I tried using tellTarget and then just bringing the alpha down to zero and stuff like this but it did look like the way I wanted it to.

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