Posted: Fri Jun 25, 2010 7:38 am
Post subject: Re: SDK and ASP 3 or Flex
iSpring SDK provides COM API for automated PPT to Flash conversion and, thus can be easily accessible from all COM-compatible programming languages, such as Visual Basic which is used with ASP 3.0.
To see how to invoke iSpring SDK methods from VB see the following sample:
"C:\Program Files\iSpring\SDK 5\samples\server\vbscript\01_simple_conversion\simple_conversion.vbs"
It illustrates how to create iSpring.PresentationConverter object and use it to open and convert the presentation. With just little changes this code can be adopted to the use with ASP.
Unline ASP, Flex is a client-side technology, so it must be used with the generated Flash presentations.
iSpring SDK generated Flash presentations are written in ActionScript 2 language and can't be controlled from ActionScript 3 (and Flex) directly. However there is an option which integrates ActionScript 3 connector into the generated Flash presentation which enables communication between the presentation and AS3 application via LocalConnection.
To integrate AS3 connector you need to use the iSpring.CorePlugins interface from your ASP code:
jsConnector = 0
as3Connector = 1
Set pc = CreateObject("iSpring.PresentationConverter")
converter.GenerateSolidPresentation "c:\presentation.swf", "", ""
To control the generated Flash presentations from Flex you may use AS3 API:
You may find Flex samples in the following folder:
"C:\Program Files\iSpring\SDK 5\samples\client\samples\as3\flex2"