Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash


Advertisements:










ActionScript 3.0 :: Count When Drop An Object?


I am designing one presentation and illustration for kid, In this presentation i want to do multiplication with some objectI had completed my designing, i am struggling to do script (i.e.) i want drag and drop objects in one place and display right or wrong mc in root
How can i count, while drag and drop an object in one position,


View 2 Replies (Posted: Mar 16, 2010 4:54 AM)

Sponsored Links:

Related Forum Messages For Flash category:
ActionScript 2.0 :: Drag And Drop Variable Count On Different Levels
I am creating a 'healthy eating' resource for the local education authority where i work. What i need to do is create a game where healthy food can be dragged into a pot. The variable should increase after each item of food is added and the total added to the dynamic text box. Because the drag n drop script is one level down, i keep getting undefined in the text box on the root level. I cant seem to figure out why this is happening.

Code on draggable mc (this is one level down from root):

on (press) {
startDrag ("_root.carrot");
}
on (release) {

[Code]....

Dynamic text box var is called 'total' and this is also on the root level.

Posted: 08-18-2010, 09:36 AM

View 1 Replies!   View Related
ActionScript 2.0 :: Drag N Drop - Count How Many Gray Box Already Have In The Green Box
here is the fla file. it can drag into the green box. i want to count how many grey box already have in the green box. i can drag the grey box into the green box n the code i write is just for count how many time the grey box had click it doesnt use. i want it can count how many grey box already drag into the green box.

Posted: July 28th, 2004

View 5 Replies!   View Related
ActionScript 2.0 :: Combination - Copy/Drag&Drop/Delete And MC Count?
I have a movie clip = circle

When the user clicks the circle I want the user to be able to drag and drop a new instance ie circle1.This whole process needs to be repeatable.......ie next time user clicks the original circle ie circle the code must know the last instance number ie circle1 exists and when the user clicks circle that circle2 is created dragged and dropped.....so on and so on.

This is easy you may say - duplicatemovie and startdrag etc........the problem is that when the user clicks on the original circle the mouse focus is on the original circle and not the new instance just created ie circle1 which then needs to be dragged and dropped.Just to complicate things the user needs to be able to delete a circle at any time by using the keyboard 'del' key.

Posted: June 21st, 2003

View 14 Replies!   View Related
ActionScript 3.0 :: Flash Var Count = 1 | Count++ && Count?
I'm trying to make a volume button for my site and it looks something like this:

- ||||| +

i want the volume bar to start filled and when the user hits the minus button it lowers the volume and when it hit plus it takes the volume up well when I go down and up the volume bars start to get crazy...it just works when I go down the whole way and after it goes up the whole way, when I change direction on the midle of the path it jumps some bars...

Code:
volDown.addEventListener(MouseEvent.CLICK, menosVol);
volUp.addEventListener(MouseEvent.CLICK, maisVol);
var cliques:uint = 0
if (cliques == 7){

[code]....

Posted: January 19th, 2011

View 1 Replies!   View Related
ActionScript 3.0 :: AddChild() - Drag And Drop An Object The Object Jumps Off Some Distance
I am developing a drag and drop functionality and take a JPEG screen shot of droped objects. my problem is. when i drag and drop an object the object jumps off some distance.. i am unable to clear tat.. Below is my application.as file

[Code]...

Posted: 08-25-2009, 09:01 AM

View 4 Replies!   View Related
Actionscript :: Count The X And Y Coordinates Of A Point From The Object's Rotation (angle) And Leg's Length?
how I can count the B point's coordinates (see attached image... or not as I am a new user...pf!). I know the arrow's rotation - so the angle (let's say it is -120), A's coordinates (0, 0) - A is the middle point of the arrow, and that the distance between A and B is 50 px.

Posted: Feb 2 at 2:48

View 1 Replies!   View Related
ActionScript 2.0 :: Switch Simple Count Up To Count Down?
I've found a simple count up script over on Actionscript.org

var count:Number = 0;
var maxNum:Number = 1250;
var num:Number = 1;
this.createTextField("txt", this.getNextHighestDepth(), 0, 0, 100, 50);

[code]....

This works great for my use, but now I am trying to figure out how to make it count down. I've tried changing everything to opposites like count=1250 and maxNum=0 (I think this would be the minNum instead), count+=num to count-=num, and count>=maxNum to count<=maxNum.

Posted: March 10th, 2007

View 3 Replies!   View Related
ActionScript 2.0 :: Count Down Timer Changes In Count Up?
Is it possible to make a count up timer (from a specific date, birthday for exemple) from the count down timer ?

I've tried to change a few things (I'm very bad in programming) but I can't get the date properly.

If not, do somebody know a count up timer (.fla) that I can use ?

Posted: May 18th, 2004

View 3 Replies!   View Related
ActionScript 3.0 :: Clearing A Drag And Drop Object?
[URL]I got it working but the problem is, is when i go to the next frame the items that are matched succesfully stay there, I want to know how to clear them, so they don't get in the way of the next frames.

Posted: 03-29-2011, 09:24 AM

View 10 Replies!   View Related
Professional :: Drag Drop And Rotate Object?
Would like to develop simple (in browser) puzzle games where shapes (such as a puzzle piece shape) can be simultaneously dragged and rotated, then dropped on the screen or canvas. The game mode would be to click and drag the shape or object, while simultaneously rotating the piece using arrow keys Is this possible in Flash? This simple general activity of simultaneous drag and rotate, then drop, is my intended overallweb site game basis. I'm new to Flash but have developed Windows executables for many years. I'm trying to decide whether to purchase and learn Flash as platform for interactive educational puzzle games running in browser windows.

Posted: Feb 6, 2010 8:29 AM

View 4 Replies!   View Related
ActionScript 3.0 :: Clearing A Drag And Drop Object?
I got it working but the problem is, is when i go to the next frame the items that are matched succesfully stay there, I want to know how to clear them, so they don't get in the way of the next frames. Maybe it is something simple?

Posted: Mar 29, 2011 7:20 AM

View 22 Replies!   View Related
Actionscript 3 :: Drag And Drop To One Single Object?
I am working on simple flash game in which there r 8 small circles out side of one big circle. i want to drag this 8 small circle one by one to the big circle.Basically 1 plate with their food items.Draging their food items to he plate. i hope this would give you a better idea.I have goggled it the same thing but could not get what i want,

Posted: Mar 3 11 at 10:54

View 1 Replies!   View Related
Flex :: Drag And Drop An Object Across The SkinnableContainer
I am trying to drag and drop an object across the SkinnableContainer- am coming across a very strange issue

The drop occurs only at a few places- elsewhere it just shows the "X" sign and on dropping there, reverts to original position. I have used very standard commands... from function 2 to function 3, the call occurs very rarely as seen in trace statements- any guidance on why this happens?

I added the following code to SkinnableContainer: dragEnter="dragEnterHandler(event);" dragDrop="dragDropHandler(event);

(1):

private function mouseMoveHandler(event:MouseEvent):void
{
var dragInitiator:Image = Image(event.currentTarget);
var ds:DragSource = new DragSource();

[Code]....

Posted: Apr 14 11 at 19:27

View 1 Replies!   View Related
ActionScript 3.0 :: Drag And Drop Object That Move Others?
I am going to have what is essentially a grid of 12 boxes. 4 across 3 high. There will be an object in each box. What I want to do is to allow the user to drag an object from one box into another. This will cause the other objects in the boxes to move up one position to fill in the gap that is left by the object being dragged. I have no idea what this is called or so I don't know how to Google it. Does anybody know if there are any tutorials on how I can get this done?

Posted: 04-28-2011, 06:28 PM

View 0 Replies!   View Related
ActionScript 3.0 :: Drag And Drop And Replace With New Object
im working on a new Project that i'm require to Drag few Items into One Item ( Like Food Ingredient ) But the problem is After each Drag i want the Draggable picture change to something new ( maybe with food inside ) i have no idea how to do it and how give priority to objects like which go first and which one last.[code]

Posted: 11-19-2011, 12:04 PM

View 0 Replies!   View Related
ActionScript 2.0 :: Drag Drop And Object Fall?
the beach ball is drag and dropable.. how do i mak it to when you drop it in the air it falls back down... maybe with the effect of a bounce too..

Posted: March 25th, 2004

View 1 Replies!   View Related
ActionScript 3.0 :: Flip Object Over An Axis When Using Drag And Drop?
how I can flip a movie clip during a drag and drop when it hits a certain axis on my stage? So If I have the letter L and am dragging it from right to left. When I hit the mid way point of my stage I wand that L to flip and look like a backwards L, but allow me to keep dragging.

Posted: Dec 17, 2009 5:14 PM

View 18 Replies!   View Related
Actionscript 3 :: Flex - Multiple Object Drag And Drop?
Is there a way to implement something like icons on a desktop? Is there an easy way in Flex to implement a selection box and multiple drag and drop?

Posted: Aug 12 10 at 17:32

View 1 Replies!   View Related
Actionscript 3 :: Detect A Click On A Drag And Drop Object?
I'm building a flash app that has some draggable buttons on it and I want them to behave like this:

You click on it, ClickEvent1 happens, You click and hold on the button, you can move it. If you release from the hold, it does NOT trigger the ClickEvent

I'm running into the logic problem of not knowing whether a user is just clicking or starting a drag event. Does anyone know any logic to get around this issue? I have thought of alternatives such as placing regions of the button that are only draggable or only clickable, but I've seen this type of functionality in other flash apps and I'm wondering how it is accomplished.

Posted: Nov 5 10 at 9:50

View 2 Replies!   View Related
Flash :: Drop And Drag Problems With Droping Onto Another Object?
I have a drog and drag exercice.

dict[box_a]=obj1_mc;
dict[box_b]=obj2_mc;
dict[box_c]=obj3_mc;

[code]....

Posted: Oct 25 11 at 13:47

View 1 Replies!   View Related
ActionScript 3.0 :: Assigning A Sound When Drag And Drop A Object?
My situation is that I've made a simple 9 piece drag and drop puzzle, which is working perfectly, and now I want to assign a sound when the user puts the right piece into the right section.

Posted: 05-26-2010, 05:27 AM

View 9 Replies!   View Related
ActionScript 3.0 :: Drag And Drop An Object From A List Of Objects?
I'm creating an application where the user can select an object from a list of objects, and then put it on the main window.

I want to have the list of objects presented like in the web app : [URL]

The user can select a category, then the list of objects of that category is displayed, then he can drag and drop an object to the main window.

How is it possible to do this, having a list of objects?

Posted: 08-21-2011, 03:46 AM

View 0 Replies!   View Related
ActionScript 2.0 :: Drag N Drop / Cannot Drap Duplicated Object
i have created a button which its function is to duplicate another object. After pressed e button, it duplicate an object.it can duplicate as many as i need. e duplicated button is dragable.i cant drag the duplicated object.. somoone help me... it is regarding about school final project, urgent.

Posted: March 2nd, 2006

View 3 Replies!   View Related
ActionScript 2.0 :: Rotate A Drag And Drop Object 360 Degrees?
I need to rotate a drag and drop object 360 degrees. I've got the drag and drop working fine, but I could only figure out how to rotate it 4 times using the set property and arrow keys on the key board. Is there another action I can use to rotate it 8 times at 45 degree angles, or will I have to use the go to action and make 8 frames for the object? I would like to be able to rotate it by pressing just one key on the key board.

Posted: May 16th, 2002

View 2 Replies!   View Related
Copyright 2005-08 www.BigResource.com, All rights reserved