1 Reply Latest reply on Jun 1, 2006 9:19 PM by Newsgroup_User

    Calling function

    srib
      Hi,

      I have created a class file in actionscript2.0

      -----------------------------------------------------------------------
      class test
      {

      public function test ()
      {
      trace("This is constructor")
      }

      public function fun_1 ()
      {
      trace("This is first function")
      fun_2()
      }

      public function fun_2 ()
      {
      trace("This is second function")
      }

      }
      -----------------------------------------------------------------------

      And this is the actionscript in fla
      ------------------------------------------------------------------------
      var myObj = new test()
      myObj.fun_1()
      ------------------------------------------------------------------------

      My problem is i am calling fun_2() in fun_1() but it is not executing can, any one help me out from this problem.


      Thanks,
      Sridhar B