How can I highlight objects in adobe flash when you drag and send it back.

Its a mobile game. Adobe flash cs6

Leo Angelo Laude wrote:

but I have a lot of objects to straggle. It is possible to have a function?

Yes, this is why I have posted, »

You should use something like:

var draggedObject:MovieClip;

var draggableObjectsA:Array = [...];

for (var i: int = 0; i<>

draggableObjectsA [i] .addEventListener (MouseEvent.MOUSE_DOWN, startdragF);

draggableObjectsA [i] .origIndex = draggableObjectsA [i].parent.getChildIndex (draggableObjectsA [i]);

}

function startdragF(e:MouseEvent):void {}

draggedObject = e.currentTarget;

draggedObject.startDrag ();

draggedObject.parent.addChild (draggedObject);

stage.addEventListener (MouseEvent.MOUSE_UP, stopdragF);

}
function stopdragF(e:MouseEvent):void {}

draggedObject.stopDrag ();

draggedObject.parent.addChildAt (draggedObject.origIndex);

stage.removeEventListener (MouseEvent.MOUSE_UP, stopdragF);

}

Tags: Adobe Animate

Similar Questions

  • How to keep the spaces outside the files when you drag and drop them in a .bat file.

    I have a bat file, where I run a powershell script passing one argument which is a folder name. I added the file beats in my office, so I could just drag and drop a folder in the Explorer on the bat file.

    Works very well. With the exception of a killer detail. When I drag and drop a folder that has spaces, the process does not receive the full path. Space is causing the script to fail. Thus, for example, I can't drag & drop c:\program files\ in the bat file.

    Is there some setting in which case I can force drag & drop to use filename not spaced? Why don't the OS automatically in the argument with the quotes around it?

    In a command environment that it is practical common to surround with quotes of files names. If the names contain no spaces, then double quotes can be omitted. That is why your batch file should read

    PowerShell.exe myscript.ps1 "%."

  • I paid 9.99 for rent photoshop for a month.  How can I access it?  Adobe just bill you and give you any information on how to access the product. !

    I paid 9.99 for rent photoshop for a month.  How can I access it?  Adobe just bill you and give you any information on how to access the product. !

    Never mind. I thought about it.

  • How can I stop the last post showing when I want to send this person a new Imessage.  I have an Iphone 5s

    How can I stop the last post showing when I want to send this person a new Imessage.  I don't want an old conversation appears constantly when I am a Messenger contact.  I have an Iphone 5s

    I don't know, but let me see if I understand what you're asking. You do not want to see the thread you have with a particular contact when you go to send them another message? The only way to do this is to remove the previous message thread. If you send a message to someone that you already have a thread of conversation with, it will continue to post in this thread. There is no such thing as having multiple threads with the same person. All conversations with the same person would remain in the same thread, unless you remove the previous discussions. If you delete your previous conversation, when you go to start a new conversation, he won't have any of the other answers.

  • How can I configure Messenger to record my conversations, record them and send them to a location I can read and save when you use Messenger on other computers than mine?

    How can I configure Messenger to record my conversations, record them and send them to a location I can read and save when you use Messenger on other computers than mine?

    original title: Live Messenger

    Hi Nicoliani,

    To start saving your Conversations in Windows Live Messenger

    1. connect to your window Live Messenger and click on 'Tools' or click on your display name.

    2. scroll down to "Options", a window should appear. When he does very well and click on "Messages".

    3. locate "historical Message". After that, check the box that says, "automatically keep a history of my conversations.

    4. below that you will see "save my conversations in this folder."

    5. to side of her you will see change, make sure that it is a file that you can access and watch later.

    6. If you are on a network, you can save it in a directory which you have access, or you can save it to a location and later mailed to yourself and access it later.

    Where chats are saved is given below.

    1. to access the Conversations go to the start bar and click My Documents. Then click on "my received files."

    2. There should be a folder with your name on it. Click the folder, then you will be in another folder called history. Continue

    3. by clicking on the folder, now you should see all your saved conversations.

    Hope this information is useful.

    Amrita M

    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • How can I prevent the access denied message when you use the shutdown command?

    I use shutdown /m \\computername/s

    I have "Access denied (5)" as an answer.
    I am admin on all my computers. Same username and password on each of them.
    How can I get this shutdown command to work remotely, so I can't access every computer command prompt via Remote Desktop?
    How can I prevent the access denied message when you use the shutdown command?

    Hello

    I suggest you to report this issue in TechNet Forums for Windows 7 networks: http://social.technet.microsoft.com/Forums/en-US/w7itpronetworking/threads

    Thank you.

  • How can I register a message of success to a drag and drop interaction - I don't see this option in the Actions on the possibilities of success and it cannot know?

    How can I register a message of success to a drag and drop interaction - I don't see this option in the Actions on the possibilities of success and it cannot know?

    Hide you this way:

  • How can I get rid of adobe flash ads

    I have a series of ads by Web Shoppy appearing on my screen with the web sites of retail sales.  The ads all say how to uninstall, but this information is wrong. The site indicates that cookies should be reactivated.

    any ideas?

    1. go to this Web site: https://www.malwarebytes.org/antimalware/mac/

    Download the application (it is a person of trust that helps here very often).

    Open it and select "Scan", it will remove the adware infections.

    2. in the menu Safari-> Preferences-> Extensions uninstall all extensions, unless you know exactly what you want and installed yourself.

    3. from the Safari menu, choose 'clear history '.

  • How can I accept terms of use Live when you try to use the Windows 7 parental control features?

    * I have already connected to fss.live.com and https://familysafety.microsoft.com. This solution does not remedy the issue.* *.

    When you try to use the Windows 7 parental control features, it first asks you to connect to Live.  When I do, I get the 8004B3E9 error Code and it asks me to "connect to account.live.com and accept the terms of use.  However, in doing so, there are no terms of use for me to accept.  I also go to fss.live.come and familysaftely.microsoft.com and no option for the conditions of use is available to accept.  In addition, I tried different browsers.

    I can connect on Live.com and view my account easily, but without conditions of use prompt appears for me to accept, so my attempts to use the parental controls are stuck in this cycle, where it won't let me past without accepting conditions that do not seem to exist.

    How can I make sure I am set up as the account 'Parent '.

    Help, please

    3 hours later I'm finally able to access Family Safety. Thank you!

    The correct link to solve the "Terms of use" requirement is:http://g.live.com/0fsenus4/nexusmigrate

  • How can I make windows play a sound when you press the SHIFT key

    My keyboard doesn't have a light to indicate when it is capitalized. He used to play a sound, but it is more the fact after that I said not to do. However, when entering passwords that are case sensitive, it gives the wrong password. Can someone tell me how to re - turn on the sound.
    Its a Logitech MK320 wireless

    Look in Control Panel > accessibility, and then click "make the keyboard easier to use." Check the box "turn ToggleKeys. This will produce a note when you press the lock keys. Or just check the other box beneath it. In this way, you can turn the tone on or off without having to return to these settings.

    SC Tom

  • How can I make a feature request - RE: when you play an action, instead of history recording each action step, save only one step, as for example play Action [name of action]. THX

    Hello all, my first post. Would like to know how can I do a feature request regarding the way in which the actions are recorded during playback of an action. Instead of each stage of the action being recorded in history, it would be great to have the ability to save only one step of the action, such as "[name of action] Action game". THX!

    After a little research, I found that you can do what you want with the scripts. You can suspend the history using scripts. Here is an example of a script that I wrote which performs an action. It makes a loop though all the upper layers for a project of focus stacking and performs the action on each layer of dust from the sensor spot - a lot of steps in the history.

    In line 9, the statement to suspend history is made. The first part of the argument: "spot", this is what appears in the State history. The second part of the argument is the function that you want to suspend the story. In this case, it is the spotD810() function. You can use this function with your actions by simply replacing the name of set of Actions and the name of the action, where he made comments in the script.

    #target photoshop
    
    var doc = activeDocument;
    
    doc.activeLayer = doc.layers[0];
    
    for(var i=0;i		   
  • In OS 10.7.5, after resigning during the shutdown, how can I stop 23 Firefox opens automatically when you restart?

    Before I turned off my computer, I stopped all my open applications. This makes startup cleaner. But now, at the start, Firefox 23 automatically... not open Safari, no email, just new Firefox 23. This seems to be the new default. I can't stop this behavior?

    See:

    ' Reopen the windows when you log in.

    • http://www.apple.com/findouthow/mac/#tutorial=startup - Applications open automatically at startup
    • Control-click on the Firefox Dock icon and uncheck 'open the connection '.
    • Click accounts (in the line of the System Preferences window system)
      • Click the login items tab
      • Click on Firefox in the list
      • Click the minus (-) button
  • How can I disable scrolling "deceleration" that occurs when you reach the bottom (or top) of a page?

    In previous versions of Firefox mousewheel scrolling pages upwards or downwards at a constant rate.

    This behavior has been changed causing the scrolling speed to slow down as the end or the beginning of a page is reached. This introduces additional delay when you navigate web pages quickly.

    I have here a way to disable this feature?

    Also, that one ISSUE resolved by this feature?

    Hello, you can easily disable scrolling smoothly in firefox/tools > options > advanced > general.

  • How can I block the alert that appears when you try to access the GPS coordinates?

    I develop an application that has access to the GPS coordinates and when I try to access appear a message that says "a JavaScript asked the physical location of your device. You want to offer this to the script? Can I block this alert?

    If you use the HTML5 geolocation API (lots of examples on a google search) instead of blackberry.location.latitude etc., you will be asked only the first time.

  • How can I allow a learner to examine one created Drag and Drop Quiz to show to the learner their incorrect answers or correct?

    Captivate 8: I created an assessment with two multiple choice question slides and 8 drag and drop question slides. After that the learner views their score, I wish they were able to examine all their answers to see where the mistakes were made. Currently, the revision quiz shows that their answers and the correct answers to multiple choice question slides. Ideally I'd like a review of question slides slide - déposer where the incorrect choices appear in red or something to that effect. I appreciate any insight and suggestions!

    Sorry, D & D are not a normal question slide and I can't recommend a feature request registration. I would really be able to choose if an interaction is reset or not, because this problem is not just for D & D but for all interactions of training as well.

Maybe you are looking for

  • I'm looking for recovery for pavilion dv6-7115nr wiyh window 7 64 bit disk

    I want to restore to the original state of my PAvilion dv6-7115nr laptop, do not start the recovery hard disk partition. I lose the it. I install win 7 ultimate 64-bit.  Someone have an idea how find the recovery disk? Thank you

  • laptop G60 100EM Bluetooth

    HI I need to know if my HP G60 laptop 100EM has built in bluetooth, I want to connect via bluetooth to my printer is a HP Deskjet F4580,. Or do I need to use a bluetooth device plugged into the usb port of the laptop G60 100EM to connect to the print

  • What are the causes of silverlight N8007 error code.

    What are the causes of silverlight code error N8007?  I have already been able to view the contents of netflicks, but no more.  He has always played by this "Silverlite" program or a recent change? Thaks in advance for your answer.

  • HP Laserjet 5l: laserjet 5l 10 compatible windows

    It is my last chance to find an answer, that HP does not longer recognize the laserjet 5l. This printer is compatible with OS 64-bit of Windows 10? I agree that I must buy an adapter USB to parallel (roughly $30 total) for the connection of equipment

  • all my files or icons open with paint

    I tried to do something because my sticky notes were not working and then I found myself by right-clicking on a file and then I klicked 'open with' and then I chose the paintI tried undo it, it didn't work, I don't want to create another user.Just th