Welcome, Guest. Please login or register.
Did you miss your activation email?
05/21/12, 04:23
Home Help Search Login Register
News: Parsley Flex framework review featuring quiz application, in our Flex frameworks series
Flex SDK 4.5 mobile roadmap: begin with your mobile development
Swiz Flex framework review featuring quiz application
New homepage we release our new Homepage, take a look ...

+  Flash-db
|-+  Server side Scripting and Database Support
| |-+  PHP, Perl, ASP, JSP, CFM (Moderators: Flash-db, Musicman, vesa kortelainen, Ronald Wernecke, Jorge Solis, nothingGrinder)
| | |-+  asp variables from flash
0 Members and 1 Guest are viewing this topic. « previous next »
Pages: [1] Print
Author Topic: asp variables from flash  (Read 1710 times)
danny
Server what's that
*
Posts: 2



View Profile Email
« on: 02/13/02, 15:43 »

I have a pretty simple asp form where i want the initial selection to be set from a flash menu... I put this action on the button... but the variable doesn't post... I have never tried to post an asp variable from within flash, am i doing something wrong?

see.... www.dannyharmondesigns.com/3icorp/test01.html
Logged
Flash-db
Administrator
Systems Administrator
*****
Posts: 1867



View Profile WWW
« Reply #1 on: 02/13/02, 16:49 »

If your Posting to a new URL or New asp script you can use something like:

on (release) {
Variable1 = "Value1";
Variable2 = "Value1";

 getURL("ThePage.asp", "POST");

}

This will post both of these variables to the ASP script - along with all the other variables contained on that level in that MC.  As long as the variable is present it will be sent.

If you want to return variable/values directly to the SWF you are posting from your would use something like this:

on (release) {
Variable1 = "Value1";
Variable2 = "Value1";

 loadVariablesNum("ThePage.asp", 0, "POST");

}

This will send those variables (and all other variables present to the ASP script) It will then read in the results after they have been processed back into the Flash Movie.  These results have to be formatted specifically like Variable1=value1&variable2=value2  etc etc.  Their can be nothing else on that page - except for that string.

If you need more help on this let us know.
Logged

-Jeff.
danny
Server what's that
*
Posts: 2



View Profile Email
« Reply #2 on: 02/13/02, 17:05 »

Thanks Jeff! Worked like a charm...
Logged
Pages: [1] Print 
« previous next »
Jump to:  


Powered by MySQL Powered by PHP Powered by SMF 1.1.16 | SMF © 2011, Simple Machines Valid XHTML 1.0! Valid CSS!