|
|||
|
IN YOUR SOURCE FILE FOLDER YOU WILL FIND pictureClics.as, OPEN IT,
AND YOU WILL SEE THAT FUNCTION: //function called by onPress event and return "name" variables from xml (if action is other that "_blank") function pictureClick(par) { //example 1 using gotoandStop //in xml:<picture thumb="test-images/aaa.jpg" description="description" name="1" param="action"></picture> //in xml:<picture thumb="test-images/bbb.jpg" description="description" name="2" param="action"></picture> //par is the name value from xml name=1,name=2 and so on yourMc.gotoAndStop(par); //par=1,2 //example 2 loading a swf //in xml:<picture thumb="test-images/aaa.jpg" description="description" name="swfFolder/tes1.swf" param="action"></picture> //in xml:<picture thumb="test-images/bbb.jpg" description="description" name="swfFolder/tes2.swf" param="action"></picture> //par is the name value from xml name="swfFolder/tes1.swf",name="swfFolder/tes2.swf" yourMc.loadMovie(par); } ALSO OPEN YOU SOURCE FILE(PREVIEW.FLA) OR WHATEVER THE NAME IS: -SAVE pictureClick.as -SAVE preview.fla AND COMPILE IT. |