Debugging a MOUSE_DOWN function

I have an animation im working on, a series of images, placed in individual keyframes, that is rotatable by clicking down and dragging left or right.
My actionscript is solid when viewed in flash's desktop player. The problem is the client views it in whatever web browser he uses, and when viewed in a web browser, the MOUSE_DOWN action causes the image to progress without regard to the mouseX rule.
This is making me pull my hair out, so here is my code, any help would be appreciated:
stop();
stage.addEventListener(MouseEvent.MOUSE_DOWN, mDown);
stage.addEventListener(MouseEvent.MOUSE_UP, mUp);
var prevMouseX:int;
function mDown(event:MouseEvent):void {
prevMouseX = stage.mouseX;
    this.addEventListener(Event.ENTER_FRAME,mMove);
function mUp(event:MouseEvent):void {
    this.removeEventListener(Event.ENTER_FRAME,mMove);
function mMove(event:Event):void {
        var activeMouseX = stage.mouseX;
        if (activeMouseX > prevMouseX){
            if(currentFrame == 1){
                gotoAndStop(totalFrames);
            } else {
                prevFrame()
        if (activeMouseX < prevMouseX){
            if(currentFrame == totalFrames) {
                gotoAndStop(1);
            } else {
                nextFrame()
prevMouseX = stage.mouseX;

use the trace function to debug.

Similar Messages

  • How to debug a Package / function in PL SQL developer ??

    How can we debug a Package / function in PL SQL developer ??
    i want to debug a code line by line

    Karthick_Arp wrote:
    This question does not belong to this fourm. We have a {forum:id=260} forum for such question.Not even there Karthick. PL/SQL Developer is a 3rd party tool, not Oracle's SQL Developer, so it doesn't even belong on the Oracle forums.

  • V Urgent : Debugging an RFC function Module in another R/3 system

    Hi All
    I have a function module in a R/3 system ( say WB1 ) and i am calling it from another R/3 system (say WD1) . Both have their RFC destinations set up as trusted system mutually . However when i try to debug that FM while in WD1 ( which basically exists only in WB1) i am not able to get inside that FM . Are there some settings that we need to do to allow us to debug function module in another R/3 system ? .
    Yes ,we cant do this debugging if RFC function module is in a non SAP system but am sure it can be done atleast for R/3 to R/3 .
    Any pointers to this as to what setting needs to done ?
    Does some system parameter needs to be set in RSPARAM program for debugging RFC?
    Please help
    Regards
    Shovit

    Hi
    Can you do a remote logon through the SM59 connection (the trusted one)?
    If so, then the only thing preventing you would be debugging autorization.
    If not, make sure you have trusted system logon auth (not part of SAP_ALL!).
    Cheers
    Dom

  • Debug an oracle function with toad 7.4, oracle 9i

    Hello,
    i wanna debug an oracle function with toad 7.4
    so i wanna give param to this function and fix breakpoint and verfy some variables values ... etc
    could you show me how debug it?
    Thanks
    Regards
    Elyes

    Do you have the Toad Debugger? Thats the extra cost option which you get for free in OracleSqlDeveloper.
    If you have the ToadDebugger, Read the Manual
    If not , download OracleSqlDeveloper and use it. It's free, and written by Oracle.

  • How to debug a RFC function module remotely from another R/3 system?

    Hi experts,
       I have RFC function module in one R/3 system. I am calling this from another R/3 system that is cross apps (Xapps).
       This function module is Synchronous.
      Is it possible to debug this function module from cross apps?
      Can somebody give me the steps?
    Thanks & Regards
    Gopal

    Hi Shree,
       Can you explain it bit more?
       Do I have to call the function  module with "IN BACKGROUND TASK"?
       Or is it that I have to just put external breakpoint in the function module?
       Please help
    Thanks
    Gopa

  • How to debug a remote function module in calling system? Help!

    Hi Experts,
       I have a ABAP report (in System A) from where I am calling a remote function module which exists in a different system B.
    ABAP Program(System A)<----calls--
    RFC(System B)
    Can I debug the RFC funnction module in system A using ABAP debugger? In other words if i put a breakpoint on the "call function" statement then in debug mode I want to see that the control is going to system B and I should be able to process the FM code line by line. Is this possible?
    Is there any special transaction or settings?
    Is there any alternative?
    Please help
    Thanks
    Gopal

    hello,
    Try this method.
    first check whether RFC connection is working b/w 2 systems.
    if connection is working, then do like this.
    In System B , put endless loop in FM before some main select statement.
    like
    DATA : v_a TYPE c VALUE space
    DO  .
       IF v_a = 'X'.
         EXIT.
       ENDIF.
    ENDDO.
    the above code will be endleep loop.
    In system A, when cursor goes to CALL FUNCTION DESTINATION 'XXXXX'.
    u shud be logged in system B. the moment control comes to system B.goto tcode SM50 . check ur username . choose that particular  checkbox then in menu bar --> program/session --> Program --> Debugging.
    i hope it will help u.
    try & let us know.
    Thanks,
    Manjunath MS

  • Debugging an RFC function module

    Hi,
    I am making an RFC call from Server(RDH) to server(RDI).The problem i am facing is that i am not being able to return debug the function module nor is this returning any values. The function module has been transported to the RDH and Rdi servers.
    One reason could be that the destination returned by teh function module us wrong but the people concerned insist that it is correct. I am at a loggerheads.
    Thanks
    CALL FUNCTION '/GLB/RGT_RFC_DESTINATION'
        EXPORTING
          destsysttype                 = l_c_o "commercial box
        IMPORTING
          rfcdest                      = v_comdest
        EXCEPTIONS
          no_destination_found         = 1
          own_logical_system_not_found = 2
          OTHERS                       = 3.
      IF sy-subrc <> 0.
        MESSAGE i004."Destination not maintained
        LEAVE LIST-PROCESSING.
      ENDIF.
      CALL FUNCTION '/AOA/FAO_RFC_BILL_INFO'
        DESTINATION v_comdest
        EXPORTING
          im_i_bsid10           = i_bsid10
        IMPORTING
          ex_i_billing          = i_billing
          ex_i_vbfa             = i_vbfa
          ex_i_vbpa             = i_vbpa
        EXCEPTIONS
          communication_failure = 1
          system_failure        = 2
          OTHERS                = 3.

    Did you check in SM59 whether the said RFC destination is maintained and if it is able to connect to the destination.

  • How to debug PL/SQL function in Apex

    Hi,
    I have a process in Apex that uses a PL/SQL function. When I compiled it in SQLPlus, it had no errors, yet when running it in Apex, I get an error.
    'Encountered unhandled exception in process type PLSQL' in the debug message. What's the best way to handle this? Thanks.

    Hi -
    Its hard to say without seeing the code of your process, but are you sure you are submitting any required paramaters to your process from the calling apge in Apex?
    Have you checked the Session to see what values it holds, and have you turned on Debug in Apex to see the code executing (or at least the call to your process)?
    Good luck.

  • Debugging PL/SQL Functions - Aaghh help!

    Hi. this is driving me nutz.
    here is my function:
    CREATE OR REPLACE FUNCTION MYPROC_GETCOMPID
    COMPNAME IN VARCHAR2,
    SITEID IN INTEGER
    RETURN NUMBER IS
    RVAL INTEGER;
    LOCALVAR INTEGER;
    BEGIN
    SELECT COMPUTERID INTO LOCALVAR
    FROM DATAUPLOAD.COMPUTER_LIST WHERE
    COMPUTERNAME = COMPNAME AND
    SITE = SITEID;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    LOCALVAR := 0;
    RVAL:=LOCALVAR;
    RETURN RVAL;
    dbms_output.put_line('Local var');
    dbms_output.put_line(LOCALVAR);
    END MYPROC_GETCOMPID;
    It gets created fine. My question is, how the F can I create a bit pl/SQL to debug this?
    I tried:
    begin
    declare localin integer;
    localin := MYPROC_GETCOMPID('MYPC1',1);
    dbms_output.put_line('LOCALINT');
    dbms_output.put_line(LOCALINT);
    END;
    ... and I tried
    begin
    declare localin integer;
    localin = MYPROC_GETCOMPID('MYPC1',1);
    dbms_output.put_line('LOCALINT');
    dbms_output.put_line(LOCALINT);
    END;
    but boy does neither of these work.
    Could someone please tell me whats going wrong??
    AND can you see that exception in the function? thats there because for some reason a simple is null statement fails. any guesses as to why that is happening?
    many thanks for your time
    I

    Hi John,
    Sorry, I didn't include the error output because I thought that it would be obvious to people what was wrong with how I was attempting to call the function. I'm a bit of an oracle newbie (I'm sure thats more than obvious)
    Thanks for your help on the exception. I was just looking for reassurance that I was needing to handle the error like that. The data structure means that I shouldn't get too many rows (1:1 relationship between computername and computerID, thankfully!)
    Heres the responses from SQL*Plus (this is Oracle8i by the way). The responses are the same whether 'MYPC1' exists in the computer_list or not, so I am guessing that there is just something I am doing not quite right in the syntax for calling this function. (infact, see below for a hello world example that also fails).
    --here we see I have set up for screen output okay:-
    SQL> BEGIN
    2 dbms_output.put_line('Hello World!');
    3 END;
    4 /
    Hello World!
    PL/SQL procedure successfully completed.
    SQL>
    -- first failure:
    SQL> begin
    2 declare localin integer;
    3 localin = MYPROC_GETCOMPID('MYPC1',1);
    4 dbms_output.put_line('localin' );
    5 dbms_output.put_line(localin );
    6 END;
    7 /
    localin = MYPROC_GETCOMPID('MYPC1',1);
    ERROR at line 3:
    ORA-06550: line 3, column 9:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national character
    nchar
    --- so I figure, this is a declarative syntax issue ( = as opposed to := ), so I try the following:
    SQL> begin
    2 declare localin integer;
    3 localin := MYPROC_GETCOMPID('MYPC1',1);
    4 dbms_output.put_line('localin' );
    5 dbms_output.put_line(localin );
    6 END;
    7 /
    localin := MYPROC_GETCOMPID('MYPC1',1);
    ERROR at line 3:
    ORA-06550: line 3, column 9:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national character
    nchar
    The symbol "<an identifier>" was substituted for "=" to continue.
    ORA-06550: line 4, column 12:
    PLS-00103: Encountered the symbol "." when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national charac
    ORA-06550: line 5, column 12:
    PLS-00103: Encountered the symbol "." when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national charac
    ORA-06550: line 6, column 1:
    PLS-00103: Encountered the symbol "END" when expecting one of the following:
    begin function package pragma
    --- finally , 'hello world' failure :
    SQL> begin
    2 declare localst varchar(11);
    3 localst = 'hello world';
    4 dbms_output.put_line('localst');
    5 dbms_output.put_line(localst);
    6 END;
    7 /
    localst = 'hello world';
    ERROR at line 3:
    ORA-06550: line 3, column 9:
    PLS-00103: Encountered the symbol "=" when expecting one of the following:
    constant exception <an identifier>
    <a double-quoted delimited-identifier> table LONG_ double ref
    char time timestamp interval date binary national character
    nchar

  • Debugging of ABAP Function Module through ISA Application CRM B2C 4.0

    Hi Experts
    There is way to Debug ABAP FM through ISA CRM b2c Application by Modifying some XML Files as per Extn Guide.
    I tried modifying the <APPLICATION_HOME>\WEB-INF\xcm\customer\modification\modification-config.xml After that I restarted the Application .
    But it is not Breaking for Both Statefull & Stateless FM after running my Application.
    With Some Help i found that if we try it on Remote System ( Means SAP GUI has to in Same System where CRM is Installed ???????????). but that is not Advisable Right !!!.
    So if i am able to Debug ABAP Function Module through ISA Application from any Other remote System.
    I think it will be very Useful.
    Thanks & Regards
    Ravi Sah

    Ravi
    It is other way around !!!
    You should have SAP GUI installed on the machine in which you start(access) your B2C Application. This enables for ABAP Debugging.
    We have tried this and works fine for us !!!
    Thanks
    Jack
    <b>Allot points if my post helps !!!</b>

  • How to debug PL/SQL functions? Passing parameter and debugger error

    Hi,
    How to debug a PL/SQL function in JDeveloper? There are two problems with it:
    1) Don't see how it's possible to pass parameters required by function call (in the dialog opening after Debug -> Debug FUNCTION_NAME)
    2) In a function returning table_name%ROWTYPE (and having a record declaration for table_name%ROWTYPE), debug gives error:
    PLS-00103: Encountered symbol "/" when expecting one of ... in line
    v_Return PL/SQL RECORD;
    Debugging procedures works as expected.
    Found a similar question without answer here:
    Debugging PL/SQL with parameters

    Check
    http://www.oracle.com/technology/obe/obe9051jdev/plsqlobe/obeplsql.htm#t2
    Frank

  • How to debug outbound Idoc function module for invoice

    I have to debug the outbound IDOC function module and UserExit for invoice message type INVOIC, process code SD09, function module is IDOC_OUTPUT_INVOIC and user exit for the function module LVEDF001.
    I tried putting the break point in function module IDOC_OUTPUT_INVOIC and recreate the IDOC using WE19 but it creates the idoc but does not stop at the break point. I have also tried generation of idoc through VF02. It again creates the idoc but does not stop at the function module.
    Please let me know if I am missing any thing and not doing it right.
    Appreciate your help.
    Rohit

    Hi Ali,
        I faced the same problem. Thing is the break point is not getting triggered when i ran tha IDOC through WE19.
    What i have done is i created a project for my exit in CMOD and kept some junk code in the exit and executed it through BD21. Then the Break point got triggered. See if it works.
    Regards,
    Uday S.

  • Debug Email PO functionality

    Hey Guys,
    I have got two PO's in I procurement module for which email did not go to the supplier.This functionality is implemented through XML gateway.
    Can you tell me how to debug the issue , what should be the approach. I am new to i proc , please help !
    Regards,
    Amit

    Hi,
    Do you know the program (which will mostly be custom) that is used in the WF to generate the PO PDF?
    If so please try to run the program for these PO's and see if the concurrent program is generating the PDF with the correct PO information.
    You said that the WF is complete status without errors, did you check the event send Email is referring to the correct address?
    I am asking this because some times when the email id gets appended with AMERICAN (language mode in the PDF), don't know the exact reason though.
    Also can go to purchase order summary form for any of these PO's and try Tools>>Communicate (you can put ur email add for testin) option to see if the PO PDF is coming?
    Do you find any attachments for these PO's from the PO form (after opening the PO)?
    Karthik

  • Debugging Append Structure Function Module

    Hi,
    If we enhnace the extract structure with append structure and write a function module to fill the data for append structure then how do we debug this function module. When this function module will be executed?
    Thanks.

    Whenever you enhance an extraction structure, the right place to include and execute the code for populating the appended fields is in CMOD.
    In there, you can create a "CASE" entry for your datasource and put the code for it. If you want to call a function module in here, you can do so.
    This code will be executed after the "main" fields in the datasource are filled, right before they're sent to BW.
    You can easily put a "breakpoint" in that code, execute a test extraction using RSA3 and debug your code and logic.
    Regards,
    Luis

  • Debugging the "Pattern" functionality

    Hi,
       Have a look at this:
       /people/puru.govind/blog/2006/11/17/trick-debugging-insert-statement-screen
       Is this the only way to achieve this?
    Regards,
    Pooja

    Hi Uwe,
    Finally it is good for something!
    Thank you for that hint. I always thought it is not possible to enter debug mode from a popup - now I can!
    I think meanwhile I understand the meaning of "pattern" in the blog: It is just this pushbutton you can use to insert staments for CALL FUNCTION, MESSAGE and so on. The author want's to tell us how we can analyze the code of this functionality without stepping through the debugger until the pattern popup screen comes up. OK. Although I'm convinced this is not the only way to find out how the pattern functionality works.
    Anyway, I think the 'drag-debug-icon' may be quite helpful.
    Regards,
    Clemens

Maybe you are looking for

  • Solaris 8 on dell inspiron 7000 laptop

    Hi gurus... I need your help to install solaris 8 on my inspiron 7000 laptop. I'm able to install until it wants to test the X window. I tried all selection for the screen size and type but still gave me blank screen when I tested. this notebook use

  • ITunes 10 for OSX 10.5 only why?

    I was so bummed to see yet another major component/function of OS X not available for 10.4.11. Is this a "tech-under-the-hood" thing, or a money thing? I just don't need 10.5/6 and am not going to spend $130 for something I don't need - generally spe

  • Motion 4 wont run on my 13'' can I get Motion 3 too?

    I have final cut pro 7, works great on my 13'' Mac Book Pro, but.... Motion 4 has trouble running, I wont too know if I can get Motion 3 and if it is HD and can exported projects too FCP7 with no worries, where can I buy just motion 3 if this is so?

  • Need data extract and load program

    hi where i can find all the standard data extract programs and standard load programs. Pls thisis urgent. thankyou

  • How long app takes to run for adobe story

    I clicked on get started icon on the adobe story hours ago and I have yet to see anything come up. How long does it take to run?