Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Creating Multiple Move Clips Fast



Hello,

I'm about to create a solitaire game and since there are 52 cards I'm wondering if there is a fast way to turn them all into Movie Clips or "Symbols" instead of "Convert to symbol..." on each and everyone of them?

Thanks



FlashKit > Flash Help > Flash Newbies
Posted on: 09-02-2006, 05:35 PM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

[F8] Fast Foward And Rewind 90 Frames In Multiple Timeline File (no Video Clips)
I have been trying to make simple fast foward and rewind buttons for a file I made using the "slide presentation" format in Flash 8 (ideally, to rewind or skip ahead 90 frames and then play). I had code for a file I had with a single timeline that worked by creating an empty movie clip...but the same code, even when inserted into each slide's timeline, doesn't seem to be working. I have tried various other codes I found on these forums and elsewhere...but nothing seems to work!

I am very new to actionscript, so I don't even know where to begin to make the code myself, or how to fix the ones I've gathered already. Any help would be greatly appreciated!!

Oh, and this isn't a video I imported...it's just the Flash itself. Thanks!

Creating Sequential Move Clips
hello,

I have a two-part question. How to delay and make the creation of movie clips sequential? Also, how to add a play button?

I am trying to create a group of movie clips and animate them. However, I don't want to have them animate all at once. I need to create one, have it animate, then create another, etc.

When I run the code below the for-loop runs very fast. The clips are all created at once. After five seconds, I get a lot of trace statements from the timer's listener function. The timer doesn't slow down the for-loop.

I'm also trying to find a solution that enables stop and start buttons. I didn't include anything for the stop button, because that's pretty easy. However, i haven't managed to put any code for a play button that works.

To visualize my project, I have a loop creating movie clips. I want subsequent movie clips to wait for the prior movie clip to finish animating before it gets animated. I also want to stop and start this action with stop-start buttons.

Here's my code. I hope this post isn't like asking for the Moon. :))




btnPlay.addEventListener(MouseEvent.CLICK, playsShow);
var isPlaying:Boolean = true;
function playsShow(e:Event):void {
if (!!sPlaying)
{
play();
isPlaying = true;
}
}

function runMany(event:Event):void {
trace('runMany called @ ' + getTimer() + ' ms');
}

function mcAdded(event:Event):void {
trace("mcAdded() called @ " + getTimer() + " ms");

var myTimer:Timer = new Timer(5000, 1);
myTimer.addEventListener(TimerEvent.TIMER, runMany);
myTimer.start();
removeEventListener(Event.ADDED_TO_STAGE, mcAdded);
}

// create move clips
for (var j:int=0; j< 250; j++)
{
var FromLibrary:Class=getDefinitionByName("mcDynamicText") as Class;
var mctxt:MovieClip=new FromLibrary();
mctxt.addEventListener(Event.ADDED_TO_STAGE, mcAdded);
addChild(mctxt);
}

Creating A Varaible Number Of Move Clips
I have recently found the need to create a variable number of movie clips.
I have done with success excepth when I trie to unload them.
Can anyone give a little help on this?
Thanks
Henry

Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?

Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?

Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?

Images Move Left To Right, Fast And Slow On Mouse Move...
I'm looking for a tutorial or example of the effect when you have images all next to each other horizontally and when you roll the mouse oneway they move in the opposite direction and when the mouse is centerd on screen they slow down... Anyone have an example or tutorial of this?

Creating Multiple Movie Clips
Hi there - here is what I'm trying to achieve:

I have a m/c of a small square rotating from edge on to face on via it's Y axis. I want to now, using duplicateMovieClip, create 25 of these, in a grid 5 x 5, one after the other, playing as they are created.

I know how to create the 25 duplicates, using Linkage in the library and something like this:


Code:
for (i=1; 1<=25; i++) {
square_mc.duplicateMovieClip("square" + i + "_mc", i)
}
But once they are created, how do I reposition them? Also I will need to be able to determine once 5 are created so that a new line is started.

