Make simultaneously or sequentially moveable and editable fields or text sprites in movie.

I am having a bit of a problem with creating field or text sprites that are both editable and moveable. I want a user to be able to enter text into the sprites and move them around on the stage to serve as labels for schematics they are making. I can easily make them moveable or editable, but when trying to do both one property interferes with the other. I have been using various combinations of the properties on the mouseenter, mouseleave, and mousedown handlers. One version of my non-workable efforts are below. Seems I can move a sprite but once editable gets focus can't move it anymore.  Any ideas?
rod
property spritenum
on mouseenter me
  sprite(spritenum).moveablesprite = true
sprite(spritenum).editable = false
end
on mouseleave me
  sprite(spritenum).editable = false
  sprite(spritenum).moveablesprite = false
end 
on mousedown me
  sprite(spritenum).moveablesprite = true
  sprite(spritenum).editable = false
end
on mouseup me
  sprite(spritenum).moveablesprite = false
  sprite(spritenum).editable = true
end

Just set your text properties in the property inspector and attach a drag sprite behavior.
--  Drag sprite
property  sp  -- this sprite
property  pStartLoc  --  sprite location upon mouseDown
property  pMouseStart  -- mouse location upon mouseDown
property  pMoving  -- flag for enterFrame. True/False
on beginSprite me
  sp = sprite(me.spriteNum)
  pMoving = false
end beginSprite
on mouseDown me
  pStartLoc = sp.loc
  pMouseStart = _mouse.mouseLoc
  pMoving = true
end mouseDown
on mouseUp me
  pMoving = false
end
on mouseUpoutside me
  pMoving = false
end
on enterFrame me
  if not pMoving then exit
  deltaMouse = _mouse.mouseLoc - pMouseStart
  sp.loc = pStartLoc + deltaMouse
end enterFrame

