OpenMovie ....gif
Archives Forums/BlitzPlus Bug Reports/OpenMovie ....gif
| ||
OpenMovie("my.gif") Invalid Movie Graphics handle |
| ||
OpenMovie ("my.gif") Results the error display "Invalid Movie Graphics handle" Seek expert help, what method can play the animation Gif? |
| ||
You can find an example in the IDE help. Online version here: http://www.blitzbasic.com/bpdocs/command.php?name=OpenMovie&ref=2d_a-z You will have have to adapt it slightly to find your my.gif movie. |
| ||
If the GIF animation with transparent effect, when opened, will appear above the error information. |
| ||
"Invalid Movie Graphics handle" would usually mean OpenMovie couldn't find the file. If you use simply "my.gif" then the current directory will be searched. If my.gif is not there it will not be found. I tried the example from the docs and it worked, using this: ![]() |
| ||
thanks |
| ||
The program returns "Error - Movie not loaded!" Has not succeeded, I do not know why. |
| ||
Then the file was not found by the program. There is a check, if the file was loaded, and if not then it will display the Error:; check to see if it loaded okay If movie=0 Then RuntimeError "Error - Movie not loaded!" If Not(MoviePlaying(movie)) Then RuntimeError "Error - Movie not playing!" the filename, from the example, is: movie=OpenMovie("media/hat.gif") To fix this error, controll if the filename, on your hard disk, is correct. Use the fixed paths,if the filename is the same. For example use "c:\blitzplus\media\my.gif" Make sure that you do not use "/" instead of "\" for path names. "c:/blitzplus/media/my.gif" would produce the error. (see floyds post from here) And at last, using relative paths, save the file in the parent folder, from which you can access the media folder. if the file is in c:\blitz+\media then save the file to c:\blitz+\ folder if your error is still due to: If the GIF animation with transparent effect, when opened, will appear above the error information. then please .zip (7z,rar etc) your troublesome picture and upload it to here, and give us the link to download it. |
| ||
I use the code is an example of the software, I promise to put hat.gif the same directory as the code, then the code into “movie = OpenMovie ( "hat.gif")” is still not. |