Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Flash Remoting / April 2005



Tip: Looking for answers? Try searching our database.

dynamic data from cfc query to listbox

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jsegura - 06 Apr 2005 22:32 GMT
I'm new to ActionScript 2 and I want to extract data from a query in my
music.cfc and populate the data to a listbox but not sure how to go about it. I
have read the LiveDocs for Flash MX 04 and I'm a bit confused by the
explaination and examples.  

Here is what I have so far:

import mx.remoting.*;
import mx.rpc.*;
import mx.controls.ListBox;

var CFC:Service = new Service
("http://localhost:8500/flashservices/gateway",
null,
"cfc.music",
null,
null);

//the name of the function in music.cfc is called playerFiles
var TrackListing:PendingCall = CFC.playerFiles();

I don't know where to go from here.

  ?
tutsamewasa - 11 Apr 2005 10:07 GMT
Hi,

Since you are new to AS2 and I guess to Remoting as well, I would
advise that first you try populating ListBox normaly ( without Remoting
) with Data Provider or adding with addItem method etc. Then you try
Remoting.
Once it is done the return value from there I guess as Recordset or as
XML and then populate your ListBox. Please read few good articles on
the remoting first I guess that will help you.

I can give you the complete code but that will not help you learning.
If you need I will surly give you.

Good Luck

Hemendra Singh Shaktawat

Mindfire Solutions
www.mindfiresolutions.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.