• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
Locked
0

Generating ArgumentError: Error #2008 parameter validity

Engaged ,
Apr 07, 2010 Apr 07, 2010

Copy link to clipboard

Copied

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()

TOPICS
Text layout framework

Views

2.6K

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 08, 2010 Apr 08, 2010

Copy link to clipboard

Copied

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

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Apr 08, 2010 Apr 08, 2010

Copy link to clipboard

Copied

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

Gordon Smith

Adobe Flex SDK Team

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Apr 08, 2010 Apr 08, 2010

Copy link to clipboard

Copied

@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?

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Apr 13, 2010 Apr 13, 2010

Copy link to clipboard

Copied

LATEST

Can you tell me what version of the Player you are using? And what version of the Flex SDK you are using?

This sounds like a bug, and its just a matter of getting it down to a smaller example that reproduces it. I think your comment that it happens when the text hasn't been displayed is a good clue. Can you try isolating it down so we can repro it here?

Thanks,

- robin

Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines