来源:蜘蛛抓取(WebSpider)
时间:2012-03-14 13:08
标签:
flash调用外部图片
如何通过html页面中的按钮来控制网页中的flash,使其读取不同xml文件中的所存储的图片路径
[问题点数:20分]
如何通过html页面中的按钮来控制网页中的flash,使其读取不同xml文件中的所存储的图片路径
[问题点数:20分]
不显示删除回复
显示所有回复
显示星级回复
显示得分回复
只显示楼主
2013年8月 Web 开发大版内专家分月排行榜第一2010年2月 Web 开发大版内专家分月排行榜第一
2013年7月 Web 开发大版内专家分月排行榜第二2013年6月 Web 开发大版内专家分月排行榜第二
2016年2月 总版技术专家分月排行榜第二2014年2月 总版技术专家分月排行榜第二2013年4月 总版技术专家分月排行榜第二
优秀小版主2015年7月优秀小版主2015年9月优秀小版主2015年5月优秀小版主2014年11月论坛优秀版主
2013年10月 Web 开发大版内专家分月排行榜第三
本帖子已过去太久远了,不再提供回复功能。(window.slotbydup=window.slotbydup || []).push({
id: '2081942',
container: s,
size: '1000,60',
display: 'inlay-fix'网页中,同一个flash调用不同的外部xml文件,应该怎么做?_百度知道
网页中,同一个flash调用不同的外部xml文件,应该怎么做?
menuA = new Array()?我是菜鸟一只.load(".ignoreWhite =ERROR loading xml",因为这个flash要在多处应用.firstChild.attributes.
buildMenu();wotoon_data.importXML;), i.xml的文件.image].xml".nextSibling) {
menuA[menuA.length] = [i.importXML!= null,对代码一窍不懂~ 您能帮我写好吗;
for (var i = root.); } else {
trace(",网页中和flash中都应该怎么写;现在只能调用这个wotoon_ }}.onLoad = function(success) { if (success) {
var root = this,要调用不同的xml文件.firstChild.importXMLthis.importXML = new XML()
而且每个页面都有不一样的xml,或者带路途;pie?id=pie.swf.xml通过前台的swf后面问号的值来找xml,但是许多页面都会公用这个swf文件;flash/.load(".xml&pie,让前台代码调用我有xml文件.),直接调用这个代码就能用了doc?id=web/,flash
提问者采纳
trace(",所以每个类实例的创建都得用代码实现;
buildMenu().ignoreWhite = true.length] = [i;
menuA = new Array(); i 。我给你写一个从myXML1一直到myXML3的代码来分别调用data1.onLoad = function(success) { if (success) {
var root =data3; height=&this,你只需要把这些内容显示出来即可;);现在;); i=i.
menuA = new Array(); }}.firstChild.xml文件内容.xml一直到data2.attributes.myXML3;this.nextSibling) {
menuA[menuA;embed src=&
for (var i =640",myXML1;/.myXML2;480".load(". i=i。 }}.length] = [i.myXML3;data2; } else {
trace(".name.length] = [i;); i=i.name.xml".myXML2!= null.nextSibling) {
menuA[menuA; width=".myXML3 = new XML().myXML1,所以如果想调用多个外部的xml文件就得多写几个代码,当网页中显示这个Flash时就会运行这些代码了.myXML2 = new XML()。 把这些代码放在Flash时间轴的第一帧;data1;embed&>.xml".attributes。因为类不支持类似数组的功能.load(",至于更多原理是一样的因为importXML是一个XML类的实例、data2!=this.myXML1!= null.image];ERROR loading xml&
buildMenu().ignoreWhite = true.myXML2.xml.this.firstChild.xml"、myXML3里分别载入了data1; }};
menuA = new Array().firstChild、myXML2.myXML3;this.onLoad = function(success) { if (success) {
var root = this,).image];ERROR loading xml", i.firstChild.load(".myXML1;<.attributes.firstChild。网页里插入Flash最简单的办法是<.image].ERROR loading xml&
for (var i =).firstChild.ignoreWhite = true.swf& i ,
for (var i = root.nextSibling) {
menuA[menuA.);
buildMenu();this.onLoad = function(success) { if (success) {
var root = } else {
trace(".xml和data3.myXML1 = new XML()
提问者评价
其实特别简单的事儿。。。。。。唉,自己想复杂了~把分儿给您吧。
其他类似问题
为您推荐:
xml文件的相关知识
其他2条回答
建立多个XML对象.分别写相应的处理函数以处理.
能不能把你的xml文件发我看下,
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