Solved

_parent - meaning of undescore

Posted on 2008-10-02
2
193 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
Comment Utility
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
Comment Utility
Thank you a lot!  consize and clear :)))
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Recently, I was asked to recommend a tracking system to be implemented on a clients website. As the entire site was built on flash, my first thought was to suggest custom built tracking system. However, our company at that point of time didn't h…
While working over numerous projects I often had the requirement for doing a screen capture in AS3.0. Unfortunately I found no "ready made" solutions in google search that suited my requirements. But I did come across some great resources which help…
In this tutorial viewers will learn how to create a basic shape tween animation in Flash including shape hints for smooth animation Open a new document in Flash: Draw a shape: Select another frame (how long you want the tween to be): Right click and…
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.

771 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

10 Experts available now in Live!

Get 1:1 Help Now