Combobox Alpha

when changing combobox alpha from 1 to 0, the combobox itself
fades, but the selection is still visible.. is there any way around
this?

You can also use the Dissolve effect instead of the Fade. The
Dissolve
effect places a DisplayObject on top of the target and then
adjusts the
alpha of that overlay.
Jason Szeto
Adobe Flex SDK Developer
"Mike Morearty (Adobe)" <[email protected]> wrote
in message
news:e7rshb$csq$[email protected]..
> The issue is that if you don't "embed" the fonts --
meaning, compile them
> right into the .swf -- then text will not fade along
with the ComboBox.
>
> There are two ways around this problem:
>
> 1. Embed your fonts. Search the Flex Builder docs for
help on this; in my
> copy (a recent internal build), this is discussed under
"Flex 2
> Developer's Guide > Customizing the User Interface
> Using Fonts > Using
> embedded fonts."
>
> 2. After the fade, set combobox.visible = false.
Although the "alpha"
> property does not work on non-embedded fonts, the
"visible" property does.
> This works fine except that is has the slightly quirky
effect of having
> the text remain at 100% alpha while the rest of the
combobox fades around
> it; then the text disappears. If the fade is pretty
quick, e.g. 1/2
> second or less, then this isn't much of a problem; but
for slower fades,
> it will look odd. So, solution #1 is probably a better
way to go.
>
>
> --
> Mike Morearty
> Developer, Flex Builder team
>
http://www.morearty.com/blog

