IT Community - Software Programming, Web Development and Technical Support

connecting database

This is a discussion on connecting database within the Flash Actionscript Programming forums, part of the Web Development category; There are three ways in which a Flash application can connect to a database: using the XMLConnector component; using a ...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Flash Actionscript Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 03-21-2007, 08:52 AM
nssukumar nssukumar is offline
D-Web Sr.Programmer
 
Join Date: Feb 2007
Posts: 155
nssukumar is on a distinguished road
Default connecting database

There are three ways in which a Flash application can connect to a database:

using the XMLConnector component;
using a combination of XML and CGI;
using the XMLSocket class.

It is important to realize that there is no direct way of connecting Flash to a database;
an application is needed to act as an intermediary between Flash and the database. Each
of the methods described above uses this architecture—each in a slightly different way
and involving different Flash features.

The first method is well documented in the Flash help (Using Flash > Data Integration >
Data Connectivity).


The second method uses a combination of the XML class on the Flash side with a CGI
application on the server side, and is suitable in situations where network latency
is not an issue. This method uses a POST HTTP request to connect to the application
server. For a good explanation of this, see Flash help (ActionScript reference guide >
Working with external data > Sending and loading variables to and from a remote source >
Using the XML class).

The third method, which this article will focus on, is, for some reason, the least well
documented. It is however the one that offers the most control from a programmer's point
of view. It is also the most familiar metaphor of database interaction for a non-Flash
programmer. According to the Flash help, "XMLSocket … maintains an open connection to
the server, which allows the server to immediately send incoming messages without a
request from the client."
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 04-24-2007, 11:14 PM
im2good im2good is offline
D-Web Trainee
 
Join Date: Apr 2007
Posts: 20
im2good is on a distinguished road
Default Re: connecting database

Important disdavantage with flash when it comes to dynamic web development is that they cannot directly connect to the database
They got to use few external components to connect to the databases
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Connecting Database using Javascript oxygen HTML, CSS and Javascript Coding Techniques 2 02-04-2008 01:17 AM
types of object while connecting with mysql venkatbi PHP Programming 0 11-22-2007 05:51 AM
Connecting Database using PERL Murali Perl 1 08-17-2007 12:08 AM
Explain Connecting External Hardware to J2ME applications itbarota J2ME 2 08-06-2007 09:11 AM
Any idea about Connecting Windows Mobile to Wireless HID devices? itbarota Windows Mobile 0 07-23-2007 07:12 AM


All times are GMT -7. The time now is 07:31 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0