# Special characters in dinamically loaded txt file

**URL:** https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144
**Category:** Uncategorized
**Created:** [June 13, 2003, 3:08pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144 "2003-06-13T15:08:25Z")
**Posts on this page:** 20
**Page:** 1

<div class="post-metadata">

### Author: ![claudio](https://avatars.discourse-cdn.com/v4/letter/c/7cd45c/32.png) [@claudio](https://forum.kirupa.com/u/claudio)
#### Post date: [June 13, 2003, 3:08pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/1 "2003-06-13T15:08:25Z")

</div>

Im having trouble trying to display special characters such as : “á, ç, ó, é, õ” in a external txt file loaded dynamically inside a text box. Ive eneabled html but it still wont work. Wat am i doing wrong?  
:sigh:

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:13pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/2 "2003-06-13T15:13:55Z")

</div>

I have a problem loading dynamical text too.  
For some reason, only some of the text that i,ve loaoded appears in the text box.  
If it makes a difference, i have a scrollbar in the textbox to view the text.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:16pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/3 "2003-06-13T15:16:13Z")

</div>

Yea i get dat problem when i try to display special characters. They just dont appear in the text box.  
arghhh!

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:26pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/4 "2003-06-13T15:26:44Z")

</div>

worm: make sure that you are not using the ‘&’ ampersand symbol. It tells the Flash file to stop reading. If you must use it, use the following:

```php
&amp 

```

claudio: do a search on the forums for ‘dynamically loading special characters’ There should be a zillion posts…

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:29pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/5 "2003-06-13T15:29:11Z")

</div>

I did search the forum, but couldnt find exactly wut i wanted… thx guys, ill try dat Majeye

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:32pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/6 "2003-06-13T15:32:41Z")

</div>

thanks majeye, ur the best. turns out it was the ampersand symbol.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:33pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/7 "2003-06-13T15:33:05Z")

</div>

Still not working…  
Im trying to display “São Paulo” in the text box… any one can help me?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:47pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/8 "2003-06-13T15:47:36Z")

</div>

heres a useful link 4 you

[click here](http://www.macromedia.com/support/flash/ts/documents/url_encoding.htm)

hope this helps

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:48pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/9 "2003-06-13T15:48:23Z")

</div>

hey worm, can u help me, i couldnt get my file working

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 3:52pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/10 "2003-06-13T15:52:23Z")

</div>

i learnt to load dynamic text from a tutorial on this site. jus run a quick search on it. It helped me tonnes

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 4:25pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/11 "2003-06-13T16:25:06Z")

</div>

one more prob, the &amp command is not working. is that the specific tag. please be specific cuz im pulling my hairs

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 4:27pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/12 "2003-06-13T16:27:30Z")

</div>

[http://www.macromedia.com/support/flash/action\_scripts/actionscript\_dictionary/actionscript\_dictionary723.html](http://www.macromedia.com/support/flash/action_scripts/actionscript_dictionary/actionscript_dictionary723.html)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 7:44pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/13 "2003-06-13T19:44:54Z")

</div>

thats not supposed to help me is it?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 7:50pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/14 "2003-06-13T19:50:16Z")

</div>

“please be specific cuz im pulling my hairs”  
same to you, what’s your code, what’s in your text etc…? 🙂

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 8:13pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/15 "2003-06-13T20:13:52Z")

</div>

> \*Originally posted by worm \*  
> \*\*thats not supposed to help me is it? \*\*

Yes it is supposed to help you.[AS]System.useCodepage = true;[/AS] allows you to use accented characters.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 9:56pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/16 "2003-06-13T21:56:56Z")

</div>

okay, heres the next thing, i also want to dynamically load jpegs into my movies but that wont work either.

\<quote\>  
onClipEvent (load) {  
loadMovie(“architecturaldrawing.jpg”, “container”);  
}  
\</quote\>

what else do i need?

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 10:06pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/17 "2003-06-13T22:06:36Z")

</div>

It must be a non-progressive .jpg image.

Usually the option for progressive or not comes up while saving as a .jpg format.

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 10:15pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/18 "2003-06-13T22:15:45Z")

</div>

still doesnt work. i saved it as baseline (using adobe photoshop)

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 10:36pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/19 "2003-06-13T22:36:22Z")

</div>

oh, got it to work. heres the code i used

\<quote\>  
\_root.createEmptyMovieClip(“container”,1);  
container.loadMovie(“drawing2.jpg”);  
container.\_x = container.\_y = 50 ;

\_root.onMouseDown = function () {  
startDrag (“container”,false) ;  
}  
\_root.onMouseUp = function () {  
stopDrag () ;  
}

\</quote\>  
one last thing b4 i pester u guys to death, is there a way to resize the image.  
thanx 4 the help

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [June 13, 2003, 10:53pm UTC](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144/20 "2003-06-13T22:53:17Z")

</div>

[AS]\_root.createEmptyMovieClip(“container”,1);  
container.loadMovie(“drawing2.jpg”);  
container.\_x = container.\_y = 50 ;

\_root.onMouseDown = function () {  
startDrag (“container”,false) ;  
}  
\_root.onMouseUp = function () {  
stopDrag () ;  
}  
\_root.container.onEnterFrame = function(){  
if (this.\_width \> 0){  
this.\_width = 100;  
this.\_height = 200;  
delete this.onEnterFrame;  
}  
}[/AS]

You can only manipulate a loaded item once it is fully loaded. In the case of dynamically loading a .jpg you can easily check if it is fully loaded by checking the width of the clip that holds it. If the width of the clip is greater than 0 then something must be loaded in it right? Well thats when we can do something.

We then set the \_width and \_height properties (this sizes by exact pixels, you can use \_xscale and \_yscale to resize by percentage) and then we delete the onEnterFrame because we don’t need to run it anymore for this.

[Next page](https://forum.kirupa.com/t/special-characters-in-dinamically-loaded-txt-file/23144.md?page=2)
