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,0942186183 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 parameter in the embed code. so.addParam('flashvars','xmlPath=xml/exampleData.xml'); And then you'll need a line like this in your Actionscript... private var xmlPath:string; xmlPath = root.loaderInfo.parameters.xmlPath; share|improve this answer answered Nov 3 '10 at 1:41 John 1,37462037 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign up using Facebook Sign up using Email and Password Post as a guest Name Email Post as a guest Name Email discard By posting your answer, you agree to
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 ClickTag throws error in Flash AS3 up vote 0 down vote favorite I'm having http://stackoverflow.com/questions/4082256/parameter-url-must-be-non-null a issue same exactly as this forum post explained AS3 Clicktag Error #1010 Instead I'm getting following error TypeError: Error #1010: A term is undefined and has no properties. at Untitled_fla::MainTimeline/onButtonClick() I tried the answered solution but unfortunately I'm still getting same error. Also I tried the following post answer Change Banner ClickTag Code to AS3? then when I clicked the banner I'm getting following error: TypeError: Error #2007: Parameter http://stackoverflow.com/questions/18769730/clicktag-throws-error-in-flash-as3 url must be non-null. at global/flash.net::navigateToURL() at Untitled_fla::MainTimeline/onClick() My code: stage_mc.addEventListener(MouseEvent.MOUSE_UP, onClick); // The onClick function, how open the new clickTag URL when called function onClick(e:MouseEvent):void { if (root.loaderInfo.parameters.clickTAG.substr(0,5) == "http:") { navigateToURL(new URLRequest(root.loaderInfo.parameters.clickTAG), "_blank"); } } actionscript-3 flash share|improve this question edited May 15 at 19:36 halfer 13k54075 asked Sep 12 '13 at 16:34 FR STAR 29811031 Are you sure this is related to the Standard Widget Toolkit (SWT)? If not, please replace the tag with the appropriate one. If it is, ignore my comment. –Baz Sep 12 '13 at 16:35 Could you please clarify more about (SWT)? because I'm add this code in Adobe Flash CS4. Is it ok? –FR STAR Sep 12 '13 at 16:53 Can you post your click handler code? –Cadin Sep 12 '13 at 17:41 Please see my edit –FR STAR Sep 12 '13 at 18:24 add a comment| 1 Answer 1 active oldest votes up vote 1 down vote function onClick(e:MouseEvent):void { if ( stage.loaderInfo.parameters.clickTAG ) { navigateToURL(new URLRequest( stage.loaderInfo.parameters.clickTAG ), "_blank"); } } share|improve this answer answered Sep 12 '13 at 19:23 Ribs 1,15421124 Thanks for this but when I add your code nothing is happening. However, I watched y
from Aymeric Tags: No tags yet. biscito Expert BirdJoined: May '12Posts: 229 biscito http://forum.starling-framework.org/topic/typeerror-error-2007-parameter-url-must-be-non-null Expert BirdJoined: May '12Posts: 229 hi i'm adding sound https://www.kongregate.com/forums/4-game-programming/topics/148619-as3-error-2007-parameter-child-must-be-non-null-solved to my game, here is my code public function Main() { super(); sound.addSound("blingCoin", "/../assets/sounds/Coin.mp3"); } and in my state : public function coinTouch(interactionCallback:InteractionCallback):void { _ce.sound.playSound("blingCoin"); but i get : TypeError: Error #2007: Parameter url must be error #2007 non-null. at flash.media::Sound/_load() at flash.media::Sound/load() is the problem from the URL "/../assets/sounds/Coin.mp3" ? Posted 3 years ago # biscito Expert BirdJoined: May '12Posts: 229 biscito Expert BirdJoined: May '12Posts: 229 update : Sound manager failed to load a sound: Error #2032: Stream Error. URL: app:/assets/sounds/Coin.mp3 Posted 3 years ago error #2007 parameter # biscito Expert BirdJoined: May '12Posts: 229 biscito Expert BirdJoined: May '12Posts: 229 yep, it was a url problem, i just add the file "sounds" to the sources path Posted 3 years ago # Aymeric Citrus MasterJoined: Oct '11Posts: 1,481 Aymeric Citrus MasterJoined: Oct '11Posts: 1,481 Yup, and you have the answer right in front of you maybe you didn't add the assets folder into your iOS project? Posted 3 years ago # biscito Expert BirdJoined: May '12Posts: 229 biscito Expert BirdJoined: May '12Posts: 229 it works fine now, the game is almost finish !! Posted 3 years ago # Aymeric Citrus MasterJoined: Oct '11Posts: 1,481 Aymeric Citrus MasterJoined: Oct '11Posts: 1,481 Awesome, I look forward to play with it Posted 3 years ago # RSS feed for this topic Reply You must log in to post. Gamua - Consistent Game Development across all Platforms
What should I do? We strongly urge all our users to upgrade to modern browsers for a better experience and improved security. We suggest you install the latest version of one of these browsers: Download Google Chrome Download Mozilla Firefox Download Microsoft Edge Download Apple Safari No Thanks … Kongregate p0 l0 f m s Settings Sign Out Sign in Register or Sign in: Username or email Password Remember me Forgot password? Games Categories Top Rated Action Multiplayer Hot New MMO Adventure & RPG My Favorites Strategy & Defense Shooter Upgrades Tower Defense Sports/Racing Zombie MMO More Categories Achievements Badges Recommended for Me Action Badges Rarest Badges Racing Badges Easiest Unearned Puzzle Badges Newest Badges All Badges Quests All Quests My Kong Trending with Friends Activity Feed g Register or sign in to start receiving activity updates from around Kongregate! Forums Kongregate Game Forums General Gaming Technical Support Game Programming All Forums Dev Upload Your Game Kongregate is a community-driven browser games portal with an open platform for all web games. Get your games in front of thousands of users while monetizing through ads and virtual goods. Learn more » Visit our developers site » Learn more about our publishing program - we help game developers get their games out to millions of users on multiple platforms. Read Our Blog » We publish new content weekly, on game/data analysis, case studies, engineering solutions, and design insights. Access Documentation » Get everything you need to know about how to implement our APIs and SDKs into your game. Cheap Oakley Deviation Glasses-Discount Oakley Oil Drum-660837-ss4298525see more results » {"url":"/search?q=Cheap+Oakley+Deviation+Glasses-Discount+Oakley+Oil+Drum-660837-ss4298525"} X Complete Initialization for 10 kreds 15% « Previous Next » Congratulations! You’ve completed your Kongregate