I have several movie clips on the stage. They are draggable. I want to be able to drag the movie clip, then when it is dropped, a copy of that movie clip will appear where the first one had been, and the first one will just stay where it is on the screen.
However, I'm running into problems with the syntax.
how do i add a movie clip to a button position? i want a button that, when clicked, slides out to a certain position and stop. kinda like a drawer in a desk.
I am trying to get the position of a movie clip called "Shooter", returned to a variable called spitballYpos.
The movie clip is sitting on frame 6 (labelled "Shooting") of a movie clip called PDFstanding.
The position returns perfectly if I place the .shooter MC on the first frame of PDFstanding, but on frame 6 the variable result just returns "undefined".
What have I missed? If I need to reference the particular frame the 'shooter' movie clip is on, then what is the correct syntax?
I have two images pulling though an empty movie clip, using the actionscript below. I can't seem to figure out how to position both of them, could anybody shed some light on this? I'm using AS3.
actionscript and was trying to display a movie clip's x and y positions in dynamic textboxes. I can make them display the mouse's x and y positions but need to get it to say the movie clip's
I am creating a flash presentation for school. I am unable to solve this problem, that keeps on pestering me.The problem is:I am trying to create a touch screen calibration movie clip. The only problem i keep running into is, when i click the calibration touch screen cross, what is the script that allows the change in position of the cross after it has been clicked on?Example:The original cross is orientated on the top left of the screen, after it has been clicked i need it to move to the top right of the screen, then clicked again - bottom right, and again bottom left and finally clicked again to be displayed in the centre
I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?
Is there a way to test the _y of all movie clips and set a function that if there is a movie clip at _y = 75 that it is 'topMovie' and if another clip is at (topMovie + topMovie._height) THAT movie will be 'secondMovie' and so on ad infinitum?
I need to test for the x position of a movie clip and if its in place a do something otherwise if its in position b do something else. Can you tell me how to test for this?
how would i go about using a draw code(Code that allows users to draw within the flash) and restricting it to a certain size and location on the movie? for instance a 75x75 box located at xPos=200 and yPos = 150?
Like would I have to use a blank movie clip for the position? then make an invisible box within it to restrict drawing area?
I created an empty movieclip with:Code:_root.createEmptyMovieClip("container", 1);Where in the script can I add the x and y properties for that empty movieclip?
I have a simple question, but for the life of me I can't figure it out. I'm an ActionScript beginner, by the way. I have a simple drag and drop interface, fill in the blank type thing, and I wat to lock a specific move clip's position once it's dropped in the appropriate place. Make sense?
I made two movie clips that follows the mouse but I want to put constraints on them, they should follow the mouse until the mouse reaches a certain distance and then the movie clip should pop back to its original x and y position.
Code: private function init():void { addChild(backgrnd);
Is there a way to position something INSIDE of a movie clip, based on X and Y values of the root stage?
Basically the X and Y of the container movie clip is at Stage.width/2; but I want one specific movie clip inside to stay permanently at 200X and 200Y on the MAIN STAGE. I can't actually move it to the root timeline though because it is using actionscript inside of the container.
I need to jump the movie clip position back and forth between two positions on the stage--without tweening--via a mouse click on a button. I have no problem doing this by creating a 2-keyframe timeline, and re-positioning the movie clip for each frame. To move back and forth from frame 1 to 2 and back to 1 on the main timeline, I wrote a gotoAndStop action for the button, (labeled flipflop.) In frame 1 of the main timeline:
The problem is, when the movie clip jumps from position A to position B on the stage, the movie clip resets to frame 1. I need the movie clip to hold its current frame as it changes position from frame 1 to 2 and back to 1. How do I do this, and would the method be the same if the single button controlled the movement of multiple movie clips?
Im learning actionscript using the tutorials here so im more interested in learning *how* rather than just getting it done.
Ive come across a problem on something ive been trying to do. Ive been trying to make a 10 framed movieclip appear at the mouse position and play continuously. To do this I have a two framed loop.
Here is my code. Circle_mc is the movie clip: ----------------------------------------------------- //this is the name of my function and what it has in it. CreateAtMouse = function () { Circle_mc.duplicateMovieClip("circlecreate", 2, {_x: _root._xmouse, _y:
I have one movie clip that when clicked on moves to the left of the screen, after it gets there I want another and exteral swf to load. But I dont know how to get the external clip to load after the movie clip gets to the left side of the screen....Here is what I got so far..
Code: Stage.scaleMode = "noScale"; var myListener:Object = new Object(); myListener.onResize = function() {
[Code]...
I want the movie clip to be at the bottom right corner or the stage at all times when the browser is resized. The name is the clip is bottom right piece. The flash movie takes up the whole browser with no scale. The movie clip is always over or under the point in space its suppose to be. When i trace the value or the movie clip's _x... its the same as the Stage.width... but it doesnt portray that visually on the stage...
The movie clip containing the photo resizes based on the size of the browser window, and the other two movie clips are positioned based on the outside edges.
I have created an animation which has frames with the head drawn in the various positions it needs to be in to look in all directions. Each frame is unique as it shows the head look up down sideways etc.What I need to do now is to make the movie clip play certain frames depending on the mouse position.I am having some trouble with the logic of how to do thisIs the best way to detect the mouse position then tell the movie clip to gotoandstop a certain frame depending on the mouse position?
I have a .swf file with tool tips and dynamic colors on movie clips that I want to load into another movie.
s_1800.onRollOver = function (){myTooltip.content = "Office #: 1800"+newline+"SF: 0";var colorful = new Color ("_root.s_1800");colorful.setRGB(0xb5282c);myTooltip.showTooltip();}s_1800.onRollOut = function (){myTooltip.hideTooltip();}
I realize that title sounds a little confusing, but what I am trying to do is copy this style of site[url].... I have created all of the swf's for the main index of the site, but am way out of my league on how to load them into a certain position in a single movie clip so that a drag bar can slide the movie clip left and right. I have read a few posts on external loading, but am not really sure on how to implement them to achieve this look.
I just followed this tutorial and I did get how it all worked.. and i got my movie clip flying arround the stage. Then when i tried to apply it to a little project i'm working on, i couldn't get it working. I have a movie clip called mc_main and when i click a button I want it to move - using easing - to a new position on the stage. In the first frame of my timeline i have put this AS:
I have started a project for a t-shirt store with a similar featurescan any one tell me how he is controlling the designs and text rotation and scaling inside the target area