AS3 sucks !!! Why can't access a simple movieClip ???

Hi People,
Please - it's as simple as that:
I have a stageand there is a movieClip instance called "obiekt" in it. Inside "obiekt" movieClip there are two other clips. One instance is called "z1" and another one is called "z2".
Presume I have a event listener in "z2" what in case of mouse rollover calls a function what is supposed to set "z1" movieClip 'visible' property to true.
But why the hell when I code:
root.obiekt.z1.visible = true;
I get this error:
1119: Access of possibly undefined property obiekt through a reference with static type flash.display:DisplayObject.
Jesus - what's the hell - scripting a simplest thing in AS3 requires definig some bloody classes, extending other, importing whatever packages... Only to accesss a movieclip on the stage!!! If I were to do the thing this way I would rather learn C++ not Flash. Flash was supposed to simplify multimedia not making it worse!
Can anybody help me here? It's really urgent !!!
Rgs,
Ziggi

Look into event bubbling.
I posted an example in this thread yesterday:
http://forums.adobe.com/thread/433959?tstart=0
http://muzakdeezign.com/cs4/Surrey-florist-gallery3.fla
Best is to forget about root and trying to access objects in a "parent".
It's all about event dispatching.

Similar Messages

  • Why can I access Internet, and get my email through yahoo, but can't access email when I use the mail icon on the front of my tablet. It just started doing this today.

    Why can I access the Internet, even get my email by going through yahoo, but as of this morning I can not access my email from the mail icon on my tablet screen. It just started doing this today. When I try to get my email by going through the icon, I am asked to enter yahoo password. I do this, then the box just pops up again, and again and again never letting me get signed in. Don't know what I am doing wrong. Need help!

    iOS: Unable to send or receive email
    http://support.apple.com/kb/TS3899
    Can’t Send Emails on iPad – Troubleshooting Steps
    http://ipadhelp.com/ipad-help/ipad-cant-send-emails-troubleshooting-steps/
    Setting up and troubleshooting Mail
    http://www.apple.com/support/ipad/assistant/mail/
    iPad Mail
    http://www.apple.com/support/ipad/mail/
    Try this first - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.)
    Or this - Delete the account in Mail and then set it up again. Settings->Mail, Contacts, Calendars -> Accounts   Tap on the Account, then on the red button that says Remove Account.
     Cheers, Tom

  • Why can i access the ITunes Store

    why can i access the ITunes Store on my IPod it just want load

    This problem?
    IOS 6 App store crash: Apple Support Communities
    White screen problem which is also common after iOS 6 update

  • Why can I access my itunes library from the cloud on my new macbook?

    Why can't I access my itunes library and download it to my new Mac Book Air?

    No idea.
    Perhaps if you were to explain your issue in far greater detail, then someone could help

  • Why can't access my application from different IP region.

    I use the default configuration in the installation process.
    software package is as_windows_x86_101300_disk1.zip
    All the servers have IP address like 10.37.71.***
    after i deploy my application server, local machine can access my application and other servers can access it.
    But the users with ip 10.37.88.*** can't access my application and internet users can't access it too. They only can access the default home page of ias, and can't access em too.
    I don't know what the problem is.
    Another problem is that, if i change the defaultWebApp from "default" to "myApp", the service can't be started. I want to know how to set myapp as the default application.

    I installed the oracle application server 10g using default configuration. and didn't modify any configuration file.
    The installation package is downloaded from oracle web-site without license. has it any difference from the package delivered by oracle.

  • Why can someone access my emails on my iPad even when I have logged out?

    Hi when I log into my email account with bt - I read my emails and log out.  If I then pass my ipad to my friend he logs into his email with bt also. If he then clicks on mail it takes him straight to my emails and he can't access his own, regardless of how many attempts he makes logging in and out.

    Thanks
    Tried that too.
    I really appreciate your help but now think the problem may be with accessing BT on iPad.
    Whatever I do, BT mail keeps opening with MY email.  Does anyone else have this problem.  BT users out there give it a try for me.
    Cheers
    F

  • Why can't I delete simple photo files even with admin access?

    I'm cleaning my Time Capsule HD deleting some photo files. Most of them were just moved to trash, but when I try to move a specific folder, the OS asks my password saying that Finder wants to make changes. After typing in my password I receive a message that I don't have permission to access some of the items. It dosn't make any sense since I, same account tring to delete them, have copied these files into that folder.
    I really appreciate any support.
    Thaks and regards,
    Alex

    Are you trying to delete files from your Time Machine backup?  Don't do that!! If you have files/photos you wish to delete then delete them from iPhoto or whatever photo application you are using. They will be removed from the backup by the TimeMachine backup system. Your backup is not a simple file it is a time/event dependent organizational picture of your system sort of like a multilayered transparent collage, but if you start pulling random pieces out it will collapse the file system. Here is the BEST QnA on the subject :
    http://pondini.org/TM/FAQ.html

  • Why can't we have simple pro rata billing?

    I've been a BT Broadband customer for ten years, and I am sick of these sales packages with their prefabricated bandwidth allowances and telephone or TV options. It seems to me that the BT Broadband sales strategists have a philosophy more appropriate to selling fried chicken. It's comparable to "bargain basket, 3 pieces chicken plus chips; bumper basket, 5 pieces chicken plus chips and free drink, family basket, 7 pieces plus chips and relish pack." Hence the insultingly stupid photograph on the BT Broadband web page, of a young Internet TV consumer before a flickering screen, cramming chicken segments into his  mouth from a paper basket while laughing idiotically. BT's standard telephone service was never like this. You never found that if you didn't make 2 or more calls a month, you would be charged a non-use fee of £2, as happens with one of BT's Broadband plus phone packages. Nor did you get emails saying you had exceeded your allowance and would be charged a flat-rate fine, but "we know it can be confusing keeping track of your bandwidth usage; why don' you switch to a larger, more expensive package?" I suggest a simple solution: sack all the sales strategists and sell services with simple pro rata billing. Charge customers for what they use, plus a flat rate rental, just like you do with the simple phone service. You keep track of individual usage anyway, so that you can nag people about exceeding their allowances. So why not just charge pro rata and get rid of the sales packages? Or are you totally wedded to tricking people into paying for more than they need?

    Welcome to the forum, which is essentially a customer to customer affair and messages do not necessarily reach anyone in BT.
    As a fellow customer I couldn't agree more, except to say that it's not just BT. But you have to realise that we're ungrateful wretches, refusing to give thanks for the bountiful gifts of competition that were promised when telecoms and other utilities were thrown to the wolves of big business. The fact is though that when you're sending pretty much the same signals down the same wires, the same current down the same cables, the same gas through the same tubes, you've got to do something to snare more customers than the next firm. What better way than conning Joe Public into believing that your ever-changing, unfathomable price structure, all wrapped up in shoddy customer service from minimally-trained staff with little understanding and even less commitment, is better than anyone else's? If I was a cynic I could bang of for hours.
    You can click the white star next to this message if you think it was helpful.

  • Why can I access files using ubuntu live cd but not my mac?

    Hello,
    Every since I have upgraded to Lion then to Mountain Lion I have had nothing but trouble with my mac crashing and not being able to repair the harddrive. I use time machine with an external hard drive to back up everything (also using online server to back up things as well).
    My issue is that disk utility never works ( ever ) and when I have trouble the hard drive and my external hard drive always show up grayed out and disk utility says the disk is broken and cannot be repaired. Which the disk are fine because I can access them using a ubuntu live cd no problem.
    My main question is how is this not being addressed by apple? This is clearly a bug - there is nothing wrong with my external harddrive or my macs hardrive - yet when I restart my mac I fear it will never start again(in its current state) and the disk utility just doesn't work the only answers I ever get is the hard drive is bad (which is not the case being I can access it with the ubuntu - or even reinstall everything and it works fine etc...)
    There is some major bugs and I can say I never had these problems losing my data with a windows machine (though I am not a big windows fan). Apple why doesn't the disk utility work?
    Also why when I update my mac and the mac restarts itself does it not eject my external hardrive - also why if you don't eject the harddrive it ruins the data on the hard drive or at least makes it grayed out or corrupt in my mac - but I can copy the files in ubuntu and put them back then it works just fine? These are serious issues and I am really shocked that the mac community would stand for this kind of thing - I am not the only one with these issues I see thousands of others with the same issues so when are they going to be fixed?
    If what I am saying is unclear - just google mac hardrive cannot be repaired - and set the time for the last month you will see. Also to those who have these troubles simply use a ubuntu live cd - copy all your files to the home folder then place them back to where the reside and mac will reconize them again - worked every time for me so far no thanks to disk utility.

    Your booting off a Ubuntu disk which has it's own operating system on it and on another medium that is free of issues, unlike your current hard drive running OS X 10.8.
    I really don't advise you directly installing Linux on a Mac as it's much more complicated that it appears. Also I don't advise you using Linux anything to tinker with a Mac unless you really really know what your doing.
    Since your Mac's software is broken you don't know currently and shouldn't be using Linux as a band-aid solution to your problem.
    My suggestion is you FIX your primary boot drive.
    disk utility says the disk is broken and cannot be repaired
    This calls for a complete zero erase and install of the affected area, if it's just the Macintosh HD partition then fine, it's a hold command r boot into Recovery HD and use Disk Utiltiy there to Erase with the middle secure erase feature (important) and then a reinstall of OS X 10.8 from Apple's servers over a fast Ethernet connection.
    If your GUID partition table or Recovery HD is affected, then you need to command option r boot into Internet Recovery and select the entire hard drive for the same zero/middle erase proceedure, unless you have a older MacBook Pro then you need to use option key boot off the 10.6 disks and use the Secure Erase/ Zero on the entire drive, install 10.6, then update to 10.6.8, then AppStore upgrade to 10.8 again.
    You need to only restore user files into same named accounts from a Storage Drive backup, do not use Migration or Setup assistant as your TimeMachine drive data is likely corrupted. This means all new softwre installs from original sources as well.
    Read through my many User Tips, you'll be fixing your own machine in no time.
    https://discussions.apple.com/community/notebooks/macbook_pro?view=documents#/?p er_page=50
    also why if you don't eject the harddrive it ruins the data on the hard drive or at least makes it grayed out or corrupt in my mac
    Windows and Linux also has to "safely remove hardware" or "unmount" before ejecting a drive as well or it corrupts the data.
    I guess this feature came about so one can disconnect a drive without having to physically remove it and wear out the ports doing so.

  • Mail...why can't it be simple?

    I'm trying to setup my iPad to access my Sky e-mail account.  I've created the account on the iPad, and everything works great.  It checks & downloads my e-mail perfectly.  However, it also removes them from the Sky server.  The e-mail account is setup as POP, so I thought this wouldn't be the case.  I've tried setting it to 'Never' delete the message from the server, delete after 7 days, everything.  Yet, it still downloads the message to the iPad, and deletes it form the Sky server.
    Net result is, I don't have the e-mail in my Sky account anymore as it's on the iPad.  I've tried using IMAP, but found it to be the biggest pain in the a$$ to setup / use.
    Any help would be appreciated.
    Duncs

    Alan,
    I don't think I explained myself correctly, so apologies if I've mislead you.
    In Sky webmail, it's set to a POP account.
    In Outlook, for the Sky acount, I have it set to "Leave a copy of the message on the server", and "Remove it when deleted from 'Deleted Items'".  Now, if I go in and download e-mail in Outlook, I would expect it to remain on the server, as I have not yet deleted it.
    In the iPad, when I'm setting the account up, it looks up the account but then appears to assume that it's an IMAP account.  I get the error "Cannot get mail: The user name or password for 'imap.tools.sky.com' is incorrect."  If I OK this, I have the "New Account" window open, with the IMAP tab highlighted. So, I select the 'POP' tab, and change the incoming server host name to "pop.tools.sky.com".  I then save this.  Everything verifies OK.
    e-mails then download on the iPad, which again I would guess is right, as they have not been deleted from the server.  So, I go into Outlook and delete some of the e-mails that have just been downloaded and empty Deleted Items.  Going back to the iPad, those items deleted from Outlook, and then the deleted items selected, still appear.  No matter how many times I refresh it, they are still there.

  • Why can't I open simple pdf forms from IRS since Maverick upgrade?

    Since my ugrade to Maverick I am having several frustrating challenges primarily with Numbers and today tried to open a downloaded pdf irs form and I coninue to get message that Adobe cannot open because it does not support this form or it is corrupted??? Is there something I need to do with Adobe now? I have 10.1.8 Adobe and 7.0.1 Safari. I don't seem to be behind in software updates.

    scootbak,
    are you able to open your downloaded IRS PDF form in Preview? (It can be found in your Applications folder.) If it is also unable to open it, then perhaps the download of the form was interrupted before it completed.
    At the moment, 11.0.06 is the latest version of Adobe Reader which supports Mavericks.

  • HT5312 Why can't it be simple?

    locked out for eight hours because i couldnt remember those stupid security questions.

    So that people can't easily make unauthorized purchases in your name. You need to ask Apple to reset your security questions; ways of contacting them include phoning AppleCare and asking for the Account Security team, clicking here and picking a method for your country, and filling out and submitting this form.
    (105622)

  • Why can I access the internal microphone​?

     I am unable to correct the problem with my internal microphone.  It was working a few days ago.  Until I installed Skype, then nothing.  I have a dv7-6169nr.

    Hi,
    Please try this
    Right click the speaker icon
    Select Recording devices
    Right click the microphone and enable it
    Click Apply/Ok
    Regards
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Why can't i put an out of office on my iphone email? Blackberry and other android phones will allow this feature.

    I just purchased my iPhone, one thing I don't like is that with my Blackberry it allowed me to put an Out of Office reply to my emails. I thought the iPhone was a leader!!! Blackberry and other Android phones can do it.

    Why can't you?  Simple..Apple doesn't include that feature.
    Download and use iMExchange instead.

  • Access .swf in MovieClip

    Hi,
    I have to access different frames from swf file in flex.means
    when mouseover on canvas it should load frame 5.I know through
    movie clip i can goToPlay particular frame.But how can I access swf
    through movieclip.
    Thanks,
    Megha

    Store the swf file in the src/mimes/Components directory
    Retrieve the URL of this file using
    WDURLGenerator.getResourcePath(wdComponentAPI.getDeployableObjectPart(), YourCompView.FILE_NAME)
    and store this URL in a context attribute
    Bind the IWDIFrame 'source' property with the stored URL context attribute, and set the iFrame's 'lifeCycle' property to 'uielement' in order to prevent refresh of the content during server roundtrips
    Upon clicking the button, you can show/hide the iFrame and thus enabling your swf file

Maybe you are looking for