Would it be something like this: Set a first X and Y position before the loop and after each pass, use -

Code:
this._x = n + somenumberofpixels
this._y = g + somenumberofpixels
where n is the preset _x before the loop and g is the preset _y before the loop and somenumberofpixels is the size of the square after full rotation plus a little gap inbetween?

Sorry my text sounds/reads a bit messy; I can see the solution, but I just don't know how to reach it.

cheers

frank

[F8] Creating Multiple Movie Clips From Bitmaps
Hi all....I need to convert 25 bitmaps to individual movie clips preferably in an automated way rather than dragging them onto the stage and right clicking on each one.

I googled a solution and found someone who said 'run the script below'.....as something of a novice, what I don't know is the process for running this script...can anyone assist ??

if (fl.getDocumentDOM() == null) {
fl.trace("Error: No document open.");
} else {
if (fl.getDocumentDOM().selection.length == 0) {
fl.trace("Error: Nothing selected.");
} else {

var convertedBitmaps = new Array();

var selArr = fl.getDocumentDOM().selection;
for (var i = 0; i < selArr.length; i++) {

var instanceRef = selArr
if (instanceRef.instanceType == "bitmap") {

var libraryItemRef = instanceRef.libraryItem;
var newName = stripExtension(libraryItemRef.name);

fl.getDocumentDOM().selectNone();
fl.getDocumentDOM().selection = new Array(instanceRef);
var mc = fl.getDocumentDOM().convertToSymbol("movie clip", newName, "top left");

if (mc == null) {
// Throws an error on screen anyway...
fl.trace("Error: Couldn't convert "+newName+" to symbol.");
}
}

}

fl.getDocumentDOM().selectNone();
}
}

function stripExtension(str) {
var pos = str.lastIndexOf(".");
if (pos == -1) {
return str;
} else {
return str.slice(0,pos);
}
}

Multiple Transparent Clips Are Creating A Mask?
I'm totally stumped on this one. I've created an interactive map that will have lots of overlays to be turned off and on. For some reason, all the 'overlay layers' are somehow creating a mask over all the root layers. Sounds confusing, i know. In other words, it's like there's a threshhold to how many layers can be stacked on top before correctly displaying alpha goes haywire.

i can email the .fla if anyone wants to take a stab as to what's happening here.

thanks for the help! I'm pulling my hair out!!!

[MX2004] Creating Multiple Empty Movie Clips.
At the same time.
Can you do that?
I tried it and it just doesnt work, it creates the first one but the other five dont work and createTextField wont work after the first createmovieclip.
Why? lol

Creating Controls For Multiple Movie Clips In One Flash File
I am a true beginner here! I would like to create one flash file that contains butons to manage stop/start 8 movie clips(at full screen)!! Where do I begin? I can create the buttons and actions for those but how do begin to mange the movie clips at full screen? Any suggestions? PLease help!!!

Creating And Accessing Multiple Soundtracks Without Repeating Movie Clips
Hi,

I am currently developing a kids educational CD-Rom with Flash MX.

I want the end user to be able to chooose their language on a screen at the beginning (just after the splash screen).

Is there any way of using actionscript to set a flag or something so that all subsequent movie clips will select their audio from a specific folder. (In other words, if the user selects German, can the same movie clips play with all the audio taken from the files in the "German audio" folder?)

Any help here would be greatly appreciated, thanks.

B

Why Snow Move So Fast After Preload
I followed the instructions of the snow tutorial and it went well. After adding the preloader to it, the snow moves a lot faster now? How do I change that back to the normal speed?

Why Snow Move So Fast After Preload
I followed the instructions of the snow tutorial and it went well. After adding the preloader to it, the snow moves a lot faster now? How do I change that back to the normal speed?

Move Movie Clips On Mouse Move (opposite)
Hi.

Does anybody have idea how this thing work (the cirlcles moves)?

