Adobe Dreamweaver Forums



Last 10 THreads :         Adobe Flash 10 kills Wimpy (Last Post : midiwriter - Replies : 106 - Views : 107 )           »          Em Dash (Last Post : David Stiller - Replies : 1 - Views : 2 )           »          button event with transparency (Last Post : Kruc3fix - Replies : 0 - Views : 1 )           »          Dragging components (Last Post : hsfrey - Replies : 21 - Views : 22 )           »          Scaling .swf files to fit specific dimensions (Last Post : wolfsj - Replies : 2 - Views : 3 )           »          Table cell - text formatting question (Last Post : JRStaf4ord - Replies : 5 - Views : 6 )           »          Re: Your techiques for removing specular from photos (Last Post : Don_Gough@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : g_ballard@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : Jim_Jordan@adobeforums.com - Replies : 0 - Views : 1 )           »          Re: Printing too dark in CS4 (Last Post : Tom_H_Mikkelsen@adobeforums.com - Replies : 0 - Views : 1 )           »         


Left Column Title

User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Flex
 
Tags:



Reply
  #1 (permalink)  
Old 11-20-2008, 02:13 PM
Thomas Friedl
 
Posts: n/a
Diggs:
Default errorString - border Bug?

When I set an errorString on a UIComponent, reset it (set to null) and
afterwards want to set a borderColor it doesn't work - it doesn't change the
color (or any other border style at all).

Is this a bug or am I doing something wrong? (tested with flex 3.2)





<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
<mx:Script>
<![CDATA[

private function setErrorString():void
{
text_input.errorString = "Test";
}

private function resetErrorString():void
{
text_input.errorString = null;
text_input.setStyle("borderColor", "#0000ff");
//Border color should now be blue
}

]]>
</mx:Script>
<mx:TextInput x="10" y="10" id="text_input" borderColor="#00ff00"/>
<mx:Button x="178" y="10" label="1. Set" click="setErrorString()"/>
<mx:Button x="251" y="10" label="2. Reset" click="resetErrorString()"/>
</mx:Application>



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-20-2008, 02:33 PM
myIP
 
Posts: n/a
Diggs:
Default Re: errorString - border Bug?

In your resetErrorString method you are assigning the setStyle method too earlier. Put a validateNow method between those 2 lines of code in the resetErrorString method.
Reply With Quote
  #3 (permalink)  
Old 11-20-2008, 02:44 PM
Thomas Friedl
 
Posts: n/a
Diggs:
Default Re: errorString - border Bug?

wow, great! thx!
Reply With Quote


Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



Right Column Title


© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 09:54 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk