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




Duplicate Text Feld, New Text



This should be simple... I want to create a loop to create a duplicate text field. Each field calls on a numbered vairable (or array element) for its data to display. No matter how I write this, all duplicates display the current value for the currently created text field. Does anyone know how to do this?



FlashKit > Flash Help > Flash Newbies
Posted on: 04-13-2006, 12:48 PM


View Complete Forum Thread with Replies

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

Duplicate MC With Different Value For Dynamic Text Box
Hi all

just a quickie

I have the following code and am duplicating a movieClip with the duplicateMovieClip command.

for (n=1; n<=11; n++) {
duplicateMovieClip (controller, "controller"+n, 1+n);
setProperty ("controller"+n, _x, 10*n);
setProperty ("controller"+n, _y, 20*n);
}

The movieClip "controller" has a dynamic text box that i want to repopulate every time the clip is duplicated, with a different string.

I am trying to create a menu system

So, say i want have all clips lined up underneath each other, i can set the x and y position of each duplicated clip no problem.

I want the dynamic text field of the original instance to read "Option 1", Option 2", "Option 3".....etc, for each corresponding instance

What would be the last line of the duplicate Movieclip command to acheive this, somethin like

display="Option" + n ?????

this does not apear to work

any help would be greatly appreciated.

Help With Duplicate Mcs In Text Effect
Hi everyone, please help me with this!

I am making a text effect which works out nicely, duplicating a movie clip with another movieclip inside which holds dynamic text which is replaced by the text I need to use. Everything works ok up to here. This is the script I use on the movie clip, located in the main timeline, 't' is the name given to the mc holding the other mc and the script, then 'letra' is the name of the mc within 't', holding the dynamic text, which is given the variable name 'letra':

onClipEvent (load) {
texto = "The text I need to use is this one";
nL = length(texto);
e = 8;
xI = -(nL/2)*e;
z = 0;
for (i=1; i<=nL; i++) {
letra.duplicateMovieClip("l"+i, i);
l = this["l"+i];
l.xF = xI+(e*(i-1));
l.xT = random(150)-75;
l.yT = random(100)-50;
l.letra = substring(texto, i, 1);
}
letra._visible = 0;
d1 = 150;
d2 = 100;
}
onClipEvent (enterFrame) {
for (i=1; i<=nL; i++) {
l = this["l"+i];
l._x += (l.xT-l._x)/10;
l._y += (l.yT-l._y)/10;
if (l._x<1 || l._x>-1) {
l.xT = random(d1)-(d1/2)+(l.xF*z);
l.yT = random(d2)-(d2/2)+(l.yF*z);
}
}
}


This works out perfect. Now my question. How do I make each of these duplicated movie clips, change its properties one at a time ( I want each one to grow in scale and fade slowly, one after the other)?? I've tried targeting the duplicated mc's from within the main timeline, by using a for loop, and it works, but I can't make the properties change progressivley (size and alpha change in one step in every mc at the same time, not slowly one after the other)...... PLEASE HELP ME!!!!!!!!!!!!!! Thanks guys!

Jerome

Help Me Please...duplicate Mc Text Effect
Hi everyone, please help me with this!

I am making a text effect which works out nicely, duplicating a movie clip with another movieclip inside which holds dynamic text which is replaced by the text I need to use. Everything works ok up to here. This is the script I use on the movie clip, located in the main timeline, 't' is the name given to the mc holding the other mc and the script, then 'letra' is the name of the mc within 't', holding the dynamic text, which is given the variable name 'letra':

onClipEvent (load) {
texto = "The text I need to use is this one";
nL = length(texto);
e = 8;
xI = -(nL/2)*e;
z = 0;
for (i=1; i<=nL; i++) {
letra.duplicateMovieClip("l"+i, i);
l = this["l"+i];
l.xF = xI+(e*(i-1));
l.xT = random(150)-75;
l.yT = random(100)-50;
l.letra = substring(texto, i, 1);
}
letra._visible = 0;
d1 = 150;
d2 = 100;
}
onClipEvent (enterFrame) {
for (i=1; i<=nL; i++) {
l = this["l"+i];
l._x += (l.xT-l._x)/10;
l._y += (l.yT-l._y)/10;
if (l._x<1 || l._x>-1) {
l.xT = random(d1)-(d1/2)+(l.xF*z);
l.yT = random(d2)-(d2/2)+(l.yF*z);
}
}
}


