Error   1009 and I don't know what to do exactly, plz help me

hi
I wish that you could help me
I am a beginner in actionscript 3.0, and I have a main swf file, with a menu and several buttons, when I click on each button, a new swf should be loaded, and the menu is resized and goes to the top left of the page, and if I click on the menu, it should come back..
the problem is that when I click on the first button, everything works well, but when I click on another button, I get this error:
TypeError: Error #1009: Il est impossible d'accéder à la propriété ou à la méthode d'une référence d'objet nul.
    at s_fla::MainTimeline/s_fla::__setProp___id0__Scene1_texte_2()
    at s_fla::MainTimeline/s_fla::frame2()
I understood that the problem is due to the file which is displayed before it has been loaded.
I also found that I have to use the function Event.ADDED_TO_STAGE, but I don't know where to put it??
could you help me please?
here is my code:
function size(e:MouseEvent):void{
    menu_mc.gotoAndPlay(2);
    menu_mc.buttonMode = true;
    menui_mc.addEventListener(MouseEvent.CLICK, showmenu);
    menu_mc.button01_btn.removeEventListener(MouseEvent.CLICK, size);
    menu_mc.button02_btn.removeEventListener(MouseEvent.CLICK, size);
   menu_mc.button03_btn.removeEventListener(MouseEvent.CLICK, size);
addChild (cliploader);
function size(e:MouseEvent):void{
    menu_anatomie_mc.gotoAndPlay(13);
    menu_mc.removeEventListener(MouseEvent.CLICK, showmenu);
    menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, size);
    menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, size);
    menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, size);
    removeChild (cliploader);
menu_mc.button01_btn.addEventListener(MouseEvent.CLICK, loadpage);
menu_mc.button02_btn.addEventListener(MouseEvent.CLICK, loadpage);
menu_mc.button03_btn.addEventListener(MouseEvent.CLICK, loadpage);
menu_mc.button01_btn.page = "file01.swf";
menu_mc.button02_btn.page = "file02.swf";
menu_mc.button03_btn.page = "file03.swf";
function loadpage(e:MouseEvent):void{
    cliploader.myldr.source = e.currentTarget.page;
please tell me what to do exactly
P.S: cliploader is a UI loader which is present on the scene
in my swf files, I have flvplayback which loads a flv files, and I think this is the source of the problem, because I have tried the same thing with a simple swf file which maybe loads quickly, and I didn't get this error
thank you in advance

thanks
I think that the error is in the file that I want to load, in this file I have a flvplayback that I named myplayer, which is in the third frame, and because the video doesn't stop even if I move to another frame, I had to add this code in the third frame
next_btn.visible = true;
prev_btn.visible = true;
myplayer.addEventListener(Event.REMOVED_FROM_STAGE, stopPlay);
function stopPlay(e:Event)
myplayer.stop();
myplayer.stop(); this is line 7 on frame 3
when I publish this file, it works
but when I try to play it from the menu in the main swf file I get the error, how can I fix it please?
can I make this manually, or I'll have the same problem?
as I said, I tried to load different swf files from the main menu and I didn't have this problem (because there were no video players), so I think the problem is caused by the video player?
thank you

Similar Messages

  • Hi...so ehmm... my password for my iPad 2 was in Greek...and I forgot to change it when I downloaded iOS 7.... so when I openned my iPad it wanted my password but...it hadn't greek keyboard...and I don't know what to do! Pleaseee help me!!!

    Hi...so ehmm... my password for my iPad 2 was in Greek...and I forgot to change it when I downloaded iOS 7.... so when I openned my iPad it wanted my password but...it hadn't greek keyboard...and I don't know what to do! Pleaseee help me!!!

    no you can't as iTunes requires you to go to the iPad and turn OFF find my iPhone
    which you can't do as there is no greek keyboard to sign on with
    in other words
    NO greek keyboard -
    requires the greek keyboard to resolve
    well done Apple

  • My computer keeps restarting itself for the last two hours and i don't know what to do. Please help me

    I need help, my MacBook Pro keeps restarting itself for the last two hours saying there's a problem. I can't get past the grey screen without it restarting and i don't know what to do...please help me

    Reinstall Lion, Mountain Lion, or Mavericks
         Boot to the Recovery HD: Restart the computer and after the chime press and hold down the
         COMMAND and R keys until the Utilities menu screen appears. Alternatively, restart the computer and
         after the chime press and hold down the OPTION key until the boot manager screen appears.
         Select the Recovery HD and click on the downward pointing arrow button.
         Repair the Hard Drive and Permissions: Upon startup select Disk Utility from the Utilities menu.
         Repair the Hard Drive and Permissions as follows.
    After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the main menu.
         Reinstall Lion/Mountain Lion, Mavericks: Select ReinstallLion/Mountain Lion, Mavericks from
         the Utilities menu, and click on the Continue button.
         Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is
                    three times faster than wireless.

  • My iPod 3rd generation just ran out of battery, so I plugged it in, and I got a blank white screen and I don't know what to do. Please help!

    I just got a white creen and I don't know what to do! Help! I don't want to reset my iPod!

    Restart...
    Press and hold the Sleep/Wake button until the red slider appears. Slide your finger across the slider to turn off iPad. To turn iPad back on, press and hold the Sleep/Wake until the Apple logo appears.
    Keep this handy:   http://manuals.info.apple.com/en_US/iPod_touch_iOS4_User_Guide.pdf

  • I got some kind of error message and I don't know what to do with it.

    html xmlns='http://www.w3.org/1999/xhtml' xml:lang='en' lang='en' xmlns:fb='http://www.facebook.com/2008/fbml' >
    <HEAD>
    <TITLE>Congratulations!</TITLE>
    <STYLE TYPE="text/css">
    .friendly
    display: none;
    .original
    display: block;
    </STYLE>
    </HEAD>
    <BODY BGCOLOR="#FFFFFF">
    <CENTER>
    <BR>
    <TABLE BGCOLOR=#FFCC00 BORDER=0 CELLPADDING=1 CELLSPACING=0>
    <TR>
    <TD>
    <TABLE BORDER=0 CELLPADDING=4 CELLSPACING=0 WIDTH=100%>
    <TR BGCOLOR=#CC0000>
    <TD ALIGN=center>
    <FONT COLOR=FFFFFF FACE=verdana,sans-serif SIZE=+3><B>You're almost done!</B></FONT>
    </TD>
    </TR>
    <TR BGCOLOR=#FFFFFF>
    <TD ALIGN=center>
    <BR>
    <FONT FACE=verdana,sans-serif SIZE=-1><B>
    Please take a few moments to respond to our Special Survey below. You Must Keep Going To Qualify For Your Gift!<P><B>Tip</B>: Check "Yes" to get great FREE STUFF & Special Deals - As Many as You Wish!<P></FONT>
    <BR><BR>
    </TD>
    </TR>
    </TABLE>
    </TD>
    </TR>
    </TABLE>
    <BR>
    <BR>
    <BR>
    <TABLE BORDER=0 WIDTH=580>
    <TR>
    <TD ALIGN=center>
    <FONT FACE=verdana,sans-serif SIZE=-2>
    You must be 13 years or older.
    <P>
    <A HREF="info.htm?tp=privacy&SID=e7dj34i4uuq5p5rkjpefnu6g26" TARGET=_blank onClick="make_x_win=0;">Privacy Policy</A> | <A HREF="info.htm?tp=tos&SID=e7dj34i4uuq5p5rkjpefnu6g26#gift" TARGET=_blank onClick="make_x_win=0;">Terms & Conditions</A>
    <BR>
    Copyright © 2005 Clipngocoupons. All rights reserved.
    </FONT>
    </TD>
    </TR>
    </TABLE>
    </CENTER>
    <!-- - - -->
    <SCRIPT>
    if(document.getElementById('processing')) { document.getElementById('processing').style.display = 'none'; }
    if(document.getElementById('submit')) { document.getElementById('submit').style.display = 'none'; }
    </SCRIPT><IMG BORDER=0 HEIGHT=1 WIDTH=1 SRC="http://www.theuseful.com/setcookie.htm?user_pin_id=207945910&pin_key=216256&email=[email protected]&email_key=e24a56a59cd7525fcf0c4b9ad62d71dc"> </BODY>
    </HTML>

    I'm guessing you did not buy the iPad from Apple. If you did not buy it from Apple, it may very well have an older software version. Only iOS 5 or later is PC independent. If you have an earlier version, a computer with iTunes loaded is required.
     Merry Christmas

  • I finished registration including my credit card information, after I finished the system asked me to contact iTunes support, I went to iTunes support and I don,t know what to do ? Your help is needed, to enable me to use iTunes other wise my iPad  useles

    I

    We are fellow users here on these forums. You can contact iTunes Support via this link and ask them for help (we won't know why you are getting the message) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I am having an installation failure issue with my itunes 11 software.  File is corrupted and i don't know what to do.  I've un-install and re-installed the software three times and continue to get the same error message.  It states that "This copy of ITun

    I am having an installation failure issue with my itunes 11 software.  File is corrupted and i don't know what to do.  I've un-install and re-installed the software three times and continue to get the same error message.  It states that "This copy of ITunes is corrupted or is not installed correctly.  Please reinstall Itunes"
    iMac, iOS 6

    HI,
    If your old version of iTunes is still working - then I sugest you stick with that.
    iTunes 11 is a lousy update - It will not retain your playlists, you can't find and delete duplicates... and a whole arry of oyher issues. (have a look around this forum to see how many issues IT11 gives people)
    Just a friendly advise and warning :-)

  • Transferring CS4 from an old Mac to a new one, I get a notice saying "licensing for this product has stopped working" Error 150:30. Don't know what to do? Thanks.

    I'm trying to migrate my CS4 from my old Mac to my new one. When trying to open photoshop, i get a message saying "Licensing for this product has stopped working." And "Error: 150:30" I don't know what to do from here. Can someone help me? Thanks.

    "Migrating" and/or "transferring" an application is not just asking for trouble but demanding it!
    Always install an Adobe application from scratch, from the original media: CD or download.

  • Disteller error 5 and i don't know how to fix.  can anyone provide guidance?

    disteller error 5 and i don't know how to fix.  can anyone provide guidance?

    What version of Distiller Server do you run? Or is this the regular Distiller, on a server? What triggers the error?

  • My itunes was working and I don't know what happened but I cannot re-install it again.

    My itunes was working and I don't know what happened but I cannot re-install it again.

    Do you get an error message when you try to reinstall iTunes? If so, what does it say? (Precise text, please.)

  • HT3275 Time machine error, backup disk image "/volumes/data-1/.sparesbundle " already in use. I don;t know what this means, can someone help?

    My Mac mini time capsule is showing an error Time machine error, backup disk image "/volumes/data-1/.sparesbundle " already in use. I don;t know what this means, can someone help?

    I had a similar problem and I solved it as follows -
    In Time Machine - > I deselected time capsule Data Disk as a destination.
    Then I pulled the power plug on the Time Capsule, twiddled my thumbs for 15 secs, plugged the power back in.
    Went back t Time Machine -> Re-Added the Time Capsule Data Disk as destination. And then tested by selecting Backup Now.
    All went well and the backup picked up from before the problem.
    BTW - I also have a USB drive connected to Time Capsule that is an alternate disk for Time Machine to backup.
    In Mountain Lion the GUI lets you add more than one Time Machine backup destinations very easily so I think it a good idea to have redundancy.
    Hope this helps.

  • I want to start a new iTunes U course for catolog and I don't know what can I do please give me description about this title.

    I want to start a new iTunes U course for catolog and I don't know what can I do please give me description about this title.

    If you haven't already done so then you can contact iTunes support via this page and ask them why the message is appearing (these are user-to-user forums, we won't know why) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I am trying to set up a co-worker's email on her iPhone and I don't know what her password for Thunderbird is and neither does she. Can I get the password?

    I am trying to set up a co-worker's email on her iPhone and I don't know what her password for Thunderbird is and neither does she. Can I get the password somehow, or what do you recommend?

    There is no password to Thunderbird. The password you need is to the email account. Contact the email provider for password reset.

  • Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop?

    Something keeps trying to download on my mac and I don't know what it is. It is not in the apple store and just comes out nowhere and request for my password to download something and I don't know what it is. How to make this stop? It pops up every single day.

    Erica,
         I can, with 99.99% certainty, tell you that you are absolutely right in not wanting to download or install this "Helper," whatever it is (but we can be equally certain it would not "help" anything).
         I cannot comment as to Oglethorpe's recommendation of 'adwaremedic'; I am unfamiliar with it.  His links to the Apple discussion and support pages warrant your time and attention.
         It might be really simple -- Trying looking in your Downloads folder, trash anything that you don't know with certainty is something you want to keep, and then Secure Empty your Trash. Then remove the AdBlock extension, LastPass, and Web of Trust extensions to Safari and re-boot. If the issue goes away, still be extraordinarily careful in the future.
         Unfortunately, it's probably not going to be that simple to get rid of, in which case I'd then try the line by line editing in HT203987. 
         I have no further suggestions (other than a complete wipe and re-install...but that's a pain because trying to restore from Time Machine would simply ... restore the Mal).
       For the rest of us, please post when you find a solution.
         Best.
         BPW
      (Also, try to edit your second post -- black out your last name on the screenshot and re-post it for others)

  • How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed and you don't know what it is now?

    How do you access updates to apps from the App store after changing to a new ID because the password on the old ID was changed by the former husband and you don't know what it is now?  And you set up your own new ID and account but can NOT access the updates, from the App store for the many apps that you already have, because they require that you sign in with that former now inaccessible ID and account and password?  Call it a problem of modern times and changing relationships, if you want to be charitable.

    So I guess it will only be new apps that I download that are allowed to give me their updates while 13 updates wait for me on an ID I can no longer access.
    Yes...  sorry.
    In the future, if need be, you can re download your purchases for free  >  Downloading past purchases from the App Store, iBookstore, and iTunes Store
    Good rule of thumb is to back up your purchases regardless  >  Mac App Store: Backing up your app purchases

Maybe you are looking for

  • Yosemite Mail App: How to hide recipient in inbox

    Hi folks, I upgraded to Yosemite just yesterday. Now my Mail App inbox is cluttered with unnecessary information: Additionally to the senders name, a picture an the title of that mail, each mail´s recipient and location is displayed. In the same line

  • Connecting 4k monitor to Macbook Pro retina 2012 mid

    I tried to connect to Macbook Pro retina 2012 mid 15 inch 2.7GHZ model. Initially I connected using HDMI to 3840x2160 at 30 hz. I casually changed the resolution to 1080 p from scaled option. Now I no more get the option of scaling to 4k. I am unsure

  • Smooth image pan

    Sorry I'm a noob I import images into flash but when I use motion tween to pan them, they play all jerky, like 3 or 4 FPS. My timeline is set to 24fps. The other animations play smoothly, its just the imported images that are jerky. I hear flash 8 ca

  • PMW to create ACH  CCD+ TXP Addenda format for remitting withholding taxes

    Hello, I am looking for documentation for creating the ACH CCD+  with the TXP Addenda format for tax payment remittance using Payment Medium Workbench (PMW).  Is there a standard payment method and format that can be used?

  • App for editing/reading/writing Excel, Word, Windows notepad text documents

    I was wondering if any of you's could recommend some apps (from experience) that would allow me to, edit/read/write Excel, Word, Windows notepad text documents. I could make do with an app that would do the above but without the ability to create, ed