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




Help With Dynamic Text Field Display



hi all,

i have a movie clip within my main timeline that is controlled by three buttons. each click on one of these three buttons, executes a script that loads data from an external text file into the above mentioned movie clip. the text loads correctly but my problem is this:

let's say the buttons are called "button one", "button two" and so on. if you click "button one" the appropriate text is loaded and displayed in the dynamic text field in the movie clip. however, if you click "button two" or "button three" it also loads the text but it appears ON TOP OF the text that was previously loaded in to the dynamic text field INSTEAD of replacing that previously loaded text.

how do I get the dynamically loaded text to appear in the text box and not have the previously loaded text still displayed? any help much appreciated.

thanks in advance,
cj



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 02-18-2004, 04:10 PM


View Complete Forum Thread with Replies

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

Help With Dynamic Text Field Display
hi all,

i have a movie clip within my main timeline that is controlled by three buttons. each click on one of these three buttons, executes a script that loads data from an external text file into the above mentioned movie clip. the text loads correctly but my problem is this:

let's say the buttons are called "button one", "button two" and so on. if you click "button one" the appropriate text is loaded and displayed in the dynamic text field in the movie clip. however, if you click "button two" or "button three" it also loads the text but it appears ON TOP OF the text that was previously loaded in to the dynamic text field INSTEAD of replacing that previously loaded text.

how do I get the dynamically loaded text to appear in the text box and not have the previously loaded text still displayed? any help much appreciated.

thanks in advance,
cj

Display Data Into A Dynamic Text Field
Some characters (..etc) do not display correctly in flash mx, the dynamic text (html format) displays an square instead of the character when i read from an external file or when i try to display data from my db (php/mysql)...why is this happening in flash mx?? with flash 5 all the characters appear correctly...!!! ???

Tilt Dynamic Text Field Does Not Display
feloow actionscripters,

I have a dynamic text field. When i rotate it say 20 degree and publish. the numbers in this field does not display. Is there a work around for this?

raskol

Dynamic Text Field Content Does Not Display In .swf
I am very new to Flash. I'm trying to update a dynamic text content in a .fla that someone else created. It seemed a pretty trivial task but I can't figure out why I do not see the current text displayed (before I made any changes) when I preview or build the .swf?
I've debugged the actionScript code and I see the dynamic text variable being set but like I said, it's as if this code is not executed when the movie plays.

Any help would be greatly appreciated. Thanks.

Below (and attached) is the actionscript 2.0 code that updates the dynamic text variable (daTextBox2):
(I'm not sure the code was attached to the thread because I got a runtime exception)

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}








Attach Code

onClipEvent (load){
daTextBox2 = "<p align="left"><font face="Helvetica" size="14" color="#cccccc" letterSpacing="0.000000" kerning="1">“The Gift of Art”</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="11" color="#cccccc" letterSpacing="0.000000" kerning="1">Presenting Fine Art Accessories By</font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">AKOSUA <font size="11">– Jewelry & Adornments</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MARVIN SIN <font size="11">– The Art of Leather</font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">MANDISA <font size="11">– Jewelry </font></font></p><p align="left"></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">NOVEMBER 17 & 18, 2007</font></p><p align="left"><font face="Helvetica" size="13" color="#cccccc" letterSpacing="0.000000" kerning="1">SAT: 11 – 7 / SUN: 12 - 5</font></p><p align="left"></p><p align="left"></p><p align="left"></p><p align="left"></p>";
scrolling = 0;
frameCounter = 1;
speedFactor = 3;
}

Display Info In Dynamic Text Field
I need to have a dynamic text field look up one movie clip and get the text shown in a different dynamic text field. Then display that text. Is there a way to do this?

Some Fonts Don't Display In Dynamic Text Field
I've got a dynamic text field which uses fonts from my system for the text. The majority show as they are supposed to look, but certain ones like Webdings and Wingdings show up as Arial. Any solutions? It's a font browser so it's supposed to recognize the system fonts.

Take Value From Input Field And Display It In A Dynamic Text Box?
Hi,
I have an input field, which asks how many of a product someone wants.
Say they enter 3, I want them to be able to press a button which will display 3 in another dynamic text box. So basically copying the value to another text box.

