Custom TitleWindow Skin State Problem

Hi everyone, I've got a problem:
I have a TitleWindow with a skin made by me.
Everything is perfect but when I change to a certain state (in this case is called "AuctionWon").
When  I get to that state the skin completely disappear showing a transparent  background and the components I placed in that state aren't right.
Here  is screenshot of component state in flash builder design mode (when  running I can't see the background and the green button):
http://dl.dropbox.com/u/4064417/panelStateError.JPG
Here the screenshot when I run the program
http://dl.dropbox.com/u/4064417/panelStateError2.JPG
Do you find something strange in the code?
Component code:
http://pastebin.com/A2XtZKxs
Code where I manage the component (I change the state at 73):
http://pastebin.com/su2878Zu
here is the skin definition:
http://pastebin.com/8XXP7pa3
making  some test I found out that sometime, if I manage to find the title bar  in the panel and I drag it, the skin magically appears but the buttons  are still wrong...
unfortunately it appears just sometimes...
It also appears magically if I bring the window application to icon and then reopen it...
I really just can't figure out the problem =S
Can someone help me please?
Thank you in advance

Thank you Kevinklee for the quick answer =)
Changing the TextArea's background alfa brings to nothing =\
But I saw a change when I applied the image component of my skin in all the states
Here is the new skin code (yellow line is the edited part)
http://pastebin.com/grgAQLRW
The change I see is this: now I can't see my image in Design mode as well and in all the states of my TitleWindow
Screenshot:
http://dl.dropbox.com/u/4064417/panelStateError3.JPG
In the skin design mode anyway I can see my image. Now what I have to do to make it visible everywhere?

Similar Messages

  • Skin state problem with PopupAnchor

    I wanted a button which on hover show a popup. and depending on some state, add/remove elements from the popup.
    I extended Button to create HoverButton and used DropDownController with PopupAnchor to get the hover to popup behavior. However for some reason removing element from the popup using skin state isn't working. I've included a sample code below.
    Basically when you mouse hover over the button, you should see a popup with one or two label depending on state which gets toggled when you click on the button. Initially you see one label in the popup because it's in open state. when you click on the button, state should change to close. so when you hover on the button, popup shows up with two button. So far so good. But if you move your mouse away and then hover again, all of sudden you don't get the second button.
    anyone have any idea why this is happening?
    MainApplication.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:WindowedApplication
         xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
         xmlns:local="*">
    <local:HoverButton skinClass="HoverButtonSkin" label="wtf" horizontalCenter="0" verticalCenter="0"/>
    </s:WindowedApplication>
    HoverButton.as
    package 
    import flash.events.MouseEvent;
    import spark.components.Button;
    import spark.components.Group;
    import spark.components.supportClasses.DropDownController;
    import spark.events.DropDownEvent;
    [SkinState("open")]
    [SkinState("close")]
    public class HoverButton extends Button
    private var _dropDownController:DropDownController;
    private var _open:Boolean = true;
    [SkinPart(required='true')]
    public var dropDown:Group;
    public function HoverButton()
    super();
    _dropDownController = new DropDownController();
    _dropDownController.openButton = this;
    _dropDownController.rollOverOpenDelay = 300;
    _dropDownController.addEventListener(DropDownEvent.OPEN, handleDropDownOpenClose, false, 0, true);
    _dropDownController.addEventListener(DropDownEvent.CLOSE, handleDropDownOpenClose, false, 0, true);
    override protected function clickHandler(event:MouseEvent):void
    _open = !_open;
    override protected function getCurrentSkinState():String
    var skinstate:String;
    // if the hover is opened, return open
    if (_dropDownController.isOpen) {
    if (_open) {
    skinstate = "open";
    } else {
    skinstate = "close";
    } else {
    skinstate = super.getCurrentSkinState();
    return skinstate;
    override protected function partAdded(partName:String, instance:Object):void
    super.partAdded(partName, instance);
    if (instance == dropDown) {
    _dropDownController.dropDown = dropDown;
    override protected function partRemoved(partName:String, instance:Object):void
    super.partRemoved(partName, instance);
    if (instance == dropDown) {
    _dropDownController.dropDown = null;
    private function handleDropDownOpenClose(event:DropDownEvent):void
    // invalidate skin state whenever the hover gets opened or closed.
    invalidateSkinState();
    HoverButtonSkin.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <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" width="50" height="50">
        <fx:Metadata>[HostComponent("HoverButton")]</fx:Metadata>
        <!-- states -->
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="open" stateGroups="hoverState" />
            <s:State name="close" stateGroups="hoverState" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
    <s:Rect top="0" bottom="0" left="0" right="0">
    <s:fill>
    <s:SolidColor color="0xAAAAAA" />
    </s:fill>
    </s:Rect>
    <s:PopUpAnchor id="popUp" displayPopUp="false" displayPopUp.hoverState="true" includeIn="hoverState"
       left="0" right="0" top="0" bottom="0" itemDestructionPolicy="auto"
       popUpPosition="above" popUpWidthMatchesAnchorWidth="false">
    <s:Group id="dropDown">
    <s:VGroup>
    <s:Label text="{'hover ' + currentState}"/>
    <s:Label text="closeLabel" includeIn="close"/>
    </s:VGroup>
    </s:Group>
    </s:PopUpAnchor>
    <s:Label id="labelDisplay" verticalCenter="0" horizontalCenter="0"/>
    </s:SparkSkin>

    hello!
    I've experienced the same problem after installing arch on my new hp nx7400. Workaround is to compile psmouse as a module, so i ask you to do that...
    Ubuntu users only need to unloading module before shutdown / reboot by adding 'modprobe -r psmouse' to '/etc/init.d/halt' and '/etc/init.d/reboot' because they have psmouse as a module compiled to kernel.
    I've noticed that arch devs made that floppy is now a module so I would be gratefull if they could do the same with psmouse.

  • Custom button skin with scaleGrid 9 slice image does not appear in Design Mode

    So in a custom button skin I have a nine sliced image, and then throw that onto an MXML page. In design view, I cannot get the component to show the image that I've thrown on it. Unless I do a hack on the MXML page by adding the image in it's scaleGrid form to the page somewhere. Then it seems to act as like a preloader for the image so it actually displays. But I don't want to do this hack on every page that uses this component. Is there a work around?
    Here's the button skin:
    <?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"
                        width.disabled="296" height.disabled="73">
    <!-- host component -->
    <fx:Metadata>
                        [HostComponent("spark.components.Button")]
                        [Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)]
    </fx:Metadata>
    <!-- states -->
    <s:states>
                        <s:State name="disabled" />
                        <s:State name="down" />
                        <s:State name="over" />
                        <s:State name="up" />
    </s:states>
              <s:Group width="100%" height="100%" >
      <s:Image width="100%" height="100%" smooth="true" source="@Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)"/>
    </s:Group>
    <!-- text -->
              <s:Label id="labelDisplay" left="10" right="10" top="2" bottom="2" horizontalCenter="0"
                                   maxDisplayedLines="1" textAlign="center" verticalAlign="middle" verticalCenter="1"
                                   color="#FFFFFF" >
      <s:filters>
                                  <s:DropShadowFilter distance="0" angle="90" color="0x000000" alpha="1" blurX="2" blurY="2" strength="16" quality="3" />
      </s:filters>
    </s:Label>
    </s:Skin>
    And then I throw that button into an MXML page. The image doesn't show up in design view.
    <s:Button x="330" y="94" width="134" height="57" label="Button" skinClass="features.shared.NineSliceButtonSkin" />
    This hack, fixes the button! And all other buttons that use that skin.
    <s:Image width="100%" height="100%" smooth="true" source="@Embed('assets/art/shared/[email protected]', scaleGridTop=20, scaleGridBottom=85, scaleGridLeft=40, scaleGridRight=60)"/>
    <s:Button x="330" y="94" width="134" height="57" label="Button" skinClass="features.shared.NineSliceButtonSkin" />

    Looking for an answer too!

  • Invalid Code (Customer Equipment Card - State)

    Hi ,
          I am facing problem when i am creating a delivery for a particular customer "Invalid Code[Customer Equipment Card - State] Message 173-36".But when i create delivery for some other customer which state is same it will not give error.
    Regards

    Dear Sandeep,
    This issue mihgt be a DB corruption issue. I would recommend you to please login a message with SAP regarding this issue.
    There could be another reason for this that the SBO_SP_Transactionnotifcation could have been modified. If so, please reset the sbo_sp_transactionnotification to the original code. For more information on sbo_sp_transactionnotification, please have a look at the following link :
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e991e2b9-0901-0010-0395-ef5268b00aaf]
    Hope it helps.
    Regards
    Arshdeep

  • Error while deploying, Custom Style Skin in OBIEE 11.1.1.6.7

    Hi,
    I have deployed Custom Style Skin in OBIEE 11.1.1.5 successfuly (with the help of http://www.rittmanmead.com/2010/12/oracle-bi-ee-11g-styles-skins-custom-xml-messages/ ).
    Now when we're moving RPD, Catalog & Custom Style Skin from OBIEE 11.1.1.5 to OBIEE 11.1.1.6.7, I could deploy RPD & Catalog but am not able to deploy Custom Style & Skin Folders.
    If you are aware of the process of deploying Custom Style & Skins (as mentioned in the link above), it requies:
    1. Custom Style & Skins folder to be Deploy using Weblogic Console.
    2. Making necessary changes in instanceconfig.xml (to point to the deployed folder) ---- this is where it's failing.
    When I do add necessary tags ( <URL> & <UI>) in instanceconfig.xml and restart Services. Presentation Services dosen't come up. Error message that is in log file is:
    In element URL: Can not have element children within a simple content.
    unknown element 'UI'
    Element 'UI' is not valid for content model : 'All(URL, SocketTimeoutSec,FileSizeMB)'
    Any pointers?
    Regards,
    Jitendra

    Hi,
    I too faced such issue, actually obiee11.1.1.5 version skin and style wont work in obiee11.1.1.6.0 and above patch ..
    u have do it once again by using obiee11.1.1.6.0 skin (because the 11.1.16.0 has UI and skin different from 11.1.1.5.0 )
    Thanks
    Deva

  • Customer Report or Statement

    Hi All,
    My client have a cstom program for generating Customer payment due list (payments to customer list - displays credit balance). This list uses the tables or hits the following tables: KNA1, KNB1, KNKK, T042Z, BSID.
    Now my question, is there a standard report or statement which generates this information. Basically, it should give customer master data, credit master data and customer open items. (I think these info would hit the above tables).
    Please help me with this. Does SAP offer anything?
    regards,
    Satya

    Thank you everyone for all your responses. probably, I have deviated you all from my actual requirement.
    The client has a typical scenario. They generate payment due list of customers every week - open items due till that date of the week based on customer number, accounting clerk, credit control area and risk category. Once the list is generated, the accounting clerk analyzes the total amount of open items due (may be credit or debit balance) with the total obligation (amount due in next few weeks - may be credit or debit balance) and decides whether to pay or not to the customer. Usually, client ends up paying 3 in 4 times (these are for warranties and incentives).
    Client has custom program for these which i have to replace with standard SAP. I do not have to send this payment due list to customer nor the statements (the customer views the list from a dealer portal online). So, I do not see the need of using SAP scripts or smart forms.
    Can I still use correspondence types to generate payment due list with the use of SAP08 or SAP13 and standard program RFDOR...
    Are there any other options of generating this list? Please advice me and share your thoughts. This is very critical as I have to provide the solution in couple of days.
    I really appreciate evryone for your help.
    Regards,
    Satya

  • A report to show 2008 Customer Sales by State.

    My customer needs a report to show 2008 Customer Sales by State.  I don't see any SAP reports that will do this.  Is the state held in any of the document files that I could use to create a query??  Or does anyone have a query that reports this information?

    Try using following query:
    SELECT T0.CardCode, T0.CardName, T0.DocNum, T0.DocDate, T0.DocTotal, T1.State
    FROM OINV T0
    INNER JOIN CRD1 T1 ON T0.CardCode = T1.CardCode
    AND T0.ShipToCode = T1.Address
    Though A/R Invoice, does not store the state code separately, it does store the addresscode, which was used for shipping, which could be linked to the Addresses table. Though if the user changes the address manually, than there is no other way, but to do some programming and find the address name, though it will be pretty difficult, because users might not always be correct with their spellings.
    Rahul

  • Need help creating custom .swf skin and exporting for use

    Please, can anyone help...
    I am currently working on a projects that needs to have a custom flash skin player.
    I have tried copying and editing excisting skins, but when I export the swf and fla into the crrect folders, I am able to select it from the skin list- however it doesn;t show in the player.
    Am I exporting/publishing this in the correct way and to the right folders?
    If anyone can give me a tip of how to achieve this that would be great, or a link to somewhere that may have the infor I'd be happy,
    Cheers
    Cliff

    Hi,
    Do you mean skinning FLVPlayback palyer?
    Warm Regards
    Deepanjan Das
    http://deepanjandas.wordpress.com/

  • [svn:fx-trunk] 5465: Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains .

    Revision: 5465
    Author: [email protected]
    Date: 2009-03-20 11:52:56 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains. Jim ok'ed the addition of the new FxNumericStepperTextInputSkin.mxml class into the spark.skins and wireframe packaged.
    SDK-18275, SDK-19849
    Reviewer: Glenn
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18275
    http://bugs.adobe.com/jira/browse/SDK-19849
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperSkin.mxml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperTextInputSkin .mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperTextInputSkin. mxml

    Revision: 5465
    Author: [email protected]
    Date: 2009-03-20 11:52:56 -0700 (Fri, 20 Mar 2009)
    Log Message:
    Now that padding set on a TextInput does not affect the inner textView, we need to add a custom TextInput skin for the TextInput a Spark NumericStepper contains. Jim ok'ed the addition of the new FxNumericStepperTextInputSkin.mxml class into the spark.skins and wireframe packaged.
    SDK-18275, SDK-19849
    Reviewer: Glenn
    Checkintests: Pass
    Ticket Links:
    http://bugs.adobe.com/jira/browse/SDK-18275
    http://bugs.adobe.com/jira/browse/SDK-19849
    Modified Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/components/FxNumericStepper.as
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperSkin.mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperSkin.mxml
    Added Paths:
    flex/sdk/trunk/frameworks/projects/flex4/src/mx/skins/spark/FxNumericStepperTextInputSkin .mxml
    flex/sdk/trunk/frameworks/projects/wireframe/src/wireframe/FxNumericStepperTextInputSkin. mxml

  • How to add multiple skin states to SkinnableContainerSkin so that can switch among states

    Hi All,
    I have a xml which represents 2 views of SkinnableContainer, xml being parsed and converted to ui elements and stored into 2 array variables based on display property of the tag
    initially adding 1 set of array element to Container
    whenever a button clicked to show different set of array elements, calling removeAllElements() and adding different set of elements from 2nd array
    Can somebody help me converting this application to utilize "Skin States"  feature
    Sorry, Could not find way to attach demo project, copied code bellow
    Thanks in advance...
    /src/ContainerDemo.mxml
         /com.containerdemo.controls
              ButtonControl.as
              ContainerControl.mxml
              CustomContainer.as
              CustomControls.mxml
              IControl.as
              ParentControl.mxml
         /com.containerdemo.skins
              ButtonControlSkin.mxml
              CustomContainerSkin.mxml
         /com.containerdemo.utils
              XmlUtil.as
    ContainerDemo.mxml
    <?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="700" minHeight="500"
                                     xmlns:controls="com.containerdemo.controls.*">
              <s:VGroup paddingBottom="20" paddingLeft="20"
                                    paddingRight="20" paddingTop="20" gap="20"
                                    horizontalCenter="0">
                        <s:Label text="Flex states demo" fontSize="30"/>
                        <controls:ParentControl id="pc" />
              </s:VGroup>
    </s:Application>
    XmlUtil.as
    package com.containerdemo.utils {
              import com.containerdemo.controls.ButtonControl;
              import com.containerdemo.controls.ContainerControl;
              import com.containerdemo.controls.CustomContainer;
              import com.containerdemo.controls.IControl;
              public class XmlUtil {
                        public static var ELEMENTS:Object = {
                                  "buttonElement": ButtonControl,
                                  "containerElement": ContainerControl
                        public static function parse(xml:XML):IControl {
                                  var name:String = xml.name();
                                  var clazz:Class = ELEMENTS[name];  
                                  var elem:IControl = new clazz();
                                  elem.parse(xml);
                                  return elem;
    CustomContainerSkin.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:SparkSkin xmlns:fx="http://ns.adobe.com/mxml/2009"
                                   xmlns:s="library://ns.adobe.com/flex/spark"                               
                                   xmlns:mx="library://ns.adobe.com/flex/mx">
              <fx:Metadata>
                        [HostComponent("com.containerdemo.controls.CustomContainer")]
              </fx:Metadata>
        <s:states>
            <s:State name="normal" />
            <s:State name="disabled" />
        </s:states>
              <s:Group id="rectGroup">
                        <s:Rect left="0" right="0" top="0" bottom="0" radiusX="8" radiusY="8">
                                  <s:stroke>
                                            <s:SolidColorStroke weight="2" color="#FF0000" alpha="0.8" />
                                  </s:stroke>
                        </s:Rect>
                        <s:HGroup top="10" left="10" right="10" gap="4">
                                  <s:Label id="containerLabel" text="{this.hostComponent.label}" />
                                  <s:Button id="compOrExpButton" label="{this.hostComponent.btnLabel}" />
                                  <mx:Spacer width="100%" />
                        </s:HGroup>
                        <s:Group id="contentGroup" left="16" right="16" top="32" bottom="32" />
              </s:Group>
    </s:SparkSkin>
    ButtonControlSkin.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <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"
                                   minWidth="21" minHeight="21" alpha.disabled="0.5">
              <fx:Metadata>
                        [HostComponent("com.containerdemo.controls.ButtonControl")]
              </fx:Metadata>
        <s:states>
            <s:State name="up" />
            <s:State name="over" />
            <s:State name="down" />
            <s:State name="disabled" />
        </s:states>
              <s:Label id="labelDisplay"
                 textAlign="center"
                 verticalAlign="middle"
                 maxDisplayedLines="1" minWidth="20"
                 horizontalCenter="0" verticalCenter="1"
                 left="10" right="10" top="2" bottom="2">
        </s:Label>
    </s:SparkSkin>
    ParentControl.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx"
                         xmlns:controls="com.containerdemo.controls.*"
                         creationComplete="group1_creationCompleteHandler(event)">
              <fx:Declarations>
                        <fx:XML id="compXml" xmlns="">
                                  <elems>
                                            <buttonElement id="b1" label="Element1" />
                                            <containerElement id="c2" label="Container2" display="comp">
                                                      <comp>
                                                                <buttonElement id="c2b1" label="Element5 (Comp)" />
                                                                <buttonElement id="c2b2" label="Element6 (Comp)" />
                                                                <containerElement id="c2c1" label="Container c2c1" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c1b1" label="Element c2c1b1 (Comp)" />
                                                                                    <buttonElement id="c2c1b2" label="Element c2c1b2 (Comp)" />
                                                                          </comp>
                                                                </containerElement>
                                                                <containerElement id="c2c2" label="Container c2c2" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c2b1" label="Element c2c2b1 (Comp)" />
                                                                                    <buttonElement id="c2c2b2" label="Element c2c2b2 (Comp)" />
                                                                          </comp>
                                                                </containerElement>
                                                      </comp>
                                            </containerElement>
                                            <buttonElement id="b3" label="Element7" />
                                  </elems>
                        </fx:XML>
                        <fx:XML id="expXml" xmlns="">
                                  <elems>
                                            <buttonElement id="b1" label="Element1" />
                                            <containerElement id="c2" label="Container2" display="exp">
                                                      <comp>
                                                                <buttonElement id="c2b2" label="Element5 (Comp)" />
                                                                <buttonElement id="c2b2" label="Element6 (Comp)" />
                                                                <containerElement id="c2c1" label="Container c2c1" display="exp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c1b1" label="Element c2c1b1 (Comp)" />
                                                                                    <buttonElement id="c2c1b2" label="Element c2c1b2 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c2c1b3" label="Element c2c1b3 (Exp)" />
                                                                                    <buttonElement id="c2c1b4" label="Element c2c1b4 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                                <containerElement id="c2c2" label="Container c2c2" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c2c2b1" label="Element c2c2b1 (Comp)" />
                                                                                    <buttonElement id="c2c2b2" label="Element c2c2b2 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c2c2b3" label="Element c2c2b3 (Exp)" />
                                                                                    <buttonElement id="c2c2b4" label="Element c2c2b4 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                      </comp>
                                                      <exp>
                                                                <containerElement id="c4" label="Container4" display="comp">
                                                                          <comp>
                                                                                    <buttonElement id="c4b1" label="Element 555(Comp)" />
                                                                                    <buttonElement id="c4b2" label="Element 655 (Comp)" />
                                                                          </comp>
                                                                          <exp>
                                                                                    <buttonElement id="c4b3" label="Element 335 (Exp)" />
                                                                                    <buttonElement id="c4b4" label="Element 126 (Exp)" />
                                                                          </exp>
                                                                </containerElement>
                                                      </exp>
                                            </containerElement>
                                            <buttonElement id="b3" label="Element7" />
                                  </elems>
                        </fx:XML>
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[
                                  import mx.events.FlexEvent;
                                  protected function group1_creationCompleteHandler(event:FlexEvent):void {
                                            this.customControls.parse(compXml);
                        ]]>
              </fx:Script>
              <controls:CustomControls id="customControls" />
    </s:Group>
    IControl.as
    package com.containerdemo.controls
              import mx.core.IVisualElement;
              public interface IControl extends IVisualElement {
                        function parse(xml:XML):void;
    CustomControls.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <s:Group xmlns:fx="http://ns.adobe.com/mxml/2009"
                         xmlns:s="library://ns.adobe.com/flex/spark"
                         xmlns:mx="library://ns.adobe.com/flex/mx"
                         implements="com.containerdemo.controls.IControl">
              <fx:Script>
                        <![CDATA[
                                  import com.containerdemo.utils.XmlUtil;
                                  public function parse(xml:XML):void {
                                            for each (var child:XML in xml.children()) {
                                                      var e:IControl = XmlUtil.parse(child);
                                                      this.addElement(e);
                        ]]>
              </fx:Script>
              <s:layout>
                        <s:HorizontalLayout verticalAlign="middle" gap="15"
                                                                          paddingLeft="16" paddingRight="16"
                                                                          paddingTop="16" paddingBottom="16" />
              </s:layout>
    </s:Group>
    CustomContainer.as
    package com.containerdemo.controls
              import com.containerdemo.skins.CustomContainerSkin;
              import com.containerdemo.utils.XmlUtil;
              import flash.events.MouseEvent;
              import mx.collections.ArrayCollection;
              import spark.components.Button;
              import spark.components.Group;
              import spark.components.SkinnableContainer;
              public class CustomContainer extends SkinnableContainer implements IControl {
                        [SkinPart(required="true")]
                        public var compOrExpButton:Button;
                        [SkinPart(required="true")]
                        public var rectGroup:Group;
                        private var dispState:String;
                        private var _label:String;
                        private var _cid:String;
                        private var compControls:ArrayCollection;
                        private var expControls:ArrayCollection;
                        public function CustomContainer() {
                                  this.setStyle("skinClass", Class(CustomContainerSkin));
                        public function parse(xml:XML):void {
                                  this.compControls = null;
                                  this.expControls = null;
                                  compControls = new ArrayCollection;
                                  expControls = new ArrayCollection;
                                  this.dispState = xml.@display;
                                  this.label = xml.@label;
                                  this.cid = xml.@id;
                                  for each (var child:XML in xml.comp.children()) {
                                            var e:IControl = XmlUtil.parse(child);
                                            this.compControls.addItem(e);
                                            //trace((e is ButtonControl).label);
                                  for each (var child1:XML in xml.exp.children()) {
                                            var e1:IControl = XmlUtil.parse(child1);
                                            this.expControls.addItem(e1);
                                            //trace((e1 as ButtonControl).label);
                                  showControls();
                        [Bindable]
                        public function set cid(value:String):void {
                                  this._cid = value;
                        public function get cid():String {
                                  return this._cid;
                        public function showControls():void {
                                  if (this.dispState == "comp") {
                                            showCompControls();
                                  } else {
                                            showExpControls();
                        public function showCompControls():void {
                                  if (this.numElements >0)
                                            this.removeAllElements();
                                  for each (var e:IControl in compControls) {
                                            this.addElement(e);
                                  this.btnLabel = "Exp";
                                  this.invalidateSkinState();
                        public function showExpControls():void {
                                  if (this.numElements >0)
                                            this.removeAllElements();
                                  for each (var e:IControl in expControls) {
                                            this.addElement(e);
                                  this.btnLabel = "Comp";
                                  this.invalidateSkinState();
                        public function get ownerContainer():CustomContainer {
                                  return this.owner as CustomContainer;
                        public var b:Boolean = true;
                        public function displayCompOrExpControls(event:MouseEvent):void {
                                  if (this.btnLabel == "Exp") {
                                            if (b) {
                                                      this.reParse();
                                                      b = false;
                                            } else {
                                                      this.showExpControls();
                                  } else {
                                            this.showCompControls();
                        public function reParse():void {
                                  /*if (this.owner && (this.owner is CustomContainer))
                                            (this.owner as CustomContainer).reParse();
                                  else {*/
                                            var xml:XML = this.parentApplication.pc.expXml;
                                            var expXml:XMLList = xml.descendants().(attribute("id") == this.cid);
                                            this.parse(expXml[0]);
                        private var _btnLabel:String;
                        public function get btnLabel():String {
                                  return this._btnLabel;
                        [Bindable]
                        public function set btnLabel(value:String):void {
                                  this._btnLabel = value;
                        public function get label():String {
                                  return this._label;
                        [Bindable]
                        public function set label(value:String):void {
                                  this._label = value;
                        override protected function partAdded(partName:String, instance:Object):void {
                                  super.partAdded(partName, instance);
                                  if (instance == this.compOrExpButton)
                                            this.compOrExpButton.addEventListener(MouseEvent.CLICK, displayCompOrExpControls, false, 0, true);
                        override protected function partRemoved(partName:String, instance:Object):void {
                                  super.partRemoved(partName, instance);
                                  if (instance == compOrExpButton)
                                            this.compOrExpButton.removeEventListener(MouseEvent.CLICK, displayCompOrExpControls, false);
    ContainerControl.mxml
    <?xml version="1.0" encoding="utf-8"?>
    <controls:CustomContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                                                                  xmlns:s="library://ns.adobe.com/flex/spark"
                                                                  xmlns:mx="library://ns.adobe.com/flex/mx"                                                              
                                                                  xmlns:controls="com.containerdemo.controls.*">
              <controls:layout>
                        <s:HorizontalLayout gap="20"
                                                                          paddingLeft="16" paddingRight="16"
                                                                          paddingBottom="16" paddingTop="16" />
              </controls:layout>
    </controls:CustomContainer>
    ButtonControl.as
    package com.containerdemo.controls
              import com.containerdemo.skins.ButtonControlSkin;
              import spark.components.Button;
              public class ButtonControl extends Button implements IControl {
                        public function ButtonControl() {
                                  this.setStyle("skinClass", Class(ButtonControlSkin));
                        public function parse(xml:XML):void {
                                  this.label = xml.@label;

    Could somebody help me?

  • Customizing AM Images & Facing Problem in Update & Deploy War files

    Hey Guys!
    This is Yash Bansal from Gurgaon, India. i am new to access manager. i am now customizing it and facing problem in customizing.
    I have customized images which is present in directory path:
    opt/SUNWam/web-src/services/images/
    and updated services.war file which is present in directory path:
    opt/SUNWam/war/
    with command
    jar -uvf services.war /opt/SUNWam/web-src/services/images/login-backimage.jpg
    then deployed configuration from the web server 7.0 admin console.
    after that when i open the url
    http://<hostname>/amserver/console
    then Page Not Found error comes in the browser.
    Just wanted to ask you guys am i doing the steps right. please help if someone know how to update and deploy war file on Sun Web server 7.0.
    Thanks & Regards,
    Yash Bansal

    Hi!
    Deploying the configuration does not (re)deploy the application. Webserver stores a copy of the deployed application and all configurations in the admin instance. When you change anything in the webserver console it is first written there and only applied to the productive instance when you deploy configuration.
    When you add images, jsps or something else to /opt/SUNWam/... and want it redeployed you have to use amconfig command. in /opt/SUNWam/bin there is a file called amsamplesilent. You have to fill the values in this file and then use
    ./amconfig -s amsamplesilent
    I believe for a redeploy you have to set DEPLOY_LEVEL to 21, not sure here, check documentation.
    I personally usually do not redeploy for images and such, I simply copy them directly the deployed location.
    Why http://.../amserver/console does not work anymore, I have no idea. But at least after a redeploy it should be there again.
    hth Chris

  • Switch statement problem

    I am doing a question in which I have to make a simple ATM program that can withraw and deposit money as many times as the user wants. To exit the program the user has to hit "x". I have to use a switch statement. Im getting incompatible type errors after compiling it. Can anyone help me? Sorry if the formattings not too good.
    //ATM.java
    //This program reads in a user's opening balance and performs a withdrawal or a deposit at the request of the user
    import java.text.*;
         public class ATM
         public static void main(String args[])
              int      balance;
              char      withdrawal, deposit, choice;
              //Ask for the opening balance
              System.out.print("Please enter your opening balance");
              balance=UserInput.getInt();
              //Find out what the user wants done
              System.out.print("What would you like to do? (Withdrawal, Depositor Exit(x))");
              choice=UserInput.getChar();
                                                                          switch(choice){     
    case "w":
                                                                          while(balance>0)
                                                                                              System.out.print("How much would you like to withdraw?");
                                                                                              withdrawal=UserInput.getChar();
                                                                                              balance=balance-withdrawal;
                                                                                              System.out.print("Your remaining balance is " + balance);
                                                                                              break;
    case "d":     
    while(balance>0)
                                                                                              System.out.print("How much do you wish to deposit?");
                                                                                              deposit=UserInput.getChar();
                                                                                              balance=balance+deposit;
                                                                                              System.out.print("Your new balance is " + balance);
                                                                                              break;
    case "x":          
                                                                System.out.print("Goodbye and thank you for using this program");
                                                                                              break;
    default:     
                                                                     System.out.print("We were not able to process your request, please try again");
                                                                                              break;
    }

    Type a reply to the topic using the form below. When finished, you can optionally preview your reply by clicking on the "Preview" button. Otherwise, click the "Post" button to submit your message immediately.
    Subject:
    Click for bold      Click for italics      Click for underline           Click for code tags      
      Formatting tips
    Message:
    Add topic to Watchlist:
    Original Message:
    Switch statement problem
    Xivilai Registered: Mar 3, 2007 9:52 AM      Mar 3, 2007 10:06 AM
    I am doing a question in which I have to make a simple ATM program that can withraw and deposit money as many times as the user wants. To exit the program the user has to hit "x". I have to use a switch statement. Im getting incompatible type errors after compiling it. Can anyone help me? Sorry if the formattings not too good.
    //ATM.java
    //This program reads in a user's opening balance and performs a withdrawal or a deposit at the request of the user
    import java.text.*;
    public class ATM
    public static void main(String args[])
    int balance;
    char withdrawal, deposit, choice;
    //Ask for the opening balance
    System.out.print("Please enter your opening balance");
    balance=UserInput.getInt();
    //Find out what the user wants done
    System.out.print("What would you like to do? (Withdrawal, Depositor Exit(x))");
    choice=UserInput.getChar();
    switch(choice){
    case 'w':
    while(balance>0)
    System.out.print("How much would you like to withdraw?");
    withdrawal=UserInput.getChar();
    balance=balance-withdrawal;
    System.out.print("Your remaining balance is " + balance);
    break;
    case 'd':
    while(balance>0)
    System.out.print("How much do you wish to deposit?");
    deposit=UserInput.getChar();
    balance=balance+deposit;
    System.out.print("Your new balance is " + balance);
    break;
    case 'x':
    System.out.print("Goodbye and thank you for using this program");
    break;
    default:
    System.out.print("We were not able to process your request, please try again");
    break;
    }

  • 1. The procedure called by CUSTOM.pll causes the problem when we use f60gen

    When CUSTOM.pll contains a call to a package that in turn calls a remote package, the CUSTOM.pll compile hangs forever.
    1. The procedure called by CUSTOM.pll causes the problem when we use f60gen. Though same procedure compiles successfully using "alter procedure compile" command.
    2. We have observed the problem happens due to synonym present on the remote database(db link).
    It doesn’t work if you are calling SYNONYM on remote database. It works, for calls to tables or procedures or packages in remote database if that object is OWNED DIRECTLY by the account to which dblink is connecting to.
    select object_name, object_type from user_objects@NH_SCM_ICE.DB.ATT.COM ;
    OBJECT_NAME OBJECT_TYPE
    FA_LOCATIONS SYNONYM
    FND_FLEX_VALUES SYNONYM

    The database link is created under the APPS user in the local database but connects to a different user (SWCS_ICE_SUPCHAIN) in the remote database.
    The user in the remote database does not own any objects. It only has synonyms to objects owned by apps and others.
    Incidentally, the hang also happens when trying to describe the remote package from the application tier (8.0.6.3 sqlplus) but the describe works fine from the DB tier (10gR2 sqlplus).

  • Declaring skin states in an MXML component?

    From the docs, you can declare skin states in a .as file before the class declaration, like this:
    [SkinState("up")]
    [SkinState("over")]
    [SkinState("down")]
    [SkinState("disabled")]
    public class Button extends Component { .. }
    But how do declare states in a .mxml file?  There is no "public class ..." statement to precede.

    So maybe this isn't possible?  I have had such a hard time finding docs on the component side of the skinning contract.

  • How to update task status from custom task in state machine workflow

    i m using custom task for state machine workflow
    i am using
    if(this.onTaskChangedSupervisorAction_AfterProperties.ExtendedProperties["Workflowstatus"].ToString().Contains("Approved"))
    if above is true moving forward its working fine but i want to update the status field of task as i can update the title and due date for the task but how can i change the status once approved it
    should show the status as approved it's only showing in progress
    this.CreateTaskSupervisorAction_TaskProperties.Title="supervisor task"
    MCTS,ITIL

    If your task shows In Progress state then I think you need to look at your workflow and make sure you are using Complete Task activity and if you are already using Complete Task Activity then verify the Correlation ID. Ideally you are not required to set
    this value in workflow. You simply use the Complete Task Activity.
    If you are running into issue where your workflow is staying in In Progress state even after the task is complete then you can look at the following blog post.
    How to programmatically complete Approval workflow task
    Amit

Maybe you are looking for

  • Why does Apple now want to make life difficult

    Having been an Apple user since the Apple Lisa in 1985 I am reasonably commited to the the hardware and software but the way things are going I must seriously start to question this. Mountain Lion now imposes restrictions that I consider onerous. Wit

  • Images moved by LR4

    I have my images saved to folders based on image content.  I have a folder that I have worked with in LR3. After intalling LR4, I imported the images in that folder into LR4.  I could see and work on these images, however the images have been moved t

  • Can iWorks be used to set up a bracket form?

    I need something I can use to set up brackets for pedigrees of horses and a spreadsheet to keep track of my horse business. Are these things possible with any part of iWorks? Sheila K

  • A bout Siri .. ?

    Hi just wanna say why Siri can not looking for places in UK im really sometime needs Siri's help ?

  • Can't transfer Files from Zen Xtra 30

    Hi, first of all: firmware: 2.0.03 (latest one) I can transfer files (let's take movies (700mb)) to my Zen Xtra 30gig. When i want to transfer them back it says that there is not enough space available... there is 20 gig free space on my mp3 and more