Check out the liveocs page for actionscript projects . Namely:
About ActionScript Projects
Flex Builder allows you to create ActionScript projects that use the Flash API (rather than the Flex framework) . This uses the Workbench Flex Builder tools and the ActionScript editor, which means you have a fully featured development environment for developing ActionScript applications.
Therefore, you cannot use Flex components in an ActionScript project. I am surprised that you even managed to put together this class. If you use a different method, specify it in the question.
If you use Flex 3 and addChild , I assume that you are using ActionScript 3. In this case, you are importing instructions that point to the wrong packages. Button , TileList , Slider and ProgressBar are in the fl.controls package .
In addition, ActionScript recommendations recommend naming properties and methods that begin with a lowercase character.
Oh last one. I do not recommend importing the entire display package, because in fact there is a whole group of classes.
Marco luglio
source share