Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting
FAQ Members List Calendar Today's Posts

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-31-2008, 11:31 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
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();
    }
  }

__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #2  
Old 07-31-2008, 11:33 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Try:

PHP Code:
setflashvariable("bgcolor""#000000"); 
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #3  
Old 07-31-2008, 11:41 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Nope, that doesn't do the trick. It seems like it should, though, since that's how you'd do it with HTML.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #4  
Old 07-31-2008, 11:43 PM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
Quote:
Originally Posted by LoneAngelIbesu View Post
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); 
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #5  
Old 07-31-2008, 11:45 PM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Yikes! That produces an access violation. I tried setbackgroundalpha(0.0), but it didn't work either.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #6  
Old 08-01-2008, 12:00 AM
Programmer Programmer is offline
Coder
Programmer's Avatar
Join Date: Jan 2008
Location: -78.464422, 106.837328
Posts: 449
Programmer has a spectacular aura aboutProgrammer has a spectacular aura about
Send a message via AIM to Programmer Send a message via MSN to Programmer Send a message via Yahoo to Programmer
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); 
__________________
- Iᴀɴ Zɪᴍᴍᴇʀᴍᴀɴ
Reply With Quote
  #7  
Old 08-01-2008, 12:06 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
I figured as much. Graal never did handle transparency well.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
  #8  
Old 08-01-2008, 12:30 AM
coreys coreys is offline
N-Pulse Assistant Manager
coreys's Avatar
Join Date: Mar 2005
Posts: 2,180
coreys has a spectacular aura about
Send a message via AIM to coreys Send a message via MSN to coreys Send a message via Yahoo to coreys
this.alpha = 1; ?
lol
I haven't messed with GuiFlash yet.
__________________

Quote:
*SlikRick: so should I even ask about your aim status?
*Xor: well if you want to
*Xor: but i am LARPING
*SlikRick: While on a computer?
*Xor: yes
*Xor: in my living room
*SlikRick: ahh
*Xor: i have a fort setup to hide from beasts
Reply With Quote
  #9  
Old 08-09-2008, 12:53 AM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
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.
Reply With Quote
  #10  
Old 08-09-2008, 01:02 AM
LoneAngelIbesu LoneAngelIbesu is offline
master of infinite loops
LoneAngelIbesu's Avatar
Join Date: May 2007
Location: Toldeo, Ohio
Posts: 1,049
LoneAngelIbesu has a spectacular aura aboutLoneAngelIbesu has a spectacular aura about
Send a message via AIM to LoneAngelIbesu
Thanks for responding. Hopefully you'll be able to figure out how to get transparent flash working with Direct3D/OpenGL in the future.
__________________
"We are all in the gutter, but some of us are looking at the stars."
— Oscar Wilde, Lady Windermere's Fan
Reply With Quote
Reply

Tags
flash, flash gui, requested feature, transparent flash, xml


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 02:10 AM.


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