Solved

Beginner Question:  Query in Flash 8/SWF

Posted on 2009-05-04
5
259 Views
Last Modified: 2012-06-27
Hey Everyone,

I am very new to Flash but I was also once new at VB .NET and through this site I because somewhat good at it so I'm trying this with Flash.  Note that I have VB/.NET knowledge but very little Flash knowledge.  

Here is what I want to do.  I want to create a simple SWF using Flash 8 that will perform a simple query (select * from names (nolock)) from a SQL 2000/2005 back end and put the results in the Flash movie.  Assume that the DB will be "local" and would have full rights to the DB.  I guess you can also assume that I would have some kind of text box or label on the page/movie (sorry, I know I am using .NET terminology).  

Anyone have a simple code snipit I can look at for this?

Chris, Baltimore

0
Comment
Question by:clebo99
5 Comments
 
LVL 15

Assisted Solution

by:spprivate
spprivate earned 100 total points
ID: 24298271
There is something called macromedia flash remoting which you can explore.
Here is a good article
http://www.adobe.com/devnet/flashremoting/articles/ado_connect.html
He has some examples as well
0
 
LVL 39

Assisted Solution

by:blue-genie
blue-genie earned 100 total points
ID: 24298537
where's the swf going to run, on the web?
you'll need to use a backend script - i don't have any experience with flash remoting. but you can also use a php/asp script to get the data and pass it back to flash.
0
 

Author Comment

by:clebo99
ID: 24298715
Actually, I want it to run in an Adobe Connect Flash Session so it's running on a back-end server.  I've already been able to create simple SWF files (like the rotating words, things like that) and it works.  Now I want to see if I can actually provide something interactively.  
0
 
LVL 22

Accepted Solution

by:
rascalpants earned 300 total points
ID: 24299014
I would assume that since you are running a SWF, it would be able to act the same way as it does on the web... so you would develop a communication exchange between the SWF and the server using some type of middleware...  in your case, I assume setting up a WebService would be pretty simple, so you should set that up and then use the following to connect...  it is a pretty nice example of a custom class that connects to the twitter API...


http://www.thetechlabs.com/flash/creating-a-as3-web-service-package-base-service-class-and-simple-twitter-api/


rp / ZA

0
 

Author Closing Comment

by:clebo99
ID: 31577678
Thanks guys...
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

There are times in your Flash CS4 application when you want more than a simple pointer or a hand, and it's hard to find an ideal walk-through to tell you what to do.  I spent a few days recently learning my way around making custom cursors in Flash,…
In my long career of working as an actionscript developer, I had spent sleepless night often working hard to solve some small problems which actually took a lot of my development time; later found out the solutions to be a line or two. Here are s…
The goal of the tutorial is to teach the user how to how to record live broadcast.
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now