Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-28-2006, 10:24 AM
Member
 
Join Date: Jul 2006
Posts: 33
Default SWFKit 3 - Connect to DataBase from Action Script

hi...

Greetings, at me a problem. I cannot connect to databases through Action Script, but through FFish Script it turns out...
This is my code in FFish Script:
Code:
var conn = new ActiveXObject("ADODB.Connection");
conn.connectOK = false;
conn.ConnectComplete = function(err, status, cnt) {
***if (typeof err != "undefined") {
******trace(err.Description);
******return;
***} else {
******trace("Connect complete!");
******conn.connectOK = true;
***}
***trace("status: "+status.value);
};
conn.open("DRIVER={MySQL ODBC 3.51 Driver};SERVER=server; DATABASE=database;UID=login;PWD=pass;OPTION=0");
if (!conn.connectOK) {
***trace("Failed to connect to the DB");
***return;
}
var record = new ActiveXObject("ADODB.Recordset");
record.Open("select name from humans", conn, 1, 2);
record.moveFirst();
while (!record.eof) {
***trace("name: "+record.Fields(0).Value.toString());
***record.moveNext();
}
as to me it should be copied that it worked through Action Script.

Thankful in advance... Also excuse for my bad english :-[
Reply With Quote
  #2 (permalink)  
Old 07-31-2006, 01:44 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit 3 - Connect to DataBase from Action Script

You cannot use ActiveXObjects in action script directly in this way, they must be wrapped. However, we are building a tool to automatically create wrapper class from an ActiveX dll. We will get back to you when the tool is ready.
Reply With Quote
  #3 (permalink)  
Old 07-31-2006, 03:21 PM
Junior Member
 
Join Date: Apr 2006
Posts: 13
Default Re:SWFKit 3 - Connect to DataBase from Action Script

Might want to sticky this. I would be interested in knowing when this comes out.
Reply With Quote
  #4 (permalink)  
Old 07-31-2006, 05:13 PM
Member
 
Join Date: Jul 2006
Posts: 33
Default Re:SWFKit 3 - Connect to DataBase from Action Script

Quote:
Originally Posted by SWFKIT
You cannot use ActiveXObjects in action script directly in this way, they must be wrapped. However, we are building a tool to automatically create wrapper class from an ActiveX dll. We will get back to you when the tool is ready.
And there is an approximate date of an output of this tool?

And still a question... And whether it is impossible to introduce in swfkit the built in functions of management by databases?
Reply With Quote
  #5 (permalink)  
Old 08-07-2006, 01:48 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re:SWFKit 3 - Connect to DataBase from Action Script

It is ready, we will post it in our forum soon.
Reply With Quote
  #6 (permalink)  
Old 08-07-2006, 10:01 PM
Member
 
Join Date: Jul 2006
Posts: 33
Default Re:SWFKit 3 - Connect to DataBase from Action Script

Quote:
Originally Posted by SWFKIT
It is ready, we will post it in our forum soon.
Well, we look forward... ;D
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 03:48 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.