Advertisement

06.24.2008 at 03:37PM PDT, ID: 23512911
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

foreign characters in flex can't be added to textAreas when in a different state

Asked by jenie_penny13 in Adobe Flex

Tags: ,

Hi,
I am running into a unique problem that I haven't been able to find the solution to. When I add foreign characters to a textArea like "ü, ö, ä, õ, ~ and a" they display in the text Area. As soon as I enter one of the states in my application, that use custom components. When in a custom component's textArea no special character can be typed in, pasted in, or entered in the textArea in any way. Whatever is causing this does not affect richTextEditor elements which still allow the special characters to be pasted in.

I am including some cldoe Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
69:
70:
71:
72:
73:
74:
75:
76:
77:
78:
79:
80:
81:
82:
83:
84:
85:
86:
87:
88:
89:
90:
91:
92:
93:
94:
95:
96:
97:
98:
99:
100:
101:
102:
103:
104:
105:
106:
107:
108:
109:
110:
111:
112:
113:
114:
115:
116:
117:
118:
119:
120:
121:
122:
123:
124:
125:
126:
127:
128:
129:
130:
131:
132:
133:
134:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" clipContent="false" xmlns:custom="sections.*" xmlns:components="components.*" layout="absolute" backgroundGradientColors="[#c0c0c0, #808080]" dropShadowEnabled="true"  creationComplete="checkLogin()">
	<mx:states>
		<mx:State name="copyright">
			<mx:RemoveChild target="{homepageMainHolder}"/>
			<mx:AddChild relativeTo="{mainHolder}" position="lastChild">
				<custom:copyright id="copyrightMainHolder"  y="10" hideEffect="{fadeOut}" showEffect="{fadeIn}" removedEffect="{fadeOut}" addedEffect="{fadeIn}" />
			</mx:AddChild>
			<mx:AddChild relativeTo="{mainHolder}" position="lastChild">
				<components:homeLink id="homeLink"  removedEffect="{fadeOut}" addedEffect="{fadeIn}"  x="22" y="59"/>
			</mx:AddChild>
		</mx:State>
</mx:states>
 
	<!-- define css style for the page -->
	<mx:Style source="../html-template/style.css" />
	<mx:Style source="../styles/advancedColorPicker.css" />
	 
	
 	<!-- Define effects -->
    <mx:Zoom id="shrink" duration="100" zoomHeightTo=".9" zoomWidthTo=".9" />
    <mx:Zoom id="revert" duration="50" zoomHeightTo="1" zoomWidthTo="1" />
    <mx:Dissolve id="dissolveOut" duration="500" alphaFrom="1.0" alphaTo="0.0"/>
    <mx:Dissolve id="dissolveIn" duration="500" alphaFrom="0.0" alphaTo="1.0"/>
    <mx:Fade id="fadeOut" duration="500" alphaFrom="1.0" alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="500" alphaFrom="0.0" alphaTo="1.0"/>
	<mx:Blur id="blur" duration="1000"  blurXFrom="0.0" blurXTo="10.0" blurYFrom="0.0" blurYTo="10.0"/>
    <mx:Blur id="unblur" duration="1000" blurXFrom="10.0" blurXTo="0.0" blurYFrom="10.0" blurYTo="0.0"/>
 
	 <mx:Script source="as/imagesmoothing.as" />
	 <mx:Script source="as/url.as" />
	 <mx:Script>
	 	<![CDATA[
	 	
	 		import mx.managers.PopUpManager;
	 		
 
	 		
	 		[Bindable] public var secID:Number;
	 		[Bindable] public var secIDp:Number;
	 		[Bindable] public var clientID:Number;
	 		[Bindable] public var clientIDp:Number;
	 		[Bindable] public var clientname:String;
	 		[Bindable] public var packageID:Number;
	 		[Bindable] public var loggedIn:Boolean;
	 		[Bindable] public var pop1:*;
	 			 <!-- Create general layout -->
	<mx:Canvas backgroundColor="#ffffff" width="750" fontFamily="Arial"  height="100%" horizontalCenter="0" verticalCenter="0" id="mainHolder">
	
			<!-- Mlayout logo and navigation buttons -->
			<mx:Image x="22" y="16" autoLoad="true" useHandCursor="true" buttonMode="true" source="@Embed(source='icons/logo.jpg')" />
			<mx:Image x="697" y="18" source="@Embed(source='icons/icon-help.jpg')" id="site_help" autoLoad="true"   mouseDownEffect="{shrink}" mouseUpEffect="{revert}" toolTip="Site Help" click="navigateToURL(new URLRequest('http://www.portfoliositez.com/support/'))" buttonMode="true" useHandCursor="true"/>
			<mx:Image x="661" y="19" source="@Embed(source='icons/icon-viewsite.jpg')" id="view_site" autoLoad="true" mouseDownEffect="{shrink}" mouseUpEffect="{revert}" toolTip="View Site" click="navigateToURL(new URLRequest('../'))" buttonMode="true" useHandCursor="true"/>
			<mx:Image x="621" y="20" source="@Embed(source='icons/icon-home.jpg')" id="site_home" autoLoad="true" mouseDownEffect="{shrink}" mouseUpEffect="{revert}" toolTip="Site Home"  useHandCursor="true" buttonMode="true" click="mx.core.Application.application.homeClick(event);"/>
			<mx:Image x="581" y="20" source="@Embed(source='icons/icon-aboutsite.png')" id="site_info" autoLoad="true" mouseDownEffect="{shrink}" mouseUpEffect="{revert}" toolTip="Useful information about your template"  useHandCursor="true" buttonMode="true" click="navigateToURL(new URLRequest('http://www.portfoliositez.com/templates/frida/'))"/>
	 		<mx:HRule x="22" y="58" width="707"/>
			
	 		
	 		<!-- Import homepage component -->
			<custom:homepage id="homepageMainHolder" height="100%" y="10" hideEffect="{fadeOut}" showEffect="{fadeIn}"  removedEffect="{fadeOut}" addedEffect="{fadeIn}" />
			
	</mx:Canvas>
	
</mx:Application>
 
 
 
 
 
 
 
 
 
 
<!-------------code from one of the files that contain a text area that isn't allowing special characters -------->
 
<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:components="components.*" creationComplete="SrvCopy.send(), init()" addedToStage="SrvCopy.send()">
 
 
	 <!-- Define effects -->
    <mx:Zoom id="shrink" duration="100" zoomHeightTo=".9" zoomWidthTo=".9" />
    <mx:Zoom id="revert" duration="50" zoomHeightTo="1" zoomWidthTo="1" />	
    <mx:Fade id="fadeOut" duration="500" alphaFrom="1.0" alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="500" alphaFrom="0.0" alphaTo="1.0"/>
 	
 	<mx:Script source="../as/advancedColorPicker.as" />
 	<mx:Script source="../as/url.as" />
 	
 	
 <mx:Canvas id="copyrightHolder"  verticalScrollPosition="10">
	 <!-- Create structure for copyright information -->
	 <mx:Panel width="707" height="360" layout="absolute" id="copyright_container" borderThickness="1" x="21" y="112" borderThicknessBottom="5"  borderThicknessTop="5" headerHeight="10" fontFamily="mainFont" fontSize="10" fontWeight="normal">
		<mx:Label id="copyrightLabel" />
		<mx:HBox x="10" y="26" width="667">
			<mx:Label text="Copyright Line"/>
			<mx:TextInput width="527" id="copyrightLine" text="{SrvCopy.lastResult.copyrights.copyright.text}" change="infoUpdated.visible=false"/>
		</mx:HBox>
		<mx:HBox width="667" x="10" y="73">
			<mx:Label text="Copyright Link"/>
			<mx:TextInput width="527" id="copyrightLink" text="{SrvCopy.lastResult.copyrights.copyright.link}" change="infoUpdated.visible=false" toolTip="links need to be full urls. ie- 'http://www...'" />
		</mx:HBox>
		<mx:HSlider x="148" y="118" minimum="0" maximum="100" id="copyrightOpacity" allowTrackClick="true" labels="[0%,100%]" value="{SrvCopy.lastResult.copyrights.copyright.opacity}" width="200" tickInterval="10" snapInterval="1" liveDragging="true" change="infoUpdated.visible=false"/>
		<mx:Label x="10" y="130" text="Copyright Line Opacity"/>
		<mx:VBox left="10" top="184" height="31">
			<mx:HBox width="100%" left="10" top="10" verticalAlign="middle">
				<mx:Label text="Copyright Line Color"/>
				<mx:ColorPicker id="picker" selectedColor="{parseInt(SrvCopy.lastResult.copyrights.copyright.color, 16)}" showTextField="true" change="infoUpdated.visible=false"/>
				<mx:Image source="assets/colorWheel.png" click="openPicker(event)" buttonMode="true" toolTip="open advanced color picker"/>
				<mx:Label id="hexColor" text="{rgbToHex(picker.selectedColor)}" visible="false" />
				<mx:Label text="{sample.alpha}" visible="false"/>
			</mx:HBox>
			<mx:CheckBox label="Enable stage color picker" id="picker_check" visible="false" />
		</mx:VBox>
		<mx:Label x="10" y="247" text="Sample:"/>
		<mx:Label id="sample" x="62" y="248" text="{copyrightLine.text}" width="606" color="{picker.selectedColor}"  alpha="{copyrightOpacity.value/100}" fontFamily="mainFont" fontSize="10"/>
		<mx:ControlBar height="38" width="713" x="-21" y="306">
			<mx:Button label="Update Copyright Information" id="updateCopyright" click="SrvCopy.send(),infoUpdated.visible=true"/>
			<mx:Label id="infoUpdated" text="     Information has been updated. " width="206" visible="false"  showEffect="{fadeIn}"  hideEffect="{fadeOut}" fontFamily="mainFont" fontSize="10"  addedToStage="this.infoUpdated.visible=false"/>
		</mx:ControlBar>
	</mx:Panel>
	 <mx:Label x="128" y="52" text="EDIT COPYRIGHT INFORMATION" fontSize="10" fontFamily="mainFont" textAlign="left"/>
 </mx:Canvas>        
	        
	        
		<!-- Create http connections to pull in content from xml files -->
		 <mx:HTTPService id="SrvCopy" url="php/copyright.php"  useProxy="false" method="POST"  showBusyCursor="true" >
		      	<mx:request xmlns="">
		        		<copyright>{copyrightLine.text}</copyright><link>{copyrightLink.text}</link><opacity>{copyrightOpacity.value}</opacity><colorI>{rgbToHex(picker.selectedColor)}</colorI>
		      	</mx:request>
		   </mx:HTTPService>
 
 
</mx:Canvas>
[+][-]06.25.2008 at 04:37AM PDT, ID: 21864409

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Adobe Flex
Tags: actionscript 3 / flex, all
Sign Up Now!
Solution Provided By: hobbit72
Participating Experts: 1
Solution Grade: A
 
 
[+][-]06.25.2008 at 06:29AM PDT, ID: 21865317

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628