Another Flex 2.0.1 bug

I honestly don't understand what's going on, since i updated
to Flex 2.0.1 i found bug after bug.
This time to my surprise i found that the
errorString property is causing a buggy behavior, if i set
an empty String to this property in order to clean a validation
error for a TextInput control then its layout changes, it gets a
weird black color on its border.
Try this one out
<mx:TextInput id="buggy"/>
<mx:Button click = "buggy.errorString = ''"/>
So tell me, why if this WORKED in FLEX 2.0, why did Adobe had
to change it ? How is it supposed to work now?

The problem is in the UIComponent.as file in mx.core. In Flex
2.01 they factored out the border color for error string logic into
a separate method setBorderColorForErrorString():void. Here is the
method in Flex 2.01
private function setBorderColorForErrorString():void
if (!_errorString || _errorString.length == 0)
setStyle("borderColor", origBorderColor);
saveBorderColor = true;
else
// Remember the original border color
if (saveBorderColor)
saveBorderColor = false;
origBorderColor = getStyle("borderColor");
setStyle("borderColor", getStyle("errorColor"));
styleChanged("themeColor");
var focusManager:IFocusManager = focusManager;
var focusObj:DisplayObject = focusManager ?
DisplayObject(focusManager.getFocus()) :
null;
if (focusManager && focusManager.showFocusIndicator
focusObj == this)
drawFocus(true);
Here is the orignal code from Flex 2.0
public function set errorString(value:String):void
ToolTipManager.registerErrorString(this, value);
_errorString = value;
var p:String;
if (!value || value.length == 0)
saveBorderValues = true;
for (p in origBorderValues)
setStyle(p, origBorderValues[p]);
else
// Remember the original colors, so we can restore them
later.
if (!origBorderValues)
origBorderValues = {};
if (saveBorderValues)
saveBorderValues = false;
for (p in origBorderStyles)
origBorderValues[p] = getStyle(p);
for (p in origBorderStyles)
setStyle(p, origBorderStyles[p]);
styleChanged("themeColor");
var focusManager:IFocusManager = focusManager;
var focusObj:DisplayObject = focusManager ?
DisplayObject(focusManager.getFocus()) :
null;
if (focusManager && focusManager.showFocusIndicator
focusObj == this)
drawFocus(true);
dispatchEvent(new Event("errorStringChanged"));
}

