Register | Login
Views: 19364387
Main | Memberlist | Active users | ACS | Commons | Calendar | Online users
Ranks | FAQ | Color Chart | Photo album | IRC Chat
11-02-05 12:59 PM
0 user currently in Programming. | 3 guests
Acmlm's Board - I2 Archive - Programming - Flash :S
  
User name:
Password:
Reply:
 

UserPost
Malow
Posts: 10/25
Hey thanks, I'll try that

EDIT: I'm strating to understand how flash works! But still couldn't figure how to do that But I'm almost there...
Drag
Posts: 153/254
I suggest using actionscript. I'm sorry as I am unable to help very much because my trial copy of Flash MX is expired.

Hmm...

An EASY way to do it, since it's just six images (and not like 20 or so. ) is to just have six variables, for the six images.

Next, in your action script, add a on event.enterframe (or something like that, I can't check, sorry) routine (since it will call the code repeatedly at the frame rate), and check for if each variable is 1 or 0.

Something like this:
if (variablepic1 == 0) {
pic1.opacity--
} else {
pic1.opacity++
}

And repeat for the remaining 5 variables. I don't know if the values will wrap around, or if they'll reset to 100 if it's above 100, or 0 if below 0, but if it does, you can probably figure out a way to fix it.

If you need the fade to go faster, you can do two things. Either increase the framerate, or change the pic1.opacity-- to something like pic1.opacity = pic1.opacity - 4 or something.

I hope this helps.
Malow
Posts: 9/25
Thx, but I couldn't find anything.

Btw, I just made the same thing, but with javascript, so you can have a better idea of what I want... but in Flash, lol

http://acmlm.overclocked.org/Malow/Job%20Web/img/fadetest.htm
Wyv
Posts: 44/87
I wish I could help further, but all I can really do is suggest you look around at Flashkit.com. Sorry.
Malow
Posts: 8/25
Well, I have to make a short flash movie for a job, but I NEVER did flash before, and I'm really wondering how to make it...

I have six maps, and six buttons. The six maps are the same, but at different years (evolution of a territory). My six buttons are for the six years.

When I click on a button, I want the actual map displayed to fade out, and then the desired map fade in (the one matching with the button I clicked). So if you understand well, it makes a fun transition between the 2 images.

It's really easy to do with 2 images, but with 6? And I'm still not familiar with the layers system, and I did not have any tutorial on Flash, so I don't know if there is an easy way to do it, or if I should, for example, make 36 layers (for the 36 images transitions) and then when you click on a button, look at which image is currently shown and depending of that, play the right layers. Or Maybe I should put the 36 possibilities on the same layer? Bahh I don't know!

So if anyone has some good knowledge with flash, I really could use some help. If you need more informations, just ask.

Thanks
Acmlm's Board - I2 Archive - Programming - Flash :S


ABII


AcmlmBoard vl.ol (11-01-05)
© 2000-2005 Acmlm, Emuz, et al



Page rendered in 0.009 seconds.