14. Sa se deruleze ciclic 3 secvente video , secventele de vizulaizat sa se aleaga dintr-un combobox. In prealabil secvente editate ca sa se puna pe toate o acceasi sigla. MTB creare combo-uri cu numele "rez","den",nrc" in scriptul paginii: -------------------- to handle enterPage set dropDownItems of comboBox "rez" to "1024 x 768" put CRLF & "800 x 600" after dropDownItems of comboBox "rez" put CRLF & "640 x 480" after dropDownItems of comboBox "rez" set selectedItem of comboBox "rez" to 1 set dropDownItems of comboBox "nrc" to "8 bit" put CRLF & "24 bit" after dropDownItems of comboBox "nrc" set selectedItem of comboBox "nrc" to 1 set dropDownItems of comboBox "den" to "Matrix" put CRLF & "Dark City" after dropDownItems of comboBox "den" put CRLF & "Star Wars" after dropDownItems of comboBox "den" set selectedItem of comboBox "den" to 1 end - creare buton cu caption "Play" si o scena cu numele "scena" - importare clipuri in scriptul butonului: -------------------------- to handle buttonClick nc = "zero" trez = text of comboBox "rez" tnrc = text of comboBox "nrc" tden = text of comboBox "den" conditions when tden is "Matrix" conditions when tnrc is "8 bit" conditions when trez is "1024 x 768" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_8_1024" in stage "scena" nc="Matrix_8_1024" when trez is "800 x 600" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_8_800" in stage "scena" nc="Matrix_8_800" when trez is "640 x 480" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_8_640" in stage "scena" nc="Matrix_8_640" end when tnrc is "24 bit" conditions when trez is "1024 x 768" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_24_1024" in stage "scena" nc="Matrix_24_1024" when trez is "800 x 600" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_24_800" in stage "scena" nc="Matrix_24_800" when trez is "640 x 480" if (nc is not "zero") mmClose clip nc end mmPlay clip "Matrix_24_640" in stage "scena" nc="Matrix_24_640" end end when tden is "DarkCity" --la fel when tden is "StarWars" --la fel end end --------------------------------- daca se vrea ca la selectare ceva din combo sa se ruleze automat ceva in scena, atunci in scriptul fiecarui combo se scrie acelasi script de mai sus, dar nu in "to handle buttonclick", ci in: to handle selectChange ... end