Reputation: 25567
So I a few badges (MovieClips)!
The main idea is to generate a collection of badges with random numbers associated to them.
This is what I did up to now:
I created two different MovieClip badges, and exported them for ActionScript as Badge and BadgeHover
Within the BadgeHover the label has been transformed into a class with instance name "score".
How do I access this label and change the displayed score?
Do I need to remove and add a new label every time?
What is the best way to add "hover effects"?
What I have is kind of inefficient, I am destroying and recreating the BadgeHover whenever the mouse hovers the Badge class.
Help would be very much appreciated! Thanks. :)
Upvotes: 0
Views: 248
Reputation: 132098
Try this file out. Let me know if you have any questions.
http://shaneberry.net/Badges.zip
Upvotes: 1