ActionScript 2.0 :: Set The Movie Position?
Dec 29, 2004I just like to know how to set the movie position with actionscript?
View 1 RepliesI just like to know how to set the movie position with actionscript?
View 1 RepliesBasically the x position of the mouse should control the play position of a movie. Do I need something like an event handler (I'm not sure exactly what these do, but I've seen similar scripts that seem to use them).
View 2 RepliesI have a Flash movie with a movieclip inside called main (main has been dragged into the stage).In main at certain frame I have[code]...
Which loads teletipo.swf but in a x=0 and y=0 position. As I need it in a x=320 and y=165 position I've done[code]...
_root.caption.image_mc.loadMovie("essaicomplex.swf "); On each thumbnail gallery, by passing the mouse over a thumb It loads a SWF ( larger picture of the thumbnail) till now it is great. BUT 1 : I can not fix the position of the movie and 2 : the so called "swf-movie" moves together with my mouse. I want it locked. I turn around but do not find.
What do I have to modify ??
I just like to know how to set the movie position with actionscript?
View 1 RepliesI 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.
Here is my current code:
[Code].....
I have downloaded a flash movie from flashkit tutorial and now I want that movie to load in another movie but either its not loading properly or its not positioning properly.
[Code]...
I have 3 movie clips A, B, C on stage. I wish to shuffle the positions of movie clips, that is B take over the position of A, B take over the position of C and C take over the position of A and so on, each time their locations are interchanged.
View 15 RepliesHow to find Timeline Position of my Movie.
View 16 RepliesI need to make myself walk in front of my Flash website. All I have is a movie with a white background. Does anyone know the process? Using Flash 8.
View 2 Repliesi have a peice of code to load two external swf files, the problem is that both the files load in to different positions i have a position x,y snippet but the probelm is for that to work i need for both external movies to load in to the same place, is there a way that i can define which movie i want to position.?
ActionScript Code:
var fl_Loader:Loader = new Loader();
addChild(fl_Loader);
[code]...
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.
View 1 Repliesi created an empty movie clip called 'iranmc' and i want to load a swf file into 'iranmc'. So, on 'iranmc', i applied this script
onClipEvent (load) {
loadMovieNum("iran.swf", "iranmc");
}
However, problem is..when previewed,it doesn't play in iranmc, but it pops up an Internet Explorer browser and plays the video in there.
[URL]
I have a menu that is in frame one extended through frame 5. Frame 1-4 is used for the main page content of the movie, while frame 5 has a movieclip that uses the loadmovie command from the menu objects to go to. Frame 5 is also using the label "gallery". Now, when i am in the movie on the main page and click a menu selection (Little People button) the script reads as follows:
on (release) {
_root.gotoAndPlay("gallery");
loadMovie("galleries/littlePeople/set1.swf", _root.thumbs);
}
So this takes you from frame 1 (the main page of the movie) to frame 5 (where the loadmovie is for the gallery images).The problem arises when i click on another gallery selection (Big People button) and it goes to the "gallery" marker again because the script reads the following, and it does not load the movie until you hit the button again.
on (release) {
_root.gotoAndPlay("gallery");
loadMovie("galleries/bigPeople/set1.swf", _root.thumbs);
}
Now, i think i can solve the problem by writing an if then statement where if the playback head (or movie position, whatever you want to call it) on the root timeline is at the label "gallery" then it does not need to run the first command in the on (release) and just loads the movie, but if the playback head is anywhere OTHER than the label "gallery", like say on the label "contact" then run the script to go to the gallery marker and then load the movie i want to load.
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?
Here's my code...
Actionscript Code:
spitballYpos = _root.PDFstanding.shooter._y;
There's a way to know which frame number I'm located in a movie? I fond this 'getCurrentKeyframe () ' but I don't understand how does it work.
View 2 RepliesI have a project where you click on a movieclip and it creates a new movie on the stage and I do a startdrag on that movie.Rather I would like to, just to test if I could get it to work I figured out the x and y position roughly on one of the movies and was able to get the startdrag to work(YaY!!), however I would like the created movieclip if possible to be created centered(center x and y position of the created movie) on the cursor point.
View 8 RepliesI 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.
[Code]....
How to find Timeline Position of my Movie.
View 9 RepliesI have two .swf(s) I want to play similataniously on stage in my movie called base.fla.either movie is in the library they are being called from the same directory level that the base.fla movie is. Here is my script.
on (release) {
loadMovieNum("twirl30Loop_Small.swf", 2);
loadMovieNum("relax!_Small.swf", 1);
[code].....
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
View 2 RepliesI 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
View 1 RepliesI created an empty movieclip with[code]...
Where in the script can I add the x and y properties for that empty movieclip?
how do i position movieclip exactly in the middle of the movie tru actionscript
View 3 RepliesI'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?
How do I change the y position for the duplicated movie clips I have created?This is the code I have used to create the movie clips. [code]
View 14 RepliesIs 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?
View 2 RepliesI was just wondering if this is possible, and if anyone knows how it could be done
What i intend to do is have a number of movie clips which load a photo from XML.As well as the photo i want something in the XML code that tells the movie clip where to place itself on the scene. For example it could contain a number from 1-8 and the scene will be split into eight sections across the X axis. So if it has the number 3 it will go in the 3rd section across anywhere on the Y axis.
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?
View 2 Replieshow 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?