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
How To Fix Typeerror Error #2007 Parameter Text Must Be Non-null
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 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 Error #2007: Parameter antiAliasType must be non-null up vote 0 down vote favorite I am getting this strange error message in my ItemRenderer. I have no idea what is wrong??? Please help! TypeError: Error #2007: Parameter antiAliasType must be non-null. at flash.text::TextField/set antiAliasType() package xxx { import spark.components.LabelItemRenderer; import spark.components.supportClasses.StyleableTextField; public class NewsItemRenderer extends LabelItemRenderer { private var date:StyleableTextField; private var title:StyleableTextField; public function NewsItemRenderer() { super(); super.styleName = "NewsItemRenderer"; } override protected function createChildren():void { date = StyleableTextField(createInFontContext(StyleableTextField)); date.editable = false; date.selectable = false; date.styleName = "newsItemDate"; date.width = 200; date.height = 20; date.styleDeclaration = styleManager.getMergedStyleDeclaration(".newsItemDate"); addChild(date); date.commitStyles(); title = StyleableTextField(createInFontContext(StyleableTextField)); title.editable = false; title.selectable = false; title.styleName = "newsItemTitle"; title.width = 200; title.height = 60; title.styleDeclaration = styleManager.getMergedStyleDeclaration(".newsItemTitle"); addChild(title); title.commitStyles(); } override protected function layoutContents(unscaledWidth:Number, unscaledHeight:Number):void { super.layoutContents(unscaledWidth, unscaledHeight); // Hide the default label display if (labelDisplay) { labelDisplay.visible = false; } setElementPosition(date, 5, 5); setElementPosition(title, 5, 20); setElementSize(date, measuredWidth, 20); setElementSize(title, measuredWidth, 60); } override protected function drawBackground(unscaledWidth:Number, unscaledHeight:Number):void { // nada -> transparent } override protected function measure():void { measuredHeight = 80; measuredWidth = 300; measuredMinWidth = 200; measuredMinHeight = measuredHeight; } override public function set data(value:Object):void { trace(value); super.data = value; if(value != null) { var xml:XML = XML(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 them; it only takes a minute: Sign up What does http://stackoverflow.com/questions/8605453/error-2007-parameter-antialiastype-must-be-non-null 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? http://stackoverflow.com/questions/2917172/what-does-actionscript-mean-by-antialiastype-in-the-following-context flex flash actionscript-3 air share|improve this question asked May 26 '10 at 22:06 Joshua 2,32593768 +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,37043576 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
using your existing account on the new forums, https://www.kirupa.com/forum/showthread.php?294883-TypeError-Error-2007-Parameter-type-must-be-non-null check out this thread. Register Help Remember Me? Forum https://www.mail-archive.com/flexcoders@yahoogroups.com/msg36002.html Today's Posts FAQ Calendar Forum Actions Mark 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 must be 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 to Threaded Mode April 14th, 2008,04:39 AM #1 Flashkiddy View Profile View Forum Posts must be non 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 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 RE
> > Each time I create new Text instance in ActionScript using new Text() > and then add it to parent container, I get exception: > > TypeError: Error #2007: Parameter antiAliasType must be non-null. I'm having a similar problem. I've got two containers that have UITextFields in them. One of them works sometimes, the other never works. I've tried specifying the antiAliasType in css and setting the style explicitly on the control. TypeError: Error #2007: Parameter antiAliasType must be non-null. at flash.text::TextField/set antiAliasType() at mx.core::UITextField/validateNow()[C:\dev\GMC\sdk\frameworks\mx\core\UITextField.as:1427] at mx.core::UITextField/set nestLevel()[C:\dev\GMC\sdk\frameworks\mx\core\UITextField.as:956] at mx.core::UIComponent/set nestLevel()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:2420] at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:4720] at mx.core::Container/http://www.adobe.com/2006/flex/mx/internal::addingChild()[C:\dev\GMC\sdk\frameworks\mx\core\Container.as:3306] at mx.core::Container/addChildAt()[C:\dev\GMC\sdk\frameworks\mx\core\Container.as:2285] -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/ Previous message View by thread View by date Next message [flexcoders] Re: antiAliasType null exception with Text i... loftling Re: [flexcoders] Re: antiAliasType null exception wi... Daniel Freiman Re: [flexcoders] Re: antiAliasType null exceptio... Sergey Kovalyov Re: [flexcoders] Re: antiAliasType null exce... Daniel Freiman Re: [flexcoders] Re: antiAliasType null ... Darron J. Schall Re: [flexcoders] Re: antiAliasType null ... Sergey Kovalyov Reply via email to Search the site The Mail Archive home flexcoders - all messages flexcoders - about the list Expand Previous message Next message The Mail Archive home Add your