ActionScript 3.0 :: Drag And Select Multiple Objects?

Apr 6, 2010

I am wondering how it is possible to simulate the behaviour like in windows, where you drag on the stage and select all the objects (movieclips) in the drag area, so that you can move them?

View 2 Replies


Similar Posts:


ActionScript 3.0 :: Drag Select And Move Multiple Items?

Jul 4, 2011

I'm currently creating a word game where I would like to place tiles, but if possible I need it to be possible to drag select groups of tiles (preferably with a visible selection box as you drag) and move them around all together.. is there a simple way to implement this and still have the tiles snap to a grid ?

View 1 Replies

Flex - Possible To Select Text Between Multiple RichEditableText Objects?

Aug 15, 2011

For example, say I have 3 RichEditableText objects and I want to be able to highlight them all together:

<s:RichEditableText id="obj_one" width="100%" text="Click and start dragging the highlight here..." selectable="true" editable="false" fontSize="9" />
<s:RichEditableText id="obj_two" width="100%" text="Continue dragging the highlight through this one" selectable="true" editable="false" fontSize="9" />
<s:RichEditableText id="obj_three" width="100%" text="and keep going and finish highlighting them all right here" selectable="true" editable="false" fontSize="9" />

Is it even possible to make it so all three could be highlighted that way someone could Copy all three at once then past all the text somewhere? I should clarify, The reason they would be like this is because there they are in an itemRenderer so they would each be their own object in each line on the list. It would be nice though if the text could be highlighted and copied like it was all together though. Just imagine the way an end user would expect to be able to drag an highlight any other text in a standard html document to paste elsewhere.

View 2 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects To Multiple Target?

Sep 10, 2009

im creating a small drag and drop game in AS3-
 
I have 4 objects and 4 targets,
 
I want to be able to drag any of the 4 objects onto any of the targets, right now all I can manage is to allow each object drop onto one specific target only.
 
I thought by calling all my target names by the same instance name eg target_mc that would work but only one target will ever work.

View 8 Replies

ActionScript 3.0 :: Drag Multiple Objects At The Same Time?

Apr 8, 2010

I have to incorperate flash animations aswel. Im just wondering about a drag and drop function. I have a fair idea how to do a basic drag and drop function.

Message_MC.addEventListener(MouseEvent.MOUSE_DOWN,dragPoly);Message_MC.addEventListener(MouseEvent.MOUSE_UP,dropPoly);

function dragPoly(e:MouseEvent):void{ Message_MC.startDrag(); }function dropPoly(e:MouseEvent):void{ Message_MC.stopDrag(); }

I want to be able to drag multiple objects at the same time and also play a sound.is this possible?

if(Message_mc is clicked and dragged){
then drag Encryption_mc and Decryption_mc
also play ("Song.mp3")
}

View 2 Replies

Professional :: Smooth Drag Multiple Objects As 2.0?

Sep 8, 2010

seen a few different as 2.0 code for a drag and drop, doesn't have the smoothness of as 3. Anyone have a link to drag and drop multiple movieclips, no target necessary. Just a smooth drag and drop.

View 3 Replies

ActionScript 3.0 :: Unable To Drag And Drop Multiple Objects?

Apr 13, 2010

i want to be able to drag and drop multiple objects. In this code the Encryption_mc doesnt return to its original position.it returns to the position of the Message_mc.any idea how i can return it to its original position?

var encOffset:Point = new Point();var encOffset1:Point = new Point(); 
Message_MC.addEventListener(MouseEvent.MOUSE_DOWN,dragPoly);Message_MC.addEventListener(MouseEvent.MOUSE_UP,dropPoly);

[Code]...

View 3 Replies

Professional :: Drag And Drop Objects To Multiple Targets?

Nov 27, 2010

i have tried a lot of time to make my project into a success.this is the link to my swf...all objects are accepted when i drop it into the plastic bin

var startX:Number;
var startY:Number;
var counter:Number = 0;

[code]....

View 3 Replies

ActionScript 3.0 :: Drag And Drop Objects To Multiple Targets

Nov 27, 2010

i have tried a lot of time to make my project into a success.this is the link to my swf... all objects are accepted when i drop it into the plastic bin.URL..

View 1 Replies

ActionScript 3.0 :: Build A Multiple Drag And Drop Objects

Jan 29, 2011

I'm trying to build a drag and drop quiz where you have a list of countries, and have to drag the correct country into a blank spot in a paragraph to correctly fill out the sentence (see attached). I can get the first country to drag and drop properly. But when I tried to code the second country in the list, I get the following error message: "1021 duplicate function definition" Following is my code:

[Code]...

View 3 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects, 1 Target?

Feb 9, 2010

I have been trying forever to figure out how to add multiple mc's (images) with different instance names to 1 target only (another image). All of the mc's and the target are placed on the same layer. All I want it to do is snap different images to the same target. I have tried placing the target on a seperate layer but it does not work either.

