Forcing code execution order in conditional statements?

I don't know if the above subject line is the best description, but here is the issue.
I have created an image gallery where each "slide" is an image loaded by one UILoader component.  Everything works, except I noticed that as a user it is annoying to wait for each new slide to load.
So, even with my limited knowledge of AS3, I decided to figure out a way to load the next upcoming image before the user requests it. 
My “dirty” solution was to have 2 UILoaders – one for odd numbered slides, one for even numbered slides.  That way, when the user is viewing a slide with an odd number in the first loader, the next image can be loaded into the second (currently invisible) loader and ready to go when requested.  A “next slide” button would simply toggle the visibility of these two loaders.
Not an elegant solution, but I thought it would work.  Unfortunately, that is not the case.  The issue lies in the function that is called when the user clicks on the “next slide” button:
function nextButton(event:MouseEvent):void
imageNumber++;
            myModulo = imageNumber % 2;
            if (myModulo == 1)
                        Loader1.visible = false;
                        Loader2.visible = true;
                        loadNextSlide();
                        //where the loadNextSlide() functions loads the next image into the currently invisible loader
            else if (myModulo == 0)
                        Loader2.visible = false;
                        Loader2.visible = true;
                        loadNextSlide();
                        //where the loadNextSlide() functions loads the next image into the currently invisible loader
Say the user is currently viewing slide 3, when they click the “next slide” button, imageNumber (which was = 3) is now  = 4, and that sets myModulo = 0, satisfying the second condition.
I assumed that what would happen next was that the loaders’ visibility properties would immediately change and then the loadNextSlide function would be called.  In SIMULATED DOWNLOAD, however, it seems that none of the conditional code is executed until the loadNextSlide function runs.
This completely defeats my effort, because when the user (who, in the example, is viewing slide 3) clicks on the “next slide” button, they have to wait to see slide 4 (which is already loaded) due to the loading of slide 5.
I tried replacing "loadNextSlide();" with "dispatchEvent(new Event("loadNextSlide"));" and added an eventlistener that calls the loadNextSlide function, but I got the same result.
Is this just the nature of the AS3 language? Or, more likely, am I thinking about this incorrectly? 
If this really is the "law of the land", is there a way around it?  Is there a better way to load upcoming slides using a loader?

you're welcome.
i generally load everything sequentially.  if you don't want user's to possibly advance into the display far enough to see a load-delay, then you can use some preload display.  here's an example i'm doing for a current client:
www.kglad.com/Files/tf
and click portfolio.
this client has a lot of images to load and wants them presented as soon as possible so i load them sequentially.  that makes for an orderly display (though this client only wants a few images viewable on-stage at any one time).

