Solved

_parent - meaning of undescore

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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Can't get text from a text entry 13 298
Flash media server 1 337
How to disable  HTML5 video in chrome 2 1,583
anti-download video publishing site? 6 621
This is a very simple example to help those of you who are still migrating from AS2 to AS3 understand the redesigned event model in AS3. In AS2.0, event functions (that is, the function to be performed when an event is fired) were stored as a pro…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
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…

696 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