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




Loaded Text File Wont Show All Of The Text In Dynamic Text Field



When I load an external text file into flash and display the string in a dynamic text box, not all of the text will show in the text box; and using scroll button to scroll the text doesnt help.

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


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

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

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



FlashKit > Flash Help > Flash ActionScript
Posted on: 07-05-2001, 04:30 PM


View Complete Forum Thread with Replies

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

Select Text File From Dropdown List, Content To Show In Swf Dynamic Text Field
I have a php page where there is a form with a dropdown list of all text files in my site. The name of the dropdown is $filename.

The action script in my swf is this:
loadVariablesNum("<?PHP echo $filename; ?>", 0);

but I get nothing. It displays correctly when I replace
<?PHP echo $filename; ?> with the actual value of $filename, for example:
loadVariablesNum("ui_websites.txt", 0);

Any ideas what I'm doing wrong?

Show A Name From A Input Text In A Dynamic Text Field
Hi,

I'm creating a interactive cd in flash for a college project.
I want to have a input text field at the begining of the cd, for the user to insert its name, so that it can be showen in some sections of the cd.

Can anyone help me?

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

External Text Loaded Into Text Field Won't Change File Attached
I have 3 textfields in 3 different frames. Each text field is for a different section of my website. I want to keep all the code that works for 1 textfield and just change the URL that is loaded. I tried so many different ways. I don't get a error so I believe the URL is being cached somewhere. When I trace it It shows that the other text doc has loaded but the text field doesn't show any change. Is there away to reload/stop cache/delete a variable?


PHP Code:



stop();var newsURL:String = "text/news.txt"//Below is other variables if you wanted to swap out the actual variable versus the url./*bioURL:String = "text/bio.txt"tourURL:String = "text/tour.txt"*///var newsURL:String = "text/news.txt"var textLoader:URLLoader = new URLLoader();        var textReq:URLRequest = new URLRequest(newsURL);var style:StyleSheet = new StyleSheet();//style defined belowstyle.setStyle("a" , {color:"#CC0000"});style.setStyle("a:hover", {textDecoration:"underline"});function textLoaded(event:Event):void{    text_mc.text_txt.styleSheet = style;    text_mc.text_txt.htmlText = textLoader.data;    }textLoader.load(textReq);text_mc.text_txt.autoSize = TextFieldAutoSize.LEFT;textLoader.addEventListener(Event.COMPLETE, textLoaded);function onClickNews(event:MouseEvent):void{    newsURL = "text/news.txt";// I tried including this in the button textLoader.load(textReq);// also this    gotoAndStop(1);}news_btn.addEventListener(MouseEvent.CLICK,onClickNews);function onClickBio(event:MouseEvent):void{    newsURL = "text/bio.txt";    gotoAndStop(2);}bio_btn.addEventListener(MouseEvent.CLICK,onClickBio);function onClickTour(event:MouseEvent):void{    newsURL = "text/tour.txt"    //var newsURL:String = "text/tour.txt"    gotoAndStop(3);}tour_btn.addEventListener(MouseEvent.CLICK,onClickTour); 




Please help Thanks
http://www.theofficialvip.com/testUR...RLSwitcher.zip

Can Text Loaded From Variable Be Scrolled In A Dynamic Text Field ?
Simple problem here.

I put a dynamic text field on the stage. Added a scroll bar component and filled in the values in the parameter box. I typed lots of text directly into the text field, and it scrolled well. So far, so good.

Now I wanted to load that text from an external file, did the necessary action script und assigned the text to a variable, added this variable to the dynamic text field parameters.

Now the text field shows as much of the text as fits in it, but the text can not be scrolled any more. The rest of the text is just cut off.

Why the **** ???

And - can it be made scrollable somehow?

And if not - why the **** not ???

Text.Height For Loaded .php File Into Text Field
Hi,

I'm doing some basic linking of a Database to flash, loading text from a "content.php". Structure of php file is like:

myVar=TextGoesHere

I have a dynamic text box inside a movie clip that correctly displays the text. But the text box doesnt automatically resize. If I set it as 300 height, it'll show however much can fit in there. How can i fix this to make it resize itself?

Heres the code that is on the movieclip:


Code:
onClipEvent (load) {
loadVariables("Content.php", this, "GET");
}
And I simply have "myVar" set as the variable in the text box. I have made this work before by resizing the movieclip using the text.Height. But when I try and trace the text height from this, I just get 0.