Can someone help?

Thanks,

-rob

Shared Fonts Do Not Display In A Dynamic Text Field
does anyone know if this has been resolved yet

see technote on macromedia site

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

Display Formatting From Text File In A Dynamic Field
is this possible?

i read my news information from a file called news.txt... the unfortunate part is that i can not use any formatting what so ever

is there a way to display formatting from a text or html file using some codes or anything?

thanks in advamce

Making A Dynamic Text Field Display HTML
I'm using Flash MX 2004

This is driving me insane and I'm sure I'm missing something obvious. I am loading an external txt file into a dynamic text field. The text file contains some simple HTML tags which I know are supported by Flash ( ie <b> <p>). However when I test the file the text is displayed with the HTML tags as part of the text rather than interpreting them. Selecting the Render Text as HTML button on the property inspector does nothing. I've tried to set it in the code but thats not working either - here is my code -


section1Text.wordWrap = true;
oneVars = new LoadVars();
oneVars.load("section1.txt");
oneVars.onLoad = function() {
section1Text.text = this.sectionOne;
section1Text.html = true;
}

thanks a lot

Naomi

How Can I Get The Current Time To Display In A Dynamic Text Field?
Hi folks,

I have a dynamic text field that I've named myTime and I want the current time to display in it (hour:minutes AM/PM - I don't want seconds) but I can't figure out how to do it. The example in the reference for date objects returns the whole date (day of the week, date, hours, minutes, seconds) and I don't want that. Any help please?

Display A Random Number In A Dynamic Text Field
Hi, I've only ever used very basic Actionscript 1 & have recently made the switch to AS3.

I'm trying to create a dynamic text field that will display a randomly generated number between 1 & 9.

I've created a dynamic text field on the stage and called it 'random_txt' in the properties inspector.

Here's the code I have on frame 1 so far:

code: var myResult:int = Math.floor(Math.random()*8+1);

So my understanding of the above is that the variable 'myResult' now holds the randomly generated number?

I'm trying to display it in the text field by typing:

code: random_txt.text = myResult;

This seems to make sense in my head, but it doesn't work. Is anyone able to tell me where I am going wrong? Sorry if this is really basic, but I'm not from a coding background so the maths/tech side of things really throws me.

Thanks in advance.

HTML Links Won't Display In Dynamic Text Field
I am loading external text files in dynamic text fields on my webage. These texts contain html links (<a href="page.html" target="_blank">Click Here</a> and I have "render as HTML" on and "selectable" off in my dynamic text field. Also, I am loading a CSS file. Not only do I not have a hand cursor, but I do not even have any of the text from that piece of html code down. What is going on with this? Please respond asap, as I have been struggling with this for a day now. Here is the Actionscript for loading the CSS:

var flash_css = new TextField.StyleSheet();
flash_css.load("styles.css");
flash_css.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.styleSheet = flash_css;
} else {
trace("Error loading CSS file.");
}
};

var zloc_lv:LoadVars = new LoadVars();
zloc_lv.load("zloc.txt");
zloc_lv.onLoad = function(success:Boolean) {
if (success) {
zloc_txt.text = this.content;
} else {
trace("unable to load text file.");
}
};
zloc_txt.html = true;
zloc_txt.editable = false;
_global.styles.TextArea.setStyle("backgroundColor" , "transparent");
_global.styles.TextArea.setStyle("border styles" , "solid");

Here is a sample of the text file code:

&content=<span class="headline">Northwest Arkansas Locations</span>
121 Main St.
Russellville, AK 77801
(626) 111-1111<br />
<html><a href="

Dynamic Text Field Erratic Display Issues
Ok, so I'm using loadVars to bring some HTML into a dynamic textfield, and styling it with an external CSS file. It's working as expected MOST of the time, but about 25% of the time I test it, I'll get to a certain page and the right half of all dynamic text disappears... When I go back to other pages that were just looking fine, they are now also displaying only their left half.

The fact that I can't recreate this with any sort of logic is really bugging me. Has anybody else experienced erratic behavior with dynamic text fields, and, if so, have you had any luck fixing it?

This project is on a reeeaally tight deadline, so any help I could get would be rewarded with my undying love!

Display Array Information In Dynamic Text Field
Is there an easy way to display all the information contained in an array inside a dynamic text field?

Normally if you do this you get "orange,apple,pear" in the info_txt text box:

Code:

var myArray:Array = new Array();
myArray.push("orange");
myArray.push("apple");
myArray.push("pear");
info_txt.text = myArray;



How would I get the text box to say something like this:

Fruits:
orange
apple
pear

instead of the normal orange,apple,pear it would output normally?

&, ", And ' Do Not Display Correctly In Dynamic Text Field When Loaded From XML
hello,

i'm having problems getting certain characters and punctuation marks to display correctly when a string from an XML is loaded into a dynamic text field. they are displayed as "&" """ etc etc..

i'm am pretty much stuck with using an XML file, so if there is any way i can get these characters to display properly utilizing the following code with as little modification as possible, that would be great!

here is what i'm using:

PHP Code:



var my_xml=new XML()
var fileList:Array
my_xml.ignoreWhite=true
my_xml.load(_root.fileName)

my_xml.onLoad=function(success){
 LoadFileList()
}

function LoadFileList(){
 var len=my_xml.firstChild.childNodes.length
 var scrollingText=my_xml.firstChild.childNodes[len-1].childNodes.toString()
 info_dt.text = scrollingText //info_dt is the dynamic text instance
 } 




any help would be greatly appreciated!! thank you very much

My Dynamic Text Field Wont Display Some Font Characters
I have a dynamic text box that loads text from an external file... mmy problem is that the chatcters , and (and the right part af the word they appear in) are displayed as cute little rectangles...

What to do, what to do??

I've tried to "embed to font outlines" (don't knows what it means, but why not try??), but then the text just disapears


heeeeeee(eeeeeeeeeee)lp

Can't Display Text In Dynamic Text Field
I can't for the life of me figure this one out.

The Problem:
I am loading data from an xml file, and displaying the the variables in several dymanic text fields, but I can't get anything other than a number to show up.

Here's the Situation:
Using flash professional fx 2004.
I have a Dynamic Text field with a name of name_txt assigned to it.
after I've loaded the xml file, I assign the variables. I'm using trace to ensure that the proper values are assigned, and they are. I resorted to testing by hard coding the text value of name_txt, and I found that text does not show up, numbers do... go figure.

so...
name_txt.text = "test"; does not work
name_txt.text = 3; does work

some values of my dynamic text...
not showing background, not htmlText, single line, aliasing, nothing embeded.

Anybody have any idea how to make text show up??
thanks in advance.

Dynamic Text Field To Display Specific Text When Visibility Of Mc = "true"
Does anyone know if it is possible to display a certain line of text in a dynamic text field when a specific movieclips visibility is true? This is the script I am using now but it is'nt working.

if (_global.gothicBlockSide = "true") {
rightSideFont.text = "Gothic Block";
}

Dynamic Txt Field Won't Display Txt
In my main timeline, I am trying to write some text with AS3 into a dynamic text field (txt_box) located as follows: Scene1>movie1>movie2. It's in movie2.

I tried the following:

ActionScript Code:
this.movie1.movie2.txt_box.text = "This is my text";

But the text does not diplay... Is there something I forgot?

Thank you...

PHP Display Variables In Dynamic Txt Field
Hi I have a question can anyone help me out?

This is the result from a phpfile:
a0=What I am&b0=Edie Brickell&c0=Pop&d0=Sound1.swf&a1=Many men (wish death)&b1=50 Cents&c1=Rap&d1=Sound2.swf&a2=Last to know&b2=Pink&c2=Rock&d2=Sound3.swf&a3=Hardcore vibes&b3=Dune&c3=House&d3=Sound4.swf&a4=Stressed out&b4=Tribe called quest&c4=Rap&d4=Sound5.swf&

I load this into flash using:
myVars = new LoadVars();
myVars.load("http://blahblah/audio.php");

I have a dynamic textfield with an instance name called: content

What I would like to do is control the contents of this textfield.

How can I display one of the variables in this textfield? I tried several things but I just can't get it to work, so any help would be great

