谁能帮我解释下我抄来的Flash代码的含义啊 急//the following 4 sections contain the data//for each menu item/* 0 */var image0title:String = "Summer salad";var image0desc:String = "Butter lettuce with apples,blood orange segments,gorgon
来源:学生作业帮助网 编辑:六六作业网 时间:2024/11/23 04:41:21
谁能帮我解释下我抄来的Flash代码的含义啊 急//the following 4 sections contain the data//for each menu item/* 0 */var image0title:String = "Summer salad";var image0desc:String = "Butter lettuce with apples,blood orange segments,gorgon
谁能帮我解释下我抄来的Flash代码的含义啊 急
//the following 4 sections contain the data
//for each menu item
/* 0 */
var image0title:String = "Summer salad";
var image0desc:String = "Butter lettuce with apples,blood orange segments,gorgonzola,and raspberry vinaigrette.";
var image0uri:String = "images/image0.jpg";
/* 1 */
var image1title:String = "Chinese Noodle Salad";
var image1desc:String = "Rice noodles with garlic sauce,shitake mushrooms,scallions,and bok choy.";
var image1uri:String = "images/image1.jpg";
/* 2 */
var image2title:String = "Seared Salmon";
var image2desc:String = "Filet of wild salmon with caramelized onions,new potatoes,and caper and tomato salsa.";
var image2uri:String = "images/image2.jpg";
/* 3 */
var image3title:String = "New York Cheesecake";
var image3desc:String = "Creamy traditional cheesecake served with chocolate sauce and strawberries.";
var image3uri:String = "images/image3.jpg";
var currImage:Number = 0;
var totalImages:Number = 4;
menu_mc.title_txt.text = this["image"+currImage+"title"];
menu_mc.description_txt.text = this["image"+currImage+"desc"];
for (var i:Number = 0; i=totalImages) {
currImage = 0;
} else {
currImage++;
}
menu_mc.title_txt.text = this._parent["image"+currImage+"title"];
menu_mc.description_txt.text = this._parent["image"+currImage+"desc"];
}
// add the event listener for the Next button
next_btn.addEventListener("click",nextMenuItem);
谁能帮我解释下我抄来的Flash代码的含义啊 急//the following 4 sections contain the data//for each menu item/* 0 */var image0title:String = "Summer salad";var image0desc:String = "Butter lettuce with apples,blood orange segments,gorgon
这是一个图片轮滑的显示代码:包括的图片的地址mage url ,图片的显示标题TITLE.STRING,
图片一共轮换4张图