Error #2007
Contents |
using your existing account on the new forums, check out this thread. Register Help Remember Me? Forum Today's Posts
Error #2007 Parameter Listener Must Be Non-null
FAQ Calendar Forum Actions Mark Forums Read Quick Links View Forum error #2007 parameter child must be non-null Leaders What's New? Advanced Search Forum Flash ActionScript 3 [Flash] Error #2007: Parameter text must be error #2007 parameter text must be non-null non-null. Results 1 to 3 of 3 Thread: Error #2007: Parameter text must be non-null. Thread Tools Show Printable Version Subscribe to this Thread… Search Thread Advanced
Error #2007 Parameter Hittestobject Must Be Non-null
Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode May 8th, 2011,05:43 AM #1 alexsandro_134 View Profile View Forum Posts 2 posts Registered User Error #2007: Parameter text must be non-null. Hi there, My .swf file show the following error TypeError: Error #2007: Parameter text must be non-null. at flash.text::TextField/set text() at Xml/xmlDone()[C:\Users\TaiLT01319\Desktop\xml\Xml.as:62] at
Error #2007 As3
Xml/onStopWatch()[C:\Users\TaiLT01319\Desktop\xml\Xml.as:74] at flash.utils::Timer/_timerDispatch() at flash.utils::Timer/tick() And this here is as3 code: Code: package { import flash.display.*; import flash.events.*; import flash.net.URLRequest; import flash.net.URLLoader; import flash.xml.XMLDocument; import fl.transitions.Tween; import fl.transitions.easing.*; import flash.utils.Timer; public class Xml extends MovieClip { private var myXML:XML = new XML(); private var XML_URL:String = "flash_game.xml"; private var mangThuTu:Array = new Array(); private var mangChu:Array = new Array(); private var myXMLURL:URLRequest = new URLRequest(XML_URL); private var myLoader:URLLoader = new URLLoader(myXMLURL); private var _timer:Timer; private var timeAuto = 5000; public function Xml() { // constructor code myLoader.addEventListener("complete", xmlLoaded); } private var khungChu:Array = new Array(); private var myTween:Array = new Array(); public function xmlLoaded(event:Event) { myXML = XML(myLoader.data); var xmlDoc:XMLDocument = new XMLDocument(); xmlDoc.ignoreWhite = true; var menuXML:XML = XML(myLoader.data); xmlDoc.parseXML(menuXML.toXMLString()); for each (var Data:XML in myXML..Data) { var ID:String = Data.ID.toString(); var Alphabet:String = Data.Alphabet.toString(); mangThuTu.push(ID); mangChu.push(Alphabet); } xmlDone(); } public function xmlDone() { for (var i = 0; i<4 ; i++) { var chuDuocChon:String = mangChu[Math.floor(Math.random()*mangChu.length)]; mangChu.splice(mangChu.indexOf(chuDuocChon,1),1); khungChu[i] = new chu(); addChild(khungChu[i]); //khungChu[i].x = 50*i; khungChu[
here for a quick overview of the site Help Center Detailed answers to any questions you might error 2007 vba have Meta Discuss the workings and policies of this site About
Error 2007 Flash
Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads error 2007 excel 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, https://www.kirupa.com/forum/showthread.php?364680-Error-2007-Parameter-text-must-be-non-null 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 reason I get this error: TypeError: Error #2007: Parameter text must be non-null. http://stackoverflow.com/questions/11389313/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, mapItem is seemingly not a zone containing those properties. –Jason Sturges Jul 9 '12 at 5:57 Hi Jason, it doesn't seems working although I changed fro
here for a quick overview of http://stackoverflow.com/questions/16962298/flash-cs6-as3-error-2007-parameter-child-must-be-non-null 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 error #2007 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 Flash cs6 AS3 Error #2007: error #2007 parameter Parameter child must be non-null up vote 0 down vote favorite I just implemented that last piece of code you sent over - many thanks!! This is the FULL context of this frame, the complete code with the other buttons as well, in case that is causing the problem. The 19 errors I get with this piece of code is: 1120: Access of undefined property fl_ProLoader_01 stop(); //home button mythbutt_home.addEventListener(MouseEvent.CLICK, fl_ClickToLoadUnloadSWF_01_1,false,0,true); function fl_ClickToLoadUnloadSWF_01_1(event:MouseEvent):void { removeChild(fl_ProLoader_01); fl_ProLoader_01.unloadAndStop(); fl_ProLoader_01 = null; } mythbutt_home.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_01_1,false,0,true); function fl_ClickToGoToAndStopAtFrame_01_1(event:MouseEvent):void { removeChild(fl_ProLoader_01); } mythbutt_home.addEventListener(MouseEvent.CLICK, fl_ClickToStopAllSounds_01_1,false,0,true); function fl_ClickToStopAllSounds_01_1(event:MouseEvent):void { SoundMixer.stopAll(); } mythbutt_home.addEventListener(MouseEvent.CLICK, fl_ClickToGoToAndStopAtFrame_01_2,false,0,true); function fl_ClickToGoToAndStopAtFrame_01_2(event:MouseEvent):void { gotoAndStop(1); } //other buttons at the bottom mythbutt_aboriginal_culture.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_01_1); function fl_ClickToGoToWebPage_01_1(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.bigmyth.com/fullversion/password033/download/ABORIGINAL_CULTURE.pdf"), "_blank"); } mythbutt_aboriginal_pantheon.addEventListener(MouseEvent.CLICK, fl_ClickToGoToWebPage_01_2); function fl_ClickToGoToWebPage_01_2(event:MouseEvent):void { navigateToURL(new URLRequest("http://www.bigmyth.com/fullversion/password033/download/ABORIGINAL_PANTHEON.pdf"), "_blank"); } mythbutt_aboriginal_exercises.addEventListener( MouseEvent.CLICK, fl_ClickToGoToWebPage_01_3); function fl_ClickToGoToWebPage_01_3(event:MouseEvent):