Here is the code:

ActionScript Code:
cat_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);
cat_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);
dog_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);

[code]....

View 2 Replies

ActionScript 2.0 :: Drag And Drop Separate Multiple Objects At Once?

Jun 20, 2003

I have a very limited knowledge in actionscripting so this might be a simple question for the normal people

how do you drag and drop separate multiple objects at once?

I know how to drag and drop one object but I am stumped on this one

View 3 Replies

Professional :: Drag Drop Objects To Multiple Target Areas?

Oct 30, 2010

I am trying to make a quiz on metals. I have several elements which i want to fall into multiple target areas (e.g. the target areas are shaded grey in the following swf; metal_mc, nonmetal_mc, metalloid_mc). I can make individuals match to target areas (as there are tutorials for that) but i want each one to be able to slide in to any target area (and someday i want to create a solve button which will then place each element in the correct place). have started all over and have designated only chlorine to move (for the moment) but how do i code it to allow it to fall into any of the grey areas?

var objectoriginalX:Number;var objectoriginalY:Number;chlorine_mc.addEventListener(MouseEvent.MOUSE_DOWN, pickUp);chlorine_mc.addEventListener(MouseEvent.MOUSE_UP, dropIt);function

[code].....

View 6 Replies

ActionScript 3.0 :: Drag And Drop - Multiple Objects On Single Target?

May 16, 2011

I want to create an interactive learning module that would use a simple drag and drop test. I've already browsed the net for guides and it led me to monkeyflash.com that gave me a very helpful guide. On the guide, there can only be one object be dragged to a target. But then, I wanted my test to have multiple objects (movie clips) be dropped on a single target (also a movie clip) only and stick to it. I'm thinking that I could place my draggable objects on an array, but I really had difficulty on executing this.
 
On the code below, a drag object can only be placed on one target only (i.e dragIn1 can only be dropped on targetdragIn1 but not on targetdragIn2). Yet, I want all dragAt objects be dragged on all targetAt, dragIn with targetIn, and dragOn with targetOn.

[Code]...

View 2 Replies

ActionScript 3.0 :: Drag And Drop Multiple Objects / Improving Code Suggestion

Feb 25, 2010

i want to improve my code for drag drop seven different or multiple objects to be moved in any three of target places then target value will be search by category or feature wise,[code]

View 3 Replies

Drag And Drop Multiple Objects And On Collision Activate/play A Video Clip

Jun 7, 2010

I would like to drag and drop multiple objects and on collision activate/play a video clip.

View 3 Replies

Flex :: Change The Imagealpha For A Multi-select Drag And Drop Operation?

Dec 4, 2010

Here's the code that allows multi-select list to drag into a tree area. What I would like to do is to change the alpha of the image that gets dragged around. I've done some research but most of the discussions out there talk about how to change the dragged image. What I want to do is simply change the default alpha of the dragged item from 0.5 to say 0.2. Also this solution should be able to handle multiple select dragging.

Below is a simple example of drag and drop that I would like to modify to allow for the alpha change of the draged item.

<?xml version="1.0" encoding="utf-8"?>
<s:layout>
<s:VerticalLayout/>
</s:layout>

[Code].....

View 1 Replies

ActionScript 3.0 :: Select All Objects Of A Specified Class?

Mar 29, 2011

Probably a very easy question, but Google and Livedocs are both failing me here. I have a custom class (Which I shall refer to as "Circle"), and simply wish to find each of the "Circle" class, and add them to an array in my Document class. I may also need to perform this task from within other classes.

I've considered having each 'Circle' on creation send a sort of "signal" to the document class for it to add it to an array or vector, but can't figure out how to influence the Events of its Parent class.

View 7 Replies

ActionScript 2.0 :: Select One Of Those Movie Clips - Drag It To A Desired Position And Have It Snap To Place

Nov 10, 2009

I have movie clips loading in dynamically using an XML file, and the duplicate movie clip function. I need to be able to select one of those movie clips, drag it to a desired position and have it snap to place. As for right now, I'm using :

[Code]...

View 3 Replies

Professional :: Lines / Objects Select Differently?

Apr 8, 2011

if I drew a line or something, it would just be the line and I could immediately edit the shape. Now, there is a blue box surrounding it. what purpose the blue box serves. However, when this started, my fill stopped working.

I can fill a shape I have hand-drawn, but not when I use the line tool. I have included a screen shot of the blue box surrounding a line. I have assured that all sections of a shape are touching before trying to fill.

View 2 Replies

Actionscript 3 :: Flex - Select Other Objects From A Group?

Sep 17, 2010

I have a group of multiple objects. If I select one object from the group, then i use the method: click="makeObj(event)" And then the function:

[Code]...

View 1 Replies

