Loading of objects and dragging objects to create new instances

Hello everyone

I would be really grateful for the help to the next question. I want to create a flash movie that loads first a selection of images/objects into a part of the frame. Once this is completed, the user can then move these objects on a different domain, and the object will be created when the user has chosen. The user can then move another instance of objects on the area.

For example, he has a background of a lake in a field. A selection of boats png are loaded in a box beneath the Lake. The user can drag these boats and place them on the Lake. They can drag a boat several times if they wish.

Thank you for your help in advance.

You are probably better to address this step/one phase at a time.  First of all you need to do is decide how you want to store these pieces.  If they will not fileweight charges, probably have them as objects movieclip in the library.

To dynamically load the Library objects, you use the attachMovie function.  So for starters you want to assign to each of these objects a link via a right click ID in the library.  So, when your file opens, you'll have a function that manages to put one of each item in a specific location.

To drag items you use startDrag() when a mousedown event occurs with an object.  And a mouseup event occurs when use you stopDrag() to remove the object.  If you drag the object to an acceptable landing place (the lake or on the scene in general, and not off the stage), which you can view by using the property dropTarget, then you have a new of this particular item added from the library.  If the dropTarget is not acceptable, then you might have the room returned to where he started from (what you store in the room when planted).

It's about the basic scenario of what you need to use to accomplish what you have described.

For which version of actionscript you plan to use, you should look in the help documents for the function/methods and properties that have been listed for a start to determine how to use them.  Google is a very useful tool as well if provide you enough information at on the info you really want.  I used to search google from the actionscript version, I use, followed by some keyterms apply to what I want to find, for example: "AS3 startDrag.

Tags: Adobe Animate

