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




Help With Text Fields And Inputting Text From External Text Files



help with text files and paths

i need some help with input text field and text files.

i have a 'presentation' movie that has three buttons. these buttons influence a sliding menu that has three sections to it. the sliding menu is a movie clip made up of 3 separate graphic elements and is placed on the main stage. the code on the movie clip is:

onClipEvent (load) {
var a = 5;
var d = 3;
var newX = _x;
var oXPos = _x;
var myXspeed = 0;
}
onClipEvent (enterFrame) {
myXspeed = ((_x-newX)/a+myXspeed)/d;
_x -= myXspeed;
}



and the code on the frame action is:

fscommand ("allowscale", false);
var xPositions = new Array(0, 205, -190, -580);
function jumpTo (number) {
slider.newX = xPositions[number];
}
stop ();



i now want to be able to have an input text field on each separate element of the sliding menu that pulls text from 3 sepaprate external text files and i can't get it to work. i'm ok if i put the text field on the main stage and can pull the info in from a text file using

loadVariablesNum ("text.txt", 0);

placed on a frame action. how do i adapt this so that it works for a text field put on the sliding menu. and how do i work it if i have three separate text files and three different text fields? i'm not very good at understand the paths needed to reach certain elements within a movie and where to put these actions.

should the load variable be on a frame actions or on a button action and whats the path to my input text field???

any help appreciated - as its driving me mad.

thanks

eskymo



FlashKit > Flash Help > Flash ActionScript
Posted on: 03-13-2002, 06:47 AM


View Complete Forum Thread with Replies

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

Inputting External Text
Hi,

I'm very new here and i'm also new to flash. I'm picking things up quite well and this is the first really difficult thing i've come accross only because i can't find a tutorial about it anywhere.

How do I import text into a dynamic text box from an external text file?

i'm creating a website for a band and they need a gig guide page which they will need to update regularly and i thought this would be the best option.

If anyone could help the new guy he'd really appreciate it

Loading Dynamic Text Fields Using External Files
I'm loading a dynamic text field using an external .txt file on the same folder with the url=htext.txt

When I view the swf file, it works. However if I view the htm page with the swf embedded in the page, the text doesn't show up.

Can anyone tell me why or what did I do wrong?

Thanks,
gw630

Loading Dynamic Text Fields Using External Files
I'm loading a dynamic text field using an external .txt file on the same folder with the url=htext.txt

When I view the swf file, it works. However if I view the htm page with the swf embedded in the page, the text doesn't show up.

Can anyone tell me why or what did I do wrong?

Thanks,
gw630

Loading Text Files Info Text Fields On AS3
Hey guys, I am following some examples from Flash CS3 Help files and some portions of the ActionScript 3.0 Cookbook on TextFields. Here's the code I currently have on my first frame of the timeline. When I test the file, I get "TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set htmlText() at textFields_fla::MainTimeline/textFields_fla::frame1()"

What's wrong?









Attach Code

import flash.display.Sprite;
import flash.events.*;
import flash.net.*;

var source:String = "html.txt";
var dataFormat:String = URLLoaderDataFormat.TEXT;


var loader:URLLoader = new URLLoader();
loader.dataFormat = dataFormat;
var request:URLRequest = new URLRequest(source);
loader.load(request);


var myT:TextField = new TextField();
myT.autoSize = TextFieldAutoSize.LEFT;
myT.width = 300;
myT.wordWrap = true;
myT.htmlText = loader.data;
addChild(myT);

Load External Text Into Multiple Text Fields
Can you load one (1) external .txt file into multiple text fields ?
I'm trying to create seperate variable names for the seperate text fields and reference them from one .txt file - - Is this possible ?

Loading Text Into Text Fields From An External File…
I have a file supplied to me with a couple of text boxes in it.

My friends would like to easily update the content of these boxes by using an external text file.

I have tryed tests with the "loadVariables" property, but can't seem to get any text to load at all. I have a text file called "Content.txt" and the dynamic text box has an instance name of text1 (original I know) and a variable name of myText.

The beginning of my text document starts of with "myText = "…

The line of code I was using was
loadVariables("Content.txt", text1);

this produced no result… does anyone have any suggestions for this problem?

Cheers.
Joel

[F8] Displaying HTML Entities In Dynamic Text From External Text Files
I'm pulling content for a dynamic HTML formatted text box from a series of client-editable text files using LoadVars.

Flash 8 allows for the use of HTML entites in HTML text, and my client's text includes copyright and trademark symbols.

If I load some HTML text from within a script, the text box displays entities fine (like &174 to display a ® trademark symbol).

However, when using LoadVars to load the text from an external text file, I can't use ampersands in the text file, because the LoadVars interprets them as indicating the start of another variable.

I tried using Unicode, for example u00ae. Again, this works fine when the text is drawn from within a script, but when the loadVars displays it from the text file, it just displays the Unicode as a literal string. Other HTML formatting in the text files, such as bold or italic, displays fine.

Does anyone know a workaround for this (short of converting all 80 of my text files to XML)?

Linking External Text Files To Load Into A Text Field
hmmz.. i followed this tutorial.. http://www.flashkit.com/tutorials/In...40/index.shtml

Actionscript for Flash 5 dummies: Scrolling a text box II

so i manage to get everything to work so far minus the scroll bar which i omitted..

now i would like to be able to have different buttons to load different text files externally into the same text field..
what code shld i put for this buttons??

the movie clip of the textfield+scroller is called textbox
the textfield is called textbox2
the var of the textfield is called welcome

hope someone understands me..

?dynamic Text: Retrieving External Text Files
I'm trying to retrieve the text from a text file and put the text into a dynamic text field with a variable called "text"
Here's what I've done:
created the dynamic text field with the variable
created txt.txt and it's contenst are "text=blablabla"
placed on frame 1 the actionscript
"loadVariablesNum(txt.txt, 0)"
it says it's having trouble opening the folder that both these files are in (they are in the same folder)... any suggestions?

Loading Dynamic Text Thru External Text Files
Okay, i've looked at the dynamic text questions but am still having a little trouble. I can make dynamic text load if the dynamic text is on the main timeline, but what if it's embeded into a movieClip?
On my main timeline, i have a layer called actions. On a particular frame, i have the following:

loadVariablesNum("about.txt", 0);

A few frames down, i have a movie clip called "placeHolder" that slides in. This movie clip contains a dynamic textbox with both an instance and variable name of "aboutText".

The text file about.txt reads as follows:
aboutText=This is a test

When i test run my movie and it gets to the part where the variable should load, my placeHolder comes across the screen, but the dynamic text box reads:

_level0.instance18.aboutText



I changed something (don't remember what), and it made the actual text from the file show up in a new browser window!!!

How do i get my text to load into the movie clip?

if you need to see the fla and text file, post a request for the files with e-mail address..
Is there a way to attach files here?

Question About External Text Files And Dynamic Text
hello. Im working on a website in flash. The link to the site is www.worldofbuffy.com/ele/home.html

when you click on news you can see the scrollbar on the far right side of the screen and the text loads(in newest version not uploaded to site yet). The problem i am having is with html tags in the text file.. <font color="#FFFFFF"> <p> and <b>

its showing the code in the final product but not produceing the color change / boldness / or paragraph break.

Any help will be helpfull.

**edit**

Right now a friend is hosting my site till i get my domain registered. So the version you see currently might not be the uptodate one with the text showing up. I've sent the files over but its 4am her time. Im sure the correct files will be uploaded by 12pm pst today.

Loading External Text Files Into A Text Scroller
hello,
i'm second guessing my methods of loading info. from a text file into a text scroller , i've created. what i have is a text scroller, but depending which button i press, i would like new content loaded into that textfield(scroller) I sorta have an idea, but not sure of the procedure ..can some help ...Cheers!

Dynamic Text & External Text Files
Hi. When getting text from a .txt file to a Dynamic Textbox, I can see for like 0.3 seconds something like "_lever0.content" and then my normal text appears. "content" is my Dynamic Textbox.


Code:
System.useCodepage=true;
content.html=true;
myLoadVar=new LoadVars();
myLoadVar.load("content/linkscontent.txt");
myLoadVar.onLoad=function(success){
if (success==true){
content.htmlText=myLoadVar.content;
}
};
Thanks in advance.

Mark K.

Need Your Help Loading Multiple External Text Into Multiple Dynamic Text Fields
Hi all,

I can't seem to get the external tex file loaded into a dynamic text field.
I am trying to display an external text file into a dynamic text field using a next page button. The layout is this I have 80 frames. Frames 1-10 with a static text field with text & a next page button and Frames 11-20 with a dynamic text field with a previous button. I want to onRelease of the next page button in the first set of 10 frames to load the external text file into the dynamic text field of the next set of 10 frames. Also, being able to jump back and forth from next page to next.

Below I layed out all the contents in my test.fla file.

Hope this will give you an understanding of what I am trying to do.

I need to be able to click a next page button and loading an external text file into a dynamic text field, vice versa.

I have set the variable in the text file.

I used this code to try and load the text file into a dynamic text field, using actinscript. Which frame or frames do I need to include this script in? I know it has got to be multiple ones.

var styles = new TextField.StyleSheet();
styles.load("cssdocName.css");

textfieldName.html = true;
textfieldName.styleSheet = styles;

var lv:LoadVars = new LoadVars();

lv.onData = function(content) {
textfieldName.text = content;
}

lv.load("htmldocName.html");

Thanks for your time!


I have 6 different layers with 80 frames:

Layer titles:
- labels
- actions
- next_prev buttons
- contents
- tabs
- outline

Now in each layer:
- outline layer: just an outline border [displayed in Frames 1-80]

- tabs layer: movie clips tab1, tab2, tab3 within each tab is a movie clip
called bottomline [displayed in Frames 1-80]

- contents layer: Static Text Field [displaying text in Frames 1-10]
Frame 1 ActionScript
stop();

Dynamic Text Field instance name dpmoreinfo_txt
[displayed in Frames 11-20]
Frame 11 ActionScript
stop();

Dynamic Text Field instance name dpmoreinfo2_txt
[displayed in Frames 21-30]
Frame 21 ActionScript
stop();

Static Text Field [displaying text in Frames 31-40]
Frame 31 ActionScript
stop();

Dynamic Text Field instance name spmoreinfo_txt
[displayed in Frames 41-50]
Frame 41 ActionScript
stop();

Static Text Field [displayed text in Frames 51-60]
Frame 51 ActionScript
stop();

Dynamic Text Field instance name cmoreinfo_txt
[displayed in Frames 61-70]
Frame 61 ActionScript
stop();

Dynamic Text Field instance name cmoreinfo2_txt
[displayed in Frames 71-80]
Frame 71 ActionScript
stop();

next_prev buttons
layers: dpmoreinfonext_btn [Frames 1-10]
Frame 1 ActionScript
dpmoreinfonext_btn.onRelease = function() {
gotoAndStop("dpmoreinfo");
};

dpprev_btn & dpmoreinfo2next_btn [Frames 11-20]
Frame 11 ActionScript
dpprev_btn.onRelease = function () {
gotoAndStop("DataPulse");
};

dpmoreinfo2next_btn.onRelease = function () {
gotoAndStop("dpmoreinfo2");
};

dpmoreinfoprev_btn [Frames 21-30]
Frame 21 ActionScript
dpmoreinfoprev_btn.onRelease = function () {
gotoAndStop("dpmoreinfo");
};

spmoreinfonext_btn [Frames 31-40]
Frame 31 ActionScript
spmoreinfonext_btn.onRelease = function () {
gotoAndStop("spmoreinfo");
};

spprev_btn [Frames 41-50]
Frame 41 ActionScript
spprev_btn.onRelease = function () {
gotoAndStop("StructurePulse");
};

cmoreinfonext_btn [Frames 51-60]
Frame 51 ActionScript
cmoreinfonext_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};

cprev_btn & cmoreinfo2next_btn [Frames 61-70]
Frame 61 ActionScript
cprev_btn.onRelease = function () {
gotoAndStop("Courses");
};

cmoreinfo2next_btn.onRelease = function () {
gotoAndStop("cmoreinfo2");
};

cmoreinfoprev_btn [Frames 71-80]
Frame 71 ActionScript
cmoreinfoprev_btn.onRelease = function () {
gotoAndStop("cmoreinfo");
};

labels layer: Frame name is DataPulse [Frame 1-10]
Frame name is dpmoreinfo [Frame 11-20]
Frame name is dpmoreinfo2 [Frame 21-30]
Frame name is StructurePulse [Frame 31-40]
Frame name is spmoreinfo [Frame 41-50]
Frame name is Courses [Frame 51-60]
Frame name is cmoreinfo [Frame 61-70]
Frame name is cmoreinfo2 [Frame 71-80]

Actions layer: Frame 1 ActionScript

contents.stop();
numberOfTabs = 3;
for (i=1; i<=numberOfTabs; i++) {
line = eval("tab"+i);
line.onRelease = function() {
for (i=1; i<=numberofTabs; i++) {
otherTabs =
eval("this._parent.tab"+i);
otherTabs.bottomLine._visible =
true;
}
this.bottomLine._visible = false;
contentFrame = Number (this._name.substr(3,
1));
this._parent.contents.gotoAndStop(contentFrame);
}
}
tab1.bottomLine._visible = false;

tab1.onPress = function() {
gotoAndStop("DataPulse");
};

tab2.onPress = function() {
gotoAndStop("StructurePulse");
};

tab3.onPress = function() {
gotoAndStop("Courses");
};

Dynamic Text Files/fields, Someone Please Help Me
Okay, just when I thought I had this dynamic text thing down-packed, I publish my site only to find that it's not pulling up the text files! When previewed on my local machine, using IE or the Flash player, everything works fine, but then when I put it online (www.holtequipment.net), the buttons don't work and when they do, they're pulling up the wrong text files. I've gone back and forth with the actionscript thinking it was just oversight, but again, it works on my local machine, just not on the web.

Can someone give me some pointers or a work around? Right now, I just have an onRelease event to each button and then loadVariables(name_of_file; 'target'). That much has been easy but I've not been able to figure out why it won't cooperate on line!

Help me someone, please!

Loading Txt Files Into MX Text Fields
my very first post .
how exciting.

I am trying to load a txt file, into a text field, that is attached to a flash MX component scrollbar.

The text loads with no problem at all. The problem is the scrollbar doesnt seem to work. The scrollbar doesnt seem to know how large the text file is...and therefore you never get to scroll to see the majority of text...

any suggestions as to why this is happening?

thx

Text Fields In Loaded Swf Files
I've got a basic swf file that i'm using as a template for a portfolio. Whithin that swf file there's some dynamic text fields that work just fine when the swf is loaded strait up, but when i use the loadMovie method to bring that swf file into my main movie, the text fields don't even seem to exist. Default text doesn't show up at all, the only way i can get it to come through is to convert to static text - no good...

Is this a limitation with a loaded swf ? Or is this a bug that i'm running into with my mac ? Any suggestions ???

thanks people

HTML Files Within Dynamic Text Fields
Hi everyone. I'm something of a noob to flash (anything I know is self-taught) and know even less about actionscript, though I do have a basic knowledge of programming.

Basically what I'm trying to do is rig up a dynamic text field to display HTML files in the same folder as the flash file. I would also need vertical and horizontal scroll bars for said text box. Buttons in the flash file would then load different HTML files into the text box.

Like I said, I know next to nothing about actionscript, so I tried copying and modifying some code given in the help file, but it doesn't work, of course. Is there anyone that could give me the scripts necessary to perform the above? I need a script for the initial load, the scroll bars, and the load on button-press, I would assume.

Thanks in advance,
Biochip

Loading 4 Txt Files Into 4 Different Dynamic Text Fields... How Can This Be Done?
Hello i was wandering how i can load multiple external txt files into multiple dynamic text fields.,.. the code for loading just one is working fine.... but i am new to AS3 and dont know how to do this....

heres my code,

code: var external_txt:TextField = new TextField();
var externalReq:URLRequest = new URLRequest("external.txt")
var externalLoad:URLLoader = new URLLoader();

externalLoad.load(externalReq)

externalLoad.addEventListener(Event.COMPLETE, textReady);

external_txt.x = 600;
external_txt.y = 100;
external_txt.border = false;
external_txt.width = 50;
external_txt.height = 20;

addChild(external_txt);

function textReady(event:Event):void
{
external_txt.text = event.target.data;
}



any ideas? thanks in advance

Two Dynamic Text Fields, Two .txt Files To Load...
I quite new to AS and I am now trying to do the following - if possible?!

Flash 8, AS2.

I have a .swf with two dynamic text fields where I want to load two different .txt files - I use embedded fonts via a shared library and I have an external .css file as well.

I have made it work with one dynamic text field and one .txt file, but I want to have a text field on top of my .swf with one type of text and another field beneath it with another type of text...

I am using variables within my .txt file.

I hope someone can help and give me some guidelines as how to continue.
Thanks.

Dynamic Text Fields, .txt Files And Html Formatting
Basically like the title says, I have my dynamic fields loading external text files. I have the html formatting working, the basic bold, italics, and stuff.

