That inherits from MovieClip

Hi all
I'm new to Flash and I am new to OBJECT oriented programming, and so I'm having a little trouble to write ActionScript programs to do exactly what I want.

I am trying to create a simple application, in which a MovieClip is dragged around the screen and a TextBox is updated with the coordinates of the MovieClip elsewhere on the screen. I wanted to do using custom classes, so I created a class called MovieClipCoordinates that contains a MovieClip and a TextField. I'm initializing the MovieClip as well as the output of a this.createEmptyMovieClip () of the main sequence and the TextField object.

My intention is to be updated every time you drag the MovieClip, TextField. Thus, in the MovieClip onRelease function, I need to update the textfield property of the MovieClipCoordinates object that the MovieClip is a property of.

The problem is, I have no idea how to find out the MovieClipCoordinates that belongs to the MovieClip. I thought I would create a method in the MovieClipCoordinates class, which would set the TextField, called from the MovieClip.onRelease. So I thought that I would not have a MovieClip inside the MovieClipCoordinates class, but rather another class inherited from the MovieClip which also contains a reference to the class of MovieClipCoordinates is a member. However, the problem now is that I can create is no longer this subclass via a call to createEmptyMovieClip. So, how it create?

I'm a bit confused at this point of time. Could someone please give me an idea of how to do this?

Thank you.
Ajit

Take a look at the attached class. It will be useful.

Tags: Adobe Animate

