PDA

View Full Version : MovieClip _alpha



webEuphoria
October 22nd, 2002, 10:15 PM
for (i=1; i<=parseInt(_level0.count); i++) {
mc=createEmptyMovieClip("puppyholder"+i, i);
mc._x=i*100;
mc._y=200;
this.onRollOver=function(){
this._alpha=20;
}
loadMovie("puppy"+i+".jpg", mc);
}


Can anyone figure out why this makes all the created movieClips have an _alpha = to 20, instead of just the one I RollOver?

lostinbeta
October 22nd, 2002, 10:22 PM
Change "this" to "mc"

Does that change anything?

webEuphoria
October 22nd, 2002, 10:28 PM
nope, that makes nothing happen.

lostinbeta
October 22nd, 2002, 10:30 PM
Ok, try replacing it with....

_root[puppyholder"+i].onRollOver=function(){
_root[puppyholder"+i]._alpha=20;
}

Or something along those lines.

webEuphoria
October 22nd, 2002, 10:41 PM
that also makes it not work at all...

lostinbeta
October 22nd, 2002, 10:43 PM
Alright... give me a few I will see what I can do.

I can't work on it for long as I am currently working on something else.

Can you post your .fla?

And any other files needed (if any).

webEuphoria
October 22nd, 2002, 10:58 PM
it is larger than 102400 bytes, can I send it to you by other means?

lostinbeta
October 22nd, 2002, 10:59 PM
Can you upload it to a server in a .zip file?

webEuphoria
October 22nd, 2002, 11:07 PM
you would need picture files and a text file too. Maybe I'll catch you when you have more time. Thank you for trying.

lostinbeta
October 22nd, 2002, 11:09 PM
You could put that all into a .zip file. That is... if you are on a windows OS and have winZip (or some other zip program).

webEuphoria
October 22nd, 2002, 11:10 PM
then where do I post it?

lostinbeta
October 22nd, 2002, 11:13 PM
Do you have your own website server you could upload to?

webEuphoria
October 22nd, 2002, 11:22 PM
go to geocities.com and log in as me:


download theGoods.zip

[Username and PW removed by lostinbeta]

lostinbeta
October 22nd, 2002, 11:24 PM
Ok, I downloaded the file... I didn't need to log in as you though, I just went to the URL and got it.

So I removed the info so no one else could get it.

lostinbeta
October 22nd, 2002, 11:26 PM
Ok... so now I have to ask...

Where is the code located at in the movie?

webEuphoria
October 22nd, 2002, 11:27 PM
in the "slider" MovieClip...

webEuphoria
October 22nd, 2002, 11:29 PM
in the "puppies" folder...sorry

lostinbeta
October 22nd, 2002, 11:29 PM
Ah yes... I see it now... ok, I will work on this now.

webEuphoria
October 22nd, 2002, 11:35 PM
I'm trying to create a horizontal slider just like the one on the bottom of this page:

http://www.dvarchive.com/


the only difference being that when the user clicks on an image in the slider it will display that same image larger above the slider.

I will pay you if you finish for me or help me finish...

thanks for your help so far too

lostinbeta
October 22nd, 2002, 11:53 PM
One project at a time please (although I don't know if I will be able to do this one).

You can click the contact link in my profile on the button under my post and send me an e-mail. I will get back to you on that menu thing.

That is almost like my Flash Footer (see signature part of post), so I think I can do that :)

lostinbeta
October 23rd, 2002, 12:18 AM
Alright... so far no luck, but there is one thing I can tell you right off the bat.

If all your images are going to be the same, you don't need 3 of the same images.... just make your code look like this...


for (i=1; i<=parseInt(_level0.count); i++) {
mc = createEmptyMovieClip("puppyholder"+i, i);
mc._x = i*100;
mc._y = 180;
loadMovie("puppy1.jpg", mc);
}

But I am assuming you are going to actually have 3 different pics in the end...so I will leave it the way you gave it to me.