Basically I am designing a site that will be updated by the customer, but with bad experiences from previous clients they screwed things up a lot and I'd have to go in and fix it. I want to create a site that can easily be updated with text files that they can put whatever they want...

A question though, with html formatting, is there a way to include <a href></a> tags so they can put in their own links? Or is this strictly for text formatting.

Any help would be gladly appreciated

Hyperlinks In Txt Files Loaded Into Dynamic Text Fields
Hello,

I am loading a .txt file into a dynamic text field in flash and am runnig into a problem with hyperlinks.

Is there a limit to the length of a hyperlink that flash can use?

say i link to google maps ( pretend { = < so my code shows up)

{a href="http://maps.google.com"}Get Google Map{/a}

that works but as soon as i try to direct to an actual map with an extremely long address such as : {a href="http://maps.google.com/maps?q=1040+commerce+blvd+n+sarasota,fl+34243&hl=e n"}Get Google Map{/a}

it doesn;t display any text after the {a href} tag in the txt line. works fiune when short but not when long.

is there a limit to the length?

pleas ehelp

thanks

Outputting Text After Inputting.
Hi, I'm generally not a newbie... but not a veteran either, so I figured this would be the place to post.

I'm trying to create a flash where you can input text in an input text box which then outputs after hitting enter in the same general presentation. Can someone help me on how I can do this? I didn't even know what kind of tutorial this would be in.

Thanks a lot.

MC - Inputting From Text Field.
Hi;

I am trying to input from the textfields which are attached to mc's that are created using actionscript. I have several mc's and I want to get the text from these textfields (which are defined as 'Input Text') which are entered by the user. But my problem is I don't know the active element which could be used for defining the mc's that I created for later use. Shall I use the 'var' element or 'Instance Name' element for getting the text from the textfields?

Ex:

I have a text field inside mc that is created by this command


Code:
name = Layer_Movie.attachMovie("LetBlack",name,t++,{_x:100, _y:100 });
Here I create a mc and give 'name' to it. I have another mc inside the LetBlack mc that is used as a template for actionscripting. It's 'Instance name' is Letter. And I have a text field inside the Letter mc I have that's 'var' name is let. But I can't get the text that is entered inside this text field. One of my friend's advice is this, to use focus commands in order to reach the text field. Please help;

Thanks anyway...

Inputting And Displaying Text
Hi there, hope someone can help.

If I want to create a flash movie where the user inputs text several times on different frames and then on say the last frame, the text is displayed along with some other text how would I go about it?

For example.

User inputs on frame 2 - Sarah
User inputs on frame 3 - 25

On frame 4 you get - Hi, I'm Sarah and I'm 25.

Hope someone can help please.

Molenski
As my bessie bud Kev always says - "Get involved!!!"

How To Not Allow Inputting Of Text In Input Box?
right...i need help here..i jus checked my project n realise something wrong..
i did this coloring with flash mx 2004. when i click on say red, the textfield is supposed to have the word red. the text field is an input box btw. yes the words appear. but then i can WRITE IN IT! i noe it's cus of it being an input text field. but when i changed it to static text, the name of the color doesnt appear n it doesnt work. can someone help mi? is there a way to like dun let user enter inside the input text field? .disable or sth?thanks!!

Use Text Fields From External Swf
i was hoping i could embed a font in a movie and publish the swf

then another movie could dynamically load it, and use the embedded font.

what do you think?
i prefer embedded fonts over jagged ones

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Image+text Scroller, Form Scroller, And Loading External Text Files - Urgent
Hi everybody!

Does anybody know how to do the following things in Flash MX?

1.Make a scroller with text + images in it;
2.Make a scroller with text + a form in it;
3.I followed the tutorial entitled "Scrolling Dynamically Loaded Text", but the text that I tried to load has over 160 lines, and I can only scroll down to about half way of the total lines. Why is that?
4.I also tried to load xml files using the code <?xml version="1.0" encoding="utf-8"?> on the first line of each xml file, but the ', &, and " " don't work.

Can anybody help me, please? This is urgent!

Thanks in advance!

animind

Loading External Text Fields
does anyone know how to load external text fields into a .swf?
And on top of that how would i place them?

cheers,

Dynamic Text Fields In External Swf
I'm using this Macromedia code to load the external text file "shows.txt". It works great just testing the swf, but when I load the exteranl swf in my main movie, the text loads as "undefined". The trace shows that the variable loads successfully. I've tried using the whole path before "scroller.text" and also trying the root instead of "this.var1."

Searching has shown me lots of people have has this issue, and few have resolved it.

Help would be massivlely appreciated.

loadVarsText = new LoadVars();
loadVarsText.load("shows.txt");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
if (success) {

//Now that we know the data is loaded,
//set the text content of the Text Field
//with the instance name "scroller" equal to the
//contents of the variable
trace("loaded");
scroller.text = this.var1;

} else {
trace("not loaded");
}
};

