Hello. First off thank you to people that been helping me like Jimbodude.
I was told to try making a flash game in gmod work by using the example of Panel.StartAnimate off Garry’s wiki. Well first I updated the object code to get it to embed the flash…
function RunTest(ply, cmd, arg)
Winmain = vgui.Create(“Frame”)
Winmain:SetTitle( “StartAnimate() Test” )
Winhtml = vgui.Create( “HTML” , Winmain)
// local link = “http://softforfree.com/files/swf/donkeykong.swf” isn’t used but kept incase of change
local url = [[
<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0” width=“700” height=“500”>
<param name=“movie” value=“http://softforfree.com/files/swf/donkeykong.swf”>
<param name=“quality” value=“high”>
<embed src=“http://softforfree.com/files/swf/donkeykong.swf” quality=“high” pluginspage=“http://www.macromedia.com/go/getflashplayer” type=“application/x-shockwave-flash” width=“700” height=“500”>
Winhtml:SetHTML( url )
So I get this guy to run CL. It has a white background when it is suppose to be black, no big deal. The trouble is no keyboard input! I understand this might of been made for only video playback of like .flv.
So the question is does anyone know how to make keyboard input work? Should I just use another method to get the job done? I really wanna put this in my server and would appreciate any help!
P.S. - Alternatives like even using java or any way to get client side “mini games” to work is appreciated. Thank you!
Thank you for reading, and have a good rest of your weekend