Roots/path &; this.parent - asking for simple clarification
Step - the sandbox is where all things happen.
MovieClip - an object that can be placed on the stage or in layers or attached to other clips.
Layers of MovieClips on stage
Example:
Stage > MC1 > MC2 > MC3
Family analogy to the hierarchy:
Environment > Grand Parent > Parent > child
(1) for access to the control of the MCs of the Document (stage) class
-If the STM is brought on stage and given names use you that name to control them. (Logic)
-If an object is dynamically added to the step how is it accessible? (Confused)
2) access control of MCs of MCs on the stage who '.as' file by running.
-Can change the properties of other MCs MCs? As scaleX, scaleY properties view? (Unknown/confused)
'This' and 'Parent '.
-this.parent.mc - when it does exactly?
-parent.mc - where it is exactly?
-mc - when it does exactly?
Usage example: Stadium > MC1 > MC2 > MC3
In step (Document class) is access MC3 then use: "mc3".
When MC3 accesses MC1 use: "this.parent.mc1".
When MC2 accesses to use on stage: 'scene' example 'stage.width.
Vaguely is that kind of how it works?
QUESTION--= =-
If someone is willing to clarify all the pieces of this or has a fan friendly use of 'This', 'Parent' and appropriate use of the roots depending on where you are on the stage or in a MovieClip and how to properly refer to an another MovieClip or the scene would be useful. Forgive me if I have an abuse of words, terms. I use Adobe Flash Professional CS5 and AS3.0
In AS3 you can reference objects by name or by reference. In AS2 you mainly referred to objects by name, so this may be confusing for some newcomers to AS3. A name he set, for example, when you drag a clip to the stage and type an instance name. A reference, on the other hand, is just an object that points to another object. You must create a reference when you dynamically create some MovieClips, for example:
var mcRef:MovieClip = new MovieClip();
The variable "mcRef" is a reference to this new MovieClip, however it didn't name. You can use "mcRef" as you would a named instance, the definition of the properties as "mcRef.x = 100", etc.. A reference is much more useful than a name, because it can be spent in the different application fields for you to access objects that would otherwise be difficult. For example, you can use a reference to refer to a deeply nested MovieClip without having to type it every time:
var mcRef:MovieClip = myMovie1.nestedMovie1.nestedMovie2.nestedMovie3;
mcRef.alpha = 0.5;
The "parent" means the container that particulat object resides in. So take the example of "mcRef" above, the "mcRef.parent" would be "nestedMovie2". "mcRef.parent.parent" would be "nestedMovie1" and "mcRef.parent.parent.parent" would be "myMovie1". For dynamically generated clips, the parent will be the subject of container you called "addChild()" add this child element to the display list. For example:
myParent.addChild (myChild);
The property "this" refers to the scope at which you call it. So, if you are in the document class, you call 'this', he referred to the scene. If you are in an external class, then it refers to the instance of the object of this class. This will allow you to access all of the properties in this scope, such as "this.x = 0", "this.alpha = 0.5", etc.. ". It will also allow you to cross to the top of the display list as in the use of «this.parent» Keep in mind that you do not explicitly refer to 'it', it is assumed. So you can easily just say 'x = 50' and it's the same as "this.x = 50".
Virtually all of the common properties are public (like x, y, scaleX, alpha, etc.) so as long as you have a reference to an object, you can change its properties from anywhere.
In general, you want to give their own class objects (of right in the library and go to the linking options). So lets say you have a graphic square, you can give it a class of "Square". If it's just a chart, with no particular feature, so he can't give it an external class file (IE Square.as). If you want it to have some custom methods and properties you need this external class. However, if you just want to add a static image on stage, then you can just use the auto-generated class. Anyway you if instantiating the object as follows:
var mySquare:Square = new Square();
addChild (mySquare);
If you want to add another square that you could do this instead:
var mySquare2:Sqaure = new Square();
mySquare.addChild (mySquare2);
Now, if you want to access mySquare2, you always use the reference "mySquare2.x = 100" for example. Stays of reference within the scope you created. Thus, for example, the following would NOT work: "mySqaure.mySquare2.x = 0". That works only with a named instance, not with references. You can, however, still use "mySquare2.parent" and which refers to "mySquare.
I hope this helps.
Tags: Adobe Animate
Similar Questions
-
I was charged for my coffee game update, which I wasn't aware of. I do not accept to pay about $ 8 for only an update, this game in the first place was free. I want to ask for a return and I will delete the game
Apple or App developers read this forum. If you want a refund, contact the developer to the email address. It is to them that they will refund your or not.
-
A Message in the box 1. "Message agent wants to use the 'Local products' kenchain. "is appearing on the screen and ask for Keychain password password. This started after I changed the password of Apple resulting for the purchase of a new iPhone.
My iPhone 5 has been damaged and the screen was not visible. As a result, I couldn't open the iPhone. I bought 5 s iPhone and when I got to connect with the iCloud
I remember the answers to security questions. The seller must change the password and enter new answers to security questions, I did. This happened in Bangalore. When I'm home in Ernakulam, Kochi (India), where I has the Air of Mac, Ipad and my wife had another iPhone and laptop computer Dell, these problems began to come up on the screen and blocks the screen.
Four Messages are appearing: the first is on the top.
Other messages are:
2. ' cloudd wants to use the kenchain 'local products '. '
appearing on the screen and ask for Keychain password password.
3. ' com.apple.iCloudHelper.xpc wants to use the kenchain 'local products '. appearing on the screen and ask for Keychain password password.
4. ' cloudpaired wants to use the kenchain 'local products '. ' is appearing on the screen and ask for Keychain password password.
It of an upheaval and please suggest how to solve this problem
Hello remy!
I see that you are either prompted by iCloud Keychain with various alert messages. I know it's important to have iCloud Keychain works correctly and I am pleased to offer you an article that should help you. Please follow the instructions in the following support article:
If your Mac keeps asking for the password in the keychain
Thank you for using communities of Apple Support.
See you soon!
-
Firefox fail to join the doc in e-mail indicating that it might be due to proxy or firewall and to ask for the classic Loader help
This problem was earlier not existing does not
This isn't the problem with internet exploreI have already updated to version 9.0.1 and I can't yet nothing attached to an e-mail. I did have this problem with a previous version of Firefox. What did you do to the system? It's very annoying.
-
I'm having a problem where Firefox keeps asking for my password to Amazon, even if I tell Firefox NOT to remember this password. In Firefox options, Amazon is clearly recognized as a site for which does not save passwords.
Do not remove the navigation, search and download history on Firefox to clear the "Site preferences".
Compensation of the "Site Preferences" clears all exceptions for cookies, images, windows pop up, installation of software and passwords.
-
in some progaram, as Facebook GAMES, when I have to go to an another screem or ask for assistance to complete a task. the screem never continue or complete. What can I do to fix this?
Hi Dene Dixon,
· You receive an error message?
· Did you the latest changes on the computer?
· What web browser do you use?
If you use Internet Explorer, I suggest you to try the steps mentioned below and check if it works.
Step 1: Follow the provided article.
http://support.Microsoft.com/kb/308260
Step 2: Follow the article provided to enable compatibility view in internet explore.
-
Hello! I had a bit of problem my computer! Every time I have start or restart, it does not ask for my password! I have a big family and I only used of the on my account! I got the editable or something like that! I mean I can delete others has put some programs and all that! But when I start my computer, it does not ask for my password! Just open on my account! I already try to reset a password and everything and it does not work! But when come from my screen saver and I want to go she it ask for my password and it is normal that is what I want and when I she ask for my password, but if I restart or close and open it again it open on my account so EVERYONE can go on it! So please help me! Thanks to all the people who read this and thank you to all who will help me!
Hello mk_wolf_69,
Please see the link below with respect to automatic logon.
How to enable the automatic logon in Windows XP
-
Had sent the message about the Blue error screen.
Has been asked for more details.
I hope this helps.
BCCode: 10000050 BCP1: FFFDF6F4 BCP2: 00000001
BCP3: BF90DB41 BCP4: 00000000
OSVer: 5_1_2600 SP: 3_0 product: 768_1
Hi VASANTHFERNANDES,
· You did changes to the computer before the show?
· When exactly you receive the blue screen error?
· What is the full error message?
Follow these methods.
Method 1: Disconnect all external devices and check if the problem persists.
Method 2: Start the computer in last known good configuration and check.
How to start your computer by using last good known Windows XP Configuration
http://support.Microsoft.com/kb/307852
Method 3: Follow these steps:
Step 1: Start the computer in safe mode and check if the problem persists.
A description of the options to start in Windows XP Mode
http://support.Microsoft.com/kb/315222
Step 2: If the problem does not still in safe mode, perform a clean boot to see if there is a software conflict as the clean boot helps eliminate software conflicts.
How to configure Windows XP to start in a "clean boot" State
http://support.Microsoft.com/kb/310353
Note: After completing the steps in the clean boot troubleshooting, follow the section How to configure Windows to use a Normal startup state of the link to return the computer to a Normal startupmode.
After the clean boot used to resolve the problem, you can follow these steps to configure Windows XP to start normally.
(a) click Start, run.
(b) type msconfigand click OK.
(c) the System Configuration Utility dialog box appears.
(d) click the general tab, click Normal startup - load all services and device drivers and then click OK.
(e) when you are prompted, click on restart to restart the computer.
Method 4: Follow the steps in the article to check the drive for errors.
How to perform disk error checking in Windows XP
http://support.Microsoft.com/kb/315265
Note: If bad sectors are found in the hard drive, then it could try to fix this particular sector. If you have any data on that, it can get lost.
For reference:
Demystifying the 'Blue Screen of Death'
-
PhotoGallery asks for a CD, that I didn't when I open a session or perform a task. When I cancel, I get the error code 1706. How can I stop this program from trying to start?
Hello Mark.Mac,
Thank you for your message. Click HERE to run the Windows Installer Cleanup utility. Once you have run the utility of your computer restarts and the functionality test. You can also watch in download/install Windows Live Photo Gallery HERE. Please let us know if it did or did not help to solve your problem.See you soonEngineer Jason Microsoft Support answers visit our Microsoft answers feedback Forum and let us know what you think.
-
ask for help I had to cancel a lot of Illustrator from adobe in this Bill at all. Please help me
Hello
Please refer to cancel your Adobe Creative Cloud membership
Incase you still need help please contact the support.
https://helpx.Adobe.com/contact.html
Concerning
-
I'm so frustrated! I have CS5 Master Collection. I want to UPGRADE to CS6 Master Collection. I want to be on the cloud! I can't find where to put up-to-date or any CONTACT to ask for help. It shouldn't be this hard. HELP Please!
See the link below:
-
Just after the cancellation of my subscription, you asked my credit card for a monthly payment!
I tried to cancel this subscription done for a long time, and now that it's done you keep me!
Please immediately refund my money!
In this case, you must contact and check with Adobe support:
Click always need Help (help), and then select the Chat option:
-
Try installing CS2, guard asking for upgrade checking. This is not an upgrade, this is a record of the full version? I had Photoshop 7 on my system but uninstalled because it worked. Bought a copy of CS 2, but it will not be installed. Still looking for an earlier version of Photoshop to upgrade. This is a full version disc?
Your original drive will not work, read below
CS2 (or earlier version) software activation server replacement
NOTE that CS2 will not install on a Mac "modern."
l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm
When you install the special version of the PPro2 on a Win7 or Win8 or Win10 computer, you may need to right click on the program icon and select compatibility Windows XP in the popup of option
-
Hi, I have adobe CC for teams, a member of the team has problems, opening indesign, asked for a serial number, ive checked on our admin account and it is one our our registrants 'members '. I was not the person who created this original so I'm a little lost, I can't seem to find the serial numbers on my account and it seems like we don't have the qualified products? can you help me?
Hello
We checked the details of your team, all seats are assigned correctly.
Now, there are a few details that we need in a private Message so that I can help you properly.
Name of the user:
User email:
In the meantime, try it out below mentioned links.
- Creative Cloud applications ask for serial number
- Log, activation, or connection errors. CS5.5 and later, Acrobat DC
[Note: the details we need is critical, make sure you send by private Message only.]
Thank you
Atul Saini
-
Using my current ID and password I can connect to Adobe. When I try to download the upgrade to Flash Player they ask for my ID and password. When I insert my current ID and password, it is rejected. How can I fix this problem? Is it a bad sign in a former ID, and/or an old password associated with Flash Player?
The password is provided by the operating system and is designed to protect you from accidentally install software. You will get this prompt for any installation outside the context of the App Store.
If you do not need to enter a user name or password when you start your computer, you can probably just leave the password field empty when recognizing this prompt.
Maybe you are looking for
-
HP Envy 15-ae104no: install the HARD drive
Hello. I have a question about the HP Envy 15 - ae104no which is equipped with a 256 Gb SSD m2. Before burning I would want to know if it is possible to install a sata 1 TB of disk as a 2nd hard drive in this PC. Thanks in advance. What about Peter
-
Dynadock U3 - Ethernet does not - send/receive flashing every 3 seconds
My wife uses a Dynadock with a spectrum of XP.Ethernet worked fine when I first put in place, but I just noticed the wired connection does not work (only works with wireless). Send & receive lights on n/w Dynadock port flash every ~ 3 seconds, the Wi
-
Equium M50 - motherboard is dead
Hi all I decided that my motherboard is fried. Can advise you on a number of things pls? 1. since I need to get a new motherboard, there you can recommend that will fit the envelope for my equium m50? Or should I stay with perimeter? 2. What is the b
-
Headphone Jack also for Microphone?
Could not find cela anywhere I like the old school WIRED earphones have a microphone for use on a cell phone. Cannot test my microphone taken 2.5 mm on my XT1527 (bike E 2nd generation LTE). In addition, impossible to find in specifications anywhere.
-
XP invites a memory, but invites MS-DOS of Win 95 only
When I copy files (for backup) command in XP, it comes up with 'Memory' and restricted on a folder with many files, some with very long file names. Yet when I use a similar shortcut that I postponed of Office 95 (on all later versions under Windows)