1 Reply Latest reply on Jul 27, 2010 11:44 PM by Devendran

    Flash <---> ASP <---> Ms Access

    krish_laugh

      Hi

       

      i am trying to prepare a Phonebook using Flash, ASP, Ms Access

       

      i got this from the net


      These are the Codes

       

      IN Scene 1, Layer 1, Frame 1

      onClipEvent(data)
      {
      strName = Name;
      strAge = Age;
      strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords);
      }

      onClipEvent(load)
      {
      CurrentRecord = 0;
      loadVariables ("getdetails.asp?Record=0", this);

      }

       

      IN Previous Button

       

      on (release)
      {
      CurrentRecord--;
      if (CurrentRecord == -1)
          CurrentRecord = TotalRecords-1;
      loadVariables ("getdetails.asp?Record=" add String(CurrentRecord), this);
      }

       

      IN Next Button

       

      on (release)
      {
      CurrentRecord++;
      if (CurrentRecord == TotalRecords)
          CurrentRecord = 0;

      loadVariables ("getdetails.asp?Record=" add String(CurrentRecord), this);
      }

       

       

      when i try to run it show me the Syntax error

       

      Please anyone help me out

        • 1. Re: Flash <---> ASP <---> Ms Access
          Devendran Level 1

          Create an Empty MovieClip on Stage

          Select the MovieClip and open the AS Panel and do paste the code(Do Not paste in frame but paste it in MovieClip)

           

          onClipEvent(data)
          {
          strName = Name;
          strAge = Age;
          strPosition = "Record " add String(CurrentRecord+1) add " of " add String(TotalRecords);
          }

           

          onClipEvent(load)
          {
          CurrentRecord = 0;
          loadVariables ("getdetails.asp?Record=0", this);

          }

           

           

          // Create one Next Button inside the MovieClip and paste the script on Button

           

          on (release)
          {
          CurrentRecord++;
          if (CurrentRecord == TotalRecords)
              CurrentRecord = 0;

          loadVariables ("getdetails.asp?Record=" add String(CurrentRecord), this);
          }

           

          //Similarly create one Previous buttoninside the movieClip and paste in on button script.

           

          on (release)
          {
          CurrentRecord--;
              if (CurrentRecord == -1)
              CurrentRecord = TotalRecords-1;
          loadVariables ("getdetails.asp?Record=" add String(CurrentRecord), this);
          }