ActionScript 2.0 :: Self Tidying Buttons ('snap' Into Place)
Sep 10, 2003
I have a flash quiz type thing, which involves the user dragging quotes onto a choice of 2 movie clips then clicking submit to get the correct answers etc (you know the kind of thing).My question is would it be possible to self tidy the buttons when they are dragged onto the MC's? For example quote 1 is released on the MC and it snaps straight into position 1, then when another quote is released it snaps neatly underneath into position 2 and so on..The difficult part is that whatever qoute is dragged first, it needs to snap to the top, the second underneath, and so on.
I am toying around with the idea of making a few card games, and was testing some code trying to get an Ace of Spades to snap to a slot.But for some reason the card isnt snapping... with the traces I ran.. it looks like it is snapping to the center. But I changed the center point with the free transform tool... so the point is in the upper right but its still not snapping.You can see by the traces I use, that the home1X = 36 means it is finding the corner
I have my stage. On the left side, I imported an image to the stage and converted it to a movie clip. I then added code so that it can be dragged and dropped. On the right hand side, I created an area for it to be dropped into. This is just a rectangle which has been converted to a movie clip. When the image is dropped, it resizes to the size of the movie clip rectangle. Is there anyway to make it snap into place inside the movie clip?
I'm new to Flash (sort of - I used it a bit back in 1999-2000, but it's changed a LOT since then). I'm making an educational game for my company that involves dragging labels from a word-bank to their correct position on a diagram. I want the kids to be able to drag any one of the five labels and move them to any one of five marked positions on the diagram. I'm using Flash CS5 with Actionscript 3. I used code snippets, so that each individual label has the following code associated with it:
I'm new around these parts (I literally signed up about 3 minutes ago!). I'm a high school student who just started using Flash about a month or two ago, so I'm far from advanced, though I have tackled some of the basics. In class I'm working on an art portfolio site but in my spare time I'm making a virtual dress-up doll (you know, the kind where you can pick up the clothes and drop them on the figure to mix and match outfits).Learning how to make drag-and-drop objects was very easy and there are lots of tutorials on it but what I can't figure out is how to get objects to "snap" into place. I want it so that the doll's hairdo's snap into position because they look kind of stupid when placed incorrectly.
I am using a drag n drop (snap into place) routine. MC1 is dragged onto mc2. I want a button on mc2 to make mc1 go to its original position and reset itself. As it is mc1 goes to frame 2 where the frame is empty.
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 :
i have to sanp images into tile or grid form. but my images are in 4 different sizes in height/width. i have to place all images in side by side like tiling.
I am new to actionscripting and I figured that the best way to learn was to do something that interest me. Currently I am trying to do an interactive clip where I need to find the script for "Snap to Place". I was told that Director had this built in "Snap to Grid" but I think Flash can achieve this too just that the tutorial haven't been posted.
So I have two circles and a square on stage, myCircle1, myCircle2, and mySquare. You can drag the two circles, if you drop either one outside the square it'll snap back to where it originally was, if it's touching the box it'll snap to the center of the square.
I want it so when the second circle (either one) snaps to the center of the square, the first one will go back to it's original co-ordinates. So only one circle can be in the square at any time.
well i wanted to make a navigation menu were you have say, 4 buttons or however many you want to have on the stage, this is controled by a variable. now next to the buttons on each side will be an arrow. now then i wish to have a variable that controls how many there will be in total. so if there is eight in total and only 4 showing then when you press the right arrow they will all dynamically move to the next set of buttons.
but the thing is, i need it to have a mask so you can't see them moving behind the arrows and it would look wierd if you could see the buttons that should be able to be seen. i've been trying to accomplish this but theres so much to get my head around i can't seem to go any further then i have now. also i'm trying to make it so i can have a click event for each button, and also i'm trying to find a way i can use this method to dynamically place the buttons down like i am but have different symbols for each button.
at the end of this tutorial it talks about adding links to the buttons created. I did what it said to do but the two buttons keep canceling themselves out if I place them on top of eachother.
[URL] I need to know the script they have used for the 'when , how' buttons. I know its controlling movie clips using buttons. How do the buttons come back to original place?
How to make this smoke effect work without mouse input. I am trying to have it spill from the end of a cannon, & my attempts to modify the position have resulted in all my bitmaps shifting. I changed this doTrail(_root, _xmouse, _ymouse, currentBitmap); To this doTrail(_root, _x=80, _y=100, currentBitmap); [Code] .....
i tried it all but cant solve it on my own. i have 10 different MC,s. they shall appear by hitting a key on the keyboard. all i want them to appear and play on a random place.
all then 10 MC,s are deticated to 10 different keys on the keyboard. (so by hitting the "A" on the keyboard shall place and play MC "A" at a random place..
i am trying to make a brush tool in actionscript 3, where kids can paint colors inside a circle using the brush. i have achieved this using linestyle. Now i want the brush to snap the color when the kid is about to complete(say when they are 95% to complete the painting). How do i know how much the kid has painted on the circle?
I am kind of new to the whole flash sceen and am getting a little bit frustrated with the snapping (I am used to Photoshop Snapping). I have a bunch of objects the exact same size as the stage and I would like to snap them to the stage (I am making a slideshow-rotating image). I always find myself having to zoom in extreamly to make sure the edge of my image is lined up with the edge of the stage... is there a way to snap my images to the stage.
I have a MC, called CurBtn, and I want its position to round by 70s on the X axis, and 80s on the Y when it's dropped. Here's the code I'm using, that isn't working very well:
i have two draggable mclips on stage and need one of them two snap to the other whenever it passes over it. I tried with f(hitTestObject){ mc1.x = mc2.x; and mc1.y = mc2.y}, but it doesn�t work very nice.
I'm wanting to design a sort of DVD chapters menu. Ya know, where each chapter has an animated thumbnail of each scene.
I converted some small clips of animation into MC's. If I put one of those MC on the stage, VCam(within the MC) naturally scales the MC to the stage dimensions.
Is is possible to Scale & XY pos VCam to the dimensions of a targeted MC on stage? I'm open to other solutions. but would find this hella handy to be able to place a MC (Example: a panning Security Cam) into a graphical monitor on a scene, etc.
I'm new to Flash (sort of - I used it a bit back in 1999-2000, but it's changed a LOT since then). I'm making an educational game for my company that involves dragging labels from a word-bank to their correct position on a diagram. I want the kids to be able to drag any one of the five labels and move them to any one of five marked positions on the diagram. I'm using Flash CS5 with Actionscript 3. I used code snippets, so that each individual label has the following code associated with it:
movieClip_1.addEventListener(MouseEvent.MOUSE_DOWN , fl_ClickToDrag); function fl_ClickToDrag(event:MouseEvent):void {[code]..
I'm doing a drag n' drop game, and I can't figure out how to make a message appear once an object snaps into place.I'm making a soccerball drop into a soccer net, and once it hits its dropzone I want a message to appear, like "Nice Shot!".