-
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;
};
-
-
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.
-
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?
-
Yes,
I want to display only one same question after 24 hours not related to user's system's clock.
-
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 .
-
-
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.
-
then what should i do can we get server time in flash?
-
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.
-
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|