Using Exec() Commands To Help Make A Game

 
#31

I'll take another stab at it. This assumes you have the entire internet path to the flash video you want to play. eg: http://Mysite.com/MyFlashVideo.swf.
Because the settings needed have quote marks in them, they can't be copied into variables in the scripts so I opted for a generic file to reside on the hard disk somewhere. The code for it is:

Code:


<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Flash Video</title>
</head>

<body style="margin:0">
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0"; width="100%" height="100%">
<param name="movie" value="http://Yoursite.com/MyFlashVideo.swf"; />
<param name="quality" value="high" />
<param name="wmode" value="transparent">
<PARAM NAME="SCALE" VALUE="exactfit">
<embed src="http://Yoursite.com/MyFlashVideo.swf";
quality="high"
type="application/x-shockwave-flash"
WMODE="transparent"
width="100%"
height="100%"
SCALE="exactfit"
pluginspage="http://www.macromedia.com/go/getflashplayer"; />
</object>
</body>
</html>


Just copy and paste the above into a notepad and save it under the name of your choice with the "html" extension.

Note that you have to enter the http path and swf name twice. Once for the "Movie" param name and once for the "embed src" tag.

Then, in the script, use the Exec command to run it when desired as in:

Code:


Exec("C:\RunTheFlash.html")


Don't know it that's quite what you want but maybe it will lead you to it.

#32

@WBS.

Thanks for the info you posted above. Unfortunately it didn't work for me. I put un the URL I was testing with but a blank page came up. Below is a screen grab of the web page containing the relevant info...

User-inserted image

www.bbc.co.uk/weather/2643743

I tried different variations and managed at one point to open the site, but wouldn't play the video. I guess I'm not to fussed with this at the moment so may put it on the back burner for now. but if you, or anyone else reading for that matter, would like to play around with it further if you have time, I would be grateful.

Steve.

#33

Yeah, that's the problem. To make my method work you have to know the exact path to the flash file you want to play, as well as, the name of the file. Looking at the source code for the web page you specified I believe I found the name and path for the file in question, Problem is, like many web sites, it is obfuscated so that people can't just play it alone. They want you to have to open the web page (and see the ads) to be able to play it. For this they also have their own system of playing the Flash files to further hide it.

I tried just adding the extension "swf" to see if it would play, but it wouldn't which confirmed my suspicions. Thing is, even if I could get it to play, the name will change every time they update the file so you would have to find the new name and enter it in the html file every time. That could probably be automated, but would not be worth it if you can't even play the file anyway. I'll look about and see if anyone has an answer to all this and let you know.

#34

Thanks buddy. It was worth a shot a guess. If you did find a solution that would be cool, but please don't put yourself out on my account looking in to this any further, and I'm greatful for the help you have offered already. Smile

Steve.

#35

I thought I'd revive this thread and ask if anyone has any EZ-Builder games they would like to share with everyone? I was going to try and come up with another game, but my current E4-B4 build is taking up my spare time.

#36

If I get more time or ideas to post some more game, I will post them here. Suggestions are always welcome.