补间动画的问题

我写这些作品的代码,但补间动画不能正常工作。 你能帮助我吗?

function loadXML(event:Event):void{ sliderXML=XML(sliderXMLloader.data); var xmlDoc:XMLDocument = new XMLDocument(); xmlDoc.ignoreWhite = true; var menuXML:XML = XML(sliderXMLloader.data); xmlDoc.parseXML(menuXML.toXMLString()); //var X:int = 100; for each(var listItem:XML in sliderXML..listItem){ strTitle[sliderMaxNum] = listItem.itemTitle.toString(); strPosterLink[sliderMaxNum] = listItem.posterLink.toString(); strVideoLink[sliderMaxNum] = listItem.videoLink.toString(); var _temp:Loader = new Loader(); poster.splice(sliderMaxNum, 0, _temp); poster[sliderMaxNum].load(new URLRequest(strPosterLink[sliderMaxNum])); var posterClip:MovieClip = new MovieClip(); //load the movieclip posterClip.addChild(poster[sliderMaxNum]); //convert poster[sliderMaxNum] to movieClip addChild(poster[sliderMaxNum]); poster[sliderMaxNum].x = slider_bg.width; poster[sliderMaxNum].y = 28; poster[sliderMaxNum].addEventListener(MouseEvent.CLICK, poster_click(sliderMaxNum)); sliderMaxNum ++; } LastSliderNum = sliderMaxNum - 1; //************************************************* var myTween:Tween = new Tween(poster[0], "x", Strong.easeOut, 500, 100, 5, true); myTween.start(); //************************************************* }

--------------解决方案-------------

我测试XML幻灯片,但吐温没有工作在闪光灯窗口,但是,它的工作原理浏览器窗口,十分感谢回复

分类:XML 时间:2015-03-15 人气:3
分享到:

相关文章

Copyright (C) 55228885.com, All Rights Reserved.

55228885 版权所有 京ICP备15002868号

processed in 1.069 (s). 10 q(s)