This works out perfect. Now my question. How do I make each of these duplicated movie clips, change its properties one at a time ( I want each one to grow in scale and fade slowly, one after the other)?? I've tried targeting the duplicated mc's from within the main timeline, by using a for loop, and it works, but I can't make the properties change progressivley (size and alpha change in one step in every mc at the same time, not slowly one after the other)...... PLEASE HELP ME!!!!!!!!!!!!!! Thanks guys!

Jerome

Duplicate/copy Text?
the user is typing into an input box,

i want the data they are typing into one box to automatically appear in another box beasie it? so it looks liek they are typing into 2 boxes at the same time! u get me?


thanks
Slinky


one box is called name and the other is nam

Duplicate Text Field?
What is the text field equivalent of MovieClip.duplicateMovieClip?

Is there even one? I can't find it.

Duplicate Dynamic Text (XML)
I am trying to create somenthing like this, I have mine MC with my dynamic text, I want that it only goes duplicating when I will be moving in the .xml file, looks at what I have so far, it it duplicates the MC and only it shows only 1 text from my .xml file.

AS

Code:
var meuXML:XML = new XML ();
meuXML.ignoreWhite = true;
var mostrarTexto = 0;
nomeProduto = [];
meuXML.onLoad = function (okay) {
if (okay) {
var rootConteudo:XMLNode = this.firstChild;
for (var i = 0; i < rootConteudo.childNodes.length; i++) {
nomeProduto[i] = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
}
mostrarTudo ();
}
};
meuXML.load ("produtos2.xml");
//
function mostrarTudo () {
duplicateMovieClip ("nomeProduto_mc", "nomeProdutos_mc", this.getNextHighestDepth ());
nomeProdutos_mc._x = 0;
nomeProdutos_mc._y = 0;
nomeProduto_mc.nomeProduto_txt.text = nomeProduto[mostrarTexto];
}


XML

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<conteudo>
<dados>
<nomeProduto>Produto nș 1</nomeProduto>
</dados>
<dados>
<nomeProduto>Produto nș 2</nomeProduto>
</dados>
</conteudo>


Thanks, and sorry about my English.

Duplicate Dynamic Text (XML)
I am trying to create somenthing like this, I have mine MC with my dynamic text, I want that it only goes duplicating when I will be moving in the .xml file, looks at what I have so far, it it duplicates the MC and only it shows only 1 text from my .xml file.

AS

Code:
var meuXML:XML = new XML ();
meuXML.ignoreWhite = true;
var mostrarTexto = 0;
nomeProduto = [];
meuXML.onLoad = function (okay) {
if (okay) {
var rootConteudo:XMLNode = this.firstChild;
for (var i = 0; i < rootConteudo.childNodes.length; i++) {
nomeProduto[i] = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
}
mostrarTudo ();
}
};
meuXML.load ("produtos2.xml");
//
function mostrarTudo () {
duplicateMovieClip ("nomeProduto_mc", "nomeProdutos_mc", this.getNextHighestDepth ());
nomeProdutos_mc._x = 0;
nomeProdutos_mc._y = 0;
nomeProduto_mc.nomeProduto_txt.text = nomeProduto[mostrarTexto];
}
XML

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<conteudo>
<dados>
<nomeProduto>Produto nș 1</nomeProduto>
</dados>
<dados>
<nomeProduto>Produto nș 2</nomeProduto>
</dados>
</conteudo>
Thanks, and sorry about my English.

Duplicate Button But Not Text
If someone can help, I would really appreciate it. I want to duplicate a button 2 times to put in place of 2 current buttons (because they are messed up) but when I change the text on the copied button, it changes it on the original. I was trying to figure out what I was doing wrong. Please any help as I am totally stumped and need to finish this asap. Thanks.

Duplicate Dynamic Text (XML)
I am trying to create somenthing like this, I have mine MC with my dynamic text, I want that it only goes duplicating when I will be moving in the .xml file, looks at what I have so far, it it duplicates the MC and only it shows only 1 text from my .xml file.
AS

Code:
var meuXML:XML = new XML ();
meuXML.ignoreWhite = true;
var mostrarTexto = 0;
nomeProduto = [];
meuXML.onLoad = function (okay) {
if (okay) {
var rootConteudo:XMLNode = this.firstChild;
for (var i = 0; i < rootConteudo.childNodes.length; i++) {
nomeProduto[i] = this.firstChild.childNodes[0].childNodes[0].firstChild.nodeValue;
}
mostrarTudo ();
}
};
meuXML.load ("produtos2.xml");
//
function mostrarTudo () {
duplicateMovieClip ("nomeProduto_mc", "nomeProdutos_mc", this.getNextHighestDepth ());
nomeProdutos_mc._x = 0;
nomeProdutos_mc._y = 0;
nomeProduto_mc.nomeProduto_txt.text = nomeProduto[mostrarTexto];
}
XML

Code:
<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<conteudo>
<dados>
<nomeProduto>Produto nș 1</nomeProduto>
</dados>
<dados>
<nomeProduto>Produto nș 2</nomeProduto>
</dados>
</conteudo>
Thanks, and sorry about my English.

Duplicate Text Field + Var?
Hello,

I was wondering if it's possible to duplicate a dynamic text field and its variable and increment its variable?

For instance i'd have a mc containing a text field "txt1" and its variable "txtvar1". Now i'm going to load from a ASP page a number, let's say Nb=4. Is it possible to duplicate the text field "txt1" Nb times tohave:

txt1 + txtvar1
txt2 + txtvar2
txt3 + txtvar3 ....


?

TiA

Duplicate Movie Clip With Different Text
Hi . I have created a movieclip, and converted to button in the edit. in that using a text box. while creating duplicate movie clip i need different text in that.

I am trying to create chat module. in that if the user enters into the name. all the names should be clicable meanse button type.

Thanks in Advance.

Duplicate Dynamic Text Problem
I am duplicating a dynamic text box with the variable named text1:

duplicateMovieClip(_root.mc1.dyntxt, "dyntxt"+x, x);

works fine, shows up in the property inspector ok, fine, the problem is setting the variable text1,
the code i am using is:

_root.mc1.dyntxt[x].text1=txtvar;

nothing is ever assigned to the text1 variable, even though txtvar is defined.

Any help would be greatful.
Jeff

Duplicate Text Scrolling Window
Hi,

Extreme newby here, tried searching the forum to see if this has been asked but it kept giving me some craziness, anyway, appreciate any help I can get.

I have a movie clip that scrolls text, got it working, contains a bunch of other mc's to make it work. I need to duplicate it but change the text. If I try to make a copy and change the name, any changes I make to it applies to the original, which I don't want.

I've done this on other mc's I have on the site without any problems, not sure what I'm doing wrong.

Thanks

Duplicate Movieclip With Text Boxes
Ok, heres my situation: I have an XML document that contains real estate info; image, price, town, type.

I want to display that info in an ad, with the the corresponding text info next to the image. No problem if I have two entries in the XML doc, but I can sometimes have between 1 and 5 entries.

So, how can I get all that info to display dynamically for each xml node? I was thinking about doing a duplicate movieclip, but how would I duplicate all those text boxes to load in the data from the XML doc?

Should I make one movie clip with that has the initial layout, then duplicate that original clip with dynamically named text boxes for each individual node? If so, how?

It's been a couple years and I'm just diving back in...head first

Duplicate Movie, Change Text
I created a movie that has text. I see that if I create different instances of this movie and change an instance or change it from the library it changes all of them. At least that's what's happening and that makes sense. I want to duplicate the movie but have different text. I duplicated it in the library and created an instance of the duplicate version. If I change the text in the duplicate or in an instance of it, it changes the original in the library and all instances of it -- all instances both original and duplicate. All I want to do is end up with 2 movies that are essentially the same except one line of text is different. I obviously don't want to recreate it each time I need it and I'm going to need several versions of it.

Duplicate Obj With Text Field That Goes Missing
for (i=0; i<50; i++) {


duplicateMovieClip(square, "square"+i, i);

}

this works fine but only one object holds the text field. the others don't have it. why is that? do i have to duplicate more text field

How To Duplicate Dynamic Text Field
Can Any tell how can i reuse a dynamic text field

here is what i am trying to do


ActionScript Code:
this.createEmptyMovieClip("rowTxt",1)
rowTxt._x = 500
rowTxt._y = 500
rowTxt.lineStyle(3);
rowTxt.moveTo(0,0);
rowTxt.beginFill(0xFF0000);
rowTxt.lineTo(150,0);
rowTxt.lineTo(150,150);
rowTxt.lineTo(0,150);
rowTxt.lineTo(0,0);
rowTxt.endFill();
rowTxt.createTextField("mytext",1,0,0,100,100);
rowTxt.mytext.border = true;
rowTxt.mytext.text = "hthhystrrh";
 
 
rowTxt.duplicateMovieClip("rowTxt2",20);
rowTxt2._y = 200
rowTxt2._x = 200
trace(rowTxt2._x)


it shows the red box duplicated but not the text field inside it

Thanks

Duplicate Text Field Via Actionscript?
Is it possible to duplicate a text field via actionscript? I have a gallery with many pictures so I don't want to make a whole heap load of symbols ... I have the following but it just counts up to 9:


ActionScript Code:
for (i=0; i<10; i++) {
    tt.text= i;
    tt.createEmptyMovieClip(tt, i);
    trace(i);
    //tt._x = tt._x + (5+i);
}


Sandman9

Duplicate Movie Clip + Dynamic Text
Hi there,

Can u please check the code for me? It returns wrong at the moment...


PHP Code:



var i;
var total = 5;
for (i=0; i<total; i++) {
    duplicateMovieClip(_root.txtMC, "txtMC"+i, i);
    with (eval("_root.txtMC"+i)) {
        _y += 20*i;
        txtField="This is line " + i;
    }
}




I would like to get this format....

this is line 0
this is line 1
this is line 2
this is line 3
this is line 4


Cheers

Help Needed With Duplicate Buttons To Text Fields..
ok guys im trying to make a faq section for a site, i have set up this (very basic) fla, bascially i need it to be like an faq section on any website, a list of questions(buttons), that link through to a txt box that will display the answer to the question.

I'm new to using xml in flash, and ive generally used txt files for loading in dynamic content, but now im contending with a content managment system that outputs xml ( like the stuff contained in the zip)

so basically i have the variables 'faq_question' and 'faq_answer', i need to duplicate the button/question clips and link them through to the answer text box...

i'm lost in a content managed world, anyhelp would be appreciated.

Flash MX Duplicate Dynamic Text Field
Here's one that's got me stumped. Here goes:

I am creating an empty movie clip, and then dynamically creating text fields within that movie clip, the text being read from XML files. Once all the text has been read in and the empty movie clip has been populated with content, I am trying to duplicate the movie clip, so that I have two movies clips with text in them.

duplicateMovieClip(_root.content, "mirror_content", 2);

However, when I duplicate it, it gives me a completely empty movie clip. The new movie clip has no text fields within it at all. What am I doing wrong? Is there a workaround?

Duplicate Content In Dynamic Text Boxes?
what's the best way to get one dynamic text box to load the same text from another dynamic text box, so the content is duplicated?

i have two variables txt_msg and txt_msg2, each in a movie clip with a different instance name.

also, the text is loaded from an XML file, so i don't want to load it in twice, just copy the contents already loaded.

Duplicate A Movieclip That Has A Text Field Inside
hey there

i have a movie clip with a text field in it (as a child in it)

when i duplicate the movie clip using a loop I output the loop variable in the text (1,2,3.........)

but half way duplicating i need 2 rotate my movieclip 90 degrees & here goes the problem :

my text field 4 some reason stops appearing

when i removed the line that rotates the movieclip it worked in alla duplicates.

what can i do ???

PS: a thought came 2 me right now: maybe i should mk the duplicates 1st then rotate the ones i wanna rotate.

I'll try it & C what happens

thx 4 ur help & 4 my thought
bye

Variable Text In A Duplicate Movie Clip
<Newbie Alert ON>