ActionScript 3.0 :: Select A Random Object From A Number Of Generated Objects?

Dec 13, 2011

How can i select a object at random from 40 generated objects?

View 4 Replies

ActionScript 1/2 :: Drag And Drop Multiple Boxes And Snap To Multiple Locations Then Reveal Button

May 3, 2011

I'm Trying to develop a small game where the user chooses from a range of boxes of the left of screen and can drag 3 of them separatley to 3 holding boxes on ther right. each box can be dragged to any location and the order is not important. Once the 3 holding boxes are all full I want a new button to appear. I completed a tutorial and I've got one box working perfectly but no matter what i try I can't get it working with multiple boxes and locations. Below is a list of the instance names of the movie clips plus my actionscript. I've attached a link to the flash file.
 
[URL]
  
INSTANCE NAMES
 
box 1 = "circle_mc"
box 2 = "circle_mc2"
both the grey boxes are called = "targetCircle"

[Code].....

View 6 Replies

ActionScript 3.0 :: Select Multiple Files?

Aug 16, 2011

Any way to browse and select multiple files to upload instead of just one?I'm looking at the ref but all I see is an argument for a filter.

View 1 Replies

Professional :: Let User Select Multiple Buttons?

Oct 18, 2011

I was wondering, if I had an image with multiple sections that are highlighted on rollover(like a car), and I wanted to give the user an opportunity to select multiple sections and on release they are taken to a page that displays relevant info on each clicked section, how would I go about doing that?

View 2 Replies

XML :: Flex E4X - Select Nodes By Multiple Attributes

Jan 6, 2010

<EFM><projects><project name="EFM Columbus Supply Chain Project">
<characteristics><characteristic name="Types of Data">
<textDescription></textDescription><options>
<option name="Commodity Flow" value="True"/>
<option name="Industry Assets" value="False"/>
[Code] .....

I want to select a XMLList of nodes by this criteria
<Projects>.<project>.@name = x &&<Projects>.<project>.<characteristics>.<characteristic>.<options>.<option>.(@name == y && @value == z)
Essentially query by both attributes [name and value] for a given project name

View 2 Replies

Flex :: Select Multiple Items In A DataGrid?

Feb 28, 2011

how to multiple select the datagrid? i can't figure it out.

View 1 Replies

ActionScript 2.0 :: Multiple Radio Buttons, Select One?

Nov 30, 2005

I have 5 radiobutton. They have all been grouped into the Groupname HR_value Each of the radio button have the names: hr1 , hr2 and so on.

If I write: _root.line1.vv1.hr1.selected= true I get the result i am looking for. But I know want this to be contingent upon the value of a variable called temp:

var temp
temp=1
_root.hr[temp].selected= true

.....this does unfortunately not work.

View 6 Replies

ActionScript 1/2 :: Multiple Drag And Drop, Multiple Targets?

Mar 25, 2012

I'm making a Multiple Drag and Drop in Multiple Targets educational puzzle for 6-7 y/o kids that tries to teach them a bit about which plants grow in which environments in the country. So, I have a map of Mexico divided in 3 diferent zones: desert, forest and tropic, and 6 different plants (of 3 different groups: cacti, pines and tropical flowers, 2 of each) scattered across the stage and around the map. The goal is for the kids to drop the plants in the right zone and then to click a "verify" button that triggers a validation process. Each of the plant's movie clip has 2 frames with a stop(); action on each: the plant graphic spans across both frames and the second frame has a red error sign over the graphic that indicates an error has occured (if that's the case). Then the validation process triggered by the "verify" button is supposed to move the playhead of each wrongly placed plant move clip to the second frame to show which plants are misplaced and move the main timeline's playhead to a frame that contains a "Please try again" text and a "Restart Puzzle" button. If all the answers are right, an animation plays saying that it was VERY WELL DONE! .
 
I searched the internet for some tutorials and found a file that is pretty close to what I need. I've tried to adapt the code to my puzzle but have failed miserably. The file is here if you want to check it out (scroll to the bottom of the page, it's called Soldier.fla). I'm not pasting the code here because it's VERY long, but I will if required. If you want me to upload the files somewhere else and link them here, I will. If you need me to send them to you I'll be glad.

View 10 Replies

ActionScript 2.0 :: Select And Move Multiple MovieClips Dynamically

Mar 4, 2010

I have a button that uses attachMovie to add a movieclip to the stage. You can add multiple instances of this clip to the stage, which works fine. I also have a feature whereby you can select and move these objects around the stage one by one. I am trying to add a feature whereby you can select more than one object at a time (indicated with a drop shadow - which I have working) and then move them together. This feature would also allow you to rotate the selected objects by 90, leaving the unselected objects where they are. I'm fairly certain that I'll need an array to hold the selected objects, and then use this info to move/transform only the chosen objects, but I can't figure out how to implement this.

View 21 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved