# Need Help with Actionscripting a growing sphere

**URL:** <https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474>\
**Category:** Uncategorized\
**Created:** [July 27, 2004, 6:53pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474 "2004-07-27T18:53:28Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![soccerguy8080](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@soccerguy8080](https://forum.kirupa.com/u/soccerguy8080)\
**Post date:** [July 27, 2004, 6:53pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/1 "2004-07-27T18:53:28Z")

</div>

I am trying to code a growing sphere and I am having trouble finding a tutorial on how to do it. Does anyone have any suggestions?

Thanks  
Derek

---

<div class="post-metadata">

**Author:** ![Luckies](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/luckies/32/550_2.png) [@Luckies](https://forum.kirupa.com/u/Luckies)\
**Post date:** [July 27, 2004, 7:31pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/2 "2004-07-27T19:31:40Z")

</div>

I’m assuming you mean an expanding circle with some sort of gradient (to give off the illusion of depth), right? Or are you talking about importing an already-made 3d model?

---

<div class="post-metadata">

**Author:** ![soccerguy8080](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@soccerguy8080](https://forum.kirupa.com/u/soccerguy8080)\
**Post date:** [July 28, 2004, 3:27am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/3 "2004-07-28T03:27:08Z")

</div>

You were right with your first assumption. I am looking for a series of circles that appear to get bigger and fill the whole screne(canvas size). Do you have any suggestions on how to go about doing that?

---

<div class="post-metadata">

**Author:** ![bodyvisual](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/bodyvisual/32/564_2.png) [@bodyvisual](https://forum.kirupa.com/u/bodyvisual)\
**Post date:** [July 28, 2004, 3:46am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/4 "2004-07-28T03:46:46Z")

</div>

you dont necessarily have to use AS, and in this situation it would probably be better not to. just do a simple motion tween. it’s really easy, and it saves processor.

:p:

---

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [July 28, 2004, 3:56am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/5 "2004-07-28T03:56:35Z")

</div>

otherwise…  
\*Note: This will continue to grow regardles of whether the circle is larger than the stage.

```auto

onClipEvent (enterFrame) {
scalevalue = 10 //this will affect how quickly the movieClip "grows"
this._height += scaleValue;
this._width + = scaleValue;
}

```

---

<div class="post-metadata">

**Author:** ![soccerguy8080](https://avatars.discourse-cdn.com/v4/letter/s/c2a13f/32.png) [@soccerguy8080](https://forum.kirupa.com/u/soccerguy8080)\
**Post date:** [July 28, 2004, 6:39pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/6 "2004-07-28T18:39:41Z")

</div>

Thanks a lot guyz, thats what I was looking for.

later  
Derek

---

<div class="post-metadata">

**Author:** ![ratbaggy](https://avatars.discourse-cdn.com/v4/letter/r/a3d4f5/32.png) [@ratbaggy](https://forum.kirupa.com/u/ratbaggy)\
**Post date:** [July 28, 2004, 11:05pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/117474/7 "2004-07-28T23:05:58Z")

</div>

np