Similar Questions

  • ComboBox button that inherits from the skin - how to override

    Using Flex Builder 3.

    I've set up a button style in the style sheet so that all the buttons look for more up and down skins.

    The problem is that no matter what I can not do the ComboBox will not use the skins defined for the button.

    Is it possible to replace the skins do not use a skin.  I've implemented a specific style for the ComboBox control, but it takes always the button skins.  I tried both using ComboBox for the descriptor of style and a style specific name as Mazonedelistederoulante and set the style on the drop-down list box in the mxml.

    What is strange, is that literature it does not resemble ComboBox inherits all the styles button.  If it makes no sense at all.

    Any ideas?

    Thank you

    Cindy

    As combobox has a downarrowButton which is a class of button, it will expand the skin that you defined for the button, you can reset it by

    ComboBox
    {
         up-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
        over-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
        down-skin: ClassReference("mx.skins.halo.ComboBoxArrowSkin");
    

    Another way is not to use the CSS type selector, just set a class name to help your skin to custom button and set the class name for each button

  • Can someone link me to some documents that NetBIOS is required for devices inherited from Windows to function properly?

    NetBIOS and Windows Legacy Machines

    Can someone link me to some documents that NetBIOS is required for devices inherited from Windows to function properly?

    Maybe even a link to a Microsoft web page that States this as well.

    I understand the security risks inherent with opening ports 135 and 139, but they are needed within the network for some devices to function correctly, just need a documentation that indicates that.

    Hello

    See the links below and check if that helps.

    http://TechNet.Microsoft.com/en-us/library/bb727013.aspx

    http://TechNet.Microsoft.com/en-us/library/cc940063.aspx

    http://TechNet.Microsoft.com/en-us/library/cc738412 (WS.10) .aspx

    Thank you

  • Why is the 200 GB $44.99 a plan inherited from year more expensive than the monthly plan the new 200 GB $2.99 a month plan ($35,88) - what's the catch here?

    Why is the 200 GB $44.99 a plan inherited from year more expensive than the monthly plan the new 200 GB $2.99 a month plan ($35,88) - what's the catch here? is there a reason why the new plan is less expensive? they are trying to phase out the inheritance plan? is there a difference in storage w the new plan and the legacy for the difference in price (of the problems of the different devices w - computer laptop Mac, iPhone, iPad?)

    The only difference is that it is charged monthly.

    As shown in the following, you may be able to increase your storage space or reduce your costs by opting for the monthly package. Annual storage iCloud - Apple Support plans

  • where to download agent inherited from vmware-performance

    Hello

    I am using vmware-performance agent 5.6.3 and my OS client uses the Chinese language.

    I can't receive the data from the agent, may have the same problem like this: https://support.quest.com/Search/SolutionDetail.aspx?id=SOL87716

    https://support.quest.com/search/SolutionDetail.aspx?ID=SOL87716 where to download an agent existing vmware performance?

    Hi XIaoChao,

    Please open support case agent inherited from the request. The last legacy agent is 5.5.8.1

    Please note that if you use vFoglight 6.6.1 some new collection can not work for old legacy agent

    Concerning

    -Lee

  • BGP announcement: How do I remove the attributes "next hop" and "metrics" inherited from OSPF?

    Hello

    I use a router THAT WAN Cisco ASR1001 connected via BGP AS65075 with our ISP.

    This router is connected through OSPF with our Cisco 7206VXR/NPE-G2 firewall.

    Topology:

    ISP <- bgp="" -="">RT 1001 <- ospf="" -="">FW 7206 <->LAN

    On the WAN router, static routes are set to null0 to always announce our class C networks.

    Route IP 192.168.10.0 255.255.255.0 Null0 250

    ...

    Network guidelines are placed in our BGP configuration:

    router bgp 65075

    The log-neighbor BGP-changes

    neighbor EBGP-PEER-IPv4-peer group

    EBGP-PEER-IPv4 neighbor fall-over bfd

    neighbour 192.168.88.138 distance - as 65200

    192.168.88.138 a neighbor EBGP peers PEERS-IPv4

    192.168.88.138 ISP IPv4 neighbor description

    next password 192.168.88.138 7 unknown

    !

    ipv4 address family

    ...

    network 192.168.10.0

    ...

    a neighbor EBGP-PEER-IPv4 soft-reconfiguration inbound

    EBGP-PEER-IPv4 neighbor distribute-list prefix-v4 on

    an EBGP-PEER-IPv4 neighbor prefix-maximum 100

    neighbor EBGP-PEER-IPv4-1 filter list out

    neighbor 192.168.88.138 activate

    neighbor 192.168.88.138 filter-list 2

    output-address-family

    A part of these networs are also learned through OSPF. If these routes are present in the routing table:

    RT-01 #sh ro ip 192.168.10.0

    Routing for 192.168.10.0/24 entry

    Known via "ospf 1", distance 110, metric 20, type extern 2, metric 1 forward

    Published by bgp 65075

    Last update to 192.168.0.79 on Port - channel1.28, 7w0d there is

    Routing descriptor blocks:

    * 192.168.0.79, from 192.168.0.71, 7w0d there is, through Port - channel1.28

    See metric: 20, number of share of traffic is 1

    Because these roads are active in the rounting table. Announcing BGP based on his and attributes "next hop" and "metric" are inherited from OSPF:

    RT-01 #sh ip bgp neighbors 192.168.88.138 announced-routes

    ...

    Network Next Hop path metrics LocPrf weight

    ...

    * > 192.168.10.0 192.168.0.79 20 32768 I

    ...

    Is it possible to remove the legacy of OSPF into BGP attributes?

    How to set the "next hop" to the value 0.0.0.0 and "metric" to 0?

    Thank you

    Best regards

    Jérôme

    Hello Berthier,

    NEXT_HOP is a hill & attribute mandatory path including the eBGP value is the IP address of the BGP peer (specified in the neighbor's remote control) where the router learns the prefix. Thus, your peers (eBGP) will still see the IP 192.168.88.138 in your BGP Next Hop as updates. I agree you the output of the command ' sh ip bgp neighbors 192.168.88.138 roads announced "can be confusing, but not worried about it.

    Metric 20 is cause of path must be acquired by OSPF. Copy in default atributte MED BGP metric. So I see that you have only a peer is very important change this value because MED is not transitive, if this value is not propagated by other ACE access your provider. Anyway, if you want to change, you must:

    1. create a list of prefixes with one or more prefixes that you want to "reset" the MED value:

    list of prefixes prefix-to-reset-MED seq 5 permit 192.168.10.0/24

    list of prefixes prefix-to-reset-MED seq 10 permit X.X.X

    2. create a roadmap

    allowed to reset - MED card route 5

    match of prefix-to-reset-MED IP prefix-list

    the metric value 0

    road map provided to zero-MED allowed 10

    !

    The last road map is necessary to ensure that the rest of the prefixes are sent.

    3. apply the road map

    a neighbor EBGP-PEER-IPv4-roadmap given to zero-MED on

    Concerning

  • Warning in VCS and TMS (inherited from TMS Agent mode)

    Hello.

    I have this massage in TMS and VCS system, how this fix?

    in TMS: #2057 - Configuration Warning - The VCS is running in a mode inherited from the officer of TMS; It is recommended to switch your system to use another mode.

    in VCS: the VCS is running in a mode inherited from the officer of TMS; It is recommended to switch your system to use another mode

    How to switch different mode?

    Thank you

    If you are not Provisioning - remove the key to implementation of the VCS.

    In the web interface, go to the maintenance, options keys, select the configuration key and press delete.

    (it might be helpful to take note of the key first, where you decide in the future that you want to install it again - but it can be retrieved otherwise if you lose, IE from the Cisco Licensing Portal).

    Wayne
    --
    Remember the frequency responses and mark your question as answered as appropriate.

  • OracleCommand, inherits from DbCommand

    It seems to me that, by using the version 2.111.7.20 of the Oracle.DataAccess.dll (from the ' Oracle 11 g ODAC 11.1.0.7.20'), the 'Oracle.DataAccess.Client.OracleCommand' class inherits from the class 'System.Data.Common.DbCommand. In the version 10.2.0.100 of the Oracle.DataAccess.dll (as of the current version of '10g Release 2 (10.2.0.1)' of the XE) which seemed not to be the case, although "Oracle.DataAccess.Client.OracleCommand" to implement the interface "System.Data.IDbCommand.

    In what version "Oracle.DataAccess.Client.OracleCommand" have you begun to extend the class 'System.Data.Common.DbCommand?

    (and 2.111.7.20 is really more recent than the 10.2.0.100? is the version of the dll)

    Hello

    My guess would be 10.2.0.2.20 if 2 .NET support has been added:
    http://download.Oracle.com/docs/HTML/E15167_01/whatsnew.htm#CJAJEFBB

    It will be useful,
    Greg

  • How is it all my email that comes from facebook comes with the same name

    All the mail that comes from my facebook has the same name as wenfel sand when his mother, wife, friend ect.
    What I've done and how to fix

    Because somewhere along the way you have saved an email from Facebook to your address book, and it has a name associated with it. Will find this contact in the address book and delete the name.

  • How to delete a Photo Album that came from my Mac to my iPhone. I want to remove it from the phone.

    How to delete a Photo Album that came from my Mac to my iPhone. I want to remove it from the phone. I do not use the cloud. Just sync with USB.

    You must synchronize with iTunes again but to change the settings on the Photos to iTunes page for doesn't understand is not the album (s) that you do not want on the phone. See the information below to keep your photos safely stored and updated on all your devices - Apple Support

    If you want more pictures synced to your iPhone, iPad or iPod touch, turn off sync in iTunes and they will be removed from your device. You can disable synchronization for some of your photo albums or all of them at once.

    Stop the synchronization of some albums

    1. Open iTunes on your computer and connect your iPhone, iPad or iPod touch.
    2. Click the device icon in iTunes.
    3. Click on the Photos.
    4. Choose "Selected Albums" and deselect the albums or collections you want to stop synchronizing.
    5. Click on apply.

    Stop synchronization of all photos

    1. Open iTunes on your computer and connect your iPhone, iPad or iPod touch.
    2. Click the device icon in iTunes.
    3. Click on the Photos.
    4. Uncheck 'Synchronize Photos' and then click 'remove all '.
    5. Click on apply.

    Learn how remove photos and videos synced from iTunes when you can not access the originals.

  • Where can I get the keys that fell from my macbook air keyboard?

    Where can I get the keys that fell from my macbook air keyboard?

    Try iFixit.com and Powerbookmedic.com.  eBay may be another alternative.

    Ciao.

  • Is it possible that someone from Apple can activate my IPhone 5 c, when the lock screen, says "disabled: connect to iTunes?

    So I changed my password, took a NAP, and when I woke up, I couldn't remember the password. So now, my phone says "disabled: connect to iTunes '. Is it possible that someone from Apple can activate my phone (preferably without restoring to the factory)?

    Once disabled, it cannot be re-enabled in the restaurant if you plant.

    An Apple Store can do for you. but you can also just connect to a computer running iTunes and do it yourself.

    No matter how you do it, it will be restored.

  • I discovered that someone from another computer was hacking or using my information, how do I report them?

    I COULDN'T HAVE MY IMPORTANT EMAILS. THIS PERSON HAS CHANGED SOME OF MY PASSWORDS ON SOME PROGRAMS. I HAD TO GET NEW PASSWORDS FOR MY BANK, FACEBOOK AND SOME OTHER ACCOUNTS.

    Original title: I discovered that someone from another computer hacking or using the information available to me. THEIR IP ADDRESS IS 200.1.27.75. HOW CAN I REPORT THEM?

    Hi Johnny,

    . What operating system is installed on your computer?

    What version of the operating system Windows am I running? :

    http://Windows.Microsoft.com/en-us/Windows7/help/which-version-of-the-Windows-operating-system-am-i-running

    Many computers users be prey to pirates and the crimes they commit on companies and unsuspecting individuals. In the case of crime in your home or business, it is not difficult to report the hacker.

    a. determine which agency has jurisdiction over the crime. It depends on if the crime was committed at home or at your company and the address of that particular place. If you live within the city limits, the appropriate agency will usually be your city police service. If you live outside the city, in the County limits, contact your local sheriff's office.

    b. call the non-emergency number for your local police department or the Sheriff's Office to report the crime. Ask to speak to someone in the division of the detective into a crime of Internet.

    c. a hacker report online through the Internet Crime Complaint Center (IC3). Strive to work directly with your local agency before declaring online.

    d. to request the opinion of the Agency where you reported the crime. Ask what are the procedures they recommend to protect your computer from future attempts of hacking. Ask the Agency studying your crime to provide documentation in support of your case.

    I hope this helps.

  • All that print from the web doing in the HTML code. I use the family XP Edition version

    All that print from the web doing in the html code. I use the family XP Edition version.  I'm almost on my home computer so I don't know when it happened first.  Try to print the boarding card.  Help.

    Thank you

    Hi GordonHarris,

    ·         You use Internet Explorer? If so, what version of Internet Explorer?

    ·         Did you do changes on the computer before the show?

    Follow these methods.

    Method 1: Follow these steps:

    (a) click Start, Control Panel, Add and remove programs.

    (b) click on set program access and defaults, select custom, select Internet Explorer as your web browser by default.

    (c) click OK.

    Method 2: Follow the steps in the article, if you are using Internet Explorer.

    I can't print or preview before printing a Web page in Internet Explorer

    http://support.Microsoft.com/kb/973479

  • The computer desktop is not very clean, it looks like a wave that moves from the color

    Please I have a problem with my desktop computer is not clean, it looks like a wave that moves from the color. It is not cleaned.

    Thank you to everyone.
    * original title - could someone help me! *

    Hello

    If you mean that when you scroll to the top or the bottom of the page, it's all wavy you the latest graphics drivers to fix

    try going to your graphic card manufacturers site or computer and are looking for the driver download section

    Search your computer or graphics card model number based on what you have and download and install the latest graphics drivers for vista

    ___________________________________________________________

    and if you have more problems with these English language forums, microsoft supports several languages

    read this information:

    To make sure you receive support appropriate for your location information, select your region setting from the list in the link below, and then click the arrow button.

    ·                         https://support.Microsoft.com/common/international.aspx

Maybe you are looking for

  • Tabla CheckBox in 1 d

    OLA, bueno, I am doing a VI, where in una tabla los archivos .xls ordenados appears. Box Quiero poner en, as el usurio can para cada campo Seleccionar el archivo appears in the table y lo abra o eliminated. E found several examples of con tablas chec

  • Deep Tamara

    Gostaria of navegar na deep Tamara, preciso saber passo a passo como instalar e navegar, fire fox, tor, vitalia ja are instalados mas quando o navegador vai pelo enternet access explorer,.

  • KB970892 SQL Server 2005 Service Pack 3

    Hello: I tried to install updates several times and it always fails... How can I fix this... (KB970892 SQL 2005 SP3 Serveer, is what breaks down) I'm on windows 7 Thank you

  • Bios password HP Mini 110

    Hello I have a HP mini 110 laptop that was in need of a HARD drive. I finally received the new drive and now I don't remember what I set the bios password too. Is there anyway to reset it? After trying three times, I get a message:System stopped. Tha

  • How to hide the WLAN icon, which is untouchable?

    * Original title: Ghost WLAN icon Hello I have a question. I use bluetooth and other wireless connections. How to hide the WLAN icon, which is untouchable?