New section FLASHINIONS!

Well Everybody! I was messing around one day and i asked kirupa what he could do to make his site more scarier. Well he told me, Hey why dont we make you an opinions section. So thats what he did! hehe Well i Just wanted to let everybody know that i’ll be writting some articals that should be kinda funny and make some kind of nonsense , uhh i mean sense.

Check it out!
either click on the flashinions link at the top or,
go here…
http://www.kirupa.com/flashinions/index.htm

I hope you guys enjoy reading it as much as i did writting it. Im gonna write fairly regularly, and i hope to give the gift of humor .

I’d like to thanks Kirupa.com for making this possible, cause hes such a great guy, isnt he folks?

Enjoy =)

go K-Dog!!! w00t!! …going to check it out now…

Peace

thanks r-dawgs =) I can’t wait to see the section overflowing with stuff that floats around ray’s mind!

Cheers!
Kirupa :rambo:

I read it, and really like what youve put up there Raydred… well put! Kirupa… thanks for adding this section, I can really see some potential here - I think I am going to enjoy it (hopefully others too :stuck_out_tongue: )!!

Peace

woo hoo! =) thanks =)

Im hoping others will like it as well =)

Thanks alot for the support :wink:

Ray:

lookin’ good man…

still waiting for the Page 3 girls…

Rev

no prob…

and this support is conditional - you had better keep writting :stuck_out_tongue: :wink:

j/k

Peace

Awesome!!!

But hey Kirupa… the top part of the index page is a link to the photo gallery tutorial. The opinions part that states what the section is.

And great points Raydred, I completely agree with them all :slight_smile:

Hey lost,
I tend to make that mistake all the time, don’t I? =) I fixed it; it should work well now.

Cheers!
Kirupa :rambo:

Lucky us K-man give it a go.:slight_smile:

Really liked the article, can´t wait to see the next!

Go go go!

=)

yeah, same here =) HURRY UP RAY j/k!

Cheers!
Kirupa :beard:

*Originally posted by kirupa *
**Hey lost,
I tend to make that mistake all the time, don’t I? =) I fixed it; it should work well now.

Cheers!
Kirupa :rambo: **

LOL… actually you do… :slight_smile: :stuck_out_tongue: :beam:

Maybe you should correct it on the main template you use to set that up :slight_smile:

Oh yeah, and the snow effect on the main page of your site works great now, no lagging on my side. Did you rescript it?

It also might of been because my comp was riddled with 3 viruses that I had to manually remove… without knowing how…lol. Took me about 5 hours to do it, but my comp is virus free now and running so much better than it was before :slight_smile:

Hey lost,
That’s good. I’m glad the main animation works. I couldn’t find a better way to re-script. Considering “I” don’t know much about AS, it’s probably bad anyway hehe.

Cheers!
Kirupa <:}

LOL, you crack me up Kirupa :slight_smile:

“You” don’t know much about AS…lol. If you say so :crazy:

After my exams are over (this Thursday!!), I’ll write a tutorial on how to create that effect. I guess duplicating the same movie clip with the same action over 50 times causes the animation to lag on comps.

Cheers!
Kirupa :q:

I eagerly await that tutorial Kirupa.

How are you duplicating the movie clips? For loops or duplicateMovieClip??? Just curious :beam:

Hey lost,
It’s a do loop in the first frame of the movie with a duplicate movie clip action within it. The gist of the code is:

Frame 1:


k = 0;
do {
	duplicateMovieClip(_root.snow, "snow"+k, k);
	k++;
} while (k != 50);

In movie clip called snow:


onClipEvent (load) {
	scale = 50 + Math.random() * 100;
	alpha = 75 + Math.random() * 100;
	
	this._xscale = scale;
	this._yscale = scale;
	this._alpha= alpha;
	
	xpos = this._x;
	this._x = -10+Math.random()*550;
	i = 1+Math.random()*2;
	this._y = -10+Math.random()*120;
	k = -Math.PI+Math.random()*Math.PI;
}
onClipEvent (enterFrame) {
	// horizontal movement
	rad += (k/180)*Math.PI;
	xmovement = _root._xmouse;
	this._x -= Math.cos(rad);
	// vertical movement
	this._y += i;
	if (this._y>=150) {
		this._y = -5;
	}
	if ((this._x>=550) || (this._x<=0)) {
		this._x = -10+Math.random()*550;
	}
}

Now, my job is to expand this into a long drawn-out tutorial that explains why I did the crazy things that I did =)

Cheers!
Kirupa :goatee:

SWEET!!!

Thanks for the code Kirupa, I will mess with it in a few :slight_smile:

Ok, first thing I notice is this…

k = 0;
do {
    duplicateMovieClip(_root.snow, "snow"+k, k);
    k++;
} while (k != 50);

Can be changed to this…

for (k=0; k<50; k++) {
	duplicateMovieClip(_root.snow, "snow"+k, k);
}

These minor changes too…

onClipEvent (load) {
	<B>movieHeight = 200;
	movieWidth = 300;</B>
	scale = 50+Math.random()*100;
	alpha = 75+Math.random()*100;
	xpos = this._x;
	i = 1+Math.random()*2;
	k = -Math.PI+Math.random()*Math.PI;
	<B>this._xscale = this._yscale=scale;</B>
	this._alpha = alpha;
	this._x = -10+Math.random()*<B>movieWidth</B>;
	this._y = -10+Math.random()*<B>movieHeight</B>;
}
onClipEvent (enterFrame) {
	// horizontal movement
	rad += (k/180)*Math.PI;
	xmovement = _root._xmouse;
	this._x -= Math.cos(rad);
	// vertical movement
	this._y += i;
	if (this._y>=<B>movieHeight</B>) {
		this._y = -5;
	}
	if ((this._x>=<B>movieWidth</B>) || (this._x<=0)) {
		this._x = -10+Math.random()*<B>movieWidth</B>;
	}
}

I added the movieWidth and movieHeight variables so the code will be easier to edit depending on the size of the stage.

I also combined the _xscale = scale and _yscale = scale into one line… well, because you can…lol.

I don’t see anything else yet, but this is fun… great script Kirupa :slight_smile: