FMProjector/FMPlayer Tutorial > Embed PDF
Back link
 

Home
FMProjetor
FMPlayer

Sample & Tutorial
 

Fundamental
- FSCommand Fundamental
- FMProjector Howto
- FMPlayer Howto
- Smartclips Howto
FSCommand Samples
- FSCommand Tutorial
- 1. Play video in Flash
- 2. Streaming&Overlap
- 3. Full screen video
- 4. Fast forward/backward
- 5. Synchronization
- 6. Embed PDF
- 7. Embed RealPlayer object
- 8. ASP interface
Smartclip Samples

- 9. Video w/ slider
-10. Read/write registry w/ sc
FSCommand Reference

- FAQ
- FSCommand Tutorial
- FSCommand fast track
Showcases
Support Forum
Submit yours
Anything done by you that can inspire and do help to others. It has better to be short, clear, and self-explained.

Contact
  Technical Support
  support@flashants.com
Marketing & Sales
  sales@flashants.com
Feedback & Suggestion
  feedback@flashants.com

 

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):

      1. In order to get the realplayer object's HTML code, we copy RealPlayer object's code from HTML editor.
      2. 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.