Solved

loadVariablesNum seems to see asp file, but won't use it

Posted on 2006-06-22
2
358 Views
Last Modified: 2010-08-05
A developer in 2004 wrote an application for a client that they are having issues with, I say this because prior to the clients call I never used the below commands so am a newbie with them.

Problem command: loadVariablesNum("track.asp", 5, "POST");
Issue:  Command seems to know file is there ( if I rename track.asp to trackX.asp and run the test projector it tells me it can't find the file trackX.asp, so it knows to look for the target file and whines if it isn't there) but Flash does not seem to be actually accessing the file even though it knows it is there. I am expecting, likely incorrectly, that the track.asp page would show me the alert as shown in the track.asp code below, or display the Response.Write text, neither of which is occuring, so I assume it is not executing the file. I also assume I am wrong in the fact it should show anything as I am not opening the asp in another window, so I guess this is a two part question, 1.  should I be able to see the alert of response.write text form the asp file called the way it is, or 2. Is there a way to return a value to the loadVariablesNum funtion call that says 'yeah, I processed...'

TRACK.ASP code:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="1252"%>

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
</head>
<script language="javascript">
function openWin()
{      alert ("seeing");}
</script>

<body onLoad="openWin()">
test....<% Response.Write "seeing asp" %>
</body>
</html>
0
Comment
Question by:cbittner
2 Comments
 
LVL 12

Accepted Solution

by:
Proactivation earned 500 total points
ID: 16967519
This is all a bit confusing... I'm guessing that the Flash projector should access track.asp so that the ASP can store something in a database, even if it's just that it's been called.  The problem there is that your "problem command" tries to access the ASP from the file system, not via a URL such as:

loadVariablesNum("http://www.mydomain.com/track.asp", 5, "POST");

loadVariablesNum would normally load data from a file, or generated by ASP, in a URL-style name/value pair, like this:

name1=value1&name2=value2 (etc)

but the ASP you posted is designed to write things to a browser, not return values to Flash.  As it stands, when Flash calls your ASP, you'd never see the alert because you're not looking at it from a browser.
0
 

Author Comment

by:cbittner
ID: 16968292
Sorry if it is confusing, I'm confused myself. The test page is just supposed to write data to a database, normally it would not write anything to the page. I just added that to make sure it was trying to process the page. I'll write a sample asp page t write something to a mySQL database and see if it writes.
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a solution to a problem of subloading one movie into another when they have different SWF versions. Sometime back, I was working on an ActionScript project while I came across an interesting fact which I would like to share…
The last time I worked with Flash and Socket connections was in AS1. A recent project required flash connecting to a Socket, and sending receiving information - we figured it would be easy enough - we all know about the socket policy documents and c…
In this tutorial viewers will learn how to create a basic motion tween animation in Flash Open a new document in Flash: Draw/import an image: Press CTRL + F8 to convert it into a graphic symbol: Select a frame (how long you want the tween to last): …
The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.

821 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question