Solved

_parent - meaning of undescore

Posted on 2008-10-02
2
199 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

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

This is intended to introduce all collision detection principles in flash, their strengths, weaknesses and workarounds. The main method for Collision Detection in flash is using hitTestObject. But unless you'll be pushing rectangular shapes without …
I have been doing hardcore actionscripting for some time; and needless to say I have faced a lot of problems in just understanding others' code rather than understanding what the code executes. A programmer's life can become hell when there are a lo…
The goal of the tutorial is to teach the user how to select the video input device. Make sure you have an input device that in connected and work and recognized by Adobe Flash Media Live Encoder and select it in the “video input” menu.
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.

688 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