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.
What I want is: when the "hero" touches an enemy, all enemies should be removed. The problem is that when the hero touches an enemy it only removes that enemy. This only happens when its inside of an "if" condition. I made another example using buttons and worked perfect. let me show you the examples: in this case I made a button to create some movie clips inside an array:
Basically 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).
i want to put a condition on the button event on (release) to check which frame of the movie symbol is stopped. something like if(frame 3 is stoped) gotoAndPlay(14).
_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 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.
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.
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.
i 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);
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 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.
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.
I 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);
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?