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




Masking And Dynamic Text Fields



Ok...I'm not sure if I'm gonna explain this right but here goes...

on my root timeline, I have some actionscript:

Object.prototype.toName = "My name";
Object.prototype.introMessage = "This is a message";

(i'm not sure how I got this Object.prototype thing in my script in the first place, but it seemed to work for me at the time)

I also have a empty movie clip on my root timeline called "blankMovie"

The only thing in the MC is some actionscript on a layer:

loadMovie ("ecard4.swf", "");

The 'ecard4.swf" file is a 450 x 300 movie with some dynamic text fields, "toName" and "introMessage". Now the way the movie is constructed, I have some animation starting off the side of the movie and ending on the other side of the movie. When I run my file, it loads the external movie (ecard4.swf) and it shows the symbols that begin outside the clip. I want it bleed off the edges. So what I decided to do was to make a mask on the root timeline the same size as my inported movie. So now when I run the file, the movie is masked...but now my dynamic text boxes can't be seen.

Can somebody help?? I hope this isn't too confusing...

Jiffy Loop



FlashKit > Flash Help > Flash ActionScript
Posted on: 01-08-2002, 02:04 AM


View Complete Forum Thread with Replies

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

Dynamic Text Fields And Masking
Hi friends!!!
Guys today i m stuck with one problem which is :
I have made a Movieclip with some dynamic text fields which are getting values from a text file.I have animated this
movieclip by script i.e "this._y++;".And Now i want to mask this clip.But this masking is not happening and this masking happens when i use static text fields.Please give me an idea to figure out this problem.
Bye..
Aman.

Masking Dynamic Text Fields
This one has got me completely stumped!

I have a series of mc's that each contain a dynamic text field set to the variable label, and called label_txt. I am also using a mask over the whole movie that I drew frame by frame.

For some reason, in the debugger, I'm getting a bunch of copied instances of a random text box each time the mask animation plays, and I am unable to set the variable label in the text boxes inside each of those mc's.

Does the mask being drawn frame by frame have anything to do with this problem?

Everything is on the stage from frame 1, and the actionscript that sets the variables is in a function on the first frame, and I cannot for the life of me set any of the variables in those movie clips! I can access them , but they won't change.

If this makes any sense, please let me know if you have any ideas,

thanks,
dave

Masking Dynamic Text Fields
I was wondering if it is possible to mask a target that contains a .swf that houses a dynamic text field. Im having problems with masking the dynamic text field for scrollbar puposes. I have to use Flash 5.
Anybody??

"dieing slowly......."

Masking Dynamic Text Fields
is it possible, whenever i try to nothing shows?

Masking Dynamic Text Fields
Does anyone know how to apply a mask to a dynamically loaded text field?

I have tried but the textfield doesn't appear when I publish the movie. It seems that you can't mask dynamic textfields at all.

Masking Dynamic Text Fields
Is there a way to mask dynamic text fields?

I made 2 movieclips on 2 different layers, the lower clip containing a dynamic text field. I attempted both design-time masking with layers as well as run-time masking with the setMask() method, but the dynamic text field still bleeds through..

Mike
Frustrated Newbie Flash User

Masking Dynamic Text Fields
is there a way to mask dynamic or input text fields? It doesnt seem to be working for me.

Masking Dynamic Text Fields And Embedding Fonts
Hi All,

I have an xml file and css file that I'm binding to a dynamic textfield. It works fine and looks great. I wanted to add a text scroller which requires the textfield to be masked...and I tried this, but the text ended up invisible. I know its there because i can copy and paste from the flash and see it.

I tried embedding the fonts (that are called from the CSS), but this still hasn't helped. Any gurus out there run into this in the past and have solutions to it?

Masking A Movie Clip Containing Multiple Dynamic Text Fields
I have a containiner mc with multipe mc's inside. each of these mc's is being used as a button and contains a dynamic text field. all of this is created dynamically. the effect being that i have a list of names loaded from an external file. the user can click on a name and access more info. everything is fine so far but now i'm trying to make this list scrollable. I want the mask so I can define the scroll window area. i have tried using setmask. this makes t so the mc-buttons outside the mask are not functional but they are still visible.

any ideas here? thank you to all who can help.

the following is the script used to make the buttons.

for (this.i = 0; i < directors.length; i++){
while (load_done == false) {
directorname = directors[i];
this.director_name_container.createEmptyMovieClip ("directors"+i, i + 4)
this.director_name_container["directors"+i].createTextField("director",1,0,0,200,20);
this.director_name_container["directors"+i].director.variable = "name";
this.director_name_container["directors"+i].director.border = false;
this.director_name_container["directors"+i].name = directorname;
this.director_name_container["directors"+i].director.setTextFormat(myformat);
this.director_name_container["directors"+i].director._y = 0 + inc_y;
this.director_name_container["directors"+i].director._x = 0;
load_done = true;
_global.numdirectors++;
}

inc_y = inc_y + 20;
load_done = false;
}

Text Fields And Masking Movies
simple problem. if i use a movie to mask another one that has text fields in it - variable text - why are those fields not showing? they show fine without the mask layer....

thanks...

Text Input Fields, Under Masking, Text Not Visible
I'm not sure if this is true..
but that's what I've come to the conclusion.?

when I use a text input field, for an email submit form..
if I put a masking layer on top of the text input layer..
the input field is visible, but when you type in it, the text is not..

Is there any way to prevent this from happening?

XML Loading, Dynamic Buttons, Dynamic Text Fields...
My last thread kind of died, I guess, so here's another one that I hope will get me some help; it has an updated FLA attached and what I think to be some better descriptions of my problems... I know I'm totally indebted to whomever will help, but this is an emergency and I need some timely advice.

so here's the FLA, XML, and some sample images: kirupaTest2.zip

1. I pretty much have the enlarged pictures loading I guess, which was my major problem before, but it doesn't matter because I can't get the code to "know" which of the dynamic thumbnails has been clicked (by "know", I mean return an index value, say 0 through 7 if there are 8 projects, that I can use to access that particular project in the array of 8 projects in the rest of the code)... So if the third movieclip thumbnail were clicked, I'd like "2" to come up somehow... I've tried this code, which is kind of lame, I know, based off of the idea of each of the thumbnail movieclips' names ending in their index number:

ActionScript Code:
//"this" is the button that was pressed; would return a string ending in//thumberMC_<number of whichever movieclip thumb was clicked>var: testString:String = this; //storing how many characters are in the string above...var: stringNumb:Number = testString.length;//using that value to take off the last string (hopefully the number)var: finalString = testString.charAt(stringNumb);


And that didn't work. (The code above was entered around line 71 in the layer "actions"; it's gone now)


