• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 30. Accordion Panel > Reacting to Changing Movies

Reacting to Changing Movies

Sometimes you'll want to know when the user checks out a different movie in your accordion. If so, use something like this:

// know when the accordion changes
var formListener:Object = new Object();
formListener.change = function(evtObj)
{
      trace("now showing: " + form_ac.selectedChild);
}
form_ac.addEventListener("change", formListener);


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint