Error 1009 code cant see my buttons

TypeError: Error #1009: Cannot access a property or method of a null object reference.
          at ife3m_fla::MainTimeline/frame41()[ife3m_fla.MainTimeline::frame41:9]
Code of frame 41
line 9 boton2_btn.addEventListener(MouseEvent.MOUSE_DOWN, playSplitDuct);
               function playSplitDuct(event:MouseEvent):void{
On the time line i have alone on its layer i have the boton2_btn placed where I need it. It first appears on frame 15 with brightness to the max then i do a classic tween to end up with the button as i want it on frame 19. I have several buttons with that same arrangment none of them can be recognized by the code.
How can i make sure the buttons are instantiated correctly?
Could the tween have anything to do with problem?
Or is ther a problem if i have mc inside my button?
Thanks f

the best way is to avoid using timeline tweening.
but once you are in the middle of a project that may have a lot of timeline tweening you can work around the problem by removing that instance name (boton2_btn) from all the existing instances, then create a new layer above your button and, in the frame where your button first exists, add a keyframe (if that's not frame 1).  drag a copy of your button to the stage, position it over your existing button and assign its name to boton2_btn and its alpha to 0. 
if there are certain frames (possibly including the first) where you don't want boton2_btn to be clickable, use actionscript to assign its visible (or mouseEnabled) property to false.  in frames where you want it to be clickable assign it visble (or mouseEnabled) property to be true.

Similar Messages

  • Cant see firefox button in windows xp

    iam useing windows xp sp2 with latest firefox 4
    am not able to see this firefox button at the top
    what's wrong??
    help plzzzzz???

    iam useing windows xp sp2 with latest firefox 4
    am not able to see this firefox button at the top what's wrong?? help plzzzzz???

  • Weird error where java cant see the classes

    OK the best way to escirbe my error is with the following image (cut and paste please)
    www.angelfire.com/clone/wolfbane/Images/prompt.jpg
    This never happened, but for some reason today it does. I can call javac to compile the simple test.java file in the directory, and it does, but then when I try to run the test.class it says class not found. I did not change any class paths or anything like that. Can someone please tell me what is going on. Why is it that all of a sudden java can't see the class files?

    Either
    the class does not exist, or
    the name of the class is wrong, or
    the file that contains the class is not on the classpath.

  • Error in code -- pls see the attached code

    private boolean editsFailed() {
              boolean badRecord = false;
              failedits = new ArrayList(Arrays.asList(edit17()));
         for (int count = 0; count < failedits.size(); count++)
              // if any of the edits returns other than 0 set badRecord flag to true and break the loop. 
              if (!(failedits.get( count ).equals(0))){
                   badRecord = true;
                   break;
         return true;
         private void returnFile(boolean) ------> how should i write the parameter here ??????????????
              if (badRecord)
                   writebaddata();               
              else
                   writegooddata();
         }Thanks in advance

    It pointing an error
    private boolean editsFailed() {
              boolean badRecord = false;
              failedits = new ArrayList(Arrays.asList(edit17()));
              for (int count = 0; count < failedits.size(); count++)
                   // if any of the edits returns other than 0 set badRecord flag to true and break the loop. 
                   if (!(failedits.get( count ).equals(0))){
                        badRecord = true;
                        break;
              return false; ---> is this correct what i wrote , is my logic right  ??????????
    private void returnFile(boolean)   -> here its pointing error ????????
              if (badRecord)
                   writebaddata();               
              else
                   writegooddata();
         }

  • HELP! Cant see download button!

    Hi! I'm trying to download itunes 7 and can't because i don't see anything to click on yo download. I've tried dissabling my pop-up blocker and didnt werk. Any suggestions?
    Xp   Windows XP  

    cool!
    must be a better way of doing this than taking all of NIS down, though.
    Got it!
    switch NIS 2006 on. bring up your Norton Protection Center. Click Norton AntiSpam switch Ad Blocking off.
    here's a screenshot of what the download controls look like with NIS 2006 ad blocking off:
    NIS 2006 Norton AntiSpam ad blocking OFF
    and here's one with ad blocking on:
    NIS 2006 Norton AntiSpam ad blocking ON
    can you doublecheck that for me GameSoldier?

  • I cant see protected videos, how do i fix error code 3323?

    I am using linux and I cant see protected video content.  I did everything on this page, and it failed the demo at this end.
    http://helpx.adobe.com/x-productkb/multi/flash-player-11-problems-playing.html
    I get error code: 3323
    corrupt global state store
    sub error code = 1090519053

    Take it to an authorized Apple store in your city for a check.

  • Error 1009: Buttons Linking to Frame Labels?

    Hello here is my code for my buttons for my rather simple Flash site. I have 5 "frame labels" each label contains a set of frames representing a page. Yet when I test the site with the action script below it freezes on the first frame and gives the message
    Error #1009: Cannot access a property or method of a null object reference. at SelfPromoSite_fla::MainTimeline/frame1()
    This is my code below for my main navigation buttons
    Home_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goHome);
    function goHome(event:MouseEvent):void {
    gotoAndPlay("Home");
    About_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goAbout);
    function goAbout(event:MouseEvent):void {
    gotoAndPlay("About");
    Resume_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goResume);
    function goResume(event:MouseEvent):void {
    gotoAndPlay("Resume");
    Work_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goWork);
    function goWork(event:MouseEvent):void {
    gotoAndPlay("Work");
    Contact_Btn.addEventListener(MouseEvent.MOUSE_DOWN, goContact);
    function goContact(event:MouseEvent):void {
    gotoAndPlay("Contact");
    Also on the "Work" "page" "set of frames" I have buttons to advance between frames.
    button1.addEventListener(MouseEvent.MOUSE_DOWN, goBack);
    function goBack(event:MouseEvent):void
              prevFrame();
    button2.addEventListener(MouseEvent.MOUSE_DOWN, goForward);
    function goForward(event:MouseEvent):void
              nextFrame();
    I've tried putting this action script on the frame where the "Work" label starts and the actual buttons for advancing back and forth are located. I've also tried putting the action script for these buttons on the first frame with the remainder of the button action script above, it does not work. Also when I remove the 2nd set of actionscript altogether the site still freezes on the first frame.

    The 1009 error indicates that one of the objects being targeted by your code is out of scope.  This could mean that the object....
    - is declared but not instantiated
    - doesn't have an instance name (or the instance name is mispelled)
    - does not exist in the frame where that code is trying to talk to it
    - is animated into place but is not assigned instance names in every keyframe for it
    - is one of two or more consecutive keyframes of the same objects with no name assigned in the preceding frame(s).
    If you go into your Publish Settings Flash section and select the option to Permit debugging, your error message should have a line number following the frame number which will help you isolate which object is involved.

  • Cant see the buy button in itunes when making a ringtone???

    When I am in iTunes, making a ringtone, the bottom right portion of my iTunes screen cuts off at the button that says "Ca" - I cant see or get to the right of that button (which I assume says cancel) and I am unable to create ringtones for my iPhone. I have tried everything from resizing the window to uninstalling iTunes and reinstalling. It is always the same and very frustrating. Can anyone help?

    Try increasing your screen resolution.

  • Error #1009 in as3 code to install an Air application from an embedded swf.

    Hi, I am getting error #1009 in my code when i try to install the application. I am new to action script and below is the code for my installer.
    var airSWF:Object; // This is the reference to the main class of air.swf
    var airSWFLoader:Loader = new Loader(); // Used to load the SWF
    var loaderContext:LoaderContext = new LoaderContext(); 
                                    // Used to set the application domain 
    var paramObjAppid:Object = LoaderInfo(this.root.loaderInfo).parameters.appid;
    //var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;
    loaderContext.applicationDomain = ApplicationDomain.currentDomain;
    airSWFLoader.contentLoaderInfo.addEventListener(Event.INIT, onInit);
    airSWFLoader.load(new URLRequest("http://airdownload.adobe.com/air/browserapi/air.swf"), 
                        loaderContext);
    function onInit(e:Event):void 
        airSWF = e.target.content;
    var url = '';
    var qty = '';
    var appID = '';
    var pubID = "";
    var runtimeVersion = "3";
    var tf:TextField = new TextField();       // create a TextField names tf for debugging
    tf.autoSize = TextFieldAutoSize.LEFT;
    //tf.size = 4;
    tf.wordWrap = true;
    tf.border = true;
    addChild(tf);        
    try
        var keyStr:String;
        var valueStr:String;
        var paramObj:Object = LoaderInfo(this.root.loaderInfo).parameters;   //set the paramObj variable to the parameters property of the LoaderInfo object
        for (keyStr in paramObj)
            valueStr = String(paramObj[keyStr]);
            if ( keyStr == 'qty' ) {
                qty = Number(valueStr);
            if ( keyStr == 'url' ) {
                url = escape(valueStr);
            if ( keyStr == 'appid') {
                appID = valueStr;
    catch (error:Error)
    var arguments:Array = [qty];
    launchBtn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_2);
    function fl_MouseClickHandler_2(event:MouseEvent):void
        airSWF.getApplicationVersion(appID, pubID, versionDetectCallback);    
    function versionDetectCallback(version:String):void
        if (version == null)
            trace("Not installed.");
            tf.appendText('Not Installed');
            try {
                   airSWF.installApplication(url, runtimeVersion, arguments);
                catch (error:Error){
                    tf.appendText(error.toString());
        else
            trace("Version", version, "installed.");
            tf.appendText("appID="+appID);
            try {
                airSWF.launchApplication(appID, pubID );
            catch(error:Error) {
                tf.appendText(error.toString());

    I managed to figure out what was causing the issue, I had a particular png image in my projects assets folder that seemed to be the culprit. Once I removed it the app installs just fine? Really weird?
    Adam

  • I have tried to install Adobe Ilustrator but I receive an error Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR:    -------------------------------------- Summary --------------------------------------   - 0 fatal er

    Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR:   -------------------------------------- Summary --------------------------------------  - 0 fatal error(s), 4 error(s)    ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x64) 11.0.61030.0 {3E272A93-C06B-4206-AD02-0EBE02535E20} -----------  ERROR: Third party payload installer vcredist_x64.exe failed with exit code: -2147024546  ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x64). Please try installing it by double clicking on the executable at "C:\Users\amorales\AppData\Local\Temp\{6A3B9341-4D14-415F-8A21-85327165545E}\Illustrator_18_LS20_win64\Adobe Illustrator CC 2014\payloads\Microsoft VC 2012 Redist (x64)\vcredist_x64.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x64) from Microsoft website - www.microsoft.com  ----------- Payload: Microsoft Visual C++ 2012 Redistributable Package (x86) 11.0.61030.0 {873BE68F-480F-49A6-9649-F98CAB056AFC} -----------  ERROR: Third party payload installer vcredist_x86.exe failed with exit code: -2147024546  ERROR: Failed to install Microsoft Visual C++ 2012 Redistributable Package (x86). Please try installing it by double clicking on the executable at "C:\Users\amorales\AppData\Local\Temp\{6A3B9341-4D14-415F-8A21-85327165545E}\Illustrator_18_LS20_win64\Adobe Illustrator CC 2014\payloads\Microsoft VC 2012 Redist (x86)\vcredist_x86.exe", or download and install the latest Microsoft Visual C++ 2012 Redistributable Package (x86) from Microsoft website - www.microsoft.com  -------------------------------------------------------------------------------------

    Errors "Exit Code: 6," "Exit Code: 7"
    Mylenium

  • Error code Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW016, DW036 ...

    can any one help? I am getting the following message when installing illustrator: Please see specific errors and warnings below for troubleshooting. For example,  ERROR: DW050 ... WARNING: DW016, DW036 ...

    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Mylenium

  • I had a big problem i scrape the gift card hard and i cant see the code what should i do??, i had a big problem i scrape the gift card hard and i cant see the code what should i do??

    i have a problem i scrape the gift card hard and i cant see the code what should i do??

    iTunes Store: Invalid, inactive, or illegible codes

  • Code error 1009

    When I want to download an application an error occur:Error 1009? What can I do now?

    I am assuming that you are referring to an error code in iTunes? If that is the case, this Apple support document adresses error codes. It seems as though error codes in the 1000 range deal with hardware issues. It is possible there is something wrong with the iPhone itself. Many times these error codes are returned if an individual has attempted to modify the software in iOS such as a jailbreak. If that is the case, it is against the TOS of the forum to discuss the issue any further. You can always try and get service from the individual or company that provided the jailbreak.

  • Part of my itunes gift cards code got scratched off so i cant see it, what do i do about that?

    part of my itunes gift cards code got scratched off so i cant see it, what do i do about that?

    iTunes Store:  Invalid, Inactive, or Illegible codes http://support.apple.com/kb/TS1292

  • I can't download Lightroom for some reason.  I keep getting this error:  Exit Code: 7 Please see specific errors below for troubleshooting. For example,  ERROR: DW006 ...  -------------------------------------- Summary ------------------------------------

    I can't download Lightroom for some reason.  I keep getting this error:
    Exit Code: 7
    Please see specific errors below for troubleshooting. For example, ERROR: DW006 ...
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 2 error(s)
    ----------- Payload: Adobe Photoshop Lightroom 5 5.4.0.0 Adobe Photoshop Lightroom 5.pkg_5.4 -----------
    ERROR: DW006: Apple Package failed to install successfully.
    ERROR: Third party payload installer Adobe Photoshop Lightroom 5.pkg failed with exit code: 1

    Link for Download & Install & Setup & Activation problems may help
    -Chat http://www.adobe.com/support/download-install/supportinfo/

Maybe you are looking for

  • How do you connect picopix to MacBook Pro, How do you connect picopix to MacBook Pro

    How do you connect a MacBook Pro to a picopix projector??

  • Embedding Fonts in PostScript and/or PDF

    Under 10.3 the Print dialogue had a Save As File option which allowed the embedding of fonts in PostScript. Choices were All, All but Standard 13 and such. This made sure that the PostScript (and generated PDF) files would render properly on systems

  • GetDate java program

    I need with a program that requires me to rewrite the definitions of the method setDate and the constructor with parameters so that the values of month, day, and year are checked before storing the date into the data members. Add a method isLeapYear

  • Passing attributes between providers and portlets

    When using Providers, it is possible to pass session data between providers via ProviderContext.setSessionProperty. Is it possible to pass attributes from a provider to a portlet? Anything set on the ProviderContext does not seem to get propagated to

  • How do i connect my bluetooth to my macbook

    i have a motorola elite sliver bluetooth - can this be connected to my macbook - i have it paired with the iphone but wanted to connect to my mac - i have a blue tooth icon...but cant pair it to my phone