Similar Messages

  • Actionscript execution order with attachMovie statements

    Hi I wonder if anyone's got any decent solutions to this...
    Basically whenever I have a script generating an interface by
    dynamically placing movie clips (using the attachMovie method), I
    often need the actionscript of the attached movie clip to execute
    before the rest of the code in the main script continues.
    According to normal actionscript execution order, the current
    script finishes before 1st frame actionscript of any attached
    movies is executed, so say for example I had the following in frame
    1 of my root timeline:
    trace("start");
    this.attachmovie("myMovieClip","movieClip1",this.getNextHighestDepth());
    trace("end");
    and the movie clip in my library with the linkage identifier
    "myMovieClip" has the following on frame 1 of its timeline:
    trace("middle");
    Normally this would output:
    start
    end
    middle
    However I want it to output:
    start
    middle
    end
    The only appropriate way I've found so far to do this is to
    have a function that is called on completion of the myMovieClip
    actions, i.e. in the root timeline:
    trace("start");
    this.attachmovie("myMovieClip","movieClip1",this.getNextHighestDepth());
    movieClip1.onLoaded=function() {
    trace("end");
    and in the timeline of the myMovieClip movie clip:
    trace("middle");
    this.onLoaded();
    But the problem with this is that if I rather than the
    trace("end"); statement I want a series of other commands,
    some of them in turn using attachMovie methods, again wanting the
    scripts to execute in the order above, I'm going to end up with a
    lot of nested onLoaded functions and it's going to end up looking
    pretty ugly!
    Any thoughts?

    you're welcome.
    i generally load everything sequentially.  if you don't want user's to possibly advance into the display far enough to see a load-delay, then you can use some preload display.  here's an example i'm doing for a current client:
    www.kglad.com/Files/tf
    and click portfolio.
    this client has a lot of images to load and wants them presented as soon as possible so i load them sequentially.  that makes for an orderly display (though this client only wants a few images viewable on-stage at any one time).

  • Long execution times for TestStand conditional statements

    I have two test stations – one here, one at the factory in China that has been operating for about a year. The test program uses TestStand 3.1 and calls primarily dll's developed using CVI. Up until a couple months ago, both test stations performed in a similar manner, then the computer at the factory died and was replaced with a new, faster computer. Now the same test sequence at the factory take three times as long to execute (30 min at the facotry, 10min here).
    I have recoded the execution time at various point during the execution, and have found that the extra times seems to be occurring during the evaluation of conditional statements in TestStand (i.e. for loops, if statements, case statements). For example, one particular ‘for’ evaluation takes 30 ms on the test station here, but takes 400 ms at the test station at the factory (note: this is just the evaluation of the for condition, not the execution of the steps contained within the for loop).
    The actual dll calls seem to be slightly faster with the new computer.
    Also the ‘Module Times’ reported don’t seem to match the actual time for the module for the computer at the factory. For example, for the following piece of TestStand code:
    Label1
    Subsequence Call
    Label2
    I record the execution time to the report text in both Label1 and Label2. Subtracting one from the other gives me about 18 seconds. However the ‘Module Time’ recorded for ‘Subsequence Call’ is only 3.43 seconds.
    Any body have any ideas why the long execution time with the new computer? I always setup the computers in exactly the same way, but maybe there is a TestStand setting somewhere that I have missed? Keep in mind, both test stations are running exactly the same revision of code.

    Got some more results from the factory this morning:
    1) Task Manager shows that the TestExec.exe is the only thing using CPU to any significant degree. Also CPU Usage History show that the CPU Usage never reaches 100%.
    2) I sent a new test program that will log test execution time in more places. Longer execution times are seen in nearly every area of the program, but one area where this is very dramatic is the time taken to return from one particular subsequence call. In this subsequence I log the time just before the <End Group> at then end of Main. There is nothing in Cleanup. I then log the time immediately after returning from this sequence. On the test system I have here this takes approximately 160 ms. On the test system at the factory this takes approximately 14.5 seconds! The program seems to be hanging here for some reason. Every time this function is called the same thing happens and for the same amount of time (and this function is called about 40 times in the test program, so this is kill me).

  • Tax code entry in sales order item conditions  from excel template

    Hi experts ,
    I have a requirement , in which  tax code in sales order item conditions should be determined from an excel template.
    A Z transaction will fetch values from the template & create sales order in which tax code will be detrmined from the template only, irrespective of the value maintained in condition records.
    Kindly suggest the way, how this can be implemented. Currently tax code field in item conditions of sales order is greyed out and hence cann't be maintained directly in sales order.
    Is there any user exit which can take values from excel template & populate tax code in sales order, bypassing condition records?
    Thanks in advance,
    Vimal

    Hi Vimal,
        I don't understand why you want to read tax code from excel, bcoz what ever criteria you are trying to determine the tax code from excel sheet you can build a condition table and arrive at the appropriate tax code with condition technique.
    Just think, if you some how achieve to get the tax code to pick up from the excel sheet, what will happen if you want to change the order after few days or create a subsequent document? the system will try to read the record from the condition records and may go for a toss.
    My opinion is, suggest the user/business to use the condition technique and build your condition tables with all possible options and arrive at the tax rate and tax code.
    If you still want to go ahead with bespoke develpoment, request you to further specify your requirment so that someone can help you.
    I don't think it is the right idea to reinvent the wheel again.
    Regards
    Raj

  • A question about the execution order of java code

    I have a question about the order of the execution of java code.
    class myclass
    String str1 = new String("str1");
    static String str2 = new String("str2");
    static
    String str3 = new String("str3");
    myclass( )
    String str4 = new String("str4");
    static myfuntion()
    String str5 = new String("str5");
    When I new a myclass object, what is the order of execution about str1,str2.str3 ,str4?
    When I run myclass::myfunction( ) instead of new a myclass object what is the execution order about str1, str2, str3, str4, str5?
    Thanks

    hello,
    I think there may be one thing can't use println to make sure.
    class myclass
    static {  System.out.println("str1");   };
    myclass() { System.out.println("str2"); }
    then str1 appear before str2
    class myclass
    static {  String str1 = new String("str1"); };
    myclass() { String str2 = new String("str2"); }
    then
    str1 initilized before str2,
    str1 get the value str1----->after<----- str2.
    Am I right or wrong?

  • Conditional statement in html

    This is actually not a JSP question but an HTML question. I could'nt find any good html forum sites out there, and since I received excellent replies in my previous post, I am hoping that those of you who know JSP also know html. Heres my question, is there any conditional statement in html (I don't want to use scripts)? The only conditional statement I found was the logic:equal (not equal) statement. And it seems to only work for forms. I am using JSP in conjunction with html so I used an inner html variable declaration in my JSP function. This variable will be used by my html code. And I would like to check the value of that variable in html.
    Heres my JSP function containing the inner html declaration:
    function showItemEdit(field)
    var elements = editWindowDiv.document.all;
    elements("editWindowField").value = "";
    fieldhtml.innerHTML = field;
    var retVal = null;
    retVal = window.showModalDialog("javascript:document.write(window.dialogArguments.innerHTML);editWindowInit();",editWindowDiv,
    "dialogWidth:335px;dialogHeight:185px;scroll:no;status:no;unadorned:no");
    if (retVal == "OK")
    alert("OK");
    else
    alert("Cancel");
    The inner html variable, fieldhtml.innerHTML, is the value I would like to check in my html code.
    This is what I woul like to accomplish in my html code:
    if fieldhtml == register then
    <tr>
    <td class="bodymd">  <bean:message key="label.register"/>:</td>
    <td><input type="text" name="editWindowField" value="" maxlength="5"></td>
    </tr>
    else
    <tr>
    <td class="bodymd">  <bean:message key="label.shift_no"/>:</td>
    <td><input type="text" name="editWindowField" value="" maxlength="3"></td>
    </tr>
    end if
    I am not sure how to accomplish if-else statements in html. I would appreciate any help. Thanks!

    You are mixing things a bit. There is no JSP in your example. You cannot do conditional statements in HTML. However, you can use JavaScript to output HTML:
    if(someCondition){
    document.write("<yourHTMLTags>whatever</yourHTMLTags>");
    else{
    document.write("<yourHTMLTags>something else</yourHTMLTags>");
    }

  • Text box not empty conditional statement

    I've been asked to develop a survey and, in several places, a
    score is given for the completion of text box. However, if there is
    no text in the box, then a score of zero should be given.
    I thought the best way to do this would be to use a hidden
    field with a conditional statement saying "if text box is not empty
    then score=4, else score=0.
    However, firstly I'm not sure how to write this and secondly,
    how do you check if a text box is empty?
    I think it really calls for some human input but the client
    is quite sure this is how he wants it.
    The scores are all going to be inserted into a mysql database
    and sorted out there, so there may be some fudge available there
    but if php could do something nice in the code, that would be
    preferable.
    Thanks in advance.
    Andrew

    Drewbles wrote:
    > However, firstly I'm not sure how to write this and
    secondly, how do you check
    > if a text box is empty?
    Believe it or not, with the PHP function called empty();
    http://docs.php.net/manual/en/function.empty.php
    if (empty($_POST['fieldName'])) {
    // give a score of 0
    } else {
    // give a positive score
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • OMP_SET_NUM_THREADS in a conditional statement?

    I am having problems using OMP_SET_NUM_THREADS in a conditional statement. For example a code like following will make the program to hang indefinitely after starting to execute a parallel DO loop:
    if(mybool.eq.0) then
    call OMP_SET_NUM_THREADS(iprocessors)
    else
    call OMP_SET_NUM_THREADS(1)
    endif
    Is there a problem using this function in conditional statements?
    I am using Forte Studio 7 under Solaris 8 and 10 (I know that it is old but for the moment this is what I have to use...).
    Thanks,
    Rak

    This is probably a bug in Forte 7.
    Can you isolate the problem in a small test case and post the code here. We'll try it on the latest compiler and see if it works or not.
    You know you can download Sun Studio 12 and run it on Solaris 10. (SS 12 is not supported on Solaris 8)

  • Using conditional statements stored inside a variable

    I'm trying to store the body of different emails inside of my
    database to use in email sent with cfmail. The content of the
    emails has conditional statements using cfif and other variables
    based on a query running. If I set the content as a variable and
    then place that inside of the cfmail tag it does not process the
    cold fusion code. Is there a way that I can process this code so
    that the final output is what is placed within the cfmail tag or is
    it not possible to do what I'm trying to accomplish? Thanks in
    advance for any ideas.

    Here is a sample taken from the text file. The output created
    by the cfsavecontent tag is identical to the text file.
    Dear <cfif IsDefined(GetData.strFirstName) AND
    GetData.strFirstName IS NOT
    "">#GetData.strFirstName#<cfelse>Member</cfif>,
    Thank you for joining xxxxxxxxx. We're glad to
    have you as a member and appreciate your support. Your
    membership
    application has been processed and your member packet will
    arrive soon.
    Your new membership number is #GetData.strCustomerID#. This
    number is useful
    when buying product from our online store, renewing your
    membership or
    contacting us with questions or comments.
    <cfif GetData.ExpirationDate IS "9999-12-1">We are
    especially grateful for your commitment to xxxxxxxx
    through your Life Membership.<cfelse>Your membership is
    current through #DateFormat(GetData.ExpirationDate, "MMMM
    YYYY")#.</cfif>

  • Third Party Order pricing conditions copy to PO

    Hello,
    I have few pricing conditions in the 3rd party sales order. I want those conditions to be reflected in the 3rd party PO.
    Is there anyway to copy third party sales order pricing condition types to the PO?
    Cheers
    Anand.

    Dear Anand,
    Try with,
    T. Code: ME11 - Create Info Records
    Maintain the same condition in the info-record. The price shall be picked up in the PO by the inforecord.
    Best Regards,
    Amit

  • Using CONSTANT in Condition Statement

    Hi
    What I am trying to do is put CONSTANT into IN Condition Statement.
    When I use Bind variables just like :bind, It works properly
    But What if I use as a CONTANT, It doesn't work.
    In my opinion, parenthesis is not work well.
    Please help me out
    thanks in advance and below is PL/SQL CODE
    PROCEDURE PROC_MAIN
    iUserID          IN     VARCHAR2,
    iJobID IN VARCHAR2
    ) AS
    C_AGENT CONSTANT VARCHAR(20) := '10,11';
    C_staff CONSTANT VARCHAR(20) := '40';
    C_newStaff CONSTANT VARCHAR(20) := '50';
    C_ETC CONSTANT VARCHAR(20) := '20,30';
    BEGIN
    vJobId :=
    CASE iJobID
    WHEN '41' THEN C_AGENT
    WHEN '42' THEN C_staff
    WHEN '43' THEN C_newStaff
    WHEN '40' THEN C_ETC
    END;
    insert into tbl_monthly
    (emp_no, salary)
    select emp_no, salary from tbl_emp
    where Staff_cat in vJobId ;
    end;
    Message was edited by:
    allbory

    Hi,
    Please check the changes:
    Note: table_name is changed to test.
    CREATE OR REPLACE PROCEDURE PROC_MAIN
    iUserID IN VARCHAR2,
    iJobID IN VARCHAR2
    ) AS
    C_AGENT CONSTANT VARCHAR(20) := '10,11';
    C_staff CONSTANT VARCHAR(20) := '40';
    C_newStaff CONSTANT VARCHAR(20) := '50';
    C_ETC CONSTANT VARCHAR(20) := '20,30';
    vJobId          VARCHAR2(20);BEGIN
    vJobId :=
    CASE iJobID
    WHEN '41' THEN C_AGENT
    WHEN '42' THEN C_staff
    WHEN '43' THEN C_newStaff
    WHEN '40' THEN C_ETC
    END;
    EXECUTE IMMEDIATE 'INSERT INTO tbl_monthly(empno, salary) SELECT empno, sal FROM scott.emp WHERE deptno IN ('||vJobId||')' ;
    END;

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

  • Purchase Order Pricing Condition and Withholding Tax

    Hi
    We have investigated Extended Withholding Tax functionality, which appears to be FI specific.
    The problem is that we want to have the Purchase Order pricing conditions reflect that some amount is being withheld for tax purposes.
    At invoice time, the vendor would invoice for the entire amount (i guess) (ie. 100$) but we would pay the vendor only 80$ and 20$ would go to a withholding tax account...or something like this would happen ...
    I have some pricing config knowledge...but limited
    Can anyone tell me
    a) if this is possible?
    b) any hints on how to go about this?
    Also noticed a 'withholding tax code' field on MEK1 - Create Condition Records. .... which appears as display only depending on how i configure my condition type - haven't figured out how to use this field or what is means...
    Thank-you !!!

    Hi,
    If you are using the standard PO Print then check in M/08 and check for that Condition Type whether Print Indicator is "X"? If it is is Z-Print Program then take help of ABAPer.

  • Change the Purchase Order : Item - Conditions value

    Hi,
    How to change the Purchase Order : Item - Conditions value.
    In my PO, Item conditions shows the SKTO - Cash Discount value is 0. I want to change the Discount value 10.
    How can i change it??

    Hi,
    Goto the Transaction code MN05 and give the CONDITION TYPE SKTO and change the value
    MN05 is the Transaction code for Purchase order  condition types.
    Please check and revert back if you need more details.
    regards,
    santosh

  • Java programming standard for conditional statement

    Hi,
    Is it proper Java standard to use constants first in a conditional statement? I've never seen coding in this way, even when I was in college I never saw it in any of our books.
    example:
    String x = null;
    if (null==x){
    //Do some stuff
    }

    kevjava wrote:
    yawmark wrote:
    ...hence, more work.Not if "NAME_KEY" (i.e., the literal value) changes.
    ~If some wise guy resets it to null, then you've lost all benefit of making a constant out of it to begin withIf that happens, you've got some people problems to deal with! Anyways, if it's really a constant, it'll be final, right?
    .... and I was sort-of reiterating that it was a self-named constant... you're right, of course, but I guess I'm just peaved at having to see stuff like...
    private String JAN="JAN";
    private String FEB="FEB";
    // ...and on and on...
    // later...
    if (FEB.equals(month)) {
    // do stuff
    } else {
    // do stuff
    }Have you ever actually seen code like that in production? I wonder, what are you up to that a class needs its own, private, set of months?
    My point is that the three-letter abbreviation is always going to be "FEB" (yes, i18N and language specializations aside)Why put them aside, though? They're not exactly corner cases

Maybe you are looking for

  • I am trapped in Warranty He!! my laserjet is broken and I cannot get any help

    I have never had an experience like this one, except with my dell m1330, but I digress.  I have an M1319f MFP.  I purchased it on march, but last week the fax died.  I did not have the original receipt in my possession, but the HP website said my war

  • Process chain flow - based on table values

    Hi, I want to control the flow of Process chain run through the values that exist in a field ZCONTROL of Z table. I have created an ABAP Program where I access the Ztable to get the ZCONTROL values and have added the program in the ABAP process type.

  • New to flex, need some help

    Hello, I am a new user of Flex 4 and have recently gone thru the training courses available here (Flex in a week).  I have been tasked with moving some of our firm's webpages that use jsp and spring to connect to a mysql database to a flex frontend. 

  • Plz help Help I have accidentally deleted the var folder on my mac and now it won't start up what should I do?

    Plz help Help I have accidentally deleted the var folder on my mac and now it won't start up what should I do?

  • TextFlow img / problem !

    Dear friends in Adobe, There is a simple question here: When we are using textFlow in our project, and when we want import some html tags in it, specially when our textFlow obj. is in a Module, for example: <mx:Module xmlns:fx="http://ns.adobe.com/mx