A small experiment
effect:
http://qhwa.6to23.com/temp/loadswf_Fromasp.swf
ASP address:
http://qhwa.6to23.com/temp/loadswf.asp
ASP content:
<% @ Language = "JavaScript" CodePage = "65001"%>
<%
IF (request.totalbytes) {
// If there is POST data, of course, other judgment conditions can also be added, such as cookie, session variables, etc.
Response.contentType = "Application / X-ShockWave-Flash";
// Set the MIME type
VAR adtypebinary = 1;
Var strfilepath;
Var strfilepath = server.mappath ("Wave2.swf");
// This is the real SWF-URL.
Var objStream = Server.createObject ("adodb.stream");
Objstream.open;
Objstream.type = adtypebinary;
ObjStream.LoadFromFile (StrfilePath); / / Load external file
Response.binaryWrite (ObjStream.read); // Output data stream
ObjStream.close; // Turn off the data stream
// delete objstream;
} else {
// 80% is a brother who wants to crack, greet :)
Response.write ("com on");
}
%>
AS in Flash:
Var myname = "random, hoho ~";
LoadMovienum ("Loadswf.asp", 1, "post");
LoadMovie, even if the _URL attribute does not expose the address of the core SWF. But still want to download to the cache, which is not avoided after using LoadMovie. If the MM can provide download data and parsing data into an API of the MC, it should be better.