Changing Font And Size Of Text Added To Dynamically Created Text Fields
Whew.. That long-winded subject line pretty much covers it.

Link

In the galleries, I have text I am adding to a movieClip. I have been able to add the description text, change it's colour, but the font and size are not responding. I'm using FlashMX2004. Can anyone show me what I'm doing wrong? Here's the pertinent code:

_parent.Gallery.createTextField(["Txt_" + CVar], _parent.LevelCount + 1000, 175, _parent.EntryY, 325, 110);
_parent.Gallery["Txt_" + CVar].font = "Arial";
_parent.Gallery["Txt_" + CVar].text = _parent.Description[AVar];
_parent.Gallery["Txt_" + CVar].textColor = 0xFFFFFF;
_parent.Gallery["Txt_" + CVar].textSize = 25;


Thanks so much!

Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,

I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.

I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.

The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.

Any help with 1 or both of these questions would be gratefully recieved thanx

I am using Flash MX

Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,

I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.

I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.

The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.

Any help with 1 or both of these questions would be gratefully recieved thanx

In MX

[F8] Dynamic Textbox: Inputting Text From A Variable
Hello how can i do the above

i want the text to go into a dynamix text box


Quote:




johnstext = "johnboy";




that is in the first frame of my frame

the dynamic textbox is called johnstext

anything else i need please?

Inputting Text Via User Into A Seperate Movieclip
Hi there everyone,

I am trying to create a button pad which consists of 10 numbers 0 -9 upon which the user taps out a number which then appears in a movieclip next to that button pad, of course the user may tap any figures 0 = 999.

I am aware that I require a 'dynamic' textbox in the seperate movieclip in which these numbers appear as the user taps the number they require, but I have no idea how to make these numbers appear in that textbox.

The next problem is then creating a variable out of that number that the user has tapped in so that it is linked to a seperate movie which is then targeted within my main movie.

Any help with 1 or both of these questions would be gratefully recieved thanx

Embed External Images In Text Fields
Hi!
In flash help file it says it is possible to embed gif, jpg, png and swf into external text fields formated with css. To load gif sounds strange but I have tested gif, jpg, and png and so far it only works with jpg - has anyone got a png file to work? I am interested to load images with transperancy.

There also seems to be a problem to load the "+" sign in an external text field formated with css, as in +467XXXXXXX. It doesnt show, there is just a blank space. Anyone knows how to solve this? More characters that don't show?

External Manipulation Of Text Fields/Variables, Etc...
Here is what I want to do...I am creating a Flash movie built on top of a C++ shell. I can FSCommand out to the C++ code to do certain things, but I want to be able to dynamically update the Flash movie to, for example, keep the user up to date on what might be happening.

So, maybe 10 or 20 times, I want to update a status field. The problem is that when I set the variable (externally from the C++ code), the Flash movie does not immediately update. I have to (A) Go to a new screen then back again real quick. What I need is instant updating, or some way to signal a redraw to that screen.

Has anyone done this before? I am desperate for info!!!

Special Characters In External Text Fields
Okay, I'm sure I'm suffering brain fade here, but in a flashMX movie I'm using an external text file that has an ampersand in the text. But when the swf runs it stops at the ampersand and displays neither the & or any more text. I've tried escaping it, using html ( & etc ) - nothing works. Solutions?

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

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

I have tried these macromedia solutions with NO success:

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

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

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

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

-Jimmy

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

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

I have tried these macromedia solutions with NO success:

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

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

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

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

-Jimmy

Input Text Fields Colours To Fade In And Out On Entering Text?
I am uploading a file with input text field that changes colour when you click in it - this is great, but what if i wanted the following:

in the initial state, the text box is grey as you can see, but when i click inside it, it fades to pink instead of suddenly just changing to pink. And likewise, when i click outside the box it fades back to grey.

You will see what i mean if you view the file.

