PDA

View Full Version : How do I access the playButton?


that1guy
11-17-2009, 08:04 PM
I created a library item in the flash IDE. It's class name is StartScreen. In the flash IDE, I added a child which is a SimpleButton which I gave the instance name "playButton". I have an .as file called StartScreen.as. The code in StartScreen needs to reference playButton. I need to compile my final swf with flex.

Question: How do I access the playButton?

This seems like it should be simple: library item linked to class -> access child of library item in class. If I'm going about this totally wrong, how do I go about it totally right? What do I have to do?

JeTSpice
11-19-2009, 03:13 AM
i know little about Flash, but problems involving Flex libraries are usually solved by checking the build path.

see if this works: right-click your Flex Library project and select properties and then Build Path. You'll see several tabs. select the first one and make sure the component in question is checked to be compiled into the library swc.