Home Tutorials Forums Articles Blogs Movies Library Employment Press
Old 06-09-2010, 08:06 PM   #1
golfervrsboxer
Registered User
 
Join Date: Dec 2009
Posts: 21
Default Server Side Actionscript Question

When I make changes to the main.asc file in an application directory, do the changes immediately take effect or is the old file "cached" so to speak.

I was playing around with the one for my app today and have gotten stuck because none of the changes seem to be reflected.

I started off this morning with 2 working server-side methods that I was accessing with NetConnection.call() and when I added a third one I got a NetConnection.Call.Failed error and now (after about 3 hours of tinkering) I do not even get that anymore.

Anyone have any theories as to why this is happening?
golfervrsboxer is offline   Reply With Quote
Old 06-09-2010, 11:31 PM   #2
maskedMan
Obfuscated Coder
 
maskedMan's Avatar
 
Join Date: Apr 2008
Posts: 1,571
Default

It's been a while but if I recall correctly, you have to kick the server and make sure that there are no outstanding instances of the application in existence first.
__________________
http://www.scriptocalypse.com - It's not the end of the world. It's just Actionscript!

man.mask = mask_mc;
maskedMan is offline   Reply With Quote
Old 06-10-2010, 02:53 PM   #3
golfervrsboxer
Registered User
 
Join Date: Dec 2009
Posts: 21
Default

I think you might be right. I realized that the application directory I was using was also in use by a beta version I put up a few weeks ago to get feedback. My guess is that there were people connecting to it throughout the day which is why the behavior was so erratic.


I made a copy of the directory to use especially for development but it still appears to have cached one of my main.asc files. At first it looked like it was working fine but now it is stuck in one of the old files, and my sandbox instance should be the only thing connecting to it.

Anybody know any ways of refreshing the server without access to the FMS Admin Console. I don't have the credentials to use it and my boss is away until Monday.
golfervrsboxer is offline   Reply With Quote
Old 06-14-2010, 03:11 PM   #4
golfervrsboxer
Registered User
 
Join Date: Dec 2009
Posts: 21
Default Problem Resolved

Turns out the previous poster and my intuitions were correct.

Most likely the irregular performance was at first because there were clients connecting to my app while i was changing the server side script.

Furthermore, now that I have access to the admin console I can connect a working copy of my app and refresh it with the Flash Media Server Administration console.

Probably a no brainer for anyone used to this sort of stuff but it was not an immediately obvious solution for when you server is returning values in a script that was modified several hours ago.
golfervrsboxer is offline   Reply With Quote
Reply


Thread Tools
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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:01 AM.

///
Follow actionscriptorg on Twitter

 


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.