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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CreateTextField not showing - HELP!

Status
Not open for further replies.

clemcrock

Programmer
Dec 17, 2006
63
US
Hello,
I'm creating a series of movie clips that are attached from the library.

After the movie clip is attached, I want to create some text on that movie clip. When I try this, I can't see any of the text that is created

When I print the movie clip contents it shows that the the mytext textfield exists:

j:mytext : _level0.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext
j:mc_image_loader : _level0.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mc_image_loader
j:instance3 : _level0.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.instance3

Here's the code I'm trying:

Code:
_root.mc_scroll_group.masked_movie.scrollpage.attachMovie('show_db_list', 'show_db_list', 1, {_x:4, _y:4} ); 

//==== build test fields ======================================
_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.createTextField("mytext",10,0,0,300,300);
_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext.multiline = true;
_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext.wordWrap = true;
_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext.border = true;

myformat = new TextFormat();
myformat.size = 14; 

_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext.setTextFormat(myformat);
_root.mc_scroll_group.masked_movie.scrollpage.show_db_list.mc_show_plate.mytext.text = "this is some test text";
//=============================================================

Any help is desperately needed!
 
It's weird - the only thing that will show up is the text border and I gave the text a color and the only thing that shows up is the border. I also tried the setNewTextFormat idea instead setTextFormat.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top