Skip to main content
Inspiring
April 7, 2010
Question

Generating ArgumentError: Error #2008 parameter validity

  • April 7, 2010
  • 1 reply
  • 2750 views

I am getting an error with this and I don't know what I'm doing to get it?


    <mx:Text id="signUpBottomText"
             bottom="0" left="300"
             htmlText="{loginFooter}" selectable="true"
             styleName="ScreenBottomHeader">
    </mx:Text>

[Bindable]
            private var loginFooter:String = 'Questions about domain or signing up? <font color="#29abe2"><a href="mailto:feedback@domain.com">Send us an email</a></font> and we’ll get back to you the same day.';

Error:

ArgumentError: Error #2008: Parameter validity must be one of the accepted values.
    at flash.text.engine::TextLine/set validity()
    at flashx.textLayout.compose::TextFlowLine/http://ns.adobe.com/textLayout/internal/2008::damage()
    at flashx.textLayout.compose::FlowComposerBase/damage()
    at flashx.textLayout.elements::TextFlow/http://ns.adobe.com/textLayout/internal/2008::damage()
    at flashx.textLayout.container::ContainerController/invalidateContents()
    at flashx.textLayout.container::ContainerController/setCompositionSize()
    at flashx.textLayout.container::TextContainerManager/set compositionWidth()

This topic has been closed for replies.

1 reply

Adobe Employee
April 8, 2010

Seems like this isn't the problem.  mx:Text is a halo component and uses TextField.  Something else going on?

Here's my fully filled out mxml file including your code.

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
               xmlns:s="library://ns.adobe.com/flex/spark"
               xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="400">
    <fx:Declarations>
        <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
   
    <mx:Text id="signUpBottomText"
             bottom="0" left="300"
             htmlText="{loginFooter}" selectable="true"
             styleName="ScreenBottomHeader">
    </mx:Text>

    <fx:Script>
        <![CDATA[
            [Bindable]
            private var loginFooter:String = 'Questions about domain or signing up? <font color="#29abe2"><a href="mailto:mailto:feedback@domain.com">Send us an email</a></font> and well get back to you the same day.';
        ]]>
    </fx:Script>
</s:Application>

Richard

Participating Frequently
April 8, 2010

Are you using the "Use FTE Text in MX Components" feature?

Gordon Smith

Adobe Flex SDK Team

thx1138Author
Inspiring
April 8, 2010

@Gordon - Yes.


@Richard - Yeah, I tried to reproduce and it was only happenning when I was logged in to my app automatically and i don't think the text was ever displayed. It might be happenning when state change is involved.


<mx:RemoveChild target="{signUpBottomText}"/>

I could switch it to spark but the last time I checked (on another issue) I had issues with the htmlText not being valid. Is there an easily equivalent spark alternative I could try? Do you need any more information from me?