2. An even bigger problem is I have some containers being drawn dynamically from height and width values pulled from an XML file. When I test the code that creates the objects using hard-coded values, it works fine; say if I put 481 in for the width and 375 for the height. But if I try to do it (sort of) dynamically like:


ActionScript Code:
var picHeight:Number = projects[5].bigPics[0].picHeightvar picWidth:Number = projects[5].bigPics[0].picWidth


it gets all screwed up; please try it for yourself in the supplied FLA. It's hard to describe what goes wrong; some things are drawn, and others aren't. I think it's because the objects are trying to draw before they have the data to draw with. This can be seen at lines 129 and 130.


3. Lastly, there's a dynamic textfield I'm trying to create that never shows up for some reason. Again, you could see in the FLA (in the "createDrawer" function around line 424).

If I can clarify, please let me know.

Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,

In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.

I have tried these macromedia solutions with NO success:

http://www.macromedia.com/support/fl...t_outlines.htm

http://www.macromedia.com/support/fl...namic_text.htm

http://www.macromedia.com/support/fl...haredfonts.htm

Does anyone have a working sample .fla they can send me?

-Jimmy

Dynamic HTML Text Fields Do Not Display Formatted Text?
Flashkit.com,

In Flash MX I am developing a lot of movies using dynamically populated html text fields. When the user does not have a font I used on their machine swapping happens on all dynamic and input fields. Only static fields display the corrent font. I make sure the text field properties are embedding the fonts. Still all of the dynamic html text fields do not display the formatted text. I have .fla samples I can email to anyone.

