Announcement

Collapse
No announcement yet.

I have a bit of an unusual question...

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • I have a bit of an unusual question...

    Ok, if I have a web browser in my project, and within the webbrowser is a javascript timer... is there any possible way that I could somehow get AMS to retrieve the value in the form field and execute some sort of stop command to the script?

    Heres the timer i want to use

    Basically what I'm doing is testing the length of time it takes to perform a certain action.

    So when the action is finished, it stops the timer and I can use the amount of time it took to calculate other things.

    I know that's probably too complicated for AMS but it's worth asking. [img]/ubbthreads/images/icons/smile.gif[/img]

    Thanks in advance

  • #2
    Re: I have a bit of an unusual question...

    Hi. OK well let's break this down:

    1. Yes you can easily create javascripts which interact freely with AMS, passing variables, triggering actions, etc.

    2. The better method for this application by far is a flash timer. I can probably whip one up for you if you are not able to...

    3. You will need to time this in milliseconds not seconds because actions are so fast.

    It's a very easy task for AMS this one actually... It's just a matter of putting in a Flash timer on a page and then sandwiching your "actions to test" in between two Flash actions which retrieve a microtime value from the Flash timer. Since you are querying the flash object for both the start and end times (never stop the timer for better accuracy) there will be no delay added by the Flash actions, i.e. the time distance between the two queries will be a relatively accurate representation of just the time it took for the "actions to test". You could always do a test to time the Flash actions and then deduct that time valeu from the total if you want to try and get hyperaccurate...

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: I have a bit of an unusual question...

      Ok here I just built it for you into a project. using this project whichever actions you sandwich between the two Flash get variable actions will be timed and reported to you. In this case I put a file search action to check you srcdir for jpegs just so there'd be a delay to report (12 milliseconds here), simply take that action out and replace it with the one(s) you want to time. Here it is http://www.indigorose.com/temp_web/actionTimer.zip

      This one was really easy, took me less than 5 minutes to create and upload including the flash. [img]/ubbthreads/images/icons/smile.gif[/img] BTW feel free to post anything I post here in your exchange. I don't have time to submit stuff but anything I post here in this forum for download is yours for the taking if you want to add it to the exchange yourself, just give credit to "Indigo Rose Software Corp." (Corp. is optional, "Indigo Rose Software" is fine too) Please don't hotlink the files though, grab them as you need. If you need to hotlink a file because you don't have enough room on your server please ask us first before doing so and we'll see what we can setup. We're always willing to help people who are creating and maintaining high quality AMS user sites. [img]/ubbthreads/images/icons/smile.gif[/img]

      Corey Milner
      Creative Director, Indigo Rose Software

      Comment


      • #4
        Re: I have a bit of an unusual question...

        Well if it wouldn't be too difficult I'd be extremely happy if you could whip one up. I don't know flash, I've only dabbled in it a few times. I use swish only if I REALLY need flash done.

        As far as "3." goes, yeah it really would need to be in milliseconds. Only for the further calculations that would be done succeeding the the action being timed.

        If it's too much trouble to do, don't worry about it, if not, thanks a million in advance. [img]/ubbthreads/images/icons/smile.gif[/img]

        -Adam

        Comment


        • #5
          Re: I have a bit of an unusual question...

          Wow Corey, thanks a ton! Yeah, I wouldn't hotlink files.. hotlinking bothers me. [img]/ubbthreads/images/icons/smile.gif[/img]

          Now to see if worm wants his creations on the site.

          Comment


          • #6
            Re: I have a bit of an unusual question...

            Alright, 3:30 am -- it's officially too late to be rotting away on AMS [img]/ubbthreads/images/icons/smile.gif[/img]. Thanks again, I really appreciate it. Good night!

            Comment


            • #7
              Re: I have a bit of an unusual question...

              [img]/ubbthreads/images/icons/smile.gif[/img] BTW Adam if you can get some content into your exchange within the next little while we'll give you a link on the autoplay site... No time limit, don't rush, as soon as it starts to gain some mass we'll hook you up with a link.

              Corey Milner
              Creative Director, Indigo Rose Software

              Comment


              • #8
                Re: I have a bit of an unusual question...

                Sounds good

                Comment

                Working...
                X