I can do individuals match target areas (as it has tutorials for it), but I want that each of them

Salvation in drag - move, I can do individual match target areas (as it has tutorials for this) but I want everyone can slip into any target area (and someday I want to create a button which will then each item at the right place).

can someone help me with it

I changed your mUp function to allow each movieclip to be placed on any target and be returned to its original position, if it is not on any target. I added the code to a button on the position of each movieclip to the correct target.

Import fl.transitions.Tween;

Fl.transitions.easing import. *;

Table to contain instances of the target, drop cases,

and drop the starting positions of the bodies.

var hitArray:Array = new Array (hitTarget1, hitTarget2, hitTarget3);

var dropArray:Array = new Array (drop1, drop2, drop3);

var positionsArray:Array = new Array();

This adds the mouse down and to place the listener in instances of gout

Add the starting x and y positions of the bodies drop

in the table.

for (var i: int = 0; i< droparray.length;="">

{

dropArray [i] .buttonMode = true;

dropArray [i] .addEventListener (MouseEvent.MOUSE_DOWN, mdown);

dropArray [i] .addEventListener (MouseEvent.MOUSE_UP, mUp);

positionsArray.push ({xPos:dropArray [i] .x, yPos:dropArray[i].y});})

}

This drags the object that has been selected and moves it;

to the top of the display list. This means that you can not drag

This object under what either.

function mdown(e:MouseEvent):void

{

e.currentTarget.startDrag ();

setChildIndex (MovieClip (e.currentTarget), numChildren - 1);

}

This prevents the movement of the selected object when the mouse is

out. If the object is moved on the corresponding target

can he get to x and y position of the target. In the opposite case

He returned to its original position.

function mUp(e:MouseEvent):void

{

var dropIndex:int = dropArray.indexOf (e.currentTarget);

var target: MovieClip = e.currentTarget as MovieClip;

target.stopDrag ();

for (var i: String in hitArray)

{

If (target.hitTestObject (hitArray [i]))

{

Target.x = hitArray [i] .x;

Target.y = hitArray [i] there;

return;

}

}

Target.x = positionsArray [dropIndex] .xPos;

Target.y = positionsArray [dropIndex] .yPos;

}

Low is the instance name of the new button to reposition each

mobile MovieClip to the correct target element

setRight.addEventListener (MouseEvent.MOUSE_UP, reset);

This function moves each movieclip to the right target using an interpolation

function reset(event:MouseEvent):void {}

for {(var n: String in dropArray)

var myTweenX:Tween = new Tween(dropArray[n],"x",Strong.easeOut,dropArray[n].x,hitArray[n].x,3,true);

var myTweenY:Tween = new Tween(dropArray[n],"y",Strong.easeOut,dropArray[n].y,hitArray[n].y,3,true);

}

}

Tags: Adobe Animate

