# Attach.Movie causing text blurring

**URL:** <https://forum.kirupa.com/t/attach-movie-causing-text-blurring/218943>\
**Category:** Uncategorized\
**Created:** [March 12, 2007, 6:19pm UTC](https://forum.kirupa.com/t/attach-movie-causing-text-blurring/218943 "2007-03-12T18:19:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![cressa](https://avatars.discourse-cdn.com/v4/letter/c/3be4f8/32.png) [@cressa](https://forum.kirupa.com/u/cressa)\
**Post date:** [March 12, 2007, 6:19pm UTC](https://forum.kirupa.com/t/attach-movie-causing-text-blurring/218943/1 "2007-03-12T18:19:51Z")

</div>

Hello,

i’d be grateful if someone could take a look at this for me.

[http://conflictingpixels.com/dropin.html](http://conflictingpixels.com/dropin.html) (theres no preloader)

i am attaching a movie clip containing pixel fonts. i have a  
stage listener that places the movieclip at stage.width/2  
and stage.height/2.

if i publish the movieclip that gets attached on its own, its perfect, i can  
resize any way i like but if i resize the browser window when i  
attach it the text can get blurred. im assuming the movie clip may be  
placed on a decimal point rather than a whole pixel and this  
is causing the blurring.

is there any way that you can set the attach movie function  
to place a movieclip at stage center “to the nearest whole pixel”

i’ve tried decompiling other sites, to see why their text doesnt blur  
but i havent come across anything obvious in the way they use  
attach.movie.

im attaching two movieclips, both contain pixel fonts. the one  
that is placed at stage.width and stage.height is fine and doesnt  
get blurred, only the one at stage center.

any ideas?

[COLOR=Red]my code:[/COLOR]

Stage.scaleMode = “noScale”;  
Stage.showMenu = false;

Stage.align = “TL”;

var Logo = this.attachMovie(“Logo”, “Logo\_mc”, 999);  
Logo.\_x = Stage.width;  
Logo.\_y = Stage.height;

var Main\_mc = this.attachMovie(“Main\_mc”, “Main\_mc”, 1);  
Main\_mc.\_x = Stage.width/2;  
Main\_mc.\_y = Stage.height/2;

Logo.onRelease = function ()  
{  
getURL(“[http://www.conflictingpixels.com](http://www.conflictingpixels.com)”, “\_blank”);  
};  
var stageListener = new Object();  
stageListener.onResize = function ()  
{  
Main\_mc.\_x = Stage.width/2;  
Main\_mc.\_y = Stage.height/2;  
Logo.\_x = Stage.width;  
Logo.\_y = Stage.height;  
};  
Stage.addListener(stageListener);

stop ();
