Flex TreeItemRenderer issue with Height

Hello.
I went trought alot of nightmare nights with this TreeItemRenderer in forums, Stack Overflow, Expert-Exchange and etc., and i left without actually help on my issue. I hope i got it here finally.
The idea is basically create an item for a Tree , and this item can have some buttons if it is not a branch, and theese buttons is destributed vertically within the item, just below the label.
Here the piece of code making my days and nights nightmares.
override protected function commitProperties():void
super.commitProperties();
if( data.@idNode != null )
isNode = data.@isNode == "true";
else
isNode = false;
if( isNode )
if( data.@rooming != null )
allowedB1 = data.@b1 == "true";
else
allowedB1 = false;
if( data.@engineControl != null )
allowedB1B2 = data.@b1b2 == "true";
else
allowedB1B2 = false;
if( isNode )
// color box
var _color : uint = 0x000000;
if( data.@busColor )
_color = uint( data.@busColor );
colorBox.graphics.beginFill( _color, 0.9 );
colorBox.graphics.drawRect( 0, 0, 12, 6 );
colorBox.graphics.endFill();
var _buttonStackHeight : Number = 0;
if( allowedB1 )
_buttonStackHeight += 22;
if( allowedB1B2 )
_buttonStackHeight += 44;
_buttonStackHeight += 15;
//buttonsHolder.visible        = _buttonStackHeight > 1;
this.measuredHeight          = _buttonStackHeight +20;
this.measuredMinHeight       = _buttonStackHeight +20;
this.minHeight               = _buttonStackHeight +20;
else
//buttonsHolder.visible = false;
this.measuredHeight          = 20;
this.measuredMinHeight       = 20;
this.minHeight               = 20;
override protected function createChildren() : void
super.createChildren();
mainCheckBox = new CheckBox();
mainCheckBox.setStyle( "verticalAlign", "top" );
mainCheckBox.addEventListener( MouseEvent.CLICK, checkBoxToggleHandler );
addChild( mainCheckBox );
unknownStateImage        = new Image();
unknownStateImage.source = inner;
unknownStateImage.addEventListener( MouseEvent.CLICK, imageToggleHandler );
unknownStateImage.setStyle( "verticalAlign", "top" );
addChild( unknownStateImage );
colorBox = new UIComponent();
addChild( colorBox );
buttonsHolder = new VBox();
addChild( buttonsHolder );
btn1       = new Button();
btn1.label = "b1";
buttonsHolder.addChild( btn1 );
btn2       = new Button();
btn2.label = "b2";
buttonsHolder.addChild( btn2 );
btn3       = new Button();
btn3.label = "b3";
buttonsHolder.addChild( btn3 );
override protected function updateDisplayList( unscaledWidth : Number, unscaledHeight : Number ) : void
super.updateDisplayList( unscaledWidth, unscaledHeight );
        if( super.data )
if( data.@state == STATE_UNKNOWN )
unknownStateImage.x      = mainCheckBox.x +1;
unknownStateImage.y      = mainCheckBox.y - ( imageHeight/2 );
unknownStateImage.width  = imageWidth;
unknownStateImage.height = imageHeight;
else
unknownStateImage.x      = 0;
unknownStateImage.y      = 0;
unknownStateImage.width  = 0;
unknownStateImage.height = 0;
applyStandartObjectsProperties();
buttonsHolder.visible = isNode;
colorBox.visible      = isNode;
if( isNode )
btn1.visible = allowedB1;
//btn2.visible    = btn3.visible = allowedB1B2;
var _buttonStackHeight : Number = 0;
var _buttonsWidth      : Number = unscaledWidth - ( this.icon.x +6 );
colorBox.x = super.icon.x + super.icon.width + 4;
colorBox.y = 7;
if( allowedB1 )
btn1.x      = 1;
btn1.y      = _buttonStackHeight +1;
btn1.height = 20;
btn1.width  = _buttonsWidth;
_buttonStackHeight += 21;
if( allowedB1B2 )
btn2.x      = 1;
btn2.y      = _buttonStackHeight +1;
btn2.height = 20;
btn2.width  = _buttonsWidth;
_buttonStackHeight += 21;
btn3.x      = 1;
btn3.y      = _buttonStackHeight +1;
btn3.height = 20;
btn3.width  = _buttonsWidth;
_buttonStackHeight += 21;
_buttonStackHeight += 10;
buttonsHolder.x       = this.icon.x;
buttonsHolder.y       = 20 +1;
buttonsHolder.height  = _buttonStackHeight +2;
buttonsHolder.width   = _buttonsWidth +2;
buttonsHolder.visible = true;
else
buttonsHolder.visible = false;