http://www.templatemonster.com/flash...tes/15650.html

As well as the button gets closer to mouse when near the buttons.

I cant seem to find here .


Thanks very much.

Mouse Triggering A Movie Clip To Move Fast/slow
I am trying to work out how to make the mouse move a movie clip fast and slowly as the mouse moves around the stage. I've seen it done on other sites and cannot figure it out. What I want to have is a clip containing buttons and as you move the mouse near the clip it slows down so the user can click the buttons and as you move the mouse away it speeds up. I was hoping that someone might be able to steer me in the right direction with the correct action script!

Movie Clips Inside Move Clips. How To Control?
I have an object in this case a foot with toes on it. the toes animate as well as the whole foot moving with the nails on it. I have instance names assigned for all the mc's problem is that the toes are buried about 3 layers down inside the foot_mc so they will move with the foot as well. When I assign a function to them the error compiler does not know where the nails are . What is the best way to fix or re-do this layout?

I am a total newbie to Flash and AS3, so any help would be great


I FIGURED IT OUT.

Creating Fast Colour Change
Good Day

I need to create a flash with a vehicle pic and a color grid. When a user moves over the selected color the color of the vehicle should change to that selected color. I do not know if there is a program that can do this.
The other thing I would like to make the vehicle tyres to spin and created a tyre spin sound in the background.

Can any one please advise me on how this is possible and what I can do?


Please Help

Kind Regards
Riaz Yussub

Having Problems Creating A Smooth But Fast Effect
Hi

Im trying to create an effect where a line looks as if its being drawn on screen (bit hard to explain check my attached files). Thing is i have done this two ways :

1) Frame by frame work, this looks the best out of the two but is still not entirely as smooth as id like it! The main problem with this is that i end up with 60 or so frames ! originally i had 140 to make it look smooth but ive had to make a comprimise. The problem with this it has to run at about 60 frames a second to look good!! Well thats no good for me as im not intending to run any more that 30 fps.

2) Secondly i tried to use a mask with motion tweened shapes but again this doesnt look quite right!!!


What i really want is a smooth and fast animation, ive seen this done on many other sites such as fixionestudio.com but cant seem to fathom it out myself.

Can Anyone help me or has any better ideas?

Cheers

Displaying A Lot Of Movie Clips, Fast
I've got like a little "particle" effect, but it runs slowly. It's my first time trying something like this, so don't hate me for being dumb. I've drawn a little symbol and attached this class to it: (I'm also new to classes, so if you could critique that too, that'd be great!)


Quote:




package gameplay{

import flash.display.MovieClip;

import gs.TweenLite;
import flash.geom.ColorTransform;
import flash.geom.Transform;

public class ember extends MovieClip{

var hdir:Number;
var vdir:Number;

var hvel:Number;
var vvel:Number;

var sizeTo:Number;
var lifeTime:Number;

var cl:ColorTransform;

public function ember(x1:Number, y1:Number, type:Boolean) {

x = x1;
y = y1;

cl = new ColorTransform(2,0.5, 0, 1);

this.transform.colorTransform = cl;

if (Math.round(Math.random() * 1) == 0) {
hdir = -1;
} else {
hdir = 1;
}

if (type == false) //center one
{
if (Math.round(Math.random() * 1) == 0) {
vdir = -1;
} else {
vdir = 1;
}

} else if (type == true) //ground one
{
vdir = -1;
}

scaleX = scaleY = (Math.random()*0.8);

sizeTo = (Math.random()*0.4)+0.1;
lifeTime = (Math.random()*0.8)+0.1;

hvel = (Math.random()*0.5)+0.1;
vvel = (Math.random()*0.5)+0.1;


TweenLite.to(this, lifeTime*3, {rotationvvel)*355, scaleX: sizeTo, scaleY: sizeTo,y:this.y+(vvel*vdir)*215, x:this.x+(hvel*hdir)*215});

TweenLite.to(cl, lifeTime*4, {alphaMultiplier: 0, greenMultiplier:2, redMultiplier:2, onComplete:die, onUpdate:colorUpdate});


}

function colorUpdate():void {
this.transform.colorTransform = cl;
}

function die():void {
this.parent.removeChild(this);
}
}

}




