(pls. download the file first)
i wanted to put the matrix effect exactly in the center box, i have tried to modify the command but i can’t seem to figure it out so pls. somebody help me.
(pls. download the file first)
i wanted to put the matrix effect exactly in the center box, i have tried to modify the command but i can’t seem to figure it out so pls. somebody help me.
in your code, define where you want _x to be inbetween. After the line that start this._y=blah, put this:
[AS]
this._x = 210+Math.random()*480;
[/AS]
This will put all your movieClips inbetween 210 and 690. (690 because it’s the sum of 210 and 480.
Hope that helps.
it is now center in width, but it is starting to fall on the i logo, i want it to start falling off inside the box.
anybody?
Use a mask. If you put a mask over the layer with the movieClips. If you want to use the actions scripts, you are going to have to figure out where the highest your movieClip can be and the lowest on the _y scale and then change the numbers in this line:
[AS]
this._y=-10+Math.random()*300
[/AS]
The first number is the lowest _y can be and the highest value _y can be is the first number added to the second. For example if you want Flash to find a number between 20 and 80, this is the code:
[AS]
this._y=20+Math.random()*60
[/AS]
Hope that helps.
i’ve tried that but it didn’t work, maybe its because of the
this._y += i ;
if (this._y>=410) {
this._y = -5;
}
at the end of the command? i just pressumed coz i really dunno much about about as :), are there any other ways freddy? i
Well, you can’t use a mask because of the levels. The snowflake script makes thirty movieClips and when it reaches the bottom, it starts the same clip over again at the top. That what the last part of the code does.
How about this one, because your clip has a large height, I would make that part load into the frame seperately, like what they do here:
http://www.kirupa.com/developer/mx/full_site.htm
Among my other million projects, I have been trying to make an effect that looks just like the matrix thing - It’s tuff.
Good luck!
(-:
:: Copyright KIRUPA 2024 //--