compile(); $rect = new Rect(); $rect->compile(); $but = new Button(); $but->compile(); $movie->addObject($obj); $movie->addObject($but); $movie->addObject($rect); $movie->compile(); $movie->save("a.swf"); ?>