How to access MC instance when we have only his name as a string.

Hello

I'm not good to the ACE, but I try.

I'll send the instance (i.e. String) of the MovieClip to a function name.

This feature, I need to access the same instance of MovieClip using this name.

I have an Instance of MovieClip Planet_mc name. And I send you its abc() operation

ABC (Planet_mc. (Name)

function abc(s:String):void

{

do something to change the alpha of this instance.

}

Thank you

of course, you can:

ABC (Planet_mc. (Name)


function abc(s:String):void

{
var Dragged:DisplayObject is getChildByName ("Planet_mc");.
Dragged.Alpha =. 5;

}

Although it is still easier to use:

ABC (Planet_mc);


function abc(s:DisplayObject):void

{
s.Alpha =. 5;

}

Tags: Adobe Animate

Similar Questions

  • How can I have two virus of Gabrielle at the same time? When I have only a single virus of Gabrielle, I know, this program is Mcafee.

    How can I have two virus Gabrielle clocked at sametime?

    When I have only a single virus of Gabrielle, I know, this program is Mcafee.

    It is not recommended to run two anti-virus programs at the same time.  It will make the System unstable, crashes, slow performance and so on.  It is better to use a program that you trust on a regular basis and if you want to double check this program, use a parser in line one of the main websites AV.

    "Firqure" wrote in the new message: * e-mail address is removed from the privacy... *

    How can I have two virus Gabrielle clocked at sametime?

    When I have only a single virus of Gabrielle, I know, this program is Mcafee.

  • My USB to ethernet adapter works only if plugged into my MacBook Pro. I tried to use to start an expander USB (power strip), but this has not--a problem when you have only TWO USB ports ports! Any suggestions?

    My USB to ethernet adapter works only if plugged into my MacBook Pro.

    I tried to use to start an expander USB (power strip), but this has not--a problem when you have only TWO USB ports ports!

    Any suggestions?

    Juice what 'expander' did you use?

    What model of MacBook Pro?

    This is the Office Mac Pro forum. I asked that your post be moved to the MacBook Pro laptop forum.

  • How to configure listener.ora when I have several databases

    How to start a headphones/stop and configure listener.ora, tnsnames.ora when I have multiple instances.

    Is it different when there is only a single instance to run in the same server (ORACLE_HOME).

    and how to deal with the ora-12514 error

    Published by: udayjampani on October 11, 2011 16:26

    udayjampani wrote:
    What should be the tnsnames.ora for this

    Since we don't know anything about your system, we cannot say what will be in your tnsnames file.

    What I can say is that you must first realize this tnsnames is used only by client processes.

    You should probably start here: http://edstevensdba.wordpress.com/2011/02/09/sqlnet_overview/

  • How do I "right-click" when I have a touch pad (MacBook Air) and not a mouse?

    Only to learn how to use Thunderbird. Have only used Outlook Express for years, but it is not supported on my portable MacBook have a huge learning curve. When you're looking for in help, instructions often say "right-click." How do I "right click" with a touchpad?

    How to use your mouse pad is not a query of Thunderbird.
    However, a simple google search located which should help you.

  • How to activate a button when people have scrolled down to a certain amount?

    Let's say I have a text box with a scroll for a terms and conditions bar. How to activate a button when they did scroll down a certain amount?

    figured out, horizontalScrollPosition was the setting that I needed :)

  • HP 6600: why can I not print with only black when I have only black cartridge in hp 6600 as hp 4500'?

    and he always says that color cartridges are leaking so I had to make one more only accepts black and I can not print with only black.

    How can I print with only black when I have the only black in the printer.

    Why only black does not work with the color cartridges.

    What is the error message you see with the color cartridges installed?

    HP and other printer manufacturers have technology another printer for different needs.  For ink jet printers:

      • Some have integrated into the ink cartridges print heads.  These printers can print generally with one or more of the colors completely empty, or even with color or black cartridges (but not both) removed. 5665 envy is an example.
      • Other printers have separate replaceable printheads and inks.  An example would be the printer Officejet Pro 8610.  In these printers print head can be replaced if they are damaged by running the printhead with colors off.  Some of these printers allow printing with a color, the other will not.  If the printer is run without ink in one or several colours, the printer may be damaged, but the user may be able to recover without having to send to the printer for the service.
      • Other printers have permanent print heads.  To run only those without little ink in all colours would risk causing damage to the print head because of clogs, air ingested in the printhead or grilled printhead resistances of shooting. The Officejet 6600 is an example of this type of printer. For printers with fixed print heads that could require the service to get the printer to print properly again when the ink is finally replaced.

    The document described here how the ink is used.  The document is written for inkjet printers HP the same principles apply to printers inkjet from other manufacturers.

    If you do ever print color laser printer would probably be a better choice.  If you occasionally print color but especially black a HPI printer as those in the first category above can be a good choice.

  • Network error mystery - Windows cannot access \\server\users when you use the netbios name, but works fine when you use the full domain name.

    Hi all:

    Mystery - I have a Win 7 work company that cannot access a particular action.  I get the following error-"you are not allowed to access \\server\users.  Contact your network administrator to request access.  However, these users can access these files successfully on other computers, and also if I use the fqdn or the IP instead of the "netbios name server", it connects successfully.

    Environment:

    -Workstation and server at the same time in the same AD Windows 2008 r2 domain.

    -All users, admin and non admin, cannot access this share when connecting to this computer only.

    -ACCESS to the other actions on the same server, as well as actions on other servers.

    -The biggest mystery to me - if I type the FQDN, \\server.domain.local\users, it works!  What the?

    I tried:

    -Deletion of the domain and add it again, no improvement.

    -Check Event Viewer, nothing jumps (not red or yellow).

    -Enabled auditing for access to objects on the server, it does not show a failure in the security event log.

    -Turn off the firewall of my computer.

    -UN-share and re - share the directory.

    -Give everyone full control (the fact that it works well with de facto authorities a little full domain name, a candidate little likely, but I have an open mind).

    For anyone wishing to offer their 'help' by asking me to make some sort of workaround as re - install windows or turn off netbios or use only of the full domain name here on out or whatever, please Don ' t bother.  I appreciate your help, but I am quite able to reinstall and I'm not interested unique hacks that affect this otherwise network well managed, I'm looking for a solution that will allow me to save time and is a long-term solution.

    In my view, that a key point here maybe I can connect successfully using \\server.domain.local\users, but not \\server\users.  Someone at - it some thoughts?

    In DNS server of youe, go to the area in question and in the use of select search before Wins wins tab and enter the address of your wins server if you have one. If not, install one.

  • How cancel my membership @CreativeCloud when I have more access to the email account under which it was established?

    I just spent an hour with support chat. And got nowhere I explained that my credit card had been charged for an annual fee, and I wanted to cancel my account and have a refund on my credit card. I also explained that I could access is no longer the original e-mail. And just when I thought we were making progress, the agent wrote, ' "I will be able to cancel the subscription without cancellation fees and not to initiate a refund for cancellation.". It was at the point of 45 minutes in our conversation, I finished on that date.

    Adobe customer service has reached a new low. Maybe I should sell my stock now...

    Hello

    Please contact support by calling/chat for cancellation requests and billing queries:

    Contact the customer service

    * Be sure to stay connected with your Adobe ID before accessing the link above *.

    You can also check the help below document:

    https://helpx.Adobe.com/x-productkb/policy-pricing/cancel-membership-subscription.html

    Please go through the Adobe - General conditions of subscription as well.

    Kind regards

    Sheena

  • How to access the instance property of the main class via child class

    Hi I hv done 3 classes objecthandler, box and nav

    NAV is child chass objecthandler, I hv make an instance of objecthandler box and now I want to access the property of box via NAV... See the code

    Class Objecthandler

    package code {}
    import flash.display.MovieClip
    import code.box
    import code.nav

    public class objectHandler extends MovieClip {}
    public var container: box
    public var navigation: nav

    public void addObjects() {}

    Navigation = new nav()
    addChild (navigation)
    navigation.addEvents)
    navigation.x = 275
    navigation.y = 400

    container = new box()
    addChild (container)
    putcontainer ("default")< < works well here
    }
    public void putcontainer(page:String) {}
    Container.OpenPage (page) < < when this function is executed it returns ("page is open"+ page)
    }
    }
    }

    Class of NAV

    package code {}
    import flash.display.MovieClip
    import flash.events.MouseEvent
    import flash.display.DisplayObjectContainer
    import code.box

    public class nav extends objectHandler {}
    public void nav() {}

    }

    public void addEvents() {}
    homeBtn.addEventListener (MouseEvent.CLICK, releaseFun)
    galleryBtn.addEventListener (MouseEvent.CLICK, releaseFun)
    productsBtn.addEventListener (MouseEvent.CLICK, releaseFun)
    contactBtn.addEventListener (MouseEvent.CLICK, releaseFun)
    }

    public void releaseFun(event:MouseEvent):void {}
    putcontainer(Event.currentTarget.Name) < < showing the error over here
    }
    }
    }

    You should review your logic.

    It is not supposed have nav extend objectHandler and then has an objectHandler method that creates a new instance of nav.

  • The size of the text in the overview on the photo is too small for me to read.  Because of my brief problems, I need to use a keyboard that is not manufactured by Apple.  How do I Zoom in when I have no command button on my keyboard?

    I use OS X El Capitan.  I have an iMac.  I have a microsoft keyboard, because I have not found an ergonomic keyboard of Apple.  This keyboard has no key order. How can I increase the size of the text for applications such as Photos when I need to read the instructions in the help or preview screens?

    Open keyboard System Preferences and click the modifier keys button. You may be able to map the Windows key to command.

  • How to get VM to the .vmx file path when you have the VM name?

    Hi all

    I use the latest version of VIX API to power on virtual machines on an ESX Server. I work with c# in Visual Studio 2012 and currently I have power on the virtual machine by using the following code:

    VMWareVirtualMachine virtualClientMachine = host. Open (vmMachinePath, 2100);

    While this works, I think it is better to be able to turn on the virtual machine when you know the name of the virtual machine and not the path. So, how can I get the path to the VM to the vmx file when I know the name of the virtual machine? For example, if my VM on the ESX Server is called WIN7GERMAN, how I can get the path and pass this to the host. Opening function?

    Thanks for any help or code.

    John

    VM names are not unique, that's why it is not supported.

    You can use VixHost_FindItems() and locate the VIX_PROPERTY_FOUND_ITEM_NAME property without papers and use the associated VIX_PROPERTY_FOUND_ITEM_LOCATION to get the value to pass to VixHost_OpenVM().  You have to deal with duplicate however names

  • How to use express airport when I have the cable modem? you want to listen to music in stereo.

    Hi all, this issue is driving me crazy. the goal was to use an Airport Express station to listen to the music of my devices in my stereo and a DAC to warm up the sound, but do not know how to connect because I have a cable modem my network on. I just want to use airport express to broadcast in stereo. I asked 3 people at the apple store today, and they seemed just as I asked them how to build a House from the ground. they had no idea. did someone hear doing this specific process? Thanks for any input.

    I understand the process of putting in place the DAC, is just the thing of the whole network that creates confusion. Sorry if this is the wrong place to post this.

    You can have one or the other hard connected (wired) network or a WiFi to your airport, but you can't have both. Unplug your ethernet cable from your Mac. Now, you'll be on a Wi - Fi on all devices. Reset your AE and use the installation wizard. Otherwise most suppliers of cable modems that with wi - fi for which they charge you an additional monthly cost.

  • How to access an instance of an object through activex

    I try to retrieve data in real time to a FSA pressure mapping system and uses the activex of LabVIEW tools to connect.  I interfaced with hardware (can recover soap operas and others), but were not able to read real data.  The company programmers use Javascript for their programs and know nothing of LabVIEW.  Here is the info I got from them so far.  I'm reading an instance of an object through its activex reference.  Got out readings, I'm stuck trying to read an individual reading.  Thank you

    The InterfaceModule.Read method returns an object Frame.  The framework
    object contains a collection of one or more readings (Frame.Readings).
    There is an indication for each sensor connected to the IM table. If
    they use a single mast, then the reading will be in
    Frame.Readings (0). Value of pressure of the probe is contained in the
    Property Value of Reading (Reading.Value (column, row)).

    So to take a read and retrieve the pressure for sensor A1
    (column = 0, = 0 line):
    ...
    Frame = im. Read();
    pressureA1 = section. Readings (0). Value (0, 0);

    Difficult to say without having the ActiveX library, but there is probably a method "Item" that will allow you to access a specific element in the collection. For example, with Excel ActiveX library you can get to a specific worksheet to the collection of sheets in a workbook by using the Item method, as in the attached photo. Note that you may need to convert the object returned in the appropriate type, depending on what is returned. For the Excel library the 'Article' method returns a Variant.

  • How do merge you a hard drive when you have 14 scores or how extend you c? When you have 14 partitions

    Hi I have 14 partitions in drive c, now I'm trying to merge them all on the Boardwalk main Ho can I do this if windows says there is not enough free space to continue this
    operation please help

    Hello

    You must be logged in as an administrator.

    You should ask in the answers – Windows Forums for your version of Windows.

    Answers - Windows Forums
    http://answers.Microsoft.com/en-us/Windows

    =============================

    Here is some information for Windows 7.

    Delete a hard disk partition
    http://Windows.Microsoft.com/en-us/Windows7/delete-a-hard-disk-partition

    How to remove a Partition or Volume in Windows 7
    http://www.SevenForums.com/tutorials/2668-partition-volume-delete.html

    How to extend a Partition or Volume in Windows 7
    http://www.SevenForums.com/tutorials/2670-partition-volume-extend.html

    How to resize a Partition on Windows Vista & Windows 7, using disk management.
    http://www.WinVistaClub.com/T11.html

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

Maybe you are looking for

  • Auto-Lock

    How can I set up auto-lock on my iPhone 6 Plus using IOS 10?

  • In the terminal, I can't type the (tiny) letter 'e '.

    2015 MBP, entirely updated OSX I opened a terminal window and if I type the letter 'e' (without the quotes of course) it beeps and tape not the letter.  All other letters works very well in the terminal.  Upper case E also works.  Just under E. In al

  • Is the server down eprint, my impressions are not print?

    It works fine with my desktop, but when I send an email to the printer, it does not print! It worked yesterday, but last night, and now it is not. I use an HP printer deskjet 3512 which I was able to install on Linux

  • Patriot RAM... correct?

    I can get a good deal on 2 x 8 GB RAM (16 GB total) Patriot. Patriot RAM is not serious, trustworthy, etc. ? Thank you.

  • BlackBerry smartphones default switch of the camera built-in memory card media

    My blackberry 8330 has switched to the built in default memory for my photos.  I have a media card that has been there since the phone was new. About 3 times before, the phone reset and it takes me forever to find the place in the settings to set the