And then I call to it later


Quote:




for(var i:int = 0; i< 7; i++) {

var emb:ember = new ember(this.x,this.y,false);
addChild(emb);

}




Or whatever... What am I doing wrong? It's very simple code (it's meant to be) The actual symbol itself is very simple... And CONSTRUCTIVE help would be appreciated... I'm still new to as3.

Creating A Fast Loading Slide Show W/ Pictures
Is there any way to increase to load time when you are creating a slide show in flash using actual picture from file. I've tried converting the images to a smaller format but that hasn't helped. The images are all set to fade, spin, and zoom for a good effect w/ music but I may have to scale it down a bit to get it to load better. Any help would be great!

CREATING A BUTTON THAT FAST FOWARDS A SOUND TRACK IN REAL TIME
I want to create a button thats fast fowards a sound track in real time so that your hearing the noise of the fast fowarding. About how many frames can you extend a sound clip becuase I tryed it and it was infinite. I would think that it would have some ending it went past 500 frames.

[CS3] Issues Creating Multiple MC From Multiple Variable Data Arrays.
I have had some great help with this from some very kind FlashKit members. However I have played with the code extensively and am having an issue getting multiple MC's from the global variable arrays "V_1", "V_2" and "V_3".

Right now I have the code set to build up a scalable graph for array V_1. I have not had it working "properly" to show the other values in graphs side by side for V_2 and V_3. I have had some weird Frankenstein looking results that led me to believe I was on the right track, but only to find that I could not figure it out. I have a g_seperator variable that I was hoping to use to determine the space between each column of data.

Can anyone out there help me please?

Thank you.

here is my code reprinted here, since my flavor of Flash may not export to a version compatible with some of your working versions.



Code:
stop();
//BAR ATTRIBUTES
_global.g_x = 240;// chart starting x position
_global.g_seperator = 130;// distance between bars
_global.g_width = 50;// graph segments width
_global.g_base = 450;// graph starting Y position
_global.g_alpha = 40;
//BOX VALUES
_global.v_1 = new Array(20, 40, 1, 10, 12, 10, 20, 15, 5, 21, 31, 50, 20, 10, 20);
_global.v_2 = new Array(60, 70, 1, 10, 42, 10, 50, 15, 30, 21, 31, 10, 20, 10, 20);
_global.v_3 = new Array(20, 70, 1, 10, 12, 10, 20, 25, 10, 31, 31, 10, 20, 10, 20);
_global.color_set = new Array(0x000099, 0x00FF00, 0xddddd, 0xcccccc, 0x990000d, 0xff9900, 0x99eeee, 0x99cccc, 0xf21000, 0xffdddddd, 0x005900, 0xff00ff, 0x0ff000, 0xff9999, 0xf2f321);
_global.pos_name = new Array("Site3", "Site5", "Site7");

var home = this;

draw1NPositions("mc_pos"+[p],pos_name[p],g_seperator);

