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

Closed Thread
Results 1 to 9 of 9

Thread: I'm new.. need help..

  1. #1
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    5

    Default I'm new.. need help..

    Well, i'm new here.. nice to meet u guys.. anyway, i'm doing my final project.. i have 7 month times and i sincerely hope u guys can give me some advise and opinion about my project.. and of coz, pls be there for me when i need help.. :P

    Btw, i've chose to do a children Education software. Where children can learn those new word, play game and know more about farm in my software. so i'll roughly tell u guys about my scope 1st.. later on need more help only i post msg here k?

    Thanks so much.. i'll appreciate all ur help..
    - vivian -

  2. #2

    Default

    Hi vhsuejing,
    welcome to the forum and good luck with your project, sounds like it could be fun to help with, if I can

    Taff

  3. #3
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    5

    Default Thanks so much

    Hey guy.. thanks so much~ so happy to get ur reply.. at 1st still worry whether u ppl will take a look at my problem anot.. hehe.. but now feel better edi..

    Yesterday was worrying about the problem of changing cursor.. but then i found some of the script through the web edi.. so far no prob..

    so i'll come back to u guys yea~ thanks!!!
    - vivian -

  4. #4
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    5

    Default HELP~

    Hello.. here come my 1st question.. i'm thinking of adding in AI in my software in order to look more advance.. For example, the animated farmer will greet the children "good morning" when the children play the game in the morning and greet "good afternoon" when they are playing the software in the noon..

    Other than tat.. i hope to appear the farmer in randomly.. means tat when the children play the software, they till have different greeting from the farmer..

    How could i do tat?
    - vivian -

  5. #5

    Default

    Feel free to start a new topic for a new question.

    You could use the date object to check the time of day.
    Something like this maybe:

    Code:
    now = new Date;
    var hour = now.getHours();
    if &#40;hour<12&#41;&#123;
    	trace&#40;"good Morning"&#41;;
    &#125;else if&#40;&#40;hour>=12&#41;&&&#40;hour<19&#41;&#41;&#123;
    	trace&#40;"Good Day"&#41;;
    &#125;else&#123;
    	trace&#40;"Get to bed!"&#41;;
    &#125;
    you may want to use a case setup, but the idea is the same. Just replace the trace with whatever the farmer needs to do.

    Taff

  6. #6
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    5

    Default Thanks but....

    thanks for the coding, taff.. but hey, taff.. the coding tat u sent me, can be apply in Flash?? other than that..

    Code:
    now = new Date;
    var hour = now.getHours();
    if (hour<12){
    trace("good Morning");
    }else if((hour>=12)&&(hour<19)){
    trace("Good Day");
    }else{
    trace("Get to bed!");
    }


    the good morning, good day n get to bed! can be change randomly anot? like greet "How do u do!", "Hello, children"... something liddat??
    - vivian -

  7. #7

    Default

    That coding is for flash yes....try making a new flash movie and place that code on the time line.
    Currently it traces out the time of day...i.e. in the flash tester it opens the output window and prints the relevant bit. This will be of no use to you in aproper swf, you will need to make a textfield give it an instance name and then use something like:

    Code:
    now = new Date; 
    var hour = now.getHours&#40;&#41;; 
    if &#40;hour<12&#41;&#123; 
    timeOfDay="Good Morning";
    &#125;else if&#40;&#40;hour>=12&#41;&&&#40;hour<19&#41;&#41;&#123; 
    timeOfDay="Hi Kids!";
    &#125;else&#123; 
    timeOfDay="Shouldn't you be in bed?";
    &#125; 
    
    //myText is the instance name of the textField
    myText.text=timeOfDay;
    Good Luck!

    Taff

  8. #8
    Join Date
    Jan 2004
    Location
    Malaysia
    Posts
    5

    Default Thanks and Happy Chinese New Year

    dEAR fren,

    Thanks so much for the help.. anyway, i'll try n get back to u guys when i face prob k? anyway, chinese new year is around the corner.. Hope u guys will have a Happy and prosperous Chinese New Year..

    College will be off for 1 week.. and i'll see u guys SOON~

    Take care..
    - vivian -

  9. #9

    Default Re: I'm new.. need help..

    hello even i want urgent help on this.. pls help me out even i dont have to use serverside scripting.. wanna use on flash n data base access.. how to do interactive function...

    thank you

Closed Thread

Thread Information

Users Browsing this Thread

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

     

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