ActionScript 2.0 :: Condition For Movie Position?

Jun 26, 2004

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.

View 6 Replies


Similar Posts:


ActionScript 2.0 :: Refer To All Movie Clips In An Array Inside Of An If Condition?

Jul 10, 2011

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:

ActionScript Code:
i = 0
myArray = []
boton1_btn.onPress = function(){

[Code]....

in the dieEnemies() function it only remove the one enemy the hero is hitting. What should I do to make all enemies being removed?

View 4 Replies

ActionScript 2.0 :: Mouse X Position To Control Movie Position?

Feb 1, 2006

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).

View 2 Replies

ActionScript 2.0 :: Put A Condition On The Button Event On (release) To Check Which Frame Of The Movie Symbol Is Stopped?

Mar 16, 2009

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).

View 3 Replies

ActionScript 3.0 :: Condition - If The Variable Change Condition Don't Change

Sep 12, 2009

I have a BD return by PHP without problem : I have "all_good" and "no_good" If the variable change my condition don't change ..... why

[Code]....

View 3 Replies

Load Movie In X And Y Position?

Apr 28, 2009

I 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]...

View 2 Replies

ActionScript 2.0 :: Set The Movie Position?

Dec 29, 2004

I just like to know how to set the movie position with actionscript?

View 1 Replies

ActionScript 2.0 :: Fix The Position Of The Movie?

Dec 18, 2006

_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 ??

View 11 Replies

ActionScript 2.0 :: How To Set Movie Position

Dec 29, 2004

I just like to know how to set the movie position with actionscript?

View 1 Replies

ActionScript 3.0 :: Duplicate A Movie Clip In Original Movie Clip Position?

Aug 30, 2011

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.

Here is my current code:

[Code].....

View 14 Replies

ActionScript 2.0 :: How To Position External Movie

Feb 27, 2010

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]...

View 1 Replies

Interchange Position Of Movie Clips?

Jul 16, 2009

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 Replies

ActionScript 3.0 :: Timeline Position Of Movie?

Sep 2, 2010

How to find Timeline Position of my Movie.

View 16 Replies

Css :: Position Movie Over Flash Website?

Nov 9, 2009

I 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 Replies

ActionScript 3.0 :: Position External Swf Movie?

Mar 24, 2011

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);

[code]...

View 1 Replies

IDE :: Add A Movie Clip To A Button Position?

Dec 2, 2009

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 Replies

ActionScript 2.0 :: Load Movie Into Position?

Nov 22, 2004

i 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]

View 2 Replies

ActionScript 2.0 :: Get The Position Of A Movie Clip, On A Particular Frame Of A MC?

Jun 12, 2010

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;

View 1 Replies

ActionScript 3.0 :: Locate Frame Position In A Movie?

Dec 19, 2008

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 Replies

ActionScript 3.0 :: Help With Creating Movie At Cursor Position

Nov 3, 2009

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.

View 8 Replies

Flash :: How To Position Empty Movie Clip

Jan 20, 2011

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.

[Code]....

View 1 Replies

ActionScript 3.0 :: Find Timeline Position Of Movie?

Sep 3, 2010

How to find Timeline Position of my Movie.

View 9 Replies

ActionScript 2.0 :: LoadMovieNum Movie Stage Position?

Nov 20, 2003

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);

[code].....

View 7 Replies

ActionScript 2.0 :: Display A Movie Clip's Position?

May 6, 2005

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 Replies

Actionscript 3.0 :: Change A Movie Clip Position?

Aug 24, 2009

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

View 1 Replies

ActionScript 2.0 :: Add X And Y Position For Empty Movie Clip?

Mar 27, 2004

I created an empty movieclip with[code]...

Where in the script can I add the x and y properties for that empty movieclip?

View 3 Replies

ActionScript 2.0 :: Position Movieclip Exactly In The Middle Of The Movie ?

Apr 19, 2004

how do i position movieclip exactly in the middle of the movie tru actionscript

View 3 Replies

ActionScript 2.0 :: [FMX] Locking A Movie Clip's Position?

Oct 20, 2004

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?

View 1 Replies

ActionScript 2.0 :: Y Position For Duplicated Movie Clips

May 6, 2005

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 Replies

ActionScript 2.0 :: Movie Clip Position Testing?

Dec 16, 2008

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?

View 2 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved