View Full Version : ASP in differente folder.
Does anyone know if Flash has some problem to find the asp file in another folder?? I have a send.asp file.
The server that hosts my website has 2 folders:
Folder1 - web (for html, swf, etc)
Folder2 - dados (for asp)
They have sent me the path for the folder2:
d:\1ofakind.com.br\dados\send.asp
It didn't work. I also tried:
..\dados\send.asp
Nothing happens.
Any ideas ???
flashdudette
04-30-2003, 04:53 PM
your slashes are in the wrong direction
try:
../dados/send.asp
__________________
I've already tried
../dados/send.asp
..\dados\send.asp
d:\1ofakind.com.br\dados\send.asp
d:/1ofakind.com.br/dados/send.asp
nothing happened... :(
flashdudette
05-05-2003, 01:31 PM
Definitely the correct format is the slashes in this direction "/":
../dados/send.asp
Try this to make sure:
Put a dynamic text field on the stage with variable name: test
add the line on frame 1:
#include "../dados/test.as"
Make sure you don't put a ; at the end on the include line.
I assume your swf file is in the web directory.
To test, make a text file with the line:
test = " this is a test"
Save the file as: test.as in the dados directory.
I assume WEB and DADOS directories are at the same level.
If so, your text field will read: this is a test.
If your DADOS directory is inside the WEB directory then the path is:
#include "dados.test.as"
or
#include "../test.as"
If your directories are in a different position, you can still try to change your path until you have the correct one. In general, one step up is either the directory name dados/ or ../, two steps up is ../.. or directory names and so on. If the file is inside the web directory then it would be:
#include "test.as"
Otherwise, can you trace anything? Maybe it is your ASP code that is the problem?
flashdudette
05-05-2003, 01:33 PM
Sorry, I had a typo in one of the paths. read
#include "dados/test.as"
instead of:
#include "dados.test.as"
flashdudette
05-05-2003, 01:51 PM
Let me add:
If your path is correct then there should be nothing in the output window. If the path is incorrect, the output window will tell you it cannot find the file.
So, if you do not get anything in the output window, it means your path is correct and you might be using the wrong code to call your file.
Are you using loadVariablesNum(); or LoadVars() ?
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.