Sequencing in functions

I have a function that hides a horizontal rule, moves it
relative to the currentTarget, and makes it reappear. The
showEffect on the HR is an instance of the WipeRight effect, and
the hideEffect is an instance of the WipeLeft effect. So, in
essence, when a user clicks on a button, a line "grows" out of that
button to the right. When a user clicks another button, the line
"shrinks" from its current position, moves to the new position, and
"grows" from there. At least, that was the plan. The problem is the
the move occurs faster than the effect, and the line ends up EITHER
turning visible or invisible, but not both, as planned. Here's the
code for the function:
quote:
public function moveHideHRule(event:Event):void {
myLine.visible = false;
myLine.x = event.currentTarget.x + 135;
myLine.y = event.currentTarget.y + 10;
myLine.visible = true;
here's where I call the event:
quote:
<mx:LinkButton id="addBtn" x="10" y="50" label="Add a New
Resource"
click="theWindow.selectedChild=myAdd; moveHideHRule(event);"
/>
<mx:LinkButton id="updateBtn" x="10" y="80" label="Update
a Resource"
click="theWindow.selectedChild=myUpdate;
moveHideHRule(event);"/>
<mx:LinkButton id="searchBtn" x="10" y="110"
label="Search for a Resource"
click="theWindow.selectedChild=mySearch;
moveHideHRule(event);"/>
and here's where I create/call the effects:
quote:
<mx:HRule width="50" strokeWidth="1" strokeColor="blue"
x="139" y="60" visible="false" id="myLine"
showEffect = "{myRightWipe}" hideEffect="{myLeftWipe}"/>

I've been able to create a Sequence effect, as suggested by
dimpled, but it does not completely solve my problem. You see, I
don't actually want to see myLine move (right now, I'm using a Move
effect). I thought I might be able to get around this by embedding
the move within a sequence in a function, but I can't seem to
figure out how to embed other, non-effect, actions within a
sequence. The best I can get is for the sequence to run and then
myLine appears at the new spot, or vice versa.
As Screenivas mentions, I could easily create two (or more)
HRules and forget about the moving, but I'd like to figure out if
there's a way to include non-effect actions within a sequence.
Here's the new code (in it's entirety, as Greg asked for). You see
that I can get a sequence to work, but I don't actually want to see
the HRule move.
quote:
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"
layout="absolute" xmlns:ns1="*">
<mx:Script>
<![CDATA[
private function moveLine(e:Event):void {
myLine.visible = true;
myMove.end();
myMove.xTo = e.currentTarget.x + 145;
myMove.yTo = e.currentTarget.y + 10;
myMove.play();
myLineMove.play();
]]>
</mx:Script>
<mx:Sequence id="myLineMove" target="{myLine}" >
<mx:WipeLeft id="myWL" duration="500"/>
<mx:Move id="myMove" />
<mx:WipeRight id="myWR" duration="500"/>
</mx:Sequence>
<mx:Panel x="10" y="0" width="100%" height="90%"
layout="absolute" title="Intro Panel" id="P_intro">
<mx:Text x="10" y="24" text="What would you like to do?"
width="229"/>
<mx:LinkButton id="addBtn" x="10" y="50" label="Add a New
Resource"
click="theWindow.selectedChild=myAdd; moveLine(event);"
/>
<mx:LinkButton id="updateBtn" x="10" y="80" label="Update
a Resource"
click="theWindow.selectedChild=myUpdate;
moveLine(event);"/>
<mx:LinkButton id="searchBtn" x="10" y="110"
label="Search for a Resource"
click="theWindow.selectedChild=mySearch;
moveLine(event);"/>
<mx:ViewStack x="173" y="10" id="theWindow" width="100%"
height="95%">
<mx:Panel id="starterPanel" borderColor="blue">
<mx:Text text="Welcome!" id="welcomeMsg" x="45"
y="78"/>
</mx:Panel>
<ns1:addRecord id="myAdd" />
<ns1:searchForm id="myUpdate" />
<ns1:updateRecord id="mySearch" />
<mx:Canvas label="Add" width="100%" height="100%">
</mx:Canvas>
</mx:ViewStack>
<mx:HRule width="50" strokeWidth="1" strokeColor="blue"
x="139" y="60" visible="false" id="myLine" />
</mx:Panel>
</mx:Application>

Similar Messages

  • Formal error: Invalid calling sequence for function modules

    Hi All,
    I have developed a function module for FQEVENT 620 Payment: Transfer Line Items for Clearing.
    The clearing works fine.
    After clearing the open items i need to post an FI-CA Document(BAPI : BAPI_CTRACDOCUMENT_CREATE) for each open item(cleared item)
    I have used the bapi : BAPI_CTRACDOCUMENT_CREATE in the same function module that i have developed for FQEVENT 620 Payment: Transfer Line Items for Clearing.Here i am getting an error "Formal error: Invalid calling sequence for function modules".
    So please let me know where i can use this bapi to post fi-ca document.Is there a BAdi or Enhancement Spot where i can use this BAPI or tell me what should i do to overcome this error.
    Regards
    Venkat

    Venkat:
    While I am confused about your business process - creating an open item when clearing one seems strange.  Look into event 0020 which is called after documents are posted - it may present the opportunity to post process additional documents.
    regards,
    bill.

  • What are the sequence of function modules executed in payroll result

    Dear all,
    what are the sequence of function modules executed  while retrivieng pryroll result.or
    functionmodule sequence in payroll programming.
    By
    bose

    Hi Bose,
    The sequence of FM executed in payroll result are
    1. cu_read_rgdir ---> from this u will get the country key.
    2. cd_read_last -
    > from this fm u will identify the seqnr for the latest record and finally for the payroll result
    3. pyxx_read_payroll_result.

  • How to control sequence of Function Modules processed in update task?

    Hello,
    I've some questions regarding following process that needs to be extended: a Function Module (FM) 'Save' calls several other FM e.g. 'X1' and 'X2' in update task. Those update modules are independent from each other and write data to the database that finalize the save process.
    Now a third FM 'X3' needs to be called in update task. This one is also independent from 'X1' and 'X2' but it calls a further FM 'X4' in background task as separate unit which starts a job. This job  requires the data from FM 'X1' and 'X2' already persistent on the database. By the way: the FM 'X3' triggers the Access Control Engine (ACE) notification that calculates the authorization data in the mentioned job. Therefore this process needs to be the last FM call in update task in the queue of calls in FM 'Save'.
    Questions:
    (1) Is it possible to control the process sequence of the FM 'in update task' simply by the sequence they are called in FM 'Save'.
    (2) Presumed that all FM beside 'X3' have processing type "Update with immediate start" or "Immediate start, no restart" (in short  V1) would it be another solution to specify FM 'X3' with type 'Delayed' to control the process sequence? When a delayed FM will be processed?
    (3) Is it uncritical to call in FM 'X3' (already running in update task) the FM 'X4' with addition in background task as separate unit  that furthermore starts a job by an event? I'm afraid that this nesting could lead to unexpected errors.
    Thank you in advance for your help!
    Best regards,
    Oliver

    ya it will this be in  the same sequence only...........
    Regards
    Anbu

  • Which table for Planning Sequence Planning Function ??

    Hey folks,
    in which table can see, which planning functions (& Filter) are included in one specific planning sequence?
    Rgds,
    Christian

    Hi,
    I already knew this
    What I really wanted to know (unbelievable; i forgot my question) was, where I can see, which Planning Sequences are included in a WebApp (from Web Application Designer). Does anyone know a table for this?
    Rgds,
    Christian

  • Test sequence for function module

    i want to perform a test sequence in which, what is the out put of the first funtion module i want to pass them to the second function module .
    i want to know that whether i can do that or not if yes how?.
    thanks in advance.

    Hi u can do that by doing like this.
    Call 'function1'
    exporting
    var1 = var1
    improting
    var2 = var2
    if var2 is not initial.
    Call 'function2'
    exporting
    var3 = var2
    importing
    var4 = var4
    endif.
    Mark points if helpful.
    Regs
    Manas Ranjan Panda
    Message was edited by: MANAS PANDA

  • Sequence generated function

    Hi Folks
    can any one help me in finding a solution for restricting a function used by other procedures ..
    in my case i have function which is sequence number generator as it is used by other procedures its sequence is disturbed .
    solution is highly appriciated.

    it's failing what could be the root cause of this failure to insertPerhaps this:
    Session 1:
    SQL> create table testtable (id number primary key, col2 number)
    Table created.
    SQL> create function get_seq_num return integer
      2  is
      3  v_seqnum integer;
      4  begin
      5  select max(id)+1
      6  into v_seqnum
      7  from testtable
      8  ;
      9  return v_seqnum;
    10  end get_seq_num;
    11  /
    Function created.
    SQL> insert into testtable values(1,1);
    1 row created.
    SQL> commit;
    Commit complete.
    SQL> insert into testtable values(get_seq_num, 2);
    1 row created.
    Session 2:
    SQL> insert into testtable values(get_seq_num, 3);
    Session 1:
    SQL> commit;
    Commit complete.
    Session 2:
    insert into testtable values(get_seq_num, 3)
    ERROR at line 1:
    ORA-00001: unique constraint (XXXX.SYS_C00162488) violatedTerrible idea to use a function while there are sequences for this purpose.
    Regards,
    Gerd
    Message was edited by:
    gerd_99
    Sorry, forgot to paiste the function code.

  • Custom sequences or functions with default parameters

    Hello!
    Using the Stimulus Profile Editor, I am finding that using a sequence within a sequence to be cumbersome.  This is because it requires you to declare in the main sequence, every parameter that the sub-sequence will use.
    I would like to have a 'configure' sequence whose parameters are all default and do not need to be declared or passed through by every sequence that calls it. Right now, if I change one argument of the 'configure' sequence I have to go to every sequence that references it, and update the parameters and the sequence call.
    Essentially, I would just like an independent  subfuction that has no inputs and returns a few outputs. If the profile editor is not capable of this, what would be my next best option?
    Thanks!

    Hello,
    You can take advantage of the new features in NIVS 2014 to help against re-defining default values for your RT Sequences. Take a look at the documentation in 2014 which explains in more detail how you can use channel references in your sequences:
    What's New in NI VeriStand 2014
    http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/whats_new/
    Variables for Reading and Writing Channels in a Real-Time Sequence
    http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/spe_vars_chref_parameters/
    Example 1a: Reading and Writing Channels Directly from a Real-Time Sequence
    http://zone.ni.com/reference/en-XX/help/372846H-01/veristand/spe_tutorial_example1a/
    By using channel references, you won't have to re-set default parameters. Let me know if you have any questions. 
    Sincerely,
    Aldo A
    Applications Engineer
    National Instruments

  • VT01N-Loading Sequence number functionality /BEV1/RPFLGNR in table VTTK.

    Hi Gurus,
    While creating shipment in VT01N, in the process screen, one field Sequence number: is showing by default Zero.
    Loading Sequence Number in the Tour /BEV1/RPFLGNR in table VTTK.
    Sequence number of the load in the tour.
    When will this sequence number will take running numbers like 1, 2 .. and so on.
    Could any body throw some light on this.
    Thanks&Regards
    Sreekanth

    No response

  • Function Module to Reject PO Release

    Hello All,
    One can reject a PO Release using ME29N, does anybody know of a function module or sequence of function modules to achieve this ? The only BAPI available is for Release, but I couldnt find anything on rejecting release.
    I havent tried a BDC, not sure if it will work with Enjoy Screens. Any experiences ?
    Regards,
    Parag.

    As per standard SAP practice, rejection is only possible for Purchase Requisitions only. Your requirement is called as release cancel.
    There is only one function module available for both release and cancel and you can make use of the same:
    EXIT_SAPLEBNF_005
    Thanks,
    Shree

  • How can I create a function of sound volue from time using AudioQueueBufferRef??

    I have a question how can I analyze class AudioQueueBufferRef, for creating a function of sound volue from time?? Here is what I get . there is AudioQueueBufferRef fillBuf = audioQueueBuffer[fillBufferIndex]; volume height is 2000 elements from SInt16* coreAudioBuffer = (SInt16*)fillBuf->mAudioData. so function looks like H(t*i)=coreAudioBuffer[i] where t = 1/sampleRate = 1/22050 but here is a problem. my program gets sound and uses a class AudioStreamer for this. AudioStreamer has 3000 lines when I play music from Free Internet Radio - SHOUTcast Radio - Thousands of Free Online Radio Stations. internet radio - my problem is as follows either I dont know where 85 % of sound information is or I dont know how I can analyze class AudioQueueBufferRef
    Here is the code where I analyze Buffer.
    {@synchronized(self)
    if ([self isFinishing] || stream == 0)
    return;
    inuse[fillBufferIndex] = true; // set in use flag
    buffersUsed++;
    // enqueue buffer
    AudioQueueBufferRef fillBuf = audioQueueBuffer[fillBufferIndex];
    fillBuf->mAudioDataByteSize = bytesFilled;
    // ======>in this place I analyze Buffer
    if (packetsFilled)
    err = AudioQueueEnqueueBuffer(audioQueue, fillBuf, packetsFilled, packetDescs);
    else
    err = AudioQueueEnqueueBuffer(audioQueue, fillBuf, 0, NULL);
    when bitRate = 24 buffer has the following options int size=(fillBuf->mAudioDataByteSize) == 2000 double sampleRate=asbd.mSampleRate == 22050 numberOfChannels = asbd.mChannelsPerFrame == 1 it turns out that duration of play buffer float bufferTime =(size/numberOfChannels)/sampleRate == 0.1 number of buffers per second float numBuffersInOneSeconds == 1,5 duration of play all buffers per one second numBuffersInOneSeconds * time == 0.15 so it is 15 % of all information
    as a result If buffer comes at 0.0 seconds he lasts up to 0.1 seconds.farther in my function there is no volume. second buffer comes in 0.7 seconds and lasts up to 0.8 seconds. but in reality the sound doesnt breaks. Maybe I'm doing something wrong .please tell me.
    just for comparison
    when bitRate = 32 buffer has the following options int size=(fillBuf->mAudioDataByteSize) == 2000 double sampleRate=asbd.mSampleRate == 22050 numberOfChannels = asbd.mChannelsPerFrame == 1 it turns out that duration of play buffer float bufferTime =(size/numberOfChannels)/sampleRate == 0.1 number of buffers per second float numBuffersInOneSeconds == 2 duration of play all buffers per one second numBuffersInOneSeconds * time == 0.2 so it is 20 % of all information
    when bitRate = 32 buffer has the following options int size=(fillBuf->mAudioDataByteSize) == 1660 double sampleRate=asbd.mSampleRate == 44100 numberOfChannels = asbd.mChannelsPerFrame == 2 it turns out that duration of play buffer float bufferTime =(size/numberOfChannels)/sampleRate == 0.02 number of buffers per second float numBuffersInOneSeconds == 10 duration of play all buffers per one second numBuffersInOneSeconds * time == 0.2 so it is 20 % of all information

    You cannot write custom commands for expressions.
    That being said, there are a couple of options:
    Create a subsequence with a single step. Use a parameter of the sequence as "function parameter".
    Create a custom step type including a substep module which implements the function. Add an edit substep to enable the user of the steptype to gracefully change the parameter.
    Store the variable parameter in a local/file global variable and modify the value in each step. This will, at least, keep the "function" the same for every step.
    Norbert

  • PO Release Reject Function Module

    Hello All,
    One can reject a PO Release using ME29N, does anybody know of a function module or sequence of function modules to achieve this ? The only BAPI available is for Release, but I couldnt find anything on rejecting release.
    I havent tried a BDC, not sure if it will work with Enjoy Screens. Any experiences ?
    Regards,
    Parag.

    Hi parag,
          Use following  fun modules to reject the purchase order.
                           BAPI_PO_RESET_RELEASE .
    Regards
    Eswar Reddy

  • Call function, pass value, access variable in movieclip class from main stage

    i am new to flash as.
    I got quite confused on some problems. as the function here
    is quite different from c and asp.net.
    I have a movieClip named MC, and it's enabled with action
    script, with the class name MC_Rectangle
    and a Stage.
    I override the MC_Rectangle class file in a mc_rectangle.as
    external file.
    here is the code:
    package{
    import flash.display.*;
    import flash.events.*;
    public class MC_Rectangle extends MovieClip {
    var sequence:int = new int();
    function setSequence(data:int):void{
    sequence = data;
    function addSequence():void{
    sequence ++;
    I have new a object in the main stage var
    mc_rect:MC_Rectangle = new MC_Rectangle()
    question:
    in main stage:
    1. how can i access the variable "sequence" in "mc_rect"
    2. how can i pass parametre from main stage to mc_rect via
    function setSequence(data:int)?
    3. how can i call the function in addSequence() in mc_rect.
    in asp.net, i usually use mc_rect.sequenct,
    mc_rect.setSequence(data), mc_rect.addSequence() to achieve my
    goals......
    btw, can function in mc_rect return out result to main stage?
    thanks in advance.

    Your as-file must be named MC_Rectangle.as (same upper/lower
    case as in the Class name)
    Ad 1) You have to declare sequence as a public property
    "public var sequence;" or - better - define a getter-function for
    sequence.
    Ad 2) mc_rect.setSequence(8); e. g. (you must write "public"
    in the Class-declaration of setSequence)
    Ad 3) mc_rect.addSequence(); e. g. (you must write "public"
    in the Class-declaration of addSequence)
    ... and yes, your methods can return a value: Replace "void"
    with the proper data type (int, String, ...) and place a "return
    myNumber;" or the like in the method's body.

  • Error calling pl/sql function in target column

    Hi guys,
    I get this error when calling my function in ODI:
    Caused By: java.sql.SQLSyntaxErrorException: ORA-00904: "mySchema"."GET_ODI_DEFAULT_VALUE(1)": ongeldige ID --> 1 is an IN parameter
    while in sql developer I get a good result with following query:
    select mySchema.get_odi_default_value(1) from dual;
    In my target table for the primary key I call a sequence from mySchema and this works fine.
    I've tried the following synxtax in the mapping of my target column:
    - <%=odiRef.getObjectName( "L","GET_ODI_DEFAULT_VALUE(1)", "D" )%>
    - <%=odiRef.getObjectName( "L","GET_ODI_DEFAULT_VALUE", "D" )(1)%>
    Thanks for you advice

    iadgroe wrote:
    how to bring oracle function into ODI
    I thought for objects like sequences and functions you had to use 'odiRef.getObjectName' to get access to them.
    Am I wrong because now I'm a little confused???Hi,
    Best practices would be to use getobjectname method as this way your not hardcoding anything into the interface and you are referencing the logical object only, which means you can change the logical object later and not have to worry about changing the interfaces.

  • Batch Rename Sequence Letter Doesn't Start with A

    I'm using Adobe Bridge CS3 to rename files.
    Several of the files require me to use the SEQUENCE LETTER function under BATCH RENAME.
    However, the names of the files contain a sequence of letters that start in the MIDDLE of the ALPHABET (i.e.  C, D, E, F, G, etc...)
    I can't find an option to let me start lettering form a letter other than A.
    Help!
    Thanks,
    jjfosho

    I have 3 monitors hooked up and running, the only port not in use is the mini display port (I do not have an adapter).
    All 3 screens are blue and the mouse and key board are not responsive.
    If i take out the other card (ATI Radeon HD 2600) it Tells me I need to restart. Every time i do it comes up with the same thing.
    Is the card Bad or something else?

Maybe you are looking for

  • [solved]Fontconfig problems (Ugly GTK Apps)

    So I just installed the LCD filter patched packages on my new comp, but I'm trying to determine why some of my GTK apps still look really bad.. Firefox looks great, but pretty much any other app looks like crap, the fonts are barely readable. Below i

  • Best Solution for a Rollback

    So we have a 2008 R2 SP2 Enterprise Edition db set up as a Mirrored/LogShipped pair. The mirror is syncronous and log shipping has a 2 hour delay to a remote site. The size of the db is 3 TB+ We plan to perform a system upgrade (mostly schema changes

  • Remove water marks from sepia photo

    I have Elements 7. I wonder if anyone can direct me to the best way of dealing with a large sepia photo. About 25% of the photo has been spoiled by being in a damp area and under glass. This has turned large areas of the photo from shades of brown to

  • RF programming problems

    I have been working my way through a series of problems with bespoke programs written for the RF terminal and have one I cant crack. It appears that LT06 performed via BDC will not work when executed on the RF terminal. The same code used via normal

  • IPhoto crashes 100% when I attempt to create new album

    iPhoto 9.2.1, Lion 10.7.2 iMac 2.8 GHz Intel Core i5 Whether I give the New Album command in the File menu or use the Create button to make a new album, the program immediately crashes. Here are the exception type/codes the report shows: Exception Ty