function draw1NPositions(mc_pos, positionName, gap) {
this.createEmptyMovieClip(mc_pos,1000);
for (i=0; i<v_1.length; ++i) {
makeBox(i,g_x,g_base,g_width,v_1[i],color_set[i]);
}
}
function drawBox(mc, w, h, color) {
mc.beginFill(color);
mc.lineStyle(0,color,100);
mc.moveTo(0,0);
mc.lineTo(0,-h);
mc.lineTo(w,-h);
mc.lineTo(w,0);
mc.lineTo(0,0);
mc.endFill();
}
function makeBox(num, posX, posY, wide, tall, color) {
var myBox = home.createEmptyMovieClip("box_mc"+num, num);
myBox._x = posX;
myBox._y = posY;
myBox.num = num;
myBox.dragging = false;
drawBox(myBox,wide,tall,color);
myBox.onMouseUp = function() {
this.dragging = false;
};
myBox.onMouseDown = function() {
if (this.hitTest(_xmouse, _ymouse) && !this.dragging) {
this.startY = _ymouse;
this.startX = _xmouse;
this.startH = this._height;
this.dragging = true;
}
};
myBox.onEnterFrame = function() {
for (var i = 1; i<v_1.length; i++) {
boxes[i-1].y = home["box_mc"+(i-1)]._y=home["box_mc"+i]._y-home["box_mc"+i]._height;
}
};
myBox.onMouseMove = function() {
if (this.dragging) {
dist = this.startH-(_ymouse-this.startY);
boxes[this.num].h = this._height=(dist>1) ? dist : 1;
_root.boxValue.text = this._height;
}
};
Mouse.addListener(myBox);
}

Multiple Movie Clips On Multiple Layers (Playing Problem)
Hi dears,

I am also new in flash users. I have created some movie clips and want to play in “mcmovie”. All movie clips are on different layers i.e. movie clips are as follows:

1.mccommercial
2.mccorporate
3.mcenvirnomental…etc

I placed these MCs in on layer1 frame1 mccommercial, on layer2 frame2 mccorporate, on layer3 frame3 mcenvironmental and so on.

I want to play all movies’ clips one by one i.e. mccorporate should be played after completing mccommercial and playing last movie clip, it should be start from beginning.

I will appreciate, if somebody could do me a favor in this regards.

Thank you,


Yasin

Multiple Buttons Multiple Movie Clips - PLEASE HELP ME
Hello -

QUICK BACKGROUND: I am working in Flash MX. I have used Flash for over 3 years, however, I am still struggling with Action Scripting. I plan to take some advanced courses this Autumn.

THE PROJECT AND PROBLEM: I am working on a large Flash site for a cosmetic dentist. I have multiple buttons and when you rollover the button, it will play a movie clip. I got this to work okay.

EXCEPT, I want the movie clip to stay in place and then go away when you click on the next button. Currently, I do not really have any Action Scripting involved except for a few STOP actions. The movie clip is attached to the "OVER" state for each button.

I have attached the .fla file for anyone who can take a few moments to review it. I am really at a stand-still and ready to have a nervous breakdown trying to figure this out. I have been up until 3am every night for the last 4 nights researching this and I have come close but still have not figured it out.

Any help is GREATLY APPRECIATED!!

Denise

[MX] Multiple Variables Moving Multiple Clips
G'day

I'm pretty new to ActionScript and I'm looking for a fix with a variable.

I have 5 movie clips which I am trying to activate at different times as I move my mouse around the stage.

I'm using this code . . .

var outside = true;
this.onEnterFrame = function()
{if (this._xmouse>66 && this._xmouse<177 && this._ymouse>0 && this._ymouse<650)
{if (outside)
{profile.gotoAndPlay("over");
trace("inside");
outside = false;}}
else {if (!outside)
{profile.gotoAndPlay("out");
trace("outside");
outside = true;}}}

which will play any one of the clips (in this case one called profile) fine but if I duplicate the code it wont work for more than one clip. I'm sure that I'm missing a basic concept here.

Can anybody offer me a fix for this and explain where I'm going wrong?

Thanks

Rickibird

Multiple Preloaders For Multiple Movie Clips
Designed in Flash 8, the site's timeline is all in Scene 1 and is comprised of an introduction, which contains a short video, and 6 movie clip categories that the user selects to view. Since I want the intro to play as soon as possible, I'd like to limit the first preloader to just the video in the intro and not _root.getBytesTotal. Then, as the viewer watches this short video, the rest of Scene 1 movie clips will keep on loading. After the intro, the viewer will choose which of the 6 categories to view. These categories are identified with buttons which play the particular movie clip. Since I don't know the order of the categories they will select, I thought there should be a separate preloader for each category. Hopefully, after they view a category, the rest of the categories will have loaded and the loading time will be nil. The design for the preloader is comprised of a status bar and a percent loaded. Is there a way to limit the _root.GetBytesTotal to specific frames? I know I could break these categories up into separate SWF files but then I loose the advantage of one loading while another is being viewed.

