|
|||
|
Hi,
I've been trying to compile this code: var ft_init = new FontObject; ft_init.name = "System"; ft_init.size = 12; ft_init.color = 0xFF0000; var ft = Dialogs.chooseFont(ft_init); trace(ft.name); trace(ft.size); trace(ft.color); after adding swf kit 3.0 classes to the path, and trying to publish the swf in flash, flash generates an error saying that there is no method with the name of chooseFont, I've checked Dialogs.as in the swfkit/classes folder and indeed this method is not declared there! Here's the content of Dialogs.as: import SWFKit.BaseObj; import flash.external.*; class SWFKit.Dialogs extends SWFKit.BaseObj { public function Dialogs() { super("Dialogs"); } public static function msgBox() { return ExternalInterface.call("ffish_call2", "Dialogs", "msgBox", arguments); } public static function fileOpen() { return ExternalInterface.call("ffish_call2", "Dialogs", "fileOpen", arguments); } public static function fileSave() { return ExternalInterface.call("ffish_call2", "Dialogs", "fileSave", arguments); } public static function chooseColor(color: Number) { return ExternalInterface.call("ffish_call", "Dialogs", "chooseColor", color); } public static function browse() { return ExternalInterface.call("ffish_call2", "Dialogs", "browse", arguments); } } I am sure it is easy to fix, just add few lines to the Dialogs.as file...If you can post them here, users will be able to fix manually this bug. |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|