As3 Error #2007 Parameter Url Must Be Non-null
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Parameter url must be non-null up vote 0 down vote favorite i am getting the Parameter url must be non-null error while trying to pass the path of an XML file to an Shockwave flash object. The javascript code is as follows As you can see the XML file i am trying to load within the SWF file is the exampleData.xml Within the ActionScript i declared the variable xmlPath as follows... public var xmlPath:String and in the load event i made the appropriate changes private function loadComp(data:String):void { xmlModel.xml = new XML(data); new LoadXml(xmlPath, picHandler); } And here comes the question. What am i doing wrong here? Why do i get the Parameter url must be non-null error? P.S. If i hard-code the path, within the actionscript file, everything works great! private function loadComp(data:String):void { xmlModel.xml = new XML(data); new LoadXml('xml/exampleData', picHandler); } flash actionscript flashvars adobe-flash-cs3 share|improve this question asked Nov 2 '10 at 21:28 OrElse 2,0842186183 add a comment| 1 Answer 1 active oldest votes up vote 3 down vote accepted I usually do this kind of thing with a flashvar par
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community http://stackoverflow.com/questions/4082256/parameter-url-must-be-non-null Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up TypeError: Error #2007: Parameter text must be non-null up vote 0 down vote favorite 1 I new with flash and I really don't know what is the http://stackoverflow.com/questions/11389313/typeerror-error-2007-parameter-text-must-be-non-null reason I get this error: TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set text() at sgmap_fla::MainTimeline/mapOver() my actionscript: description.countryName_txt.text = ""; description.zone_txt.text = ""; map_mc.buttonMode=true; map_mc.addEventListener(MouseEvent.MOUSE_OVER, mapOver); map_mc.addEventListener(MouseEvent.MOUSE_OUT, mapOut); map_mc.northZone.countryName = "Singapore"; map_mc.northZone.zone = "North Zone"; map_mc.centralZone.countryName = "Singapore"; map_mc.centralZone.zone = "Central Zone"; map_mc.eastZone.countryName = "Singapore"; map_mc.eastZone.zone = "East Zone"; map_mc.westZone.countryName = "Singapore"; map_mc.westZone.zone = "West Zone"; map_mc.southZone.countryName = "Singapore"; map_mc.southZone.zone = "South Zone"; function mapOver(e:MouseEvent):void{ var mapItem:MovieClip = e.target as MovieClip; description.countryName_txt.text = mapItem.countryName; description.zone_txt.text = mapItem.zone; description.gotoAndStop(mapItem.name); TweenMax.to(mapItem, .5, {tint:0xFF9900}); TweenMax.fromTo(description, .5, {alpha:0, x:50, blurFilter:{blurX:80}}, {alpha:1, x:10, blurFilter:{blurX:0}}); } function mapOut(e:MouseEvent):void{ var mapItem:MovieClip = e.target as MovieClip; TweenMax.to(mapItem, .5, {tint:0x990000}); } actionscript share|improve this question asked Jul 9 '12 at 5:01 kokloong 1515 2 Text fields text cannot be set to null. This could be confirmed by tracing mapItem properties of countryName and zone before setting your textfields: trace(mapItem.countryName); trace(mapItem.zone); From your mapOver event handler, mapI
Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job https://www.experts-exchange.com/questions/26397301/TypeError-Error-2007-Parameter-url-must-be-non-null.html Ways to Get Help Ask a Question Ask https://www.kirupa.com/forum/showthread.php?320675-Clicktag-in-AS3-what-am-I-doing-wrong for Help Receive Real-Time Help Create a Freelance Project Hire for a Full Time Job Ways to Get Help Expand Search Submit Close Search Login Join Today Products BackProducts Gigs Live Careers Vendor Services Groups as3 error Website Testing Store Headlines Experts Exchange > Questions > TypeError: Error #2007: Parameter url must be non-null. Want to Advertise Here? Solved TypeError: Error #2007: Parameter url must be non-null. Posted on 2010-08-12 Adobe Flash 2 Verified Solutions 4 Comments 1,160 Views Last Modified: as3 error #2007 2013-11-11 I'm brand new to AS3 and my 1st project is an MP3 player which loads a single mp3 file from a dynamically generated XML file. Please could someone tell me why I keep getting the following error message: TypeError: Error #2007: Parameter url must be non-null. at flash.media::Sound/_load() at flash.media::Sound/load() at xplayer1_fla::MainTimeline/frame1() Here is my code followed by the debugger output, thanks in advance var fileName; // LOAD XML FILE var xmlLoader:URLLoader = new URLLoader(); var xmlData:XML = new XML(); xmlLoader.addEventListener(Event.COMPLETE, LoadXML); var xmlFile:String = "playFile.xml"; trace('creating the URLRequest object..'); var myUrlRequest:URLRequest = new URLRequest(xmlFile); trace('calling the load method..'); xmlLoader.load(myUrlRequest); function LoadXML(e:Event):void { trace('loadXML function called'); xmlData = new XML(e.target.data); trace(xmlData); fileName = xmlData.sourceFile; trace('filename to load = ' + fileName); using your existing account on the new forums, check out this thread. Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 Clicktag in AS3 - what am I doing wrong? Results 1 to 2 of 2 Thread: Clicktag in AS3 - what am I doing wrong? Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode February 24th, 2009,11:20 AM #1 IanCremona View Profile View Forum Posts 114 posts Registered User Clicktag in AS3 - what am I doing wrong? Code: var request:URLRequest=new URLRequest(root.loaderInfo.parameters.clickTag); button.addEventListener(MouseEvent.MOUSE_UP, tracker); function tracker(event:MouseEvent):void { navigateToURL(request, "_blank"); } Html code is: Code: