Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 6 of 6
  1. #1

    Default Digital timer, I need a little help

    Hey guys,

    I hope someone out there can help me.

    I've been trying to get a digital timer working all day and I'm not having much luck.

    I found a tutorial online that gives script and goes through the process of creating a timer.


    http://www.spoono.com/flash/tutorial...rial.php?id=22

    I did everything it told me to do but nothing is happening when I play the .swf. I'm using Flash MX and it may be that the script isn't compatible of something.

    I've attached the .fla file. I'm not the best at scripting so could someone please explain what's happening or what I'm doing wrong.

    www.megiddotrek.com/sites/usspresidio/timer.fla

    I would appreciate any and all help.

    Thanks a million
    [/url]

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    Your targeting the instance name of the textfield correctly, but you also need to target the text property of that textfield......

    _root.timer_txt = "00:00:00:00";

    anywhere your using....._root.timer_txt

    target the text property of that textfield with.....

    _root.timer_txt.text = "00:00:00:00";
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  4. #3

    Default

    Thanks a million NTD, It's working perfectly now.

  5. #4

    Default

    I have one more question.

    I am trying to bring the timer into another flash movie. I want it to be invisable until another button is pressed. The problem is that I need to convert the timer to a symbol, that's fine, I know how to do that but when I do make it a symbol the buttons don't work anymore.

    I tried to make external buttons to control the timer but none of them worked.

    Any ideas how I could get this working?

  6. #5
    Join Date
    May 2004
    Location
    U.S.A.
    Posts
    2,890

    Default

    Hi,

    When putting that movie into a movieclip, the paths to your buttons and objects need to reflect the name of the movieclip holder in the path.

    Example...

    Say I have a movie with a single button with an instance name of "myButton". In the movie, I would access that button with....

    _root.myButton.onRelease=function(){
    //do something;
    }

    If I want to put that movie into another movieclip, the name of that clip needs to be reflected in the path. I create a movieclip with an instance name of "clipHolder" and put the other movie inside. The path to my button would now be.....

    _root.clipHolder.myButton.onRelease=function(){
    //do something;
    }

    All buttons and objects in the main movie will have to be changed to represent the holder movieclips instance name in the path.

    NTD
    A mind once stretched by a new idea never regains its original dimensions.
    - Oliver Wendell Holmes

  7. #6

    Default

    Thanks again

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. count up in timer?
    By bluereo in forum Flash Scripting
    Replies: 1
    Last Post: 06-17-2005, 07:34 PM
  2. digital clock + time zones scripting tricky!
    By jonned in forum Flash Scripting
    Replies: 1
    Last Post: 02-26-2005, 05:37 AM
  3. Flash animation into digital video
    By dazza in forum Newbies
    Replies: 1
    Last Post: 09-29-2003, 11:05 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial