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




[MX04] Dynamic Fields To Contain TAB's (Supported ?)



Greetings,

Whilst searching through these boards I read that TAB isnt supported within flash.

I'm using MDM Zinc to import data from a ms access database where the fields will be of variable length. The plan was to display each field and then use a few tabs inot a dynamic text box.

Anyone any ideas if i can TAB or another method I use to resolve my problem.

Thanks
Rob



FlashKit > Flash Help > Flash Newbies
Posted on: 03-12-2008, 11:08 PM


View Complete Forum Thread with Replies

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

[MX04] HTML Tags Needs To Be Disabled In Dynamic Html Enabled Text Fields
Hi Buddies,

Am loading some dynamic text from an xml which has html tags inside dat text. I jus loading dat specified texts into a dynamic text fields where html is enabled and assisgned as a htmlText instead of normal text.

It works fine, but the thing is, i want to disable certain html tags to be rendered but it shud display as it is as a normal texts.
Is there any way to do dat

[Q] Supported Video File Type For Dynamic Loading...
Howdy...

I 'think' I know the answer but I just want somebody confirm this...

Can somebody tell me if following paragraph is correct or not??? Thanks...

Quote:




If I want to load the video file dynamically, I can only use either FLV or SWF file...

[MX04] Required Fields Before Sending App?
Hello all,

I have a flash-to-php user application that is already functioning correctly but the only problem I have is required fields for it.

I have about 12 fields in my application and I need about 3 of them to be required fields (name, phone, email) without this, the application will not send and also put up a popup message saying to fill it out (which I am not sure how to do either)

If anyone can help me on this, it would be much appreciated.

[MX04] Mask Input Text Fields
Hello, in mx 2004 it is possible to mask input text fields ! but when i try to type in the textfield, it doesn't work ! ( i think it is because the mask above it ). Is it possible to solve that ?

[MX04] HELP Need Information N Editable Fields Using External .txt?
Hello everyone!

I'm in a bit of a pickle, which is not a good place to be.

I'm creating a presentation for a client and in this presentation I need a lead up page which has a series of editable text fields, and I'm not quite sure where to start.

1. There is to be a field where the client can punch in thier number and it will bring up information which is stored in an external database (Excel?), if they don't know thier number however, they then have the option of filling it out manually. I then need this to immediately create a new .txt file which will become this customers reference (provided one doesn't already exist).

2. Any information that is edited during the session needs to be able to be SAVED to an external .txt file (as above), which can then be called upon if the same client (number) is typed into the field mentioned above.

3. The presentation then moves on to a customisable shopfit, where the client decides how they want thier shop to look (this part is already complete and tested and works fine). However, at present I have a print button which the customer can select and it will print out thier options, but it has been requested (as I think the reps like to leave thier printers in thier other suit jackets) that I have an email option, this needs to email the picture (which normally gets printed) AND the information which was entered into the customer reference page.

My brain hurts, so if anyone can point me in the right direction, I would be eternally grateful.

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 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!

Rotating Dynamic Txt Fields?
how do you rotate a dynamic text field i have a text field in a mc and whenever i try to rotate it disappears

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 Txt Fields And Html
I am trying to center the text in a dynamic text field that I am populating with HTML tags like below.

subText_mc.subText_txt = "text item<br>text item";

I cant get the text to center when I use the HTML tag, but it works fine when I drop it. Any ideas?

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.

Fonts And Dynamic Fields
is it possible to use fonts that someone does not have installed on their computer show up in a dynamic field? is there any way to do this at all? please 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

Html In Dynamic Fields
Hi,

I've got a movie with a dynamic text field, loading data from a php file in html format. Problem is that normal text loads fine, but when I try to format into bold with html tags at the php end, no text is displayed within the field.

I've tried to embed both a normal and bold version of the font within the movie, but still the same. One work around I've found is to set the dynamic text field not bold, and then have another dynamic text field on the stage set to bold and the same font, but this is a bit clumsy.

If anyone can shed some light, I would really appreciate it.

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

Getting XML To Populate Dynamic Fields
I've done some looking around and most of the tutorials I find on the net have to do with using the XML components to create lists of data or dropdowns or etc.

All I want to do with the current XML that I'm working with is to have it display text, populate links, and show images. Almost no interactivity (excepting three links).

Could someone direct me where to go from here?

Here's the code I've got:


Code:
// The first step is to activate the XML object
kpxml = new XML();
/*
With the XML Object now active you must now load an XML foramtted document.
Any DTD or XLS formatting will be ignored.
*/
kpxml.onLoad = myLoad;
kpxml.load("kpts.xml");
// Before proceeding to far into the program, make sure the XML document has loaded
// Extract information from the XML file
function myLoad(ok) {
if (ok == true) {
Publish(this.firstChild);
}
}

