- Home /
Install unity web player from flash
hello,
I would like to know if it is possible to trigger the unity player install from flash.
My project include flash and unity talking together, i check if unity player is installed, if it is not, flash show a message to the user and ask him to clic a button to install unity. Then flash should do something to start the install ...
I arlready try to call the install url from flash or from JavaScrip. http://webplayer.unity3d.com/download_webplayer-2.x/UnityWebPlayer.exe for example, but it just call it for download and not for install.
What should I do?
Answer by SrBilyon · Nov 11, 2010 at 09:02 PM
I'm a bit confused, but I'll try to answer. From what I see in the question, you're wanting it so that if the player doesn't have the webplayer installed on their system, it will prompt them to install it?
If so, I don't believe that would be necessary. When the player is sent to the page that includes the game's webplayer, if it is not installed, a button will show in it's place that will allow the player to install the plugin automatically. No need to have a flash prompt.
Answer by Emmanuel · Nov 11, 2010 at 10:13 PM
I got a part of it.To start unity player installation from flash, i can call a javascript function:
unityObject.doJavaInstall('unity_div_id');
And it work.
p.s. The reason why I dont want to use the default html button is that i already work in a flash framework.