Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-04-2006, 11:52 AM
Junior Member
 
Join Date: Aug 2006
Posts: 1
Default chooseFont not declared in Dialogs.as

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.
Reply With Quote
  #2 (permalink)  
Old 08-07-2006, 02:50 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,000
Default Re:chooseFont not declared in Dialogs.as

Thank you very much, we will fix it.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 08:15 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.