Similar Messages

  • How to set alpha or transparency of ComboBox

    Hi,
    I'm using AS2 with Flash CS4. How can I change the alpha of a ComboBox?
    I tried:
    MyCombo._alpha = 25;
    // and
    MyCombo.alpha = 25;
    but both have no effect on my ComboBox, it just appears to have the alpha set to 100.
    Many thanks in advance

    Nevermind, I solved it by not using _root. in front of the combobox name.
    Does anyone know how to set the alpha of the background only of a combobox? Currently the entire combobox is being faded so the text and border is hard to see.

  • New Skinning For ComboBoxes

    Does anyone know a good resource for Skinning Comboboxes?  I know basic skining, and have been able to skin the text fields, and the 'openButton' for comboBox, however I am looking to do more.
    Specifically, I want to skin the BG of the dropDown so it will look similiar to this: http://screencast.com/t/NzY5YjYx however, with the BG scaling properly.
    Right now the BG is a MC i made in Flash (cs4) with 9 Slice enabled, and turned on. The skin that I currently have set on the box is as follows:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Skin xmlns:fx="http://ns.adobe.com/mxml/2009"
            xmlns:s="library://ns.adobe.com/flex/spark"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <!-- host component -->
        <fx:Metadata>
            [HostComponent("spark.components.ComboBox")]
        </fx:Metadata>
        <!-- states -->
        <s:states>
            <s:State name="open" />
            <s:State name="disabled" />
            <s:State name="normal" />
        </s:states>
        <!-- SkinParts
        name=textInput, type=spark.components.TextInput, required=false
        name=openButton, type=spark.components.supportClasses.ButtonBase, required=true
        name=dropDown, type=flash.display.DisplayObject, required=false
        name=scroller, type=spark.components.Scroller, required=false
        name=dropIndicator, type=mx.core.IFactory, required=false
        name=dataGroup, type=spark.components.DataGroup, required=false
        -->
        <s:PopUpAnchor id="popUp"  displayPopUp.normal="false" displayPopUp.open="true" includeIn="open"
                       left="0" right="0" top="0" bottom="0" itemDestructionPolicy="auto"
                       popUpPosition="below" popUpWidthMatchesAnchorWidth="true">
            <s:Group id="dropDown" maxHeight="184" minHeight="50" >
                <!-- drop shadow -->
                <!--- @private -->
                <s:RectangularDropShadow id="dropShadow" blurX="20" blurY="20" alpha="0.45" distance="7"
                                         angle="90" color="#FF0000" left="0" top="0" right="0" bottom="0"/>
                <!-- border -->
                <!--- @private -->
                <s:Rect id="border" left="0" right="0" top="0" bottom="0">
                    <s:fill>
                        <s:SolidColor color="0xff0000" alpha="0"/>
                    </s:fill>
                    <s:stroke>
                        <!--- @private -->
                        <s:SolidColorStroke id="borderStroke" weight="1" alpha="0" />
                    </s:stroke>
                </s:Rect>
                <mx:Image source="@Embed('src/com/mindspark/SkinTest1/assets/testSwf.swf#box2')"  id="background"  height="{dropDown.height}" width="{dropDown.width}"/>
                <!-- fill -->
                <!--- Defines the appearance of drop-down list's background fill. -->
                <s:Rect id="background2" left="1" right="1" top="1" bottom="1" >
                    <s:fill>
                        <!--- 
                        @private
                        The color of the drop down's background fill.
                        The default color is 0xFFFFFF.
                        -->
                        <s:SolidColor id="bgFill" color="0x000000" alpha="0"/>
                    </s:fill>
                </s:Rect>
                <!--- @private -->
                <s:Scroller id="scroller" left="0" top="0" right="0" bottom="0" hasFocusableChildren="false" minViewportInset="1">
                    <!--- @copy spark.components.SkinnableDataContainer#dataGroup-->
                    <s:DataGroup id="dataGroup" itemRenderer="spark.skins.spark.DefaultItemRenderer">
                        <s:layout>
                            <s:VerticalLayout gap="0" horizontalAlign="contentJustify"/>
                        </s:layout>
                    </s:DataGroup>
                </s:Scroller>
            </s:Group>
        </s:PopUpAnchor>
        <s:TextInput id="textInput" text="DOOOGs" skinClass="com.mindspark.SkinTest1.view.skin.TextInputSkin" />
        <!---  The default skin is ComboBoxButtonSkin.
        @copy spark.components.supportClasses.DropDownListBase#openButton
        @see spark.skins.spark.ComboBoxButtonSkin -->
        <s:Button id="openButton" width="19" right="0" top="0" bottom="0" focusEnabled="false"
                  skinClass="com.mindspark.SkinTest1.view.skin.OpenButtonSkin" /> 
    </s:Skin>
    Any help to what i am doing wrong, or a point to a good resource would be really super.  Thanks for the help.

    Hi,
    If you set the constraints rather than width and height it should work
    <mx:Image source="@Embed('src/com/mindspark/SkinTest1/assets/testSwf.swf#box2')"  id="background"
    top="1" left="1" bottom="1" right="1"/>
    David.

  • Flex 3 rowCount thing for combobox happen in flex 4

    I can't find a way to have the flex 3 rowCount thing for combobox happen in flex 4. I tried this:
    <s:ComboBox id="cb" width="240">
                    <s:layout>
                        <s:VerticalLayout requestedRowCount="25" >
                        </s:VerticalLayout>
    but no change

    Heres a skin you could try for the cb lol
    <?xml version="1.0" encoding="utf-8"?>
    <!--
    ADOBE SYSTEMS INCORPORATED
    Copyright 2008 Adobe Systems Incorporated
    All Rights Reserved.
    NOTICE: Adobe permits you to use, modify, and distribute this file
    in accordance with the terms of the license agreement accompanying it.
    -->
    <!--- The default skin class for the Spark DropDownList component.
    The skin for the anchor button for a DropDownList component
    is defined by the DropDownListButtonSkin class.
    <p>In a custom skin class that uses transitions, set the
    <code>itemDestructionPolicy</code> property to <code>none</code>
    for the PopUpAnchor defined by the popUp property.</p>    
    @see spark.components.DropDownList       
    @see spark.skins.spark.DropDownListButtonSkin
    @langversion 3.0
    @playerversion Flash 10
    @playerversion AIR 1.5
    @productversion Flex 4
    -->
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark"
                 xmlns:fb="http://ns.adobe.com/flashbuilder/2009" alpha.disabled=".5">
        <!-- host component -->
        <fx:Metadata>
            <![CDATA[
            * @copy spark.skins.spark.ApplicationSkin#hostComponent
            [HostComponent("spark.components.DropDownList")]
            ]]>
        </fx:Metadata>
        <fx:Script fb:purpose="styling">
            <![CDATA[           
                /* Define the content fill items that should be colored by the "contentBackgroundColor" style. */
            //    static private const contentFill:Array = ["bgFill"];
                 * @private
            //    override public function get contentItems():Array {return contentFill};
                 * @private
                override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
                    if (getStyle("borderVisible") == false)
                        if (border)
                            border.visible = false;
                        if (background)
                            background.left = background.top = background.right = background.bottom = 0;
                        if (scroller)
                            scroller.minViewportInset = 0;
                    else
                        if (border)
                            border.visible = true;
                        if (background)
                            background.left = background.top = background.right = background.bottom = 1;
                        if (scroller)
                            scroller.minViewportInset = 1;
                    if (dropShadow)
                        dropShadow.visible = getStyle("dropShadowVisible");
                    openButton.setStyle("cornerRadius", getStyle("cornerRadius"));
                    if (borderStroke)
                        borderStroke.color = getStyle("borderColor");
                        borderStroke.alpha = getStyle("borderAlpha");
                    super.updateDisplayList(unscaledWidth, unscaledHeight);
            ]]>
        </fx:Script>
        <s:states>
            <s:State name="normal" />
            <s:State name="open" />
            <s:State name="disabled" />
        </s:states>
        <!---
        The PopUpAnchor control that opens the drop-down list.
        <p>In a custom skin class that uses transitions, set the
        <code>itemDestructionPolicy</code> property to <code>none</code>.</p>
        -->
        <s:PopUpAnchor id="popUp"  displayPopUp.normal="false" displayPopUp.open="true" includeIn="open"
                       left="0" right="0" top="0" bottom="0" itemDestructionPolicy="auto"
                       popUpPosition="below" popUpWidthMatchesAnchorWidth="true">
            <!---
            This includes borders, background colors, scrollers, and filters.
            @copy spark.components.supportClasses.DropDownListBase#dropDown
            -->
            <s:Group id="dropDown" maxHeight="800" minHeight="22" >
                <!--- @private -->
                <s:RectangularDropShadow id="dropShadow" blurX="20" blurY="20" alpha="0.45" distance="7"
                                         angle="90" color="#000000" left="0" top="0" right="0" bottom="0"/>
                <!--- @private -->
                <s:Rect id="border" left="0" right="0" top="0" bottom="0">
                    <s:stroke>
                        <!--- border stroke @private -->
                        <s:SolidColorStroke id="borderStroke" weight="1"/>
                    </s:stroke>
                </s:Rect>
                <!-- fill -->
                <!--- Defines the appearance of drop-down list's background fill. -->
                <s:Rect id="background" left="1" right="1" top="1" bottom="1" >
                    <!--    <s:SolidColor id="bgFill" color="0xFFFFFF" />-->
                    <s:stroke>
                        <s:SolidColorStroke color="#555555" />
                    </s:stroke>
                    <s:fill >
                        <s:LinearGradient rotation="75" >
                            <s:GradientEntry color="0x0e47a5"  />
                            <s:GradientEntry color="0x27c1f4" />
                            <s:GradientEntry color="0x0e47a5" />
                        </s:LinearGradient>
                    </s:fill>  
                </s:Rect>
                <!--- @private -->
                <s:Scroller id="scroller" left="0" top="0" right="0" bottom="0" hasFocusableChildren="false" minViewportInset="1">
                    <!--- @copy spark.components.SkinnableDataContainer#dataGroup-->
                    <s:DataGroup id="dataGroup" itemRenderer="spark.skins.spark.DefaultItemRenderer">
                        <s:layout>
                            <s:VerticalLayout gap="0" horizontalAlign="contentJustify" requestedRowCount="15"/>
                        </s:layout>
                    </s:DataGroup>
                </s:Scroller>
            </s:Group>
        </s:PopUpAnchor>
        <!---  The default skin is DropDownListButtonSkin.
        @copy spark.components.supportClasses.DropDownListBase#openButton
        @see spark.skins.spark.DropDownListButtonSkin -->
        <s:Button id="openButton" left="0" right="0" top="0" bottom="0" focusEnabled="false"
                  skinClass="spark.skins.spark.DropDownListButtonSkin" /> 
        <!--- @copy spark.components.DropDownList#labelDisplay -->
        <s:Label id="labelDisplay" verticalAlign="middle" maxDisplayedLines="1"
                 mouseEnabled="false" mouseChildren="false"
                 left="7" right="30" top="2" bottom="2" width="75" verticalCenter="1" />
    </s:SparkSkin>

  • Problem with my ComboBox

    Hi,
    I have a demo containing many sections. At the end of each
    section a clip is loaded from the library that has a bunch of links
    and a comboBox in it that lists all the other sections. Everything
    is working as it should except that when you open the comboBox the
    list appears behind everything else in the clip.
    Why why why?
    Also, is there a way to embed fonts in to the fields of the
    list as with dynamic text fields so that alpha effect etc can be
    applied to the CB (the movie it is in fades up from alpha 0 but the
    CB text just appears)
    Thanks for any help

    Here's how I'm proceeding :
    I click one time on the ComboBox to open the item list. Then, the list appears.
    So, I click a second time on the wanted item. Then, the list disappears (it's normal !) but the wanted item is not selected !
    I've tried to put "System.out.println" everywhere in my code and I saw that it seems that both item events and action events (depending on the case) are not captured !
    Caro

  • Spark skinning - combobox transparent background issue

    Hi,
    I have a custom combobox component whose background is transparent when it is in a titlewindow , but looks opaque in a cell of a datagrid. The code for background for combobox is
    <!--- Defines the appearance of drop-down list's background fill. -->
    <s:Rect id="background" left="1" right="1" top="1" bottom="1" >
    <s:fill>
    <!---@private
    The color of the drop down's background fill.
    The default color is 0xFFFFFF.
    -->
    <s:SolidColor id="bgFill" color="0xFFFFFF"/>
    </s:fill>
    </s:Rect>
    The code for background fill of titlewindow is
    <!-- layer 2: background fill -->
    <!--- Defines the appearance of the TitleWindowSkin class's background. -->
    <s:Rect id="background" left="1" top="1" right="1" bottom="1">
    <s:fill>
    <!--- Defines the TitleWindowSkin class's background fill. The default color is 0xFFFFFF. -->
    <s:SolidColor id="backgroundFill" color="#FFFFFF"/>
    </s:fill>
     </s:Rect>
    Though setting the alpha to 1 in either code did not work. Please help.

    Setting of contentBackgroundAlpha for the combobox worked.

  • Set Combobox value based on Datagrid selectedItem

    I have been searching the forums and google for some time now
    and I'm not sure how do this. I populate a datagrid from a
    httpservice call to a php script. The datagrid is displaying
    perfectly. I also populate two comboboxes from the same httpservice
    with specific values. When I select a row in the datagrid, I'd like
    the value of the combobox to change to that which corresponds to
    the value from the datagrid.
    I also have a few TextInput fields mixed in with the
    comboboxes and I'm able to set those to the
    datagridname.selectedItem.item. I would like to do the same for the
    comboboxes.
    The reason is so that I can edit users in a group within a
    database. The comboboxes are for the specific groups that are
    allowed to all users.
    Please let me know if any other information is necessary. I
    didn't think any of my current code would help with this question.
    Any examples would be great, I just couldn't find any....
    Thanks in advance for your time.
    Chris

    Tracy - I think I'm progressing, but I'm still running into
    problems. I've changed the httpservice to call an eventhandler,
    which in turn I use in the datagrid to populate it. I'm sure I
    might need to change something, but it is working.... Once I get it
    all working, I'll stop using lastResult and build event handlers,
    now that I'm starting to get a better grasp on it.
    I do get an error though, stating: "Data binding will not be
    able to detect changes to XMLList "user", need an XML instance."
    Also, I can't seem to get "trace" to work. I'm guessing it should
    be popping up a window? If I do an alert popup, it does show the
    data.
    [Bindable]private var myData:XMLList;
    private function test(oEvent:ResultEvent):void {
    myData = XMLList(oEvent.result);
    trace(myData.toXMLString());
    mx.controls.Alert.show(myData);
    <mx:HTTPService id="getUsers"
    url="https://server/flex/getusers.php" resultFormat="e4x"
    result="test(event)" useProxy="false" method="GET"/>
    <mx:DataGrid id="dgUserDetails" right="5"
    dataProvider="{myData.user}" height="315"
    click="onChangeUser(event)">
    <mx:columns>
    <mx:DataGridColumn headerText="Username"
    dataField="uname"/>
    <mx:DataGridColumn headerText="Group"
    dataField="team"/>
    <mx:DataGridColumn headerText="Status"
    dataField="status"/>
    <mx:DataGridColumn headerText="Last Login"
    dataField="llogin"/>
    <mx:DataGridColumn headerText="Count"
    dataField="lcount"/>
    </mx:columns>
    </mx:DataGrid>
    Now, onto the user editing fields. I'm still trying to figure
    out how to use this example you gave me. I understand the xmlUser
    var and I think I understand the xlGroups var. Not sure how it
    should work though. It looks as though xlGroups tries to get the
    group from allusers under the user name?
    [Bindable]private var _xlcGroups:XMLListCollection;
    private function onChangeUser(oEvent:Event):void {
    var xmlUser:XML = XML(dgUserDetails.selectedItem); //the
    Users dataProvider item
    var xlGroups:XMLList = xmlUser.allusers.group; //this
    depends on your xml structure
    _xlcGroups = new XMLListCollection(xlGroups)
    trace(_xlcGroups.toXMLString() ); //so you can see exactly
    what you have
    Let me try to give a better example of the XML.
    <allusers>
    <user>
    <uname>user1</uname>
    <level>6</level>
    <status>active</status>
    <team>alpha</team>
    <llogin>0000-00-00 00:00:00</llogin>
    <lcount>0</lcount>
    </user>
    <user>
    <uname>user2</uname>
    <level>6</level>
    <status>active</status>
    <team>alpha</team>
    <llogin>2007-03-26 11:31:53</llogin>
    <lcount>128</lcount>
    </user>
    <user>
    <uname>user3</uname>
    <level>1</level>
    <status>active</status>
    <team>bravo</team>
    <llogin>2006-02-17 20:08:23</llogin>
    <lcount>3</lcount>
    </user>
    <group>
    <teamname>alpha</teamname>
    <teamlead>user2</teamlead>
    <teamstatus>active</teamstatus>
    </group>
    <group>
    <teamname>bravo</teamname>
    <teamlead>user3</teamlead>
    <teamstatus>active</teamstatus>
    </group>
    <statusops>
    <status>active</status>
    </statusops>
    <statusops>
    <status>inactive</status>
    </statusops>
    </allusers>
    And here is a more detailed view of the user editing panel.
    Again, I always want the comboboxes to display the data returned
    from the httpservice call. But I want to change the value when the
    user is selected.
    <mx:Panel width="250" height="315" left="5"
    layout="absolute" title="User Details">
    <mx:HBox x="10" y="27" width="210">
    <mx:Label text="Username" width="65"/>
    <mx:TextInput id="adm_username" width="137"
    text="{dgUserDetails.selectedItem.uname}"/>
    </mx:HBox>
    <mx:HBox x="10" y="55" width="210">
    <mx:Label text="Group" width="65"/>
    <mx:ComboBox id="adm_usergroup" width="137"
    dataProvider="{getUsers.lastResult.allusers.group}"
    labelField="teamname"/>
    </mx:HBox>
    <mx:HBox x="10" y="83" width="210">
    <mx:Label text="Level" width="65"/>
    <mx:TextInput id="adm_level" width="137" maxChars="1"
    text="{dgUserDetails.selectedItem.level}"/>
    </mx:HBox>
    <mx:HBox x="10" y="111" width="210">
    <mx:Label text="Status" width="65"/>
    <mx:ComboBox id="adm_activestatus" width="137"
    dataProvider="{getUsers.lastResult.allusers.statusops}"
    labelField="status"/>
    </mx:HBox>
    <mx:HBox x="10" y="137" width="210">
    <mx:Label text="Password" width="65"/>
    <mx:TextInput id="adm_password" width="137" enabled="true"
    backgroundDisabledColor="#C0C0C0" displayAsPassword="true"
    change="adm_chkusr(adm_password)"/>
    </mx:HBox>
    <mx:HBox x="10" y="165" width="210">
    <mx:Label text="Confirm" width="65"/>
    <mx:TextInput id="adm_confirm" width="137" enabled="false"
    backgroundDisabledColor="#C0C0C0" displayAsPassword="true"
    change="adm_chkusr(adm_confirm)"/>
    </mx:HBox>
    <mx:HBox x="10" y="205" width="210">
    <mx:HBox width="50%">
    <mx:LinkButton id="adm_clruser" label="Clear"
    click="clearviewUser()"/>
    </mx:HBox>
    <mx:HBox width="50%">
    <mx:LinkButton id="adm_moduser" label="Modify User"
    enabled="false"/>
    </mx:HBox>
    </mx:HBox>
    <mx:HBox x="10" y="233" width="210">
    <mx:HBox width="50%">
    <mx:LinkButton id="adm_deluser" label="Delete User"
    enabled="false"/>
    </mx:HBox>
    <mx:HBox width="50%">
    <mx:LinkButton id="adm_adduser" label="Add User"
    enabled="false"/>
    </mx:HBox>
    </mx:HBox>
    </mx:Panel>
    Thanks again for your time. I look forward to your response
    as this is driving me crazy.
    Regards,
    Chris

  • ComboBox.name property

    I want a combo box to display a description of the information in the combo box. The name property is a good way to do this in my opinion "comboBox.name = This is what I named this Box". I have a text field ("textDescription") set to display the name of the comboBox on MOUSE_OVER, but only on the edges does the actual name of the comboBox appear. When in the middle, the textDescription displays "instance #" where # is an actual number. See pics please.... Is there some kind of container placed over the combo box or something??

    ///////////////////////////////CODE////////////////////////////////
    function DisplayDescription(e:MouseEvent):void{
         var myFormat:TextFormat = new TextFormat();
              myFormat.font = "arial";
              textDescription.defaultTextFormat = myFormat;
              textDescription.x = mouseX;
              textDescription.y = mouseY;
              textDescription.height = 20
              textDescription.autoSize = "left"
              textDescription.text = e.target.name;
              textDescription.background = true
              textDescription.alpha = 0;
              var tween:Tween = new Tween(textDescription, "alpha",None.easeNone,0,1,1,true)
         this.setChildIndex(textDescription, this.numChildren - 1)
              textDescription.border = true;
    ////////////////////////END CODE/////////////////////////////////

  • ComboBox inheriting button skin - how to override

    Using Flex Builder 3.
    I have set up a Button style in the stylesheet so all buttons pick up the up, over, and down skins.
    The problem is no matter what I do I cannot get the ComboBox to not use the skins defined for Button.
    Is there a way of overriding the skins to not use a skin.  I've set up a specific style for the ComboBox, but it still picks up the button skins.  I've tried both using ComboBox for the style descriptor and set a specific style name like myComboBox and set the style on the combo box in the mxml.
    What is strange is that from the documentation it doesn't look like ComboBox inherits any styles from Button.  So this makes no sense.
    Any ideas?
    Thanks,
    Cindy

    Button in stylesheet:
    Button 
    corner-radius: 3; 
    font-size: 11; 
    font-weight: normal; 
    color: #0860AB; 
    up-skin: Embed(source="../images/bttn-bg-off2.gif",scaleGridLeft="5",scaleGridTop="5",scaleGridRight="17",scaleGridBottom="11"); 
    over-skin: Embed(source="../images/newBlueButtonOver2.png",scaleGridLeft="3",scaleGridTop="4",scaleGridRight="22",scaleGridBottom="13"); 
    down-skin: Embed(source="../images/newBlueButtonDown.png",scaleGridLeft="3",scaleGridTop="4",scaleGridRight="22",scaleGridBottom="13"); 
    padding-top: 0; 
    padding-bottom: 0; 
    padding-left: 5; 
    padding-right: 5;
    style set up for combo box in mxml:  dropdownStyleName="myDropDown"
    .myDropDown  { 
    corner-radius: 0; 
    fill-colors: #FFFFFF, #FFFFFF; 
    fill-alphas: 1.0, 1.0; 
    border-color: #C0C0C0; 
    theme-color: #C0C0C0; 
    roll-over-color: #d2e1ea; 
    selection-color: #A6CAE1; 
    font-size: 11;}
    I even tried just setting the styleName property in the mxml, but it didn't do anything either.
    -Cindy

  • Nested XML into comboBox

    Well as stupid as this sounds I can populate a datagrid from
    a dynamic xml source(ASP) using HTTPservice but a basic lack of
    understanding is preventing me from using this data in a comboBox
    Below is my application source that works for populating the
    datagrid in it, but when the data is used in the comboBox as it's
    dataprovider the value is "[object][object]" Ive tried a bunch of
    stuff but I think im conceptualy misunderstanding something about
    retreiving nested values...
    --MY BROKEN EXAMPLE---
    --XML-output-by-asp-document--------
    <product>
    <category>Tile</category>
    <name>Angelic Peach</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Cosmo</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Durva</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Isosilis</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Magaloth</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Trunklin</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Googolfletch</name>
    </product>
    <product>
    <category>Tile</category>
    <name>Moskurbelf</name>
    </product>
    <product>
    <category>Tile</category>
    <name>DoChoaKoa</name>
    </product>
    ---products-component-for-use-in-main-application---
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="400" height="300"
    creationComplete="this.productStream.send();">
    <mx:Script>
    <![CDATA[
    import mx.utils.ArrayUtil;
    import mx.utils.XMLUtil
    //var urlPath="
    http://localhost/rogerwilko/AndeanStone/xml.asp";
    function xmlRequest():void {
    // Cancel all previous pending calls.
    productStream.cancel();
    var params:Object = new Object();
    params.func = 'products';
    productStream.send(params);
    ]]>
    </mx:Script>
    <mx:HTTPService id="productStream"
    url="
    http://localhost/rogerwilko/AndeanStone/xml.asp"/>
    <mx:Label text="Select A Product Category" top="0"
    left="0"/>
    <mx:ComboBox id="prodCatList"
    dataProvider="{mx.utils.ArrayUtil.toArray(this.productStream.lastResult.product)}"
    width="200" left="0" top="20" cornerRadius="3" fillAlphas="[0.5,
    0.5]" themeColor="#00ff00" alpha="0.49">
    </mx:ComboBox>
    <mx:DataGrid id="prodList"
    dataProvider="{mx.utils.ArrayUtil.toArray(this.productStream.lastResult.product)}"
    columnWidth="200" width="200" left="0" top="55">
    <mx:columns>
    <mx:DataGridColumn headerText="{prodCatList.value}"
    dataField="name"/>
    </mx:columns>
    </mx:DataGrid>
    </mx:Canvas>
    Thanks in advance for any help you can provide me
    leo

    You will need to specify either a labelField or
    labelFunction. You can use a labelField if the value you want to
    show in the combo box is a first level property of the item.
    If the data you want to display is deeper in the item object,
    and you need to "dot down" to get it use a labelFunction.
    HTTPService resultFormat defaults to Object. I have never
    been comfortable about the way Flex converts xml into objects, so I
    always use e4x. This choice affects the structure of your item
    objects, and therefore the way you need to access the item objects
    properties.
    Try labelField, anif that doesn't work use a labelFunction.
    Note, you can debug the labelFunction quite handily.
    Tracy

  • Alpha Numeric - GL account numbering

    Hi
    Our client is going for alpha numeric GL accounts. FS00 will allow creating alpha numeric GL accounts. But i wanted to what may be problem in future?
    I want to know will any account determination settings like OBYC (FI - MM Settings), VKOA (FI - SD settings), AO90 - Asset accounting GL determination or any other FI process will give problem at the time of configurations or in future?.
    Please help me on this. What can be the points on the basis of which i can tell client that they should go for NUMERIC GL accounts only and not Alpha Numeric.

    No other feedback ?
        Avoid using alpha characters – they will create problems in sequencing
    and sorting data in reports, assigning codes, using ranges, and when
    creating validation and/or security rules”
    What does security rules in this context ?

  • Alpha Channel in .psd or png not printing correctly after latest update.

    Hi all,
    Just noticed this yesterday. I've been searching for an answer but to no avail. Let me first say that everything works as expected in CS4. But CS5 fails to print correctly. It looks fine on screen and in print previews. I've tried trashing the preferences etc. I'm running Master suite on Vista 64 bit with dual quad processors and 25 gigs of memory. An HP Z800.
    To replicate the problem simply open Photoshop and create a document any size, here we'll do 5 x 7 and set to transparent. Draw on the layer. I used a hard edged brush and made three circles. Saved as a .psd. Open Illustrator make a new document
    6 x 8. Rectangle tool draw to fit doc. Fill with default gradient. Now place the photoshop file created earlier. Looks fine on screen but when I print either to our plotters or to our laser printer the problem appears. It happens with many different files. Attached is a scan of one of the prints. You can see where the boarders of the 5 x 7 image are when all you should see is the 3 circles. The alpha is not being read by illustrator correctly when printing. All 3 of our machines running CS5 are exhibiting this behavior. Is anybody else getting this? It's a pretty big show stopper.
    Thanks.

    Thanks. I saw those threads but this is not that issue. I really think that this is a bug in the latest update for illustrator.

  • Use ComboBox TableCellEditor  - values are not saved to the table model

    Hi,
    I got a combobox cell editor that uses to edit one of the columns.
    And i got an ok button that uses to collect the data from the table and save it to the db.
    In case i started editing of a cell and the editor is still displayed- if i will click on the button the data that will be colected from the table model will not contained the updated value in the cell editor.
    In this case the user think his changes were saved but the last updated field is not updated.
    Is this a bug i got in the cell editor or this is the normal behaviour?
    Can it be fixed? (So that if the cell is in the middle of editing the value that will be saved is the last value that was selected).
    public class PriorityCellEditor extends StandardComboBox implements TableCellEditor {
        private boolean isEditMode=false;
         * A list of eventlisteners to call when an event is fired
        private EventListenerList listenerList = new EventListenerList();
         * the table model
        public StbAreaClusterPriorityCellEditor(boolean isEditMode) {
            super(StbAreaMapper.clustersPriorities);
            setEditMode(isEditMode);
            setEditable(false);
            this.setComponentOrientation(ComponentOrientation.LEFT_TO_RIGHT);
            setAlignmentX(Component.LEFT_ALIGNMENT);
        public boolean isEditMode() {
            return isEditMode;
        public void setEditMode(boolean editMode) {
            isEditMode = editMode;
            setEnabled(editMode);
        public Component getTableCellEditorComponent(JTable table, Object value,boolean isSelecte, int row, int column) {
            int selectedIndex;
            if (isSelecte) {
                setForeground(table.getSelectionForeground());
                setBackground(table.getSelectionBackground());
            } else {
                setForeground(table.getForeground());
                setBackground(table.getBackground());
            if(value instanceof String){
                selectedIndex=StbAreaMapper.mapGuiPriorityDescToGuiCode((String)value);
                setSelectedIndex(selectedIndex);
            return this;
        public void cancelCellEditing() {
            fireEditingCanceled();
        public Object getCellEditorValue() {
            return getSelectedItem();
        public boolean isCellEditable(EventObject anEvent) {
            return isEditMode;
        public boolean shouldSelectCell(EventObject anEvent) {
            return false;
        public boolean stopCellEditing() {
            fireEditingStopped();
            return true;
         * Adds a new cellEditorListener to this cellEditor
        public void addCellEditorListener(CellEditorListener l) {
            listenerList.add(CellEditorListener.class, l);
         * Removes a cellEditorListener from this cellEditor
        public void removeCellEditorListener(CellEditorListener l) {
            listenerList.remove(CellEditorListener.class, l);
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingStopped() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying
            // those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingStopped(
                            new ChangeEvent(this));
         * Notify all listeners that have registered interest for notification on
         * this event type.
         * @see javax.swing.event.EventListenerList
        protected void fireEditingCanceled() {
            // Guaranteed to return a non-null array
            Object[] listeners = listenerList.getListenerList();
            // Process the listeners last to first, notifying those that are interested in this event
            for (int i = listeners.length - 2; i >= 0; i -= 2) {
                if (listeners[i] == CellEditorListener.class) {
                    ((CellEditorListener) listeners[i + 1]).editingCanceled(new ChangeEvent(this));
    }

    Try this
    yourTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);

  • Photos app bug resurrects long-removed photos (related to PNG alpha)

    Wanted to report/discuss a possible privacy concern and image glitch, and understand it better for submission to Apple's feedback page: the iPad (and maybe iPhone) Photos app will consitently resurrect long-deleted photos in your Camera Roll, under certain circumstances. These are long-removed photos (as in removed many months ago, prior to the iOS 5 update), and possibly only the reduced-size thumbnail versions.
    Note: as near as I can tell, the deleted photos were NOT originally from the camera roll! That's where they resurface, but I believe they are photos from other albums, maybe once which used to by synched to iPad but which I no longer synch. So "removed" might mean deleted or it might mean "no longer synched to iPad"... the images are so old I can't recall.
    So the bug, I'm guessing, it two-fold:
    1) The Photos app (and/or iPhoto during wired synch?) is not fully removing photos (or at least, their thumbs). They're no longer visible in Photos app, but are being retained somewhere on the device.
    2) A glitch in the Photos camera roll PNG handling (which I think may be new with iOS 5) causes those old images ro re-surface when you add a PNG to the camera roll. (The old photos were JPEG, but the image that triggers the bug must be a PNG with alpha channel)
    I have seen this on both an iPad 1 and iPad 2, running iOS 5.
    Here's how to reproduce it:
    1) Synch some photos to your iPad, then deselect them for synching and re-synch (so they're not there any more). Also, add some photos or screenshots to the camera roll and then delete them. I say to do both because I'm not 100% where the old photos come from, and I'm hoping this covers all bases! Actually, most people have already done these things in the past, and can probably skip this step.
    2)  Generate a transparent PNG using the art app Procreate (and probably any app that saves PNGs to the camera roll with alpha channel). All you have to do is scribble somethign into a blank Procreate canvas, then export it to your photo album. There is no need to do anything special to get an alpha channel or PNG format: you always get that. (Unless you used the Fill command to completely cover the canvas.) Now in the camera roll there should be your scribble on a transparent background. You can email it to yourself and see that clearly in Photoshop or Preview.
    3) Here's the glitch: look at your camera roll (thumbnails view) and you'll see that the alpha-transparent background of the image has become one of your old removed photos! Tap it to enlarge and the alpha becomes black (which is fine, although it may seem odd if you intended to paint onto the default white canvas). But for just a moment, before you see the black, you will get a full-size glimpse of the old photo. (Or, maybe, an enlargement of the thumbnail?)
    4) If you keep saving more alpha PNGs, you'll keep seeing more and different old photos coming back to life in the alpha regions of the thumbnails (and, briefly, at full size).
    5) If you delete all those PNGs and then save some new ones, you'll see the same sequence of old photos reappear again.
    Needed fix: removed phtos/thumbnails should be properly purged, and alpha PNGs should show simply black (or some default background) at all times.

    Ok, I replicated it and I don't like it! I didn't use the one you marked cause I couldn't call it up properly but I did Bing
    transparent gifs and loaded up 3, one was totally invisible in the thumbnail and I could clearly see one of my pics perfectly in the thumbnail but when I brought it to page the gif filled the frame.
    I have no idea where the pic came from, I mean I recognize it but from where in the album I have no idea.
    Oh yeah, I was wrong about the first pic coming to page, it wasn't the same image but a different one...and I have no idea how the one that came up, (what i thought was the underlying pic) did, or how it got there or even from where.
    This is some weird stuff though not as weird as that silly *** movie, what a load of tripe; I should have just spent my
    time on this, it's infinitely more enjoyable!
    Ok, here's the consensus from my layman iPad view:
    What happened now and most probably before was a 'transparent gif' or a partially transparent gif like the one I spoke of first that I could see the edge of or the outer perimeter of, the underlining image with the gif taking up say 3/4 of the thumbnail; this it what it was.
    This is totally apparent to me now because of your having me import a totally transparent gif which was invisible over my pic, thus the freaky part I didn't like...keying the thumbnail with one thing and ending up with something totally different when brought to page.
    Still doesn't explain where this silly iPad is grabbing these pics from?
      But here's something funny; my camera roll shows say 9,200 pics but my, 'iMy System' app say I have like 11,300 which I always thought was a fluke, that it was just reading wrong but maybe it's seeing something we're not.           What if all those pics we're deleting to save space or just generally culling have never left the system?                     Maybe that goofy app is really reading the true count!
       Those others up above us here who mentioned privacy concerns.. this could be whats going on, there's a ghost
    in the machine and it be our old pics and god knows what else floating around in that iPads memory.
    Ok, I'm crazy tired and I have to wrap this up. Least now we know how to replicate this but on the other hand I think we opened up an even bigger can of worms... the mystery of where all those images are hiding in our iPads?
    I haven't hardwired to a computer since I upgraded to ios5 so whatever's going on here, leastwise for me is iPad
    based and can't be blamed for synching issues like you discuss up above unless what I'm grabbing here is old stuff
    reimported back into my pad from the mainframe when I was backed up for the ios5 upgrade?
    Oh well, let me know what you think. Please do forgive my not getting back to you sooner on account of the movie
    but you already know I regret choosing that over this! Hope you had a good night and thanks...

  • Getting data in a combobox from database

    I have done database connectivity in flex using .net. Now I am getting data in flex in a data grid. Everuthing is working fine if I take data in a data grid.
    My problem is that if I try to take that data in any other control, other than data grid, it shows up no data, it only shows "object[object].
    for ex:
    if I am getting 3 rows from databse and I try to get those in a combo box, den I am getting 3 items in combo box like this:
    object[object]
    object[object]
    object[object]
    instead of actual data.
    I am stuck in this problem for last 3 days. I have tried lot of things but nuthing is working. Plz anyone help me out soon. Its really urgent.
    I am working on a live project and not able to proceed because of this problem.

    Hi Bhavika,
    You need to tell your combobox which value should be displayed in the ComboBox...for display...
    You are getting 3 rows from database which are objects since you haven't told your combobox which value to be displayed it is displaying as [Object,Object]...
    So you need to tell your ComboBox which values to be displayed ..and you can do this by assigning the labelField property of the ComboBox..
    Say in your object you have three properties say..data, value, name...etc;;
    Then if you want display name as your ComboBox display label then simply write ....labelField="name" in your ComboBox ...
    Thanks,
    Bhasker Chari

Maybe you are looking for

  • Unable to create a po

    Hi i am unable to create a PO using the FM : 'BBP_PD_PO_CREATE' following is the code i am using data: it_header like bbp_pds_po_header_ic. data: it_att type bbpt_pds_att_t with header line. data: ls_header like bbp_pds_po_header_d. data: ls_att type

  • Widescreen HDV to Widescreen SD DVD

    We have a film that is finished in HDV 1080i50 on FCP at 1440 X 1080 (16:9). We now want to create a PAL SD DVD that gives us pure 16:9 rather than 4:3 letter boxed. What are the exact sizings for this and where should i be resizing? I have found ano

  • Qty sales & month

    Dear Forums, If i want to get this report for This month so far ; item code, item description, DocDate,stock on hand, Qty sales, Turn over, Turn over days eg . April 20, 542514 / MILK/ 11-05-09 / 40 / 10 / 2.66666 / 80 / 20 / 30 542518/ SOAP/ 11-05-0

  • Secondary Server MP is not working after primary server database up gradation.

    Hi All, Required your Help for MP Issue. we had migrated the SQL data base in one of our Primary server, where there is 10 secondary servers are available.  7 secondary servers are working fine and remain 3 servers MP has down after the migration.  P

  • Restore ipad 2

    DO you have to be  on a certain website to restore aplle ipad when u plug the wire in to sync it/