calling an external program from ags..(solved)

Started by gho777, Mon 09/07/2007 21:26:01

Previous topic - Next topic

gho777

I'm building a educative "program" (not a game) and for some especific reasons it's easier for me to use AGS rather than any other thing. What I want is that when a specific object (that it could be translated as the player character) enters one determined region a new window pops showing a video (specificaly a flash movie pops). Is it posible??
if this belongs to de bfaq tell me,
also, sorry about the bad english, i'm argentinian

see you

Khris

That's not possible using an AGS command (cause there's only RunAGSGame which won't run flash movies).
As a workaround, you could use a launcher to run the AGS game, then have that launcher run in the background continuously checking if a certain file exists.
At the appropriate time, create the file using AGS and use it as trigger to make the launcher run the flash movie.

This isn't very elegant and you might run into several problems, but it's the only way afaik.

Sending messages back and forth between AGS and the flash movie is another issue, but it might be possible using the created files, too (not sure if action script supports file reading/writing).

strazer

AGS can play videos, but not flash (swf) files directly. You have to convert the flash animations to a video first.
And you can't play videos in a seperate window, they can only be played full-screen (unless you play the whole game in a window, obviously).

gho777

no thanks strazer, if i turn a swf  into a mpeg or avi the "game" will be way too heavy.
KhrisMUC that was a good idea, i'll see if it works fine., thanks.

SMF spam blocked by CleanTalk