Adobe Dreamweaver Forums



Last 10 THreads :         Can't get Macromedia Authorware Web Player to install onWindows Vista (Last Post : Steve Howard **Community Expert** - eLearning + Mo - Replies : 1 - Views : 2 )           »          Can I make a 4 state CSS Sprite nav bar. (Last Post : Team Liquid Fire - Replies : 8 - Views : 9 )           »          3 overlapping background images on same page (Last Post : brad_goldstein - Replies : 10 - Views : 11 )           »          fireworks exports hundreds of files (Last Post : JoeyD1978 - Replies : 1 - Views : 2 )           »          DW or FW? (Last Post : JoeyD1978 - Replies : 1 - Views : 2 )           »          cfdocument printing issues: cf7 vs cf8 (Last Post : k43 - Replies : 1 - Views : 2 )           »          wont work in IE (Last Post : ckovy - Replies : 2 - Views : 3 )           »          Re: CS4 GPU Acceleration and Intel X3100 (Last Post : Intel - Replies : 0 - Views : 1 )           »          cs4 full screen mode isn't saved in workspaces, unlike cs3 (Last Post : eddie caruso - Replies : 2 - Views : 3 )           »          Problem with Subversion (Last Post : tmortime - Replies : 0 - Views : 1 )           »         


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



© 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 01:58 AM.


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.
Inactive Reminders By Mished.co.uk