I have tried these macromedia solutions with NO success:

http://www.macromedia.com/support/fl...t_outlines.htm

http://www.macromedia.com/support/fl...namic_text.htm

http://www.macromedia.com/support/fl...haredfonts.htm

Does anyone have a working sample .fla they can send me?

-Jimmy

CSS In Dynamic Text Fields - Font-family Causes Text To Disappear
Hi,

I've set up my dynamic text field, and I can apply other CSS properties
successfully, but when it comes to the font-family property, the text
within the class just disapears.

Does anyone have any idea why this is happening? The problem occurs
even when selecting standard fonts such as arial.

Thanks,

Dylan James

Dynamic Text Fields In A Dynamic Menu
Anyone can advise how to give names(i.e home,service...) for textfields in a dynamic drop down menu instead of getting the original sequence (ie. text0,text1,text2) or button1,button2,etc...Help please

Dynamic X_ Propert For Dynamic Text Fields
Hello there.

I want to generate a dynamic text field in action scrip, but I want the length to dynamically adjust to suite the load of the external txt file. So when I change the text I won't have to adjust my text fields or action script.

Can this be done and if so, how would I go about doing it?

Thank you,

RSB

Creating Dynamic Text Fields Within Dynamic Mc
Im using this xml "data.xml":

HTML Code:
<XML>
<salesreps>
<rep>
<firstname value="Jon"/>
<lastname value="Doe"/>
<phone value="(555)999-9999"/>
<email value="jondoe@yahoo.com"/>
<description value="Description for Jon Doe."/>
<photo value="../LandAm/images/wes.bmp"/>
</rep>
<rep>
<firstname value="Jane"/>
<lastname value="Doe"/>
<phone value="(555)555-5555"/>
<email value="janedoe@yahoo.com"/>
<description value="Description for Jane Doe."/>
<photo value="../LandAm/images/robin.jpg"/>
</rep>
<rep>
<firstname value="adfkljasdfl;kj"/>
<lastname value="l;kajglaskdj"/>
<phone value="kdfjgls;dkjg"/>
<email value="dfgkljsdlg;"/>
<description value="kjdgfl;asdkgnl;sakdnglkj"/>
<photo value="../LandAm/images/nophoto.jpg"/>
</rep>
</salesreps>
</XML>
I want to generate a mc for each rep with 6 text fields containg the 6 values for eash rep. So for this xml there would be 3 mc's with 6 text fields in each. This is one of my first times really diving in to xml parsing in Flash.

I just need a push in the right direction. Thank you for you time!

Dynamic Text Fields
Hi there.....

Uhrm.....i just made a new site in Flash MX (look at it at www.dokuritsu.nl).....but.....i used some dynamic text fields. Now that isn't a problem, only i dont want ppl to copy paste the text.

1. Is there a posible way in Flash to disable this?
2. Is there a way to disable the right mouse click or as on some sites if you push the right mouse button fill in some own text?

Sorry for my bad english.

Thx ya all !

}_EsAD_{ AmunRa
the Netherlands

Dynamic Text Fields
I have scolling dynamic text fields, I size them to what I want. When I save the fla with MX the fields automaticly get resized to how much text is there, thus make the field nonscollable. How to I prevent this.
- Thanks for you help

Help With Dynamic Text Fields
1) First the easy part. I want to make a text field where I can enter some information like my name for example, and then have it later appear in my flash movie - how do I go about doing this?

2) Down the road, I want to be able to create a text field which allows for formatting (bold, font size, etc), which can then be imported directly into a flash movie from a website. Additionally, I want to be able to attach files as well - is this the sort of thing coldfusion is for?

Thanks for the help.

