Flex Error #2007 Parameter Antialiastype Must Be Non-null
Contents |
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 parameter text must be non null as3 Us Learn more about Stack Overflow the company Business Learn more about hiring
How To Fix Typeerror Error #2007 Parameter Text Must Be Non-null
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 What does ActionScript mean by 'antiAliasType' in the following context?: up vote 4 down vote favorite // When I Run The Following Two Lines, I Get The Error Shown Below var B:Button=new Button(); var lineMetrics:TextLineMetrics=B.measureText('Hello World'); // TypeError: Error #2007: Parameter antiAliasType must be non-null. From My Point Of View, As Useless Errors Go, This One Is Unsurpassed. Can anyone point me in the right direction? flex flash actionscript-3 air share|improve this question asked May 26 '10 at 22:06 Joshua 2,33093868 +1 for awesome comment –goalie7960 Jun 16 '11 at 21:19 add a comment| 1 Answer 1 active oldest votes up vote 2 down vote accepted The last post in this thread may help: http://www.actionscript.org/forums/showthread.php3?t=148610 share|improve this answer answered May 27 '10 at 0:03 Adam Harte 7,38043576 1 This worked. I needed to first add it to the canvas (canvas.addChild), then update its width. measureText will fail quite magnificently if called on a component that isn't already visible on the stage. –Joshua May 27 '10 at 1:11 Or you could just create an addedToStage event handler –Arman Bimatov Jul 11 '13 at 19:03 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 the privacy policy and terms of service. Not the answer you're looking for? Browse other questions tagged flex flash actionscript-3 air or ask your own question. asked 6 years ago
ElementsAdobe Dreamweaver Adobe MuseAdobe Animate CCAdobe Premiere ProAdobe After EffectsAdobe IllustratorAdobe InDesignView all communitiesExplore Menu beginsMeet the expertsLearn our productsConnect with your peersError: You don't have JavaScript enabled. This tool uses JavaScript and much of it will not work correctly without it enabled. Please turn JavaScript back on and reload this page. Please enter a title. You can not post a blank message. Please type your message and try again. More discussions in Flex All CommunitiesFlex 11 Replies Latest reply on Dec 22, 2012 6:44 PM by isaacewing Error #2007: Parameter justificationStyle must be non-null. tehxike1 May http://stackoverflow.com/questions/2917172/what-does-actionscript-mean-by-antialiastype-in-the-following-context 18, 2010 9:07 AM I'm not sure what triggered it, but I started getting this error. The line of code it's mad about is this:
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 https://www.kirupa.com/forum/showthread.php?294883-TypeError-Error-2007-Parameter-type-must-be-non-null Forums Read Quick Links View Forum Leaders What's New? Advanced Search Forum Flash ActionScript 3 TypeError: Error #2007: Parameter type must be non-null. Results 1 to 9 of 9 Thread: TypeError: Error #2007: Parameter type 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 must be to Threaded Mode April 14th, 2008,04:39 AM #1 Flashkiddy View Profile View Forum Posts Visit Homepage 51 posts Developer TypeError: Error #2007: Parameter type must be non-null. It's monday morning and somehow my brain won't comprehend why this error is happening...... could anyone take a look and shed some light on this please? TypeError: Error #2007: Parameter type must be non-null. at must be non flash.events::EventDispatcher/addEventListener() at pages::MyProfile/initListeners() at pages::MyProfile() here is my code ActionScript Code: package business.types { import flash.events.Event; /** * @author Erik */ public class ServerConnectionEvent extends Event { public static const AUTHENTICATION_BY_ACCOUNT_COMPLETE : String = "authentication_by_account_complete"; public static const AUTHENTICATION_BY_ACCOUNT_FAIL : String = "authentication_by_account_fail"; public static const AUTHENTICATION_BY_COOKIE_COMPLETE : String = "authentication_by_cookie_complete"; public static const AUTHENTICATION_BY_COOKIE_FAIL : String = "authentication_by_cookie_fail"; public static const LOGOUT_COMPLETE : String = "logout_complete"; public static const LOGOUT_FAIL : String = "logout_fail"; public static const REGISTRATION_COMPLETE : String = "registration_complete"; public static const REGISTRATION_FAIL : String = "registration_fail"; public static const PROFILE_RETRIEVE_COMPLETE : String = "profile_retrieve_complete"; public static const PROFILE_RETRIEVE_FAIL : String = "profile_retrieve_fail"; public var isSuccess : Boolean; public var data : Object; public function ServerConnectionEvent ( type : String, isSuccess : Boolean = true, data : Object = null ) { super( type ); this.isSuccess = isSuccess; this.data = data; } } } This is the other class, which is using this custom Event: ActionScript Code: private function onGetProfileComplete ( lObj : Object ) : void { trace( "business.ServerConnection.onGetProfileComplet e(" + [ lObj ] + ")" ); dispatchEvent( n