If statement in skin.xml

Hello All,
I am trying to put condition in skin.xml file.how to do that kindly suggest.

it was a wrong question

Similar Messages

  • Cant reskin with skin.xml

    Hi I am having problems with reskinning strobe through a skin.xml file.
    I am using the setup.xml locally on my harddrive and the skin.xml file is in the same location as the setup.html
    I have the following in the xml file:
    <?xml version="1.0" encoding="UTF-8"?>
    <skin>
        <element id="playButtonOverlayNormal" src="images/skin/play_overlayed_normal.png"/>
    </skin>
    I have also tried to use the StrobeMediaPlayback.html and uncommenting the configure flashvar and putting the same xml code in that file but it doesn't work. I can't seem to get my head around what I am doing wrong, please help me.
    Thx Dean

    Please put the xml skin file and the images on a web server, do not access them on the local file system, it will not work.
    Make sure the crossdomain.xml file allows at least the server where the swf is stored, e.g.:
    <cross-domain-policy>
    <allow-access-from domain="*"/>
    <site-control permitted-cross-domain-policies="master-only"/>
    </cross-domain-policy>
    (you'll need to increase your security afterwards)

  • [DOCUMENTATION-ISSUE] Location of the trinidad-skins.xml.

    In chapter 18 of the Web User Interface Developer's Guide for Oracle ADF (TP4) I find the following: <quote>You must make sure that your ADF Faces application is aware of the custom skin. You do this by ensuring that the trinidad-skins.xml configuration file is located in the WEB-INF/lib directory.<end qoute>
    Shouldn't the trinidad-skins.xml be located directly under the WEB-INF ?
    This type occurs several times in this chapter, and maybe in others as well.
    Luc Bors

    Hi,
    good catch. I checked with the current internal version and here the issue is fixed
    Frank

  • Missing "disabled" state in skin

    I have a custom component CircleProgress.mxml with two states: "default" and "other", using a skin with the same two states defined. But during compilation, there appears an error in the skin file: The required skin state "disabled" is missing.
    I don't want any "disabled" state because the logic of my application does not include such state. How to get rid of this error? (without adding the "disabled" state)
    Below is the code:
    <s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"
                       xmlns:s="library://ns.adobe.com/flex/spark"
                       xmlns:mx="library://ns.adobe.com/flex/mx"
                       skinClass="mylib.progress.circle.skins.SolidSkin"
                       >
        <s:states>
            <s:State name="default"/>
            <s:State name="other"/>
        </s:states>
        <fx:Script>
            <![CDATA[
                import mx.events.FlexEvent;
                import spark.components.supportClasses.SkinnableComponent;
                import spark.primitives.Ellipse;
                [SkinState("default")]
                [SkinState("other")]
                [SkinPart(required="true")]
                public var skinCircle:Ellipse;
            ]]>
        </fx:Script>
    </s:BorderContainer>
    And the 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"
            xmlns:mx="library://ns.adobe.com/flex/mx">
        <fx:Metadata>
            [HostComponent("mylib.progress.circle.CircleProgress")]
        </fx:Metadata>
        <s:states>
            <s:State name="default" />
            <s:State name="other" />
        </s:states>
        <s:Ellipse id="skinCircle" width="100%" height="100%"    >
            <s:stroke>
                <s:SolidColorStroke color="blue"/>
            </s:stroke>
        </s:Ellipse>
    </s:Skin>

    I think you're right. It is even written in Adobe documentation of the BorderContainer under the Skin States section, I just didn't notice it before, Bordercontainer inherits "disabled" and "normal" skin states.

  • Help using multiple if else statements & manual dynamic xml data input to trigger a goto and play.

    Below is code that has a timer countdown that reads off of the computer. Below in bold is code to read "if it reaches the date, go to and play frame (2).
    timer.removeEventListener(TimerEvent.TIMER, updateTime);
      timer.stop();
      gotoAndPlay(2);
    Below is code that is manual input-   I had set up a dynamic txt field in flash named it : raffle_tix_remain When loaded on to the host I can manulally update the xml code and the change will take effect.
    raffle_tix_remain.text = root.loaderInfo.parameters.raffle_tix_remain;
    My question:  Since the raffle_tix_remain is a manual input from a user to xml  Is there a way to tell flash once it refreshes and "raffle_ tix_ remain"  goes to (0) zero gotoAndPlay(2); and let it play like a "sold out" sign
    i guess that would be a  if else statement. 
    Code Below-----------------
    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
    var timer:Timer = new Timer(100);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
              var now:Date = new Date();
              var remainTime:Number = finalDate.getTime() - now.getTime();
              if (remainTime >0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

    stop();
    var year:Number = 2011;
    var month:Number = 12;
    var day:Number = 30;
    var finalDate:Date = new Date(year,month-1,day);
      var now:Date = new Date();
    var timer:Timer = new Timer(1000);
    timer.addEventListener(TimerEvent.TIMER, updateTime);
    timer.start();
    function updateTime(e:TimerEvent):void{
             var remainTime:Number = finalDate.getTime() - now.getTime()-e.currentCount;
              if (remainTime >0 || raffle_tix_remain==0) {
                        var secs:Number = Math.floor(remainTime/1000);
                        var mins:Number = Math.floor(secs/60);
                        var hours:Number = Math.floor(mins/60);
                        var days:Number = Math.floor(hours/24);
                        var secsText:String = (secs%60).toString();
                        var minsText:String = (mins%60).toString();
                        var hoursText:String = (hours%24).toString();
                        var daysText:String = days.toString();
                        if (secsText.length < 2) {secsText = "0" + secsText;}
                        if (minsText.length < 2) {minsText = "0" + minsText;}
                        if (hoursText.length < 2) {hoursText = "0" + hoursText;}
                        if (daysText.length < 2) {daysText = "0" + daysText;}
                        day_txt.text = daysText;
                        hour_txt.text = hoursText;
                        min_txt.text = minsText;
                        sec_txt.text = secsText;
              else {
                        timer.removeEventListener(TimerEvent.TIMER, updateTime);
                        timer.stop();
                        gotoAndPlay(2);

  • Statements in sidecar.xml

    Hi.
    Can it be possible, that, when importing multiple articles, builder panel is ignoring statement
    <smoothScrolling>never</smoothScrolling> in sidecar.xml?
    Every article get labeled as smoothScrolling --> Horizontal Orientation in Adobe server, but i have set that to never in sidecar.
    Ants

    My horizontal orientation pages are 1024x1370px in size.
    I can set smooth scroll off in DPS server individually on every article.
    Ants

  • Flex4 : Component state vs skin state

    Hello,
    I still can't quite figure the difference between the two ( if there is even a difference )
    component state : Defined by UIComponent's current state
    skin state : Determined by SkinnableComponent->getCurrentSkinState.
    Now, when should one use these 2 different mechanisms ?
    My first thought was that skin state was used for small variations ( selected effects, small controls appearing, etc ) and that component state was more for application state, like a view representing a form would change drammatically if currentState became FORM_BEING_SUBMITTED. But a skin could very well be applied to a huge and complex view so this reasonning fails.
    ->  Another interpretation is that you would use a skin only if flexibility is required, or else just use the old component state mechanism.
    Is that correct?

    Hi,
    It can be a bit confusing, no worries.  Not sure if this will help but here goes...
    A Flex 4 "skin" is itself a component - e.g. Skin is derived from UIComponent and as such supports view states.   So when you see the term 'skin state' all it really means is that it is the 'currentState' of the Flex 4 skin.   The 'currentState' of a Skin is controlled automatically by the SkinnableComponent the skin is associated with (based on what getCurrentSkinState returns at a given point in time).
    There really is no functional difference between how view states work for a Flex 4 Skin vs. how they work for say any other MXML component (like Application) - other than who is responsible for changing the state over time.  It's just that in the case of Application where (as in your example) you may define 3 different orientations of your application for example - you'd be responsible for setting currentState when appropriate.
    The one thing to remember (and I'm sure is the reason for most folk's confusion) is that for a SkinnableComponent instance, there really aren't any "states" for the component itself - the 'currentState' and states array are unused in this case.
    A simple example:
    Button. The actual Button class has no states itself, but its Skin does.  The Button is responsible for putting the Skin in one of the possible view states at runtime based on user interaction over time (e.g. up, over, down, disabled).  e.g. getCurrentSkinState is called on Button and depending on what is returned, the Button will (behind the scenes) set 'currentState' of the Skin component to one of the 4 states.
    Setting 'currentState' on a Button itself has no affect, because the Button has no actual states defined (as far as the states API is concerned), even though it happens to also be a UIComponent.
    -Corey

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

  • SQL statements in XML File

    Folks
    I need to separate SQL statements from Java Code, How do i put these SQL Statements in an XML file and how to access these SQL statements from a Java code,
    Any help with sample code is greatful,

    The use of entities as kstc_jyu may help. It really depends on how you design the XML vocabulary based on the expected usage (e.g., if the SQL statements change very often).
    Back to the original question, I am right to interpret "how to use SQL statements in XML ?" as how to design an XML vocabulary to store SQL statements?
    If not, you can simply use the scheme proposed by DrClap. Reading and extracting the SQL statement would be just as you would with any other XML document. Google for a Java XML tutorial.

  • SQL Statements in XML

    Folks
    I need to separate SQL statements from Java Code, How do i put these SQL Statements in an XML file and how to access these SQL statements from a Java code,
    Any help with sample code is greatful,
    thanks
    mathew

    I looked it and they support only Perl now, Infact i saw some questions posted in some forums about having SQL statements in XML, but i am not able to get that information,Let me know if you can get any information,
    thanks
    KM

  • Matching user selection value with xml statements

    I'm fairly new to the Spry framework and I'm trying to
    accomplish a simple project with it and struggling. Can anyone give
    me some direction or suggest some samples to look at?
    I'm creating a survey and I've generated a radio button list
    that will appear with each statement in my xml. I could write a
    general javascript function that captures the value and totals it,
    but it is a little more complex than that and that's where I'm
    stuck.
    Each statement has a career type associated with it (which
    I've stuck in the code, but will hide it later). I want to get the
    value of the user's checked radio button and then add it to a
    variable based on the career type? How do I get that career type
    and associate it with the user's choice? Do I need to put a
    function in "onclick" and set it as the current row?
    my html:
    <head>
    <script type="text/javascript"
    src="assets/includes/xpath.js"></script>
    <script type="text/javascript"
    src="assets/includes/SpryData.js"></script>
    <script type="text/javascript">
    var jSurvey = new Spry.Data.XMLDataSet("survey1.xml",
    "survey");
    var jStatement = new Spry.Data.XMLDataSet("survey1.xml",
    "survey/question");
    function getValue(){
    </script>
    </head>
    <body>
    <p spry:region="jSurvey"
    class="header">{jSurvey::surveyTitle}</p>
    <form name="scale">
    <table>
    <tr>
    <th scope="col">Statements</th>
    </tr>
    <tr>
    <td><div spry:region="jStatement"><p
    spry:repeat="jStatement"
    class="{ds_EvenOddRow}">{jStatement::statement}<br
    /><br />
    <span class="">{jStatement::careerType}</span>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="0" onclick=" " >Dislike</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="1" onclick=" ">Uncertain</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="2" onclick=" ">Like</input>
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="3" onclick=" ">Like Very
    Much</input></p></div>
    </td>
    </tr>
    </table>
    <input type="submit" />
    </form>
    </body>
    my xml:
    <survey>
    <question>
    <statement>Use dental instruments within patient's
    mouth.</statement>
    <careerType>Dental Hygienist</careerType>
    </question>
    </survey>
    Any direction or samples I should look at would help.
    thanks, Brandy

    Hi Brandy,
    I would try writing out my radios like this:
    <input type="radio" name="option_{ds_RowID}"
    id="{ds_RowID}" value="0"
    onclick="AddAnswer('{jStatement::careerType}', this.value); " />
    And then define a function that tracks the answers by career
    type:
    var answers = {}; //. Associative array that will track our
    answers by career type.
    function AddAnswer(careerType, value)
    answers[careerType] = value;
    By the way, I see you doing something like this:
    <input ...> ... </input>
    Input elements aren't supposed to contain anything. That's
    why in my example I used:
    <input ... />
    --== Kin ==--

  • DB XML performance stats?

    Does anyone know of any reported perfomance stats for DB XML e.g. query times, etc.?
    Thanks,
    Ant

    Ant -
    Performance statistics can't be computed without sample sets, hardware specs, indexing strategies, etc. What is it you want to know?
    I have several BDB XML databases on a run-of-the-mill Pentium 4 (512MB RAM, 7200 RPM disks) with over 200,000 documents, each document about 1K in size. Where my relatively large XQuery's hit all indexes (I think we have about 14 indexes for each), we get result sets in the thousands in about 3 seconds with eager evaluation, and milliseconds with lazy evaluation.
    I know others have larger collections and larger record sizes.

  • SQL Server XQuery: Sequence Expression - What is @x in the code statement of DECLARE @x xml; ? What is N in the code statement of SET @x = N ' '; ?

    Hi all,
    I did the basic stuff of T-SQL long time ago. I dive in to do the SQL Server XQuery programming. I saw the following set of code statements from a tutotial website:
    DECLARE @x xml;
    SET @x = N'';
    SELECT @x.query('(1,2,(10,11,12,13,14,15)),-6');
    1) What is @x in the code statement of DECLARE @x xml;? What is N in the code statement of SET @x = N ' '? 
    2) Is the N in the code statement of SET @x = N ' '; absobutally necessary in the SQL Server XQuery programming?  From XQuery Language Reference of SQL Server 2012 Books Online, I saw the following set of code statements:
    DECLARE @x XML
    SET @x = '<a/>'
    SELECT @x.query('if (/a[1]) then "true" else "false"')
    go
    I wonder why there is no N in the code statement of the XQuery Language Reference?
    Please kindly help, clarify my confusions and answer my questions mentioned above.
    Thanks in advance,
    Scott Chang

    @x is a variable with xml data type. An N prefix stands for the string in Unicode. The N is not necessary in the SQL Server XQuery programming if the values of the element or attribute in the xml are not in an international language.
    A Fan of SSIS, SSRS and SSAS

  • Creating xml file using select statement

    Hi,
    when i run a select statement to generate Xml file in - oracle Db - 10.2.0.4.0
    i'm getting,
    SELECT XMLELEMENT("Emp", XMLATTRIBUTES(e.empno AS "ID")) AS "Emp Element" FROM emp e WHERE row
    num=1
    Emp Element()
    XMLTYPE()
    But, in 10.2.0.3.0 , i'm getting,
    Emp Element
    <Emp ID="7369"></Emp>
    could anyone tell me whey this difference , is it version realted itself or i need to change any settings
    thanks
    Jodus

    for 10.2.0.3.0 DB the client is 10.2.0.3.0
    for 10.2.0.4.0 DB the client is 10.1.0.4.2 - Upgraded the client to 10.2.0.3.0 and it is working fine. Thanks.
    the same select statement Executing from SqlPlus
    Edited by: Jodus on Jul 30, 2009 1:47 PM

  • "Build.xml file not exist"

    Hey Guys,
    i am currently involving in a servelet project (RendreX). i want to install apachi ant as a prerequirement. i am using windows 2003 server. I already downloded latest ant version and apache tomcat4.0. Also i have set all the class path,ANT-HOME(C:\ANT) and other relevent paths. But when i run ant command in the command prompt(C:\ANT>ant)will generate error state that "build.xml" file can't be found. Have i done any wrong thing here? Can anybody give a way that i can easily install apache ant on winows.
    It would be greatly appriciated if u can send me some advice to over come this problem.
    Best Regards
    Mohan

    build.xml is the default build file assumed by ant. You have to provide a build file to control what you expect from ant to do.

Maybe you are looking for

  • Is there any chance in the near future that BootCamp will support EFI booting of Windows?

    I realise it may take a firmware update to achieve this but it really goes against the grain to add a hybrid mbr to a GPT system just to boot Windows in bios compatibility mode - especially when Windows 64 bit can boot natively in EFI mode now. It's

  • "Preparing to copy" from NAS

    Hi, I am trying to copy about 4 TB of data from a portable NAS device to my server's local storage, both connected to the same network switch. Network speed is at 10 Gbps. I mapped the shared folder on NAS and dragged and dropped all the data to star

  • Custom Fields in the Product Master Data

    Hi Experts! I have to add some custom fields in the product master data on SRM and I also need to have this data to be synchronized with the same in ERP. After having added this fields, can you pelase suggest a way to syncrhonized them with the ERP?

  • E Rec - Object Data, Job posting, publication

    Hi Gurus, I am started to E rec and need clarity on below points, pls assist with your quality inputs. - Where is e rec object data stores (Candidate/Applicant/Postingetc) Is it 5* IN viewable through PB20.. - If object data is stored in IN 5* then w

  • How to run vi

    hi i m new in labview. i want to run my VI automatically means when i double click on my VI. i don't have to run it manually by clicking on arrow key to run it. infact i want to remove this bar from my application program.  Solved! Go to Solution.