Announcement

Collapse
No announcement yet.

Corey, about that flash countdown timer you posted...

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

  • Corey, about that flash countdown timer you posted...

    I'm trying to do something with it.. and I'm running into a really annoying problem.

    Here's my code in timer.swf > On FSCommand:


    %fs% = FlashObject[timer].GetProperty ("Last FSCommand")
    %fs% = String.Replace ("%fs%", "0:", "")
    EditFieldObject[EditField1].SetText ("%fs%")
    IF (%fs% = "00")
    Page.RefreshObjects ("Refresh Specific", "timer")
    END IF


    What does that do? It closes my program immediately when it hits the IF statement!!

    Basically what I want it to do is restart when it hits zero. When tyring to do this, it just exits the app. Really strange. I cannot find a workaround for this to save my life. I've tried stopping and restarting the flash once it hits 00, I've tried jumping to a new page, then on that page's load, jump back to page1, I've tried everything. And everything just makes the app exit on it's own.

    I CAN'T figure it out! Any thoughts?

    Thx in advance.


    (p.s. I have the time.conf set up at .2 so it starts at 11 seconds and counts down to 0)

  • #2
    Re: Corey, about that flash countdown timer you posted...

    Well that timer counts up as I remember... Cick here for the best timer to use for this. Easiest way is to set your loop limit to 11 and then just set your display number as 11 - x so in other words if it's on loop one 11 -1 = 10 if it's on loop 2 then 11 -2 = 9, etc. Quick and easy way to get a countdown. And then just set it to restart IF the loop iteration equals 11... Very easy and it will work.

    I'm not sure why your app is closing, perhaps AMS is interpreting an app close command from the flash timer or some weird thing but when you do get it set up right it will work without closing...

    Corey Milner
    Creative Director, Indigo Rose Software

    Comment


    • #3
      Re: Corey, about that flash countdown timer you posted...

      I am having unbelievable problems with that timer. That IS the timer I'm using and even in your exmaple it does count down. Which is no big deal.

      Heres what I did.

      - I started from scratch and downloaded your timer again.

      - I changed the flash properties to not start automatically.

      - Page > On Show > I inserted Flash Seek to Frame 0, then Set Variables : loopRate=5 loopLimit=0 (I want it to continuously loop once every 5 seconds) Then Flash > Play.

      - I left the time.conf to "limit=.1" for 5 seconds.

      - Everything else was left default.

      - It wont loop! It stops at 0:00 and just sits there, never loops. I'm following the directions in the readme as best I can, and it just will NOT work. All I want it to do, is simply countdown to 0, restart back at it's original state. Why is this so hard for me? If I try doing "IF %prpoerty% = "0:00" then Page>RefreshSpecific>timer" .. boom, it closes my program again.


      I'm having no luck with this one. Setting the variables seems to be doing absolutely nothing.

      Please give me some sort of closure to this problem :(

      -Adam

      Comment


      • #4
        Re: Corey, about that flash countdown timer you posted...

        OK:

        1. You want to count down to zero from 11 and then restart?

        2. Your countdown is how fast? i.e. one number per second?

        Corey Milner
        Creative Director, Indigo Rose Software

        Comment


        • #5
          Re: Corey, about that flash countdown timer you posted...

          Well the 11 was just trial-and-error. What I want is it to count down from 20, to zero, and when it hits zero, start back over at 20 and repeat endlessly. All at a rate of 1 number per second.

          Comment


          • #6
            Re: Corey, about that flash countdown timer you posted...

            Hmmm, I just downloaded and that is the wrong timer, let me look around here...

            Corey Milner
            Creative Director, Indigo Rose Software

            Comment


            • #7
              Re: Corey, about that flash countdown timer you posted...

              LOL, no wonder I couldn't figure it out! That would explain why the readme said absolutely nothing about the time.conf file.

              Comment


              • #8
                Re: Corey, about that flash countdown timer you posted...

                Hmmm, seems to have been a file mix-up so I'll have to rebuild it this evening. I'll try to post it around supper time.

                Corey Milner
                Creative Director, Indigo Rose Software

                Comment


                • #9
                  Re: Corey, about that flash countdown timer you posted...

                  OK, thanks I'll check back then.

                  Comment


                  • #10
                    Re: Corey, about that flash countdown timer you posted...

                    Adam, I ran into this as well. I seem to remember (don't quote me on this) that you had to have the timer.swf in the distro folder (along with the conf. file) and check "external reference" Why, I don't know, but it worked after that. Seems that these are your symptoms. Maybe Corey can explain why this is? It DOES work. Took me a couple of hours scratching my head as well. It will not work in the Flash folder, even with the "external reference". Hope this helps.
                    Regards,

                    -Ron

                    Music | Video | Pictures

                    Comment


                    • #11
                      Re: Corey, about that flash countdown timer you posted...

                      Okey dokey, fixed it, grab it again http://www.indigorose.com/temp_web/timer.zip The included sample file is set up to count to 11, you can easily set it up to count down by using the 12 - x thing I mentioned, you'll see, it's easy to follow. All actions are on Page Show and on Flash object's OnFScommand.

                      As for the external file thing rhosk, that's a timer I made for tigger which called that file timer.conf at runtime for it's speed setting, in that case you must use "external file" so that the relative path from the flash .swf trying to read "timer.conf" is correct.

                      Anytime you are using flash which calls other files such as text and .swf files, you must make sure to put them, paths intact, in the distribution folder and use the external file feature...

                      Corey Milner
                      Creative Director, Indigo Rose Software

                      Comment

                      Working...
                      X