User Tools

Site Tools


proton:flash_setup

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
proton:flash_setup [2012/12/13 02:23]
seth
proton:flash_setup [2012/12/13 06:31]
seth
Line 3: Line 3:
  
 Adobe'​s new Flash C++ stuff (Flascc?) finally lets you pop get your Proton apps up on the web! Adobe'​s new Flash C++ stuff (Flascc?) finally lets you pop get your Proton apps up on the web!
 +
 +<​html>​
 +<​strong>​Flash version:</​strong>​
 +</​html>​
 +
 +<​html>​
 +<div id="​flashContent">​
 + <​object classid="​clsid:​D27CDB6E-AE6D-11cf-96B8-444553540000"​ width="​480"​ height="​320"​ id="​RTBareBones"​ align="​middle">​
 +   <param name="​movie"​ value="/​games/​test/​RTBareBones.swf"​ />
 +              <!--[if !IE]>​-->​
 +              <object type="​application/​x-shockwave-flash"​ data="/​games/​test/​RTBareBones.swf"​ width="​480"​ height="​320">​
 +              <​!--<​![endif]-->​
 +                <param name="​wmode"​ value="​direct"​ />
 +                <param name="​allowScriptAccess"​ value="​sameDomain"​ />
 +                <param name="​bgcolor"​ value="​CCCCCC"​ /> 
 +                <div>
 +                  <​h1>​You need to update flash:</​h1>​
 +                  <​p><​a href="​http://​www.adobe.com/​go/​getflashplayer"><​img src="​http://​www.adobe.com/​images/​shared/​download_buttons/​get_flash_player.gif"​ alt="​Get Adobe Flash player"​ /></​a></​p>​
 +                </​div>​
 +              <!--[if !IE]>​-->​
 +              </​object>​
 +              <​!--<​![endif]-->​
 +            </​object>​
 + </​div>​
 +</​html>​
 +
 +[[http://​www.rtsoft.com/​games/​test/​test1.html|View the RTSimpleApp example (has audio, jpeg loading) in Flash here]]
  
 ==Features== ==Features==
Line 17: Line 44:
  
 It's not a perfect emulation (it's still a work in progress), but all the Proton examples run fine, so it ain't bad either. It's not a perfect emulation (it's still a work in progress), but all the Proton examples run fine, so it ain't bad either.
- 
-[[http://​www.rtsoft.com/​games/​test/​test1.html|View the RTSimpleApp example in Flash here]] 
  
 ** NOTE ** : Proton using Domain Memory and Stage3D acceleration and Adobe has a rule that if your app makes 50k+ you have to pay them 9 percent. ​ Just warning ya.  Because of this, I (Seth) will probably be adding other web targets as well instead of depending on just Flash. ** NOTE ** : Proton using Domain Memory and Stage3D acceleration and Adobe has a rule that if your app makes 50k+ you have to pay them 9 percent. ​ Just warning ya.  Because of this, I (Seth) will probably be adding other web targets as well instead of depending on just Flash.
Line 73: Line 98:
   * Edit the /​flash/​makefile with a text editor and add/remove the correct source file names   * Edit the /​flash/​makefile with a text editor and add/remove the correct source file names
   * To change the render size of your .swf, change the SWF_SIZE setting in the makefile, and also change the two places the size appears in the test1.html file.   * To change the render size of your .swf, change the SWF_SIZE setting in the makefile, and also change the two places the size appears in the test1.html file.
 +  * Look at App.cpp in RTSimpleApp and notice a subtle change to the audio init - it now uses "new AudioManagerFlash",​ which solved a weird problem of AudioManager'​s virtuals not being overriden, I assume because the latest Flascc has some errors when certain kinds of vars are initialized earlier than it wants them to be.
   * That should be it!  If you have nonstandard media folders to copy from, you can fix it by editing build_prepare.bat   * That should be it!  If you have nonstandard media folders to copy from, you can fix it by editing build_prepare.bat
  
proton/flash_setup.txt ยท Last modified: 2015/09/09 02:00 by seth