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




Loading Dynamic Text Into A Text Field In A Movieclip



Hi:

I have multiple dynamic text fields in a movieclip called "dragwindow"

On the main scene, first frame... i have the code

loadVariablesNum("todaysrates.txt", 0);

it doesnt load the text when I test the movie but when I put the dynamic text fields on the main scene it does load the text. i dont know what to do.. help please



ActionScript.org Forums > ActionScript Forums Group > ActionScript 1.0 (and below)
Posted on: 03-23-2007, 11:45 PM


View Complete Forum Thread with Replies

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

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

Loading Text Into Dynamic Text Field With Full Justify - Can It Be Done
Hi!

Trying to load in text into a dynamic text field that is html formatted and "full" justify the text.

Cant seem to full justfiy the text.
"full justify": spreads text out to fill up a whole line by automatically setting the spacing between words.

1)
I have tried using html formatting to align the text: <p align="justify"></p>
justify isnt accepted by flash

2)
set the text field in flash to full justify
works fine if text inputted into the dynamic text field before compiling
But if text is loaded in, then the formatting is lost.

Anyone got any ideas how to do this?

I'm thinking of using php's GD lib to create a jpg using text retrieved from a database with the text fully formatted in the jpg image and loading in the jpg image, but then I lose my html formatting.

any other solutions? or have I overlooked something here?

cheers

xiang

Loading Text Files With Hyperlinks Into Dynamic Text Field
I am using Flash 8 and 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="

Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and 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="

Loading Text Files With Hyperlinks Into Dynamic Text Field
Describes the mood or content of the topic posted 11-22-06 04:41 PM
I am using Flash 8 and 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="

Problem Loading Text Into Rotated Dynamic Text Field
Hi there

With help from Stratification, I've sorted out my previous problem, but alas it grew into a more insidious and tedious mire. Especially, I am sure, for people who know what theyre doing: I'm still rather daunted by Actionscript.