Dynamic Text Fields
Hello there!

wow it's been a while since i've been here, so i'd like to start things off with a question! ^_^

i'm working on this code for dynamic text fields... i got it working just fine, however i'm trying to make a loop and then build a new text field for the number of entities but i just can't get it to work...


Code:
_global.num_entities_ = 5;
if (_global.num_entities_ != 0) {
for (i=0; i<_global.num_entities_; i++) {
_Ypos = i*16;
_i = "_" + i;
_root.createTextField(_i, i, 0, _Ypos, 150, 16);
_i.border = true;
_i.borderColor = "0xFF0000";
_i.text = "Watson, i need you!";
trace(_i);
trace(_Ypos);}
} else {
trace("There are no Entity values.");
}
stop();
the problem seems to be with the "_i" as a name for the text field.. it just dosn't want to work...

anyone have any clues how to get around this or fix my poor code. ^_^

thanks a lot!

Dynamic Text Fields
I have another question for you genuis people. I have a dynamic text field, and need to change the text inside it on the push of the button. How would i go about doing this? Changing var property? if so, how would i do this?

Dynamic Text Fields
and why might this not display my formdata? any reason?

thestage.attachMovie( "text1", "textbox1", 6 );
myformat = new TextFormat();
myformat.font = "arial";
myformat.size = 24;
myformat.textColor = 0x000000;
myformat.bold = false;
myformat.italic = false;
myformat.underline = false;
myformat.url = "";
myformat.target = "";
myformat.align = "left";
myformat.leftMargin = 0;
myformat.rightMargin = 0;
myformat.indent = 0;
myformat.leading = 0;
myformat.bullet = false;
textbox1.textone.setTextFormat(myformat);
textbox1.textone.text = formData.textbox1;


and heres the scripting that collects the form data

function onClick() {
// create the object to store values
formData = new Object();
formData.textbox1 = "";
formData.textbox2 = "";
formData.textbox3 = "";
formData.logo = "";

// gather the data
formData.textbox1 = textboxes.box1.getValue();
formData.textbox2 = textboxes.box2.getValue();
formData.textbox3 = textboxes.box3.getValue();
formData.logo = logos.logochooser.getValue();

// output the results
gotoAndPlay( 16 );
}

Dynamic Text Fields
Want to create textfields dynamicaly. They will be used as url links. These change quite often so I want to read them from text file. The following code reads the variable then parses them into what is viewed and the links. When I debug this all the variables are correct but all I get is a blank screen. Been at this for 4 hours. I am out of ideas. Please Help TIA


loadlinks = new LoadVars();
loadlinks.load("links.txt");

loadlinks.onLoad = function(success){
textdepth = 1;
textx= 50
linkarray = loadlinks.link.split(",");

for(i = 0;i < linkarray.length ;i++){
currentlink = "link_"+i;
seperator = linkarray[i].indexOf("|");
viewpart = linkarray[i].substr(0,seperator -1);
linkpart = linkarray[i].substr(seperator + 1);
_root.createTextField(currentlink,textdepth,50,50, 300,100);
currentlink.html = true;
currentlink.htmlText = viewpart;
//-----------------------------------------------------
//apply style with TextFormat
linkstyle = new TextFormat();
linkstyle.url =linkpart;
linkstyle.target = "_blank";
link.text = viewpart;
link.setTextFormat(linkstyle);

textx = textx + 50;
textdepth = textdepth + 1;

}



}

Dynamic Text Fields
Im currently working with a document that contains dynamic text fields. When a button is clicked it fills in the correct information using variables. The problem that i am experiencing is that the font specified in the field looks to lose all anti aliasing when it is filled. This is impotant cause the dynamic field appears right after static text so they need to look similar.

Does anybody know why the text appears jagged in the dynamic field?

Using Dynamic Text Fields
Hello everyone! I've basically made a game that calls up random questions as well as random answers, which are all individual text files. that part of the game works well, as in whenever the relevant button is pressed, a random question comes up as well its associated answers. the problem i've got is writing the action script code for the buttons to choose the answers. how can i make the game go to another frame if the correct button is pressed? the buttons are placed over each of the answer dynamic text fields! HELP!

How To Do It ? Dynamic Text Fields
Hi friends,

I have one movie clip and it has 5 layers ,All the 5 layers has motion tween with dynamic text fields .the dynamic text field is same for all the layers but i want to display different text in each layers. how to do it .the variable is same for all the Dynamic text fields .

Please help me to do this

Thanx
Shan

Dynamic Text Fields
Is it not possible to change the look of a dynamic textfield? I would like to change the borders and backgroundcolor but I can't seem to figure out how to do it.

Is it possible?

Thanks

Help On Dynamic Text Fields
am trying to load two variables with one LoadVariables command does anybody know how to do this.

i have two text files named "codes.text" and "explanation.text"

am using the LoadVariables()
//to load the variables on the text file "codes" like this.

on(release){
myData = new LoadVars();
myData.load("codes.txt");

i have a comboBox named "codes" with the comboBox I set a variable named "ItemIndex" like so.

ItemIndex = codes.getSelectedIndex();
//this i used to get a the index number to used it to load the variables to the textfield i have on the stage, like this

myData.onLoad = function() {
if(ItemIndex == 0){
_root.displayArea.text = this.code1;
}
}
//now i would like to add the second file named "explanation.txt" to this handler but i dont know how to do this. can anyone help.

Dynamic Text Fields
Hi,

I'm using dynamic text fields that are loading the text from external .txt files. The problem is that, in some cases, the amount of text is bigger than text field area. I want to add a button that, when the user clicks it, he'll see the missing parts of the text. I know I can do that by breaking the text into different variables, but I would prefer to do that dynamically. Do you have any suggestions?

Thanks,

Joao Afonso

Dynamic Text Fields
hi i'm using a dynamic text field and want it to display certain text characters when relevant text buttons are pressed on my keyboard display, that i've created in flash. I need help with the actionscript code!??! anything you know would be much appreciated i assume i need to use an array??
(also not very experienced with actionscript/flash only know java so i apologise if this is a bit vague)

Dynamic Text Fields
I have several text fields that I change on my website daily. Currently I am changing them in my flash document then republishing it every time I make even the smallest change.

I have tried to make the text fields dynamic but it does not work!!

I have done some research and have read that dynamic text may not work in flash8, is that true and if so what is a work around.

Thanks!

Dynamic Text Fields
Hi!

So I have used dynamic text fields to load in variables from a .txt file.
They work out fine on the hard drive, but when uploaded to the next the
fields double space the incoming data.

Anyone know how to remedy this?

Thanks,

Michael

Dynamic Text Fields
Some Background: so I took over this project from a previous company. I was given flash ad files to reference for new ad files I am creating. The files are semi-complicated in that they have 2 text input boxes working independently of each other. One does one search and the other does another search. So the first task I had to do was to make the search buttons use the clickTAG format so they were trackable (the old versions I was given were not using this - all hardcoded URLs).

So in making this adjustment somehow I have broken the input field's (dynamic text) ability to make the initial text disappear. Basically these fields are set up so that the field label is in the text box and when the user clicks in the text box the label is supposed to disappear. It does this in the original SWF file that was created in an oler version of FLASH without the clickTAG included. I am stumped as I have adjusted for the movie level etc. and for some reason it still will not change the text in the input field from the title to being a blank input field when the user click on it. Is there an easy solution for this? I am reasearching this now but have not found anything yet that addresses this. thanks in advance for your help.

Dynamic Text Fields
How hard would it be to make a text field, in Flash, update as you type in a HTML text field? Or perhaps update with a HTML button. This is easy in Flash I know. Just wondering if it was possible with HTML.

Dynamic Text Fields...
Im making an animation that counts from 0% to 80% and stops at 80. can anyone help me out?

I want the dynamic text field to count up from 0 to 80.
just need help on the actionscript of it.

thx.

Dynamic Text Fields
Help please, someone!!!
On frame 1, I did a collision test on my clips with the hitTest function (there's about 10 clips which can be dragged and dropped onto a "target" clip) . When 1 clip hits another target one, the name of the clip is displayed in a dynamic text field.
Later on, ie some few frames later, I want to display again what was displayed on frame 1 without any action from the user. Moreover, the user can again drag and drop more clips, which should (I hope) add their names on the field.
So please how do I do both these things (ie: 1. display previous field content on another field in later frame and 2. make sure that the names of the clips are added to the text field ) ???
Many thanks. This is a new adventure for me and I've got THE Bug (and this is for an important Masters degree project I'm doing so I would be so so pleased if you could help!!)

Dynamic XML Text Fields
I'me trying to exstract text to populate named dynamic fields by parsing an XML into flash and looping through the nodes. Only thing is I don't know how to target a particular node and then pase the text inside that node to a dynamic text field

Can anyone help please....

I can get the last text from bullet node but the other 5 before that it loops through; heres is my xml code:
<?xml version='1.0' encoding='UTF-8'?>
<content>
<images>
<img main_src="images/sony111_1.jpg"/>
</images>
<content2>
<headline><translate><![CDATA[DSR-PD170P DIGITAL CAMCORDER]]></translate></headline>
<subheadline><translate><![CDATA[Ease of use]]></translate></subheadline>
<bullets>
<bullet><translate><![CDATA[1 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
<bullet><translate><![CDATA[2 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
<bullet><translate><![CDATA[3 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
<bullet><translate><![CDATA[4 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
<bullet><translate><![CDATA[5 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
<bullet><translate><![CDATA[6 In response for user feedback on the 150P model, Sony has designed the DSRPD170P with ergonomic improvements for long days in the field or studio.]]></translate></bullet>
</bullets>
</content2>

</content>



Heres my flash code:


en_son100=new xml();
en_son100.load("en_son100.xml");
en_son100.onLoad = findTheContent;
var passItOn="";


tellMeLoaded.textfieldDisplayArea = "I dont know yet";
tellMeParsingStatus.textfieldDisplayArea = "I dont know yet";
tellMeAreThereChildNodes.textfieldDisplayArea = "I dont know yet";
tellMeHowManyChildNodes.textfieldDisplayArea = "I dont know yet";


function findTheContent(){
for (var counter01 = 0; counter01 < en_son100.childNodes.length; counter01++){
if(this.childNodes[counter01].nodeName.toLowerCase()== "content"){
passItOn=this.childNodes[counter01];
trace("passItOn.nodeName="+passItOn.nodeName);
tellMeFirstLevel.textfieldDisplayArea = passItOn.nodeName;
}
trace("counter01="+counter01);
}
findTheContent2(passItOn);
}

function findThecontent2(contentLevel){
for (var counter02=0; counter02 <= contentLevel.childNodes.length; counter02++){
if(contentLevel.childNodes[counter02].nodeName.toLowerCase()=="content2"){
passItOn=contentLevel.childNodes[counter02];
trace("passItOn.nodeName="+passItOn.nodeName);
tellMeSecondLevel.textfieldDisplayArea = passItOn.nodeName;
}
trace("counter02="+counter02);
}
findTheBullet(passItOn);
}

function findTheBullet(bulletsLevel){
for (var counter03=0; counter03 <= bulletsLevel.childNodes.length; counter03++){
if(bulletsLevel.childNodes[counter03].nodeName.toLowerCase()=="bullets"){
passItOn=bulletsLevel.childNodes[counter03];
trace("passItOn.nodeName="+passItOn.nodeName);
tellMethirdLevel.textfieldDisplayArea = passItOn.nodeName;
}
trace("counter03="+counter03);
}
findTheTranslate(passItOn);
}

function findTheTranslate(bulletLevel){
for (var counter04=0; counter04 <= bulletLevel.childNodes.length; counter04++){
if(bulletLevel.childNodes[counter04].nodeName.toLowerCase()=="bullet"){
passItOn=bulletLevel.childNodes[counter04];
trace("passItOn.nodeName="+passItOn.nodeName);
tellMefourthLevel.textfieldDisplayArea = passItOn.nodeName;
}
trace("counter04="+counter04);
}
findTheAttribute(passItOn)
}

function findTheAttribute(translate){
for (var counter05=0; counter05 <= translate.childNodes.length; counter05++){
if(translate.childNodes[counter05].nodeName.toLowerCase()=="translate"){
passItOn=translate.childNodes[counter05];
trace("passItOn.nodeName="+passItOn.nodeName);
var whichTranslate =passItOn.childNodes;
trace("whichtranslate = "+whichTranslate);
tellMefifthLevel.textfieldDisplayArea = passItOn.nodeName+","+whichTranslate;

if (whichTranslate=="translate"){
findTheContent(passItOn);
trace("translate.nodeValue="+translate.nodeValue);
}

}
trace("counter05="+counter05);
}

Dynamic Text Fields
Hi All and Happy New Year,
I am having trouble constructing dynamic text fields that need to be updated for a real estate site.
First of all it will not read or render html when it reads the txt. file.
Second i need to update 10 seperate fields at the same time and I am not sure how to go about it especially putting a preloader into it.
Any help would be great

Dynamic Text Fields
I have two dynamic text fields where their value was set by on press action:


ActionScript Code:
on (release) { nr4="1";Nextframe(); {



where nr4 is my text field var.

in the last frame all the values set for the individual texts fields should appear setting a two digit number.

Dynamic Text Fields Help
hi everyone am creating a dictionary of my javascripts on Flash MX am doin great creating it, i have on the stage a combo box that has the codes and am using it to load my variables threw it, i have two dynamic text fields that displays the data on one i have the codes and on the other i want to load the esplanation of what the codes does. Here is where i ran into a little problem.

here is the question: how do i load two separated files with the same loadVariables command. i hope i make sense. here i post a couple of codes.

myData = new LoadVars();
myData.load("codes.txt");
//creating the loadVarsText function

selectedindex = _root.codes.getSelectedIndex();//this is my combo box i used the getSelectedIndex() to retreave a number Index from the combo. this number i used it to get the variable store in text file. now i need to know how to make so that i could load two different variables to load from different text files to display the two files in the two text fields.

myData.onLoad = function() {
if(selectedindex == 0){
_root.displayArea.text = this.code1;
}
if(selectedindex == 1){
_root.displayArea.text = this.code2;
}
if(selectedindex == 2){
_root.displayArea.text = this.code3;
}
if(selectedindex == 3){
_root.displayArea.text = this.code4;
}
if(selectedindex == 4){
_root.displayArea.text = this.code5;
}
if(selectedindex == 5){
_root.displayArea.text = this.code6;
}
if(selectedindex == 6){
_root.displayArea.text = this.code7;
}
if(selectedindex == 7){
_root.displayArea.text = this.code8;
}
if(selectedindex == 8){
_root.displayArea.text = this.code9;
}
if(selectedindex == 9){
_root.displayArea.text = this.code10;
}
if(selectedindex == 10){
_root.displayArea.text = this.code11;
}
if(selectedindex == 11){
_root.displayArea.text = this.code12;
}
if(selectedindex == 12){
_root.displayArea.text = this.code13;
}
if(selectedindex == 13){
_root.displayArea.text = this.code14;
}
if(selectedindex == 14){
_root.displayArea.text = this.code15;
}

};
}
sorry this was long

Dynamic Text Fields
Hello,

I am new to Flash MX and I havent got any experience with previous versions of Flash.

Basically I am making a flash site for a portfolio I am setting up.

I would like to know how to be able make a flash site that when you click on a link, it will load the relevant text into a box, then when you click on another link, it will then clear that text and then put the new text into it and so on and so on.

I know how to make a text box and load up a notepad file, but thats it.

Any help would be great.

Thanks,
William

<img Src> Tag In Dynamic Text Fields
Okay so I've set up a dynamic text filed to read from an external text file, and to except html tags, so I can get links and text formatting tags to be recognised, but I don't seem to be able to use the <img src> tag to display images

for example I have this at the top of the txt file:

<img src='http://www.google.co.uk/intl/en_uk/images/logo.gif'>

(it was an easy image just for reference... )

But it is not displayed..

Any ideas?

Dynamic Text Fields
I have two dynamic text fields where their value was set by on press action:


ActionScript Code:
on (release) { nr4="1";Nextframe(); {



where nr4 is my text field var.

in the last frame all the values set for the individual texts fields should appear setting a two digit number.

Dynamic Text Fields Help
hi everyone am creating a dictionary of my javascripts on Flash MX am doin great creating it, i have on the stage a combo box that has the codes and am using it to load my variables threw it, i have two dynamic text fields that displays the data on one i have the codes and on the other i want to load the esplanation of what the codes does. Here is where i ran into a little problem.

here is the question: how do i load two separated files with the same loadVariables command. i hope i make sense. here i post a couple of codes.

myData = new LoadVars();
myData.load("codes.txt");
//creating the loadVarsText function

selectedindex = _root.codes.getSelectedIndex();//this is my combo box i used the getSelectedIndex() to retreave a number Index from the combo. this number i used it to get the variable store in text file. now i need to know how to make so that i could load two different variables to load from different text files to display the two files in the two text fields.

myData.onLoad = function() {
if(selectedindex == 0){
_root.displayArea.text = this.code1;
}
if(selectedindex == 1){
_root.displayArea.text = this.code2;
}
if(selectedindex == 2){
_root.displayArea.text = this.code3;
}
if(selectedindex == 3){
_root.displayArea.text = this.code4;
}
if(selectedindex == 4){
_root.displayArea.text = this.code5;
}
if(selectedindex == 5){
_root.displayArea.text = this.code6;
}
if(selectedindex == 6){
_root.displayArea.text = this.code7;
}
if(selectedindex == 7){
_root.displayArea.text = this.code8;
}
if(selectedindex == 8){
_root.displayArea.text = this.code9;
}
if(selectedindex == 9){
_root.displayArea.text = this.code10;
}
if(selectedindex == 10){
_root.displayArea.text = this.code11;
}
if(selectedindex == 11){
_root.displayArea.text = this.code12;
}
if(selectedindex == 12){
_root.displayArea.text = this.code13;
}
if(selectedindex == 13){
_root.displayArea.text = this.code14;
}
if(selectedindex == 14){
_root.displayArea.text = this.code15;
}

};
}
sorry this was long

Dynamic Text Fields
Morning all,

I have a simple question.

If I have an dynamic textfield in side a movie clip. Why doesn't it get the variables.
I load and html-file where my variables is held. Like this: loadVariablesNum("textfield.html", 0);.
But the dynamic textfield refuses to show them. Even thou I have set the textfield to get the variable "textfield" from the html file. It works if the textfield is out side the MC, but not when it's inside.

Does anyone knows why, or what to do?

Cheers,
Fredrik

Dynamic Text Fields...
Here's the deal. I have a dynamic text field that I am loading in an HTML file. No problems there. I also have a scroll slider that I made to scroll the text. Still no problems.

The problem is that I want to hide the scroll bar when the text doesn't need to scroll. Is there a way to find out the length of the imported text or something like that.

I have tried things like this:

trace(_root.subNav.textArea.length);
and evaluating that in an if statement and nothing seems to be working.

but it always returns 1?? wether I add to the HTML file or not? Any help would be appreciated.

-brad

Dynamic Text Fields
Why is it that if I assign a dynamic text field with a string that starts with numbers, the numbers don't show up?

for example:

I have a dynamic text field called linkText.

I'm assigning text to that field with:

Code:

linkText.text = "401k Scout" ;

and what ends up in the textfield is 'k Scout'

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