setInterval bug identified and fixed 2004-02-23 - By Edward Chan
Back It is a bug for Win and Linux and is only an issue in a multi-vhost setup. And even then, it may (or may not) work, depending on the apps that are running.
Ed
> -- --Original Message-- -- > From: stefan - muchos.co.uk [mailto:stefan@(protected)] > Sent: Monday, February 23, 2004 1:14 PM > To: flashcomm@(protected) > Subject: RE: [FlashComm] setInterval bug identified and fixed > > > thanks for the update. > > So basically setinterval isn't working on the server on a > vhost setup? Does it affect only Windows? No wonder I had so > little joy with Flogger... > > Stefan > > > > -- --Original Message-- -- > From: Edward Chan [mailto:echan@(protected)] > Sent: 23 February 2004 20:54 > To: 'flashcomm@(protected)' > Subject: [FlashComm] setInterval bug identified and fixed > > > Hello folks, > > Just want to let you know that the setInterval bug has been > identified and fixed and will be available in the next patch > release. The bug only affects a multi-vhost setup. > > We are currently writing up a tech note on this and should > have that posted in the near future. The work around, until > you get the patch, is to do the setInterval from the client. > > For example, > > Instead of doing this from the server-side script: > > function displayDate() > { > trace(new Date()); > } > > setInterval(displayDate, 60*1000); // display date & time every minute > > > You can call the server-side method but on a client side > timer. Unfortunately, this means you will need to have a > persistent client connection to the app. > > For example, in your client-side code: > > nc = new NetConnection(); > nc.connect("rtmp://host/app"); > > function callTimer() > { > nc.call("displayDate", new onDisplayTime()); > } > > setInterval(callTimer(), 60*1000); > > Server-side code: > > function displayDate() > { > trace(new Date()); > } > > application.onConnect = function(client) > { > client.displayDate = function() > { > displayDate(); > } > } > > > I haven't actually run this code, so there might be some > bugs, but I think you probably get the general idea. > Basically, call the method on the server-side that you want > to be called on a timer, but do it via a client call where > the timer is on the client-side. > > > > Ed > > > > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Supported by Fig Leaf Software > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > Lower Prices for Certified Training! Check out new lower > prices for Certified Macromedia Training from Fig Leaf > Software. Expand your skill set with courses in ColdFusion, > Flash, Rich Internet Applications and .NET in the new year. > Fig Leaf Software provides > the highest caliber instruction at our training centers in > Washington > D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or > on-site at your location. > > Get the details at http://training.figleaf.com/ > -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ > To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) > For additional commands, e-mail: flashcomm-help@(protected) >
-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Supported by Fig Leaf Software -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ Lower Prices for Certified Training! Check out new lower prices for Certified Macromedia Training from Fig Leaf Software. Expand your skill set with courses in ColdFusion, Flash, Rich Internet Applications and .NET in the new year. Fig Leaf Software provides the highest caliber instruction at our training centers in Washington D.C., Atlanta, Chicago, Baltimore, Northern Virginia, or on-site at your location.
Get the details at http://training.figleaf.com/ -- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------ To unsubscribe, e-mail: flashcomm-unsubscribe@(protected) For additional commands, e-mail: flashcomm-help@(protected)
|
|