猪八戒APP
flash as2.0源码修改
曲靖
网站定制开发
需求标题
flash as2.0源码修改
需求描述
我有一个flash as2.0源码,计划是根据登陆用户名(英文)来读取不同的 xml 配置 ,以引导不同的背景显示。但是用户登陆后,用户名变量也可以读取,但就是无法用这个用户名变量来加载xml文件。请高手解答。可以50-100元***请教。(支付宝)程序:php+flash+mysql图层Parameters桢3//Here is where we load all the XML info into the global variablesmyxml=new XML()myxml.ignoreWhite = true;myxml.onLoad=parsevar xml_address = "/Users/" + _global.username + "/1.xml" ;myxml.load(xml_address)_global.username这个变量来源于图层Login&Register 的MC Login_register_box 里的图层Actions第15桢as// Stop timelinestop();// Status text has to be empty on startstatus_txt.text = "";// Flash will automaticly set size of the text in status text field.status_txt.autoSize = true;//Variables to handle PHPvar dataOutoadVars = new LoadVars();var dataInoadVars = new LoadVars();//Run this function when Flash receives something back from PHPdataIn.onLoad = function() {// Login button is enabled(you can click on it)button.enabled = true;var responsetext = this.msgText;var user = this.userName;var email = this.email;var Posts = this.posts;var User_level = this.user_level;status_txt.text = responsetext;//If the username and password matches do the followingif (responsetext == "Entrance Granted!") { _global.logged = true; _global.UserLevel = User_level; _global.User_Posts = Posts;_global.username = user; _global.emailadd = email; _root.forum.main.sThread.gotoAndStop(1); gotoAndPlay(31);演示地址为:[url=http://***.tofong.cn/index.htmvar]http://***.tofong.cn/index.htmvar[/url] xml_address = "/Users/" + _global.username + "/1.xml" ;myxml.load(xml_address) 如果在主时间轴第三桢上插入一个动态文本 ,变量为_global.username,是能正常读到用户名,并且能显示出来的,如欢迎光临的MC里,就能正确读出这个变量并且显示的。如果把变量直接换成字符串,就能正确引导。怪了如换成"/Users/11111/1.xml"
预算金额
¥100元
允许参与人才数量
--
人才所在地
--
人才类型
--
工作反馈要求
无要求
期望完成日期
--
开票类型要求
无要求
类似需求