Problem Getting Variables To Display In Dynamic Txt Field
I am passing some variables from PHP into Flash using the following ActionScripting:

//load PHP variables
PHPvariables = new LoadVars();
PHPvariables.Load("variables.php");
username = PHPvariables.username;

I then want the variable 'username' to be displayed in a dynamic text field I've given the variable name "events". I used this ActionScript to do it:

//fill events text box
_root.events = username;

However, the dynamic text box is not displaying anything. Any ideas why?

Dynamic Txt W/ Componant Scroller - Txt Field Display Funky.
I'm loading text into a dynamic text field placed within an MC being contralled by a compnant scroller.

I'm using the folloing to load the text:code:
//Required by componant to function correctly
TxtField.autoSize = true;
//begin loading text
var myTEXT = new LoadVars();
myTEXT.load("About.txt");
myTEXT.onLoad = function(success) {
if (success) {
TxtField.text = myTEXT;
//text field formatting
TxtField.html = true;
TxtField.htmlText = this.body;
TxtField.embedFonts = true;
}
}

The trouble I'm experiencing is that the dynamic text field is displaying all the spaces between each work of the loaded text with the %20 symbol rather than simply showing spaces between each word.

Is there something I need to be doing to my text document for its content to display correcly?

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

Text Field Doesn't Display Text When Its In A Page Loaded W/ AttachMovie
I'm having a problem where I made a 'main' page that loads sub-pages via attachMovie and in those subpages I have text fields that are populated via a LoadVars object. The subpage works perfectly when I run it by itself -- but when I load it into the main page w/ attachMovie, the text field doesn't show up. Ideas? ?

Text Field Display Problem
Hi all,

I'm building a sub-title scroller for an a/v company, and I've run into an odd problem:

the text field to be scrolled loads its content (variable) from a .txt file. Works great, except that there seems to be a maximum size the text field can reach before it just disappears. I don't mean a maximum number of characters, but the actual width of the text field. When I put a fairly large chunk of text in the .txt file, it will not show up in the Flash movie. However, if I shrink the window down, the text will eventually appear! Also, if I make the amount of text smaller, it will appear at a larger window size. It's kind of hard to explain.

Here are the files in question; can anyone try them out and let me know if you experience the same thing? I've updated my video drivers, FWIW. Try putting just a small amount of text in the .txt file, and it works fine.

<a href="http://www.atombong.com/flashkit/SubtitleScroller.fla">fla</a>
<a href="http://www.atombong.com/flashkit/text.txt">text file</a>

How Do I Display Html In A Text Field?
I used to know how to do this in MX 2004 but it won't work in CS3 so act like I know nothing (which I don't). How do I make a text field that reads either html from a txt file or even better, from a proper html file in Flash CS3?

Text Field (inside MC) Won't Display Anything
I have several dynamic text fields inside a MC. They all work except for one. I've tried embedding the font (see image) but it still shows nothing. I've done a trace, to make sure the variable has something in it, which it does. I've rechecked the path name a hundred times. The other fields work! This one doesn't. Here's the actionscript that feeds the text field (this exists on the "aircraft" movie clip" with an onClipEvent(load).

tag.VlarsoDisplay = Math.round(Math.sqrt(((560 - target._x)*(560 - target._x))+ ((300 - target._y)*(300 - target._y))))/10;

This code all works, and tag.VlarsoDisplay has a value, confirmed with TRACE. The path IS correct. Why on earth won't the value display in it's field?

Text Field To Display % Loading ?
Hi
im using the version 8 of flash Pro.
I have this script for my preloader bar which works fine.

How i can add a text field/box so it can display the % percentage loaded ?


Code:
var myMCL:MovieClipLoader = new MovieClipLoader();
var myListener:Object = new Object();

myMCL.addListener(myListener);

myListener.onLoadProgress = function(target_mc:MovieClip, bytesLoaded:Number, bytesTotal:Number) {
var loaded:Number = Math.round((bytesLoaded/bytesTotal) * 100);
progressBar.gotoAndStop(loaded);
}

myListener.onLoadInit = function (target_mc:MovieClip) {
progressBar._visible = false;
}

