# Creating movieclip by mouseclick

**URL:** <https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778>\
**Category:** Uncategorized\
**Created:** [October 16, 2002, 10:20am UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778 "2002-10-16T10:20:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hartwig](https://avatars.discourse-cdn.com/v4/letter/h/e9bcb4/32.png) [@Hartwig](https://forum.kirupa.com/u/Hartwig)\
**Post date:** [October 16, 2002, 10:20am UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/1 "2002-10-16T10:20:15Z")

</div>

[F5]Arg!! For Actionscript Guru!! Beginner needs help!

Hi!

Is it possible to define the properties of a movieclip by clicking a button and then to play the movieclip by pressing another button.  
for example:

clicking on buttonA defines the sizeA of a circle  
clicking on buttonB defines a second sizeB of the same circle  
clicking on buttonC makes the circel growing from sizeA to sizeB

this I need for 25 different circles which shoud grow at the same time

do U know what I mean?

THX

Hartwig

---

<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:** [October 16, 2002, 10:56am UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/2 "2002-10-16T10:56:11Z")

</div>

Well yes it is possible. But how do you set the sizes? Dynamic text? all the same?

---

<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:** [October 16, 2002, 10:58am UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/3 "2002-10-16T10:58:49Z")

</div>

the sizes are set by variables which were read from a .txt file and which are different for all the circles

H.

---

<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:** [October 16, 2002, 1:36pm UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/4 "2002-10-16T13:36:31Z")

</div>

So what is the matter? What is it that you don’t know how to do?

pom :q:

---

<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:** [October 16, 2002, 5:01pm UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/5 "2002-10-16T17:01:14Z")

</div>

I don’t want to use  
on ClipEvent (enterFrame) {  
\_xscale+=5;  
}  
because I have 25 circles and this makes the script very slow. Wih tweening I can’t define sizeB. So how can I assign the variables to sizeA and sizeB? How has the MC/ the script to look like?

Please help!

Hartwig

---

<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:** [October 16, 2002, 6:08pm UTC](https://forum.kirupa.com/t/creating-movieclip-by-mouseclick/6778/6 "2002-10-16T18:08:43Z")

</div>

Well, if you don’t want to use either script or tweens, it’s gonna be tough.

Use script, it’s easier. You could use a function, for instance:

```auto
function grow(sizeB){
    this._xscale=this._yscale+=(sizeB-this._xscale)/4;
}

```

and assign it on the enterFrame of all your circles. And don’t worry, Flash can take it 😛

pom :cowboy:
