Last and greatest: conditional statements for click referring to loaded swf

Hey forum,
I am so close to being done with this site update it is exciting! I will be sure to throw it up here for you to see, since without this forum I would have been hurting!
The last big hurdle I have, is the following, and I hope someone can just throw me a bit of guidance on this.
I am looking for a way to write a function, that on click of my "next" button in the main timeline, will refer to my loaded swf MovieClip(imageLoader.content) telling it to go to the next frame label, so really a compound if/then situation – just referring to the loaded file throws me.
So, my next button is "pNext," and what I am looking for is something along the lines of:
if (loaded movie) is on frames 12-144, then go here (on click),
if (loaded movie) is on frames 144-155, then go here (on click)
etc. and so forth.
Thanks so much! Below is my code that works on one next click, so you can see the instances etc.
b
pNext.addEventListener (MouseEvent.CLICK, nextClick);
function nextClick (e:MouseEvent):void{
    MovieClip(imageLoader.content).gotoAndPlay ("aboutS1");

If I'm reading your request right, what you can try is to create an array of the frame labels in the order they appear and use the currentLabel property to determine where you are and indicate where to go...
var labels:Array = new Array("one","two","three","four","five"...etc...);
pNext.addEventListener (MouseEvent.CLICK, nextClick);
function nextClick (e:MouseEvent):void{
    var mc:MovieClip = MovieClip(imageLoader.content);
    var nextLabel:String = labels[labels.indexOf(String(mc.currentLabel))+1];
    mc.gotoAndPlay (nextLabel);

Similar Messages

  • IF and ABS condition statement in BEX query designer

    Hi,
    I would like to ask the best way for me to produce an acceptable result from Excel IF and ABS Condition statement.
    The condition statement that I have on my Excel file is
    =IF((A2-B2)>0,ABS(A2-B2),0)
    I'm trying multiple times to reproduce this in BEX Query designer, unfortunately I'm getting a bad result or unacceptable formula.
    Anyone who could help me with my issue?
    Thanks,
    Arnold

    Hi Arnold,
    Thank you,
    Nanda

  • HT1386 I just downloaded the latest and greatest Itunes software for my windows computer and my itouch. My wife did the same. now neither of the itouches will sync and transfer the apps or the music. what gives?

    I just down loaded the latest and greatest itunes and Ipod touch software. went thru all the steps, my wife did the same for her itouch on her computer. Hers is frozen, can't complete the restore, mine won't sync all the apps and music to the ipod. Where do I go from here?

    For her iPod see:
    iOS: Not responding or does not turn on
    For you, do you get any error messages?
    Is there anything different about the apps and music that do sync and those that do not?
    Try a restore from backup

  • Sql statement for click stream analyzing

    I want to divide user clicks into sessions. A session is defined to include all of a certain user's clicks that occur within 60 seconds of one another:
    create table clickstream
    (  t date
    ,  userid number(10) );
    insert into clickstream values (to_date('5-9-2009 10:00:00','dd-mm-yyyy hh24:mi:ss'), 2);
    insert into clickstream values (to_date('5-9-2009 10:00:24','dd-mm-yyyy hh24:mi:ss') , 2);
    insert into clickstream values (to_date('5-9-2009 10:01:23','dd-mm-yyyy hh24:mi:ss') , 2);
    insert into clickstream values (to_date('5-9-2009 10:02:40','dd-mm-yyyy hh24:mi:ss') , 2);
    insert into clickstream values (to_date('5-9-2009 0:58:24','dd-mm-yyyy hh24:mi:ss') , 7);
    insert into clickstream values (to_date('5-9-2009 2:30:33','dd-mm-yyyy hh24:mi:ss') , 7);
    commit;The output should be:
    Time t       Userid    Session
    10:00:00     2          0
    10:00:24     2          0
    10:01:23     2          0
    10:02:40     2          1
    00:58:24     7          0
    02:30:33     7          1This query divides the clickstream into sessions:
    select to_char(t,'hh24:mi:ss') t
    ,      userid
    ,      count(*) over
           ( partition by userid order by t RANGE between (1/(24*60)) preceding and current row) count
    from clickstream
    order by userid,t
    T            USERID      COUNT
    10:00:00          2          1
    10:00:24          2          2
    10:01:23          2          2
    10:02:40          2          1
    00:58:24          7          1
    02:30:33          7          1Because when COUNT = 1 a new session is started for a certain user but I don't know how to proceed?

    Yes ofcourse, dense_rank() tops it off nicely, didn't think of that one.
    Interesting link by the way, thanks Tuinstoel.
    It states SQL needs 'an expensive self-join' but by using analytics we don't need a self-join at all.
    MHO%xe> select t
      2  ,      userid
      3  ,      -1 + (dense_rank() over (partition by userid order by sessionid)) sessionid
      4  from ( select t
      5         ,      userid
      6         ,      nvl(last_value(nullif(sessionid, 0) ignore nulls) over
      7                ( partition by userid order by userid, t),0) sessionid
      8         from ( select t
      9                ,      userid
    10                ,      case when trunc( mod( (t-lag(t) over ( partition by userid order by userid, t))*24*60, 60 )) >= 1
    11                               then dense_rank() over ( partition by userid order by userid, t)
    12                               else 0
    13                       end sessionid
    14                from   clickstream
    15              )
    16       );
    Verstreken: 00:00:00.25
    Uitvoeringspan
    Plan hash value: 1413192182
    | Id  | Operation              | Name        | Rows  | Bytes | Cost (%CPU)| Time     |
    |   0 | SELECT STATEMENT       |             |     8 |   280 |     5  (40)| 00:00:01 |
    |   1 |  WINDOW SORT           |             |     8 |   280 |     5  (40)| 00:00:01 |
    |   2 |   VIEW                 |             |     8 |   280 |     4  (25)| 00:00:01 |
    |   3 |    WINDOW BUFFER       |             |     8 |   280 |     4  (25)| 00:00:01 |
    |   4 |     VIEW               |             |     8 |   280 |     4  (25)| 00:00:01 |
    |   5 |      WINDOW SORT       |             |     8 |   176 |     4  (25)| 00:00:01 |
    |   6 |       TABLE ACCESS FULL| CLICKSTREAM |     8 |   176 |     3   (0)| 00:00:01 |
    Note
       - dynamic sampling used for this statementIt would be very interesting to see how this query would look like when using the MODEL-clause or some XML function, by the way...
    I think this requirement can be met using less code that way.
    hopes a few other well-known users will drop in here ;)

  • If else conditional statements for dynamic text fields (as 2.0)

    This is about a self assesment quiz.There will be four options and each one has a scale from1-5 ie "option a" has 1mark, "option b" has 2marks,"option c" has 3 marks, "option d" has 4marks and "option e" has 5 marks and we count the answerd and we display the scor for example if there are 20 question in it if they answered "option e" 5 times the score will be
    25 and option d 5 times the score will be 20,anf if "option c" for 5 times the score will be 15,and "option b" for 3 times  the score will be 6 and "option a" two times the score will be 2, and we add up all the score and display in a dynamic text field called "scor" and the total score is 68.And i have another dynamic text field called "tsc" where i have to display the tags like excellent , good, better ......ect.
    Till now every thing is fine but i am unable to compare them it is displaying excellent even if i get 10 marks, i am unable to configure where i am going wrong.
    If the score is greater than 55 "tsc" should display Excellent, if the score is greater than 41 or less than 55 "tsc" should display Best, if the score is greater than 26 or less than 40 "tsc" should display Better,if the score is none of the above "tsc" should display Poor.
    This is my code on the submit button:
    on (release) {
        gotoAndStop("sQ");
        if (scor>=55) {
            tsc = "Excellent";
        } else if (scor == 41 && scor<=55) {
            tsc = "Best";
        } else if (scor == 26 && scor<=40) {
            tsc = "Better";
        } else if (scor == 10 && scor<=25) {
            tsc = "Good";
        } else {
            tsc = "Poor";
    where:
    "sQ" is the frame name where i am displaying the score details
    "scor" is the var name for the dynamic text field for displaying total score
    "tsc" is the var name for the dynamic text field for displaying the tags llike good, Excellent, better, poor.....etc
    Plese help.......

    Use trace commands to make sure that what you think you are processing is what is actually hapenning.
    Your middle conditionals are not written as you described them... any "==" should be ">="
    It is recommended you get away from using the textfield var option... it can be troublesome to work with.  Just assign an instance name to the textfield and assign the values to its text property... for instance, say you name it tscField, then you would use tscField.text = "Excellent";
    Also, realize that the gotoAndStop command will not happen until after all the code executes in case that matters
    on (release) {
        gotoAndStop("sQ");
        trace(scor);
        if (scor>=55) {
            tsc = "Excellent";
        } else if (scor >= 41 && scor<=55) {
            tsc = "Best";
        } else if (scor >= 26 && scor<=40) {
            tsc = "Better";
        } else if (scor >= 10 && scor<=25) {
            tsc = "Good";
        } else {
            tsc = "Poor";

  • HT200100 I ran this update and now 2011 outlook for Mac will not load, it indicates its not compatible with this operating system, can anyone shed some light on this?

    I ran the update for 10.7.4 and now my 2011 outlook will not load, I've reloaded the application and it still won't load, any help is so appreciated!

    Run all available Office 2011 software updates using Microsoft Auto Update program.

  • Calibrating and saving a profile for a monitor then loading it for another

    How do you save a calibration setting and then see it in the list of loadable calibrations for another monitor? I have identical dual monitors, but cannot seem to figure out how to share a calibration setting between the two.

    yes. Even with that unchecked, each window on each monitor only shows only the user profiles I created exclusively on that particular monitor even though they both show all the same standard preset profiles.

  • AND within IF statement in XML publisher

    Hi All,
    I am in need to use AND condition within an IF statement in rtf template.
    Here is the condition I am using
    <if:../../DIST_SHIPMENT_COUNT!=1 AND ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID?>
    My data
    <?end if?>
    This is not working, does anybody know how to achieve this.
    Appreciate your time and help.
    Thanks,
    Ragul

    so you mean to say
    ../../DIST_SHIPMENT_COUNT!=1 AND ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID
    and
    DIST_SHIPMENT_COUNT!=1 and LOCATION_ID!=SHIP_TO_LOCATION_ID
    conditions are different?
    exactly
    I have always refered to data elements in the RTF without giving any path and it works fine for me. is there anything that I may be missing?
    so you may be have simple case or may be not need to use parent tags logic
    so crazy example
    <ROWSET>
        <G2>
            <DIST_SHIPMENT_COUNT>0</DIST_SHIPMENT_COUNT>
            <ADDRESS_DETAILS>
                <ADDRESS_DETAILS_ROW>
                    <LOCATION_ID>2</LOCATION_ID>
                </ADDRESS_DETAILS_ROW>
            </ADDRESS_DETAILS>
            <G1>
                <ROW>
                    <SOMEROW>some text 1</SOMEROW>
                    <DIST_SHIPMENT_COUNT>1</DIST_SHIPMENT_COUNT>
                    <LOCATION_ID>3</LOCATION_ID>
                    <SHIP_TO_LOCATION_ID>3</SHIP_TO_LOCATION_ID>
                </ROW>
                <ROW>
                    <SOMEROW>some text 2</SOMEROW>
                    <DIST_SHIPMENT_COUNT>1</DIST_SHIPMENT_COUNT>
                    <LOCATION_ID>3</LOCATION_ID>
                    <SHIP_TO_LOCATION_ID>3</SHIP_TO_LOCATION_ID>
                </ROW>
            </G1>
        </G2>
    </ROWSET>
    and
    original condition:
    <?for-each:ROW?><?position()?> and value <?if: ../../DIST_SHIPMENT_COUNT!=1 and ../../ADDRESS_DETAILS/ADDRESS_DETAILS_ROW/LOCATION_ID!=SHIP_TO_LOCATION_ID?><?SOMEROW?><?end if?><?end for-each?>
    your condition:
    <?for-each:ROW?><?position()?> and value <?if: DIST_SHIPMENT_COUNT!=1 and LOCATION_ID!=SHIP_TO_LOCATION_ID?><?SOMEROW?><?end if?><?end for-each?>
    and result as
    original condition:
    1 and value
    some text 1
    2 and value
    some text 2
    your condition:
    1 and value
    2 and value

  • List of sales condition types for a material

    Hi,
    I have a material and maintained pricing and discount condition types for that material. I guess VK33 helps to view what condition types maintained for that material.
    However when I tried VK33 and selected the material from the conditions from the node on the left hand side and entered the sales org, dist. channel and material and executed after I clicked on the display icon on the condition type, Sales org, Dchl material no conditions are displayed.
    Please let me know how I can view the list of sales condition maintained for a specific material.
    Thanks.

    Hi Giri,
    Thanks for the response.
    In VK13 I should enter the condition type then I can hit condition information so that the details of all records maintained for a specific condition type will only be displayed but not for other condition types.
    In V/LD, I am getting the list only for individual prices. If I insert 17 u2013 Discounts and surcharges by customer or 18 u2013 Discounts and surcharges by material, I am unable to get the list. Is it anything because of the u2018release statusu2019?  We had not checked the u2018release statusu2019 field for the tables assigned to access sequence for the condition types.
    As per the requirement business wants to view the list of u201CDiscounts and surcharges by customer/materialu201D. I think this is possible if I run the report provided by inserting values 17 or 18 but the unable to view the list. Any config settings required to activate?
    Please let me know how to view the list of condition types.
    Thanks

  • Got action sequence to "loop" but it shows in all states - conditional statement to fix it?

    Using Flash Catalyst & Notepad (to open and alter the code in the "Main" MXML file) I'm able to "loop" an action sequence on the home state for my swf by changing the code as follows:
    ORIGINAL CODE
    <s:Parallel id="Sequence3">
    ALTERED CODE
    <s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
    The desired effect is a sequence (of 4 images) that loops whenever a user is viewing the home state.  It is activated "On Application Start"
    The PROBLEM is that the loop continues in all other states (it appears in the background - behind the objects that are supposed to show up on the other pages and only begins to show up in each state when the sequence begins another loop).
    I am assuming I need a conditional statement --- something along the lines of:
    while (condition){ statements;}
    ...in other words, ONLY while currentstate = "Home" it should loop the sequence. What would be the correct code for this conditional statement and where would the conditional statement be inserted to loop the sequence as desired???  Or... is there another better way??
    My current code for this action sequence is:
    <s:Parallel id="Sequence3" effectEnd="Sequence3.play()">
                <s:Parallel target="{designlayer1}">
                    <s:Fade alphaTo="0" duration="500" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage2}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage3}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage4}">
                    <s:Fade alphaTo="0" startDelay="2100"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage5}">
                    <s:Fade alphaTo="0" startDelay="1650"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage6}">
                    <s:Fade alphaTo="0" startDelay="1800"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage7}">
                    <s:Fade alphaTo="0" startDelay="1950"/>
                </s:Parallel>
                <s:Parallel target="{designlayer5}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5300"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage8}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage9}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage10}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5350"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage11}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="4750"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage12}">
                    <s:Fade alphaFrom="1" alphaTo="0" duration="0" startDelay="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="2650"/>
                    <s:Fade alphaTo="0" startDelay="5000"/>
                </s:Parallel>
                <s:Parallel target="{designlayer6}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage13}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7550"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage14}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage15}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7750"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage16}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage17}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="5900"/>
                    <s:Fade alphaTo="0" startDelay="7900"/>
                </s:Parallel>
                <s:Parallel target="{designlayer7}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage18}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage19}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage20}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="11000"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage21}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="10650"/>
                </s:Parallel>
                <s:Parallel target="{bitmapimage22}">
                    <s:Fade alphaTo="0" duration="0"/>
                    <s:Fade alphaFrom="0" alphaTo="1" duration="0" startDelay="8500"/>
                    <s:Fade alphaFrom="1" alphaTo="0" startDelay="10800"/>
                </s:Parallel>
            </s:Parallel>
    Thank you!!!!!!!!

    Figured out my issue...
    I had to select each layer for the 4 photo sequence and "Remove From State" for each layer.  If this is done with all layers except the "Home" state, the images show only where appropriate.
    So...   "Loop an action sequence" is really easy.
    I've seen a lot of complaining that "FC can't do it" but with a very simple code mod, I was able to do it WITHOUT using the video timer method.
    I should also mention that I've never worked with Flash at all before this project and am only self-taught in HTML (basics).  I was able to make a pretty good looking Flash component for a web site and never would have attempted it without FC.  I have to say, while FC is a bit limited, GUI-based Flash is a great add for Adobe and will save me over $2k per year in web admin.
    To edit the document in Notepad as mentioned in the first post:
    the full text can be found here http://www.judahfrangipane.com/blog/2010/09/03/flash-catalyst-jailbreak-for-flex-developer s/
    Editing MXML Documents
    To edit your projects MXML documents we first need to find the path to  the Flash Catalyst workspace. To do this publish your Flash Catalyst  project (CMD / CTRL + ENTER). Now, the browsers URL shows the path to  the project workspace. So in this URL,  "file:///Users/judah/Library/Application Support/Adobe/Flash  Catalyst/workspace/Project/bin-debug/Main.html", the project MXML  documents are located at, "file:///Users/monkeypunch/Library/Application  Support/Adobe/Flash Catalyst/workspace/Project/" when on a Mac.
    Flash Catalyst project files
    Project Files Description
    /src - location of the application source files
    /bin - the location of any additional flex libraries
    /bin-debug - location of testing swf
    /html-template - location of the html template that wraps around your application
    /src/Main.mxml - the main application file. make your application changes here
    /src/Main.css - the css stylesheet of the main application
    /src/components - the location of custom components and component skins
    /src/assets/graphics - location of optimized FXG graphic symbols
    /src/assets/images - location of images
    You can edit these XML documents in any text editor. To apply the  changes you need to save the file and refresh the Flash Catalyst  project. You can do this by opening the changed document in Flash  Catalyst code view. When we do this it will recognize the document has  changed and prompt you to use the newer version of the file. Select Yes.  If the project does not rebuild immediately publish it using CMD +  Enter.

  • Parsing/evaluating conditional statements

    I need some help developing an algorithm for parsing and evaluating conditional statements. I need to be able to handle variables, logical operators, relational operators, mathematical operators, and parentheses.
    For example:
    if ( (a+1 > b*5) and ((c +2) * 6 <= 5) )
    All the variables correspond to a number so the expression could be trivially converted to something like this:
    if ( (8+1 > 4*5) and ((6 +2) * 6 <= 5) )
    I am aware that infix expression can be converted to postfix expressions for easier evaluation, but I don't know exactly how this is done, nor do I know if this would be the best way to do it.
    If more information is needed let me know.
    Thanks in advance,
    Paul

    Thanks, this is very helpful information. I ended up coding it by converting to postfix already and have had good results, but I will look into the tree method when I get some time and see if it works better for me. Also if you know what method would typically yeild the best performace for evaluation of the expressions, let me know.
    Also, for anyone else that might want to do this I coded a simple stack class to get around creating objects for evaluating integer/boolean expressions, as long as its not a problem if exceptions are not thrown if the expression's logic is messed up.
    Thanks again,
    Paul
    public class IntStack
        private int[] stack;
        private int top;
        public IntStack(int maxSize)
            stack = new int[maxSize];
            top = 0;
        public void push(int value)
            top++;
            stack[top] = value;
        public int popInt()
            top--;
            return stack[top+1];
        public void push(boolean value)
            top++;
            if (value)
                stack[top] = 1;
            else
                stack[top] = 0;
        public boolean popBool()
            top--;
            return stack[top+1] == 1;
        public boolean isEmpty()
            return top == 0;
    }

  • Examples of conditional statements in 10.1.4 HTML Content Layout Templates?

    I've read all the documentation on metalink/OTN and gone through the OBE but what I really need to see are some REAL WORLD EXAMPLES of an html content layout for an item region that may have a mix of several different item types and display options. What is the best way to handle the conditional statements for item types and display options in an HTML Content Layout Template?
    Hey, hasn't anyone started a SKINS/TEMPLATES web site for Oracle Portal yet???
    :-)

    Since I have multiple item types allowed in a page group and I want any of them to be used for an Items region, I am trying conditional statements based primarily on #ITEM.TYPE# and #ITEM.DISPLAYOPTION#. I have an html content layout I've been working on (lots of trial and error!) for use in an Items regions but I'm still looking for some examples that other people may have implemented in their portal.

  • Handling conditional statements in design view

    I have to use conditional statements for proper cross browser
    compatability but the design view of Dreamweaver isn't showing
    anything. Here is the code:
    quote:
    <!--[if !IE]>--><!--#include file="header.html"
    --><!--<![endif]-->
    <!--[if gt IE 6]><!--#include file="header.html"
    --><![endif]-->
    <!--[if lte IE 6]><!--#include file="headerie.html"
    --><![endif]-->
    I would think that Dreamweaver would load the first one, or
    perhaps there is a setting to tell design view to function as a
    particular browser.
    Does this exist?

    http://www.adobe.com/cfusion/exchange/index.cfm?event=extensionDetail&extid=1564018#
    Ken Ford
    Adobe Community Expert Dreamweaver/ColdFusion
    Adobe Certified Expert - Dreamweaver CS3
    Adobe Certified Expert - ColdFusion 8
    Fordwebs, LLC
    http://www.fordwebs.com
    "justin_pdx" <[email protected]> wrote in
    message
    news:gdtdqe$pi2$[email protected]..
    >I have to use conditional statements for proper cross
    browser compatability
    >but
    > the design view of Dreamweaver isn't showing anything.
    Here is the code:
    >
    >
    quote:
    > <!--[if !IE]>--><!--#include
    file="header.html" --><!--<![endif]-->
    > <!--[if gt IE 6]><!--#include
    file="header.html" --><![endif]-->
    > <!--[if lte IE 6]><!--#include
    file="headerie.html" --><![endif]-->
    >
    >
    > I would think that Dreamweaver would load the first one,
    or perhaps there
    > is a
    > setting to tell design view to function as a particular
    browser.
    >
    > Does this exist?
    >

  • AUMs and Alloy Condition Types

    Hello All MM Gurus,
    Can someone please tell me how and where to create new AUMs (Alternative Units of Measure) and alloy condition types for alloy surcharges calculation?
    Thanks and Regards,
    Umakanth

    Hi,,
    we can create different unit of measure and we can assign that unit of measure in material mater as Alternative Unit OF Measure
    Please check following link
    [Alternate Unit of Measure Conversion Rule Error;
    [http://help.sap.com/saphelp_45b/helpdata/en/c6/f83bb94afa11d182b90000e829fbfe/content.htm]
    Now for Alloy condition type:
    you can create condition type copying any existing condition type and can map in yore MM pricing procedure
    check following link
    [pricing procedure in mm;
    Regards
    Kailas Ugale

  • HT201398 I'm unable to re-install Whatsapp as the iTune Store keeps appearing the terms and condition, once i click the iTune Store. While on the term T&C page, there's no button for proceed. Cant do anything. Has anyone experienced it ?

    I'm unable to re-install Whatsapp as the iTune Store keeps appearing the terms and condition, once i click the iTune Store. While on the term T&C page, there's no button for proceed. Cant do anything. Has anyone experienced it ?

    Hi umawi,
    I understand that you are trying to reinstall an app from the App Store, but you are unable to accept the new Terms and Conditions for using the App Store. I have a few suggestions for you that may help you resolve this issue. First, I would like to recommend that you restart your iPhone and then see if the issue persists:
    Restart or reset your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201559
    If the issue is still present, try clearing the Safari History and Website Data, which is explained in the following article:
    Safari web settings on your iPhone, iPad, or iPod touch - Apple Support
    http://support.apple.com/en-us/HT201265
    To clear your history and cookies from Safari in iOS 8, tap Settings > Safari > Clear History and Website Data. In iOS 7 or earlier, tap Clear History and tap Clear Cookies and Data.
    If it is necessary to take the above step and clear Safari information, you may want to restart the phone again before checking to see if the issue is cleared. Thanks for using the Apple Support Communities!
    Cheers,
    Braden

Maybe you are looking for

  • Is there a way to have the calender results in a global search on an iPhone to appear in reverse cronological order?

    Is there a way to have the calender results in a global search on an iPhone to appear in reverse cronological order?

  • Unable to modify embedded Excel spreadsheet

    Unable to modify embedded Excel spreadsheet I am having problems with 2 Xcelsius files.  When I open them and try to change the tab name, the embedded Excel spreadsheet is coming up that it is protected, but I have never put a password on these 2 fil

  • Setting size in GridLayout

    Hi everybody, I have a main window with a main panel in it, and the window contains a JTextPane, added first, and then a JScrollPane, added second, in a GridLayout with one row. So, the JTextPane is on the left and the JScrollPane is on the right, an

  • Kmail doesn't correctly redirect html messages

    Hey everyone, I would like to redirect an HTML message that comes into my KMail as a MIME email.  In KMail, the original message has two body parts in the bottom pane, one Plain Text and one HTML.  However, when I redirect the message, it puts the Pl

  • Moving apps on iphone

    I know you can rearange apps on iphone by holding the some but is there a easier way to do it like on itunes or something. I have a lot of apps to put on different pages.