Solved

_parent - meaning of undescore

Posted on 2008-10-02
2
196 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

Netscaler Common Configuration How To guides

If you use NetScaler you will want to see these guides. The NetScaler How To Guides show administrators how to get NetScaler up and configured by providing instructions for common scenarios and some not so common ones.

Question has a verified solution.

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

Suggested Solutions

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 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…
The goal of the tutorial is to teach the user how to live broadcast using Flash Media Live Encoder and connecting it to YouTube to broadcast. Log into your Youtube account, choose live stream settings, start live stream from Flash Media Live Enc…
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.

803 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