Drag event for Actionscript created Panel.

I have a panel and inside this panel is a tree. When I drag
and drop a node from the list onto the application a panel is
created in the coordinates of the mouse. Until now everything
works. However how can I initiate drag and drop for the created
panel since it is not in mxml and I cannot use the mouseMove
property? Below is the code for the created panel. I have a
dragStart function that starts the whole custom drag and drop but
it works for mxml created controls. How can I do the same for
actionscript ones?
private function createFeedPanel(event:MouseEvent):void {
var createFeed:Panel = new Panel();
createFeed.x = event.localX;
createFeed.y = event.localY;
createFeed.width = 135;
createFeed.height = 70;
createFeed.layout = "absolute";
createFeed.title = "Fixed Feed";
addChild(createFeed);
}

myLinkButton.addEventListener(MouseEvent.CLICK,myClickFunction);
and your event listener function
private function myClickFunction(e:MouseEvent):void{
                    //do something

Similar Messages

  • Please very urgent How can i call focus event for dynamic created txtbox

    Hi,
    I create a one texbox using javascript .now i want to call onFocus event that textbox.How is it

    Hi,
    I create a one texbox using javascript .now i want to
    call onFocus event that textbox.How is itJust for you, slowly, so you can understand:
    Javascript was invented by Netscape and is a scri�ting language for browsers.
    Java is a programming language invented by Sun.
    Compare:
    Netscape. Sun.
    Notice a difference?

  • How can i call key press event for dynamically  created texbox

    Hi,
    I create a one texbox using javascript .now i want to call onFocus event that textbox.How is it

    I develop grid application using javascript only.When they press add button dynamically add one row and each cell contain one textbox for enter new data.if they want to edit previous data when cursor goes to that textbox,all textvalue is selected format

  • Event for EA19 - Create Bill (Individual Creation)

    Hi experts,
    Anyone can give me some example for the events at transaction code EA19? I need the event to implement some budget billing amount into it.
    Thanks ya.
    Cheers,
    Isaac.

    Thanks for the reply.
    I have resolved it using event R950. Anyway, thanks for your helps

  • Can't drag events into notification panel!

    Before I could simply drag my individual calender events into the Reminders panel for each of my calenders, but now, everytime I create a new Calander it allows me to create events, but doesn't allow me to drag them into the Reminders panel at all. I can still drag the events of my old calanders and create notifications wierdly enough. Also any new calander I create doesn't even show up in the Reminder List like my old calenders do. This is really frustrating, and any help would be greatly appreciated!!

    I have the same problem, old calenders, when I drag a event to the reminders panel it creates a reminder.
    When I create a new calender is the same issue as abow.

  • I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro

    Hi,  My name is David and I followed a course creating my own website from Lynda.com by Paul Trani. After that I created my first own webste. After I finished it, everything was working well in flash and firefox. I have only one problem and question concerning the feed back form for sending info from my website to my emailaddres. I created my website “LisbonDreamWalking”in Flash CS5 pro. I herein have a contact page, where people can send an email for a walk in Lisbon, date,the number of people etc. Now I want through my ISP / host funpic.org, that the input, info text fields to be sended to my emailaddress [email protected]. My mail URL adress  iss: http://lisbondreamwalk.li.funpic.org  This is a free host, so they don't work with forms like in the course, and I need some additional info for the php. Here is my HTML (Flash actionscript 3.0) for the sending I only have the red text to fill in (php), I was told by the adobe course.I really hope someone can help me?! Thanks in advance!
    Instructions: 1. Add your custom code on a new line after the line that says "// Start your custom code" below. The code will execute when the symbol instance is clicked. */  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13);  function fl_MouseClickHandler_13(event:MouseEvent):void {          if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "")      {           thankyou.text = "please fill out all fields";      }      else      {           // create a variable container           var allVars : URLVariables = new URLVariables();           allVars.name = thename.text;           allVars.email = theemail.text;           allVars.time = thetime.text;           allVars.persons = thepersons.text;           allVars.message = themessage.text;           //Send info to a URL           var mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php");           mailAddress.data = allVars;           mailAddress.method = URLRequestMethod.POST;           sendToURL(mailAddress);            thankyou.text = "Thank YOU!";           thename.text = "";           theemail.text = "";           thetime.text = "";           thepersons.text = "";           themessage.text = "";      } }
    H

    Thank you Kglad, I am going to see if I can make it work. I will let you know!
    Date: Thu, 13 Oct 2011 08:55:05 -0600
    From: [email protected]
    To: [email protected]
    Subject: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        Re: I need help for actionscript 3, sending php info to my email, website created in Flash cs5 pro
        created by kglad in Action Script 3 - View the full discussion
    you missed part of the tutorial (or the tutorial is incomplete):  send_btn.addEventListener(MouseEvent.CLICK, fl_MouseClickHandler_13); function fl_MouseClickHandler_13(event:MouseEvent):void{     if (thename.text == "" || theemail.text == "" || thetime.text == "" || thepersons.text == "" || themessage.text == "") { thankyou.text = "please fill out all fields"; } else { // create a variable container var allVars : URLVariables = new URLVariables(); allVars.name = thename.text; allVars.email = theemail.text; allVars.time = thetime.text; allVars.persons = thepersons.text; allVars.message = themessage.text; //Send info to a URLvar mailAddress:URLRequest = new URLRequest("http.www.namewebsite.com/gdform.php"); mailAddress.data = allVars; mailAddress.method = URLRequestMethod.POST; sendToURL(mailAddress);
    }}  var urlLoader:URLLoader=new URLLoader(); function sendToURL(mailAddress):void{urlLoader.addEventListener(Event.COMPLETE,completeF);urlLoade r.load(mailAddress);} function completeF(e:Event):void{ thankyou.text = "Thank YOU!"; thename.text = ""; theemail.text = ""; thetime.text = ""; thepersons.text = ""; themessage.text = "";}
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/3969414#3969414
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/3969414#3969414. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Action Script 3 by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • How to create events for a limited amount of months

    Hi guys,
    It happened to me more than once wanting to create an event that would repeat every month for  5 months ( example ) and having to create an individual event for every single month since there is now way to limited the amount of months a event can occur.
    Is there a way to limit the amount of months of an event?
    Thanks in advance for your help.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • How to create event for BOR BUS2009 Object ?

    How to create a new event for BOR BUS2009 Object ?

    Hi,
    Please create a subtype for BOR BUS2009, say Z_BUS2009 and include your custom characteristic entities like Events, Methods, Key fields etc and finally do delegation. After delegation, all your custom changes reflects in BOR BUS2009.
    Regards,
    Prasanth

  • How to create EVENTS for a View Cluster.

    Hi Tech Gurus,
    I have created a view cluster on 5 tables. I need to do a validation and this can be done by using events. But i am unable to create a EVENT for the View Cluster. Could anyone please tell me how to create events for a View Cluster.
    Thanks in advance for your esteemed replies.
    Regards,
    Raghavendra Goutham P.

    Hello Pasapula
    When you are in the View Cluster maintenance dialog (SE54) click on dialog "Events".
    Below the field for the view cluster you have an additional field <b>FORM routines main program</b>. There you have to add the main program containing the FORM routines called by the VC events.
    For example: I had defined a normal report containing an include with all the FORM routines. The report contains only the following lines of coding:
    report zus_0120_u1.
    * Common Data und access routines for user exits in VC maintenance
    include LSVCMCOD.
    include  zus_0120_f1. "FORM routines for VC events
    Now in the "Events" dialog of the view cluster maintenance you assign your FORM routines to the events.
    Regards
      Uwe

  • When I transferred my iPhoto from macbook to iMac it created double events for each, how do I correct this?

    When I transferred my iPhoto from macbook to iMac it created double events for each, how do I correct this?

    How did you do it?
    Here's what should work:
    To move an iPhoto Library to a new machine:
    Link the two Macs together: there are several ways to do this: Wireless Network,Firewire Target Disk Mode, Ethernet, or even just copy the Library to an external HD and then on to the new machine...
    But however you do choose to link the two machines...
    Simply copy the iPhoto Library from the Pictures Folder on the old Machine to the Pictures Folder on the new Machine.
    Then launch iPhoto. That's it.
    This moves photos, events, albums, books, keywords, slideshows and everything else.

  • Item Details - Event for 'Create', 'Close' buttons - possible?

    Hi Friends,
    I am looking for EPCF Events for Item Details iView. I am able to show the record in this iview by selectIdHandler. Now, i want to clear the iView content - the functionality when we click 'Close' button.
    So, does any one of you know any Events to fire Create, Close buttons on Item Details iView?
    Thanks,
    Raags

    Hello Raags,
    Have you discovered how to trigger any of those events? I'm having a similar issue.
    I need when I open the record to have it in Edit mode already, not to click the Edit button in order to get there.
    Let me know if you discovered a solution.
    Best regards,
    Boris

  • How to create events for Z table ?

    Hi Experts,
        Can anybody tell me how to create an event for Z table. I have a Z table in that a Particular filed is there as BELNR.
    This Table is being getting updated by various application & even with the User-Exits also. I want to sned an e-mail whenver this particular field is getting updated by any program.
    how to do this? which event to be used for a particular field?
    Pl. Help....
    Regards,
    Umesh

    Umesh,
    I hope below method will help solving the requirement:
    -Changes made to the keydocuments are recorded in the change document
    Header table i.e. CDHDR and Item table CDPOS, Additional change
    pointers are written in the BDCP and BDCPS tables. (BDCP and BDCPS in your case)
    -A standard program RBDMIDOC is sechuled to run on periodic basis to
    evaluate the change pointers for a message type and starts the ALE
    process for distributing the Masterdata to the appropriate destination.
    -'Object' is collection of fields of different database tables. T.code
    for creating an object is SCDO.
    Also:
    1. BD61 Active change pointers generally
    - Check the checkbox "Change pointers activated -generally"
    - Save it
    2. BD50 Active change pointers for Message Type
    - Message Type Active
    Thanks,
    Preyansh

  • Listening to Drag and Drop event from the extension panel

    How is it possible to detect a drop event from a Layer to a text field in a panel developer using the SDK?
    Drag and drop operation between panel elements are not the issues, but drag and drop from Photoshop and the panel might be an issue.
    Is it possible to implement them?
    If yes, could I be redirected to the documentation topic or can someone post some code snippet ?
    Thanks

    What model of camcorder is your video from and what resolution is it?
    What operating system are you using? Have you ensured that you have the latest version of Quicktime, per the program's requirements?
    Do not convert your video. The program will best with video directly from a camcorder, and converting it may will turn it into a format that it may be LESS likely to work well with.

  • Regarding the event for expand/collapse of navigation panel

    Hi All,
    Is it possible to have an event for the exapnd/collapse for the navigation panel of the portal.
    If yes, how to achieve it..
    Can we add the event for this or not.
    If yes, I want to fire this event from the webdynpro ABAP to collapse or expand the navigation panel of the portal based on some condition.
    Is this possible....
    Thanks Much.
    Regards,
    Lekha.

    Hi,
    See my thread: Hide Detailed Navigation on how to edit the relevant par file.
    I guess you can add  EPCM event (subscribe) and raise it from your ABAP code.
    Hope it helps,
    Omri

  • Create new event for BOR object  for vendor creation

    Hello,
              I AM working on workflow.. Requrement is that , when a vendor is created I wanted the workflow to be triggered..
    But I dont find any bussiness object for this...
          Then I have created customized BOR object super type as LFA1. And created new event. Now I need to assign functionlity to this event, that is As soon as the vendor is created this event should be triggered so that I can use this as the start event for the workflow..
    Plz guide me ...
    Regards and Thanks,
    Poornima...

    Hi Poornima,
    Create a subtype and add the event in the BOR.
    Now call the FM  Userexit / BADI.
      CALL FUNCTION 'SAP_WAPI_CREATE_EVENT'
        EXPORTING
          OBJECT_TYPE             = 'ZKNA1'
          OBJECT_KEY              = OBJECT_KEY
          EVENT                   = 'ONSAVE'
    *   COMMIT_WORK             = 'X'
    *   EVENT_LANGUAGE          = SY-LANGU
    *   LANGUAGE                = SY-LANGU
    *   USER                    = SY-UNAME
    *   IFS_XML_CONTAINER       =
    * IMPORTING
    *   RETURN_CODE             =
    *   EVENT_ID                =
       TABLES
         INPUT_CONTAINER         = IT_CONTAINER
    *   MESSAGE_LINES           =
    *   MESSAGE_STRUCT          =
      IF SY-SUBRC <> 0.
        ENDIF.
    &******************Reward Point if helpful*************************&

Maybe you are looking for

  • Processo Venda à Ordem (Venda Triangular) - Cancelar Pedido de Compras

    Olá Pessoal, Personal Olá, We are configuring a process of Triangular Sales in accordance with building block J54. However in this document it does not deal with a process cancellation of the Order of Sales. Below I describe the stages of the process

  • [solved]googledoc only loads as root

    I just installed Arch for the 2nd time ever, everything went very smooth, even poulsbo. I was hoping to get through everything without asking for help, but I don't even know how to search this problem. I notice that with Midori I could load the webpa

  • Is it possible to use several RootAppModules in one UIX Page?

    Hello, I want to use two RootAppModules in one uix page. The reason is, that application modules look at different database connections. I get this NullpointerException: java.lang.NullPointerException      void oracle.cabo.data.jbo.ui.data.ViewObject

  • Frequent %CRYPTO-4-PKT_REPLAY_ERR: log messages

    Hi All, I get following log message on my spoke 881 router from time to time. For instance today I got 80 messages like this. Frequent %CRYPTO-4-PKT_REPLAY_ERR: log messages This is dual hub DMVPN connectivity and both tunnels are stable during the d

  • Changing JList non-editable Font color of the selected items

    Hi All, I want to change the font color of non-editable JList's selected items which is not clearly visible to user. And I need to change the font color only the selected item in this scenerio. Could you please clarify me? <img src="file:///C:/DOCUME