Similar Questions

  • where are bookmarks in files system for Firefox. I want to transferred bookmarks from one laptop to another.

    I would like to transre my favorites from one laptop to another life a flash drive. Can I do this with Firefox? If so where is the firefox, file system where the bookmarks are kept? Thank you

    Restore bookmarks from a backup or move them to another computer help? It may be a simpler solution that actually located the file Firefox stores bookmarks in.

    Firefox stores bookmarks in the places.sqlite file in the profile folder.

  • How can set resolution screen on firefox, I know zoom in and out, but I want to upgrade my browser to my upgrade zoom

    Hello
    How can set my screen resolution of firefox (I know zom in and outside zom, but when I restart my firefox it chanaged to perviose zoom level)

    Hello

    Firefox on Windows is now after display, scaling options that can make the biggest text on screens at high resolution. There are several ways to solve this problem. See the Web pages are broad and fuzzy after update of Firefox - how to fix article for a suggestion. Here is another possible solution:

    • Type of topic: config in the Firefox address bar and hit the Enter key.
    • If the warning that this might void your warranty , click I'll be careful, I promised.
    • Search for layout.css.devPixelsPerPx

    • Double-click layout.css.devPixelsPerPx to edit its value. The default value is - 1.0 in Firefox 22 and above. Change it to 1.0 to run as in previous versions of Firefox.

    If necessary, further adjust the value of 0.1 or 0.05. Values between 1.0 and around 0.5 to reduce the size of the elements. Use a value greater than 1.0 to increase the size. For example, a value of 1.25 will increase the font size of the 125% to account for the default DPI setting in Windows 8. Check the value that you enter. Definition of a value that is too small will take everything away and too high will explode things.

    If the web pages should always be adjusted so you can watch the extension Default FullZoom Level or NoSquint .

    To adjust the font size for the user interface, you can use the extension of theme font & size changer .

    This solve your problems? Please report to us!

    Thank you.

  • Where can I find my serial number LR 5? I admit it, but I guess that I save it properly, if Adobe has not made of it. Is it hidden in the application from somewhere?

    Where can I find My LR 5 serial number? Is it hidden in the application from somewhere?

    Please see this link:

    Quickly find your serial number

    In case you are unable to find the serial number.

    Contact technical support with proof of valid purchase:

    Valid proof of purchase

    Contact technical support: Contact customer service

    I hope this helps.

    Concerning

    Megha Rawat

  • ArraytoChannels error 'cannot be added because the channels of the target are not all the same length.

    Hello!

    After the end of my second day of test error, I put this question on the table:

    I use ArraytoChannels function to store ADO recordsets as strings. What is strange, is that for the first Recordset, it works; but for the next time through the loop, it always fails with the error message 'cannot be added because the channels of the target are not all the same length.

    I confirmed that:

    the RowData sizes and the ChannelNames are equal,

    both spend the isarray = true test,

    I change the order of the ChannelNames,.

    I have reconnected/disconnected from the oConnexion every time, nothing has changed.

    Apparently I'm missing something - but crazy to know what! -If anyone can share his opinion I'll so much appriciate. Here is my code:

    oTables = Array ("WellStates", "ChokeData", "WellParameters", "FlowData", "PumpData", "SensorsData", "ModelCalculatedData")

    Call OpenSQLConnection
    Set oRecordset = CreateObject ("ADODB. Recordset')
    Call SelectWell
    Call GetWellStateIDs

    Data.Root.Clear
    for j = 0 to ubound(oTables,1)

    sSQLSting = "select * []" & oTables (j) & "] where [WellStateID] between" & WellStateIDFirst & "and" & WellStateIDLast ".
    oRecordset.Open sSQLSting, oConnexion
    Protected oFieldNames: table: ReDim oFieldNames (orecordset. Fields.Count - 1).
    for i = 0 to orecordset. Fields.Count - 1
    oFieldNames (i) = orecordset. Fields.Item (i) .name
    next
    oArray = oRecordset.GetRows (-1, 0, oFieldNames)
    Set oGroup = Data .root .ChannelGroups .Add (oTables (j))

    oArray, oFieldNames arraytochannels
    oRecordset.close
    oConnection.Close
    next

    Sub GetWellStateIDs
    sSQLSting = "select * from [WellStates] where [wellid] =" & WellID
    oRecordset.Open sSQLSting, oConnexion
    oArray = oRecordset.GetRows)
    WellStateIDFirst = oArray (0,0)
    WellStateIDLast = oArray (0, ubound(oArray,2))
    oRecordset.close
    EndSub

    Sub OpenSQLConnection
    Set WshNetwork = CreateObject
    oComputerName = WshNetwork.ComputerName
    oDB = "MX2. Player.DB ".
    Set oConnexion = CreateObject ("ADODB. Connection")
    oProvider = "Provider = SQLOLEDB.1; Integrated Security = SSPI; PeoExecuteist Security Info = True; Data Source ='
    oProvider = oProvider & oComputerName & "\MX; Use procedure for prepare = 1; Machine translation = True; The packet size = 4096; Workstation ID ="
    oProvider = oProvider & oComputerName & " Use encryption for data = False; Tag with column collation when possible = False; Initial Catalog ='
    oProvider = oProvider & oDB
    oConnection.ConnectionString = oProvider
    oConnection.Open
    EndSub

    Another clue. If you check using DIAdem

    Microsoft Windows Script Debugger

    you are able to install the debugger in DIAdem.

    It would potentially have shown that the command does not work as expected.

    Sorry for the inconveniance

    Andreas

  • Updates for my PC, they are all safe? How can you tell if they are not what they say?

    I get updates on a regular basis. Of MSFT, Adobe and other companies. How to do that they are legitimate and not masquerade as

    well-known company, you stick with a virus?  The most recent is Jucheck.exe (a Java Update). I looked and it appears to be from a SunMicro. Is it a

    safe to run. What I've read, is that it is important to place in program files, otherwise it may cause trouble.

    So, how to make sure that these updates are really who they say they are?

    Hi Dog_Father,

    'jucheck.exe' is the process of checking Java Update. It is safe to run on the computer. For more information on this subject, you can refer to link: http://bit.ly/12cryow

    If you want that each update that must be installed on the computer must be checked and verified. You can use certificates to protect your personally identifiable information on the Internet and to protect your computer from harmful software.

    To open local security policy, click Start, point to settings, click Control Panel, double-click Administrative Tools, and then double-click local security policy. In the Details pane, double-click on Control Panel: certificate rules of use on Windows executables for Software Restriction policies. To enable certificate rules, click enabled.

    For more information, refer to link: http://bit.ly/WRE4X1 and http://bit.ly/lzDlvb

    By activating this option, you would be affecting the browser to check all the online applications that you run and you might get a lot of pop ups or guest.

    Answer please for more details.

  • iSCSI treatment new target LUN in the additional paths for target Lun

    Hello

    I have a 5.5.0 ESXi host (build 1331820) I am trying place some new iSCSI LUNS to, but I have a problem with it that I am hoping someone can help me solve.

    The back-end iSCSI server is running CentOS 6.5 with tgtd providing iSCSI targets.  There are four iSCSI targets in production, with another two created and used here.  When I re-scan the iSCSI environment after adding two new objectives, I see more than 4 disks in the Details pane of map iSCSI under Configuration-> storage adapters.

    In addition, two of the LUNS stop working and inspection also shows that new iSCSI targets are seen as paths separate for the two broken LUNS.  It is:

    Existing LUNS:

    IQN.2014 - 06.storage0.jonheese.local:datastore0

    IQN.2014 - 06.storage1.jonheese.local:datastore1

    IQN.2014 - 06.storage2.jonheese.local:datastore2

    IQN.2014 - 06.storage3.jonheese.local:datastore3

    New LUN:

    IQN.2014 - 06.storage4.jonheese.local:datastore4

    IQN.2014 - 06.storage5.jonheese.local:datastore5

    Of the "Managing paths" dialog for each found discs, I see that "datastore4" presents itself as an additional path to "datastore0" and "datastore5" presents itself as a path to "datastore1" - even if the target names are clearly different.

    So can someone tell me why vSphere client iSCSI is the treatment target separate iSCSI LUNS as having multiple paths to the same target?  I compared the configuration of tgtd between the original LUN 4 and 2 new LUNS, and everything seems OK.  They are all attached to different backend disks (not that vSphere should know/care about this) and I wrote zeros to the new back-end disks LUNS to ensure that there is nothing odd about the disc, confusing the iSCSI client.

    I can post some newspapers/config/information required.  Thanks in advance.

    Kind regards

    Jon Heese

    For anyone who is on this same situation, my supposition above proved to be correct.  But in addition to renumbering of the scsi_id each of the LUNS, I also had to renumber the field controller_tid to the controllers on the second node would be present with unique IDS.  Here is an example of the stanza of config I used for each LUN:

    # device LUN storage medium

    -storage/dev/drbd5 store

    # SCSI for storage LUN identifier

    scsi_id EIT 00050001

    # Identifier for the LUN controller SCSI

    controller_tid 5

    # iSCSI initiator IP address (ed) allowed to connect

    initiator-address 192.168.24.0/24

    It is a problem of configuration of tgtd after all!  Thanks to all for the questions that led me to the right answer!

    Kind regards

    Jon Heese

  • The address book for email is all over that I can't do anything with it, why?

    There is no Toolbox at the top to let me add new contacts and now addresses that I received from my email do not yet show upwards and no way to get them back?

    Hi iklabunde,
    I assume you are using Windows 7 or 8/8.1 and have a recent version of Thunderbird, or the latest version.

    There seems to be two parties to your problem.
    (1) I guess you lost your bar menu and your toolbar of the address book which is usually at the top of the address book window.
    Try this. Open the address book. If it is already open, click on the window to make it active. Press the ALT key, then let go. The menu bar should appear. However, it is not permanent yet. Click on the Menu display-toolbars bar to make it permanent. Then click on Tools-Address Book display-toolbars toolbar for your tools for adding new contacts to show.

    (2) I also guess that you can't see the e-mail addresses, you may have access in the past.
    Try this. Click on view-page-directory component. A group of experts is expected to open to the left which has your different address books. Click on each of them in turn, and you should see your e-mail addresses reappear at some point.

    Hope this helps,
    Norio

  • Where can I get a copy of the Windows XP installation for my sister. His was a virus and I had to format the drive. It's a registered computer

    Where can I get a copy of the Windows XP installation for my sister. His was a virus and I had to format the drive. It's a registered computer. I have it ready for the operating system but I need to download a copy so I can retrieve my CD-ROM/DVD-Rom drive, so I can then bring to its system and reinstall the XP and then if she wants that we can get a windows 8. I use windows 8 on this system, I bought a few months ago and it's satisfying, but I don't understand why when I got it I could do things like using the keyboard of the screen with my fingers, but now I can't even use the keyboard mouse. It won't work at all. In a way I found it better that way at the beginning because I do a lot of typing and it would freeze until I was constantly stressed. I returned to Windows 7 mode I think but not sure.  All I know is that these two things have never worked correctly, so if they are still under warranty I will bring to the Future Shop and maybe they can fix it. I wish I could turn on and off easily so it does not interfere with my writing and study of a language second.

    Ralph Sabean

    E-mail address is removed from the privacy *.

    or * address email is removed from the privacy *

    There is no legal download of XP unless a TechNet or MSDN subscription. I'm sorry.

  • How can I get the redemption code to install creative cloud? I paid for it but nothing

    I can't install Creative Cloud (lightroom, photoshop CC), I paid for it, but noting. I can't get the redemption code, I lost time... Can you explain to me how to do this. I can't send email... Thank you

    Are you unable to install Adobe Creative Cloud application?

    Or are you be prompted to enter the serial number when you launch CC apps?

    "If you need more information on the redemption code, you can check the link below:

    https://helpx.Adobe.com/x-productkb/global/redemption-code-purchase-help.html

    Alternatively, you can contact Adobe Support via Live Chat «:»

    https://helpx.Adobe.com/contact.html?step=CCSN_membership-account-payment_account-settings _stillNeedHelp

    Click on the button still need help and select the Chat option.

  • How can I paint without destroying the texture of the target area?

    Hello

    have tried to change the color of skin, of the painting with the color mode and opacity of 50%. the problem is that with the new color, the texture of the old is replaced! I use just a brush and sampling very frequently. Other tools are better at this?

    Thank you

    Juan

    I don't see a lot of damage to the texture of the subject in your example, but what I see is a fair bit of noise in the image.

    If you want to keep 100% of the noise and texture and always want total control of what is to be fixed up, try the Healing Brush tool.  If you want a bit of automation to help you avoid having to choose areas of skin as source for the 'cure', try the Spot Healing Brush, which employs Content Aware Fill.

    Frankly, for this particular image the Spot Healing Brush does a bang up job...

    -Christmas

  • Procedure of ODI with slow performance (SOURCE and TARGET are different Oracle databases)

    Hi experts,

    I have an ODI procedure but its market with slow performance (SOURCE and TARGET are different Oracle databases), you can see below.

    My question is:

    It is possible write Oracle BULK COLLECT at the 'command on the target' (below)? or

    There is a KM of ODI that perform this task below in a quick way? If so, what KM can you guys suggest me?

    I found 'Oracle Append (DBLINK) control' but I try to avoid creating the dblink database.

    ===============================================================================

    * COMMAND ON the SOURCE (* technology: ORACLE * logic diagram: ORACLE_DB_SOURCE):

    SELECT NUM_AGENCIA, NUM_CPF_CNPJ, NOM_PESSOA

    < % = OdiRef.getSchemaName ("D") % >. < % = odiRef.getOption ("P_TABELA") % >

    ===============================================================================

    *ON the COMMAND TARGET (* technology: ORACLE * logic diagram: ORACLE_DB_TARGET):

    BEGIN

    INSERT INTO DISTSOB_OWNER. DISTSOB_PESSOA (NOM_PESSOA, NUM_CPF_CNPJ, FLG_ATIVO)

    VALUES ('#NOM_PESSOA', '#NUM_CPF_CNPJ', THE FROM ');

    EXCEPTION WHEN DUP_VAL_ON_INDEX THEN

    NULL;

    END;

    ===============================================================================


    Thank you guys!

    Please use SQL for SQL command Append KM... You can delete the unnecessary steps in the KM.E.g. fi you won't create I$ table, control flow etc, then you can remove related steps.

    Please try with that.

  • Property for the title and target areas are too small

    I use Dreamweaver CS4, version 10, build 4117, in Windows 7.  In the Properties tab, the text boxes to edit the title and the properties of the target are short in length.  They are able to show letters only about 1 1/2 of the value of the property.  In addition, the target area is not the arrow in the drop-down list.  See the image as an attachment file.  Is this just a bug in Dreamweaver?  Can it be fixed?

    Hello

    This question in the faq can help - http://forums.adobe.com/thread/446724.

    PZ

  • Make the invisible target area

    Hello

    I'm working on a Flash application where the user is dragging icons (video clips) on a target area of the screen. The problem is that this area of the target (another video clip) should be transparent. So I set its visibility to false, but now the application will not work. The events will not be made unless the visibility of this clip is set to true. Is this correct?

    If so, how can I hide the clip of target area and always operate so that when the icons are slid on it, they perform the required events. I guess I could move to layer under the screen but is there a better way?

    Of course. Which works very well. Thanks a lot for your help.

  • My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also backed u

    My computer with two hard drives and 2 starting systems has the car crash in the solid state. When I got the new drive and tried to restore from time capsule, I lost some data. How can I see what backups are on the time capsule? My laptop is also saved to the time capsule. Everything is in 'Data' when I look through the Airport utility. I think that the information that I've lost are still there since I was a Capsule 3 to.

    Time Machine backup to a sparsebundle.

    The sparsebundle will use the share name of computer. So, it should be obvious who is your Macbook and that is your Macpro.

    Open the sparsebundle in Finder and keep open the subfolders until you get to the backup of each separate hard drive...

    You has of course set the exclusion in Time Machine?

    By default, Time Machine will exclude your second drive unless you have included it. Did you?

    Once you get to this level during the backup, you can do a full restore manually whenever you want.

Maybe you are looking for