Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsGeneralPHPASPPerlColdFusionFlashHTML, CSS, ScriptsBrowsers

Webmaster Forum / Flash / Data Integration / March 2005



Tip: Looking for answers? Try searching our database.

asp variables into actionscript

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
peter atkinson - 21 Mar 2005 18:16 GMT
I'm having trouble getting flash to recognise my asp variables. I only want to
pull out one variable 'sOrganisationName'.  Heres my .asp
code----------------------------------------------------------------------------
------------------------------------------------------------  
<%@Language='VBScript'%>  <% DIM buildSQL DIM dataString DIM orgName DIM
sOrganisationName  SET dataString = Server.CreateObject('ADODB.Connection')  
dataString.Open application('ConnectionString') buildSQL= 'SELECT value FROM
options WHERE [name] = 'Organisation''   SET orgName =
dataString.Execute(buildSQL)  IF NOT orgName.eof THEN  
sOrganisationName=('value')  Response.Write orgName('value')    ELSE
Response.Write('MICAD Host Server') END IF dataString.Close
%>------------------------------------------------------------------------------
--------------------------------------------------------------------------------
--    Heres what i have in
Flash---------------------------------------------------------------------------
------------------------------------------------------  Frame 1: loadVariables
('forflash.asp', 0, 'GET');  Frame 2: if (oOrganisationName ne '') {
    gotoAndStop(10); }   Frame 9: gotoAndPlay (2)  Frame 10:I have a dynamic text
field with the VAR in the propertys pane set to
'sOrganisationName'.------------------------------  ANY HELP WOULD BE GREATLY
APPRECIATED.  Thanks.:D
Randy1969 - 23 Mar 2005 01:20 GMT
lookinto LoadVars sendAndLoad, that way you can trigger a function when the
variables actually load. As for your asp page:

<%@Language="VBScript"%>

<%
DIM buildSQL
DIM dataString
DIM orgName
DIM sOrganisationName

SET dataString = Server.CreateObject("ADODB.Connection")

dataString.Open application("ConnectionString")
buildSQL= "SELECT value FROM options WHERE [name] = 'Organisation'"

SET orgName = dataString.Execute(buildSQL)

IF NOT orgName.eof THEN
   Response.Write "&oOrganisationName=" & Server.urlencode(orgName("value") )
ELSE
Response.Write "&oOrganisationName=" & Server.urlencode("MICAD Host Server")
END IF
dataString.Close
Set dataString=nothing

You need to return the actual variable name.

Hope this helps,

Randy Poole
CIO
TelSim, Inc (http://www.telsim.com)
Yahoo_IM: telsim_inc
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2009 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.