Graal Forums  

Go Back   Graal Forums > Development Forums > NPC Scripting > New Scripting Engine (GS2)
FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-15-2006, 11:28 PM
Em Em is offline
Registered User
Em's Avatar
Join Date: Oct 2006
Posts: 288
Em is an unknown quantity at this point
GS2 Flash Problem

I'm trying to dislpay 'layout.swf'
I have layout.swf uploaded in the same folder as the level
The problem is that it keeps saying "Flash file cannot be found"
I also tried loading it off my website.. But it gave the same error message.

PHP Code:
//#CLIENTSIDE
function onCreated(){
  new 
GuiWindowCtrl("Flash_Window") {
  }
  
Flash_Window.destroy();
  
onWeaponfired();
}
function 
onWeaponfired(){
  new 
GuiWindowCtrl("Flash_Window") {
    
text "Flash";
    
x=0;
    
y=0;
    
width 320;
    
height 320;
    
destroyonhide true;
    
canresize false;
    
canclose true;
    
canminimize true;
    
canmaximize false;
    new 
GuiFlash("Flash") {
      
25;
      
40;
      
width 265;
      
height 220;
      
moviename "layout.swf";
      
playmovie();
    }
  }

Reply With Quote
  #2  
Old 10-16-2006, 12:34 AM
Skyld Skyld is offline
Script-fu
Skyld's Avatar
Join Date: Jan 2002
Location: United Kingdom
Posts: 3,914
Skyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud ofSkyld has much to be proud of
Send a message via AIM to Skyld
Any download errors in F2 window?
Reply With Quote
  #3  
Old 10-16-2006, 02:29 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
/find layout.swf on RC is showing the file?
Eventually also try "tryactivex = true;"
Reply With Quote
  #4  
Old 10-16-2006, 02:38 AM
Em Em is offline
Registered User
Em's Avatar
Join Date: Oct 2006
Posts: 288
Em is an unknown quantity at this point
find returns:

levels/debug/layout.swf: not downloadable, 56750 byte, 2006-10-15 15:53:43

On a side note, is it possible to load flash files off a website?
Reply With Quote
  #5  
Old 10-16-2006, 04:50 AM
Rick Rick is offline
PipBoy Extraordinaire!
Rick's Avatar
Join Date: Jul 2004
Location: Long Beach, California.
Posts: 831
Rick is on a distinguished road
Note the 'not downloadable'.
Reply With Quote
  #6  
Old 10-16-2006, 09:14 AM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
Nice advice Rick. Did you add *.swf in the folder options?
Reply With Quote
  #7  
Old 10-16-2006, 12:09 PM
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
Add

file debug/*.swf

to the folder configuration
Reply With Quote
  #8  
Old 10-16-2006, 04:23 PM
Em Em is offline
Registered User
Em's Avatar
Join Date: Oct 2006
Posts: 288
Em is an unknown quantity at this point
Quote:
Originally Posted by Rick View Post
Note the 'not downloadable'.
Thanks for that very eye opening piece of advice, it was oh so helpful.

I'm waiting on someone to change the folder config at the moment, but I expect it will work once .swf is added. Thanks Stefan.
Reply With Quote
  #9  
Old 10-17-2006, 01:03 AM
Em Em is offline
Registered User
Em's Avatar
Join Date: Oct 2006
Posts: 288
Em is an unknown quantity at this point
Well it's loading now, kinda..
It says : Downloading

and then this appears over my client:
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 01:48 AM.


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