private function load_game():void {
menu.selectedIndex = 1;
game_swf_obj = new SWFLoader();
game_swf_obj.id = "game_swf";
game_swf_obj.addEventListener(FlexEvent.APPLICATION_COMPLETE, swf_loaded);
game_swf_obj.source = config.server.gamepath;
// This should go at the end but that doesnt seem to be happening
game_tab.addChild(game_swf_obj);
}
private function swf_loaded(event:Event):void {
game_swf_app = Application(event.target.application);
}
// VB specific
private function am_ready():void {
//game_swf.content.player0_score.text = "White: Ready";
//game_swf_app["player0_score"].text = "White: Ready";
frame(game_swf_app).test();
socket.send('am_ready');
}
Severity and Description Path Resource Location Creation Time Id
1061: Call to a possibly undefined method test through a reference with static type frame. volleyball/src frame.as line 353 1207274864375 1752