I assume you are using EHP4 on a NW 7.0 release?
One of our customers has a similar problem, but we have not yet found a solution for it

Similar Messages

  • Flex Module issue with Panel

    Hello everyone. I have the following problem.
    In my application I have several modules and each of them have components CollapsableTitleWindow (extends Panel). After opening the window it is added to the container which is in the main application (CollapsableTitleWindowContainer). In these windows you can open another window (and so on).
    Now, what is the problem. When I change (reload) any module and I want to open a new window (sub window) with the already loaded window I get this error:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at mx.containers::Panel/layoutChrome()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\containers\Panel.as:1405]
    at com::CollapsableTitleWindow/layoutChrome()[D:\Flex 3 Workspace\WesobCrm\src\com\CollapsableTitleWindow.as:216]
    at mx.core::Container/updateDisplayList()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\Container.as:2867] (...)
    Indicates that the main applications have object Panel
    Please help.
    P.S. I found a similar problem on http://www.nabble.com/Flex-Module-issue-with-Panel-td20168053.html
    ADDED: I extendes the Panel class and do something like that:
    override protected function layoutChrome(unscaledWidth:Number, unscaledHeight:Number):void
                    use namespace mx_internal;
                    if(!(mx_internal::titleBarBackground is TitleBackground)) {
                            mx_internal::titleBarBackground = new TitleBackground();
                    super.layoutChrome(unscaledWidth, unscaledHeight);                     
    But now i had something like that: Before After
    You can see that it loos style declaration.H

    Thanks for the anserw.
    I don't exacly understand all but i found a solution for my problem and it works.
    Could you tell me if this is ok ?
    I Add in my main app
    public function getProductWindow():ProductWindow {
        return new ProductWindow();
    And in the module i change
    From var productWindow:ProductWindow = new ProductWindow();
    To var productWindow:ProductWindow = Application.application.getProductWindow();

  • Ideapad Flex 14 issue with Windows 10

    I had this with Windows 8.1 for almost 2 years.  It works fine.  Now i upgraded it to windows 10 and everything went ok but both Wired internet connection LAN and Wireless internet connection was not working.  I have downloaded the drivers by myself and also what Lenovo support suggested but it is not working.    Has anyone with Lenovo Flex 14 upgraded to Windows 10 successfully. In some ways Lenovo was advocating to update to windows 10 but they don't want to help me but send me to premium support where i have to pay :-( Thanks in advance for any help.  

    This really is a driver issue with Nvidia SLI or not, but it has to do with this monitor and possibly it's 75Hz refresh rate.  I thought I'd share and hopefully Acer can work with Nvidia to make their new monitors compatible with Win10.  I know we are using bleeding edge tech here, I don't mind doing the troubleshooting as long as someone acknowledges the issue and will fix it. Serious memory leak with 355.60 as soon as the monitor goes to sleep. I've done extensive testing with poolmon, xperf, etc to see if any other drivers cause this, but nothing, this is a brand new win10 fresh install. Easiest way I can show this is via MSI afterburner. Monitor is set to sleep after 1 minute so I can do this quick test.    You can see less than 2 minutes in, pagefile usage already jumped up 4gb.Unless I wake the monitor, this will eventually eat up all virtual memory resulting in:  

  • Flex RSL issue with SDK version change?

    Hi Friends!
         I am facing very crucial common problem when using Flex RSL feature.
    Problem:  My Custom component library is compiled with Flex 3.0 and more than 50 applications are using it. Now some of our new applications needs to use the features from Flex 3.2 SDK(like increased control width and height) and those controls should also be in same library.
    So, the library should be common for application which are using 3.0 as well as 3.2.
    My requirement is
    "Without recompiling all Flex 3.0 applications, I need to run both Flex 3.0 and 3.2 applications using library compiled in Flex 3.2"
    now I am getting some errors like,
         Error #1063: Argument count mismatch on mx.core::CrossDomainRSLItem()  -- from systemmanager
         VerifyError: Error #1053 -- mx.managers.SystemManagerProxy.
         ReferenceError: Error #1065: Variable _*_mx_managers_SystemManager
    Is it possible to win this?
    I hope flex is having backward compatibility.
    Please help me on this.
    Thanks,
    Ananth.

    The only cross-version compatibility is called the Marshall Plan.  It is described on the open source wiki and on my blog.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

  • Flex incompatibility issue with SDK 3.5.0.12683 and IE6

    Anyone have experience with issues for IE6 and Flex SDK 3.5.0.12683?
    As a secondary issue, does anyone know of a way to force a browser cache refresh?
    thanks
    Simon

    Add a random number as a parameter to the url.
    Something like:
    url = url + "?t=" + new Date().time;

  • Flex login issues with http service

    I need help.
    I have a process that i have written to login. It runs C code
    and verifies login and password on a unix server.
    [RPC Fault faultString="HTTP request error"
    faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent
    type="ioError" bubbles=false cancelable=false eventPhase=2
    text="Error #2032: Stream Error. URL:
    http://genesis.dvrdns.org/flex/cgi-bin/login.cgi"
    URL:
    http://genesis.dvrdns.org/flex/cgi-bin/login.cgi"
    at mx.rpc::AbstractInvoker/
    http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\3.1.0\frameworks\project s\rpc\src\mx\rpc\AbstractInvoker.as:218
    at
    mx.rpc::Responder/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\Responder.as:53 ]
    at
    mx.rpc::AsyncRequest/fault()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\rpc\AsyncRequest .as:103]
    at
    DirectHTTPMessageResponder/errorHandler()[E:\dev\3.1.0\frameworks\projects\rpc\src\mx\mes saging\channels\DirectHTTPChannel.as:343]
    at flash.events::EventDispatcher/dispatchEventFunction()
    at flash.events::EventDispatcher/dispatchEvent()
    at flash.net::URLLoader/redirectEvent()
    i get this error.. when running SNOOP i see
    172.16.1.7 -> ult10 HTTP GET /flex/cgi-bin/login.cgi
    HTTP/1.1
    ult10 -> 172.16.1.7 HTTP R port=52106
    ult10 -> 172.16.1.7 HTTP HTTP/1.1 500 Internal Server
    Error
    172.16.1.7 -> ult10 HTTP C port=52106
    my code shows clearly i am calling post.. I am really new to
    this stuff and only now am i starting to get a feel, so please make
    any info in as simple terms as you can..
    returned code will look like this:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    - <login>
    <login_msg>Please Wait</login_msg> <<
    simple message while data updates.
    <login_valid>1</login_valid> << if the
    login was good or not...
    <login_data>153512</login_data> << this is
    a file name reference for holding data.. needs to be public.
    </login>
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.rpc.events.ResultEvent;
    private function handleLogin(event:ResultEvent):void {
    ]]>
    </mx:Script>
    <mx:HTTPService id="getlogin" url="
    http://somedomain/flex/cgi-bin/login.cgi"
    method="POST" resultFormat="xml"
    result="handleLogin(event)" />
    <mx:ViewStack x="145.5" y="36" id="viewstack1"
    width="339" height="306">
    <mx:Canvas id="login_data" width="100%" height="100%">
    <mx:Panel width="284" height="276" layout="absolute"
    title=" Genesis"
    horizontalAlign="center" verticalAlign="middle"
    horizontalCenter="0" verticalCenter="-5">
    <mx:Text x="42" y="23" text="Login:" height="18"/>
    <mx:TextInput id="login" x="90" y="21"/>
    <mx:Text x="20" y="49" text="Password:" width="62"/>
    <mx:TextInput id="passwd" displayAsPassword="true" x="90"
    y="47" />
    <mx:Text x="29" y="75" text="Domain:"/>
    <mx:TextInput x="90" y="73"/>
    <mx:Button x="90" y="112" label="Button"
    click="getlogin.send()"/>
    </mx:Panel>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:Application>

    i have..
    I will keep trying this stuff isn't cheap :)
    I have tried about everything.. and can come up with zero..
    This is why i have basically posted everything... even the
    url of the data is shown...
    What i really don't understand is why.. no matter what you do
    the request_method always shows GET..
    This is the current C source code...
    It will just print out the env that the apache server is
    getting..
    #include <stdio.h>
    int main(void)
    printf("Content-type: text/plain\n\n");
    char **envp;
    /* print key=value pairs */
    while (*envp != NULL) {
    printf("%s\n", *envp++);
    To view the data.. make a httpservice and set your debug to
    stop once it catches the data...
    Right now i have:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var loginData:ArrayCollection;
    private function handleLogin(event:ResultEvent):void {
    ]]>
    </mx:Script>
    <mx:HTTPService id="getlogin" url="
    http://genesis.dvrdns.org/flex/cgi-bin/login.cgi"
    result="handleLogin(event)" resultFormat="text"
    showBusyCursor="true" method="GET" />
    <mx:ViewStack x="145.5" y="36" id="viewstack1"
    width="339" height="306">
    <mx:Canvas id="login_data" width="100%" height="100%">
    <mx:Panel width="284" height="276" layout="absolute"
    title=" Genesis"
    horizontalAlign="center" verticalAlign="middle"
    horizontalCenter="0" verticalCenter="-5">
    <mx:Form width="272" height="259" x="-8" y="0">
    <mx:Text x="42" y="23" text="Login:" height="18"/>
    <mx:TextInput id="login"/>
    <mx:Text x="20" y="49" text="Password:" width="62"/>
    <mx:TextInput id="passwd" displayAsPassword="true" x="90"
    y="47" />
    <mx:Text x="29" y="75" text="Domain:"/>
    <mx:TextInput x="90" y="73"/>
    <mx:Button x="90" y="112" label="Button"
    click="getlogin.send()"/>
    </mx:Form>
    </mx:Panel>
    </mx:Canvas>
    </mx:ViewStack>
    </mx:Application>
    my breakpoint is set to line 13 of this code...
    at the end of this function:
    private function handleLogin(event:ResultEvent):void {
    I use the debugger to look at the results...
    when you run this.. aginst that C code.. the debugger will
    show the environment of what has been called:
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_METHOD=GET
    QUERY_STRING=
    REQUEST_URI=/flex/cgi-bin/login.cgi
    SCRIPT_NAME=/flex/cgi-bin/login.cgi
    Notice the REQUEST_METOD is get...
    If it is a get method the QUERY string should have some data
    in it...
    If you go to
    http://genesis.dvrdns.org/flex/index.html
    and type some junk on that screen you see different output...
    GATEWAY_INTERFACE=CGI/1.1
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_METHOD=GET
    QUERY_STRING=login=dfgsdgf&password=sdfgd&domain=asdf
    REQUEST_URI=/flex/cgi-bin/login.cgi?login=dfgsdgf&password=sdfgd&domain=asdf
    SCRIPT_NAME=/flex/cgi-bin/login.cgi
    notice the query string.. and the REQUEST_METHOD
    now if i change the HTML
    to POST my "C" source code has to read from standard input...
    and my Method should change to post...
    but in this case.. since i am just printing the env values..
    the POST in my html will have CGI print..
    MET=post and QUERY_STRING will be empty..
    Exmaple:
    Here going to change
    <form action="cgi-bin/login.cgi" method="GET">
    Login: <input type="login" name="login"
    size="10"><br>
    Password: <input type="password" name="password"
    size="10"><br>
    GET to POST
    <form action="cgi-bin/login.cgi" method="POST">
    Login: <input type="login" name="login"
    size="10"><br>
    Password: <input type="password" name="password"
    size="10"><br>
    "index.html" 51 lines, 2700 characters
    I am going to run the SAME app in debugger and via the html..
    the html code will display the method as post and
    query_string as empty which means data should come from standard
    input..
    html is as i expect:
    SERVER_PROTOCOL=HTTP/1.1
    REQUEST_METHOD=POST
    QUERY_STRING=
    REQUEST_URI=/flex/cgi-bin/login.cgi
    SCRIPT_NAME=/flex/cgi-bin/login.cgi
    Now going to set up debugger to run.. The REQUEST_METOD
    should show POST and query string should be zero
    REQUEST_METHOD=GET
    QUERY_STRING=
    REQUEST_URI=/flex/cgi-bin/login.cgi
    SCRIPT_NAME=/flex/cgi-bin/login.cgi
    as you see the METHOD from the debugger has not CHANGED
    my network sniffer even shows my computer sending a request
    of GET and not POST.. which is fine.. i can work with get...
    but just the same.. the software isn't posting the data
    correctly... if at all...
    In my origional source code i use the get method in several
    ways.....
    printf(" <a
    href="url://cgi.script?value&value&value">linkdata</a>
    ", value, value, value);
    the cgi.script has to be a GET method for it to work in this
    way..
    but it isn't working.. the url request sent by this software
    isn't sending it right for some reason...
    I am really stuck until that works..

  • Lenovo Flex 14 issues with touch screen and hard drive

    Dear Lenovo,
    I've just bought this laptop about 3 months ago. First the touch screen giving issue, so went to the service center and they repaired by saying there are problem with the motherboard. Then after a week, problem with windows booting and the touch screen issue still hasn't resolved. When i turn on my laptop it prompts cannot detect hard drive. I've been going to the service center multiple number of times but only worsening my problem.
    I am so frustrated now and don't know what to do. Can Lenovo replace my laptop ?
    Does anyone here have similar issue and have a solution because i just loose hope with the service center ?
    Please kindly reply me as soon as possible.
    Thank you.

    thana88,
    Sorry to hear that you have had multiple service events, and yet problems persist.
    Please send me a private message with your contact information - name, phone number and the type / serial number of your flex 14.  If you have any of the service case numbers, please include these as well..
    We can work to escalate this
    Mark
    ThinkPads: S30, T43, X60t, X1, W700ds, IdeaPad Y710, IdeaCentre: A300, IdeaPad K1
    Mark Hopkins
    Program Manager, Lenovo Social Media (Services)
    twitter @lenovoforums
    English Community   Deutsche Community   Comunidad en Español   Русскоязычное Сообщество

  • After upgrading to NW 7.01, issue with height/width using %

    We upgraded our backend xRPM ABAP Stack to Netweaver 7.01 from 7.0.
    Now, our Adobe forms (ADS sits on a java Netweaver 7.0 server) are not displaying correctly - we launch them from ABAP Web Dynpro into a separate window. The forms appear in a small rectangle at the top of the new window.
    I checked the Form UI element and notice that the height and width properties are set to 100%. I change these to 800px by 600px and it appears as specified. However, I really would like the form to resize itself based on the window and not force the size to be static
    anyone experience this issue after upgrading?

    closing issue - reference note 1266588

  • Adobe Flex integration - Issue with populating table in Flex

    I'm trying to populate a table EXORGDS. In SAP I have defined the same DATASOURCE as EXORGDS. Here is the code I have defined in Flex.
    <mx:DataGrid id="OrgGr" borderStyle="outset"  backgroundAlpha="2" width="285" rowCount="3" backgroundColor="#ffffff" dataProvider="">
                <mx:columns>
                    <mx:DataGridColumn dataField="PORGUNIT" headerText="Org Unit"/>
                    <mx:DataGridColumn dataField="PORGDESC" headerText="Description"/>
                </mx:columns>
      </mx:DataGrid>
    Am I missing something here.
    Regards,
    Imthiaz

    Hi Srilatha,
    I am struck in the same problem. I am using the grouping collection option in Flex but my data is not getting displayed in the Flash Island, I have attached the code sample. Kindly guide me.
    <mx:AdvancedDataGrid id="myADG"
            width="100%" height="100%"
             initialize="gc.refresh();"  >       
            <mx:dataProvider>
                <mx:GroupingCollection id="gc" source="{datasource}">
                    <mx:grouping>
                        <mx:Grouping>
                            <mx:GroupingField name="{dis}"/>
                            <mx:GroupingField name="{ter}"/>
                        </mx:Grouping>
                    </mx:grouping>
                </mx:GroupingCollection>
            </mx:dataProvider>       
            <mx:columns>
                <mx:AdvancedDataGridColumn dataField="{dis}"
                 headerText="Employee Name"/>
                <mx:AdvancedDataGridColumn dataField="{ter}"
                    headerText="Age"/>
                <mx:AdvancedDataGridColumn dataField="{act}"
                  headerText="Department" />
                <mx:AdvancedDataGridColumn dataField="{est}"
                  headerText="Job Title"/>
            </mx:columns>
        </mx:AdvancedDataGrid>  
    Thanks
    Vivek

  • Auto adjustment of page orientation causes printing issues with documents that have a page width greater than its page height.

    Hi,
    Since an upgrade from Word 2003 to Word 2010, we are experiencing printing issues with certain
    documents that have a page width greater than its page height.
    In Word 2003, it was no problem to set the page width greater than the page height while setting the page orientation to "portrait".
    In Word 2010, this seems impossible: despite leaving the page orientation to "portrait", if one changes the page width/height as stated,
    Word 2010 automatically adjusts the orientation to "landscape". Resetting the orientation to "portrait" will flip the page's width/heigth settings.
    This behaviour causes printing problems: the page prints out 90° rotated.
    I do not believe this is a printer driver issue: I tried several different printer drivers, and all give the same (bad) result. Setting the printer driver's page orientation settings (before printing) makes no difference, as
    Word 2010 seems to force the page orientation settings.
    Inserting the documents 90° rotated is not an option, since it causes problems with the printing margins.
    This is very annoying, since we have to print official documents of a municipality (driver's licences).
    Is there a workaround for this issue?
    Regards,
    Laurent Grandgaignage
    Sysadmin Gemeentebestuur Stabroek, Belgium

    Hi
    Thank you for using
    Microsoft Office for IT Professionals Forums.
    From your description, we can follow these steps to test this issue
    Step 1: Repair Office 2010
    1.      
    Click
    Start, and then click Control Panel.
    2.      
    Click
    Programs and Features.
    3.      
    Click the
    Office 2010 program that you want to repair, and then click
    Change.
    4.      
    Click
    Repair, and then click Continue. You might need to restart your computer after the repair is complete.
    Step 2:
    Rename the global template (Normal.dotm)Follow the steps for the operating system that you are using:
    Windows Vista and Windows 7
    a)      
    Exit Word 2010
    b)      
    Click
    Start.
    c)       
    In the
    Start Search box, type the following text, and then press
    ENTER:
    1.      
    %userprofile%\appdata\roaming\microsoft\templates
    d)      
    Right-click
    Normal.dotm, and then click Rename.
    e)      
    Type
    Oldword.old, and then press ENTER.
    Microsoft Windows XP
    a)      
    Exit Word 2010
    b)      
    Click
    Start, and then click Run.
    c)       
    In the
    Open box, type the following text, and then press ENTER:
    %userprofile%\Application Data\Microsoft\Templates
    d)      
    Right-click
    Normal.dotm, and then click Rename.
    e)      
    Type
    Oldword.old, and then press ENTER.
    f)       
    Close Windows Explorer.
    How to troubleshoot print failures in Word 2010, Word 2007, and Word 2003
    http://support.microsoft.com/kb/826845
    Please take your time to try the suggestions and let me know the results at your earliest convenience. If anything is unclear or if there is anything
    I can do for you, please feel free to let me know.
    Hope that helps.
    Sincerely
    William Zhou CHNPlease remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Issue with graphics tearing on thumb scroll in Flex 3

    We are seeing some off issues with graphics (one using the charting package and the other using degrafa) tearing on thumb scrolling in a large Flex 3 app.  It's very hard to reproduce on OSX with the latest versions of Safari and Firefox, but it shows almost immediately when you run the app on Windows or Linux (regardless of the browser).  I took one of the pieces out of the app and put it into a very simple testbed app and can't get the problem to show on Windows (i was hoping to isolate the issue in a smaller test case, but no such luck).
    So, ii've got a few idea's on how to work around the issue, but i was wondering if anyone else has seen this type of problem before?
    Problem:   
         - graphics tear on thumb scroll
         - doesn't happen if you click in the track or use the arrows
         - one view is using the charting package, the other view is using degrafa
    Thanks for any comments or suggestions...
    Richard

    SOLUTION:  changed wmode from "opaque" to "window" in the jsp serving as the wrapper for the app's main swf...
    Here's the reference we used to determine the proper setting for wmode;
    http://kb2.adobe.com/cps/127/tn_12701.html
    Thanks again for the response...  Richard

  • Issues with file upload in flex mobile application (sharepoint as backend)

    Hello,
    I am working on flex mobile application for android platform for which we are having sharepoint as a backend.
    (Flex SDK 4.6 and AIR 3.9)
    Issue which we are facing is as follows:
    We are communicating with the backend server using webservices: example:
    <s:WebService id="kWebService" wsdl="http://www.kservice.net/kdatabaseservice.asmx?WSDL" >
                <s:operation name="AddPost"
                             resultFormat="object"
                             result="addPostResult(event)"
                             fault="postsfaulterr(event)" />
    </s:WebService>
    Above services are working fine but we are facing issue with one service which is related to file upload.
    File upload for <10 MB is working fine but when we try to upload larger file on server it fails to process.
    We are sending bytearray to the backend and backend code is writing those bytearray into file.
    We have tried many ways to overcome from this situation. like we have checked configuration for file upload size on server , we have tried wcf services as well. Please help us on this criticle point as soon as possible
    Thanks
    Dhwani

    Prashant8809 wrote:
    Hi
    >
    > I have already gone through the video by Thomas Jung for multiple file upload but it saves the contents in server and not in >transparent table. So please suggest me alternative solutions.
    >
    >
    > Regards
    > Prashant Chauhan
    What do you mean that my video saves the contents int he server and not in transparent table?  I save the data into a temporary database table so it can be accessed by the parent WDA session. From there the WDA session can do whatever it wants with it.  What do you mean by transparent table - that would be a database table. Do you actually mean internal table?  if so, just read the data from the temporary database table into memory.

  • Issue with flex lifecycle

    I am trying to address an issue with flex lifecycle
    There is a ui component ( say CompA) comprising of multiple tabs with individual components used in each of them.
    CompA uses a data object that is used to populate the fields.
    On click of a button in another panel, I am setting the current state of the application to this view component and after CompA is completely rendered I would like to load the data object and populate the fields.
    The issue here is I cannot use the creationComplete event of CompA to load this data object because at this time not all components are  completely created. (creationComplete of each of those components is not completed yet),.
    When exactly can I load this data object into the UI fields. I am not able to figure out where even callLater() can be used .
    applicationComplete 
    Event doesn’t seem to be an option, in this case.

    You can load the data when the state changes.  There are events for that.
    You could also look into updateComjplete which may work for you.

  • Flex file upload issue with large image files

         Hello, I have created a sample flex application to upload an image and also created java servlet to upload and save image and deployed in local tomcat server. I am testing the application in LAN. I am able to upload small as well as large image file(1Mb) from some PCs but in some other PCs I am getting IOError while uploading large image files however it is working fine for small images. Image uploading is hanging after 10%-20% and throwing IOError. *Surprizgly it is working Ok with XP systems and causeing issues with Windows7 systems*.
    Plz give me any idea to get a solution.
    In Tomcat server side it is giving following error:
    request: org.apache.catalina.connector.RequestFacade@c19694
    org.apache.commons.fileupload.FileUploadBase$IOFileUploadException: Processing of multipart/form-data request failed. Stream ended unexpectedly
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:371)
            at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.ja va:126)
            at flex.servlets.UploadImage.doPost(UploadImage.java:47)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
            at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.j ava:290)
            at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
            at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
            at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
            at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
            at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
            at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
            at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
            at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:877)
            at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProto col.java:594)
            at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1675)
            at java.lang.Thread.run(Thread.java:722)
    Caused by: org.apache.commons.fileupload.MultipartStream$MalformedStreamException: Stream ended unexpectedly
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.makeAvailable(MultipartStre am.java:982)
            at org.apache.commons.fileupload.MultipartStream$ItemInputStream.read(MultipartStream.java:8 86)
            at java.io.InputStream.read(InputStream.java:101)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:96)
            at org.apache.commons.fileupload.util.Streams.copy(Streams.java:66)
            at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:366)
    UploadImage.java:
    package flex.servlets;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import java.text.*;
    import java.util.regex.*;
    import org.apache.commons.fileupload.servlet.ServletFileUpload;
    import org.apache.commons.fileupload.disk.DiskFileItemFactory;
    import org.apache.commons.fileupload.*;
    import sun.reflect.ReflectionFactory.GetReflectionFactoryAction;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class UploadImage extends HttpServlet{
             * @see HttpServlet#doGet(HttpServletRequest request, HttpServletResponse
             *      response)
            protected void doGet(HttpServletRequest request,
                            HttpServletResponse response) throws ServletException, IOException {
                    // TODO Auto-generated method stub
                    doPost(request, response);
            public void doPost(HttpServletRequest request,
                            HttpServletResponse response)
            throws ServletException, IOException {
                    PrintWriter out = response.getWriter();
                    boolean isMultipart = ServletFileUpload.isMultipartContent(
                                    request);
                    System.out.println("request: "+request);
                    if (!isMultipart) {
                            System.out.println("File Not Uploaded");
                    } else {
                            FileItemFactory factory = new DiskFileItemFactory();
                            ServletFileUpload upload = new ServletFileUpload(factory);
                            List items = null;
                            try {
                                    items = upload.parseRequest(request);
                                    System.out.println("items: "+items);
                            } catch (FileUploadException e) {
                                    e.printStackTrace();
                            Iterator itr = items.iterator();
                            while (itr.hasNext()) {
                                    FileItem item = (FileItem) itr.next();
                                    if (item.isFormField()){
                                            String name = item.getFieldName();
                                            System.out.println("name: "+name);
                                            String value = item.getString();
                                            System.out.println("value: "+value);
                                    } else {
                                            try {
                                                    String itemName = item.getName();
                                                    Random generator = new Random();
                                                    int r = Math.abs(generator.nextInt());
                                                    String reg = "[.*]";
                                                    String replacingtext = "";
                                                    System.out.println("Text before replacing is:-" +
                                                                    itemName);
                                                    Pattern pattern = Pattern.compile(reg);
                                                    Matcher matcher = pattern.matcher(itemName);
                                                    StringBuffer buffer = new StringBuffer();
                                                    while (matcher.find()) {
                                                            matcher.appendReplacement(buffer, replacingtext);
                                                    int IndexOf = itemName.indexOf(".");
                                                    String domainName = itemName.substring(IndexOf);
                                                    System.out.println("domainName: "+domainName);
                                                    String finalimage = buffer.toString()+"_"+r+domainName;
                                                    System.out.println("Final Image==="+finalimage);
                                                    File savedFile = new File(getServletContext().getRealPath("assets/images/")+"/LowesFloorPlan.png");
                                                    //File savedFile = new File("D:/apache-tomcat-6.0.35/webapps/ROOT/example/"+"\\test.jpeg");
                                                    item.write(savedFile);
                                                    out.println("<html>");
                                                    out.println("<body>");
                                                    out.println("<table><tr><td>");
                                                    out.println("");
                                                    out.println("</td></tr></table>");
                                                    try {
                                                            out.println("image inserted successfully");
                                                            out.println("</body>");
                                                            out.println("</html>");  
                                                    } catch (Exception e) {
                                                            System.out.println(e.getMessage());
                                                    } finally {
                                            } catch (Exception e) {
                                                    e.printStackTrace();

    It is only coming in Windows 7 systems and the root of this problem is SSL certificate.
    Workaround for this:
    Open application in IE and click on certificate error link at address bar . Click install certificate and you are done..
    happy programming.
    Thanks
    DevSachin

  • Issue with child items of flex tree using QTP

    Hi,
    We are trying to automate Flex web application using QTP10.
    We are facing below issue with Flex tree when we try to automate a scenario of selecting a child item displayed in flex tree.
    Issue:
    On recording the step of selecting an item from Flex tree using QTP, the script displayed is .Select Index1. But when we replay it back no action is being performed.
    Also on object spy we are able to navigate only till flex tree and we are not able to spy child items of flex tree.On the web page the child items are displayed as radio buttons/checkboxes.
    Please provide a solution for me to this problem.
    Thanks

    Hi,
    You could perform a HTTP trace (using HTTP watch) and compare the OCI data in POST method for both users (the correct and incorrect ones).
    Perhaps there is some additional/missing information being passed from catalog to SRM.
    Kind regards,
    Ricardo

Maybe you are looking for