Similar Messages

  • CFMAIL and Editing Fields

    Hi all,
    I need to allow a user to fill out some forms with the
    following info: Name, Title, Supervisor, Division, Status, Salary,
    Effective Date and Remarks. After filling out the info, it needs to
    be sent via a link that will allow the recipient access to the
    table to edit if necessary. Then the recipient can 'Approve' or
    'Deny' the information and send it back for review and distribution
    by the original sender.
    The forms are already complete but I'm confused as to how the
    emailing and editable fields will work. I already have a CFMAIL
    page completed that used to display the information once it was
    input then simply mail it to the recipient. Well, now, the user
    wants the ability to have the recipient edit the information then
    email it back so that they can distribute it. So now I have to use
    a DB table, whereas before, it was just being sent as an email. So
    I've created the table with the columns for the info I mentioned
    before. What I'm confused with is how to make the transfer from
    just emailing information, to emailing a link that will allow the
    recipient to access the table, edit it if necessary, then Approve
    or Deny it and send it back in the same format. The Approval can
    simply be in the form of a field.
    So I basically need to make it so that I'm taking this and
    making it into an editable table via a link sent though an email
    after the user has filled out the necessary information in the
    forms before. Sorry for all the explaining and confusion. I've
    attached some code to look at and modify. I can provide more code
    from the form input pages if you'd like though I figured the logic
    of the email and the ability to allow the recipient to update the
    DB then actually send it back is in the page I attached. It's
    probably not as bad as it looks or sounds but it's confusing the
    hell out of me...
    Thanks a ton,
    Eric

    I have never used REUSE_ALV_GRID_DISPLAY function module for such scenario but i have used OO ALV to get data realtime.
    CALL METHOD GRID1->SET_TABLE_FOR_FIRST_DISPLAY
           EXPORTING
             IS_LAYOUT        = GS_LAYOUT
             IS_VARIANT       = GS_VARIANT
             I_SAVE           = X_SAVE
             IT_TOOLBAR_EXCLUDING = TEMP_UI
           CHANGING
             IT_FIELDCATALOG  = ITAB_FIELDCAT[]
             IT_OUTTAB        = I_ORDER[]
             IT_SORT          = I_SORT[]."
    I display ALV using above statement and whenever user clicks some button on the container, i use
    "* refresh screen display with new data.
      CALL METHOD GRID1->REFRESH_TABLE_DISPLAY.
    method to get new data populated into internal table after this statement.

  • Interactive report with checkbox and editable field

    Hi,
    For a project I'm working on I need to create a interactive report in Apex 3.2 with the ability to select lines and to modify one of the columns in the report.
    To do this, I started off by adding these two fields to the selection query of my IR:
    apex_item.checkbox(1, product_number) cb
    and
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER
    cb is the checkbox files, and QTY_TO_ORDER is the editable field.
    That worked like a charm and I got my two fields in the report.
    To process the values, I added this page process, wich for now should only store the "product number" and "QTY_TO_ORDER" fields in a table.
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(i));
    END LOOP;
    commit;
    end;
    However, this doesn’t work the way I want it to work. When I check the checkboxes of two rows, it will store two rows with the right product numbers, but it will take the top two QTY_TO_ORDER field of the table regardless of which ones are checked. I was able to solve this problem, by adding a rownum to the query and using the rownum as the value for the checkbox. Since I still need the product_number and qty_to order fields I made them both text fields.
    I changed my page process to:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    insert into mytmptable values (APEX_APPLICATION.G_F02(APEX_APPLICATION.G_F01(i)),
    APEX_APPLICATION.G_F03(APEX_APPLICATION.G_F01(i)));
    END LOOP;
    commit;
    end;
    This seemed to solve the problem, and I now got the right values in the table, unless I used sorting in the report... As soon as I sorted the report in a way different than by rownum, I got the wrong values in the table. The reason for this is of course that my insert just selects the nTh row from the table, and my rownums aren't dynamic.
    I've found a lot of examples on the internet using '#ROWNUM#' in the selection, which should dynamically generate a rownum in the report. This seems to work in normal report, but in a interactive reports, the literal values '#ROWNUM#' shows up.
    Is there any way to solve this issue?

    Hi,
    Try with 3 fields:
    apex_item.checkbox(1, product_number) cb,
    apex_item.text (2,QTY_TO_ORDER) QTY_TO_ORDER,
    apex_item.hidden(3, product_number) prod_no
    The hidden field should be display as a hidden column.
    Then your process can be:
    BEGIN
    FOR i in 1..APEX_APPLICATION.G_F01.count LOOP
    FOR j in 1..APEX_APPLICATION.G_F03.count LOOP
    IF APEX_APPLICATION.G_F01(i) = APEX_APPLICATION.G_F03(j)) THEN
    insert into mytmptable values (APEX_APPLICATION.G_F01(i),APEX_APPLICATION.G_F02(j));
    exit;
    END IF;
    END LOOP;
    END LOOP;

  • Importing and editing dvc pro 50 in i movie HD 6

    I am sure that I'm trying to do something impossible, but I have .avi files encoded in MPEG-4 format from a quantel non-linear machine that I would like to import and edit in iMovie HD 6. The camera is a pana AJ-SPX800 ingested to quantel. The files indicate they are being imported but when I run the player or clip there neither audio or video. Thanks

    Welcome to iMovie Discussions.
    You'd probably need to convert the files (..yes, iMovie HD 6 handles MPEG-4 [H.264 and Apple Intermediate HD codecs] ..but not necessarily all MPEG-4 codecs!..) into .dv format first.
    iMovie often doesn't play audio encased in an .avi file, even though QuickTime does!
    So iMovie probably can't get a grip on the video (unsupported codec), and can't disentangle the audio either. So once it's imported the files, it can't work out what to do with them.
    Try MPEG Streamclip for converting the files to .DV before importing into iMovie.

  • WRITE statement and editable fields

    Hi,
    i don't think it's possible but my customers wants the following in an existing program.
    Data is written to the screen by WRITE statement (list processing), but one of the fields must be open for input and the data filled in must be handled by the program and stored into an internal table.
    Is this possible ?
    regards
    Hans

    For a rough example, try this program. 
    Enter some values, and double click on any line to force the transfer to the Itab, and see the results.
    REPORT  ztest  .
    START-OF-SELECTION.
      DATA: BEGIN OF itab OCCURS 0,
              id       TYPE i,
              text(10) TYPE c,
              linno LIKE sy-linno,
              pagno LIKE sy-pagno,
            END OF itab.
      DO 5 TIMES.
        itab-id = itab-id + 1.
        APPEND itab.
      ENDDO.
      LOOP AT itab.
        WRITE: /1 itab-id,
               itab-text INPUT HOTSPOT.
        HIDE itab-text.
        itab-linno = sy-linno.
        itab-pagno = sy-pagno.
        MODIFY itab INDEX sy-tabix.
      ENDLOOP.
    AT LINE-SELECTION.
      LOOP AT itab.
        READ LINE itab-linno OF PAGE itab-pagno FIELD VALUE itab-text INTO itab-text.
        MODIFY itab INDEX sy-tabix.
      ENDLOOP.
      WRITE: 'you entred:'.
      LOOP AT itab.
        WRITE: /1 itab-id,
               itab-text.
      ENDLOOP.

  • How to view and edit .md file (text file) via Documents To Go app

    Could some one please let me know how to view a text file with .md as the file extension using Documents To Go app? If this is impossible, which app do you recommend.
    .md is a markdown file

    Hi,
    I believe I have my answer now, or at least a good thread on the subject going hear:
    http://forums.java.net/jive/thread.jspa?threadID=45148
    Thanks,
    Mark

  • How to make a particular row and column field editable in ALV

    Hi Experts,
    I have a requirement to make a particular row and column field editable in ALV output. Like i need to make 2nd row - 4th column editable of ALV output.
    Kindly help me out to solve this.
    Any help would be appreciated.
    Thanks,
    Ashutosh

    Hi Ashutosh,
    please check below, explained by some experts.
    In the below link  editing two columns MOD_RANK and TECH_RANK.
    These two columns will be in edit mode once after selecting the required record
    Editing single cell in a row of ALV table
    And also look for more info
    http://scn.sap.com/thread/884976

  • Make ship to party window un editable in VL01n and vl02n

    hi all,
    when we go to vl02n. after entring delivery number we go to next screen. there is one address button near ship to party field. when we click on that button, address displayed is editable. is there any user exit or badi by which we can make it uneditable for vl02 and vl03n transaction only.
    thanks!!
    Narendra

    no reply

  • Is there any ways to make Mail app show prefix and suffix in the address field?

    I apologize for any inconvenience that my poor English may cause.
    I would like to ask if there is a way to make Maill app show prefix and suffix in the address field.
    This is, in my culture, very important, especially for formal situations. When I call someone such as professors, bosses, I should put prefix after their names to show my respect. In Microsoft Outlook, there is a field called 'Display as'.
    http://www.slipstick.com/outlook/contacts/contact-address-book-options-settings/
    Therefore, I can choose how the name will be shown in my messages. For example, Prof. Kim instead of Kim. However, as far as I know, there isn't such options in Mail app. Is there any way that I can modify the way of displaying names in the address field in Mail app?

    As far as I can determine, that is only how you see the email address, not how it is sent.
    You can set up Prefixes and Suffixes in Contacts using the Add Field submenu of the Card menu:
    If you use the Edit Template... command, you can choose to always have the Prefix and Suffix show on new cards.
    However, I don't think Mail uses anything but First, Last for addressing emails.
    You can override the behavior by manually with:
    Prefix First Last Suffix <[email protected]>

  • How to make Buyer and Planner fields in Master Items Form Required without

    How to make Buyer and Planner fields in Master Items Form Required without using personalization?
    1) Steps to Reproduce
    Under Application Developer Common Modules responsibility,
    1) Query Region MTL_SYSTEM_ITEMS
    2) Click on Region Items
    3) Add Buyer Id and Planner Code attributes with Required checkbox checked.
    4) Bounce iAS server and JVM and clear java cache
    5) Changes not taking effect
    Current Application Release: 11.5.10.2 (3460000)
    Current INV Rollup: INV.J RUP22 (9878808)
    Current WMS Rollup: WMS RUP19 (9951502)
    Product Installation List :
    Product Installation: 11i.BOM.J: Installed
    Product Installation: 11i.EGO.E: Installed
    Product Installation: 11i.ENG.I: Installed
    Product Installation: 11i.INV.J: Installed
    Product Installation: 11i.PO.I: Installed
    Product Installation: 11i.WMS.G: Installed
    client needs to make the Buyer and Planner fields under Inventory->master Items form to be required.
    He tried using the Application Developer Common Modules responsibility, to find the Master Items Region and added the Buyer Id and Planner Code attributes with the Required check-box set to Yes. He bounced the iAS server and cleared java cache, but the changes do not take effect.
    client does not want to use form personalization.
    Can you please provide more assistance for using Application Developer Common Modules responsibility?
    Edited by: jemar98 on Aug 9, 2011 1:44 PM

    A forms developer could make those fields required with a CUSTOM.pll extension if you didn't want to use forms personalization. Both are considered customizations to standard functionality and may or may not require rework after patching or upgrades.

  • How to make non editable field after requestor created the shoping cart

    Hi,
    i need to make non editable field (Price field) after requester created the shooping cart.The field should be  non editable only for requster .
    this i need to make when workflow triggers when the buyer sends  back the shopping cart to requester.
    one solution which i found:depend on the status of the shoping cart
    but i dont know whether it is correct way.
    if not please suggest me the solution.

    Hi,
    You can implement the BADI" BBP_UI_CONTROL_BADI".
    You can check for the role of the user who has logged in(e.g. for user REQUESTER,there will be a distinct role to idnetify that the user is a requester) and then acc set the display properties for the field PRICE.
    For sample code pls refer the foll links:
    Sample code for BBP_UI_CONTROL_BADI
    Re: Hiding Shopping Cart Fields in SRM 3.0
    Re: How to Hide the attributes from template BBPSC01?
    Re: How to validating total value in shopping cart
    Re: Price filed in Shopping cart should be in display mode
    BR,
    Disha.

  • EDIT field in ALV GRID and on SAVE it has to update the DB Table

    Hi Experts,
    I have searched lot of forums...
    But i had not got the exact solution for this...
    I have multiple records that displayed in the ALV output screen and i had modified more than one record and then click on save.
    It has to modify all the lines that i had changed in the EDITABLE FIELD.
    Can any one help me in doing so...
    Sample code will be more help full....
    Thanks in advance,
    Kruthik

    Hi Kruthik
    Check [=> OO ALV Event DATA_CHANGED <= |http://abaptips.com/?p=70], hope you will get idea.
    Please reply in case of any confusion.
    Thanks and Best Regards,
    Faisal

  • Urgent : Problem with Editable  ALV Grid  for Quantity and Currency Fields

    Hi All,
    I am using Editable ALV Grid display and have quantity and value as editable fields in the display.
    When user changes these values these values are not changing properly .
    For the quantity field the domain is MENG13 with 3 deciamal places and here  if we enter 500 it takes it as 0.500   .
    The same problem is for the currency field. Here the Domain is WERT7 with 3 decimal places.
    Here also it takes last 2 digits after decimal places by default.
    Please advice how to get proper values in this case from ALV editable fields.
    Thanks and Regards
    Harshad
    Edited by: Harshad Rahirkar on Dec 25, 2007 7:39 AM

    for all the currency field , it will display like that only.
    u have to manipulate uin program before displaying.
    if they are giving 500, in program multiply with 100 and move it to table.
    when u are getting from table, divinde and display.
    this is what I am doing.
    Reward if helpfull.

  • Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happen

    Is there any easier way to edit imovie files that have been exported as mov file then added to FCE 4?? As every move I make has to be rendered and takes forever??? Also my recording is going out of focus without me touching the camera, why has this happened any idea what causes this??
    iMovie '08, Mac OS X (10.5.8), FCE 4

    My daughter has had her Razr for about 9 months now.  About two weeks ago she picked up her phone in the morning on her way to school when she noticed two cracks, both starting at the camera lens. One goes completely to the bottom and the other goes sharply to the side. She has never dropped it and me and my husband went over it with a fine tooth comb. We looked under a magnifying glass and could no find any reason for the glass to crack. Not one ding, scratch or bang. Our daughter really takes good care of her stuff, but we still wanted to make sure before we sent it in for repairs. Well we did and we got a reply from Motorola with a picture of the cracks saying this was customer abuse and that it is not covered under warranty. Even though they did not find any physical damage to back it up. Well I e-mailed them back and told them I did a little research and found pages of people having the same problems. Well I did not hear from them until I received a notice from Fed Ex that they were sending the phone back. NOT FIXED!!! I went to look up why and guess what there is no case open any more for the phone. It has been wiped clean. I put in the RMA # it comes back not found, I put in the ID #, the SN# and all comes back not found. Yet a day earlier all the info was there. I know there is a lot more people like me and all of you, but they just don't want to be bothered so they pay to have it fix, just to have it do it again. Unless they have found the problem and only fixing it on a customer pay only set up. I am furious and will not be recommending this phone to anyone. And to think I was considering this phone for my next up grade! NOT!!!!

  • I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postco

    I'm tying to make a payment for photoshop but the fields on the payment form won't allow me to enter the correct card information.  Im based in Japan but my card is registered to a UK address.  the fields only allow for a Japanese style address and postcode.  What can i do to complete the payment and get photoshop!

    As far as I know, your registered location and your credit card information must match... but,
    This is an open forum, not Adobe support... you need Adobe staff to help
    Adobe contact information - http://helpx.adobe.com/contact.html
    -Select your product and what you need help with
    -Click on the blue box "Still need help? Contact us"
    -or by telephone http://helpx.adobe.com/x-productkb/global/phone-support-orders.html

Maybe you are looking for