Similar Questions

  • Creating new Instances of entity within the OPA

    This is another that I think I know the answer to, but I think that it is better to confirm.

    In earlier versions, it was not possible to create instances of entity within Office RuleBurst/Haley rules. Is this always the case in the OPA?

    For example, my periods are determine the status of a case and the reasons why this status has been determined. May be denied the status of the case and the reasons can be 'client invalid Id', ' expenses ratio too high income', ' main customer don't work is not long enough "etc. I want to return all the reasons of the State. While the list of grounds is predetermined, those that apply to a particular case are dynamic, like everything, but not all may apply.

    In view of this situation by using a database, I create an instance of the reason for each of them there are and bind it to the case. In the past, with the OPA predecessor (s), it was not possible to create new instances of in. They had all be spent in the module or a list of eligible reasons all attributes had to be created and then set true to those who have applied.

    My preference is to create instances inside the OPA. Are these features available in the current version?

    Thank you
    Terry

    Hello Terry,

    Michael is correct that you can not write rules at design allowing to dynamically create instances of the entity during execution time. However, new features of alleged of v10 relations might deal with what you're trying to do.

    You can write rules that conclude the accession of an inferred relationship. So you might still have, say, 10 cases of "reason" in all cases, but as for which of these instances apply in all cases, it depends on the details of the case. You can use a relationship inferred from gather up the entity instances that apply in this case.

    First, you must set up a regular one-to-many relationship to instantiate 10 instances during execution - this would be in the usual way. Then, you must also set up an inferred relationship and write rules for the relationship inferred members concluded. Instances that are part of the inferred relationship are then actually the list of entity instances you wanted to create in your example above.

    Take a look at this article OPM help: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm

    See you soon,.
    Jasmine

  • Paste the object automatically creates NEW layer - EVERY TIME

    I am a person very knowledgeable Photoshop/InDesign and Illustrator. I paste the pictures on the net in my doc of Illustrator, but when I do each time that it will either create a new layer, place the object in this layer and from there on after all new objects in this new layer even places. Only happens when I am pasting from somewhere outside of the Illustrator. Please help because it's put a damper on my work because now I have to remember to take all pasted objects on a certain layer... I use 9 layers.

    Help, please

    In the layer panel menu, uncheck "paste remembers layers".

  • Live 2011 (updated) - does not write new e-mail messages and does not properly create new e-mail accounts

    After the installation of the latest update of Windows Live Essentials 2011, I noticed the following errors:

    • I can create is no longer new e-mail (embarrassing for an electronic mail system)
    • Newly added e-mail accounts are the Inbox, but no other standard files (anti-spam, although the discovery, remain in the Inbox)
    • Is no longer possible to create a new email in Live Messenger

    HELP, this way I can use my email properly.

    I tried to repair the two components .NET 4.0 without result and the .NET Framework 3.5 SP1.

    Hello

    For the different Forums for Windows Live Applications, select the link below and repost your questions here
     
    Welcome to Windows Live Solution Center
  • Since I downloaded El Capitan I think I can't paste it into my external hard drive.  I use to download my card reader, copy it, and then download to a new folder on the external drive.  It will not work now and nor can I create new folders on the hard dr

    I used to download pictures from a card reader, copy them, and then stick it on my external hard drive.  Since El Capitan of download, it does not work - I can download and copy, but can not stick to the external hard drive.  I can't set up the files on the external hard drive either.  However, I can download what is already on the external hard drive without any problem.

    How the external drive is formatted?

  • I click and drag the music from my library to a new playlist and some songs are dark and will not play on my device.  Why?

    I click and drag the music a new reading list, but some songs are not highlighted in the play list and will not play on my device.  Why?

    Try two things...

    (1) the songs greyed out can be unchecked. Uncheck the songs are normally excluded from track to track synchronization and normal. With the help of the songs or the list view Ctrl + click on an empty box to check all the boxes in the list of active reading.

    (2) try to go to file > library > Update music library to iCloud and do the update.

  • Dragging files in a new item, separate tracks

    Hello everyone.

    I have a video and 4 Audio Clips, if I select all the and drag them into the new item, stay audio in a track. What I like to do is: I want to be able to drag all of the files in new element, so all the Audio is still in separate Tracks.for if I have 10 Audio files I want to have 10 Audio tracks rather than each of them next to each other. I can create new tracks and drag and drop each Audio file in manually separate titles. But I wonder if there is a shortcut for this

    Thank you very much

    Hi Animationlife,

    Sorry, but that isn't possible, you can probably go ahead and place a demand for it.

    Feature request form

    Thank you

    Ilyes Singh

  • 21 of Firefox running on Windows 7 will not allow creating new bookmarks

    I just installed Firefox 21 on a PC running Windows 7. I can't go to the 'About' screen, and Firefox won't create new bookmarks. Or by clicking on the star in the browser or right click on the menu drop-down window works.

    I might add that whenever Firefox installed a new version after version 19, such a problem appeared. What gives?

    Note that problems with bookmarks and history does not properly can be caused by a corrupted database places.sqlite file.

  • iMovie 10.1.2 - cannot create new film

    Hi all

    iMovie update and now the 'new film' the tab file is GRAYED OUT!  How do I create now a new movie?  Help, please.

    OS X El Capitan 10.11.4

    Hi applex2,

    Thank you for using communities Support from Apple.

    To create a new project, simply click "Create New" according to the projects:

    Create a new movie

    • In view of projects, click on create new, and then click the movie.

      If you edit a project, click on the back button of projects on the left side of the toolbar (see below) and then click on create new.

      If you have more than one library to open iMovie, click on the context menu of the library and select the library where you want the movie to reside.

    Create a new movie

    Take care.

  • create new account ESX

    I understand that it is recommended to use a user account on my ESX box vs acct root when possible.   How to create a user account on my ESX box.  I know how to do it on my VirtualCenter server, but I understand that it's different for the host ESX Server

    Hi pearlyshells:

    To create accounts on ESX hosts, point your VIC to the ESX host directly.  I did so the hosts are in a cluster for DRS/HA configuration, I just don't make any other change except user accounts.

    After you have connected to the host, click the host itself and one of the tabs on the right is 'Users and groups' - you can create new users on host it.

  • Does anyone know why illustrator did several objects when I click and drag? No key keyboard shortcuts; only with the mouse.

    When I make a square for example, click and drag with the mouse, it makes duplicate objects until I release the mouse click. How can I disable this feature? Thank you.

    Danopoly,

    How can I disable this feature?

    By unstucking the Tilde (~) key.
  • Click and drag the shape tool creates multiple instances (w / photos)

    When I click on and drag a shape tool, illustartor creates multiple instances of the object, such as a card when you earn solitare.

    No idea what could cause this?

    Is your tilde ~ key down, or you have any plug ins installed that may be corrupt you system?

  • How to fix the error with the code: 0xe7210001 failed to load powrprof, object: cls

    Hello

    Dose anyone know how to fix the error with the code: 0xe7210001, message: unable to load powrprof, object: CLSD-no-it is found;
    OR: Fingerprintsoftware OR error: replicas THotkey.exe message window and the computer freezes

    Maleware scanned and virus, also in safe mode, found no infection, reinstalled driver fingerprint, but nothing has changed.

    grateful for the help!

    Hello

    > message: unable to load powrprof, object: CLSD-no-it is found;
    In my view, this would mean that there is a problem with Toshiba Power Saver
    What laptop Toshiba, you have exactly?

    Maybe reinstall Power Saver could help. You can find it on the official website of Toshiba.

  • Cannot create new model objects

    Hello

    We of the PLM 6.2 and already created using models GSM.

    Then, we need create new objects of existing gms models, but not found models to choose from to create.

    Can someone please hint us to correct this problem.

    Thank you.

    Make sure that your model has been workflowed to a status with the tag 'publishing model then "you will be able to search when you create the object.

    hope this helps

    Thank you

    Jessie

  • How to import a 3D object, I created in Photoshop CC AE cc?

    How to import a 3D object, I created in Photoshop CC AE cc? I thought that if I created a picture or video with a single creative cloud product, I should be able to work with it in another product CC.

    It is not possible. This feature was formerly in CS4 and CS5, but has since been removed because it was buggy and had a ton of technical problems. Your best bet would be to export the PS as an OBJ object and import into C4D Lite via Cineware.

    Mylenium

Maybe you are looking for