myListener.onLoadStart = function (target_mc:MovieClip) {
progressBar._visible = true;
}

myMCL.loadClip("main_movie.swf","container");

Pls Help Me- How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

Is It Possible To Display The Text (from External XML File) In A Text Field?
I'm a beginner with Flash ActionScript coding. I've got to make a flash menu that takes the text and URL for the menu items from an external file and displays it on a PHP page.
I've found the code to load text from an external file on the Adobe site:
http://livedocs.adobe.com/flash/9.0/main/00000890.html

However, this code doesn't work. It gives a message "Undefined" in a box, though all the paths are correct.

However, I can't use this code since I need to anti-alias the text display.Is it possible to display the text (from external XML file) in a text field? I can then apply anti-alias and select the text characteristics. I'll embed all the possible font characters in the movie.

How do I make this Dynamic Text for text fields work?

I'm using Macromedia Flash Professional 8 for creating this menu.

Text Field Won't Display Loaded Variable
I've used loaded variables numerous times before, but lately, I've been getting nothing but
blank fields.
The variables are loading, and passed to text fields outside of MCs, but not visible in text
fields that 'are' inside MCs.


Movie Breakdown:
================================================== ===================

SCENE 2 'uk' / FRAME 'UK1'

UKCostGeneral = "ukpricing.txt";
loadVariables (ukcostgeneral, "");



SCENE 2 'uk' / FRAME 'UK1' / MC 'UKGen' / text field 'UKCostGeneral' (imported/shared font)


================================================== ===================



This has had me puzzled for some while . . . someone even mentioned that because MC 'UKGen'
is under a mask layer, that I'd have to (embed) the text, rather than (import) it!!?? . . .
a resolve would be very much appreciated.

Regards,

::bluemoth::

Display Html Page In A Text Field
How can we load a html page as a variable and display it in a text field?

Urgent-Pls Help Me.. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

Urgent- Pls Help Me.. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??



Thanks...

How To Fetch 'description' From Xml And Display In Text Field
Hi, thanks for having a look.

I'm making a media player which has a playlist of 8 or 9 flv's, I'm using 'videosourcepro' as my basis.

What I need to do, is when a user selects from the playlist (populated dynamically from an xml file), the title of the selected track is displayed in the title_txt dynamic text field.

I'm not new to flash, but I am to actionscript, so would anyone be able to suggest a way in which I could perform the afore mentioned task?

I've uploaded my source files and you can download them here

Thanks in advance
James

Text Display Field Accessibility Issue
I am doing a quiz using MM flash MX , i want to make it accessibility compliance, i.e, a screen reader should be able to read quiz content visualy impaired people. The Flash MX provides the option to make Movie clips and input fields accessible, but I am having problem in making the dislpay fields accessible in which the quiz results will be dislayed.
What AS shd i use so that a screen reader can read the result?

How To Display The Copyright String (c) In A Text Field ?
Hello,
I'm using a text field in which I want to display the copyright symbol (c) : the letter "c" in a small circle.
I tried this :
texte.text ="&copy BRAND"
but it doesn't work.
Can you help me ?

Urgent - Pls Help Me...How To Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??

Thanks...

Urgent - Pls Help Me .. How Do I Display " In The Text-field?
Hi, I know I can use " " to display the Text in between on the Text-field. But how shall I code in the actionscript, if I would also like to display the --> " " <-- as well in the Text-field??

Thanks...

Display Text Field Like You Would A Movie When Called
I am trying to display a dynamic text block when called at a certain time in a movie.

        loadMovieNum(bio1.text,3);

A text block being loaded into a movie?



Display CurrentFrame Number In A Text Field
I'm sure this is a dumb question, but I just can't make it work.

Using AS3, I would like to display the currentFrame number in a dynamic text field (slideNumber_txt). Every time I try, I get error 1067. Here is the code I'm trying to use:

slideNumber_txt.text = currentFrame;

Can anyone help?

Thanks.

Michael

Calculating Input Text Field To Dynamic Field (easy Action Script)
hi. i'm trying to learn action script and i need help with this bit. i'm trying to use action script to calculate my brothers ages based on my own.

