Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   NPC Scripting (https://forums.graalonline.com/forums/forumdisplay.php?f=8)
-   -   Flash (https://forums.graalonline.com/forums/showthread.php?t=134257691)

Entrok 01-17-2010 02:58 PM

Flash
 
Only a small question, how do you insert a flash movie in to a GuiBlue?

and how would you do to show where the flv file is in filebrowser?

Tigairius 01-17-2010 07:54 PM

here's an example of how to do some flash.

PHP Code:

new GuiFlash("FlashThingy") {
  
width  560;
  
height 340;

  
0;
  
0;

  
requiresactivex  false;
  
tryactivex       true;
  
downloadwebfiles false;

  
setflashvariable("autostart""true");

  
moviename "filename";

  
playmovie();


You don't have to specify where the file is inside of the file browser, it automatically knows. However, if you want to play flash from a URL you just put "http://blah.blah/blah.swf" in as the filename.

LoneAngelIbesu 01-17-2010 09:00 PM

Also note that transparency is not supported.

Entrok 01-17-2010 10:58 PM

Quote:

Originally Posted by Tigairius (Post 1550935)
here's an example of how to do some flash.

PHP Code:

new GuiFlash("FlashThingy") {
  
width  560;
  
height 340;

  
0;
  
0;

  
requiresactivex  false;
  
tryactivex       true;
  
downloadwebfiles false;

  
setflashvariable("autostart""true");

  
moviename "filename";

  
playmovie();


You don't have to specify where the file is inside of the file browser, it automatically knows. However, if you want to play flash from a URL you just put "http://blah.blah/blah.swf" in as the filename.

Quote:

Originally Posted by LoneAngelIbesu (Post 1550942)
Also note that transparency is not supported.


Thanks both of you for helping me with that, rep++ to both.




Did try what you have told me, but the text tells me it cant find my file that are called video.flv and i callit moviename = "video.flv";

Switch 01-18-2010 04:25 AM

You need to specify the folder you saved it to in the folder options.
Just add something like this:
NPC Code:
file     flash/*.flv


Don't know if those are the correct amount of spaces, but now you can save flashes to levels/flash/ .

Vima 01-18-2010 11:41 PM

I thought flash didn't work on Graal? Someone told me that it didn't work :/

cyan3 01-19-2010 12:16 AM

Quote:

Originally Posted by Vima (Post 1551141)
I thought flash didn't work on Graal? Someone told me that it didn't work :/

I think it is working fine in the V6 client but will work on the V5 client but only if you have flash player 9 (doesn't work on higher/lower).

cbk1994 01-19-2010 12:24 AM

If Flash isn't working for you, try this fix. It's pretty easy to find a developer version of Flash 9. Let me know if you have trouble and I can find a link.

Quote:

Originally Posted by Switch (Post 1551015)
Don't know if those are the correct amount of spaces, but now you can save flashes to levels/flash/ .

The spaces don't matter. You can do it with one or fifty.

cyan3 01-19-2010 12:30 AM

Quote:

Originally Posted by cbk1994 (Post 1551153)
If Flash isn't working for you, try this fix. It's pretty easy to find a developer version of Flash 9. Let me know if you have trouble and I can find a link.

If you need Internet explorer I'm guessing it isn't possible to view flash on Linux or Mac?

cbk1994 01-19-2010 12:34 AM

Quote:

Originally Posted by cyan3 (Post 1551155)
If you need Internet explorer I'm guessing it isn't possible to view flash on Linux or Mac?

I don't think it ever has been possible. Graal uses the ActiveX, and IE is the only browser which for some reason still supports the old/insecure plugin format.

On the new Mac client it says "Can't show flash: Requires plugin".

However, Stefan said Skills Debug is entirely scripted in GS2, so I guess that'll be transferred soon.


All times are GMT +2. The time now is 05:57 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.