Dynamic Creation of Classes
The idea is where you could select which class you initiate by passing a variable using PHP and Flash's External Interface. When you navigate to a URL it will find and execute the desired AS3 class. In your main SWF you get the variable from Flash's External Interface using its's loaderInfo parameters. I'm not 100% sure on this method of implementation, Since you cannot fully cast the variables you are going to have some overhead there. But here is quick explanation and an example use:
Main.as
RenderTask.as
Another method to consider is...
GetDefinitionByNameExample.as
Applying clean URLs: http://foo.com/com/sample/taskone
The generalized structure: http://domain/package/class