Use flash and ASP to make a message this-flash article

Source: Internet
Author: User
Tags eval
Use flash and ASP to make a message this-flash article
About writing data to flash with ASP: for example, to let flash know a=1 this value, you have to enter &a=1°asp with such a statement Response.Write ("&a=1").
The introduction of ASP files in Flash, you can use such a statement to get:
Loadvariables ("http://localhost/view.asp", "");
(This is the default local machine)
And the ASP to obtain data from flash (for example, in Flash has an INPUT text variable value of TEXT1) can be used such statements: Loadvariables ("http://localhost/send.asp", "", " POST ");
(This is the default local machine), and then use request ("text") to get the value of this input TEXT.

Here's the view. ASP is used to display files that are recorded in Falsh, SEND. The ASP is used to get the data and log it into the database. Specific look "with flash and ASP make a message this-asp article (up, Down)".
The following is a brief description of the Flash to get the records in the database paging,-here with the effect of the bar display. The source program is as follows:
name1 = eval ("name" Add i);

Text1 = eval ("text" add I);

Name1 and Text1 are the two dymanic text that displays records, and from view.asp you can see that the record variable you entered is: Name1,name2,name3 ...
Text1,text2,text3 ...
This makes it possible to display the contents of a record up to two buttons, such as one of the source programs:
On (Press)
{
x = i-1;

if (X==eval ("Total")) {
If I reach the maximum (show the last one), I will be 1 (show the first one)
i = 2;
}
else {

i = i+1;
}
//
Change the content in text by changing the value of I

Others can be solved by themselves!!



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.