Why do we have to type everything?

1119: Access of possibly undefined property ***** through a
reference with static type *****.
This is a very annoying error. What I want to know is why do
we have to re-type pretty much all our variables?
I add an object with a variable towers (array containing
1,2,3) to the main stage. So I tried this (where stage is a
variable of type Stage passed down from the main stage and Me is
the object I am trying to access):
stage.getChildAt(0).getChildAt(0).towers[2]
Which to me made a lot of sense. And it came up with the 1116
error.
According to AS3, to reach that variable from within another
object you have to use this line of code (where stage is a variable
of type Stage passed down from the main stage and Me is the object
I am trying to access):
Me(DisplayObjectContainer(stage.getChildAt(0)).getChildAt(0)).towers[2]
What an absolute mess (and yes I've tried getChildByName, but
it just returns a null value). Why can't it be something like
(where towerList is the name of the Me object that was added to the
stage):
stage.towerList.towers[2]
Does anyone know a way of getting round having to re-type
these variables? Cause I'm going to be referencing objects which
might have many generations of children.

zone12webmaster,
> What I want to know is why do we have to re-type
> pretty much all our variables?
As a rule, you don't have to, although it is occasionally
necessary.
> I add an object with a variable towers (array
> containing 1,2,3) to the main stage.
How did you add this object? It sounds like this is a custom
class
named Me, so how are you instantiating this object? Are you
adding it to
the stage's display list? (Does it need to be in a display
list?)
David Stiller
Adobe Community Expert
Dev blog,
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • When I begin typing in the upper right search box, after a few letters are typed, a menu drops down with choices. When I click on a choice it doesn't appear in the search box and I have to type everything myself.

    When I use the search box on the upper right and begin to type a word/words when the menu of possible choices appears and I click on the one I want, nothing happens. It doesn't automatically put it into the box like it used to and I have to type everything out.

    Didn't work for me. Got the drop-down but still won't transfer to Google box.

  • HT6162 Why do I have to delete everything to make 3.8GB for this update?

    Why do I have to delete everything to make 3.8GB for this update?

    It downloads the compressed image, then it needs to uncompress it. The compressed image is large uncompressed it is even larger.
    You need much less space if you use iTunes on your personal computer to do the install.

  • Why do I have to type in my password just to create a folder

    Why do I have to type in my password just to create a folder ! ?
    What can I do to eliminate this silly requirement ?

    If the enclosing folder is one used by Mac OS X itself, leave it as is.
    I appreciate your advice.   I don't know why I need to “leave it as it is” ?  I'm trying to create a new folder in the hard drive. (Done this for 30 years.)
    I did open the Sharing & Permissions section.  system =  Read & Write,   wheel = Read Only,   everyone = Read Only. 
    Should they all be, Read & Write ?

  • Why do I have to click everything twice ?

    When is Firefox going to fix this?
    In every version after 3.6, I have had to click twice or "reload" the page. If I close the page and click again or reload the page, it immediately comes up.
    It is not because of problems in my computer. I went into safe mode and disabled all add-ons and got the same result. It happens on 80-90% of the websites. There are a few sites that consistently load immediately but most I have to reload the page or wait for the page to load which can easily take 30 seconds to a minute.
    I have a fast download of 28 and upload of 6. I have a clean computer, plenty of ram memory and have limited programs allowed to activate on start up. I usually have very few tabs open at a time. I've cleared cache and done all the usual things always recommended to do.
    This is very frustrating and it has to have something to do with bugs in changes of versions since 3.6. That version worked perfectly. These latest versions up to the most recent update have been consistently more and more problems.

    I'm with you RJ343, as an ex-software developer from the late 90's, I am appalled at the way Firefox has gone.... i recently upgraded to Windows 7 and Firefox 17 and it is disgusting the number of things that do not work,... and I have to LAUGH MY F**KING HEAD off when I hear geeks and nerds who are barely out of their cyber-nappies moan at me because I prefer 3.6 and they can't understand why i don't love the latest version... SIMPLES > because they are so full of bugs and workarounds and stupid add-ons I have to install just to go "back" to 3.6 and its glorious feature set that has since been ripped apart and hacked to smithereens and replaced with dodgy , sh*te alternatives that I'm supposed to adore ? Same with XP, I am still using it and will continue to use it until MS deliver something of quality that the users want, not what they want to force on me....
    SO back to the topic -- I landed on this page because I have noticed that in FF17 I have to keep clicking everything TWICE, to get the page to load. It happens everywhere, it's as though the focus is not set properly, and the 1st click sets that, and then I have to click again to execute. Certainly I have just registered in order to write this post, I deem it that important, and now that I am , I will have to start replying and posting the myriad of other failures by FF development team in their latest versions,.... what I find the most insulting as I mentioned, is this indoctrination that I HAVE to use the latest versions over the old, tried & tested products like 3.6, because FF will withdraw support or add-ons stop working for the old versions. I wouldn't mind, if the new versions weren't such a croc of shoite and actually worked.
    THIS BUG must be one of the most basic and incompetent of them all. Why do I have to bloody Double-click everything ??? !
    ''"3.6 was almost universally liked by everybody"'' - yes, because it was tried & tested.... obviously the latest generation of developers never heard of the old adage, "If its not broken, don't fix it"... and don't gimme all that crap about security vulnerability,.... that's just an extension of the War on Terror..... Fear is too widely traded for Functionality, and good solid TESTING , which seems to be a thing of the past. The software industry is in a crisis and soon there will be nothing that works and we will all hark back to XP and FF 3.6 as the golden age when software actually worked.

  • Why do i have to type in my email to sign in with google?

    I upgraded to a new puter and the lastest Firefox installed now when i open firefox I have to type in my email to sign in WHY?

    If the enclosing folder is one used by Mac OS X itself, leave it as is.
    I appreciate your advice.   I don't know why I need to “leave it as it is” ?  I'm trying to create a new folder in the hard drive. (Done this for 30 years.)
    I did open the Sharing & Permissions section.  system =  Read & Write,   wheel = Read Only,   everyone = Read Only. 
    Should they all be, Read & Write ?

  • Why do I have to type my username and password each time I log in?(My husband's username and password are always in a dropdown box)

    When I go to the wild blue log in and click on the username box there is a blue drop down and it shows my husband's user name.
    When I click on it my husband's username and password are automatically entered and all I have to do is click on the login box.
    But I have to type in my username and password before I can log
    in. I want my username and password in the blue drop down box along with my husband's. Then I won't have to type it in each time.

    Are you referring to the SAME computer/login?
    If not, he likely has auto-complete (or similar) enabled and you probably do not.

  • Why do I have to type full URL???

    I used to be able to type in the name of a site without typing the full URL, now if it is a new site (not in history or bookmarked) I cannot just type in the name ie.... 'apple', I now have to type in 'www.apple.com'.
    This was not the case before, is this the new default of Safari 5, or have I accidentally turned something off in preferences?

    Now it just sits there for a while and gives an error message that it could not find the server.
    When that happens, click the Reload icon in the address bar.
    You're not dreaming. Safari users are reporting this issue.
    You can provide feedback here. http://www.apple.com/feedback/safari.html

  • ITunes Plus - why do we have to upgrade everything?

    I see iTunes is giving us no choice about which tracks/albums that we upgrade -- it's all or nothing.
    The "plus" tracks definitely sound better, but to upgrade my entire purchased library would cost me $600 in upgrade fees (assuming all of my 1,400+ purchased tracks are going to be ultimately available in this format) -- it's just too much.
    I WOULD like to be able to upgrade certain albums and songs. But at this point, I have no choice about which ones.
    So, it seems to me that iTunes' BEST customers are being penalized -- if you've bought only a few tracks from iTunes, then upgrading your entire library won't cost that much and you can just do it and move on. But if you've bought a LOT of music from iTunes in the past -- you have to shell out hundreds of dollars to upgrade EVERYTHING, even though you may want to only upgrade some of your favorite albums and tracks.
    The only way around this seems to be re-purchasing individual albums in the plus format ... which is much more expensive that the upgrades, but at least you can pick and choose.
    Something's wrong here, I think. I didn't expect iTunes to kick me in the butt like this.

    Well, how do we know that? I mean, about EMI requesting it? Why would they care? If you upgrade 10 songs, you have to pay for ten songs. But if you decide NOT to upgrade those 10 songs because Apple/EMI/whoever insists you have to upgrade 100 ... then they've just lost a sale, right?
    I mean, have you ever been in a store buying a shirt and had the saleperson say, "sorry, I can't let you buy that shirt unless you also buy these jeans! And these shoes! And, dang it, the entire fall line!! Otherwise you can just walk right out cause we don't need your business!"
    I just think it's a odd way to treat loyal customers.

  • Why do we have primitive types

    I use all primitive values all the time (ints, doubles, boolean etc). However why do they exist when we have Integer, Double etc.
    Whats the advantage of using int over Integer, double over Double?
    Thanks
    Chris

    rp0428 wrote:
    This wiki sums it up pretty well: http://en.wikipedia.org/wiki/Primitive_data_type
    >
    In computer science, primitive data type is either of the following:
    a basic type is a data type provided by a programming language as a basic building block. Most languages allow more complicated composite types to be recursively constructed starting from basic types.
    a built-in type is a data type for which the programming language provides built-in support.
    In most programming languages, all basic data types are built-in. In addition, many languages also provide a set of composite data types. Opinions vary as to whether a built-in type that is not basic should be considered "primitive".
    Depending on the language and its implementation, primitive data types may or may not have a one-to-one correspondence with objects in the computer's memory. However, one usually expects operations on basic primitive data types to be the fastest language constructs there are.
    >That answers the question what
    The question asked here is why
    db

  • Why do i have to render everything on fce

    I think it's Final Cut Express, maybe a student edition. I don't know, It's my roommates. but when i upload my footage shot from 1080p dslr, I can't upload it without rendering everything. I have a 1 hour wedding video i have to put together and i just finished a 5 minute video for my church, the 5 minute video took about 1.5 hrs to render. i don't have the time to do that with the wedding. someone please help. as far as i know, my files are not compressed. and there should be no reason why i can't just upload without the render.

    >as far as i know, my files are not compressed. and there should be no reason why i can't just upload without the render
    Oh but you're wrong.  The files your camera records are extremely compressed.  Your camera uses a recording format that was never designed for editing and certainly does not work natively in FCE ... hence the extremely long and constant renders.
    -DH

  • Why do I have to type alle accountnames and passwords again in ff 29.

    I have to reenter my acount name and password the first time access a site after (being forced to) upgrading to ff29.
    Why is that?
    I have scores of sites I access and this is a pain in the ass! I used the remember function just to avoid remembering all the passwords.
    And don't give me any "use the new sync function", there are reasons why I want some of this stuff local on the computer.

    Details like websites remembering you (log you in automatically) are stored in a cookie.
    *Create a cookie 'allow' exception to keep such cookies, especially in case of secure websites and when cookies expire when Firefox is closed.
    *Tools > Options > Privacy > "Use custom settings for history" > Cookies: Exceptions
    In case you are using "Clear history when Firefox closes":
    *do not clear the Cookies
    *do not clear the Site Preferences
    *Tools > Options > Privacy > Firefox will: "Use custom settings for history": [X] "Clear history when Firefox closes" > Settings
    *https://support.mozilla.org/kb/Clear+Recent+History
    Note that clearing "Site Preferences" clears all exceptions for cookies, images, pop-up windows, software installation, passwords, and other website specific data.
    Clearing cookies will remove all specified (selected) cookies including cookies with an allow exception that you would like to keep.

  • HT1386 if facebook, google and governments know where we are - why do we have to type in the serial number for the equipment we have bought from apple using our apple ID to the actual address to which the apple ID is connected .....for the nth time?

    have used the original ipad for a year or so, have been using an ipad 2 for a couple of months with no troubles.   today i am unable to sync my ipad 2 with my iMac.  can anyone tell me what stupid thing i have done - i have been trying for several hours!

    sunshinecowgill wrote:
    We have three operational computers, one does not have iTunes on it.  Since Apple is saying I have more than 5 authorized computers, and I can't imagine what they are, I am afraid to deauthorize all my computers.  See what I mean?  I just wanted to ask the question about how I can find out WHICH computers Apple thinks I have authorized, so I can decide if it's safe to deauthorize them all or not. 
    You could have more 5 computers authorized if you ever, for example, reformatted a hard drive or replaced a hard drive without deauthorizing the computer first. Apple's system would see that as a different computer, even though you don't. There's nothing to be afraid of in deauthorizing everything and the reauthorizing what you actually have. You won't lose any data. Mistimp is correct, they can't tell you which computers are authorized.

  • Why do you have to save everything in the EX24?

    when you load a sample into the EX24 why is that you have to save every single sound? I mean fair enough if you you get a great sample you know your going to use quite a bit then you should have the option to save it.It is just bit annoying having to name,file and categorize all these sounds you know you wont use in any other track so what I would like to know is there any other way you load a sample in to logic and map to your keyboard without having to create a "sampler instrument".I know the obvious solution is to use another sampler so if anyone can give some suggestions that would be great.
    many thanks

    Just created an Instrument, didn't close the Instrument Editor, didn't save the Instrument, saved the Project, re-opened it and the unnamed Instrument still sat there.
    But frankly, I don't see the difficulty in saving an EXS instrument.
    Christian

  • After new update, why do I have to click everything twice

    Since the new update, mail is being difficult.  When I try to delete something, it deletes what I click on & 1 to 2 othere messages.
    Plus I have to click on just about everything twice to get it to do what I want.  I rebooted machine but didn't help.  So what now?

    Try repairing your hard drive also your permission with disk utility. http://support.apple.com/kb/HT1782     http://support.apple.com/kb/HT1452

Maybe you are looking for

  • How do I move my iTunes library from my old MBP to my new one??

    I followed this procedure to the letter and got nothing: http://support.apple.com/kb/HT4527 I really don't want to trash all of my playlists and things and then have to start over from scratch. This was supposed to work. Getting pretty sick of Apple

  • How do i get all music back on iphone after update to iOS 6

    I have just completed update to iOS6 and i had to restore the phone so on completion it has wiped all music on iphone. So does anyone know how to get all music from computer to iphone again! Many many thanks in advance!!

  • Volume button not working with music

    I have tried restartingy phone, I have done rewet as well. even after all this, the problem still exist. restarting the phone does solve the problem, but thats temporarily only. On an average, I have to restart my phone 2-3 times a day. also many a t

  • How much does it cost for an iphone4 screen repair?

    How much does it cost for an iphone 4 screen repair?

  • Bi LINGUAL INTERFACE

    Why can't we have Bi LINGUAL INTERFACE or configure the help tags so when the pointer hovers over a text or icon we can see it translated and a link to Apple data base computer dictionary.instead of having this help tags ( If I hover my pointer over