Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DYNAMIC TEXT

Status
Not open for further replies.

CUBALIBRAS

Technical User
Jan 31, 2003
64
US
I am being driven mad by this problem.

I'm a relatively newbie to Flash 2004 Pro, but I have followed the tutorials without success.

I draw dynamic text box, name the instance, name the variable etc but nothing works. I'm in no doubt I am doing something fundamentaly wrong.

Has anybody have or know of a 'dummy' visual step by step to achieve this as I am now at my wits end.

Jon
 
Sorry, I'm trying to load text from an external source, and also format it.
 
Use the instance name and not the Var. (do not use both)

Here is a simple sample. Create a dynamic text box with instance name "textbox" on the main timeline layer 1 frame 1.

Create a new layer called "actions".

On frame 1 of the actions layer add the following actionscript:

Code:
var theVariable:String = "Hello World!";
_level0.textbox.text = theVariable;

Test the movie (Ctrl+Enter).

Hope it helps.

Wow JT that almost looked like you knew what you were doing!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top