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?