---Actionscripting Clips To Move?---
G'day flashkit'ers! Can you please help me with the following?

I have a movieclip that I wish to move around on screen when an action takes place (a button pressed). So far I have a nice angle / trajectory calculator (THANKS FLASH JUNKIE!!!), however I just need to move this thang.

I have the precise angle (lets say 279 degrees). What I WANT to happen, is for the thing to move 10 units in that direction.

I dunno how to do this, so what I am doing is this: I divide the screen up from the a certain point into 8 sectors (0-45, 46-90, 91-135 etc). I work out which sector the thing is aiming in (ie what sector the angle is in), and manually move it 2 units left 1 unit up for example, based on the if statement. very messy, very imprecise, also, it sucks when I want to change the move speed!

Any ideas please, on how to move an object (/missile) say 10 units in the direction pulled by the variable missile_angle ?

Loop Through Move Clips
I have a ton of movie clips, named very similar. I want to run an if on all of them, without manually writing an if() for each one. I have 'wall-h-1, wall-h-2, wall-h-3 ... wall-h-22, wall-h-23, wall-h-24'. How can I run an if on all 24 of those without writing 24 if()'s. I want to run the same check on each of the movie clips.

Thanks,

MeestaPlunk

[MX] Having Clips Move To An X,Y Position
Hey guys,

Im trying to find some code that will allow me to have a movieclip move to a certain X,Y position once you click on it.

For instance, the user clicks the box, and then it moves to the top left corner. I need it to move to the corner, not just appear there. And the clip is initially draggable around the stage. so where ever it is, once its clicked it goes to the top left corner.

Another Way To Move Movie Clips
Hi I have my movie clips set up with the following code on the clips themselves.


ActionScript Code:
onClipEvent (enterFrame) {
    _x--
}

This works great but I'm wanting to keep all my scripting on a frame,and not have any on the clips so I tried this.

ActionScript Code:
mymcs = [mc1,mc2,mc3,mc4,mc5]
for (i in mymcs){
    mymcs[i]._x--
}
To no avail.I'm really kinda lost as to how to have all my clips in a function of sort to when the movie goes to the frame they are on.They should move to the left.

Thanks

Removing Move Clips
I have a movie clip by the name of coin. On hit test with char, I want the movie clip, coin to be removed forever. Even if you returned to that frame, i still want the mc coin to be gone. I tried using removeMovieClip(); but it didn't do anything. Help would be appreciated

Move Between Movie Clips
I have designed a lesson as follows:
I have several movie clips embedded into a layer called Content in the main timline. That is, in the Content layer each frame has a movie clip (such as content1, content2,....) which has many frames itself.
In the last frame of the Content1 movie clip, I would like to have a button which driects the learner to the first frame of the Content2 movie clip. How to write ActionScript for this button?

Thanks a lot.

Move Multiple Mcs
Yes..I could just put them in one big mc, but I would rather put them into an array and call a function to move each one. Reason being because my engine's hitTests do not work properly when putting everything into one mc, even though I rerouted my hitTests properly. Can someone tell me where to start on this? I'm looking for something like.. move(_x, _y) which occurs only once every time it is called, not an onEnterFrame inside it.

i will have my mcs load their name into the array once they are loaded.

Creating New Moose.Move Instances From An Array
Last edited by plangent : 2005-02-14 at 11:20.
























So, I've been trying to do it, but it doesn't seem too happy. Here's a sample of how I've been trying to do it:


Code:
for(i = 0; i < myArray.length; i ++) {
myArray = new Array();
myArray.push("arrayItem" + i);
myArray[i] = new moose.Move(Math.noEase);
myArray[i].setTarget(_root, "my_mc");
myArray[i].setDuration(1);
myArray[i].addDeltaProp("_alpha", -100);
myArray[i].async = true;
myScript = new moose.MoveScript();
myScript.addMove(myArray[i]);
}
Any help would be greatly appreciated.

Converting Components To Move Clips
What I'm wondering is if there's a way to convert the component and its action script to a movie clip that retains its function and if so would doing so help streamline the flash movie overall.

For example: I set up a combo box and used to appropriate action script function to have it execute what I want when a selection is made. I would like to convert it to a movie and retain that functionality, but when I converted it, it wouldn't do anything, even though in edit mode the change handler was still set to the same value.

If having it function the same as a movie clip is possible, how do I make it call the function and execute it?

I hope I was clear, thanks for any help you can offer.


ps

by the way, my earlier posts about allowing the user to dynamically affect text size, color, font, etc. has been figured out. Unfortunately the flash movie does not operate as smoothly as I'd like. It slows down with the more text and components you use, which is the reason for this post

Duplicating And Renaming Move Clips
I am developing a game but I have to come to a standstill at one point...


The problem is that I have a duplicated movie clip which is duplicated many times. When one of thes movie clips collides with another I want it to trigger something but seeing it's one clip it is testing to see if it's overlapping a clip of it's own name therefore it's overlapping itself, how do i solve this problem...????

Buttons Placed Over Move Clips With Rollovers
I have a button placed over a movie clip. The movie clip has a rollover action. When I rollover the button it calls the rollOut of the movie clip below it.

I've tried making the button another movie clip with rollover states but it still calls the lower movie clip's rollOut script.

Is there a simple way to disable the lower mc's rollOut when the upper mc is rollover?

Using Loops To Move Movie Clips
It seems like it should be so simple, but i have been trying forever to no avail. I want to create a script that will make a specific instance of a movie clip move in a direction for a set amount of pixels.

I have already made an fxfader clip that i can put inside other clips so I can tell them to fade out or in. Now I want to tell them to move up down left or right while they are fading out but I can't even make a script to make a clip move. : (

If you can help me I would be enternally greatful.

I am on Flash MX 2004 professional


THANK YOU! : )

Problem Making Move Clips
I have the main Scene 1 which is 550x400. I made a BG image in PS and it fits there fine. I then tried to make a movie clip so that I can make an animation then drag it into scene one. The first problem was that when I made the movie clip and dragged the BG into it, the image looked REALLY small and I didn't know what to do. Now I have another problem which is when I make a Movie Clip I cant even see the blank frame. HELP!

[CS3] Move & Scale Movie Clips
Hello All,

I have a project where a series of movie clips play when their button is pressed. Now, upon pressing the button, I'd like to have them enlarge while moving to the center, then play, then go back to original size and position when pressed again.

I just don't know enough about scripting to do this. Is this something I can do without scripting? If not, can someone explain how I can accomplish this?

Thanx in advance.

Link Movie Clips So The Move Together
Hello

I need to drag and drop many movie clips at the same time without putting them in one container movie clip. Is there any way to do that? Linking them together like in Photoshop when you link layers together?

Thanks

Need To Move Movie Clips Containing JPGs Around
Hey,
I have this silly problem I hope you guys might be able to help me with.
I need to load JPGs into empty movie clips that all nest inside "First_MC" using this script:
for (var i = 0; i<_global.image_arr.length; i++)
{
this.createEmptyMovieClip ("holder"+i, i)
loadMovie (_global.image_arr[i], "holder"+i);.
}
I then want to move them one by one from that movie clip into another empty movie clip holder called "Second_MC".
Any way to do it by duplicating the JPGs? anyway to Id the "holder"+i movie clips and somehow move them around my timeline?
Pls answer. it's very important to me and I am really out of ideas.
Greetz,
Algreco