Thanks in advance!

Bold-text In Dynamic-php-loaded Text-field
I have a text box that into is loaded some text from a php script. How can i make the text bold? What do i have to do to the text from the database that is loaded inot the text field for flash to be able to recognise that it needs to be emboldend?

<b> bold text here <b> ??

or something like that?

can it even be done?

Formatting Text In A Dynamic Text Field Loaded From XML
I've got a mysql table that feeds content into a php script which then formats it as XML and then gets loaded into a dynamic text field in flash 8.
What i'm trying to figure out is how on earth do i format this xml so that when its loaded into flash the main blog article is in italics? (goto
http://www.jacksrambles.com and then click on the blog button)
Do i do it in the PHP script or in the actionscript in flash.
Heres my current actionscript:
Code:

var theXML:XML = new XML();
theXML.ignoreWhite = true;
news_txt.html = true;
theXML.onLoad = function(){
   var itemNodes = this.firstChild.childNodes;
   for(i = 0; i < itemNodes.length; i++){
      var date = itemNodes[i].childNodes[0].firstChild.nodeValue;
      var title = itemNodes[i].childNodes[1].firstChild.nodeValue;
      var body = itemNodes[i].childNodes[2].firstChild.nodeValue;
      news_txt.text += date +"
" + title +"
" + body +"


";
   }
}
theXML.load("http://www.jacksrambles.com/news.php");

And heres the PHP script:
Code:

<?PHP

$link = mysql_connect("localhost","username","password");
mysql_select_db("jack777_site");

$query = 'SELECT * FROM news';
$results = mysql_query($query);

echo "<?xml version="1.0"?>
";
echo "<news>
";


while($line = mysql_fetch_assoc($results)) {
   echo "<item>
";
   echo "<date>" . $line["date"] . "</date>
";   
   echo "<title>" . $line["title"] . "</title>
";
   echo "<entry>" . $line["entry"] . "</entry>
";
   echo "</item>
";

}


echo "</news>
";

mysql_close($link);

?>

Button Function - Load Text File To Dynamic Text Field
Hey again,

okay straight into it. I have a few button named b1 b2 b3 and so on. Now these buttons i want to load a text file into a dynamic text field called myText. Now the text files which will be loaded contain html tags, so i want to have that property set.

Now current I have home.text loading into myText automically on swf loading. But when I click any of the buttons the text file won't change over.

Now my menu is seperate to the body. I have 3 swf files, one called base.swf, nav.swf and body.swf. Base.swf loads nav and body onto it.

here is what i have as the script.

Frame1 - body.swf

_root.onData = function(){
myText.html = true;
myText.htmltext = _root.myInfo;
}

loadVariables("home.txt", _root);
loadMovie("scratchy.swf", logo);


Frame1 - nav.swf - gigsbut (button)
on (release) {
loadVariables("gigs.txt", _root.body);
}


can anyone help point out where I am going wrong. I have a feeling I am not targeting the text field right from the button. If you could help point me in the right direction rather then give me the answer that would be good as I would learn better from that. Thanks

Wolfie

PS - Let me know if you want or need more info. Am happy to post it up.

Using Buttons To Change The Text File A Dynamic Text Field Loads?
I have a text field that loads text from a text document which works great for the news section of my site. However, is there a way I can keep that same text field and change it's content based on what button is pressed? For instance, if someone is viewing the "news" section of my site, and then they click on the "links" button, can I unload news.txt and load links.txt into that text field?

Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended


Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}

etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.

ie.

Code:
archivetitle.text = this.title1;
when button one is pressed



Code:
archivetitle.text = this.title2;
when button two is pressed.


Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!

Dynamic Text Field: Swap Text With Diff Variable In Same Ext. File
I'm using the recommended


