Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old August 8th, 2003, 09:21 PM
stanley1610's Avatar
stanley1610 stanley1610 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Posts: 250 stanley1610 User rank is Corporal (100 - 500 Reputation Level)stanley1610 User rank is Corporal (100 - 500 Reputation Level)stanley1610 User rank is Corporal (100 - 500 Reputation Level)stanley1610 User rank is Corporal (100 - 500 Reputation Level) 
Time spent in forums: 16 h 15 m 52 sec
Reputation Power: 8
Question Sequence Assurance in Remoting

Please see the following codes;
#include "NetServices.as"
#include "NetDebug.as"

NetServices.setDefaultGatewayURL("http://mail.microweb.com.hk/~admin/ecat2/ecatgateway.php");
var myServer = NetServices.createGatewayConnection();
var categoryMgr = myServer.getService("categoryctl", this);

_global.getName = "";
_global.getParentID = -1;
_global.getListByParent = new Array();

function getName_result(theResult)
{
_global.getName = theResult;
}

function getParentID_result(theResult)
{
_global.getParentID = theResult;
}

function getListByParent_result(theResult)
{
_global.getListByParent = new Array();
for (var idx in theResult)
{
_global.getListByParent.push(theResult[idx]);
}

myDate = new Date();
trace(myDate.getTime() + ":" + _global.getListByParent.length + "\n");
}

lblDebug.text = "Debug:";
// line 1
categoryMgr.getListByParent(-1);
myDate = new Date();
// line 2
trace(myDate.getTime() + ":" + _global.getListByParent.length + "\n");

// End of The Code

Output:
1060393964995:0

1060393965256:2


How can I ensure that line 2 will not run until the completion of line 1? or do we have any special algorithm to perform such task?
__________________
------------------------------------------
Perl Kids Kiss Perl
Stanley
------------------------------------------

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > Sequence Assurance in Remoting


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway