Lil help please

i want to make let say 5 movie clips that follow one another what script should i write and lil brief of explanation please

you’re going to have to be a little more specific. There are many kinds of “following”

like when the first clip move the the second clip follow too and the third follow the second one the fourth one follow the third one
and so on…

You mean something like this?

http://www.kirupaforum.com/showthread.php?s=&threadid=10372&highlight=tutorials

if yes, I’ll post the code.

here are some with source

http://www.umbc.edu/interactive/fla/constantFollow.swf
http://www.umbc.edu/interactive/fla/constantFollow.fla
^ you can make indiidual mcs follow other mcs instead of the mouse

http://www.umbc.edu/interactive/fla/flowingtext.swf
http://www.umbc.edu/interactive/fla/flowingtext.fla
^similar to Jubba’s example

http://www.umbc.edu/interactive/fla/followall.swf
http://www.umbc.edu/interactive/fla/followall.fla
^has a few different types of ‘following’ I didnt clean it up or refine it to be easily usable for others yet though.

http://www.umbc.edu/interactive/fla/homing.swf
http://www.umbc.edu/interactive/fla/homing.fla
^another type of following like the first one, though this one can ‘orbit’ (not a direct follow - more springy)

just want to say thank you to all

can you explain me this codes details by details so it would be clear for me i dont want to just apply it i want to know and understand it too


//variables
var nSpace = 7;
var xStart = _root._xmouse;
var yStart = _root._ymouse;
var nText = "Kirupa.com";
var nFriction = 3;
//creates the trailer
for (ii = 0; ii < length (nText); ii++) {
	//attach Movies from Library
	attachMovie ('mcLetter', 'copy' + ii, 100 - ii);
	ext = _root['copy' + ii];
	//Use substr to call the text from the string
	ext.mcText = nText.substr (ii, 1);
}
_root.onEnterFrame = function () {
	//For Loop to move the balls
	for (ii = 0; ii < length (nText); ii++) {
		//Defines ext and prt. Makes Code easier to write.
		ext = _root['copy' + ii];
		prt = _root['copy' + (ii - 1)];
		nDist = Math.abs (prt._y - ext._y);
		//checks the extetion _root.copy(ii) 
		//then tells them what to do.
		if (ii == 0) {
			//to do Alpha with the first you must target it specifically
			//because it does not have a cooresponding PRT MC
			ext._alpha = 1000 / (Math.abs (_root._ymouse - ext._y) + 1);
			ext._x += (_root._xmouse - ext._x) / nFriction + nSpace;
			ext._y += (_root._ymouse - ext._y) / nFriction;
		} else {
			ext._x += (prt._x - ext._x) / nFriction + nSpace;
			ext._y += (prt._y - ext._y) / nFriction;
			ext._alpha = 1000 / (nDist + 1);
		}
	}
};
//creates the trailer
for (ii = 0; ii < length (nText); ii++) {
    //attach Movies from Library
    attachMovie ('mcLetter', 'copy' + ii, 100 - ii);
    ext = _root['copy' + ii];
    //Use substr to call the text from the string
    ext.mcText = nText.substr (ii, 1);
}

This creates the movieclips. It attaches the movieclips to the stage and gives the textbox that is contained within the movieclip a letter. Click Here for more on using substr


//For Loop to move the balls
    for (ii = 0; ii < length (nText); ii++) {
        //Defines ext and prt. Makes Code easier to write.
        ext = _root['copy' + ii];
        prt = _root['copy' + (ii - 1)];
        nDist = Math.abs (prt._y - ext._y);
        //checks the extetion _root.copy(ii) 
        //then tells them what to do.
        if (ii == 0) {
            //to do Alpha with the first you must target it specifically
            //because it does not have a cooresponding PRT MC
            ext._alpha = 1000 / (Math.abs (_root._ymouse - ext._y) + 1);
            ext._x += (_root._xmouse - ext._x) / nFriction + nSpace;
            ext._y += (_root._ymouse - ext._y) / nFriction;
        } else {
            ext._x += (prt._x - ext._x) / nFriction + nSpace;
            ext._y += (prt._y - ext._y) / nFriction;
            ext._alpha = 1000 / (nDist + 1);
        }
    }

This code moves the balls based on the position of the ball in front of it. There isn’t much more to the code. Adding-subtracting-dividing…

just want to say thank you again hey the link that u give me the txt animation with action script do you know other tutorials like the link above you gave me but different effect

You can edit the movieclip in that tutorial to get a different effect.

hey the educate link in your site is not werking yet??
hey jubba check my personal site and tell me what you think
what do you think should i change
i got a client i m werking on

mysite:http://www.bongbox.com
client:http://www32.brinkster.com/ioface

im only using flash for 6 months dont know AS that well, first i didnt concentrate on it but now i am
and its all self study i bought lot of books about it just dont have time to read them yet i will have course on it soon…just cant wait
i decided to go through it rite away thanks for your help dude

yeah some of the links don’t work. I’m in the process of updating that site. this is the new version:

http://www.livetoskateboard.com/NoFlash

as far as charging for your clients site, it really depends on how much work went into it. It seems to be mostly simple Flash with no backend scripting. Updating would have to be done by you so you can’t really charge too much initially if you are going to be doing the update work in the future. I try to make my sites completely upgradeable by the client and that way I can charge more upfront. It looks good tho. I would charge low for that, around 100-150 at most…very most…

100 like 100$???150 like 150$
hey what do you suggest should i learn asp or php?
are you making tutorials on your site?

that site is not mine. It is a client side that i made for free as a favor to a friend. I basically use his server to host all of my images and such and to test out my scripts.

If you are going to be working with brinkster you want to learn asp because they don’t support PHP, but if you have a host that supports PHP then i would go with PHP. Its simple, easy to learn the basics.

Tutorials: I make tutorials for kirupa.com. If I ever do buy the domain that I want and I have the site that I want then I will probably host the same tutorials on my server as well.

why are you shocked about the numbers? too high or too low? do you think that is a lot? its not that much. the site I am currently making I am charging very low for what I am doing. I’m only charging 250 for a completely customizeable site that uses databases and the like to store all of the information… I would normally charge about 500 for something like this but even that is really low. The client is a friend of mine and he has been good to me…

no i aint surprise just want to know how web designer get paid
really dont care just want to learn and improve