function Publish(kpXMLNode) {

if (kpXMLNode.nodeName == "datapacket") {
datapacket = kpXMLNode.firstChild;

if (datapacket.firstChild == "features") {
features = datapacket.firstChild;

if (features.firstChild == "feature1") {
feature1 = features.firstChild;

if (feature1.firstChild == "image") {
image = feature1.firstChild;
feat1.feat1image.source = "../"+feature1.image.nodeValue;
}
if (image.nextSibling == "feattitle") {
feattitle = image.nextSibling;
feat1.feat1title.text = feature1.feattitle.nodeValue;
}
if (feattitle.nextSibling == "itemtext") {
itemtext = feattitle.nextSibling;
feat1.btnfeat1.text = feature1.itemtext.nodeValue;
}
if (itemtext.nextSibling == "link") {
feat1.contfeat1.URL = feature1.link.nodeValue;
}
}
if (feature1.nextSibling == "feature2") {
feature2 = feature1.nextSibling;

if (feature2.firstChild == "image") {
image = feature2.firstChild;
feat2.feat2image.source = "../"+feature2.image.nodeValue;
}
if (image.nextSibling == "feattitle") {
feattitle = image.nextSibling;
feat2.feat2title.text = feature2.feattitle.nodeValue;
}
if (feattitle.nextSibling == "itemtext") {
itemtext = feattitle.nextSibling;
feat2.btnfeat2.text = feature2.itemtext.nodeValue;
}
if (itemtext.nextSibling == "link") {
feat2.contfeat2.URL = feature2.link.nodeValue;
}
}
if (feature2.nextSibling == "feature3") {
feature3 = feature2.nextSibling;

if (feature3.firstChild == "image") {
image = feature3.firstChild;
feat3.feat3image.source = "../"+feature3.image.nodeValue;
}
if (image.nextSibling == "feattitle") {
feattitle = image.nextSibling;
feat3.feat3title.text = feature3.feattitle.nodeValue;
}
if (feattitle.nextSibling == "itemtext") {
itemtext = feattitle.nextSibling;
feat3.btnfeat3.text = feature3.itemtext.nodeValue;
}
if (itemtext.nextSibling == "link") {
feat3.contfeat3.URL = feature3.link.nodeValue;
}
}
}
if (features.nextSibling == "programs") {
programs = features.nextSibling;

if (programs.firstChild == "program1") {
program1 = programs.firstChild;

if (program1.firstChild == "image") {
image = program1.firstChild;
prog1.prog1image.source = "../"+program1.image.nodeValue;
}
if (image.nextSibling == "progtitle") {
progtitle = image.nextSibling;
prog1.prog1title.text = program1.progtitle.nodeValue;
}
if (progtitle.nextSibling == "itemtext") {
itemtext = progtitle.nextSibling;
prog1.clipprog1.text = program1.itemtext.nodeValue;
}
}
if (program1.nextSibling == "program2") {
program2 = program1.nextSibling;

if (program2.firstChild == "image") {
image = program2.firstChild;
prog2.prog2image.source = "../"+program2.image.nodeValue;
}
if (image.nextSibling == "progtitle") {
progtitle = image.nextSibling;
prog2.prog2title.text = program1.progtitle.nodeValue;
}
if (feattitle.nextSibling == "itemtext") {
itemtext = progtitle.nextSibling;
prog2.clipprog2.text = program1.itemtext.nodeValue;
}
}
}
}
}
Here is my XML:


Code:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>

<datapacket>
<features>
<feature1>
<image>image1.jpg</image>
<feattitle>Feature</feattitle>
<itemtext>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ornare.</itemtext>
<link>something.php</feature1>
</feature1>
<feature2>
<image>image1.jpg</image>
<feattitle>Feature</feattitle>
<itemtext>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ornare.</itemtext>
<link>something.php</feature1>
</feature2>
<feature3>
<image>image1.jpg</image>
<feattitle>Feature</feattitle>
<itemtext>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ornare.</itemtext>
<link>something.php</link>
</feature3>
</features>
<programs>
<program1>
<image>image1.jpg</image>
<progtitle>Feature</progtitle>
<itemtext>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ornare.</itemtext>
</program1>
<program2>
<image>image1.jpg</image>
<progtitle>Feature</progtitle>
<itemtext>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Vivamus ornare.</itemtext>
</program2>
</programs>
</datapacket>
Is this even close to right? Is there an easier way of doing this?

The flash I'm working on is located here. All the images, the 'continued...' links and the latin text is going to be brought through the XML doc.

Thanks.

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!

Batch Of Dynamic Fields...
I have to create two hundred Dynamic Fields which names begin with "fld" followed with a number from 001 to, say, 200.
How can I create them in one click without to have to change te name of each field in the Property Panel ?
Many thanks in advance for your help !

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);
}

Batch Of Dynamic Fields
I have to create two hundred Dynamic Fields which names begin with "fld" followed with a number from 001 to, say, 200.
How can I create them in one click without to have to change te name of each field in the Property Panel ?
Many thanks in advance for your help !

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

FONTS In Dynamic Txt Fields
how can I asure that fonts used on dynamic text fields are viewed by all people, independetly if they or donīt have the font instaled. I tried whit have install one font in the library and choose export to actionscript, but that seems to donīt fix this problem.

thanks

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 Search Fields
Hey Guys

Here is the situation. I have a table populated with xml data using the data connector component and data binding.

What I want to do though is have a search field that as soon as the user starts to type in the search field the table automatically starts to match what they are typing with titles in it's list and removes the rest?

Like on the PS2 site they have a 'gamefinder' search field on the 'Games' Page and as you type in a game title the list beneath of all the games refines until you get to the title you are searching for?

Is there already a component for this? If not how would I go about building this function?

Thanks in advance

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

Detection Of Changes In The Dynamic Fields
Hi,

my problem is simply. I need do a detection any changes in the dynamic fields.

I know do it for input fields, but not for dynamic. Text in dynamic field I change external or with buttons.

Example for input fields:
-----------------------------
this.createTextField("myInputText_txt", 99, 10, 10, 300, 20);
myInputText_txt.border = true;
myInputText_txt.type = "input";

myInputText_txt.onChanged = function(textfield_txt:TextField) {
trace("the value of "+textfield_txt._name+" was changed.);
};
-----------------------------

Did this somebody?

LEF

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

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