# Ghost textfield

**URL:** https://forum.kirupa.com/t/ghost-textfield/54026
**Category:** Uncategorized
**Created:** [June 10, 2004, 9:27am UTC](https://forum.kirupa.com/t/ghost-textfield/54026 "2004-06-10T09:27:51Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![juliman](https://avatars.discourse-cdn.com/v4/letter/j/49beb7/32.png) [@juliman](https://forum.kirupa.com/u/juliman)
#### Post date: [June 10, 2004, 9:27am UTC](https://forum.kirupa.com/t/ghost-textfield/54026/1 "2004-06-10T09:27:51Z")

</div>

hi  
i am using the createtextfield method to create textfields in my swf, but i can’t see them!! i can copy paste the content of them, and the things related to them work properly, but they won’t appear in my swf. i thought they were underneath some image, but when i switch off (\_alpha=0) the image, there is nothing. i also have an attachmovie in the same movieclip i create textfileds in, but the clip attached is visible…  
here’s the code i am using:  
for (i=1; i\<=23; i++) {  
createEmptyMovieClip([“jmfn”+i], i);  
this[“jmfn”+i].\_x = 580/4\*i;  
this[“jmfn”+i].\_y = 0;  
this[“jmfn”+i].\_xscale = this[“jmfn”+i].\_yscale=25;  
this[“jmfn”+i].createEmptyMovieClip(“img”, -2000);  
this[“jmfn”+i].img.loadMovie(“images/jmf/jmf”+i+".jpg");  
//creation de stats  
this[“jmfn”+i].createEmptyMovieClip(“stats”, 1600);  
this[“jmfn”+i].stats.\_x = 0;  
//creation of TEXTFIELDS  
this[“jmfn”+i].stats.createTextField(“total”, 1650, 20, 40, 200, 40);  
this[“jmfn”+i].stats.total.\_xscale = this[“jmfn”+i].stats.total.\_yscale=400;  
this[“jmfn”+i].stats.createTextField(“charge”, 1700, 20,100, 200, 40);  
this[“jmfn”+i].stats.charge.\_xscale = this[“jmfn”+i].stats.charge.\_yscale=400;  
this[“jmfn”+i].stats.createTextField(“pourcent”, 1750, 20,160, 200, 40);  
this[“jmfn”+i].stats.pourcent.\_xscale = this[“jmfn”+i].stats.pourcent.\_yscale=400;  
//ATTACHMOVIE  
this[“jmfn”+i].stats.attachMovie(“bar”, “bar”, 1200);  
this[“jmfn”+i].stats.bar.\_y = 20;  
this[“jmfn”+i].stats.bar.\_x = 20;  
this[“jmfn”+i].stats.bar.\_xscale =0;

```
this["jmfn"+i].onEnterFrame = function() {
	trace(this.img.getBytesLoaded());
	this.stats.total.text = this.img.getBytesTotal();
	this.stats.charge.text = this.img.getBytesLoaded();
	this.stats.pourcent.text =Math.floor((this.img.getBytesLoaded()/this.img.getBytesTotal())*100)+" %";
	this.stats.bar._xscale =Math.floor((this.img.getBytesLoaded()/this.img.getBytesTotal())*100)
	if (this.stats.pourcent.text == "100 %") {

```

this.img.\_alpha = 0;  
[//this.stats](https://this.stats).\_visible = false;  
this.onEnterFrame = null;  
}  
}  
}  
can anyone help??
