|
-
Strange little problem: I created a site which uses a lot of dynamic scripting with Java. When I open the site from my explorer (locally), and I request data from a database, everything works fine, no problems at all. All data is loaded and processed.
BUT: when I upload it to my server, the site refuses to load the variables from the scripts (Java servlets ..), no matter what ..
I know my actionscript and servlets are working fine, so anyone has any idea why the site doesn't work when uploaded ? There is a recent tread about almost the same problem, but no answer there either ..
Is it a problem in flash ? The server ? The browser ?
What's the difference between a flash site opened from windows explorer and one downloaded from my server ? Perhaps a security problem ?
The url: http://www.vault52.net (beta)
-confused Flip-
-
ScratchingEverything
 100% Swedish
Hmmm,
Did you make all the paths right ? I mean,are they the same?
I once made one wrong mapping on the server and it bugged me for 2 days after I found the error in the script...
-
Hi,
you should a) load your servlets from the vault52 site as well or b) move your main swf to the at-lantis site or c) check this thread for an alternative approach: http://board.flashkit.com/board/show...hreadid=232712
-
Musicman: by loading your servlets from vault52, you mean setting the path relative ? Cause I uploaded the file to the site where my servlets are located, but nope, doesn't work...:/
The alternative method (using loadmovie instead of loadvariables), can you explain what the difference is ? And why ? Is it a program error in flash ? Will it be solved in 6.0 ? (<- lazy me .. )
DaPurno: yeah, I suppose all paths are correct: I mean: the servlets are on another server, so I use:
LoadVariablesNum("http://www.at-lantis.com/servlets/NetWork?input= ... so I suppose it should work, since it works fine locally ..
Damn Flash .. (I know, should blame my programming skills )
-
Hi,
not allowing loadvariables from another server is a security feature, and I dont think it will change in F6.
The reasoning behind that: suppose someone sends you an ad banner to show on your site. If it comes with a suggested html embedding, you can check that for strange javascript, but you probably cannot check what goes on inside. Now assume you make a completely flash site and integrate that flash banner via loadmovie from your server. Without that restriction the banner could perhaps check periodically whether the main movie has variables user and password and send the values off without your knowing.
Obviously there is no restriction on loadmovie because one would expect loadmovie to show up as graphics, but this is not always the case.
Also, access to any servers works when you test within flash environment or with a file: url in browser - otherwise you would never be able to test your stuff without running a server. Once you run your own server and use http://localhost to load your movie, those restrictions apply.
You actually have a copy of your main swf at the at-lantis site to try out?
Musicman
-
Since the site still wasn't working properly when using 'http://www....', I altered it to a relative path and uploaded it to at-lantis.com. And yep, it works ..
I suppose there is no way around .. almost as irritating as SSI when using a script to update a textfile .. 
Ok, so I'll move my site to at-lantis till I find the time to update the mc's to loadmovie's .. :/
Thnx Musicman ..
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|