Skip to main content
Participant
February 1, 2008
Question

RollOver in Flash with Actionscript 3.0

  • February 1, 2008
  • 4 replies
  • 654 views
Ok... I have a map in Flash and each individual country is it's own movie. When I rollOver the country I expect the name of the country to display near the bottom of the map. It works in AS 2.0 but not in AS 3.0. I have been pulling my hair out, and since I don't have any, my scalp is really hurting.


Any help someone can give me would be greatly appreciated.
This topic has been closed for replies.

4 replies

Participant
February 4, 2008
Twinbird24... Thanks for this... I am going to try it today and I'll let you know how it works out.

Thanks again
February 1, 2008
oops, posted twice, whateverrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrr
Participant
February 4, 2008
Ok... I put that code in my flash project and verified that there are no errors in the code itself. However, when I try to test the movie I get the following error:

Warning: Action on button or MovieClip instances are not supported in Action Script 3.0. All scripts on object instances will be ignored.

Thus, when I do a mouse over on that particular country on the map, nothing happens.

Any ideas?

Thanks again
February 1, 2008
You're probable used to AS 2. In AS 3 you cannot attach code directly to objects, you can only attach code to the time line. Look at the code to see what you need to do. AS 3 is a little more complicated but gives you a lot more control and flexibility.
February 1, 2008
You're probable used to AS 2. In AS 3 you cannot attach code directly to objects, you can only attach code to the time line. Look at the code to see what you need to do. AS 3 is a little more complicated but gives you a lot more control and flexibility.
Participant
February 4, 2008
Ok... you said that I can only attach code to the timeline and not to objects... where exactly in the timeline do I attach the code? I am a little confused with the differences in AS 2.0 and AS 3.0...

Thanks again