This content has been marked as final. Show 6 replies
I've created a sample that you can scrutinize as far as what's been done to have images swapping for button rollovers. You can download it here:
It's great that you want to learn this stuff yourself... that's what I did/do. There's years of learning ahead of you, have fun with it--I know I'm not done yet... just started learning AS3.0 recently.
The best place to start in my case was to dive in and try to design something, which is what you have done so far. I can't say it's the best place to start, but it can't hurt (Myself, I hate reading... doing is more fun).
I wish I could recommend a good book, but the only one I ever bought (recently) was Essential Actionscript 3.0 and my first attempt to make use of it resulted in me deeming it to be a good doorstopper or paperweight. There was a posting yesterday in the Actionscript 3 forum, titled "New to action script", where some people recommended what they consider to be good beginning books, so maybe you'll find it without much problem (today... avoid the Monday rush of new postings).
I can't thank you enough for the file! It is the easiest way to learn (by doing). I'll dig in and see what I can do.
There are other ways to do it using code, but for now you'll get a flavoring of dealing with code and the timeline... both can be key elements in creating neat stuff.
Hi, I'm trying to do a similar thing but can't get it to work. I looked at the Flash file, but I don't understand where the other pictures are in the file. I'm quite new to Flash. I tried it a different way using instructions for a rollover in a book. It "sort of" works, but the pictures don't stay and when I roll over the blank area, the pictures appear again. You can see it here: http://www.cghillcommunications.com/newsite/portfoliotest.html
Is a regular rollover insufficient to do what I want? or does it require the ActionScript you had in your file? Where do I put the pictures? Mine will be different shapes and sizes.
Thanks so much.
There are probably a couple of things you need to change. It appears the buttons themselves have a rollout command to hide the images, so if you want them to stay, you need to get rid of it. You may need to create a hideAll type of function for the rollover event function that operates ahead of displaying the image associated with the button--depends on how the piece is designed.
As far as hovering over the areas where the images appear, start with getting rid of anything to do with rollover/rollout for whatever is living there.
Since you are trying to do something similar, it will help if you describe what isn't similar about what you want to achieve compared to the sample file I offered already.
I want it to function just like yours, but I'm having a hard time recreating the functionality in my file. Do the images have to be in a movie clip? I'll probably have 20 of them added at different times. In your file all of the images are the same size, so they cover each other -- what if the images are different sizes?