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

Chapter 7. Using Components > Creating Components in ActionScript

Creating Components in ActionScript

All components can be added to your Flash movie via ActionScript. Let's start with a simple check box. Add this code to the first frame's actions:

attachMovie("FCheckBoxSymbol", "checkBox1", _root); 
checkBox1.setValue(false);
checkBox1.setLabel("myCheckbox");


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


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