2007 Error Flash
using your existing account on the new forums, check out this thread. parameter text must be non null as3 Register Help Remember Me? Forum Today's Posts FAQ Calendar Forum error 2007 vba Actions Mark Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 [Flash] Error #2007: Parameter text must be 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 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 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) { v
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 https://www.kirupa.com/forum/showthread.php?364680-Error-2007-Parameter-text-must-be-non-null them; it only takes a minute: Sign up TypeError: Error #2007: Parameter child must be non-null. at flash.display::DisplayObjectContainer/addChild() up vote 0 down vote favorite Created a button, now tried to add it to the screen and im getting this error. The code for the button is - private function submitButton():void { submit_button=new SimpleButton(); submit_button.x=200; submit_button.y=200; submit_button.upState=buttonShape(); submit_button.overState=buttonShape(); submit_button.downState=buttonShape(); } http://stackoverflow.com/questions/5533019/typeerror-error-2007-parameter-child-must-be-non-null-at-flash-displaydisp private function buttonShape() { var rectangle:Shape = new Shape; // initializing the variable named rectangle rectangle.graphics.beginFill(0x8C2B44); // choosing the colour for the fill, here it is red rectangle.graphics.drawRect(200, 200, 300,20); // (x spacing, y spacing, width, height) rectangle.graphics.endFill(); } I've declared it as a public var and I'm using addChild(submit_button); edit - all the code is in one class file. i set the submit button at the start, - private var submit_button:SimpleButton; i have a function private function submitButton():void { submit_button=new SimpleButton(); submit_button.x=200; submit_button.y=200; submit_button.upState=buttonShape(); submit_button.overState=buttonShape(); submit_button.downState=buttonShape(); } and the drawing function seen above. and i add it to the stage in another function - private function gameOver():void { addChild(submit_button); addChild(gameOver1); basically this function is called on a hit test. and i have a text box that appears (this works) but when i add the button i get the error flash actionscript-3 button hyperlink addchild share|improve this question edited Apr 3 '11 at 23:51 asked Apr 3 '11 at 22:41 DIM3NSION 4643925 where are you using addChild(submit_button)? Also, where do you initially declare the
times are UTC Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group. Designed by ST Software for PTF.
Boot and Lockup  Notebook Wireless and Networking  Notebook Audio  Notebook Video, Display and Touch  Notebook Hardware and Upgrade Questions  Notebook Software and How To Questions  Business Notebooks  Printers sprocket  Inkjet Printing  LaserJet Printing  Printer Software and Drivers  DesignJet, Large Format Printers and Digital Press  HP Connected, Mobile Printing and Cloud Printing  Scanning, Faxing, and Copying  JetAdvantage, Printing Applications and Services  Desktops Desktop Operating Systems and Recovery  Desktop Boot and Lockup  Desktop Wireless and Networking  Desktop Audio  Desktop Video, Display and Touch  Desktop Hardware and Upgrade Questions  Desktop Software and How To Questions  Sprout by HP  Business PCs, Workstations and Point of Sale Systems  Gaming Gaming Notebooks  Gaming Desktops  Gaming Accessories  Tablets and Mobile Devices Elite x3  Android  Windows  Calculators  Palm and WebOS  Software HP Workspace  HP Touchpoint Manager  HP Collaboration  Commercial PC Software  Archived Topics (Read Only) Notebooks Archive (Read Only)  Printers Archive (Read Only)  Desktops Archive (Read Only)  Tablets and Mobile Devices Archive (Read Only)  Software Archive (Ready Only)  Windows Beta and Previews Archive (Read Only)  Miscellaneous Topics (Read Only)  Your Voice Forum Feedback & Suggestions  HP Expert Portal Welcome to the HP Expert Program  Meet the Experts  News and Events  Blogs Open Menu Blogs Open Menu Best of the Community BlogMeet the ExpertsNews and EventsWelcome to the HP Expert Program Beware of fake HP Support Open Menu Beware of fake HP Support Open Menu Be alert for scammers who may be posing as HP representatives and only call numbers from people who have a label next to their screen name. If you