3 Replies Latest reply: Oct 30, 2013 9:32 AM by Ned Murphy RSS

    change text between loops

    ruthgordy Community Member

      I have to update an ad that was previously created. The original ad consists of a photo and some text and logos that loop twice then stop. The constraints from the publication require that the ad make only two loops and within a specified amount of time and stop at the end of the second loop - this has been done in the original ad. The client has requested where a banner appears in the ad with specific information ("Apply now for january semester..."), that the information changes in the second rotation (loop) of the ad ( "to an open house date")  I'm trying to figure out how to do this considering the time constraint and limit to two loops. I had to condense and edit the first draft to meet the constraints so I'm not sure I can do anything with the timeline? Is this an action script problem?

      I'm working in CS4 and AS 2.0

       

      Any help is appreciated

       

      Thanks

        • 1. Re: change text between loops
          Ned Murphy CommunityMVP

          While Actionscript could be used to solve the problem it is not necessarily the only solution.  You could skip having two loops and just extend the timeline for the equivalent length of two loops and change the text in the second half of it, repeating whatever else goes twice within that extended length.

           

          To take an Actionscript apporach to solving it you can do a simple logic check to change the text.  There are several approaches you could take, one being...  Start off with the (dynamic) textfield being empty.  First check if the textfield contains the first loop of text and if it does then assign the second loop, but if it does not, assign the first text.

           

          if(tfield.text == "Apply now for january semester..."){

              tfield.text = "to an open house date";

          } else {

              tfield.text = "Apply now for january semester...";

          }

          • 2. Re: change text between loops
            ruthgordy Community Member

            Will try your suggestions and hopefully give you a correct answer

            Thanks for your help now and problems you have helped me solve in the past!!

             

            JA

            • 3. Re: change text between loops
              Ned Murphy CommunityMVP

              You're welcome