A Flash Developer Resource Site

Page 2 of 2 FirstFirst 12
Results 21 to 31 of 31

Thread: Set the refersh time of a page

  1. #21
    Junior Member
    Join Date
    Jun 2007
    Location
    Beijing,China
    Posts
    13
    Then you needless use time to confirm.
    change your code like this:
    Code:
    var xml = new XMLloader("list.xml");
    xml.onLoadComplete = function() {
    	var node = this.firstChild.childNodes;
    	txt.text = node[random(node.length)].firstChild.nodeValue;
    };
    My English is poor...

  2. #22
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Hi Estrays,

    R u there

  3. #23
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Actually i want only one question in 24 hours from 1000 question .

    using this code


    var xml = new XMLloader("list.xml");
    xml.onLoadComplete = function() {
    var node = this.firstChild.childNodes;
    txt.text = node[random(node.length)].firstChild.nodeValue;
    };

    after each time the question is changed and i don't want this i want only one question in aday and next day the question should change automatically is it possible.
    please give me any solution .
    Last edited by jamna; 06-19-2007 at 02:22 AM.

  4. #24
    Junior Member
    Join Date
    Jun 2007
    Location
    Beijing,China
    Posts
    13

    My English is poor.
    Maybe misconstrue your words.

    Are you want to display only one same question in same day?(0:00am-12.00pm)

    Or want to display only one same question in same hour?
    My English is poor...

  5. #25
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Yes,
    I want to display only one same question after 24 hours not related to user's system's clock.

  6. #26
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    I explain:
    suppose i have 50,100 ,500,1000 or may be 5000 questions in my XML file as i give u a exmple of only 6 questions the questions numbers may be increased or decreased but i
    i want only one question in 24 hours from these questions .

  7. #27
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Hi Estrays,

    R u there?

  8. #28
    Junior Member
    Join Date
    Jun 2007
    Location
    Beijing,China
    Posts
    13
    It's hard to learn a foreign language... - -

    Then, we need to gain the serverside's time, and feedback to SWF.
    If being able to achieve this, transfer the single XML file is much fairly simpler.

    If just judge in clientside, we can't to confirm accurate time.

    If you need all customers display the same content, the randomization is Meaningless.
    My English is poor...

  9. #29
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    then what should i do can we get server time in flash?

  10. #30
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Hi Estrays,
    please can u explain me about this line
    var i = Math.floor(hour / 6);

    what changes which i can make for change the question after 12 hours .

    using this line only 2 questions occur after 12 hours why.

  11. #31
    Member
    Join Date
    Feb 2007
    Location
    INDIA
    Posts
    64
    Hi Estrays,

    Can u tell me that how i can store my question which is currently displayed in a txt file using action script.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center