Graal Forums

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

Toxen 01-28-2011 07:55 PM

GUI Flash Help!
 
Alright, Well I have my gui flash , and what i'm trying to do is use the gui flash to have a tinychat working in graal, problem is it trys to load the .swf file but the connection cant happen, is their anyway that I can make it work so their is a connection between the server or no?

fowlplay4 01-28-2011 11:17 PM

Show us how you're implementing it. Just downloading the swf file and playing it won't work.

There's also probably some unknown Graal limitations preventing it from working anyway.

Fulg0reSama 01-28-2011 11:23 PM

Quote:

Originally Posted by fowlplay4 (Post 1626254)
Show us how you're implementing it. Just downloading the swf file and playing it won't work.

There's also probably some unknown Graal limitations preventing it from working anyway.

Iunno man, back on N-Pulse Downsider was able to write a youtube video viewer NPC. You just put in the name of the video serial at the end of a link and you could watch it from the NPC.

cbk1994 01-28-2011 11:37 PM

This might help.

Toxen 01-29-2011 03:34 AM

Quote:

cbk1994 This might help.
That is basically what i used to start it out :O i was going to personalize it really once i started to get it to run but, I hit a wall.
PHP Code:

function onWeaponFired() {
  
this.active = !this.active;
  if (
this.active) {
    
Flash_Movie.destroy();
    
Flash_Loader.destroy(); 
  }else{
    
Flash_Movie.destroy();
    
Flash_Loader.destroy();
    
    new 
GuiFlash"Flash_Movie" ) {
      
width 500;
      
height 400;
      
= ( screenwidth width ) / 2;
      
= ( screenheight height ) / 2;
      
requiresactivex false;
      
requiresplugin false;
      
tryactivex true;
      
tryplugin true;
      
loopmovie false;
      
downloadwebfiles true;
      
moviename "http://tinychat.com/tinychat.swf";
    }
  
    new 
GuiFlash"Flash_Loader" ) {
      
Flash_Movie.x;
      
Flash_Movie.y;
      
width Flash_Movie.width;
      
height Flash_Movie.height;
      
requiresactivex false;
      
requiresplugin false;
      
tryactivex true;
      
tryplugin true;
      
loopmovie false;
      
downloadwebfiles true;
      
moviename "http://tinychat.com/tinychat.swf";
    }
  
   
sleep);
   
Flash_Loader.destroy();
  } 


Both gui flashes are both have the same link to it aswell, but the error i recieve from the tinychat once it plays is
"Connection failed.
Please check you network and proxy settings."

Any clue?

fowlplay4 01-29-2011 03:52 AM

There's probably some variables and values that need to be set as well.

Take a gander at: http://tinychat.com/developer/ and see if you can find anything.

Quote:

Originally Posted by Fulg0reSama (Post 1626256)
Iunno man, back on N-Pulse Downsider was able to write a youtube video viewer NPC. You just put in the name of the video serial at the end of a link and you could watch it from the NPC.

It's quite possible that it only allows communication via port 80 which should be enough to stream/download the flv files but this is just my speculation.

Toxen 01-29-2011 04:02 AM

@ fowlplay4 , I've been actually looking at that stuff, and to my understanding but this is just a guess, but i think it might be because the gui flash player just grabs the file and plays it theirs not really a connection or anything going back to it.

fowlplay4 01-29-2011 04:09 AM

Which client are you using?

Toxen 01-29-2011 04:11 AM

v5 , should I try v6? I mean I don't think it wld be able to be done D:

fowlplay4 01-29-2011 04:14 AM

Quote:

Originally Posted by Toxen (Post 1626344)
v5 , should I try v6? I mean I don't think it wld be able to be done D:

I think V6 is just as broken as far as Flash is concerned. All I see right now is some HTML.

Toxen 01-29-2011 04:16 AM

wait a second, graal can take html in someway?

Fulg0reSama 01-29-2011 04:28 AM

Quote:

Originally Posted by Toxen (Post 1626347)
wait a second, graal can take html in someway?

Yeah O.o

Toxen 01-29-2011 04:41 AM

Okay Where could I put like an html code and it would work, in a guimltextctrl?

callimuc 01-29-2011 05:00 AM

isnt it just like
PHP Code:

text "<center>here you should be able to write your stuff :D</center>"

what you have to add there?

Toxen 01-29-2011 05:08 AM

Tryed that, well i tryed using an html object with a bunch of variables but I could not get it to work without rc giving me errors :(.

Tigairius 01-29-2011 05:32 AM

- v6 does not support flash.
- for limited html, use guimltextctrl
- for advanced html, you will have to write your own interpreter.

Cloven 01-29-2011 05:48 AM

Quote:

Originally Posted by Toxen (Post 1626356)
Tryed that, well i tryed using an html object with a bunch of variables but I could not get it to work without rc giving me errors :(.

Should be able to use -some- html tags with GUI's. If doing "text = blah" isn't working try using setText(str) and make sure to use a GuiMLTextCtrl.

Example:
PHP Code:

My_Control.setText("<b><u><just:center>" YourTxtHere "</u></b>"); 

... or something to that effect.


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

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