5 Replies Latest reply on Oct 6, 2006 9:12 AM by Newsgroup_User

    Javascript Help - AniMagic

    Level 7
      Hello All.

      I'm tryign to help write a Javascript to fire different AniMagic script
      according to date. This is moving a race-vehicle across a race track toshow
      race progression according to date (ie, in Santa Cruz Dec 15).

      I have no idea on Javascript, and would really appreciate a translation
      here:

      rp(){
      if(now()==#varDate1){
      p7AniMagic(Date 1 coordinates);
      exit;
      }elseif(now() == #varDate2){
      p7AniMagic(Date2 coordingates);
      exit;
      }elseif(now() == #varDate3){
      p7AniMagic(Date3);
      exit;
      }
      }

      <body onLoad="rp();">
      --

      TIA,

      Jon Parkhurst
      PriivaWeb
      http://priiva.net.


        • 1. Re: Javascript Help - AniMagic
          Level 7
          Why not go to the PVII forums, Jon?

          --
          Murray --- ICQ 71997575
          Adobe Community Expert
          (If you *MUST* email me, don't LAUGH when you do so!)
          ==================
          http://www.dreamweavermx-templates.com - Template Triage!
          http://www.projectseven.com/go - DW FAQs, Tutorials & Resources
          http://www.dwfaq.com - DW FAQs, Tutorials & Resources
          http://www.macromedia.com/support/search/ - Macromedia (MM) Technotes
          ==================


          "crash" <crash@bcdcdigital.com> wrote in message
          news:eg5ro0$ha$1@forums.macromedia.com...
          > Hello All.
          >
          > I'm tryign to help write a Javascript to fire different AniMagic script
          > according to date. This is moving a race-vehicle across a race track
          > toshow race progression according to date (ie, in Santa Cruz Dec 15).
          >
          > I have no idea on Javascript, and would really appreciate a translation
          > here:
          >
          > rp(){
          > if(now()==#varDate1){
          > p7AniMagic(Date 1 coordinates);
          > exit;
          > }elseif(now() == #varDate2){
          > p7AniMagic(Date2 coordingates);
          > exit;
          > }elseif(now() == #varDate3){
          > p7AniMagic(Date3);
          > exit;
          > }
          > }
          >
          > <body onLoad="rp();">
          > --
          >
          > TIA,
          >
          > Jon Parkhurst
          > PriivaWeb
          > http://priiva.net.
          >


          • 2. Re: Javascript Help - AniMagic
            Level 7
            Posted yesterday, no response.


            > Why not go to the PVII forums, Jon?
            >
            > --
            > Murray --- ICQ 71997575


            • 3. Re: Javascript Help - AniMagic
              Level 7
              I was still trying to figure out exactly what you wanted to do :-)

              "crash" <crash@bcdcdigital.com> wrote in message
              news:eg5soj$1oo$1@forums.macromedia.com...
              > Posted yesterday, no response.
              >
              >
              >> Why not go to the PVII forums, Jon?
              >>
              >> --
              >> Murray --- ICQ 71997575
              >
              >

              • 4. Re: Javascript Help - AniMagic
                Level 7
                I don't know how I can explain it any further, really.

                I have a graphical representation of a race.

                There is a graphic of a boat.

                The boat will be at places during specific dates. For example, it will be
                in Miami on the 23 of Sept.

                It is requested that a graphical representation of where the boat is on the
                course be shown on the website. If it's this day, he should be at this
                point. If it's this day, he's expected to be at this point.

                Kinda like route-planning.

                So I basically want to compare today to sets of dates to figure out where
                the boat should be placed.

                If today is between start date and second stop date, then the boat should be
                at the first stop. If it's between the first stop date and the third stop
                date, then it should be at the second stop.

                All of this will be hard-coded.

                Does that make more sense? It's not my project, I just got involved helping,
                so I don't have any details as to *why* the client wants this (it's not very
                accurate) they just want to show a general outline, I suppose. I like it
                because it could be used in variety of ways to overlay Routes on a map
                background. (Colm's Trip 66 was what sparked interest).

                Thanks,

                Jon


                • 5. Re: Javascript Help - AniMagic
                  Level 7
                  Moving this to PVII forums, as it's been picked up there.

                  Thanks all for taking a look,

                  Jon