Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Bug Report

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 08-06-2009, 06:46 PM
Junior Member
 
Join Date: Aug 2009
Posts: 1
Default AS3 And SWFKit

I can use SWFKit package with AS2 well but i have some errors with AS3.

My code is :
Code:
import SWFKit.*;
stop();
this.btt.addEventListener(MouseEvent.CLICK,btt_click);
function btt_click(ev:MouseEvent):void {
	Dialogs.msgBox("Hello"); 

}
And error
Code:
1061: Call to a possibly undefined method msgBox through a reference with static type Class.
Help me
Reply With Quote
  #2 (permalink)  
Old 08-07-2009, 06:47 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default

In as3, most of swfkit methods become dynamic, so you'll have to use

Code:
var dlg = new Dialogs;
dlg.msgBox('Hello');
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 02:35 AM.


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