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
Similar Posts:
Feb 28, 2011
how to multiple select the datagrid? i can't figure it out.
View 1 Replies
Feb 3, 2012
I set my list to allow multiple selection. But when I load data in my list, I want to set a few items as selected. Normally you can set only one item selected by using list.selectedIndex. It only accepts int. How can I set multiple items as selected?
View 2 Replies
Mar 4, 2010
I'm trying to modifty the Flex Tree control to allow a user to select multiple items by just clicking each of the desired elements (ie I don't want them to have to press Ctrl or Shift). If the user clicks a selected item a 2nd time, it will deselect it.
View 2 Replies
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
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
Jul 15, 2010
I'm trying to create an interactive game where multiple movieclips can be dragged onto a single target. I understand that the target and the movie clip have to have the same name, like "book_mc" has to have a target of "targetbook_mc", but is there another way to do this so that "book_mc" and "pencil_mc" can both have the same target?
View 4 Replies
Mar 1, 2011
Basically they drag letters into a box to spell words.I have managed to get the letters to drag to the box but I would like the child to be able to reset all of the letters to their original positions.
View 5 Replies
Dec 20, 2011
I wish to move multiple items at the same time with tween.
I'm currently using a loop that calls for the same tween for each item.
I then want to do something when the tween has finished using the tween listener. The problem is that it is being called each time for every item that is being moved. I know I could do some variable that changes from true to flase if its been called once, but is there a better way of doing this?
View 3 Replies
Feb 5, 2011
I am animating a number of items using the Move effect. I am adding each item to an array after it has been added to the display list and once all items are added calling the play method, passing an array of the items to it. Only the last item plays in my animation.
Here is my code:
MXML: s:Move id="coinFall" yFrom="-400" duration="2000" />
public function showCoins(n:Number):void{
holder.removeAllElements();
var targets:Array = [];
if (n>=2.5){
[Code] .....
View 1 Replies
Apr 7, 2010
My Flash designer is reading an XML stream I'm sending back to the browser (I'm a C# dev). We have this working fine.
He is then selecting into an XMLList where a element has its id a certain value i.e. . This is also working just fine.
In this XmlList, are Events, that look a little something like this:
event
startdate
enddate
end event
I don't know how to use the formatting here - but each of those items is an element. startdate would have a value such as 04/02/2010 and enddate 6/30/2010.
Now, from this XmlList I do have of Events, I need to select all Events where a new variable myDate, falls in between the startdate and enddate.
View 1 Replies
Feb 20, 2012
Is there a way to select all the items in a folder? I try to use the following:
fl.getDocumentDOM().library.selectItem("face/");
but it seems not work?
View 5 Replies
Aug 9, 2010
What would be the best way to select all items in a datagrid.
I was thinking of doing a for loop and then select each item, but is there a better way for achieving this?
View 3 Replies
Dec 20, 2009
To select all the items in myList I wrote:
myList.selectedItems = ['red','cyan','magenta'] ;
But what if I don't know about the items in the mx:list in advance? How can I select all the items in a list without specifying their names?
View 3 Replies
Oct 25, 2010
I have a lot of stuff in the library. There are also additional items. Whether it has effect on the swf file. I can't use "select unused items" and delete. After that the swf does not work correctly.
View 1 Replies
May 30, 2011
I messed up some the timing in some parts where there needs to be audio, and I don't want to go to the very back of the timeline and make all my frame sequences fit the audio that way. I want to select all the clips from one point on, drag them back until the audio fits, and then go to the next part the audio doest fit and do the same. Unfortunately, I've spent at least 20-30 minutes googling and trying different things in Flash that haven't worked.
How can I select all the clips on the timeline before a certain point so that I can drag them all back a few seconds? (Without having to shift click all my clips, obviously).
View 1 Replies
May 30, 2011
I'm having some troubles with an animation I'm working on. I messed up some the timing in some parts where there needs to be audio, and I don't want to go to the very back of the timeline and make all my frame sequences fit the audio that way. I want to select all the clips from one point on, drag them back until the audio fits, and then go to the next part the audio doest fit and do the same. Unfortunately, I've spent at least 20-30 minutes googling and trying different things in Flash that haven't worked.How can I select all the clips on the timeline before a certain point so that I can drag them all back a few seconds? (Without having to shift click all my clips, obviously).
View 1 Replies
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
Jan 5, 2010
I have a map with a list of items to the side. I want the list to work as buttons and highlight both the button and the particular image on the map... and when you click you link to a certain location.I also want to be able to MouseOver the map, have both the image on the map and the corresponding 'button' from the list highlight - but when you click, you go to a different location than if you would have clicked from the list.I have it set up - but something is conflicting. Here is how I have my code set:
Code:
BUTTON_ONE.onEnterFrame = function(){
if (this.hitTest(_root._xmouse, _root._ymouse, true)) {
this.nextFrame();[code].......
View 1 Replies
Nov 20, 2010
The whole slider moves over to the left as soon as I mouse over any button I don't know why and it wont move when i click on a certain button?
[Code]...
View 30 Replies
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
Oct 10, 2006
How do you assign drag properties to items added to a scrollPane? [code]...
View 1 Replies
Feb 23, 2010
I have a scene where you drag things around with the mouse. What I have now is;
Code:
on (press) {
startDrag ("");
}
[code]...
What I need to know how to do, is allow the rotation of the objects. I want it set so
[code]
on (press, keypress "r") {
rotate_my_object ("25") ;
}
[code]
I know that's not the right code. Basically, that's what I want. When you "press" to drag, if you press "r" while dragging, it will rotate the "object" 25%.
View 9 Replies
May 17, 2009
It is possible to drag & drop items between different flash objects?
View 1 Replies
Dec 2, 2009
How to get all the selected items from in this below code selectedContsList ?
<mx:DataGrid id="dg" dataProvider="{cNumbersList}" allowMultipleSelection="true" dropEnabled="true" dragMoveEnabled="true" >
<mx:columns>
[code].....
View 1 Replies
Mar 22, 2010
how would you prevent dragging for some items of your List or DataGrid?
Let's say I had a list with two items: 'Tom' and 'Jerry'. Only 'Tom' should be dragable, not 'Jerry'.
Ideally I had a 'isDragEnabled(item:Object):Boolean' function, which is being queried by the drag source.
My difficulties start with the fact that the 'dragStart' event handler has a null value for the dragSource, so right from the start I find it hard to find out what the drag-start is about..
PS There have been a few discussions on preventing or canceling a drop, but I haven't seen much about preventing the drag start, hence this question.
View 3 Replies
Jun 27, 2011
I just started using Flash Builder 4 (yesterday infact).
I have two lists and a canvas. When dropping a list item onto the canvas, i want to trace what item it is (the label and data) and which list it came from. From there, i want to add an image to the canvas according to the dropped item.
Here's my current code
private function componentDragEnterHandler(event:DragEvent):void {
DragManager.acceptDragDrop(Canvas(event.currentTarget));
DragManager.showFeedback( DragManager.COPY );
}
[Code].....
View 1 Replies
Jun 10, 2009
Why is it that, when I enable dragging-and-dropping in a TitleGrid, items are copied when they are dragged instead of moved?[code]When either of those items is clicked-and-dragged, it will get copied instead of moved.This is especially confusing because TileList is a decedent of ListBase, which DataGrid also descends from..But DataGrid does the right thing when dragging and dropping items.
View 1 Replies
Mar 31, 2012
I have made a flash application and in this flash application I have included a jigsaw puzzle. The application is wrote on one timeline and certain frames are used as different pages within the application.
The problem is once the jigsaw drag and drop are moved the pieces are displayed on all frames instead of just the one jigsaw puzzle frame I created.
How can I make these drag and drop items not be shown on the other frames?[code]...
View 1 Replies
Nov 3, 2009
I have a container which is a sprite. In that container I have added several movie clips. Now I am trying to drag that container over the other containers and have them move out of the way for the one being dragged.
so here is how I create the containers:
ActionScript Code:
for ( var x:int; x < _GroupsArray.length; x++) {
//create a container
var tmpGroup:DAILYGroup = _GroupsArray[x];
[Code]....
1. Is there a way that I can get my group object from the target?
2. The container seems to come apart when I drag and drop certain areas. Is there a way to keep the different objects together?
View 2 Replies