Graal Forums

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

LoneAngelIbesu 07-31-2008 11:31 PM

Transparent Flash
 
I'm testing out Graal's flash capabilities with a little program that creates Flash graphs from an XML file. However, the Flash file it creates is transparent. With HTML, I can set the background color, but I don't know how to do that with a GuiFlash control.

Right now, the transparency is turned to black. I've tried setting the profile's fill color, but it didn't do anything. Any ideas, people?

Also, you can see the example by using this code:
PHP Code:

//#CLIENTSIDE
function onCreated() {
  new 
GuiWindowCtrl("FlashContainer") {
    
this.profile GuiWindowProfile;
    
this.width 410;
    
this.height 330;
    
this.screenwidth this.width 2;
    
this.screenheight this.height 2;
    
this.destroyonhide true;
    
this.canclose true;
    
this.closequery false;
    
this.clientrelative true;
    new 
GuiFlash("FlashData") { 
      
temp.base "http://www.shakytable.com/inverness/flash/charts.swf?library_path=";
      
temp.lib "http://www.shakytable.com/inverness/flash/charts_library&xml_source=";
      
temp.xml "http://www.shakytable.com/inverness/flash/test.xml";
      
this.0;
      
this.0;
      
this.width 400;
      
this.height 300;
      
this.tryactivex true;
      
//this.useownprofile = true;
      //this.profile.fillcolor = {76, 94, 111};
      
this.moviename temp.base temp.lib temp.xml;
      
this.playmovie();
    }
  }



Programmer 07-31-2008 11:33 PM

Try:

PHP Code:

setflashvariable("bgcolor""#000000"); 


LoneAngelIbesu 07-31-2008 11:41 PM

Nope, that doesn't do the trick. It seems like it should, though, since that's how you'd do it with HTML.

Programmer 07-31-2008 11:43 PM

Quote:

Originally Posted by LoneAngelIbesu (Post 1410340)
Nope, that doesn't do the trick. It seems like it should, though, since that's how you'd do it with HTML.

Then perhaps:

PHP Code:

// This...
backgroundalpha 0.0;
// ... or this
setbackgroundalpha(0.0); 


LoneAngelIbesu 07-31-2008 11:45 PM

Yikes! That produces an access violation. I tried setbackgroundalpha(0.0), but it didn't work either.

Programmer 08-01-2008 12:00 AM

Sad to say, but I've tried various methods and none of them have worked.
I suppose Graal doesn't support Flash transparency.

I tried these and it didn't work:
PHP Code:

useownprofile true;
profile.opaque false;
profile.fillcolor = {0000};
profile.transparency 0;

setFlashVariable("bgcolor""#000000");
setFlashVariable("wmode""transparent");
setBackgroundAlpha(0); 


LoneAngelIbesu 08-01-2008 12:06 AM

I figured as much. Graal never did handle transparency well.

coreys 08-01-2008 12:30 AM

this.alpha = 1; ?
lol
I haven't messed with GuiFlash yet.

Admins 08-09-2008 12:53 AM

The backgroundalpha variable is not used right now. It's not simple to get the flash control being displayed transparent on top of Direct3D/OpenGL. It might be possible in the future when using external windows, but those don't support flash yet anyway.

LoneAngelIbesu 08-09-2008 01:02 AM

Thanks for responding. :p Hopefully you'll be able to figure out how to get transparent flash working with Direct3D/OpenGL in the future.


All times are GMT +2. The time now is 12:28 PM.

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