# Problem with dynamic text and external swf's, help please

**URL:** <https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016>\
**Category:** flash\
**Created:** [July 19, 2004, 3:04am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016 "2004-07-19T03:04:21Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![The\_Pete\_One](https://avatars.discourse-cdn.com/v4/letter/t/b3f665/32.png) [@The\_Pete\_One](https://forum.kirupa.com/u/The_Pete_One)\
**Post date:** [July 19, 2004, 3:04am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/1 "2004-07-19T03:04:21Z")

</div>

Hello,

When I load one of my external swf’s into my main movie, the dynamic text I have written doesn’t show up. The text is there when I preview the external swf on its own and when it loads the main movie it’s there but can’t be seen for some reason. Any ideas on what I am doing wrong and a way to fix it would be greatly appreciated. Thanks in advance.

P

---

<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:** [July 19, 2004, 6:51am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/2 "2004-07-19T06:51:59Z")

</div>

Embed the fonts;)

scotty(-:

---

<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:** [July 19, 2004, 12:16pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/3 "2004-07-19T12:16:13Z")

</div>

Actually i think it might be a path issue.  
You probably have some _\_root_ reference on your external movies, and when those are loaded into your main movie, _\_root_ is not ‘pointing’ to the right place anymore.  
Probably removing the _\_root_ will solve your problem.

---

<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:** [July 19, 2004, 1:16pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/4 "2004-07-19T13:16:19Z")

</div>

You’ve got a point there=)

scotty(-:

---

<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:** [July 19, 2004, 2:27pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/5 "2004-07-19T14:27:05Z")

</div>

Actually, another problems now popped up. I tried to embed the fonts and they are now showing up in the main movie (Thanks for the advice!).  
What’s going on now is the font looks blurry in the main site but not on the external swf. I followed the tuts on pixel fonts and everything looks correct when I preview the external swf.  
Would the font look blurry in the main file because text field coordinates of X and Y are not at whole numbers? I have them set at whole numbers in the external file.  
Thanks in advance for any help you can provide!

---

<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:** [July 19, 2004, 2:39pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/6 "2004-07-19T14:39:40Z")

</div>

The mc you load the external swf in, should be on whole pixels too. And be sure that that mc isn’t scaled, check it in the transform window.

scotty(-:

---

<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:** [July 19, 2004, 3:44pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/7 "2004-07-19T15:44:08Z")

</div>

Sorry, I’m trying to figure out how to change to whole pixels on my main movie and it doesn’t seem to be working. Is this supposed to be changed on the main movie or the movie clip that is my content layer? It seems it keeps resetting. Could you please spell out for me how to do this because obviously I am a bonehead :)! I keep trying to find the correct tutorials but no luck.  
Thanks for all the help and sorry if this is any inconvenience!

P

---

<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:** [July 19, 2004, 3:47pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/8 "2004-07-19T15:47:02Z")

</div>

Also, I have embedded the fonts through the properties, that’s what seems to be resetting after I change to whole pixels. Is there another way to go about this?

---

<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:** [July 19, 2004, 3:54pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/9 "2004-07-19T15:54:35Z")

</div>

```auto
myMC.loadMovie("someSWF");
myMC._x = Math.round(myMC._x);
myMC._y = Math.round(myMC._y);

```

Make sure that all MCs and textFields are on whole pixels and not being scaled.

You can use the above when you load/attach your movie to ensure proper integer x/y placement.

Just remember – if you don’t want aliasing, make sure all instances of text and any MCs that contain text are on whole integer x/y pairs. As long as that’s covered, you shouldn’t have any problems with fuzzy 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:** [July 19, 2004, 4:51pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/10 "2004-07-19T16:51:34Z")

</div>

I just would like to thank everyone for their help here, I figured it out though. There was an X-coordinate off by .5. Problem solved :). Oh man that was bugging me, I knew I was doing it right!

---

<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:** [July 19, 2004, 7:21pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/11 "2004-07-19T19:21:02Z")

</div>

welcome=)

---

<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:** [July 31, 2004, 3:35am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/12 "2004-07-31T03:35:20Z")

</div>

Ok, I have a similar problem this is the as for the swf I am trying to load into my main movie

```auto
loadVarsText = new loadVars();
loadVarsText.load("http://www.fuleproject.com/calvin/news/display.php");
//assign a function which fires when the data is loaded:
loadVarsText.onLoad = function(success) {
	if (success) {
		trace("done loading");
		//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
		 scroller.html = true;
scroller.htmlText = this.var1
 
	} else {
		trace("not loaded");
	}
};</

```

This is the as to load that swf

```auto
onClipEvent (load) {
	loadMovie("http://www.fuleproject.com/calvin/news/news.swf", "_root.image_mc");
}</

```

The text has fonts embedded and no root references in the first swf. I have tried several threads’ solutions and I have come to the conclusion that I have a syntax error that i can’t find or…who knows what. Can someone help me out here. Scotty…you da man!

---

<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:** [July 31, 2004, 8:14am UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/13 "2004-07-31T08:14:23Z")

</div>

Can you post your fla’s?

scotty(-:

---

<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:** [July 31, 2004, 4:58pm UTC](https://forum.kirupa.com/t/problem-with-dynamic-text-and-external-swfs-help-please/58016/14 "2004-07-31T16:58:14Z")

</div>

> [@scotty](#):
>
> Can you post your fla’s?
> 
> scotty(-:

Heya Scotty, It seems to have fixed itself, actually I think it was because my server has some latency on newly uploaded files. How frustrating is that?!

Thanks Scotty, you need a blue suit and a cape!