using flash MX. i have an input field called "my_age" and two dynamic fields called "eli_age" and "jacob_age". eli is 4 years younger and jacob is 6 years younger. i want to be able to enter my age in the "my_age" input field and then click a button that will calculate their respective ages.

here's the fla if i haven't been clear.

thanks for any/all help,
josh

Getting MySQL Field Data Into Dynamic Text Field In Flash
Hi, im having some trouble as to how to retreive data from a mySQL database field and putting the values into a dynamic text field in Flash... im quite new to this so any help will be appreciated! thanks.

Need To Display Multiple Font In Single Text Field
Hi All,
I am working on a flash application which would have a text field displaying multiple fonts in it. I have embedded the fonts and have added it to the library.I can view them in my computer whereas when viewed in another computer without the font used, display is different.

Add a <font face="library font one">registered mark </font>directly () or <font face="library font two"> with a Unicode escape sequence</font>

After the fonts are embedded size of the swf does go up. What could be wrong?

[F8] MySQL Field Value Into Dynamic Text Field In Flash
Hi, im having trouble as to how to retreive a value in a field of a MySQL database and putting it into a dynamic text field in flash... i have no idea as how to do this... any help? thanks

Asp Database Field Loaded Into Dynamic Text Field -HELP
Hi all,
after much trial and error and still having troubles i thought i would ask people that maybe know what there doing.
Im using Flash 8 pro, and have placed textarea component on stage and gave it an instantce name, need to pull a single record from a record database using asp.

This is my approach but if there is an even easier way let me know.

I have created the following pages.
webpage.asp (end result web page that shows the text field to user)
script.asp( asp script that sends data back/forth to flash

i used the FlashVars param to pass a variable into the flash movie.
variable is named auto_num. im using this to then pass it back out of flash to filter the recordset.

then on the flash movie.swf. all on root level. i have the following code

var text_value; //(this is the value sent back from asp page string)
//not sure if i needed to declare it but did anyways.

var_sender = new LoadVars();
myData = new LoadVars();

var_sender.auto_number = auto_num //(auto_num is loaded flashvars param)

myData.onLoad = function() {
my_text_1.text = this.text_value
};
myData.sendAndLoad("http://www.********.com/script.asp", myData ,"POST");

on the script page i have a record set that filters for form variable named auto_number. all of code is in asp. I call a response.write to write the text_value back to the flash movie.

here is the heart of the script.asp code. not showing the record set filtering stuff.

<% Dim text_value
text_value = "text_value="&(Recordset1.Fields.Item("long_des"). Value)

response.write(text_value)
%>

but i get undefined and can never get the variables to load into the flash movie. i want to export as flash player 6 or 7. what am i doing wrong here?

So in a nutshell, i have an asp page that shows a record and would like to display the long description field of that record in a flash dynamic text box.

I can make it work by passing the entire long description from record set within the flashvars param but that seems like a real clunky way to do it pasing that much text within the flashvars param.

Does anyone know of simple database connectivity kits that extend flash for the semi-programmer guys?

Display Root Array Item In Nested Text Field?
OK, on the main timeline of an .fla I've got an array...
Code:
var listing:Array = new Array("alpha","beta","gamma","delta","epsilon");
... and a MovieClip with a nested text field, which is on the Stage.

I'd like to place some code on the first (and only) frame of the MovieClip which will display an item from the main-timeline array in the nested text field. The follow does work...

Code:
showList.addEventListener(Event.ENTER_FRAME, refer);
function refer(event:Event){
event.target.text = event.target.parent.parent.listing[3];
}

showList.text = this.parent.parent.listing[4];
... but I'm wondering if there's a way to do it without using an EventListener, or at least not an ENTER_FRAME event. My problem is referencing the main-timeline array from the clip.

Any tips? Many thanks.

Attempting To Display HTML Output In A Radio Button Component's Text Field?
Greetings,

Attempting to display HTML output in a radio button component's text field.

After digging down to the correct text field in the radio button component, we made the discovery that the "Render text as HTML" button is indeed checked...?

However when viewing the swf the text is displaying the literal HTML string ie: "<b>Blue</b>"...

What gives?

Thanks in advance.

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