# Need Help with Actionscripting a growing sphere

**URL:** <https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008>\
**Category:** flash\
**Created:** [July 27, 2004, 6:53pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008 "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/59008/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:** ![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 27, 2004, 7:31pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/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:** ![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 28, 2004, 3:27am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/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:** ![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 28, 2004, 3:46am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/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:** ![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 28, 2004, 3:56am UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/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:** ![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 28, 2004, 6:39pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/6 "2004-07-28T18:39:41Z")

</div>

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

later  
Derek

---

<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 28, 2004, 11:05pm UTC](https://forum.kirupa.com/t/need-help-with-actionscripting-a-growing-sphere/59008/7 "2004-07-28T23:05:58Z")

</div>

np