Code:
loadText = new LoadVars();
loadText.load(_global.text_url2);
loadText.onLoad = function(success) {
if(success){}

etc..
which is working well. I just want to attach an action to buttons which will switch the text for different variables in the same text file, in a single text box named archivetitle.

ie.

Code:
archivetitle.text = this.title1;
when button one is pressed



Code:
archivetitle.text = this.title2;
when button two is pressed.


Basically, how do i access an already loaded text object to refresh to a new variable? Thanks!

Loading External Text File Into Flash Using Links From Dynamic Text Field Link?
I am using a dynamic text field to load in .txt files with html tags. I have a couple "click here" type links that I would like to use to load a different .txt document into the same dynamic text field instead of a url link like it does default. Is this possible? I'm sure I could put a button over the text since its not long enough to need a scrollbar but I would like a more dynamic and flexible way to do this if its possible.

Thanks

Using Text File For Dynamic Text Field From External Domain
I have a .SWF file on a (we'll say original.com, for reference purposes)... I have a dynamic text file in that .SWF file, which is currently loading a text file using the loadVariables function. I would like the movie to start loading the text file from another server, which we'll call new.com, for reference purposes.

I'm told that Flash will not load files from external domains, but is that it - end of story? Is there any way I can somehow get this to work?

I know some stuff about PHP, so maybe that'll help?

Any help would be greatly appreciated... Thanks.

Uploading An External Text File Into A Dynamic Text Field
I have created the dynamic text field, Now I need to know the code to upload the text from the txt. file from the server.

Thank You.

Loading A Text File Into A Dynamic Text Field
Ok I have a dyamic text field called "Load"
I have a text file that is a few paragraphs, Is it possible to load the text file into that field?
I was think Load=loadVariableNum("http://www.___.com/text/text.txt","GET");
Maybe something similar. Thanks

Exporting Text From A Dynamic Text Field To A .txt File
Hi

I posted a plea for help about a month ago on how I should go about searching text in another swf file. I solved that, with a little help from the forums, but I still need to do one more thing. Only 1 swf file (or page, since this is a website) is loaded at a time so I cannot search every page for a word or phrase. So what I want to do is somehow export the text in all my dynamic text fields when I export the swf file (only when I export it) which my main frame for the website can read. But I don't have a clue how to do this. I have written some code to read a .txt file so all I need is to somehow put the text from my pages into a .txt file on export. Alternatively I could copy and paste the text from each page into a readme file, but I don't want to have to update 2 sources for my website at once!

Thanks for your help; I wouldn't be able to survive without these forums

James

Load Text File In Dynamic Text Field
Hello everybody,

I am working on a flash site, but I have a problem with it. I want to load a text file to a dynamic text Field. but my dynamic text Field in is the movie clip.

So How i can do this.

Please suggest me.

Load Text File In Dynamic Text Field
Hello everybody,

I am working on a flash site, but I have a problem with it. I want to load a text file to a dynamic text Field. but my dynamic text Field is in the movie clip.

So How i can do this.

Please suggest me.

Calling A Text File Into Dynamic Text Field
I'm relatively new to Flash so please forgive any obvious questions! I've searched for ages and come up with lots of results about loading XML into Flash, but my problem is more basic than that.

I'm creating a site where each page is pretty much text. I want to achieve this by loading text files into dynamic text fields, since it's easier for me to maintain text files that regenerate movie clips etc.

I have figured out how to load a text file into a dynamic text field and how to use the 'read as HTML' option to invoke HTML formatting - but I've hit the (apparently common, judging from Google) problem about whitespace. As soon as I have a carriage return in the text file, all subsequent text is ignored.

I'm detailing what I've done below and would really appreciate any help

1. Create flash document
2. Add a dynamic text field
3. Set the instance name of this text field to be 'Text1'
4. Set the 'var' for this text field to be 'Text1'
5. Created a text file in Notepad named 1.txt and saved in same location as the .fla
5. In frame 1 (which also happens to be where the text field is placed) I have the following code:

Code:
loadVariables("1.txt", this);
I THINK I need to add some code somewhere about whitespace but I'm not sure what it is or where it should go...

Most of the above has been achieved through trial and error, copying things I've found online - not through any detailed understanding of what I'm doing so it is quite likely I've been stupid somewhere along the line!

Many thanks

Need To Load Text File In Dynamic Text Field
Hi I have to hand in a project tomorrow for class and have one last
obstacle I need to overcome tonight.

I am a flash novice and can not figure out how to load a text file into
a dynamic text field.

I have followed step by step instructions multiple times from the
Macromedia website and another tutorial website and each time I test
the movie the text file does not appear - the window is blank.

Help please?!?  Any recommendations or other websites I should try?



Sending Html Text To Html Dynamic Text Field But It Dosnt Show
code: theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);

The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

Sending Html Text To Html Dynamic Text Field But It Dosnt Show
ActionScript Code:
theNews = "<font color=#FF9900>"+newsRow0newsDate+"</font>"+": "+newsRow0newsStory+newline+"<font color=#FF9900>"+newsRow1newsDate+"</font>"+": "+newsRow1newsStory+newline+"<font color=#FF9900>"+newsRow2newsDate+"</font>"+": "+newsRow2newsStory+newline;
newsArea.textMain.htmlText = theNews;
trace("the news ="+theNews);
The data dosn't display but if i change the textMain.htmlText to .Text then it works, i need the formatted text.
Is ther something wrong with this?
i cant see anything wrong.

Cheers
Paul

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

Is It Possible To Change A Text Field From Dynamic Text To Static Text At Runtime?
The reason is because the dynamic text appears to be taking up about 90 % of the CPU usuage and I dont know any other way to reduce the CPU usage.

The text areas pull in lots of data from text files which slows down the program.

Any ideas?

'&' Don't Show Up In Loaded Text File.
i have an external txt file.
somehow is flash the characther '&' doesn't show up. How can I resolve this . '&' is a pretty common character.

christian

Plus Sign In Dynamic Text Field Doesn't Show In Browser
I have a dynamic text field with a long string to display, including a plus sign (it's a chemical equation). Everything looks fine inside the swf player. But inside the html page in the browser, the plus sign and everything after the plus sign in the string is omitted. Oddly, another text field string that also includes a plus sign shows up just fine.

This is the one that shows up perfectly, even in the html page:

equation1.the_equation = "G = G + RT ln";

This is the one that omits the plus sign etc. in the html page (everything after "kJ/mol" is omitted):

equation2.the_equation = "G = " + the_energy + " kJ/mol + (8.314 J/mol * K)(" + the_temp + " K) ln";

Can anybody help?

Input Text Field Doesn't Show Text...
Hi,

I've made a swf with an input-text-field. when i open it, i can write text and change it but -

When i loaded the swf into another swf, when i stand on the input field, it changes the cursor but i don't see any text in it.

please asist me,
thanks.

Show Begining Of Loaded Text File
Urrmm.... pls help...

I have a dynamic text field which loads in some external text files. Wat happens is when u click a button, it loads the corresponding text files. The loading ia ok.

My problem is for example, when i read the first text file, i scroll down the page to read(i have 2 buttons for scrolling up and down)and if half way through, i click to see another text file, this new loaded text file is not displayed from the begining!! it shows as where the last time the scroll button was.

How do i make sure that everytime the user click to read a new article, the article will be displayed from the begining of the file???

Hope u can understand my problem... thanks in advance... whoever...

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?

Embedded Flash Xml Gallery Doesn't Show One Dynamic Text Field
ok.

i made a movie holding a gallery/slideshow within my site index swf. When published, everything looks fine, except the text field just left of the "next" button that should say 1/23, 2/23, 3/23 and so on, relying on the xml. This works when i just look at the gallery movie swf as published online, but not when it's embedded in the index swf, i guess. the photos load fine though when the movie is embedded. am i doing something wrong?

i got the coding from a source on some forum (not this one) and modified only some design, no code, and nothing in the xml except the jpg titles, captions, and number of jpgs. all other dynamic text fields work.

the gallery alone is at www.flawlessmediarelations.com/gallery.html

and the embedded version is seen in www.flawlessmediarelations.com in the gallery section.

any suggestions? is there a way i should export the gallerly movie itself and then import into the index .fla? what's the procedure to ensure no missteps? i'm not advanced by any means in flash.

help!

thank you!

Show Percentage Of Loaded In Dynamic Text Box...
This is a really pathetic question, I know...

I want to show the percentage loaded in a dynamic text box. I assumed based on my preloader that I could just set up a text box with a variable name of "Percentage" and that would display the number!???

Here is my preloader script...

this.onEnterFrame = function() {
if (this.getBytesLoaded()<this.getBytesTotal()) {
Total = this.getBytesTotal()/1000;
Received = this.getBytesLoaded()/1000;
Percentage = (Received/Total)*100;
_root.submenuholder.gmenu.dyeloadBar.gotoAndStop(i nt(Percentage));
} else {
gotoAndPlay(2);
_root.cover.gotoAndPlay("open");
this.onEnterFrame = null;
}
};
stop();

Any ideas???

Thanks
Schimke

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


ThnX

Externally Loaded Dynamic Text Does Not Show In Html...
Hi. I'm new to this so don't be surprised if this is a stupid mistake. I went through a tutorial here called "Tutorial 34 - scrolling a text box II", in which text is read from a txt file into a dynamic text field. Everything worked fine.

The problem arises when I put the scroll box into a movie I was working on. It previews fine. It plays fine when uploaded (www.mysite.com/flash.swf). However when embedded into an HTML doc the movie doesn't show any text (www.mysite.com/flash.htm).

I wish I could discuss the code with you guys, but I have no script skills and pretty much copy-pasted the code. I have attached the files in the hope that someone will be able to look at them and tell me where I went wrong. Any help is most appreciated.

New Line In Text Field Loaded From XML File
I dont know am I tired of what?!?!
I have problem whit new line in txt field.

This example works:


Code:

var my_str:String = "This is firs line
this is second line.";
this.createTextField("first_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
first_txt.html = true;
first_txt.multiline = true;
first_txt.wordWrap = true;
first_txt.condenseWhite = false;
first_txt.htmlText = my_str;
but if I put this text in XML and load xml to flash, after trying to display text in first_txt text field flash doesnt render text with two lines, he doesnt recognize
.


I've put (<BR>) <BR> instead of
and it works but I prefer to use
.
Anyone know how to accomplish that ?

Also is there possibility to use html tags inside XML without using substitution < - < or > - > ?

Thanks for replies.
Cheers

New Line In Text Field Loaded From XML File.
I don’t know am I tired of what?!?! :)
I have problem whit new line in txt field.

This example works:
Code:

var my_str:String = "This is firs line
this is second line.";
this.createTextField("first_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
first_txt.html = true;
first_txt.multiline = true;
first_txt.wordWrap = true;
first_txt.condenseWhite = false;
first_txt.htmlText = my_str;

but if I put this text in XML and load xml to flash, after trying to display text in “first_txt” text field flash doesn’t render text with two lines, he doesn’t recognize “
”.

Thanks for replies.
Cheers

Hide/show Scrollbar With Dynamically Loaded Text From A .txt File.
hi,

i've been trying to figure out how to hide and show the scrollbar component with dynamically loaded text depending on whether the text overflows or not.

the problem i am having is that TextField.maxscroll keeps returning 1 because it is being performed before the text is loaded into the textfield. here is the code i am working with:

loadVariables("copy.txt", this);
scrollbar._visible = (text.maxscroll > 1);

how can i solve this?

Dynamic Text Field In Loaded Swf Movie
Hello

some help would be greatly appreciated

i have two movies

one movie (the main one) loads in other swf movies into itself

the second is a swf containing a dynamic text field with a scroll bar and some text

the problem i have is that when the main movie loads in the 2nd movie...the one with the text in it

the text dissapears but the scroll bar remains

any ideas on how to fix it? am i missing something?

Can't Get „ Character Loaded In Dynamic Text Field
I need the use of the chars ™ and ® but only the latter appears. I'm using a loadVars object and an external .txt file which is loading with success, but where I need the phrase "Soo Bahk Do™ Moo Duk Kwan®," I only get "Soo Bahk Do Moo Duk Kwan®"

Why doesn't "™" load?

Edit:
I'd like to add that I have chosen to embed all uppercase, lowercase, and punctuation marks, and I additionally added ™ and ® to ensure they'd appear, but, the trademark logo still does not appear.





























Edited: 11/11/2006 at 11:13:12 AM by PinoStyL

Css Loaded Text Into Masked Dynamic Field
Alright, I'm having some issues css'ing text loaded into masked field.

I can load the text in from a txt file. No worries. I can create links, no worries. My problem is simply the css.

I used this code from the kirupa tutoria


Code:
var format = new TextField.StyleSheet();
var path = "http://www.kirupa.com/developer/mx2004/code/flash.css";
var quick = "<br><p class='one'>The quick Kirupa jumps over the lazy dog.</p><br><p class='two'>The quick Kirupa jumps over the lazy dog.</p><br><p class='three'>The quick Kirupa jumps over the lazy dog.</p><br><p class='four'>The quick Kirupa jumps over the lazy dog.</p>"
format.load(path);
format.onLoad = function(success) {
if (success) {
output.styleSheet = format;
output.text = quick;
} else {
output.text = "Error loading CSS file!";
}
};
and then created the mask with this code


Code:
content_mc.setMask(mask_mc);
But it still shows up empty. I'm aware that the css code above will not import the text, but one step at a time lol. I have posted my fla here: http://dev.gad.ca/porubanec/index.zip

Any help would be greatly appreciated as I need to get this site done by Wednesday!

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

Detection If Text Loaded Is Longer Than Dynamic Field
Is there a way to detect if the text loaded in a dynamic text field from a txt file is longer than the dynamic field itself (thus it would need a scrollbar) ?

thanks

Why Won't Flash Render HTML To A Text Field From A Loaded File?
Im loading a news.txt file for my website and would like to render the textfield as HTML so that I can post links and breaks (w/ the carraige return code) in my text file, that are then loaded in. It will read HTML if I do it w/ in flash, but not from a file. WHY?!?

-Tyler

[f8]when My Text Is Loaded In Flash Only A Part Of My Text Field Is Loaded
Hi can anyone help?
when my text is loaded in flash only a part of my text field is loaded and
yes its multi line. attach is the source file

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

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

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



Results:
____________________________________________
Hello
How are you?|
Bye
____________________________________________


Please Help!
Thank you in advance!

Dynamtic Loaded Text Using Static Text Field
Can you dynamtically load text into a static text field in flash mx 2004? and still have the character spacing feature?

Dynamtic Loaded Text Using Static Text Field
Can you dynamtically load text into a static text field in flash mx 2004? and still have the character spacing feature?

How To Format External Text File To Show In Three Separate Columns Through Text Area?
Hullo everyone!

Could anyone suggest a piece of advice to visualize the following idea?

I should like to import an external .txt file into flash and display it by means of a text area component, which would take the better part of the screen and be skinned to fit the rest of the page design. The text ought to be formatted by way of an external .css file. Images are optional.

I can do all this allright, but what I should like to have is the text formatted to be displayed in three separate columns. The idea for this naturally comes from the Flash version of the Macromedia Edge newsletter.

I should be most thankful if anyone cared to come up with a solution.

Show Text Created In Javascript Text Editor And Saved In Xml File
Hi all

I am currently investigating how to show text in flash that is created using a javascript text editor in a CMS. The text is imported from an XML file and you can see an example of the data below.

My problem is that the current version of the text display component I've created for flash has no room for "weird" symbols. This means that a lot of characters are not displayed and somtimes only half the content is displayed.
Preferably, the component should be as good at showing html content as if ws displayed on a normal html webpage.

I also want to be able to load images into the text component. They should be specified in the XML code as simple <img> tags.

Do you have a good idea of a solution or do you know a super solution already made? Preferably a solution that can be used for commercial purposes.


Here is an example of content that should be imported into flash:
<data>
<paragraph id="paragraph1">
<heading><![CDATA[test]]></heading>
<image></image>
<imagedescription><![CDATA[]]></imagedescription>
<body><![CDATA[<h1><font size="3">Tekstmodul </font></h1>
<p>
<font size="3">Vinens udseende</font>
</p>
<p>
<font size="3">&nbsp;</font>
</p>
<p>
<font size="3">Vinens udseende har stor betydning for, hvilke forventninger vi har til vinen, allerede inden vi dufter til eller smager p vinen. </font>
</p>
<p>
<font size="3">&nbsp;</font>
</p>
<h2>
<u>
<font size="3">Iagttag vinen</font>
</u>
</h2>
<p>
<font size="3">Det er lettest at iagttage vinens farve, nr man holder glasset p</font>
</p>
<p>
<font size="3">sdfdsfs</font>
</p>
<ol>
<li>
<div>
<font size="3">dsfdsfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">sdfdsfs</font>
</div>
</li>
<li>
<div>
<font size="3">dsfds</font>
</div>
</li>
</ol>
<p>
<font size="3">s</font>
</p>
<p>sdfdsfds&nbsp;</p>
<p>dfsxcvxcvxc</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>asdsa</p><p>&nbsp;</p>]]></body>
<file internal="false">
<linkname></linkname>
<resource></resource>
</file>
</paragraph>
</data>

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