Similar Messages

  • How to get value of process variable in another flex form

    Hi,
    currently we are using Flex 3 for form development in LiveCycle ES workspace.
    We have got an "Assign Task" service operation. This service operation has got a process variable defined for "input" and "output".
    The service will be called in a flex form. When the process is called a task will be sent to a user.
    When the user opens this task another flex form will be opened. All these steps work fine!
    How it's possible to get the value of the defined process variable from the first flex form (which starts the process)
    to the flex form which will be displayed when the user opens the task?
    Thanks very much for your help!
    Holger

    Solutions:
    -The 'proper' way for application specific stuff is to use a properties file, not env vars.
    -Use System.getenv(), only works for versions before 1.3
    -Use the java command line option '-D'
    -Use Runtime.exec(), similar to the way you suggested.
    -Use JNI.

  • Flex 2.5.31 bug: As Regards Wine CVS Users: No Clear Downgra

    Flex 2.5.31 bug: As Regards Wine CVS Users: No Clear Downgrade Path: Please Advise
    Wine CVS (at least dx9-wine tree) fails with flex error (lex.yy.c error, etc):
    Please see: http://www.kerneltraffic.org/wine/wn20030509_169.html#4
    Key bit: 'Flex 2.5.31 bug. Downgrade to 2.5.3a, "make clean" in the tools directory and you are back.'
    Search for flex with pacman yields 2.5.33-1 (current), search in AUR for flex finds nothing relevant.
    Other less savory (and less repeatable) fixes aside, what is the proper "ArchLinux" way to resolve this issue?  To trace upstream a bit further, what is the proper "ArchLinux" way to install a particular Wine fork?

    JGC wrote:Last time I got this bug with wine, I just did a 2nd run of make and it compiled fine
    I had tried that, no dice.
    make[2]: Entering directory `/root/.WineCVS/sources/dx9wine/wine/tools/wrc'
    gcc -c -I. -I. -I../../include -I../../include -DINCLUDEDIR=""/usr/local/include/wine"" -Wall -pipe -mpreferred-stack-boundary=2 -fno-strict-aliasing -gstabs+ -Wdeclaration-after-statement -Wpointer-arith -g -O2 -o lex.yy.o lex.yy.c
    lex.yy.c:9174: error: syntax error before numeric constant
    lex.yy.c: In function 'yy_scan_string':
    lex.yy.c:9175: error: number of arguments doesn't match prototype
    lex.yy.c:367: error: prototype declaration
    lex.yy.c:9177: warning: passing argument 1 of 'strlen' makes pointer from integer without a cast
    lex.yy.c:9177: warning: passing argument 1 of 'yy_scan_bytes' makes pointer from integer without a cast
    make[2]: *** [lex.yy.o] Error 1
    Found a reference here -- http://www.winehq.com/hypermail/wine-de … /0612.html -- to similar/same problem, will check a bit more.  I can't sort out if this a bug in flex, problem with the Makefiles, or...something else.

  • Update either html site or another flex component with Data from ESRI Flexviewer

    Hello all,
    What I have is a basic flex mapping application that enables a user to update a feature (that is referenced to a ArcGIS server SDE database) by clicking on a the map.  Once the feature is added to database it updates a total feature count label.text.  What I need to do is somehow reflect this same number in a dreamweaver site through html or create another flex component that can be added to dreamweaver html as a .swf.  Any comments or suggestions would be greatly appreciated!!
    Thank you!

    Hello all,
    What I have is a basic flex mapping application that enables a user to update a feature (that is referenced to a ArcGIS server SDE database) by clicking on a the map.  Once the feature is added to database it updates a total feature count label.text.  What I need to do is somehow reflect this same number in a dreamweaver site through html or create another flex component that can be added to dreamweaver html as a .swf.  Any comments or suggestions would be greatly appreciated!!
    Thank you!

  • Flex 4 hideEffect transition bug

    Hi.
    I'm trying to create a slide effect. Everything works fine except the first hideEffect animation. The content does not become invisible when crossing the TabNavigator's border, which looks really ugly in my current project. The following simple example demonstrates the problem.
    <?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="600"
                      backgroundColor="0xDDDDDD">
         <fx:Declarations>
              <s:Move id="hideEffect" xTo="700" />
         </fx:Declarations>
         <mx:TabNavigator width="500" height="300" x="100" y="0">
              <s:NavigatorContent label="ONE" hideEffect="{hideEffect}">
                   <s:BorderContainer backgroundColor="0xFF0000" height="100" width="100"/>
              </s:NavigatorContent>
              <s:NavigatorContent label="TWO" hideEffect="{hideEffect}">
                   <s:BorderContainer backgroundColor="0xFF0000" height="100" width="100"/>
              </s:NavigatorContent>
              <s:NavigatorContent label="THREE" hideEffect="{hideEffect}">
                   <s:BorderContainer backgroundColor="0xFF0000" height="100" width="100"/>
              </s:NavigatorContent>
              <s:NavigatorContent label="FOUR" hideEffect="{hideEffect}">
                   <s:BorderContainer backgroundColor="0xFF0000" height="100" width="100"/>
              </s:NavigatorContent>
         </mx:TabNavigator>
    </s:Application>

    For those who come across this thread, it was answered on the StackOverflow thread: http://stackoverflow.com/questions/5110765/flex-4-hideeffect-transition-bug/5130398#513039 8

  • RemovedEffect error - Yet another Flex bug?

    Is it just me or are there a lot of inexcusible bugs in the Flex framework?  Maybe I'm just not used to working with a "fledgling" technology, I don't know.  But today I ran into an error with the removedEffect of HBox.  I've added a removed effect to the box and sometimes when I try to remove a bunch of items at roughly the same time, I get this error:
    RangeError: Error #2006: The supplied index is out of bounds.
    at flash.display::DisplayObjectContainer/addChildAt()
    at mx.core::UIComponent/http://www.adobe.com/2006/flex/mx/internal::$addChildAt()
    at mx.core::Container/addChildAt()
    at mx.effects::EffectManager$/removedEffectHandler()
    at Function/http://adobe.com/AS3/2006/builtin::apply()
    at mx.core::UIComponent/callLaterDispatcher2()
    at mx.core::UIComponent/callLaterDispatcher()
    I've Googled it and some folks seem to have had a similar problem but I haven't seen a workaround.  Any ideas?
    Thanks in advance,
    Moshe

    Seems like I was able to work around it by bypassing the removedEvent trigger and just creating triggering my own effect.  I have quite a bit of code so the explanation won't really be done justice by cutting and pasting so I'll try and improvise:
    A little more background... I've been having quite a few issues with the TileList so I've decided to try and create a simple TileList of my own that has only the functionality I need.  The "item renderers" are just mini-HBoxes within a larger "TileList" HBox.  The renderers designate an effect:
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" >
          <mx:Parallel id="removedBlurEffect" target="{this}" duration="200"> 
                <mx:Resize heightFrom="{this.height}" heightTo="0"/>
                <mx:Blur blurYFrom="0" blurYTo="30" />
                <mx:Fade alphaFrom="1" alphaTo=".75" />
          </mx:Parallel>
        ... OTHER STUFF ...
    </mx:HBox>
    Later the containing HBox responds to removals from the data provider ArrayCollection and rather than removing the corresponding child HBox, it fires the effect and only once the effect has ended does it remove the child...
    private function onCollectionChange(event:CollectionEvent):void
        if(event.kind != CollectionEventKind.REMOVE) return;
        // Trigger the effect for each of the items that have been removed
        for(var j:int = 0; j < event.items.length; j++)
              // Cast the current data item to be removed (perhaps this is not necessary)
              var eventUploadableImage:UploadableImage = UploadableImage(event.items[j]);
              // Look through the children to find the item that has been removed
              var children:Array = this.getChildren();
              for(var i:int = 0; i < children.length; i++)
                  var currRenderer:ImageTileDisplayItemRenderer = ImageTileDisplayItemRenderer(children[i]);
                  var currImage:UploadableImage = currRenderer.uploadableImage;
                  if(currImage == eventUploadableImage)
                        currRenderer.removedBlurEffect.addEventListener(EffectEvent.EFFECT_END, onRemoveEffectComplete);         
                        currRenderer.removedBlurEffect.play();
                        break;
    private function onRemoveEffectComplete(event:EffectEvent):void
         var renderer:ImageTileDisplayItemRenderer = ImageTileDisplayItemRenderer(Parallel(event.currentTarget).target);
         renderer.removeEventListener(EffectEvent.EFFECT_END, onRemoveEffectComplete);
        this.removeChild(renderer);
    Anyway, seems to work so far.  I'm definitely open to a better way of doing this.
    Thanks!
    Moshe

  • Flex View purchases with bugs and no apparent support

    I'm trying to get help with some of the flex view movies we've bought recently. The first issue that came up was a movie that wouldn't start where we left off, but always reset to the beginning. All of the other flex view movies we have will start where you stop it.
    Then we got a movie where the audio was out of sync with the video, but only in the HD version. 
    Then a couple days ago, the SD version of a movie just disappeared completely, but it was there when the movie was purchased.
    We tried chat help, but the person didn't have a clue beyond the scripted stuff, and tech help called when we were out, and the phone support says that Flex View support is online only. (But if you go to the page they suggest, there's just a basic FAQ page for Flex View, and no support link at all.
    It seems like these are individual bugs in the underlying programming, or maybe it's a fault with the set top box. In any case, looking for solutions.

    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you.Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe".
    Please keep all correspondence regarding your issue in the private support portal.

  • Expand a tree using another flex application

    Here is the situation; i have two flex application-
    The MainForm which contains a tree and a tab navigator.
    Another application (lets named it 'CreateNodeForm') which I
    loaded as the default tab in the tab navigator of my MainForm.
    I want to click a button in my CreateNodeForm in which it
    expands a specific node in the tree on my MainForm and load another
    form in the tab navigator.
    Anyone can help me? Thanks!

    Hi, stumbled on this today...not a real techie fix but may be useful in your projects...
    Left handed mouse setup as per MS Windows Mouse settings only allowed switching of primary and secondary mouse button function...(XP Pro).
    Happened upon an NT Workstation and attempted to setup mouse as above, however on this workstation there was an MS Intellimouse set of software (5.2/4.1) in the mouse setup.
    I switched the buttons to make it left handed...
    Accessed our application and set about navigating the left hand tree, it worked normally single clicking on each node...prior to this the left tree was awkard for left hand mousers.
    Installed these drivers on XP machine and same results...left hand tree works fine..
    sorry if this low tech but I am a front end user rather than a coder.
    Cheers..........Nige

  • Flipped BitmapImage in Flex 4.1 (possible bug)

    Hello everyone.
    I'm experiencing strange behaviour of BitmapImage component with Flex 4.1 (more specificly - build 4.1.0.16076). Here is a sample application which causes an issue to arise:
    <s:Application creationComplete="this_creationCompleteHandler(event)">
       <fx:Script>
          <![CDATA[
             import components.base.viewport.Viewport;
             import mx.events.FlexEvent;
             import spark.components.Group;
             import spark.primitives.BitmapImage;
             [Embed(source="image.jpg")]
             private var imageClass:Class;
             protected function this_creationCompleteHandler(event:FlexEvent):void
                var container:Group = new Group();
                var image:BitmapImage = new BitmapImage();
                image.source = imageClass;
                container.addElement(image);
                addElement(container);
          ]]>
       </fx:Script>
    </s:Application>
    The problem is that the image is flipped horizontally (and it should not be). This probably have something to do with the bug SDK-26346, which is now closed. In comments I've found a "workaround" for the issue: if we switch places of two last lines of  this_creationCompleteHandler() method (we add container to the display list and only after that we add image to that container) the problem dissapears. However, I must say that version 4.0 of the framework does not suffer from this issue. Moreover, this also does not apply for other components with 4.1 as well (I guess there might be a few others causing the issue but I have tested  this with BitmapImage only).
    So here is my question. Is it illegal to add BitmapImage to any container prior adding that container to the display list (and that effectively means that we have to create children of any component only in createChildren() method and not, for example, in a constructor)? If this is true, then why adding an image to a container before it has been added to the display list worked without any problems until the new version of the framework has been realeased? Or is this a bug introdused by "layout mirroring" feature in 4.1  version of Flex? In that case, I will have to report a bug.
    Thanks in advance,
    Michael

    This looks like a bug to me.  I have reproduced the issue in Flex 4.1 and yes it looks like a regression from 4.0.
    Please file a bug and post the bug ID on this thread so we can investigate further.
    Thanks

  • Yet another nasty punch in/out bug

    What is this?? Punching in before a region then punching out inside the region DELETES IT! This is in replace mode. Am I missing something here? Check it out:
    http://www.youtube.com/watch?v=WqJ4hyYT1Ak

    Murray Campbell wrote:
    This quote from the 9.02 update page:
    +- Flex Markers can align & snap to MIDI notes _Performing a punch-in recording with Replace Mode now behaves correctly_+
    Isn't the problem discussed in this thread exactly the bug that 9.02 is supposed to have fixed?
    This is not the problem. Replace mode was broken with the release of version 9, but was fixed in the 9.02 update.
    The problem we're discussing here, is, the audio region that follows the punch out point often now disappears from the arrange page.

  • 30EA2 - SQL-Developer 3.0.02 Another Table Data Sort Order Bug

    Although the "30EA1 - SQL-Developer 3.0.02 Table Data Sort Order Bug" still exists in 30EA2, there is a new substantial mistake.
    How to see it:
    Open table1 (Preference "Automatically Freeze Object Viewer Windows" is set). Click data.
    Open table2. Click data.
    Go back to table1. Click Sort. => You see the columns of table2. The is no way to sort table1, before you close the table2 window (tab).
    Edited by: oestreicher1 on 01.12.2010 04:54

    Logged Bug 10358797 - ea2: grid sorter shows wrong columns
    -Raghu

  • Flex 4 - Axis Title Bug

    When the verticalAxisTilteAlignment is 'vertical', the title will 'move' down and left off of the chart each time new line series are created.  The problem code is in ChartLabel:
                var p:AxisRenderer = AxisRenderer(parent);
                if (p.getStyle('verticalAxisTitleAlignment') == 'vertical')
                    _label.rotation = 180;
                    _label.y = _label.y + _label.height;
                    _label.x = _label.x + _label.width;
    After the first time through, the x and y are added to continuously causing the title to 'move' off the chart.  My (admittedly hackish) work-around is a TitleRenderer that extends ChartLabel with an overridden 'updateDisplayList' like so:
    getChildAt(0).x = 0;
    getChildAt(0).y = 0;
    super.updateDisplayList(unscaledWidth, unscaledHeight);

    I'm running into the same problem. Any chance you can show your code showing the TitleRenderer that extends ChartLabel, as well as how it's called? I've never done something like that before in Flex.
    UPDATE:
    I found a nice tutorial here:
    http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7c39.html
    The workaround, thanks to vsimons (really -- thank you!!!):
    package path.to.this.file
              import flash.display.*;
              import flash.geom.Matrix;
              import mx.charts.*;
              import mx.charts.chartClasses.ChartLabel;
              public class MyTitleRenderer extends ChartLabel {
                        public functionMyTitleRenderer() {
      super();
                        override protected function updateDisplayList(w:Number, h:Number):void { 
                                  getChildAt(0).x = 0;
                                  getChildAt(0).y = 0;
                                  super.updateDisplayList(unscaledWidth, unscaledHeight);

  • FLEX & Session Variables: a BUG?.

    TARGET:
    Calling a Coldfusion Component with Remote Object to achieve
    a boolean value as result.
    If I declare the session variable inside the CF Function it
    works.
    If I declare the session variable before the CF Function was
    called it fails.
    See this test:
    A Coldfusion page (index.cfm) that defines a sesssion variable
    to start with:
    <!--- SHOW SESSION VARIABLES AND LOAD FLEX SWF IF "sesVAR"
    IS DEFINED, OTHERWISE DEFINE sesVar FIRST --->
    <cfif isDefined('session.sesVar')>
    <cfinclude template="index.html">
    <cfelse>
    <cfset session.sesVAR = "true">
    <cfinclude template="index.html">
    </cfif>
    COLDFUSION COMPONENT (CFComp.cfc):
    <!--- CHECK SESSION VARIABLE AND RETURN "TRUE" IF EXISTS
    --->
    <cffunction name="returnBoolean" access="public"
    returntype="boolean">
    <!--- UNCOMMENT FOLLOWING LINE AND EVERYTHING WORKS FINE
    --->
    <!---<cfset session.sesVar = 'yes'>--->
    <cfif isDefined('session.sesVar')>
    <cfset resultVal = TRUE>
    <cfelse>
    <cfset resultVal = FALSE>
    </cfif>
    <cfreturn resultVal>
    </cffunction>
    FLEX:

    "drongo79" wrote:
    > Oh well sorted it out myself anyway.
    Do you want to share, please?

  • Just another 10.4.9 Logic Bug...Is Apple listening?

    Now when you record an audio track and hit stop, the fade indicator in the left hand pane which is normally a 0 becomes an asterisk as if you have multiple audio files with multiple fades. This is the norm when you do have multiple audio files with multiple fades but not when you only have one audio file with NO fades. Way to go Apple, batting a thousand!

    omg, I lost exactly that very same nanosecond of sleep over it too! and I demand that nanosecond back, now! how dare they call this thing a pro app? if I add up all the picoseconds of sleep I've lost over these frankly unsurmountable bugs, I'd be entitled to a whole trillionth of my usual daily rate.
    but seriously. I hope people are learning a lesson here. every time a system update comes around, it's inevitably followed by an onslaught of posts in the following format:
    I was in the middle of project x which has a deadline in y number of days and now I did the update and I'm ruined. good one apple.
    well. the simplest of rules to follow is that if you have a project 'x' with a deadline 'y', then system updates can and should wait until after 'y'. at the end of the day, we are the professionals responsible for getting the work done, nobody else. if the machine is working, then don't mess with it till you have the time to backup (or even better, clone) your system and then carefully dedicate some time to doing an update. and even then, you should only do it after you've waited for the dust to settle, to make sure that there aren't any reports of big problems with the update, and after you've done the rounds of all your 3rd party plug in websites to make sure they haven't got big flashing warning signs all over their site screaming 'our plug ins aren't ready for system x.y.z yet!'.. or at the very least, they may have updates for you to get first.
    in the case of this OS update, it really does look like the only legit problem being reported so far is the new AU val causing some plug ins to fail validation. the cause seems to be only that developers knew this new AU val version was coming, but weren't expecting it till 10.5 leopard. so it's not a bug, nor a faulty update nor a bug-bomb dropped on us all by apple. all that is going to be required is an update to certain plug ins so that they pass validation again, because there was a spec change. and according to reports, there doesn't seem to be anything critically wrong with these plug ins either.. they just don't match the new spec so AU val deems them as failed. you can still open the validation app and force logic to use them, and then continue working as normal, until updates come out.

  • Unable to load a flex applicatio in another flex application

    I have 2 applications one application I load inside other in SWFLoader but it does not load . It loads on some machine but not loads on most of the machine.  It was working perfectly but same application does not work.  Its urgent kindly help me. After 70-80 % load it stops permanently.
    Thanks in advance
    Premkant
    Sr. Flex Developer

    Hi,
        Thanks for you valuable response. My both applicatios are on the same domain.
    I have also the progress event but after 70 to 80 % load it stops permanently.
    Pease help me what should I do for this. I can not use child Application as a component because the child application I have to open standalone in some cases. It was working for a long time.
    Thanks,

Maybe you are looking for

  • Unable to print with Adobe Acrobat Pro - latest version 10.1.10

    Hi, I have installed Adobe Acrobat Pro on my mac book air version 10.9.2. but am unable to print. When I print a PDF, it shows up in the printer icon as complete but when I go to the printer, nothing is there? Can someone help?

  • When I try and open Pdf attachments in mail it says the attachment is empty

    I have recently received emails both on my Mac and iphone 5 where the PDf attachment can be openbed and read on the first occasion When I try to go back to the attachment it says the attachment is emopty and cannot be downloaded.  I have taken Sophus

  • LineChart does not show x-Axis labels

    I create a LineChart using actionscript 3 and populate data values in it. The graph show lines but not any axis labels. Here is my code: var dp:ArrayCollection = this.provider as ArrayCollection;  var lc:LineChart = new LineChart();lc.dataProvider =

  • Rollover formatting problem

    My navigation bar links are formatted a certain way. When I manually link each of those links to it's respective page, the formatting changes to bright purple with an underscore. Note: this doesn't happen when you clink on the link (like a rollover l

  • CO15 quantity field as uneditable

    Hi, Can any one tell me how to make the BOM Quantity field as uneditable in goods movement overview screen of CO15 Transaction ? Regards, Krishnam Raju