1 Reply Latest reply on Mar 18, 2011 9:04 AM by i_bullock

    Undefined property when it does exist - Need Help

    Thomas2008

      Hello everyone,

       

      Im having trouble finding out wuy i keep recieving :

       

      Line 255 1120: Access of undefined property mandala_email_click.

       

      The function manda_email_click exists but it keeps showing this error...

       

      heres the script:

       

      //-------button-------//
      
      grupoMenu.mandalaMc.hitsMc.btEmail.addEventListener(MouseEvent.CLICK, mandala_email_click);
      
      
      //--------function------//
      
      private function mandala_faq_click(e:MouseEvent)
                {
      GlobalSettings.btClicado = 11;
                     if (GlobalSettings.AREA != 9)
                     {
                          Root.targets[Targets.MAIN_LOADER].trocaBg(8);
                          Root.targets[Targets.BASE].escondeScroll();
                          Root.targets[Targets.MAIN_LOADER].removeConteudoBanner("internaFaq.swf");
                          
                          if (! GlobalSettings.areaHomeProd)
                          {
                               Root.targets[Targets.MAIN_LOADER].removeConteudoInterna("internaHome.swf");
                          }
                          GlobalSettings.AREA = 9;
                          cor = 0x8EA78F;
                          Root.targets[Targets.HOME].corBanner(cor);
                          Root.targets[Targets.BASE].escondeScroll();
                          TweenMax.to(grupoMenu.mandalaMc.guiaMc, 1, {rotation:32.7});
                          TweenMax.to(grupoMenu.mandalaMc.lineMc, 1, {rotation:32.7});
                          TweenMax.to(grupoMenu.menuMc.bt1, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt2, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt3, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt4, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt5, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt6, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt7, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt8, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt9, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt10, 0.3, {alpha:0});
                          TweenMax.to(grupoMenu.menuMc.bt11, 0.3, {alpha:1});
      
                          //TweenMax.to(grupoMenu.menuMc.bt9, 0.3, { alpha:0 } );
      
      
                          TweenMax.to(grupoMenu.mandalaMc, 1.2, { y:StageObj.stage.stageHeight - 3, scaleX:0, scaleY:0,alpha:0, ease:Sine.easeIn, delay:0.25 } );
                          TweenMax.to(grupoMenu.mandalaMc, 1, { y:110, scaleX:0, scaleY:0,alpha:0, ease:Sine.easeOut, delay:2 } );
                          TweenMax.to(grupoMenu.mandalaMc, 1, { alpha:1, scaleX:1, scaleY:1,ease:Back.easeOut, delay:3} );
                          GlobalSettings.NT_produto = 1;
                          trace("GlobalSettings.NT_produto: ",GlobalSettings.NT_produto);
                          Root.targets[Targets.BASE].getXMLByWord("");
                          /*if (StageObj.stage.stageWidth < 850) {
                           TweenMax.to(Root.targets[Targets.MENU].mcRodapeEsq,.8,{y:StageObj.stage.stageHeight + 200});
                           TweenMax.to(Root.targets[Targets.MENU].mcRodapeDir,.8,{y:StageObj.stage.stageHeight + 200});
                          } else {
                          
                          TweenMax.to(Root.targets[Targets.MENU].mcRodapeEsq,.8,{y:StageObj.stage.stageHeight - 5})
                          TweenMax.to(Root.targets[Targets.MENU].mcRodapeDir,.8,{y:StageObj.stage.stageHeight - 5})
                          }*/
      
                          posicionaRodape();
      
      
                          Root.targets[Targets.BASE].analyticsTrakerAreas("contato");
                     }
                }
      
      
      
      
      

      I dont think theres a problem with the function because i copied another function exaclty the same , just changed the button variable and alpha value.
      Then again, i started using AS3 a few weeks ago.
      Maybe spaces between 2 functions??
      Well i hope someone can help me i would be grateful.