SO, I'm trying to load a text file, one.txt, into a dynamic text field. Simple enough, but this time I wanted to have the field rotated to a specific angle, and this requirement defeats my meagre knowledge. I've got a rotated dynamic text field, but I can only fill it with text typed into the actionscript (I don't know the term for this) as opposed to loaded from an external text file.

Strat kindly gave me the following code:

stop();
loadText = new LoadVars();
loadText.onData = function(src:String) {
if(src != undefined){
my_txt.text = src;
}
else{
trace("Woops, didn't load");
}
}
var my_fmt:TextFormat = new TextFormat();
my_fmt.font = "verd";
this.createTextField("my_txt", this.getNextHighestDepth(), 10, 10, 160, 120);
my_txt.wordWrap = true;
my_txt.embedFonts = true;
//If this text is what we see then something didn't happen correctly.
my_txt.text = "Not Loaded";
my_txt.setTextFormat(my_fmt);
my_txt._rotation = 45;
//Now that everything is set up, load our text
loadText.load("one.txt");

But when I try it, the "Not Loaded" text appears, so something went wrong, and it's beyond me to see what.

If anybody can offer any help I'd really appreciate it.

Cheers!

N

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

Loading External XML Text Into Dynamic Text Field?
Can someone please help me with loading an external line of text into a dynamic text field. I have done this before but can no longer remember.

Thanks
P

Loading Random/dynamic Text Into A Text Field
Hey everyone,

Could someone please help me work this problem out: When a user enters the website, it will pull text from some location (possibly an XML file) and load it into a text field. The trick is that I want it to randomly load a different chunk of text in each time the user opens the site. There are about 25 different small pieces of text I want to randomly load.

I'm thinking of using XML to store the 25 different text sentences, but am open to other ideas.

Thanks so much!

Loading Multiple Text Into Dynamic Text Field
I have several checkboxes that I would like to display their values in a dynamic text field, adding to what is previously there instead of replacing it. I also need the value to disappear from the text field if the checkbox is unchecked.

So far, I have (on each checkbox):


Code:
on(click) {
_root.textfield.text = this.label;
}
On the first frame of my form, I have the following for those checkboxes:


Code:
_root.checkbox.addListener();
What step do I need to take next?

Loading Random/dynamic Text Into A Text Field
Hey everyone,

Could someone please help me work this problem out: When a user enters the website, it will pull text from some location (possibly an XML file) and load it into a text field. The trick is that I want it to randomly load a different chunk of text in each time the user opens the site. There are about 25 different small pieces of text I want to randomly load.

I'm thinking of using XML to store the 25 different text sentences, but am open to other ideas.

Thanks so much!

Loading Text In Dynamic Text Field
is it possible to load text into a dynamic text field, and if yes how could i do this?
i've searched a few tutorials on dynamic text fields but it conecntrates on scrolling.

i would like unique text to load in the dynamic text field depending on which navigation button i click on.
(i.e. i click on "button1" and "blabla1" text appears in the text field. i click on "button2" and blabla2" text appears in the same text field.)

Loading Text From A .txt Into A Dynamic Text Field?
Can someone explain to me how to write the actionscript to tell a dynamic text field to load its content from a .txt file?
Any help would be greatly appreciated.

Controlling A Movieclip With A Value In A Dynamic Text Field
Okay I know all you experts are going to be laughing your asses off at me, but I am trying to solve this issue anyways.

I have a movieclip called pointer.mc and this movieclip has only two frames, on the first one the arrow points up and I have a stop(); action on this so it does not jump to the next frame which has the arrow pointing down and this frame also has a stop(); action on it.

Then I have a dynamic text field with an instance name of tiderise which is calling a variable from a seperate .txt file called tiderise.txt and the variable is &rise= . Now I have programmed the .txt file to only supply two variables either "up" or "down" and these change periodically during the day. (I am actually making an animated tide chart if you haven't guessed already)

What I want is to get some coding that will control the movieclip pointer.mc between frame 1 and frame 2 depending on the value in the dynamic text field with an instance name of "tiderise" that can only return the value's of "up" or "down"

Hope someone can help, I have spent already about 2 hours trying to figure this out with no luck, I only seem to be able to control other dynamic text fields with values from another dynamic text field, but cannot seem to get this to work on a movieclip.

Thanks.

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

Movieclip Width And Height Including Dynamic Text Field
Hi,

a graphist has defined a movieclip "actu" in the cs3 author part and i am instanciating this mc with as3.

the dynamic text fields (title, and texte zone under) in the mc have defined height and width, multiline, but when i add the mc with addChild, well, all the elements of the mc are scaled and the text zone goes way beyond the limits on the right.

I even tried to fix actu_mc.width before addchild but that doesn't change anything.

What do i miss ?

Scrolling Dynamic Multi-text-field XML Driven MovieClip
I have created a movie clip which contains 3 dynamic text fields (title, body, date). Together this group of fields represents one item of content. These fields are populated from an XML file which results in multiple items of content. This is accomplished by iterating through the XML and for each node uses the attachMovie function to stick another instance of the clip on the stage for each group of content. Note that the body text fields are dynamically sized to fit the length of the content.

The problem is the overall height of the clip is larger than the stage, as a result I am attempting to create a scrolling mechanism without luck. I have tried using the scrollpane comp. in MX and tried to do some masking but regardless of which method I try the movieClip is displayed with out respecting the bounds of the pane/mask and is not controllable by the scroll buttons.

Does someone have an idea on how to do this? If so your help would be appreciated.

Dynamic Text Field Not Loading...
Alright, this works perfectly on my computer (internet) or while testing, yet doesn't work from a few other test computers.


Code:
var i = 0;
var j = 0;
var qna:LoadVars = new LoadVars();
qna.onLoad = function(success:Boolean) {
if (success) {
trace("Worked");
questionNum = randRange(1, 207);
questionText = qna["Q"+questionNum];
answerText = qna["A"+questionNum];
} else {
trace("Load Failed");
questionText = "An error has occured.";
}
};
qna.load("http://www.briancomeau.net/questions.txt");
nextBut.onRelease = function() {
if (inputText == answerText) {
statusText = "";
questionNum = randRange(1, 207);
questionText = qna["Q"+questionNum];
answerText = qna["A"+questionNum];
inputText = "";
} else {
statusText = "Incorrect.";
inputText = "";
i++;
}
};
answerBut.onRelease = function() {
inputText = answerText;
j++;
};
function randRange(min:Number, max:Number):Number {
var randomNum:Number = Math.floor(Math.random()*(max-min+1))+min;
return randomNum;
}


The questions.txt is at the address that I'm pointing to. It used to be a relative reference but that wasn't working either. Any suggestions?

Loading Img In Dynamic Text Field
Hello,

I am facing very weired problem. I have tried and had success loading an img into a dynamic textField at run time. But sometimes it takes littile long to load img and gives me an impression that image is not getting loaded.

My textFields html, multiline, autoSize, wordWrap properties are set to TRUE. But still sometimes i dont get my image loaded in to the textField.

Is there anyway i can handle this? Or Is there any way i can trace this issue? My images are also having size of max 7kb.

Any help/suggession will be appreciated !!!

Ashish

Loading Img In Dynamic Text Field
Hello,

I am facing very weired problem. I have tried and had success loading an img into a dynamic textField at run time. But sometimes it takes littile long to load img and gives me an impression that image is not getting loaded.

My textFields html, multiline, autoSize, wordWrap properties are set to TRUE. But still sometimes i dont get my image loaded in to the textField.

Is there anyway i can handle this? Or Is there any way i can trace this issue? My images are also having size of max 7kb.

Any help/suggession will be appreciated !!!

Ashish

XML/PHP Loading Into A Dynamic Text Field?
At the gotoandlearn.com website, there is a tutorial on how to use flash, php and mysql. What i want to know, is how do i configure the php file to load more than one row from the database? I'm trying to use this method to create a blog. I have three rows in my database, called title, date, and article. At the moment i can only load one of the three rows. I want to load all three of them.
Also how can i load this xml/php file into a dynamic text field instead of a list component. The list component is no good to me as it doens't provide the functionality that i need.
Any help would be greatly appreciated
Thanks, from JacoX

Click http://www.jacksrambles.com/connect.php for the XML file

Loading XML Into A Dynamic Text Field?
At the gotoandlearn.com website, there is a tutorial on how to use flash, php and mysql. What i want to know, is how do i configure the php file to load more than one row from the database? I'm trying to use this method to create a blog. I have three rows in my database, called title, date, and article. At the moment i can only load one of the three rows. I want to load all three of them.
Also how can i load this xml/php file into a dynamic text field instead of a list component. The list component is no good to me as it doens't provide the functionality that i need.
Any help would be greatly appreciated
Thanks, from JacoX

Click http://www.jacksrambles.com/connect.php for the XML file

Calling Dynamic Text Field On Main Timeline From Inside Movieclip
Hi, this is probably really easy, but I can't seem to figure out how to do it.

I made a little login screen in a separate movieclip on my homepage. When the login is correct, frame 8 of the main timeline is called, and I would like it to say "welcome (name here)." Unfortunately, I don't know how to call the dynamic text field on Frame 8 (instance name "greetings", variable saved as "welcome") from inside the movieclip on Frame 2.

Here's the code from the login button in the movieclip:

on (release, keyPress "<Enter>") {
if (user eq "name" and password eq "password") {
_root.gotoAndStop(8);
//trying to access dynamic text field on frame 8 of main timeline, but nothing works!
_root.greetings.welcome = "Welcome, "+ user;
_root.welcome = "Welcome, " + user;
welcome = "Welcome, " + user;

I just don't know! By the way, this is in Flash MX

Dynamic Text Field Variable Loading
Okay, so this is driving me up the wall.

I have dynamically-generated instance names and variables, and I need to be able to fill dynamic text files with the content of those variables.

So, what I have right now is very simple:
_root["variable" + _name]

This traces fine, it parses the variable (variable4, for instance) and returns what I want it to return. But THE TEXT FIELD WILL NOT READ IT. Every variation I've tried on it, the text field still returns blank. The text field is running on the same level as the trace I did, not that this should matter anyway.

Oh please help me...

Loading A .swf With A Dynamic Scrolling Text Field
I have been fighting with this thing for the last two weeks, and I am getting no where. I really want to get my site finished before I leave for Japan next Wednesday, so I am in a bit of a hurry, and would appreciate any help you guys could give.

I have a movie that loads a .swf that loads a .txt document. The problem is, no matter what I do, I cannot get the bloody thing to scroll....

Loading Text From External .txt Into Dynamic Field
I have the following problem: when I want to load some big text from a .txt file into a dynamic field, then just a part of the text is showing, and not everything. My scrolling and all stuff works, but it just cuts off the text.

This is what I've got:
- dynamic field: Multiline; Variable:text;HTML;Word Wrap;
Selectable
Size: W:465.9 ; H:329.7
- A button which I click to load the text into the dynamic
field:
Actions:
on (release) {
loadVariablesNum ("musicvideos#.txt", 0);
}

This is like it shows when I test the movie:
Darkness - In My Dreams
Deftones - Be Quiet And Drive
Deftones - Bored
Dimmu Borgir - Entrance
DJ Tiësto - Coast Home
DJ Tiësto - Flight 643
DJ Tiësto - Theme From Norefjell
DJ Tiësto

While it must be:
Darkness - In My Dreams
Deftones - Be Quiet And Drive
Deftones - Bored
Dimmu Borgir - Entrance
DJ Tiësto - Coast Home
DJ Tiësto - Flight 643
DJ Tiësto - Theme From Norefjell
DJ Tiësto & Ferry Corsten Mix - Gouryella
Dune - Are You Ready To Fly
Dune - Dark Side Of The Moon
Dune - Electric Heaven
Dune - Hand In Hand
Dune - Hardcore Vibes
Dune - I Can't Stop Raving
Dune - Keep The Secret
Dune - Million Miles From Home
Dune - Rainbow To The Stars
Dune - Who Wants To Live Forever
Dune Vs Trubblemaker - Hardcore Vibes

I hope someone please can help me?

This is what's the textfile is named and in same folder as my movie is:
musicvideosd.txt

And in the file it looks like this:
text=Darkness - In My Dreams
Deftones - Be Quiet And Drive
Deftones - Bored
Dimmu Borgir - Entrance
DJ Tiësto - Coast Home
DJ Tiësto - Flight 643
DJ Tiësto - Theme From Norefjell
DJ Tiësto & Ferry Corsten Mix - Gouryella
Dune - Are You Ready To Fly
Dune - Dark Side Of The Moon
Dune - Electric Heaven
Dune - Hand In Hand
Dune - Hardcore Vibes
Dune - I Can't Stop Raving
Dune - Keep The Secret
Dune - Million Miles From Home
Dune - Rainbow To The Stars
Dune - Who Wants To Live Forever
Dune Vs Trubblemaker - Hardcore Vibes


Thx for the help

Loading Text Into Flash Dynamic Field
HEY guys,

I've got a question for you guys.
this must be really easy for you, I want to load a txt-file into flash.
I heard it is possible loading in dynamic text fields.

Can somebody help me out here.

THANX GUYS

Loading Image Into A Dynamic Text Field
I need to be able to display images in a dynamic text field using HTML. I have MX2004, and it's supposed to be possible.

Here is basically the code I am currently trying to use:


PHP Code:




myText_txt.html=true;
myText_txt.htmlText = "<img src='../external/mindbutton.jpg' id='link01' width='88' height='31'>";







Unfortunately that doesn't display the image at all. I've double and triple checked to make sure that URL is right also, and it is. Is there something that I'm missing?

Problem Loading Text Into Dynamic Field
Hi,

I am trying to create a tool that can create banner ads using templates. A flash template will contain dynamic text fields and the text will come from the Ad Creator. The text will be loaded using loadVars file.

The problem is when I am passing the configuration file e.g.

teaser=Hi&message=New Pizza Place&action=Call Now

only the first field is getting loaded, nothing else after that. Does anybody know what the problem is.

I am trying to do something like this - www.advariant.com
login : fp5585
password: password

Any help appreciated.

Pankaj

Loading External Swf With Dynamic Text Field
is not visible...does that have something to do with it being transparent when it is called???

Loading The Value Of A Variable Into A Dynamic Text Field
I have a variable that changes according to the position of a slider. I would like to display the numerical value of this variable inside a dynamic text field (created on the stage during authoring).

I tried many approaches, but the one I was sure would work didn't. I referenced the "text" value of the dynamic text field from the frame in which the variable was instantiated and used. This did not work, so I am not sure what to do.

Here is basically what I did:


ActionScript Code:
var sp:Number = null; //controls the speed of the slideTo function// sets the value of sp based on the position of the speed slideronEnterFrame = function(){        sp = this._parent.menuCntlMC.fasterMCholderMC.fasterMC._y*.037;    }this._parent.menuCntlMC.indicatorMC.text = sp;

help!

Loading HTML Page On Dynamic Text Field
How do you load the html page on a dynamic text field? Is this possible. I want to display the text with a link on it on a dynamic text.

Trouble Loading Variables To Dynamic Text Field
I am trying to display text from a text file named units.txt (stored in the same folder) The swf has a dynamic text box called myText. The swf has buttons with this code:
on (release) {
_level0.myText = Unit1;
}
The first frame of the movie has code like this:
loadVariablesNum("units.txt",0);
(I have tried including the entire url as well as just the folder above)
This works fine when I test the movie. It also works when I test it through the index.html (on my computer). But it does not work on my website.
Does anyone know what I am doing wrong?

Txt.file Loading In To Dynamic Text Field Problem.
My problem is that the field wont show some symbols like Ää and Öö. What to do? please help.

��rrrgrhr���hh <-- Text shows mostly like that... Ääärrrghööööh :P


Quote:





text_lv = new LoadVars();
text_lv.onLoad = onText;
text_lv.load("lam.txt");
function onText() {
yritys_txt.htmlText = text_lv.lamText;
}






Thats my code...

Loading An Image Into A Dynamic Text Field Via .txt File
I am attempting to load an image into a dynamic text box that scrolls. I have the textbox set to render as html and in the .txt file I have the following code:

[html]
scrolltext=<img src='images/bioPhoto.jpg' align='left'/><br/><br/>Rob began playing guitar in t......
[/html]

The above works but only when I view it flash and doesn't work when viewing over the web. I have even put in the absolute path to the image to load so I know it isn't a path issue.

Does anyone know a way to get this to work or a better way around it?

Thanks in advance

Problem Loading .php Page Into Dynamic Text Field
Please help,

I am trying to load a .php page into a dynamic text field in my flash file. I have accomplished this with an .html file, and have had some success with the .php.

However, the file I'm using has a "repeat region" in the php code and, when it shows up through the flash file, it only shows the first entry in the database.

I am using the following code for the dynamic text field:

var format = new TextField.StyleSheet();
var path = "html/foe.css";
format.load(path);
format.onLoad = function(loaded) {
if (loaded) {
window_txt.styleSheet = format;
var pageLoader=new XML();
pageLoader.ignoreWhite=true;
pageLoader.onLoad=function(){
window_txt.htmlText = this;
}
pageLoader.load("html/annie-tour.php");
} else {
window_txt.text = "Error loading CSS file!";
}
}
stop()

the php file is at www.foerecords.com/html/annie-tour.php

Is actionscript not able to process the "repeat region" command? Am I doing something wrong.

Thanks for any help y'all may give.

Loading French Accents Into A Dynamic Text Field
Greetings - oh wonderful warriors of cyberspace!

I'm trying to get french characters (such as: à,è, etc) into a dynamic text field. I've embedded the appropriate glyphs and I'm encoding the PHP with the "urlencode()" function...

However, the string cuts off in the text field prior to any of these characters...

Would anyone out there be able to shed any light on this matter...?

Thanks in advance...

Peace, love and tea,

Bumblepuppy

HTML Page Not Loading In Dynamic Text Field
Hi guys,
i referred the tutorials from newweb.co.uk to create a flash file with dynamicaly loaded text and images from an html file. This works very fine in my computer where the text and images are loaded into the dynamic text field..but when i check in other machines...the swf file is not loading the html file into it. The html files are stored in the same location as the swf file, so the question of wrong path does not come into picture....how do i rectify this problem....please help....

Thanks in advance

Loading French Accents Into A Dynamic Text Field
Greetings - oh wonderful warriors of cyberspace!

I'm trying to get french characters (such as: à,è, etc) into a dynamic text field. I've embedded the appropriate glyphs and I'm encoding the PHP with the "urlencode()" function...

However, the string cuts off in the text field prior to any of these characters...

Would anyone out there be able to shed any light on this matter...?

Thanks in advance...

Peace, love and tea,

Bumblepuppy

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

Loading A Shared Object Variable In A Dynamic Text Field
I'm working on creating a simple Welcome 'your name here' page and I want to use the UserName variable from a local shared object in the text field. Thought I was doing it right but it doesn't look that way. This is what I did:

function welcome(){
userData_so = SharedObject.getLocal("userData");
welcome_txt.text = "Welcome " + "userData_so.data.userName";
}
welcome();

Unfortunately, it literaly types it onscreen as "Welcome userData_so.data.userName" which isn't what I want of course. So where'd I go wrong?

Loading A Different File For Each Button In A Single Dynamic Text Field
Hi,

I'm trying to make something where I have many buttons associated to a different file. Each time a button is clicked it should load the text from that file into the dynamic text field. Also in future, just to be able to open any file associated to the button dynamically

------
This is the code I put in for each button:

on (release) {
_root.gotoAndPlay(1);
}

This is the code I got from Kirupa.com so that the file text can be displayed in the dynamic text field:
/****************************************
*********************
****************************************/
ranFile = new LoadVars();
ranFile.onLoad = function(success) {
if (success) {
ran = this["txt"];
file_txt.text = ran;
}
else {
file_txt.text = "The text failed to load due to an error";
}
}

//need to figure out how to get fileNum to be able to determine which file Number //from which button was clicked
fileNum = "1"

//fileNum represents the number in the file name
ranFile.load("\assets\button_load_file" + fileNum +".txt");

stop();


------

Thanks!

Loading Var. From Ext. File Into A Flash Variable (not Into A Dynamic Text Field)
Hi!

I'm trying to load a simple variable &myVar from a php file into my flash movie, that's a blank movie with just actionscript in it.

I tried to load this &myVar into a dynamic Text field and it works fine, but I can't get this value into a flash variable to manipulate it with actionscript.. Must be simple.. My actionscript it

PHP file:

PHP Code:



$x = "abc";print "&myVar=$x"; 




ActionScript:
ActionScript Code:
loadVariables("http://www.sywebspace.co.uk/cleveland/new/analog.php", this, "GET");





How to get the myVar value into a FLASH VARIABLE?

not into a dynamic text field, please, because I did this already but it's not what I want.

Many thanks for any help!!!

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?

Loading A *.txt File Using LoadVars() Into A Dynamic Text Field With Html Tags?
I'm loading a *.txt file using loadVars() into a Dynamic Text Field and having no trouble with that part.

But I am wondering how I can add html tags within the *.txt file and have flash render it as it does with strings internally? Is there a way of doing this with AS? Anyone got any ideas?

Loading Dynamic Text In Movieclip
Hi, i've got a problem with loading text into a movieclip. Ive downloaded a fla file and are using it's code as a referance, I found the file on this forum I believe.

My dynamic text field loads the text perfectly when I put it on the main timeline, but not when its in the movieclip.

The text box is called "newsBox"

The movieclip where the textbox is put is; _root.enterb.menuload.menu.mainmenu

The code in the frame:

loadText = new loadVars();
loadText.load("text1.txt");
loadText.onLoad = function(success) {
if (success) {
// trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};


The code in the text file:

myNews=This is Text one


- Bad Fish Ent.

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


ThnX

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

Loading Dynamic Text Inside Movieclip
PLEASE HELP!!! I'm in desperate need of assistance. I've been at this for a while and can't figure it out.

I need to:
*Load Dynamic text into a container that (fades in the content and stops). It needs to be controlled by a movie clip acting as a button. I can't figure out how to link up the code so that it works properly. I have five different buttons that will bring up different text each time it is clicked. It needs to fade in with each click. I was able to set it up correctly if everything is on the main timeline, however I have a scrolling banner that has the movieclips (acting as buttons) nested within them and the code will not work. So I am clueless at this point. PLEASE HELP if you know how to do this! I would gladly appreciate it.

Movie clip as button has the following code:









Attach Code

on (release) {
loadText = new loadVars();
loadText.load("text1.txt");
loadText.onLoad = function(success) {
if (success) {
//trace(success);
newsBox.html = true;
newsBox.htmlText = this.myNews;
}
};
}

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