I have a movie clip that contains a couple of other movie clips. Inside one of these inner clips is another movie clip which is really only a Dynamic text field. What I would like to do is duplicate the original movie clip and then set the variable text accordingly. when I run my code through the debugger I can see the inner variable text field in the Original movie clip (viewed in the little hierarchy of my file), but the inner variable text field does not show up for any of the newly duplicated clips.

I found a reference in this forum that I think was implying that this was normal, but I am hoping that I was reading it wrong. Can I do what I describe above? If not, can someone explain why Flash works this way? I am trying to implement a MenuBar function where the values displayed on the bar are not necessarily predetermined at design time.

My work around will be to manually create and set all the necessary instances of my menu item clip. Is there another way?

Thank you in advance.

Duplicate Movie Clip Dynamic Text
I have a movieclip with three separate dynamic text boxes nested inside. I want to duplicate this movieclip (an unidentifiable number of times) and change the text (via as or a .txt file) for all three dynamic text boxes each time the clip is duplicated. These are the elements I'm trying to use, including the hierarchy of how far down they are from my main timeline:

Movie Clip that I want to Duplicate:

_level0._parent._parent.mc (Instance name: newsitem)

Dymanic Text Fields that I want to populate upon duplication:

_level0._parent._parent.mc.textbox1 (var name: date)
_level0._parent._parent.mc.textbox2 (var name: title)
_level0._parent._parent.mc.textbox3 (var name: item)


I was trying to adjust the following code, from another US post, to make this all happen but my movieclip isn't doing anything in response. I have this code pasted on an as layer above my mc:


[as]

duplicateMovieClip(this.newsitem, mc, 2);
//set the initial position of the duplicated clips
var my_x = 114;
var my_y = 121;

//create an Array to hold the values you want to send
//to the dynamic text fields
var values = new Array("Button 1", "Button 2", "Button 3");

//duplicate the mc using a loop
//this will loop for the length of the array that we used
//to set the values of the dynamic text field
for (var j=0; j<values.length; j++){

duplicateMovieClip("this.newsitem", "mc" + j, j);
_root["mc"+ j]._x = my_x;
_root["mc"+ j]._y = my_y + (j * 25);

// here is where we send the value to the dynamic text field
_root["mc"+ j].text = values[j];
}

[as]

[help] Dynamic Text Box Drop Shadow With Duplicate Instances
Hey Flashers,

I'm having a simple problem.

I have duplicated a dynamic text box to create a drop shadow effect.
Both dynamic text boxes have the same instance name.

Unfortunately when the .swf is published only one set of the double instance is instantiated and displayed. Therefore now shadow effect is created.

What is my solution? I don't want to have to redo my AS to incorporate another instance to do the same thing. I think it would be redundant.

Any ideas?


ZeroKuhl

Duplicate Movie Clip + Create Text Field
hi
i want to create a list of clips with duplicateMovieClip(), then create textField in them; this is the action but it doesn't work:
why?
thnx
mark.

this.createEmptyMovieClip("mcArea", this.getNextHighestDepth());
this.createEmptyMovieClip("mcAgenzia", this.getNextHighestDepth());
drawRectangle(mcArea, 0, 0, 100, 7);
drawRectangle(mcAgenzia, 0, 0, 100, 7);
function drawRectangle(mc:MovieClip, x:Number, y:Number, w:Number, h:Number):Void {
mc.beginFill(0xff0000);
mc.moveTo(x, y);
mc.lineTo(w, y);
mc.lineTo(w, h);
mc.lineTo(x, h);
mc.lineTo(x, y);
mc.endFill();
}
//
this.mcArea._x = 0;
this.mcAgenzia._x = 200;
this.mcArea.createTextField("ar", this.getNextHighestDepth(), 0, 0, 100, 20);
this.mcAgenzia.createTextField("ag", this.getNextHighestDepth(), 0, 0, 100, 20);
//this.mcArea.ar.text = "****";
//this.mcAgenzia.ag.text = "you";
for (i=1; i<=10; i++) {
duplicateMovieClip(this.mcArea, "mcArea"+i, this.getNextHighestDepth());
duplicateMovieClip(this.mcAgenzia, "mcAgenzia"+i, this.getNextHighestDepth());
eval("mcArea"+i)._y = i*10;
eval("mcAgenzia"+i)._y = i*10;
trace(eval("mcArea"+i).getDepth());
eval("mcArea"+i.ar).text = "****";
eval("mcAgenzia"+i.ag).text = "you";
eval("mcArea"+i)._y = i*20;
eval("mcAgenzia"+i)._y = i*20;
}

