Solved

_parent - meaning of undescore

Posted on 2008-10-02
2
194 Views
Last Modified: 2013-11-11
Just a short question on the use of underscore in ACS2.0:
There are many cases I see underscore value:  "_ " - often when targeting a location or when defining a variable. I .e.
         var listA:List = evt.target._parent.listA_ls;
or
        gallery_xml.load("gallery_tween.xml")
I so far did not find any clarification on when exactly "_ " should be used or what it defines.
Anyone could help, please?
0
Comment
Question by:aneta9
2 Comments
 
LVL 37

Accepted Solution

by:
CyanBlue earned 125 total points
ID: 22626387
There is nothing like 'should' in that scenario...

Things like _root, _level0, _global or _parent are Flash reserved words Flash uses...
gallery_xml, image_mc or start_btn where you simply use '_' as a separator to read the variables/instance names better...
You sometimes create private variables with '_' in front like _page, _client so that it is easier to distinguish between private variables and public/global variables...

CyanBlue
0
 

Author Closing Comment

by:aneta9
ID: 31502436
Thank you a lot!  consize and clear :)))
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
I have found that much of my time doing support ends up being a constant repetition of the same steps to different people.  Early on I stated using web pages with Frequently Asked Questions (FAQs) to alleviate most of the burden.  Sometimes this jus…
The goal of the tutorial is to teach the user how to how to load their YouTube profile onto Flash Media Live Encoder.
The goal of the tutorial is to teach the user how to select which audio input to use. Once you have an audio input plugged into the laptop or computer, you will go into the audio input settings and choose which audio input you want to use.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now