# How to make it 6 to 8?

**URL:** <https://forum.kirupa.com/t/how-to-make-it-6-to-8/217668>\
**Category:** Uncategorized\
**Created:** [February 28, 2007, 9:40pm UTC](https://forum.kirupa.com/t/how-to-make-it-6-to-8/217668 "2007-02-28T21:40:33Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![qxygene](https://avatars.discourse-cdn.com/v4/letter/q/6bbea6/32.png) [@qxygene](https://forum.kirupa.com/u/qxygene)\
**Post date:** [February 28, 2007, 9:40pm UTC](https://forum.kirupa.com/t/how-to-make-it-6-to-8/217668/1 "2007-02-28T21:40:33Z")

</div>

here is my script works with swf6 but its not working when exported swf8.

any help?

[AS]onFrame (1) {  
fscommand(“allowscale”, “false”);  
menuHolder = “news”;  
movie.loadMovie(menuHolder + “.swf”);  
menu.news.gotoAndStop(“fadeOut”);  
hitSound = new Sound(this);  
hitSound.attachSound(“hit”);  
clickSound = new Sound(this);  
clickSound.attachSound(“click”);  
wmodifier = 329;  
hmodifier = 225;  
bouncefactor = 6.000000E-001;  
speedfactor = 8;  
expand = function (id)  
{  
var \_loc1 = this;  
var \_loc2 = id;  
\_loc1.destwidth = wmodifier;  
\_loc1.poswidth = \_loc2.\_width;  
\_loc1.velwidth = \_loc1.velwidth \* bouncefactor + (\_loc1.destwidth - \_loc1.poswidth) / speedfactor;  
\_loc2.\_width = \_loc2.\_width + Math.round(\_loc1.velwidth);  
\_loc1.destheight = hmodifier;  
\_loc1.posheight = \_loc2.\_height;  
\_loc1.velheight = \_loc1.velheight \* bouncefactor + (\_loc1.destheight - \_loc1.posheight) / speedfactor;  
\_loc2.\_height = \_loc2.\_height + Math.round(\_loc1.velheight);  
\_loc1.destx = (0 - wmodifier) / 2;  
\_loc1.posx = \_loc2.\_x;  
\_loc1.velx = \_loc1.velx \* bouncefactor + (\_loc1.destx - \_loc1.posx) / speedfactor;  
\_loc2.\_x = \_loc2.\_x + Math.round(\_loc1.velx);  
\_loc1.desty = (0 - hmodifier) / 2;  
\_loc1.posy = \_loc2.\_y;  
\_loc1.vely = \_loc1.vely \* bouncefactor + (\_loc1.desty - \_loc1.posy) / speedfactor;  
\_loc2.\_y = \_loc2.\_y + Math.round(\_loc1.vely);  
whiteBox.\_width = blankColor.\_width + 20;  
whiteBox.\_x = blankColor.\_x - 10;  
whiteBox.\_height = blankColor.\_height + 20;  
whiteBox.\_y = blankColor.\_y - 10;  
shadow.\_width = whiteBox.\_width + 20;  
shadow.\_x = whiteBox.\_x - 10;  
shadow.\_height = whiteBox.\_height + 20;  
shadow.\_y = whiteBox.\_y - 10;  
movie.\_x = blankColor.\_x;  
movie.\_y = blankColor.\_y;  
movieMask.\_x = blankColor.\_x;  
movieMask.\_y = blankColor.\_y;  
movieMask.\_width = blankColor.\_width;  
movieMask.\_height = blankColor.\_height;  
};  
blankColor.onEnterFrame = function ()  
{  
expand(this);  
};  
stop ();  
}[/AS]
