Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-21-2008, 07:57 PM
Junior Member
 
Join Date: Oct 2008
Posts: 9
Default SWFkit events in AS3

Hello =)
I have a small question. I use the swfkit AS3 classes, and i'm wondering how i can create the event handlers.
example :
//before in FFish Script
Application.dragdrop.onDropFiles = function (files)
{
trace(files);
}

//now in AS3 classes

import SWFKit.*;
import SWFKit.application.*;

var d = new dragdrop();
d.enable = true;
d.addEventListener("onDropFiles","test") // don't seams to work

Do someone know how can we use de addEventListener fonction with swfkit events ??
Thank you very much
Reply With Quote
  #2 (permalink)  
Old 10-21-2008, 08:11 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: SWFkit events in AS3

You must use the "setEventHandler" method instead, which is defined in the "BaseObj" class.
Reply With Quote
  #3 (permalink)  
Old 10-22-2008, 06:47 AM
Junior Member
 
Join Date: Oct 2008
Posts: 9
Default Re: SWFkit events in AS3

OH thank's =), I spent a long time to search, and I didn't saw that^^
Thank's again.
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 05:24 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.