How can I do this function of towing in a function

How can I do this function of towing in a function

//------------------------------------------------------------------------

function test1(e:Event):void

{

box1_mc.x = 5

}

function test2(e:Event):void

{

box2_mc.x = 5

}

//---------------------------------------------------------------------------

i magine I have 1000 movie clip like that (box1_mc or box2_mc) it will be difficult to do 1000 functions

I just need to pass the name of the clip, for example. (box1_mc or box2_mc) to the function

function test(mc:MovieClip):void {}
MC.x = 5;
}

But if you use some sort of event to call the function, you need to change your earpiece.

What exactly are you trying to do?

Tags: Adobe Animate

Similar Questions

Maybe you are looking for

  • Toshiba 40LV713B - not found any Freeview channels

    Hello I just got a used Toshiba 40LV713B TV with integrated DTT.I just bought a new aerial cable and have connected directly from the antenna on the tv socket.I live in the center of Manchester, so I guess that signal is not a problem.I have reset th

  • Black screen after using Recovery CD - Satellite A60

    Hey,. After a few Virus attacks, I tried to format my Toshiba laptop HARD drive and to install Windows XP Professional (normally a family license for XP Edition).Everything was good, but I couldn't install some drivers (display, WLAN, Ethernet LAN...

  • Satellite M40X-189: I want to upgrade the processor?

    Hello I have the satellite m40x-189 notebook with Intel Pentium M 730 processor(1.6/2M/533). "I want to improve my CPU with Intel Pentium M780 processor(2.26/2M/533). Is this possible?

  • Touch Pad doesn't work does not correctly? HP-Envy-15Q004TX

    HelloIt is the first HP product I've ever owned, I'm pretty happy with the laptop, outside of windows 8.1 However, is not the concern of this post. My mouse pad stops working when I press a key, as in if I press 'W', while trying to move the mouse on

  • Help setting up new bluetooth speakers

    Original title: bluetooth Hi I got an IHOME Bluetooth Speker iDM12 as a gift and I'm trying to use it with my computer. I buy a bluetooth microphone of redfish and installed adapter. Currency has been detected and paired I know because when I press b