This class is used to launch a specific URL in the addin. You pass it an addin name,
minimum version and location to download it from, and it downloads it and installs it if necessary.
It then tells the addin to load the specified URL.
AddInLauncher properly deals with the following situations:
- addin not installed - it will try to install it before launching the url.
- addin installed but old (its version is < minVersion) - it will try to install a new addin before launching the url
- addin installed and has version >= minVersion - it will just launch the url in the addin
- If the version that gets installed in 1 or 2 is still < than the minVersion, a FAIL event will be dispatched.
Peldi Guilizzoni
protected var _addin:ProductManager
protected var _addInLocalConnection:AddInLocalConnection
protected var _addInLocation:String = "default"
addInLocation:String [read-write]
pass "default" to use express install, or an URL if you're hosting your own installer
Implementation
public function get addInLocation():String
public function set addInLocation(value:String):void
protected var _addInName:String
addInName:String [read-write]
the name of the executable to launch (for instance "connectaddin6x0")
Implementation
public function get addInName():String
public function set addInName(value:String):void
protected var _minVersion:String
minVersion:String [read-write]
the minimum version of the AddIn required
Implementation
public function get minVersion():String
public function set minVersion(value:String):void
public function AddInLauncher(p_minVersion:String, p_addInName:String, p_addInLocation:String = "default")
Constructor - pass the minimum version required and the name of the executable to launch (for instance "connectaddin6x0")
Parameters
| p_minVersion:String |
| |
| p_addInName:String |
| |
| p_addInLocation:String (default = "default") |
protected function compareVersions(p_installed:String, p_required:String):BooleanParameters
| p_installed:String |
| |
| p_required:String |
Returns
public function openInAddIn(p_urlToOpen:String):void
Main entry point. Launches the specified url in the addin after downloading and installing it if necessary.
Parameters
Event object type: com.adobe.rtc.events.AddInLauncherEvent
Dispatched when the AddIn launch fails.
Event object type: com.adobe.rtc.events.AddInLauncherEvent
Dispatched when the AddIn is launched.
public static const DEFAULT:String = "default"
2008-2010 Adobe Systems Incorporated. All rights reserved.
Current page: http://livedocs.adobe.com/labs/acrobatcom/com/adobe/rtc/addin/AddInLauncher.html