# Star wars title

**URL:** <https://forum.kirupa.com/t/star-wars-title/264001>\
**Category:** Uncategorized\
**Created:** [June 21, 2008, 9:20pm UTC](https://forum.kirupa.com/t/star-wars-title/264001 "2008-06-21T21:20:59Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [June 21, 2008, 9:20pm UTC](https://forum.kirupa.com/t/star-wars-title/264001/1 "2008-06-21T21:20:59Z")

</div>

ok so im trying to do something very similar to the star wars title, where the words ‘star wars’ slowly comes in and scales down, i created an image in PS that says star wars and placed it into flash, everything works fine except as the image gets smaller, it scales down much faster and look really cheesy, any ideas, thanks

ActionScript Code:  
[LEFT]addEventListenerCOLOR=#000000[/COLOR];\</p\>  
\<p\>var lastTime:[COLOR=#0000ff]Number[/COLOR] = [COLOR=#0000ff]getTimer[/COLOR]COLOR=#000000[/COLOR];\</p\>  
\<p\>var timeDiff:[COLOR=#0000ff]Number[/COLOR];\</p\>  
\<p\>bigText\_mc.[COLOR=#000080]scaleX[/COLOR] = bigText\_mc.[COLOR=#000080]scaleY[/COLOR] = [COLOR=#000080]7[/COLOR];\</p\>  
\<p\>function shrinkCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]\</p\>  
\<p\> timeDiff = [COLOR=#0000ff]getTimer[/COLOR]COLOR=#000000[/COLOR] - lastTime;\</p\>  
\<p\> lastTime+=timeDiff;\</p\>  
\<p\>&nbsp;\</p\>  
\<p\> bigText\_mc.[COLOR=#000080]scaleX[/COLOR] = bigText\_mc.[COLOR=#000080]scaleY[/COLOR] -= [COLOR=#000000]([/COLOR].[COLOR=#000080]5[/COLOR] \* timeDiff/[COLOR=#000080]1000[/COLOR][COLOR=#000000])[/COLOR];\</p\>  
\<p\> [COLOR=#0000ff]if[/COLOR][COLOR=#000000]([/COLOR]bigText\_mc.[COLOR=#000080]scaleX[/COLOR] \<= .[COLOR=#000080]9[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]\</p\>  
\<p\> bigText\_mc.[COLOR=#000080]alpha[/COLOR]-=.[COLOR=#000080]01[/COLOR];\</p\>  
\<p\> [COLOR=#000000]}[/COLOR]\</p\>  
\<p\>&nbsp;\</p\>  
\<p\> [COLOR=#000000]}[/COLOR]  
[/LEFT]

---

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [June 21, 2008, 9:25pm UTC](https://forum.kirupa.com/t/star-wars-title/264001/2 "2008-06-21T21:25:07Z")

</div>

ActionScript Code:  
[LEFT]addEventListenerCOLOR=#000000[/COLOR];  
[COLOR=#000000] **var** [/COLOR] lastTime:[COLOR=#0000FF]Number[/COLOR] = [COLOR=#0000FF]getTimer[/COLOR]COLOR=#000000[/COLOR];  
[COLOR=#000000] **var** [/COLOR] timeDiff:[COLOR=#0000FF]Number[/COLOR];  
bigText\_mc.[COLOR=#000080]scaleX[/COLOR] = bigText\_mc.[COLOR=#000080]scaleY[/COLOR] = [COLOR=#000080]7[/COLOR];

[COLOR=#000000] **function** [/COLOR] shrinkCOLOR=#000000[/COLOR][COLOR=#000000]{[/COLOR]  
timeDiff = [COLOR=#0000FF]getTimer[/COLOR]COLOR=#000000[/COLOR] - lastTime;  
lastTime+=timeDiff;

```
bigText_mc.[COLOR=#000080]scaleX[/COLOR] = bigText_mc.[COLOR=#000080]scaleY[/COLOR] -= .[COLOR=#000080]008[/COLOR];
[COLOR=#0000FF]if[/COLOR][COLOR=#000000]([/COLOR]bigText_mc.[COLOR=#000080]scaleX[/COLOR] &lt;= .[COLOR=#000080]9[/COLOR][COLOR=#000000])[/COLOR][COLOR=#000000]{[/COLOR]
    bigText_mc.[COLOR=#000080]alpha[/COLOR]-=.[COLOR=#000080]01[/COLOR];
    [COLOR=#000000]}[/COLOR]

[COLOR=#000000]}[/COLOR]

```

[/LEFT]

---

<div class="post-metadata">

**Author:** ![Pier25](https://avatars.discourse-cdn.com/v4/letter/p/4af34b/32.png) [@Pier25](https://forum.kirupa.com/u/Pier25)\
**Post date:** [June 21, 2008, 11:14pm UTC](https://forum.kirupa.com/t/star-wars-title/264001/3 "2008-06-21T23:14:15Z")

</div>

you could use a tween engine like Tweenlite to control the scalling.

If you’ve never used a tween engine before I really suggest you to start right now! 🙂

You could also turn on smoothing on the bitmap so that the scalling doesn’t look alliased

bmp.smoothing = true;

---

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [June 22, 2008, 1:39am UTC](https://forum.kirupa.com/t/star-wars-title/264001/4 "2008-06-22T01:39:07Z")

</div>

tween engine huh, I 'll look into tweenlite, any good sites to visit

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [June 22, 2008, 8:40am UTC](https://forum.kirupa.com/t/star-wars-title/264001/5 "2008-06-22T08:40:51Z")

</div>

test this.  
[http://dnadillo.dn.ua/mur\_gallery/ac3FLA/star\_war.swf](http://dnadillo.dn.ua/mur_gallery/ac3FLA/star_war.swf)  
[http://dnadillo.dn.ua/mur\_gallery/ac3FLA/star\_war.rar](http://dnadillo.dn.ua/mur_gallery/ac3FLA/star_war.rar)

---

<div class="post-metadata">

**Author:** ![RebuiltJorge](https://avatars.discourse-cdn.com/v4/letter/r/94ad74/32.png) [@RebuiltJorge](https://forum.kirupa.com/u/RebuiltJorge)\
**Post date:** [June 25, 2008, 3:06am UTC](https://forum.kirupa.com/t/star-wars-title/264001/6 "2008-06-25T03:06:03Z")

</div>

thanks i will take a look
