ActionScript 2.0 :: Centering Multiple Movie Clips?

Jan 16, 2008

I'm working on a dynamicly resizable photo gallery...I've got all the pics loaded into thumb MCs, and everything is working...except I don't know what the best way to center the objects is.The closest I got was putting one MC in the center and putting one MC on one side, then the other and so on. However, this doesn't work for odd numbers of clips...what do I do?

View 9 Replies


Similar Posts:


ActionScript 2.0 :: Centering Nested Movie Clips To Stage?

Aug 16, 2007

I'm currently working in Flash 8 with Actionscript 2.0.

I've been trying different alternatives and none of them are working. I've even posted here previously and tried a few things but I haven't quite resolved my centering to stage problem. Some of you may have already read pieces of this from another post.

I have a landscape that functions sort of like a 360 vr tour. The main movie clip directly on the stage is labeled, "mainMovie", and within it is another movieclip labeled, "singleStrip".

To simulate the 360 vr tour, there's script inside, "mainMovie" to duplicate "singleStrip". Also, inside the "singleStrip" movie clip, I have different elements appearing through the landscape, in this case, we'll use letters as an example. The letters A - Z are sitting on the landscape throughout the entire "singleStrip" movie clip.

Everything rotates fine with the script that's placed some sensitive area movie clips that are placed on the root level. When you place your mouse pointer to the left edge of the stage, the landscape shifts left, when you move the mouse pointer to the right edge, the landscape shifts right, (or vice versa, I can't remember).

The problem I'm having is for the letters that are in view on the stage, I want the user to be able to "click" on them and then that letter zoom up to the center of the stage, (through the "x" coordinate). I'm having difficulty with this since the letter movieclips, (example, "letterA"), are within the "singleStrip" movie clip, which sits inside the "mainMovie" movie clip, which are both constantly moving and their x position continues to change.

I've been using the tween class in order to animate them with easing and it's usually the "endx" variable that I'm having trouble because I don't know how I can match it up to the center of the stage, whether it's a "endx = stage.width._x /2; " or something else. Here's an example of some of the [code]...

View 2 Replies

Multiple Movie Clips On Stage - Buttons Not Working In Movie Clips?

Jul 15, 2009

I have multiple movie clips on stage (all in separate layers, of course) as well as buttons on stage to play each movie clip. There are buttons inside each movie clip. The problem is that the buttons inside the top layered movie clip work, but the others in the movie clips below don't.

View 2 Replies

ActionScript 3.0 :: Used For Multiple Pauses Within A .fla Within Multiple Movie Clips?

Sep 8, 2009

I have this code to use to pause animations in different areas of a .fla, for each pause I have been copying this and changing the "var timelinePause" and other items as shown after the original code, is repeating this code for each pause just junk code? is there something else from this that I can use to pause?

[Code]...

View 8 Replies

ActionScript 3.0 :: Creating 'reflection' Of A Movie Clip By Dragging Multiple Movie Clips

Apr 5, 2011

how to imitate a reflection of a movie clip in a "mirror." I don't know if I should have the initial movie clip on custom cursor or have it set to drag... but either way I don't know how to make the second clip the "reflection follow along. Obviously it would need to follow at a slightly offset pattern so that you would be able to see both clips (or majority of them) at the same time. It's for a school project that is due at 9am tomorrow so time is of the essence!!

View 4 Replies

ActionScript 1/2 :: Loading Multiple Movie Clips Inside Another Movie Clip?

Mar 11, 2010

I was wondering about the flexability of loading movies into a movie clip. Currently, I am well able to load one movie into a movie "loader" clip, but thought maybe there is a way to load additional movie clips into that same "loader" clip, as i am starting to accumulate several different graphics that i need to have be inside movie clips so that i can make them change colors on the same frame when needed.
 
i shot from the hip and tried this code, but didnt have any luck:
 
mc_LCD_loader.attachMovie("hilight", "g", 1), ("header", "X", 1); mc_LCD_loader.g._x = 0; mc_LCD_loader.g._y = 1000;
mc_LCD_loader.X._x = 0; mc_LCD_loader.X._y = 1000;

[Code]....

View 9 Replies

Flash :: Created Multiple Movie Clips And Then A Single Big Movie?

Jun 21, 2011

I'm having some trouble following this (link) tutorial. I'm new to flash, so please bear with me.

In step 1 of this tutorial, we have created multiple movie clips and then a single big movie clip(including all the movie clips).

In step 4, I'm not able to access the properties of the clips we created earlier by using the following code, like in the tutorial.

[Code]...

View 3 Replies

ActionScript 2.0 :: [F8] Hiding Multiple Movie Clips

Feb 16, 2009

Is there a better way hiding mutiple mc's than this?

button1.onPress = function(){
first_mc._visible = false;
second_mc._visible = false;
third_mc._visible = false;
}

