[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

spark.components.TextArea not working properly

In our full iOS application (built with the AIR SDK), our use of spark.components.TextArea is preventing certain characters from being echoed (i.e. numbers).

I attempted to build a simple application with a TextArea component, and it works fine with Adobe FLEX 4.6 SDK w/ AIR 31.

With Apache Flex 4.16.1 (and AIR 31), the view does not render.

I am left with some questions:

  1. Might this be an issue with the FLEX SDK (vs. the AIR SDK)? Given that assumption, I went ahead and filed a FLEX SDK bug:
  2. If I just need a working version of the FLEX SDK, can I just bundle an old version of the FLEX w/ a new version of the AIR SDK? My sample app wasn’t working with that configuration (no view shown), and my full application wasn’t building (compile errors with missing or incompatible spark components etc.).
  3. Aren’t there other alternatives to TextArea that I could use, perhaps these:
    1. mx.controls.TextArea:
    2. fl.controls.TextArea:



Chuck Doucette


<?xml version="1.0" encoding="utf-8"?>
<!-- mobile_text/views/SimpleTextArea.mxml -->
<s:View xmlns:fx="";
		title="Simple TextArea">
		<!-- Place non-visual elements (e.g., services, value objects) here -->
			// Note the use of \n to add line feeds/carriage returns
			// and \" to add quotation marks.
			public var myText:String ="Lorem ipsum dolor sit amet, consectetuer adipiscing \
			elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat \
			volutpat.\"\n\n\"Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit \
			lobortis nisl ut aliquip ex ea commodo consequat.";
	<!-- Basic TextArea control with multiple lines of text. -->
	<s:TextArea id="myTA" height="75%" text="{myText}"
				paddingLeft="20" paddingTop="20"
				paddingRight="20" paddingBottom="20"/>

Attachment: Main-app.xml
Description: Main-app.xml

<?xml version="1.0" encoding="utf-8"?>
<s:ViewNavigatorApplication xmlns:fx=""; 
							xmlns:s="library://" firstView="views.MainHomeView" applicationDPI="160">
		<!-- Place non-visual elements (e.g., services, value objects) here -->