Flash Advisor logo
:: Desktop Shortcut
:: Flash Help
Advice from Experts

Closed Thread
Results 1 to 2 of 2
  1. #1

    Default Passing values from Flash to ASP

    Does anyone know how to post variables from Flash to ASP, I have seen scripts using
    loadVariablesNum("test2.asp", 0, "POST");
    but have not worked out how to use them.

    V.

  2. # ADS
    Join Date
    Always
    Posts
    Many
     
  3. #2
    Join Date
    May 2003
    Location
    india
    Posts
    200

    Default

    Hi vender,

    if you are using the

    loadVariablesNum("test2.asp", 0);

    You can send the variable throu asp in flash like below

    Code:
    <%
        Option Explicit
        Dim var&#40;3&#41;, i, counter
        i = 0
        counter = 3
    
        var&#40;0&#41; = "variable1"
        var&#40;1&#41; = "Variable2"
    
        Do While i < counter
            Response.Write "var" & i & "=" & var&#40;i&#41; & "&"
            i = i + 1
        Loop
    
        Response.Write "i=" & i
    %>
    but you are using the


    Code:
    loadVariablesNum&#40;"test2.asp", 0, "POST"&#41;;
    in that case use the below sending the variable in flash

    Code:
    Request&#40;"Variable"&#41; 
    OR
    Request.Form&#40;"Variable"&#41;
    and if you are trying to use

    Code:
    loadVariablesNum&#40;"test2.asp", 0, "GET"&#41;; 
    
    Request.QueryString&#40;"Variable"&#41;
    Try any one which is good for your applicatin, first method is commonly used.

    Good luck!

    Regads
    Jeet

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Passing Different Variables in Flash
    By cheezyfries in forum Flash Scripting
    Replies: 2
    Last Post: 09-06-2005, 01:18 AM
  2. Replies: 0
    Last Post: 05-27-2005, 12:29 AM
  3. passing variable to flash to highlight naviation item
    By ejbiv in forum Flash Scripting
    Replies: 4
    Last Post: 05-12-2005, 03:16 AM
  4. passing variables to popup
    By el jefe in forum Flash Scripting
    Replies: 2
    Last Post: 04-08-2004, 07:09 AM
  5. Exporting Values to ASP (or an access MDB Database)
    By mikebaldam in forum Flash - ServerSide
    Replies: 1
    Last Post: 09-24-2003, 06:29 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
Sponsors
Create Speaking Characters for your website and Flash movies. 15 Day Free Trial