ActionScript-HELP
- Started
- Last post
- 9 Responses
- johnjoe
Please could someone help? It has been a while since I've used Flash and I'm stuck.
It only something simple
I would like to make some thumb nail images fade to the next image on a rollover. Here is what I have so far..
_root.main.theButton.onRollOver = function () {
_root.main.play();
}here is the FLA
http://mylifeinart.com/ThumbNail…Big thanks in advance
- quoo0
um.. can't be bothered to open your fla, but it should be fairly simple.
on(rollover){
currentPicture._alpha--;
if(currentPicture._alpha
- stewart0
type your actionscript here dudes
http://pastebin.coconut.se/
- fusionpixel0
you have the right idea, but the wrong aproach.
Just for the sake of fixing your problem use the code below:
--
_root.main.theButton.onRollOver = function () {
main.nextFrame();
main.play();
}----
- quoo0
hrm, do i need to put it in code tags? nt ate half my code:(
- fusionpixel0
?
just copy the code
_root.main.theButton.onRollOver = function () {
main.nextFrame();
main.play();
}over the code you have right now.
BTW, who are you??
LOL quoo or the other guy?
- quoo0
umm. it's not my question. but when I tried to answer it, my code got all screwed up.
do I need code tags?
- fusionpixel0
weird, no you dont need code tags.
- quoo0
oh well, maybe it was just a fluke.
anyway, i was going to suggest you do the alpha tween using actionscript rather than the timeline.
- fusionpixel0
yeah, you can do that but it seems like he was only fading 2 images.
So in reallity he could have built a class that extends the MC and do all the coding. but sometimes its good just to KISS and be done with it.
:)