it's mx not mx2004

Thanks.

Loading Text Into Mulitple Fields From A Single Text File
Hi there. I am trying, and failing(so no soucre) to make text load dynamically into multiple fields.

I am trying essentially to load text using only one text document- into several fields. This is so I can run a very primitive cms system in flash. (all the fields need to call different portions of the text.

If anyone understands what I mean and how it could be done, it would be great

Assigning Text In Dynamically Created Text Fields; Flash 8
I'm having trouble with dynamically assigning text to a dynamically created text field.

This works:
ActionScript Code:
//set font with TextFormat
myFormat=new TextFormat();
myFormat.align="left";
myFormat.color="0xFF3300";
myFormat.font="MyriadProBoldCon";
myFormat.size=25;

//create text field
this.createTextField("timText", 1, 10, 10, Stage.width,40);
timText.text="I declare a truce for robot juice";
timText.embedFonts=true;
timText.setTextFormat(myFormat);




but this doesn't:
ActionScript Code:
//set font with TextFormat
myFormat = new TextFormat();
myFormat.align = "center";
myFormat.color = "0xFF3300";
myFormat.font = "MyriadProBoldCon";
myFormat.size = 25;
//create text field; text shows up right now
this.createTextField("timText", 1, 0, 10, Stage.width, 40);
timText.text = "I declare a truce for robot juice.";
timText.embedFonts = true;
timText.setTextFormat(myFormat);
//but click a button, and the text disappears and is not replaced!!!
btn1.onRelease = function() {
timText.text="Breakfast is served all day in Hell!"
};
btn2.onRelease = function() {
timText.text="We prefer to be called Buccaneer-Americans."
};
btn3.onRelease = function() {
timText.text="It's fun to use learning for evil!"
};




I've tried setting up the TextFormat and createTextField as a function that's called on the onRelease handler. I've tried dropping the whole frackin' code in the onRelease function for each button. Neither approach works.

I've been digging around on the web, looking for answers, and nothing seems to solve my problem. Does anyone have any ideas?

thanks in advance!

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

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

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

Thanks,

Dylan James

MX - Dynamic Text Fields Using External File Data
I am new to Flash MX ActionScript. I understand how to create dynamic text fields.
Code:
_root.createTextField("myTextField",0,200,200,200,30);
with (myTextField) {
text = "Dynamic Text";
background = true;
backgroundColor = 0xCCCCCC;
}

myTextFormat = new TextFormat();
with (myTextFormat) {
font = "Arial";
size = "20";
color = 0x000000;
}

myTextField.setTextFormat(myTextFormat);
I also understand the process to load external text from a text file into a text field with a name assigned to the Var: field.
Code:
loadVariablesNum("text.txt",0);
I have been unable to combine the two processes to load external text into a dynamically created text field. I appreciate any assistance.

Sincerely,

LoNeRaVeR

Linking Text Fields To External Spreadsheet File
Hi, I'm new to the forum. I know basic actionscripting, but I've come across a problem that I'm struggling with, and haven't found much specific information about it in my searches.

I'm making a slideshow in flash mx 2004. It includes 100 images, each accompanied by a text description. Each image and description text field is in its own movie clip. The flash movie is split up into 5 scenes of 20 images each. I'm hoping to be able to dynamically link each of the text fields to a specific cell within a Microsoft Excel spreadsheet, so that all of the text can be written externally.

I read the previous post about dynamic text fields, but I'm still not sure how my code should look, especially since it involves links to cells within the spreadsheet, instead of to a whole file.

In the "Flash Help," it gives this code for using the "LoadVars" action to link a text file to a dynamic text field:

Features_lv = new LoadVars();
Features_lv.onLoad = onText;
Features_lv.load("safetyfeatures.txt");
function onText() {



newFeatures_txt.text = Features_lv.safetyFeatures


I tried substituting my file name and text field instance name into the code, and it doesn't display anything. I'm pretty inexperienced with this kind of actionscripting, so any kind of help or suggestions that anyone has to get me going in the right direction would be a huge help. Thanks to anyone who looked at my post or tries to help.

External Text Fields Only Show Part Of The .txt File
external text fields only show part of the .txt file????

any ideas wat could be wrong!!

it only shows like the first 4 lines of the text when its in the text file

Problems With Formatting Text In Input Text Fields...
I want to set up my cursor in input text fields to be white, because my backround is black.

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