What I think I want to do is make an array of the movie clips and apply the function to that array?

View 3 Replies

ActionScript 2.0 :: Control Multiple Movie Clips?

May 15, 2009

I have 6 movies that i need controling. These are named hex1, hex2, hex3 etc. When the file opens i have some action script that needs to run something like this:

while (i<7) {
hex[i].gotoAndStop(1);
i=i+1;

[code].....

View 1 Replies

ActionScript 3.0 :: Making Using Multiple Movie Clips?

Apr 1, 2011

I'm working on a project where in I've found it necessary to mask a background object with MULTIPLE Sprites. I've tried doing this two ways: making one "parent" sprite to which all of the other masks are childed; adding them as individual masks.

The composite strategy just sort of gave up, Flash doesn't seem to like having to search through it's render tree to do these things and the result was no visible mask or masking (just the full background image). The latter strategy failed for obvious reasons: saying Sprite.mask = so-and-so implies that setting it again will overwrite the last mask.

Is there any way to use the composite strategy? Or is there a way I can copy over all of my sprites and draw them directly into one new sprite on every frame?

View 3 Replies

ActionScript 3.0 :: Preloder For Multiple Movie Clips?

Nov 5, 2008

I'm building a website where i have 9 thumbnails on the maintime lineWhat i want to achieve is to press on the thumbnail whichwill redirect to a movie clip each time fairly big in size and have apreloader for each thumb. Load the content before it enters thefirst frame of each movie clip since the content is fairly big insize.(3d animation)

View 2 Replies

ActionScript 3.0 :: Load Multiple Movie Clips?

Oct 28, 2008

how to load multiple movie clips on the stage? My ActionScript 3 are as below:

I declared a movie clip - "mcPhotoFrame" (i.e. an instance of "mcPhoto" movie clip) and would like to load all the pictures on the stage but after finished loading, only the last photo shows on the stage.

View 4 Replies

ActionScript 1/2 :: Multiple Movie Clips In Variable?

Aug 31, 2010

Is it possible to have multiple movie clips inside one variable? I want to be able to just use var._totalframes instead of mc1._totalframes, mc2._totalframes, etc... Or is there another way I can avoid copying and pasting dozens of movie clips over and over

View 1 Replies

ActionScript 1/2 :: Resetting Multiple Movie Clips?

Jan 24, 2011

I've created this simple birthday game where the concept is to blowout 30 candles in 15 seconds. The candles are movieclips so that when they are clicked on, they blowout. However, when the option to "try again" begins, the candles are still out.

So, how do you reset multiple movieclips?

View 3 Replies

Combine Multiple Movie Clips On Different Layers

Oct 2, 2011

I'm making a simple drag-and-drop style dress up game, and I want to know if it's possible to combine multiple movie clips on different layers so that they can be gragged as a single object in the game, but retain their seperate layers. For example, if I make a hat and I want the front part of the hat to be on a layer above the doll base's head, and the back of the hat to be on a layer behind it, but the hat has to move as a whole when dragged.

View 2 Replies

Actionscript 3 :: Multiple Movie Clips In ScrollPane?

Jan 20, 2011

I am loading multiple movie clips into a scrollpaneContainer mc and setting the source of my scrollpane to be the scrollpaneContainer.

Problem is the height of the scrollpaneContainer is larger than 2880 pixels (mc height limit).

I can split the movieclips into two scrollpaneContainer clips but I am unsure how to set the source of the scrollpane to be two different movie clips at the same time.

View 1 Replies

ActionScript 2.0 :: How To Print Multiple Movie Clips

Feb 11, 2009

How can we print only few movie clips out of 100s at the same frame and How can we change the page orientation for printing..

View 1 Replies

ActionScript 3.0 :: Remove Multiple Movie Clips?

Sep 30, 2010

Trying to remove three movie clips from a game screen when advancing to the next stage, but the movie clips stay. I've been using removeChild (MovieClip) but its not working for all movie clips on the screen. this is my first time using flash.Heres the code I've got so far:

stop();
removeChild(hat_mc);
removeChild(vest_mc);

[code].......

View 6 Replies

ActionScript 2.0 :: Coordinate Multiple Movie Clips?

Jan 25, 2004

I want to make it so when I release one of my menu buttons AS does the follow: on(Release) If Movieclip1 is on frame 2, the movieclip1 go to and play frame 3

If Movieclip1 is on frame 2, the movieclip1 go to and play frame 3

Really the only problem I am having with this is i don't know if i can say multiple if then statment on one trigger and I also dont know how to say "is on frame..." properly in an if then statement.

View 2 Replies

ActionScript 2.0 :: Target Multiple Movie Clips At Once?

Jun 29, 2006

how to target multiple movie clips at once so that if my tank bumps into a specific set of movie clips, it will change my move var to false without having to put a hittest on each individual movie clip and without having to list out all their names? I don't want to list fifty different instance names for all the hittests.

View 1 Replies

ActionScript 2.0 :: Removing Multiple Movie Clips?

Jul 11, 2003

I am going to use the removeMovieClip("SomeMovie"); command. Is it possible to close multiple movie clips using only one of "removeMovieClip"? For example, i want to close movie1, movie2, and movie3.

View 14 Replies

ActionScript 2.0 :: How To Coordinate Multiple Movie Clips

Jan 25, 2004

I want to make it so when I release one of my menu buttons AS does the follow:on(Release) If Movieclip1 is on frame 2, the movieclip1 go to and play frame 3If Movieclip1 is on frame 2, the movieclip1 go to and play frame 3Really the only problem I am having with this is i don't know if i can say multiple if then statment on one trigger and I also dont know how to say "is on frame..." properly in an if then statement

View 2 Replies

Swap Depths For Multiple Movie Clips At The Same Time?

Aug 18, 2005

is it possible to swap depths for multiple movie clips at the same time? how about swapping for negative depths? or will that kind of thing lead me into probs later?

View 8 Replies

ActionScript 3.0 :: Dynamically Created Multiple Movie Clips?

Feb 6, 2009

Trying to add a set of movie clips to the stage in a loop. I need to be able to reference them on a mouseDown function - but the projHolder var in the mouse event is coming up undefined. Any ideas how to accomplish something like this?

for (var i=0; i <intWorkCount; i++) {
var projHolder:MovieClip = new MovieClip();
projHolder.name = 'projHolder' + (i);

[code]...

View 5 Replies

ActionScript 3.0 :: Change Colour Of Multiple Movie Clips?

Oct 30, 2009

I don't know if this should be in the newbie forum. I certainly should be as I'm a 'total tard' when it comes to Actionscript - I've only recently taken the plunge Here's my question - I am using the code below to change the colour of a movie clip and it works fine for a single movie clip:

[Code]...

View 2 Replies

ActionScript 2.0 :: Changing Alpha On Multiple Movie Clips?

Jan 7, 2010

I know how to change the alpha of one movie clip at a time on rollover, rollout, and release. But I'm a bit stuck trying to figure out how I would change the alpha of multiple movie clips, when one is clicked. It's for a simple photo gallery and I want all the thumbnails to darken once one has been clicked & the image is loading. I can't just fake it by having a somewhat transparent black movie clip appear over everything, because I need the alpha of each thumbnail to be able to change again once people roll over a new thumbnail.(a section of my code is included for reference but there are like 30 thumbnails so I didn't include it all, the code is the same for everything)

Code:

thumb_001.onRollOver = over;
thumb_001.onPress = down;
thumb_001.onRollOut = out;
thumb_001.onRelease () {

[code]....

View 2 Replies

ActionScript 3.0 :: Dynamically Loading Multiple Movie Clips

Aug 11, 2010

I am trying to perform the following:
1. Create a series of movie clips on the stage
2. Give each one a specific name (i.e. movieClip1_mc)
3. Load an image into each one
4. Add three unique listeners to them (MOUSE_OVER, MOUSE_OFF and CLICK)
Afterwards I want to create one single function that will handle all the above boxes depending on which box is clicked.

Obviously the 1st part is simple enough and I have no problem there. Without relying on the "multiple movie clip" parts, I can easily handle the next three - just can't get it to work when working with multiple dynamic movie clips. Where I get stuck will always be giving each one a name and then moving forward. One big issue I continuously face is creating one dynamic function that will handle based on which movie clip the user interacts with.

View 10 Replies

CS3 Drop Down Menu Navigation With Multiple Movie Clips?

Aug 16, 2011

I am creating an interactive website so it can be viewed where there is no internet.Each section of the website is split in to different movie clips with the navigation itself being a movie clip on a different layer.Currently I am able to jump to the beginning of frame 1 of a MC then able to navigate to frame 2 but unable to go back to frame 1 through the nav.My biggest problem is jumping to frame 2 of a MC.

View 6 Replies

ActionScript 1/2 :: Single Droptarget For Multiple Movie Clips?

Aug 19, 2010

I have a movie clip which i use as a drop target. And I have four additional movie clips which can be dragged and dropped into the droptarget movie clip. But when I place a movie clip into a droptarget and I drop the second one too, the droptarget for the second one becomes the first movie clip but not the actual droptarget movie clip.

View 3 Replies

ActionScript 3.0 :: Multiple Movie Clips In Parent Flash

Sep 24, 2010

I am having trouble with looping my flash that contains multiple movie clips. Each movie clip is on it's own layer and within the movie clips, the last frame I use this code to go and play the next movie in the parent: MovieClip(parent).nextFrame();My problem is that when the last movie clip of the sequence plays,I want to restart the entire thing and play the first movie clip again (a continuous loop).

View 3 Replies







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