Can a variable as parameter to the function change value?
===

Is there a way / I would like to know how to use a variable dynamically.
My idea is to have a movieclip calling a function at the same time passing a parameter.
The parameter value will then be pass to the function for more script.

Sample Code, I have two movieclip with instance names, box1 and box2.
once, any of the movieclip is press, the function will execute.


    // movieClip, instance name : box1
    on(press){
    	_root.funcName(this._name);
    }
    on(release){ stopDrag(); }


* movieClip, instance name : box2, has the same code.
* there identity is being passed to the function through "this._name"

Finally, here is the code for he function. I trace "b" in order to know its value.
Added startDrag() to be able to drag the movieclip

**How can I able to trace "--drag "+b while dragging the movieclip?**

    function funcName(b){

	    trace(b+" selected.");
	    startDrag(b);
	
	    onMouseMove = function(){
		    trace("--drag "+b);
	    }	
    }

Thank you in advance. I have thought of using this code. Is this allowed?

    function funcName(b){

	    trace(b+" selected.");
	    startDrag(b);
	
	    b.onMouseMove = function(){
		    trace("--drag "+b);
	    }	
    }