# How do I approach this?

**URL:** <https://forum.kirupa.com/t/how-do-i-approach-this/321176>\
**Category:** flash\
**Created:** [April 12, 2011, 3:45pm UTC](https://forum.kirupa.com/t/how-do-i-approach-this/321176 "2011-04-12T15:45:26Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MadStavrogin](https://avatars.discourse-cdn.com/v4/letter/m/0ea827/32.png) [@MadStavrogin](https://forum.kirupa.com/u/MadStavrogin)\
**Post date:** [April 12, 2011, 3:45pm UTC](https://forum.kirupa.com/t/how-do-i-approach-this/321176/1 "2011-04-12T15:45:26Z")

</div>

Hi!

I’m quite new to flash and programming so I’m having a hard time trying to accomplish this. I want to have several **different** movieclips on the stage, either added there when making the fla or dinamically created through AS3 and I want them to be controlled by a certain function. I read the blue circle tutorials on this site but I’m not sure I got it right :puzzle: I have done something similar to this (not posting the real thing because it’s not in English and too long):

> public class blabla

[INDENT]private var variable1  
private var variable2  
etc

public function movement (parameter1, parameter2, etc) {[INDENT]this.property1 = some math;  
this.property2 = more math;  
this.etc[/INDENT]}[/INDENT]

I’m not sure what to do to have the function work with different movieclips using different arguments. I could change _this_ for an instance name, for example, but then I would have to do a function for each mc and that wouldn’t make any sense. It would be cool if I could give the instance name as an argument but I don’t think that’s possible. What should I do?