Move 10 Movie Clips With For Loop
I have, lets say 10 movie clips on my stage. If I would like to move them 20 pix to the right I could do something like this:

_root.mcs1._x+=20;
_root.mcs2._x+=20;
_root.mcs3._x+=20;
_root.mcs4._x+=20;
_root.mcs5._x+=20;
_root.mcs6._x+=20;
_root.mcs7._x+=20;
_root.mcs8._x+=20;
_root.mcs9._x+=20;
_root.mcs10._x+=20;

However this does not scale well. I would like to do it with a for loop

For (a=1; a<=10; a++) {
_root.mcs[a]._x+=20;
)

Of course this above example with the array does not work, Can anyone tell me how I should do it?

Animating Dynamic Move Clips.
I have an unknown number of movie clips tat are added dynamically. I can add them fine but i want to add them so they appear off stage at a random x, y pos and then slide in and ease up to another random spot on the screen. So each time the movie is loaded it looks lik someone has thrown a bunch of photos out on a table and they slide and spread to random locations and ease to a stop. Anyone have any clues? i have found a number of tutorials but would like some extra help/explanations.

Cheers.

Transitions Within Move Clips (not External)
Hi Guys,

Does anyone know a tutorial on transistions within a fla?

Not external, just withint the same fla?

Any Tuts?

thanks

Dynamically Reference Move Clips
Say i have a system that names my moveclips, mc_1 mc_2 mc_3.

How can i dynamically reference themdetect if they are there or not

Help is much appreciated

Fast Forward And Rewind Buttons To Control Movie Clips AND Main Movie
I am creating a software training movie in Flash (MX). The main movie has text, sound and animations directly on the main timeline, and also includes external swfs (video screen captures) that are loaded dynamically into a movieclip target.  

loadMovie("bkr_openpgm.swf", "mc_finvideo");

I'm not importing these videos because they can be quite large after importing (my video capturing software can export as swf and avi). I will never play more than one movieclip at a time (so I use the same movieclip to load all movies: mc_finvideo), and there can be many frames in between movie clips where there's only non-movieclip stuff going on on the main timeline.  After I finish playing a movie clip , I unload the movie from the movieclip using the following on the frame on the main timeline where the movieclip should end

mc_finvideo.unloadMovie()

I have play, pause, fast forward and rewind buttons on the main timeline that control the main movie just fine. The play and pause buttons also control the movieclip fine.

However, I'm having problems with the rewind and fast forward controlling the movieclip. The button logic works fine (moves play ahead or back 100 frames) UNLESS I click the rewind button at a point within 100 frames AFTER a movie clip has unloaded. Then (assuming the last movie clip was at least 100 frames long), the movie goes back to a frame where there should be a movie loaded, but of course there isn't, since the frame that loaded the movie clip wasn't hit.
Here's the code for the rewind button's on release event:

    intCurrFrame = math.round(_currentframe);
    intMCCurrFrame = math.round(mc_finvideo._currentframe);

    //if the movieclip is closer than 100 frames
    //  to the beginning, go back 100 frames
    //  otherwise unload it
    if ((mc_finvideo._currentframe - 100) > mc_finvideo._totalframes) {
            mc_finvideo.gotoAndPlay(intMCCurrFrame - 100);
    } else {
            mc_finvideo.unloadmovie();     
     }
    this.gotoAndPlay((intCurrFrame - 100));


The fast forward button is similarly problematic -- if I click fast forward within 100 frames of a frame where a movie clip will load, the frame that the movie fast forwards to has no movie clip playing because the frame that loads the clip was skipped over.

Can anyone help me make this work? (Maybe I'm going about this whole thing the hard way?)
I can post a sample fla if it will help clarify.

Thanks

Copyright © 2005-08 www.BigResource.com, All rights reserved