 |
|
 |
|
|
 |
Flash Remoting and UI Components |
 |
 |
|
|
08-04-05 10:46 PM
Hello all,
I am trying to make this news item, which queries the database and gets
the active news items. Now my Flash Remoting and CFC's work fine. The
only problem is it displays only one active news in the News Box,
although there are 5 active news items in the database. I want to know
how can I display all the query results.some loop or something may
be?????
I am using a dynamic text field, multi line, to populate the news item.
I want to know, whether I am using the right UI component or I should
use some other UI component.
Other thing I want to achieve is, once I have all the news item
populated I want them to SCROLL from Up to Down, like a reel...
I am including my sample code, if anyone and give me any pointers.
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayUrl("http://myDomain.com/flashservices/gate
way");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result)
{
trace("server responded: Records: " + result.getLength());
trace("setting the Drop Down");
// This function will be invoked by the server when it has
finished processing
NewsDetails.setDataProvider(result);
}
function qGetNewsHeadlines_Result(result)
{
_root.site_title=result.items[0].Title;
}
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: Flash Remoting and UI Components |
 |
 |
|
|
08-04-05 10:46 PM
No need to cross post right away...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun Dixit
Sent: Thursday, August 04, 2005 3:22 PM
To: Flash Comm Mailing List
Subject: [FlashComm] Flash Remoting and UI Components
Hello all,
I am trying to make this news item, which queries the database and gets the
active news items. Now my Flash Remoting and CFC's work fine. The only
problem is it displays only one active news in the News Box, although there
are 5 active news items in the database. I want to know how can I display
all the query results.some loop or something may be?????
I am using a dynamic text field, multi line, to populate the news item.
I want to know, whether I am using the right UI component or I should use
some other UI component.
Other thing I want to achieve is, once I have all the news item populated I
want them to SCROLL from Up to Down, like a reel...
I am including my sample code, if anyone and give me any pointers.
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayUrl("http://myDomain.com/flashservices/gate
way");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result) {
trace("server responded: Records: " + result.getLength());
trace("setting the Drop Down");
// This function will be invoked by the server when it has
finished processing
NewsDetails.setDataProvider(result);
}
function qGetNewsHeadlines_Result(result) {
_root.site_title=result.items[0].Title;
}
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: Flash Remoting and UI Components |
 |
 |
|
|
08-04-05 10:46 PM
Point Noted.....
Will take care of it in future...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Stefan
Richter
Sent: Thursday, August 04, 2005 10:33 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
No need to cross post right away...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun
Dixit
Sent: Thursday, August 04, 2005 3:22 PM
To: Flash Comm Mailing List
Subject: [FlashComm] Flash Remoting and UI Components
Hello all,
I am trying to make this news item, which queries the database and gets
the
active news items. Now my Flash Remoting and CFC's work fine. The only
problem is it displays only one active news in the News Box, although
there
are 5 active news items in the database. I want to know how can I
display
all the query results.some loop or something may be?????
I am using a dynamic text field, multi line, to populate the news item.
I want to know, whether I am using the right UI component or I should
use
some other UI component.
Other thing I want to achieve is, once I have all the news item
populated I
want them to SCROLL from Up to Down, like a reel...
I am including my sample code, if anyone and give me any pointers.
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayUrl("http://myDomain.com/flashservices/gate
way");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result) {
trace("server responded: Records: " + result.getLength());
trace("setting the Drop Down");
// This function will be invoked by the server when it has
finished processing
NewsDetails.setDataProvider(result);
}
function qGetNewsHeadlines_Result(result) {
_root.site_title=result.items[0].Title;
}
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: Flash Remoting and UI Components |
 |
 |
|
|
08-04-05 10:46 PM
Apology accepted :-)
You have a function there twice
function qGetNewsHeadlines_Result(result) {
Also what kind of component is NewsDetails?
Moreover, setDataProvider - what's that? I have never used that... Iff you
want to bind recordsets to UI components then check out the DataGlue class.
Stefan
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun Dixit
Sent: Thursday, August 04, 2005 3:38 PM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
Point Noted.....
Will take care of it in future...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Stefan Richter
Sent: Thursday, August 04, 2005 10:33 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
No need to cross post right away...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun Dixit
Sent: Thursday, August 04, 2005 3:22 PM
To: Flash Comm Mailing List
Subject: [FlashComm] Flash Remoting and UI Components
Hello all,
I am trying to make this news item, which queries the database and gets the
active news items. Now my Flash Remoting and CFC's work fine. The only
problem is it displays only one active news in the News Box, although there
are 5 active news items in the database. I want to know how can I display
all the query results.some loop or something may be?????
I am using a dynamic text field, multi line, to populate the news item.
I want to know, whether I am using the right UI component or I should use
some other UI component.
Other thing I want to achieve is, once I have all the news item populated I
want them to SCROLL from Up to Down, like a reel...
I am including my sample code, if anyone and give me any pointers.
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayUrl("http://myDomain.com/flashservices/gate
way");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result) {
trace("server responded: Records: " + result.getLength());
trace("setting the Drop Down");
// This function will be invoked by the server when it has
finished processing
NewsDetails.setDataProvider(result);
}
function qGetNewsHeadlines_Result(result) {
_root.site_title=result.items[0].Title;
}
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
 |
RE: Flash Remoting and UI Components |
 |
 |
|
|
08-04-05 10:46 PM
Well,
I took out the function which was there twice and this how it looks now,
NetServices.setDefaultGatewayUrl(http://myDomain.com/flashservices/gatew
ay)
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result)
{
_root.site_title=result.items[0].Title;
}
Now when I execute my Flash file, in the News Box I get only one news
item. I will look at Data Glue Class Definitely.
Any pointers...
Thanks
Varun
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Stefan
Richter
Sent: Thursday, August 04, 2005 10:45 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
Apology accepted :-)
You have a function there twice
function qGetNewsHeadlines_Result(result) {
Also what kind of component is NewsDetails?
Moreover, setDataProvider - what's that? I have never used that... Iff
you
want to bind recordsets to UI components then check out the DataGlue
class.
Stefan
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun
Dixit
Sent: Thursday, August 04, 2005 3:38 PM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
Point Noted.....
Will take care of it in future...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Stefan
Richter
Sent: Thursday, August 04, 2005 10:33 AM
To: 'FlashComm Mailing List'
Subject: RE: [FlashComm] Flash Remoting and UI Components
No need to cross post right away...
-----Original Message-----
From: flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.org
[mailto:flashcomm-bounces-1Ss2GqJETD3yZ38Mhd3e/9ZfFG6BLHNm@public.gmane.
org] On Behalf Of Varun
Dixit
Sent: Thursday, August 04, 2005 3:22 PM
To: Flash Comm Mailing List
Subject: [FlashComm] Flash Remoting and UI Components
Hello all,
I am trying to make this news item, which queries the database and gets
the
active news items. Now my Flash Remoting and CFC's work fine. The only
problem is it displays only one active news in the News Box, although
there
are 5 active news items in the database. I want to know how can I
display
all the query results.some loop or something may be?????
I am using a dynamic text field, multi line, to populate the news item.
I want to know, whether I am using the right UI component or I should
use
some other UI component.
Other thing I want to achieve is, once I have all the news item
populated I
want them to SCROLL from Up to Down, like a reel...
I am including my sample code, if anyone and give me any pointers.
#include "NetServices.as"
#include "NetDebug.as"
NetServices.setDefaultGatewayUrl("http://myDomain.com/flashservices/gate
way");
var gw = NetServices.createGatewayConnection();
var server = gw.getService("com.myDomain.root", this);
server.qGetNewsHeadlines ();
function qGetNewsHeadlines_Result(result) {
trace("server responded: Records: " + result.getLength());
trace("setting the Drop Down");
// This function will be invoked by the server when it has
finished processing
NewsDetails.setDataProvider(result);
}
function qGetNewsHeadlines_Result(result) {
_root.site_title=result.items[0].Title;
}
Thanks
Varun Dixit
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
=-----------------------------------------------------------
Supported by Fig Leaf Software - http://www.figleaf.com
=-----------------------------------------------------------
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcomm
[ Post a follow-up to this message ]
|
|
|
 |
|
 |
|
 |
|
|
|
Sponsored Links |
 |
 |
|
|
 |
All times are GMT. The time now is 10:11 PM. |
 |
|
|
 |
|
 |
|
|
 |
|
Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
|
|
|
|
Medical and Health forum | Computer Games Reviews | Graphics design forum
|
 |
|
 |
|