No HTML Dynamic Text Fields In Duplicate Movie Clips?
I can't seem to get dynamic text fields in duplicated movie clips to read HTML... They just omit that data. When I turn off HTML on the field, it prints the HTML data in the field. But when I turn HTML on, it just omits the tags and everything in them.

Any ideas? Thx

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.

Help With Text Fields And Inputting Text From External Text Files
help with text files and paths

i need some help with input text field and text files.

i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:

onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}



and the code on the frame action is:

fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();



i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using

loadVariablesNum ("text.txt", 0);

placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.

should the load variable be on a frame actions or on a button action and whats the path to my input text field???

any help appreciated - as its driving me mad.

thanks

eskymo

TEXT CHANGING, When I Copy And Paste Text Scroller, And Add New Text......?
here's the problem:

I have a text scroller I took from a fla. file on here.
on my site, I wanted to just change the text. in the text scroller, and
place it in diffrent sections of my site a number of times with diffrent text.

I do not have a problem, copying and pasting the scroller.
But when I change the text from one section, to the next, it will make all the text the same.

If I copy the scroller and paste it somewhere else, swap the text it will change all to that last text I entered.

I tried, typing one section's text. Then copy/pasting the scroller, and putting new text, and converting that text to a symbol (graphic). Hoping it would work but had no LUCK.

This is huge and i need help, considering I am a newbie, there has got to be away this can be accomplished so I dont have to build seperate text holders/scroller, for all 15 sections of my site.

Let me know..and thank you all so much.

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

Getting A Dynamic Text Box's Text From HTML-formatted Text?
Hey! You recognize me yet? I've got (hopefully) one last question for a while. Could somebody please tell me how do to get the text value of a text box with text that's formatted as HTML? ( it was formatted similar to "textBox.htmlText = "...";")

I tried "myVariable = textBox.htmlText", but it just gave me the formatting garbage it's using (<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="12" COLOR="#000000"></FONT></P></TEXTFORMAT>) without the actual text that my users see. I also tried "myVariable = textBox.text;", but it returned a blank variable.


Many thanks, me Flash bruthas
Furry

Dynamic Text, Loading Text From Text File
I have a large text file, full of, believe it or not, alot of text. When it loads into the textbox in flash, it cuts off after a certain amount of lines. How many lines does it cutt off at and if I can, how do I increase this? THanks

Loading Ext. Text Into Scrolling Text Box. Problem With Text? Help Please?
Hi,

I am hoping someone can help me. I am loading an external text file into a scrolling text box. I was able to get my box and buttons, scroll bar, etc to work correctly. However, I am having two other problems that I cannot figure out.

1) My text file that I am loading is several lines long (320 or so), however, when I test my movie only the first 20 lines of the text shows up. How can I make all of my text show up? I will be adding to this text file over time and adding updates to it. So the text will gradually have more lines added over time.

2) The 20 lines of text that is showing up is all double-spaced, while the text in my text file is single spaced. How do I make my text show up single spaced? I checked the paragraph settings of my text box and everything is set to zero. What can I do fix this?

I am using Flash 5.0 and I created my text in Metapad.

Thanks in advance to anyone who can help me out.

How To Add Text To Dynamic Text Field Where Text Cursor Is. Please Help
Hello,

How do you, if possible, can add text to a dynamic text field on where the text cursor.

Example:
| = text cursor
by pressing a button I want to add "How are you?" where the cursor is
____________________________________________
Hello
|
Bye
____________________________________________



Results:
____________________________________________
Hello
How are you?|
Bye
____________________________________________


Please Help!
Thank you in advance!

Trying To Pass Text From Form Text Field To A Flash Dynamic Text Field
Hi, I was hoping someone might enlighten me as to how/if I can do this...

Currently I'm using javascript which works fine to pass text from textfield A to textfield B:


Code:
window.onload=function()
{
document.forms.form1.shirtText.value=document.forms.form1.KitGroupID_16_TextOption_38.value
}
Is there a way to pass the textfield A text to a dynamic text input (flash) as I'd like to use the font embedding flash offers. I can make it work when loading a value from a txt file but I'm not sure how to access the value identified above as KitGroupID_16_TextOption_38 and make it appear in a dynamic input box. Eventually I might want to have 3 font choices for the user but I'd like to just see if I can get this working properly first.

Your help/advice would be greatly appreciated,

-Scott

One Text Box, Each Button Loads Different Text Into That Text Box
I was wondering how I would go about this...I have one text box and I want to have each button load different text into that text box for my webpage. How would I go about coding that so when I click on home it would load the text for the home page and when I click on contact it would load the text for the contact page.

Arabic Text (RTL Text) Containing English Text
Hi,

I am having difficulties in displaying English text within Arabic text without changing the sequence of the text.

Actual Text:
"القائمة" Menu إضغط زر

What the text is shown on Flash:
إضغط زر Menu "القائمة"

Anybody has any solution or work around solution?

Thanks!

Duplicating Text In One Text Input Box To Another Text Box
I have 3 text input boxes in one scene.
I want the user to type his name into the first box. When a button is clicked the user's name goes into the second box.
A new user comes along, and types his name into the first box. After clicking the button, the new user's name is moved to the 2nd box, while the name that was in the second box, moves into a third box.
I can get the first action to occur (user's name into 2nd box after clicking button) but I can't get the 2nd name to move into the third box.
It is just making me crazy. Any ideas are much appreciated!!

Duplicate Movieclip, Drag Duplicate, Leave Original Behind
Hello all,

I have been searching frantically for an answer to this. I know it has to be easy....

I want to duplicate a movieclip on press and also drag the duplicate, leaving the original behind. I've attached a sample of what I'm doing. Does anyone have any ideas? Is there a way to target the duplicated movieclip to drag that? And leave the original in it's original location?

Any help, guidance, nudging would be greatly appreciated. I've been trying to figure this out for hours.

Thanks,
jessicuh

How To Make Flash Movie Read Text From A HTML Text Box In Current Page
I want to have a flash movie on an html page. I want to read the text from a text box in the parent html page.

I presume action scripting is the way to do it.

I am using flash 5

Please help.

Dynamic Text Box Jumping To A Section Of Text File Based On Date Stamp
I am VERY new to Flash MX (version 6) and need some help.

I want to build a text file with different messages that are listed/identified by a date stamp, and then have a flash program to display these messages based on whatever the current date is.

Is this possible? How do I build the text file? Do I need separate text files for each message? What ActionScript code do I use to identify the current date, and then display the appropriate message with the current date.

Any help, tutorial or guidance is appreciated. Thanks!

External Text; Html Text And Embedding Fonts Question - Probably A Quick Solution
I've been reading every post on this that I can find, and so far, I have not stumbled on the solution.

I have a dynamic text box and a text box variable. I load an external text file into the variable and then load the variable into the dynamic text box. The file that gets loaded changes via different buttons pressed. That's working just fine.

The "real" problem is the double line breaks you get when loading in external text. The only way I have found, so far, to solve that is to set the text box to use htmlText and then use the myText.condenseWhite = true; function. That works also. BUT, when set to render text as html, I can no longer embed the fonts. If I try to embed the fonts, the text no longer appears. If the fonts are not embedded, they look bad.

Is there a simple, or not so simple solution? I need very clean looking text that does not have double spaces between lines. Here is a bit of the simple code I'm using. This is attached to a button.


Code:
on (press) {
Spec_txt.autoSize = "left";
Spec_txt.border = true;
Spec_txt.multiline = true;
Spec_txt.wordWrap = false;
Spec_txt.html = true;
Spec_txt.condenseWhite = true;
//Spec_txt.embedFonts = true;


myData = new LoadVars();
myData.onLoad = function(){
Spec_txt.htmlText = this.content;
};
myData.load("parafix.txt");

}


I've had to comment out the embedFonts attribute. When it is enabled, the text does not show.

Thanks for the help.

Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.

Link

In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:

_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;


Thanks so much!

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