I have two files with two different classes: example1 (example1.as) and dd_title_list (dd_tile_list.as).This is a drag and drop script and I want to basically print (trace) the "label" and "source" whenever an object is dropped on "ddt_sel1" (this object is located on example1.as)
on dd_title_list:
ActionScript Code:
tl.dataProvider.addItem( _ic.data );
for(var i in _ic.data)
{
I am working on a drag and drop application. I've gotten quite far despite my inexperience with AS3.
So here's the dealio...
I have a drag and drop interface that includes 6 library items. 4 of the library items have 38 instances, one of the items has 8 instances and the final one has 4 instances.
In my one and only scene there is a movie clip with an instance name of content_MC and a class assignment of MC that contains all of the above listed objects as well as the image that users drop the objects on to.
There are also 2 buttons on the stage, in the one and only scene, for resetting the drag and drop and a print button for printing the contents of the content_MC movie clip.
I'm having an issue with printing the results of the drag and drop that are contained in content_MC.
Right now when I print, the PDF output I get is only of the original state of the drag and drop; so no drag and drop results just the interface prior to drag and drop.
I of course need the final results to be printed.
Here's a link to the application in its current condition...
I am working on programming a drag and drop interaction where you drag items onto an area and can print the results.Anyone know of any examples of this already out there? It needs to be in AS2.0 and published to Flash Player 7.
I have a working xml-loaded carousel, I have (see below in the code) a working drag and drop function for a movieclip on my stage. In this code, since I have this one movieclip with instance name "object1_mc", all works fine, drag and drop with copy function. But I would need to be able to drag and drop/copy out of this xml-loaded carousel, when i'm on item1, i would be able to copy this, when on item 2 i would need to be able to copy this item, etc etc..but since this content is not on my stage , how would i give each item an instance name, so my drag & drop/copy function would work along with the carousel?
I'm trying to make a simulation where a person can drag 2 different objects to any 4 predefined targets on the stage. Based on the position of the 2 objects there will be a different output text. I hope I described that clearly. I would also like the 2 objects to snap to the 4 targets. Im very new to AS. Im starting to be able to read it a bit but still can not wright it.
I want to have an image and when I click on the image ,one can hold down the mouse and drag a copy to where ever on the stage and when one lets go, one can drag another and another with each copy still being able to be dragged after released.this is what i have but its pretty simple and doesn't work....
stage.addEventListener(MouseEvent.MOUSE_DOWN,makeA Box); var i:Number = 1; //i will be the total number of boxes var newBox:myMC = new myMC();[code]....
Im trying to do a drag and drop system where the user can drag a movie clip into an area. Although i would like to make it snap to a target instead of just sitting wherever it lands in the area. Problem Two:
The next thing i am trying to do is when the user has a movie clip on a target already, and trys to put another movie clip in that target area, it will replace the one thats in there and go back to its current position. Here is the script of what i have done so far:
I have added drag and drop to some of my custom components.The drag event is fired on mouse down.If you mouse down and move the component around then drop it repeatedly its fine.But if you mousedown and drag the component around drop it and THEN just click on the component it inits the drag but doesn't fire the drop event.Its almost like you have to move the component for it to fire the drag drop event.This is very annoying as i'm removing the component on drag init and adding it again on drop, so just clicking on it makes it disappear.
I have a TextArea component with a lot of content (images+text) - the content is coming from a xml file.. i need to print the textarea content and when i do - it is printing just the visible content area with scrollbar-is there anyway i can print the entire TextArea content using a print button on my flash file- im using AS2.
I am trying to print a HTML from my air app, however, this HTML should never be seen on screen. I am using HTMLLoader for this, as per some sample I saw on the web.
What happens, is that there is a print dialog, but it prints out a blank page.
If this is a window application, and I click some button to print (just the HTMLLoader) it gets printed.
Following is my code.
var mySprite:Sprite = new mySprite() var loader:HTMLLoader = new HTMLLoader() loader.loadString("ADDRESSThu Aug 20 21:37:20 GMT+0530 2009")
I downloaded a free flash menu component. It's help file said "You can simply drag and drop the menu items wherever you wish".However, I don't know how to drag and drop it in my file. please help me, how to use it?
I am developing a simple drag and drop game..except my draggable items are in a movie clip and my targets are also in a movie clip. My draggable objects work fine, they drag and snap back into place when the mouse is let go, but... they dont snap to their targets.They do snap to their targets when they are directly on the timeline, but inside another movie clip it doesnt work and i can't figure out why.[code]
Basically, there will be two images, which participants are to choose between. Below the pairs of images will be a horizontal bar with arrows at both opposite ends. I would like the participant to be able to drag and drop a small rectangle somewhere along the bar to represent their choice (and the degree of their endorsement).Basically, I'm asking how to make an interactive scrollbar on its side (without buttons, just the drag). I would also like it to start in the middle of the bar and be able to be moved in either direction.
I am trying to do a flex drag and drop. It is very similar to this first example.url....The problem is that event.currentTarget.mouseX,mouseY is showing the position where I put the mouse down rather than the position where I had finished dragging.
I am trying to create an elearning exercise and i have a problem with the drag and drop section i have created. The exercise works well but when the user clicks the next button to go to the next frame one of the drag elements from the exercise shows up on the next frame and i just can't work out how to get rid of it?
This is an overly complex way of making drag and drop functions, I know. My problem is, when my item hits the target, it doesn't allow me to drag anymore items?
ActionScript Code: square.addEventListener(MouseEvent.MOUSE_DOWN, drag) function drag(event:MouseEvent):void {
Flash is completely the wrong app for this, but I don't have access to anything else.I need to parse through a set of files and do some regular expression work on them.Is there a way to drag and drop the text files to do the work on via CS4/AS3? The filenames will always be different, so I can't just hard code that info.
how to make a mp3 player functionality, like for example winamp has, that you grab the mp3 and drag in into the playlist/player and it automatically plays?
I'm looking into having a interface using multiple windows which you can drag by pulling the dragbar around.Each window would be a movieclip called *****_win and inside would be a dragBar that the mouse has to pull around to move the window.I have searched a lot on google, and decided to end up asking here.
1) All the code I used so far did not have any borders. (The borders would be the stage, not an image).
2) Whenever I dragged an object, it would drag the whole window.
3) If the cursor left the window while dragging (which is does a lot), I have to drag it again.
Anyway how I can do an OS-like way of dragging a window?