|
Screenshot
of FMprojector embed PDF
- download
this sample files

- Embed PDF into FLASH content :
Coding in the PDF button:
fscommand ("fas.axobj.openpdf", "10,10,630,390," add
fileName);
Note: fileName is the string get from
user's input
- Embed RealPlayer ActiveX control into FLASH:
Coding in the Real button:
on (release) {
RealObject = "<object
classid=\"clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA\"
id=\"RealAudio1\" width=\"320\"
height=\"240\"> <param name=\"_ExtentX\"
value=\"6350\"> <param name=\"_ExtentY\"
value=\"2117\"> <param name=\"AUTOSTART\"
value=\"-1\"> <param name=\"SHUFFLE\"
value=\"0\"> <param name=\"PREFETCH\"
value=\"0\"> <param name=\"NOLABELS\"
value=\"0\"><param name=\"CONTROLS\"
value=\"ImageWindow\"> <param name=\"LOOP\"
value=\"0\"> <param name=\"NUMLOOP\"
value=\"0\"> <param name=\"CENTER\"
value=\"0\"> <param name=\"MAINTAINASPECT\"
value=\"0\"> <param name=\"BACKGROUNDCOLOR\"
value=\"#000000\"></object>";
rect = "0,0,640,400,";
SrcPrefix = "<param name=\"SRC\" value=\"";
SrcPostfix = "\">";
OpenParams = rect add RealObject add SrcPrefix add FileName
add SrcPostfix;
fscommand("fas.axobj.open", OpenParams);
}
Note1: FileName is the string
variable get from user's input
Note2: The following steps
show how to get the above RealPlayer's object code (pink
color text):
- In order to get the realplayer object's
HTML code, we copy RealPlayer object's code from HTML
editor.
- Because we wanna get file name from
user's input, we remove the <param name="SRC"
value="...." > tag which specify the
fixed file name from the above HTML code.
|
|