2023年6月21日发(作者:)
package {
import eld;
import ;
import .*;
import y.*;
import .*;
import .*
import .*
public class xmlxiangte extends MovieClip {
ePage=true;
var fadeTween:Tween;
var imageLoader:Loader;
var tupian:Loader;
var tmpMC;
var xml:XML;
var xmlList:XMLList;
var x_middle = 400;
var y_middle = 300;
var bArray:Array=[];
var smshuzu:Array=[];
var imageText:TextField = new TextField();
public function xmlxiangte() {
var xmlLoader:URLLoader = new URLLoader();
var xmlrequest:URLRequest = new URLRequest("photos/");
(xmlrequest);
ntListener(TE, xmlLoaded);
}
public function xmlLoaded(event:Event):void {
xml = XML();
xmlList = en();
for (var i:int = 0; i < (); i++) {
tmpMC= new pic();
tmpMC.x=10+i*100;
tmpMC.y=470;
addChild(tmpMC);
(tmpMC);
//trace( (8,2))
tupian=new Loader();
(new URLRequest([i].@thumbnail));
1_2_ld(tupian);
imageLoader = new Loader();
(new URLRequest([i].@thumbnail));
=[i].@description;
(); ="filename"+i;
// = xmlList[i].attribute("filename");
1_1_ld(imageLoader);
ntListener(, showPicture);
ntListener(_OVER,yrhs);
ntListener(_OUT,ychs);
1_1_ntListener(_FRAME ,ydhs);
}
imageLoader = new Loader();
(new URLRequest(xmlList[0].attribute("filename")));
shuomin_n_=smshuzu[0]
imageLoader.x = 200;
imageLoader.y = 100;
addChild(imageLoader);
}
public function yrhs(event:MouseEvent) {
=0.5;
}
public function ychs(event:MouseEvent) {
=1;
}
public function showPicture(event:MouseEvent):void {
var b= (8,2)
trace(b)
shuomin_n_=smshuzu[b];
/*for (var b:int = 0; b< (); b++) {
if (xmlList[b].attribute("filename") == ) {
}
}*/
removeChild(imageLoader);
imageLoader = new Loader();
(new URLRequest( xmlList[b].attribute("filename")));
imageLoader.y = 25;
addChild(imageLoader);
fadeTween = new
Tween(imageLoader,"alpha",t,0,16,16,true);
ntListener(TE,
weizhi);
}
public function weizhi(e) {
imageLoader.x=800//2;
imageLoader.y=490//2;
//trace()
}
public function ydhs(e) {
}
}
}
setChildIndex(shuomin_mc,ldren-1)
if ( mouseY > tmpMC.y - 30 && mouseY < tmpMC.y + ) {
if ( mouseX > x_middle ) {
if ( tmpMC.x> tn_ - + tn_area.x ) {
for (var i:String in bArray) {
bArray[i].x-=1;
}
}//endfor;
} else {
if ( bArray[0].x<0) {
for (var a:String in bArray) {
bArray[a].x+=1;
}
}//endif;
}
}
if ( mouseY < y_middle ) {
var xydspeed=shuomin_mc.y/12;
shuomin_mc.y-=xydspeed;
} else {
var sydspeed=(shuomin_mc.y+shuomin_)/12;
shuomin_mc.y-=sydspeed;
}
2023年6月21日发(作者:)
package {
import eld;
import ;
import .*;
import y.*;
import .*;
import .*
import .*
public class xmlxiangte extends MovieClip {
ePage=true;
var fadeTween:Tween;
var imageLoader:Loader;
var tupian:Loader;
var tmpMC;
var xml:XML;
var xmlList:XMLList;
var x_middle = 400;
var y_middle = 300;
var bArray:Array=[];
var smshuzu:Array=[];
var imageText:TextField = new TextField();
public function xmlxiangte() {
var xmlLoader:URLLoader = new URLLoader();
var xmlrequest:URLRequest = new URLRequest("photos/");
(xmlrequest);
ntListener(TE, xmlLoaded);
}
public function xmlLoaded(event:Event):void {
xml = XML();
xmlList = en();
for (var i:int = 0; i < (); i++) {
tmpMC= new pic();
tmpMC.x=10+i*100;
tmpMC.y=470;
addChild(tmpMC);
(tmpMC);
//trace( (8,2))
tupian=new Loader();
(new URLRequest([i].@thumbnail));
1_2_ld(tupian);
imageLoader = new Loader();
(new URLRequest([i].@thumbnail));
=[i].@description;
(); ="filename"+i;
// = xmlList[i].attribute("filename");
1_1_ld(imageLoader);
ntListener(, showPicture);
ntListener(_OVER,yrhs);
ntListener(_OUT,ychs);
1_1_ntListener(_FRAME ,ydhs);
}
imageLoader = new Loader();
(new URLRequest(xmlList[0].attribute("filename")));
shuomin_n_=smshuzu[0]
imageLoader.x = 200;
imageLoader.y = 100;
addChild(imageLoader);
}
public function yrhs(event:MouseEvent) {
=0.5;
}
public function ychs(event:MouseEvent) {
=1;
}
public function showPicture(event:MouseEvent):void {
var b= (8,2)
trace(b)
shuomin_n_=smshuzu[b];
/*for (var b:int = 0; b< (); b++) {
if (xmlList[b].attribute("filename") == ) {
}
}*/
removeChild(imageLoader);
imageLoader = new Loader();
(new URLRequest( xmlList[b].attribute("filename")));
imageLoader.y = 25;
addChild(imageLoader);
fadeTween = new
Tween(imageLoader,"alpha",t,0,16,16,true);
ntListener(TE,
weizhi);
}
public function weizhi(e) {
imageLoader.x=800//2;
imageLoader.y=490//2;
//trace()
}
public function ydhs(e) {
}
}
}
setChildIndex(shuomin_mc,ldren-1)
if ( mouseY > tmpMC.y - 30 && mouseY < tmpMC.y + ) {
if ( mouseX > x_middle ) {
if ( tmpMC.x> tn_ - + tn_area.x ) {
for (var i:String in bArray) {
bArray[i].x-=1;
}
}//endfor;
} else {
if ( bArray[0].x<0) {
for (var a:String in bArray) {
bArray[a].x+=1;
}
}//endif;
}
}
if ( mouseY < y_middle ) {
var xydspeed=shuomin_mc.y/12;
shuomin_mc.y-=xydspeed;
} else {
var sydspeed=(shuomin_mc.y+shuomin_)/12;
shuomin_mc.y-=sydspeed;
}
发布评论