How to access the forums / double video clip?

Hi, I'm new and I always confuse on how to duplicate the movieclip in as3 then access instances. I try to write this code:

for (var i = 1; i < 5; i ++)

{

var mc:MC = new MC();

MC. Name = String ("mc_" + i);

addChild (mc);

MC.x = 20 * i;

MC.y = 0;

trace (mc.name);

}

When I run the code, I see that I have mc_1, mc_2, mc_3, and mc_4 and I see them in the scene.

But why I can not manually access by calling their name and put measures in it? for example like this:

for (var i = 1; i < 5; i ++)

{

var mc:MC = new MC();

MC. Name = String ("mc_" + i);

addChild (mc);

MC.x = 20 * i;

MC.y = 0;

trace (mc.name);

}

mc_1.x-= 3;

removeChild (mc_2);

mc_3.y += 3;

mc_4.x += 2;

If I run the present, I got "1120: access of undefined property mc_1, 2, 3, 4" error message.

I want to just call / each case individually outside of the loop / access code. Is this possible?

Can someone help, please? Thank you

a reference and are not the same (unless you create an object in the ide).

use getChildByName() to reference objects with the same reference (mc) and different names:

this.getChildByName("mc_2").x-= 3;

etc.

Tags: Adobe Animate

Similar Questions

  • To access the Intences inside video Clips

    I want to create a menu that is an mc on the main stage, not inside anything. "The menu itself has element inside, so something like this mainStage" navMenu "navMenuClose. I want the script of action on the main stage, but it does not recognize the navMenuClose button. I want the ActionScript on the main stage, because I also want the menu hide after each function, just for browsing. (The end is incase you change your mind) If I have the script inside the navMenu it does not recognize the menu, so I can't hide it from there. I hope that's clear, and I appreciate all help.

    If this code is on the timeline that holds navMenu, then you must include it in the path to target the navMenuClose...

    navMenu.navMenuClose.addEventListener (MouseEvent.CLICK, closeNavMenu);

    And do not use Event: MouseEvent in the argument of the function... 'Event' itself is a class name.  Use lowercase letters for variables... event: MouseEvent, or evt:MouseEvent

  • How to access the Clipboard Premiere Pro?

    I don't know if I need to use the SDK for it or not.

    Basically, I want to be able to COPY items different lots of first, as presets, transitions and clips... in the Clipboard, one at the time and then all of this Clipboard information SAVE somewhere where it will not be overwritten when the next thing is copied to the Clipboard.

    Then I'll program a system (probably using AutoHotKey) where any particular item can be recalled and placed in the active Clipboard, then pasted directly into the first as usual.

    This would allow me to use customized keyboard shortcuts to instantly apply any effect I want, any transition I want and any group of clips that I want the timeline... incredibly easy and flawless.

    I tried to use the function clipboardAll() to autohotkey (Clipboard and ClipboardAll), but it does work for the copied elements in first... only for the text and images and things like that. It seems to me that the first has its own special Clipboard it uses for the more complicated things like copy effects or clips on the timeline.

    Once again, my question is, how to access the Clipboard Premiere Pro ? Where this file is located in the Windows? I searched through all folders in AppData first and I don't see anything that resembled the Clipboard information... I do not know if this is the right place to look.

    I downloaded the SDK, but I don't see any information on the Clipboard in the included help file, so I don't know if the SDK may be useful for this.

    I am so, so grateful if someone could help me with this. I'm a video editor, not a programmer, so this kind of thing is not very easy for me.

    There is no way to access the Clipboard Premiere Pro, in the way you described.

    What do you do with the items you want to copy? Perhaps there is another way.

  • How to access the BIOS on Satellite A110-195 settings?

    How to access the BIOS settings (CPU, video memory ect). I have http://eu.computers.toshiba-europe.com/innovation/jsp/SUPPORTSECTION/discontinuedProductPage.do?service=EU&PRODUCT_ID=1 18639

    At the start when the Toshiba start screen appears press F2 repeatedly and you should be able to enter the BIOS settings.

  • How to access the BIOS on Satellite C50-A-1F

    Hey folk,

    A small question:

    How to access the BIOS of my laptop?

    I tried this method and f12, f1, f2 etc.

    Thanks in advance

    Have you ever tried to look for similar issues here in the forum?

    Check this one:
    http://forums.computers.Toshiba-Europe.com/forums/thread.jspa?threadID=76740

  • HP laptop - 15-ac121dx: how to access the ram on a 15-ac121dx modules

    I want to upgrade the ram in my HP laptop - 15-ac121dx and maybe the hard drive, but I can't understand how to access the ram. There is no access panel, and unlike some other models, it doesn't have a single lever in the battery bay to remove the cover.

    OK, I realized how down low on the laptop.  After watching some youtube videos I came across another HP laptop computer who had screws under the rubber feet and of course there are also screws under the back of two rubber feet, can't believe I didn't think to look under them.

    To get the background you need to:

    1. Remove all the screws on the bottom.  (Must be 12 total)
    2. Remove the drive from DVD (Yes it does not).
    3. Finally, carefully separate the case around the side.

    After that, you should have full access to the slots of RAM and hard drive.

  • LaserJet 8150dn start button is stuck - how to access the mechanism internal?

    Can someone tell me how to access the internal mechanism of the switch so that I can repair or replace it. My LaserJet 8150dn works very well (it is plugged into a power strip which has a power button) but the switch is blocked. He is pushed back and he does not feel as there is no 'spring' behind it more to push back in position.

    I don't want to arbitrarily start unscrewing panels external printers.

    I did a search for repair instructions, but all I get are sites that offer their professional services. Given that it is age of pay a repairman to work on it would not be a wise investment. Any help would be appreciated. Thank you

    Hi azsigningagent,

    It is a product of the profit margin. For the best answer to your questions, you need to transfer your question at the following links.

    http://h30499.www3.HP.com/T5/business-support-forums/CT-p/business-support

    http://h30499.www3.HP.com/T5/printers-LaserJet/BD-p/BSC-413

  • VM simulator - how to access the file system.

    I was wondering if anyone knows how to access the file vmware playbook simulator system.

    I don't want access programmatically, I covered, for access to the file system to copy files to the Simulator in shared directories.

    When you connect a playbook on the USB, it shows up as a drive, and I would like access to the same playbook vm dir structure to copy files for testing. for example if your s app access the pictures on the camera, I would like to copy some images for the test. Any ideas?

    TIA - dave

    Search the forum for more information on using 'ssh' to access the Simulator and more specifically help 'scp' or 'sftp' to transfer files to. You will do this in the files under/accounts/1000/shared, and if you're on Windows you will probably be to install PuTTY to do this. Feel free to ask for help more once you have dug through it all.

  • x 61: how to access the fan for cleaning?

    Lately, I have a humming noise after an hour or two of my x 61 (7675-CTO), some have suggested to clean the fan.

    Question: How to access the fan? I have the manual from lenovo, he speaks of various regions, such as the keyboard, dimm, HD, but not opening fan? Your help step by step will be appreciated.

    In addition, what is the best way to clean the fan?

    Any reference to the video will be great. Thank you.

    take off the keyboard and you can clean the fan blades, but if you need Strip fan apart, you will need to disassemble the entire assembly.

    Buzz can mean that your fan needs to be replaced, if that's the case, then I would say that you extend the warranty on the laptop (you can buy post warranty on certain models of x 61, so you must call Lenovo customer service).

  • How to access the source timecode in the timeline?

    Hello

    When I enter a time code while in the panel mounting, the prescription jumps to absolute timecode. How to access the source timecode of the clip on the prescription is?

    THX,

    Jayson

    You can't directly.  You need to charge this element in the Source monitor, where you can go the desired timecode, and then make a game framework reverse to get to the very image of this sequence.

  • Hi how to access the tutorial - with the Eagle?

    HI - how to access the tutorial - with the Eagle?

    It's here: create a video | Adobe first Pro CC tutorials

    There is also a newer version here: How to edit videos with Premiere Pro | Adobe first Pro CC tutorials

  • How to display the name of audio clip in the timeline?

    How to display the name of audio clip in the timeline?  I can see the label for video clips in the timeline, and when I hover over audio clip [I see the label, but otherwise, not l; abels show in audio editing.

    Hi denniscallan,

    Audio Clip names are disabled by default in first Pro CC. Turn it on go to the timeline (wrench) display settings in the timeline panel and choose Show names of Audio.

    Hope that helps,

    Kevin

  • How to access the extraction tool in the PS5?

    How to access the extraction tool in the PS5?

    Their "classroom in a book" instructions are wrong.

    Nice day!

    Please read this:

    http://forums.Adobe.com/message/4587299#4587299

    How to access the extraction tool in the PS5?

    Do you mean 5 Photoshop or Photoshop CS5?

    Their "classroom in a book" instructions are wrong.

    Are you sure?

    What version of Photoshop version the book address?

    What are the faulty instructions?

    Kind regards

    Pfaffenbichler

  • How to access the info in my iCloud account

    How to access the info in my iCloud account?

    You can access much of the iCloud.com on a computer or through specific applications on your mobile device such as contacts, calendars, iCloud Drive, Photos. What exactly you were looking for and what type of device.

  • How to access the bios?

    I am trying to install a new OS, how to access the bios on my HP Pavilian dv8?

    Hello:

    You should be able to access the BIOS by pressing the F10 key as soon as you see the HP welcome screen.

    Paul

Maybe you are looking for