Hi people
I need help desperately
—Description of my project----
You see, I am doing a dynamic gallery and I am able to get it working already
The purpose of my dynamic gallery is to display it across 4 LCD Tv panels and the 4 LCD panels are controlled by one PC
So I will have to open the same .swf 4 times for them to be displayed.
The gallery .swf are the same but it is just that I have varying .xml files for each so the images displayed are different
As my dynamic gallery is a slideshow, the swf will fade to the next image every 5 secs
----My problem---------
As I have to open all 4 .swf files to display across 4 different LCD panels at the same time,
I want to modify my dynamic gallery in such a way that all 4 .swf files will start playing together
so that all 4 dynamic gallery (on each lcd panel) will fade in and out at the same time
rather than having the gallery on lcd 1 do the transition (after 5 secs) first, then lcd 2 then lcd 3 followed by lcd 4,
I hope all 4 of them will start playing at the exact same time rather than me attempting to quickly open all .swf files at the same time
Even if i succeeded in opening all 4 .swf files all at the same time, there is a a split second lag between the transitions for each image in my gallery
what i want to try to do is to implement some kind of timer function that will check against the systems time and let the .swf file start playing not by the amount of seconds lapsed but
to start playing at the next available 10th second.
For example:
if my A.swf was opened at 11:30:07,
i want to set it in such a way that it will only start at 11:30:10
this allowance is to allow me 3 secs to open the other 3.swf files so that all 4 .swf files will start at 11:30:10
Thus all 4 .swf will start running at the exact second so the time-controlled transition will be consistent throughout instead of sequential
I am an idiot at programming, and the below is my codes
Dont think it works but will appreciate someone who can help me do some modifications to cater for my above-mentioned reuqirements
Thanks in advance!
var my_date:Date = new Date();
var secs = my_date.getSeconds();
started = false;
while (started=false) {
if (secs == 0) {
started == true;
} else if (secs == 10) {
started == true;
} else if (secs == 20) {
started == true;
} else if (secs == 30) {
started == true;
} else if (secs == 40) {
started == true;
} else if (secs == 50) {
started == true;
}
}
if (started == true) {
gotoAndPlay(“beginning”); //the beginning frame is the next frame whereby my codes for the dynamic gallery resides
}