AS2 drag and drop a hidden content of video for loadMovie

In the main content, when I have a clip like this a1.a2.a3 all in a3 within a2 and a2 within the a1 and a2 is a clip of masked layer.

I can drag and drop the hidden content (while still remain a1) with like this a1.a2.onPress = function () {startDrag (this) ;}  and a1.a2.onRelease = function () {stopDrag() ;}

but then what I need is a1 stay in the main content, while a2.a3 moved to an external .swf and use loadMovie to call les.swf (a2.a3) into a1, and I can still drag and drop a2.a3 when a1 is still.

I tried the differetn methods they just does not work.  I've learned that you need to create an another MC inside the a1 as this a1.a4.a2.a3 (while loadMovie clip a2.a3). It works only if I want to drag a1. But if I want to drag hidden content a2.a3 that it still does not work.

I really need help, this is a project for work.

Once the upload is complete, apply your code drag to a1.a4, target load containing a2 and his children (after the loading is completed).

Tags: Adobe Animate

Similar Questions

  • AS2 Drag and Drop - completion response

    I do a drag and drop alphabet learning game. There are 27 Movie Clips (letters) in total that are able to drag.  I made sure 12 Movie clips will drop in a specific DropZone, while the rest will just snap back to their original position.

    I want to do is create a completion response which moves to a separate screen 'Good Job!' when all 12 Movie Clips have been droped in the DropZone.  How can I do this?  I searched online for more help, but nothing seems to be particularly relevant.

    Thank you!

    Avoid putting code "on the" points at all costs... you will learn a bad habit if you start to do that.

    What you have would be something like the following.  I don't know if this code refers to the 12 pieces that you mention, but I hope you can see the logic and apply for them.

    var dropCount = 0;

    {food1_mc.onRelease = food1_mc.onReleaseOutside = Function ()}

    stopDrag();

    If (this ._droptarget == ' / DropZone4 ') {}

    this.onTarget = true;

    _root. DropZone4.gotoAndStop (2);

    dropCount += 1;  Add 1 to dropCount

    if(dropCount == 12) {}

    gotoAndStop ("goodjob");  go to the section called goodjob

    }

    } else {}

    this.onTarget = false;

    _root. DropZone4.gotoAndStop (1)

    }

    }

  • Several Drag and Drop, several targets. CS5

    Hello:

    I do a Multiple of Drag and Drop in several objectives educational puzzle for child 6-7 years trying to teach them a little on which plants grow in environments in the country. So I have a map of the Mexico divided into 3 different areas: desert, forest and tropic and 6 different plants (3 different groups: cactus, pine and tropical flowers, 2 of each) scattered across the stage and around the map. The goal is for children to put plants in the box to the right and then click on "check" button, which triggers a validation process. Each video clip of the plant has 2 frames with a stop(); action on all: the graph of the plant extends on both images and the second picture has a red sign error graphic that indicates an error occurred (if this is the case). Then the validation process triggered by the "check" button is supposed to move the playback cursor in each placed wrongly move clip factory for the second image to show what plants are displaced and move the playhead of the main timeline to a picture that contains a "Please try again" text and a button "restart Puzzle." If the answers are good, an animation plays saying it was VERY WELL DONE! .

    I searched the Internet for some tutorials and found a file which is pretty close to what I need. I tried to adapt the code to my puzzle but failed miserably. The file is here if you want to check (scroll to the bottom of the page, it is called Soldier.fla). I'm not sticking the code here because it is VERY long, but I will if necessary. If you want that I download the files somewhere else and link them here, I will. If you need me to send them, I'll be happy.

    Here is the structure and instance names in my file:

    Departure:

    -Intro animation

    Map:

    -3 video clips: target_1, target_2 and target_3.

    -Each movie clip has two executives with a stop(); action on each.

    -Each movie clip has a frame-by-frame with a color change to show when a clip of plant fell on her.

    Plants:

    -6 video clips: drag_1, drag_2, drag_3, drag_4, drag_5 and drag_6.

    -Each movie clip has two executives with a stop(); action on each.

    -Each video clip has an invisible button in its background layer called dragbutton1 to dragbutton6 respectively.

    -In the second frame of each clip, I placed a sign of error to be displayed when the boy dropped the clip in the wrong target.

    Placement:

    -video clips drag_1 and drag_3 must be embedded in the target_1.

    -video clips drag_2 and drag_4 must be embedded in the target_2.

    -video clips drag_5 and drag_6 must be embedded in the target_3.

    Buttons:

    -Puzzle AutoScan: main playhead moves to an image named 'play '. It shows after the Intro animation.

    -Check the button: Validation process. If there is any mistakes sends the playhead to main to a named 'wrong' image (here is the text of "Please try" again). If there is no error, sends the playhead to main to a framework called 'good' where begins the animation "Very well done". It shows when start the puzzle.

    -Restart the Puzzle button: moves the main playback head to frame of 'Play '. It shows when start the puzzle.

    -Start button: just restarts. It shows after "Very well done" animation.

    Phew, it was long!

    Now, I'm not a programmer, I'm a designer. I can do buttons and other small things very simplistic but it's just out of my League. Programmers do things my office like PHP (Wordpress, Joomla), a few JS and things like that, but they don't do any ActionScript. They are trying to help but let drop the ball and I tried to understand this since Friday (I took this as a challenge and he lost). The customer wants in AS2, but if you can help me in AS3, screw the customer!

    If one of you can help me with the code, or point me to the right place, I'll be in debt to you. Forever.

    Thank you very much.

    This is a typo and should be:

    var dragA:Array = [drag_1, drag_2, drag_3, drag_4, drag_5, drag_6];

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

    [i] dragA dragA [i] ._x = .startX;

    [i] dragA .startY dragA [i] ._y =

    If (i == 0 |) I == 2) {}

    dragA [i] .target = target_1;

    } else if (i == 1 |) I == 3) {}

    Dropped [i] .target = target_2;

    } else {}

    Dropped [i] .target = target_3;

    }

    {dragA [i] .onPress = function ()}

    this.startDrag ();

    }

    dragA [i] .onRelease = function () {}

    this.stopDrag ();

    checkTarget (this);

    }

    }

    function checkTarget(drag_mc:MovieClip):Void {}

    {if (drag_mc. HitTest (drag_mc. Target))}

    feedback. Text = "done Well! »

    } else {}

    feedback. Text = "Missed";

    drag_mc._x = drag_mc.startX;

    drag_mc._y = drag_mc.startY;

    }

  • Drag and Drop issue

    Hi all

    I am creating a flash animation where the user can click and drag the ingredients around a kitchen, following a recipe to make a meal.

    In the situation that I'm working now, several ingredients should be dragged into a frying pan, and then a Timer (timer) counting down a specific time to cook these ingredients.

    Flash allows me to drop a number of ingredients (video clips) in a frying pan (video clip), with all the undesirable ingredients returned to their starting positions and have the knowledge to start a timer when we know that these ingredients have been added? (regardless of the order they are added)

    Thanks in advance

    Paul

    Yes, the Flash can be coded to handle things in the way you describe.

    Manages the correct things placement normally is to check the property _droptarget object that was abandoned, but in your case, if it involves removing objects that should not be moved, then you would need to a bit more simple logic that keeps track of which should be deleted however not a given recipe...

    You should try Google search using terms like "AS2 drag and drop tutorial" to find something to help you get started.

  • DataGrid Drag and Drop

    Drag-and - déposer works very well on visually in flex, but I use the control to manipulate an XML object in flex. It works to a certain extent, but duplicated the item instead of moving. It will also update the XML object correctly.

    Here is an example < and source < http://www.cgfolio.com/dragExample/DragDrop.html >

    Excellent! The fix worked and datagrid drag and drop feature works perfectly! Thanks for all the help guys!

  • Drag and drop on the AS2 grid

    I want to create a grid where I drag and fall to her points n Save, do I pull the rack forward myself and do a lot of media (as if I had to do an inventory?) or is there a code I can use.

    I'm quite fine with as2, but I never took the time to really get into the tables. I come up with my own solutions, but I want to do it the good sense.

    for the generation of ex.sims mode.

    anyone interested to help me with my game also?  Doesn't hurt to ask.

    who does not resemble a drag and drop.

    But if you want to attach something to a clicked cell, do it.  Flash will know which cell was clicked the same way, he knows which button in a list of several buttons were clicked:

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

    for (var j: Number = 0; j<>

    var mc:MovieClip=this.attachMovie("cell_mc","cell_"+j+"_"i,this.nextHighestDepth());

    mc.colNum = j;

    mc.rowNum = i;

    MC._x = j * mc._width;

    MC._y = i * mc._height;

    {mc.onRelease = function ()}

    No matter what

    }

    }

    }

  • Drag and Drop Game - AS2

    Hello

    I do a drag and drop game for young children. The child must put the plant proper parts for example of the stem in the right place.

    I did the coding for it, but there is no result, the child can easily just put the wrong party at the wrong place and nothing will happen.

    How will I be able to provide a result informing the child if it is in the right place or not?

    Thank you

    This is normally down to assess what the object is deleted, what can be done using the _dropTarget property.  "Try Google search using terms such as"AS2 _dropTarget tutorial"or AS2 Dran and Drop tutorial" and you should be able to find examples explaining how it's done.

  • When do drag and drop into Itunes, my original folder disappears

    Hello

    I recently moved to one old pc to another. My music library and the melodies are all ok and set.  When I used the old pc, I could drag a folder with music in there and drop it into ITunes.  ITunes and then implement these titles in the iTunes library.  Now when I'm on the new pc, the folder with the music she disappears from my pc as if he moved the contents of the iTunes folder and nothing left in the original spot I had music.  I'm all for backups and usually keep the same music in ITunes and a return to the top of file, but for some reason, if I drag and drop into iTunes, the original folder is no more.  How can I prevent iTunes to get rid of the original music file?

    Thank you

    Where exactly the media you add located? What is the setting for the media folder in iTunes > Preferences > advanced. Without knowing the details, I think that would be the media is located in the designated folder media and moves according to its metadata when you add it to iTunes. In general, he would go to < Media folder > \Music\ < artist >-< Album >------# < name >. < Ext >.

    For advice on the best arrangement for a library iTunes and your iTunes backup for Windows with SyncToy library for suggestions on the mirror of the library for a second drive to save it, see make a library of portable split .

    TT2

  • Drag and drop the element of the array of Clusters

    I have a project that includes an array of 'tests', each of which is a cluster that contains an array of 'numbers', a matching the regular expression string and an array of "tasks" (all of them, is in turn, a group of elements).

    It is:

    • Tests (table of):
      • Cluster:
        • Reference numbers (an array of strings)
        • Regex (string)
        • Tasks (table of):
          • Cluster:
            • Task type
            • Basic channel,
            • Measuring channel
            • Other channels

    I wish I could drag and drop to rearrange the task table in an individual event.  (It is a nice-to-have rather than a urgent request - more for my own learning that no matter what).  For now, I've implemented "Move up" and "Move down" buttons

    Examples are fine for a single cluster that includes a table or an array of objects.  As soon as we have an array of clusters, it is difficult to access individual items within a specific cluster.

    Who that it be completed can drag and drop into such a facility?

    Curiously,.

    Geoff

    Hello GeoffF,

    It's certainly doable and you can even use the standard start drag and drop methods/events, the trickiest part is to determine the table of the elements that are selected on the mouse towards the top/mouse downwards and the swap of manual handling.  Fortunately, there are a few decent examples of how do this out there already, I suggest you take a look at this one:

    Example of community: determine the Index of the clicked element Array in LabVIEW

    https://decibel.NI.com/content/docs/doc-22434

    That should give you the selected table indexes, and then all you have to do is to move the elements around around the drop event.  I have attached a very basic demonstrative example that uses this code I just linked (you need to download that as well) and the events referred to swap two elements of the array.   The attached code is just thrown together, you'll want to design something more robust and scalable to any sort of actual use.

    Kind regards

  • Drag and Drop grid does not work

    I HAVE MS WINDOWS XP.

    I HAVE A FOLDER WITH DOCUMENTS WORD AND JPEG IN IT.

    WHEN I DRAG AND DROP A FILE INTO THE FOLDER TO MOVE AROUND I NO LONGER GET THE GRID OF CLARET BAR "BLACK." THE FILE AROUND EMERGES IN THE FOLDER, YOU CAN MOVE ANYWHERE, IT WILL OVERLAP OTHER ICONS FILE.

    IT HAD WORKED, IT SEEMS THAT I MIGHT MOVE ONE FILE ON THE WINDOWS OF THE SCREEN AT A GIVEN TIME, PERHAPS THIS CORRUPTED SOMETHING.

    IN ANY CASE, CREATED A NEW FOLDER, COPIED THE OLD FILES FOLDER, IT WORKS VERY WELL.

    WHEN TO USE THE OLD NAME OF FILE, SAME PROBLEM, NO 'BLACK' DRAG-AND-DROP POSITIONING GRID BAR.

    THE FORMER NAME OF FOLDER SHOULD BE SOMEWHERE AND IT IS CORRUPT.

    I NOTICED THAT THE SREEN GTA CLICK WINDOW ARRANGE ICONS AUTO ARRANGE AND ALIGN WITH THE GRID OPTIONS ARE CHECKED, THE FILES DO NOT HAVE THESE OPTIONS.

    MAYBE THERE IS A COMMAND TO CHANGE REGISTRY RUN WHERE I CAN FIX SOMETHING.

    BUCKS COUNTY, PENNSYLVANIA

    Hello

    This is probably because you have disabled somehow "Auto arrange" for this folder.

    Open the folder where you had problems, and then click the drop-down display. You will see options for how you want to see the contents of the folder. If you selected thumbnails, tiles or icons, there is another option under the terms of "rearrange icons by" called "auto arrange". This is a toggle switch, repeated clicks turn the lights-off etc.

    BTW, the use of 'all capitals' type is not considered by some as the right label and discourage some people to respond. So, if you want to maximize your chances of a reply in the future, type like I did, or even entirely in lowercase.

    Tricky

  • Right click mouse to drag and drop or rename folders and files does not work

    For a few weeks now, I had problems with the right click function to drag - move files and folders, or rename files and folders. This happens when I use windows Explorer or access to the computer and click thruogh for a feature. He can't go to all the folders and files, but many. I can't right click on these folders or files to change the sharing because explore closes and restarts on the desktop with a right-click. Manifest error "appcrash" reason. I have Norton Security suite installed and neither Norton or your fix program detects a problem.

    Please notify.

    awehnert

    Have you installed or removed/uninstalled all hardware or software or drivers since just before the start of this problem (if so, exactly what - name, version, device, whatever)?  Norton take any infection, although it is said that he cleaned their since just before the problem started?  If so, you know the names of these infections?

    Do you know when this problem started?  Try a system restore to a point in time BEFORE the problem started.  Here is the procedure: http://www.howtogeek.com/howto/windows-vista/using-windows-vista-system-restore/.  Don't forget to check the box to show more than 5 days of restore points.  If the first attempt fails, then try an earlier point or two.  NOTE: You will need to re - install any software and updates that you have installed between now and the restore point, but you can use Windows Update for updates.  It's been a while so I'm not sure that you have a fairly old restore point but it is possible - hopefully.

    Are these files and folders in your user profile?  If Yes, your user profile may become corrupted (in fact, if can still be corrupted if the folders are not there).  To fix this use http://windows.microsoft.com/en-AU/windows-vista/Fix-a-corrupted-user-profile.  If that is the only available Administrator Profile (you need to be an administrator to fix this), enable the Hidden Administrator Account (HAA) using http://www.microsoft.com/communities/newsgroups/en-us/default.aspx?&lang=en&cr=US&guid=&sloc=en-us&dg=microsoft.public.windows.vista.administration_accounts_passwords&p=1&tid=d20f9db4-7b2c-48be-a087-7835dc2a9055&mid=d20f9db4-7b2c-48be-a087-7835dc2a9055.  If you don't remember the password, try nothing because that's probably what you (or seller) did during the installation.  Once that is done, don't forget to disable the HAA to save it in case it is necessary once again and for safety reasons (since people often try to hack into systems using this account).  Do NOT use the HAA as your administrator account because if you lose the only administrator on the system account or it is damaged again, then you're watered.

    We will check some of your system files and hard drive for ccorruption that may be the cause:

    Go to start / all programs / accessories / command prompt and right click on command prompt, and then click Run as administrator.

    Type sfc/scannow, go and let it run.  It will scan and try to correct some of your system files.  If all goes well he comes complete with no corruption, it could not repair (if it has these post of corruption here or try to analyze it to find the problem or files using http://support.microsoft.com/kb/928228.  Try to put all the corrupt files here so that we can see if they can be repaired with good copies of the installation disc (unless there are too many).

    While in the command prompt, type chkdsk /f /r and enter and let it run.  She might want to plan itself to start at the next startup.  Okay, then restart so that the program can run. It will scan and attempt to resolve any corruption or bad sectors on your hard drive and remove especially as a potential cause.

    Please checkwith the manufacturer to find out if there is a mouse driver updated (software or firmware) available for your make and model of mouse and your version of Vista.  Download and install to update the driver to the most recent available and see if that solves the drag and drop problem (even though I know that this will not affect the question of the name change).  Once you have the drivers, you can install them via the Manager device as follows: http://www.vistax64.com/tutorials/193584-device-manager-install-driver.html.

    If it doesn't (or if SFC detects corruption it cannot repair), we you will need to do a repair/system upgrade using the Windows Vista Installation disc authentic (you own or that you can borrow from someone).  Here is the procedure: http://www.vistax64.com/tutorials/88236-repair-install-vista.html.  Although this will not affect your data, settings or programs, you should always back up your data before you start just be on the safe side. You can have a lot of updates to re - install (including all you need to remove service packs).  If the version of the system came with SP1 or SP2 preinstalled and the disc is an earlier version, then you will need to make a record of slipstream as follows: http://www.vistax64.com/tutorials/151606-vista-sp1-slipstream-installation-dvd.html.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Virtual PC for Windows 7 - How to drag-and - drop or transfer files

    I am trying to use Virtual PC for Windows 7 and be able to identify ways to transfer files from my host system in a virtual PC, I created.

    I was previously using Virtual PC (VPC) 2007 under Vista and am familiar with just the files dragging and droping to and from my host on the virtual computer system.

    I enabled the integration services and am unsure of what the user really wants that the VPC. that is he doesn't want configure me a Local user on the virtual machine or the host.

    I was able to connect to the virtual computer by using a local user on the computer virtual account, but for the life of me can not find out how to transfer files that I used to.

    To achieve what I need, I copy files to a shared location on my network as my PC and the virtual computer has access.

    Can anyone suggest how to get the 'integration' works correctly then drag and drop files between the Bureau of the VPC and host is possible.

    Thank you.

    Integration features allows the WVPC7 to share resources and readers. Open the virtual machine settings, and these options are available:

    1. Audio. Without integration, sounds played inside the virtual machine are emulated using a SoundBlaster 16 card. Audio output is fairly shrill and unpleasant to play using MP3s that imitated the sound card. With audio integration, sounds inside the VM are routed via Protocol Office remotely to your physical card. Audio output will be much better.
    2. Clipboard. Host OS and guest OS supported can share contents of the Clipboard.
    3. Printer. Applications within the virtual machine can print using your physical printer. This is useful if you have a parallel printer (LPT1). For USB printers, click on the "USB" menu on the toolbar of the virtual machine monitor, then attach your USB printer to your virtual machine.
    4. Smart cards. (I do not have any device of smart card, experts, please answer)
    5. Readers. Guest operating system can access and write files directly to your physical hard disks (or DVD or USB flash disk drive); is based on the physical disks, you have shared.

    For drag / drop, until today (2 July here) does not. I used to drag-and - drop files from my desktop windows vista to the desktop of the virtual machine (windows XP inside) you do, but now we can't. Another approach is to share your disks in has integration of options described above.

    After I shared my C: drive, a new 'shared' drive appeared in my virtual Windows XP [workstation], which is 'C on RYAN-PC' (the name may be different on your PC). Whenever I need to copy some files from my virtual computer on the desk of my windows 7, I just opened that shared drive, navigate to \\tsclient\C\Users\Ryan\Desktop\, copy the files and they come to my office windows 7.

    Personally I agree that even this method is simpler that the copy of the shared network files, drag-and - drop is much easier.

  • Drag and drop the LARGE icons

    When I drag and drop a file or a folder in an Explorer window, the icon attached to the mouse pointer is HUGE and gene to see where I am a fall! Is it possible to change this behavior?

    Thank you!

    Thank you, Andre. What seems to do is change the appearance of a window of the Explorer when it is moved - it makes the contents of a window disappear until you drop it somewhere. I am concerned mainly with the HUGE icon that appears when I right-click on one or more files and then try to have them slide somewhere. The large icon, it is difficult to see where I am dragging to. For example, if I want to move a file in a specific folder it makes it difficult to read the folder I want to put the file.

    Using your tip, I found a solution that works for me, but maybe not to everyone's taste. If you go to advanced system settings > performance > settings then uncheck "Use Visual styles on windows and buttons" makes things look more like Windows XP. I prefer the simple XP look in any case so that the solution works for me. The icon HUGE should simply be part of the visual style Windows 7 - I couldn't find any other way to change this.

    Thanks for your help!
    Mark

  • Missing folder then drag and drop on the OBIEE catalog view

    Hi guys.

    I had a folder on shared folders and I moved it to a different folder on shared too, using a simple drag and drop on the catalog on OBIEE view and everything by moving my browser crashed.

    When I logged on again, my folder disappeared. He disappeared, I couldn't find it on the place of origin or target folder.

    Any idea to solve this problem? I lost more than 50 analysis and 10 dashboards.

    Kind regards.

    Luiz Araujo

    Hello Luiz,

    The easiest way is to restore a backup of your catalog, you have one, right?

    In case you have not one there is 2 things you can do:

    (1) set up a backup of your server of BI to the next crash drag & drop

    (2) try to look if you find the folder on the file system: If the problemcs file does not exist or has a problem objects are invisible in OBIEE, so first check if the physical content is still there and if find you there is a way to get it back...

  • Drag and drop question - Desktop and USB

    Hello!!

    I have an Asus laptop that I bought in September with Windows 8 is installed. I saw drag and drop questions on desktop lately, and I'll provide you with a full run down of what past:

    1. this particular case, I wanted to save my mobile by copying and pasting all the files from my phone to a USB (USB Kingston).

    2. I selected all files, right click to copy, open the folder that I made in the USB for my phone content and do a right-click Paste.

    3. nothing's happened, Explorer seems to have frozen, so I opened the Task Manager and press end task, all closed and restarted my laptop.

    4. I have excluded that my phone was the issue. I was able to create a folder on my desktop and copy and paste all of the content of my phone in the folder on my desktop.

    5. I tried to copy and paste / drag and drop an image from my office to the flash drive. Explorer Windows freezes on the rise again.

    6. I tried another flash drive. Explorer Windows froze again.

    Apparently I'm unable to copy files ON a USB key, which makes the backup and backup of things a headache because Windows Explorer stops working every time.

    I am the only user of this laptop, and I don't know what is happening or what to do. Any help would be appreciated. Windows 8.1 upgrade would solve this problem?

    Hi Karthik,

    1. There is no error message.

    2. I tried earlier drag - move my documents to my flash drive and it works perfectly.

    I just tried again to drag and drop from my office to my flash drive and for some reason, it works again.

    I don't think that was with my flash drives, but with Windows Explorer itself. Nevertheless, it seems to have fixed itself somehow. Thank you very much for your help!

Maybe you are looking for