Dear All
Thank you all for your time
I have a movie that sets up a warning display system for an aircraft training simulator.
at the present i use HTML text to call an array number to show or hide a particular warning .
I have been asked to change the design so that the warning first shows in reverse video with a box around it and then after a second or so goes to its nomal colour.
the text also updates its place so there are no gaps between entries.
this is the code
var warnings = new Array("<font color=’#FF0000’>1-2 DC GEN OFF<font>", “<font color=’#FF0000’>MAIN BATT HOT<font>”, “<font color=’#FF0000’>AUX BATT HOT<font>”, “<font color=’#FFFF00’>1 DC GEN<font>”, “<font color=’#FFFF00’>2 DC GEN<font>”, “<font color=’#FFFF00’>1 DC GEN HOT<font>”, “<font color=’#FFFF00’>2 DC GEN HOT<font>”, “<font color=’#FFFF00’>MAIN BATT OFF<font>”, “<font color=’#FFFF00’>AUX BATT OFF<font>”, “<font color=’#FFFF00’>BATT OFF LINE<font>”, “<font color=’#FFFF00’>EXT PWR DOOR<font>”, “<font color=’#FFFF00’>DC BUS FAIL<font>”, “<font color=’#FFFF00’>BUS TIE OPEN<font>”, “<font color=’#00FF00’>EXTPWR READY<font>”, “<font color=’#00FF00’>EXTPWR ON<font>”, “<font color=’#FFFFFFF’>END<font><p>”);
var warningState = new Array(“on”, “on”, “on”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “off”, “on”);
function updateWarnings() {
//trace(“updateWarnings()”);
// clear text
this.warnings_text.html = true;
this.warnings_text.htmlText = “”;
// loop through array and show warnings that are on
for (var i = 0; i<warnings.length; i++) {
if (warningState* == “on”) {
this.warnings_text.htmlText += warnings*+"
";
//trace(warningState);
}
}
}
updateWarnings();
Is there a way of achieving this same function using a movie clip linkage id to get the reverse video effect,then run the reverse video effect when array element is selected?
so call the array element
warningstate [1] = “on”
then make movie play and be seated below the other warning as the text array does. Then when you remove a warning it moves up to fill the space left .
please see attached zip file for fla
Thank you all
Peter