Java-Gaming.org Hi !
Featured games (90)
games approved by the League of Dukes
Games in Showcase (711)
Games in Android Showcase (213)
games submitted by our members
Games in WIP (785)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
   Home   Help   Search   Login   Register   
  Show Posts
Pages: [1]
1  Games Center / Archived Projects / Re: Psycho Engine on: 2010-01-24 20:59:04
pretty good
2  Games Center / Showcase / Re: Albion on: 2010-01-24 20:41:53
the applet loaded in about 2 seconds, how did you do that?

seems like a good game so far,
very smooth, but needs to have 'party mode' as others have mentioned
3  Java Game APIs & Engines / JavaFX / Re: How do you play a f**king sound? on: 2010-01-23 15:32:35
it seems you have to load a sound from a remote URl instead of locally,
images can be loaded locally however which confuses the issue,
 Huh

thanks for the help
4  Java Game APIs & Engines / JavaFX / Re: Crayon Physics on: 2010-01-20 20:22:20
tried it on opera and firefox, the logo just appeared for 5 minutes then I closed the tab
5  Java Game APIs & Engines / JavaFX / Re: How do you play a f**king sound? on: 2010-01-20 20:04:04
if this line is left out the sound doesnt play:
 repeatCount: MediaPlayer.REPEAT_FOREVER

but when it is included it  causes a heap error and crashes the program
6  Java Game APIs & Engines / JavaFX / Re: How do you play a f**king sound? on: 2010-01-20 04:47:19
still doesnt work
7  Java Game APIs & Engines / JavaFX / Re: How do you play a f**king sound? on: 2010-01-18 23:59:14
no didnt work
8  Java Game APIs & Engines / JavaFX / How do you play a f**king sound? on: 2010-01-18 21:29:20
Ive been trying for hours to play a WAV file but it always stays silent

heres my code
package soundboardfx;
import javafx.scene.media.MediaPlayer;
import javafx.scene.media.Media;
import javafx.stage.Stage;
import javafx.scene.Scene;
import javafx.scene.layout.HBox;
import javafx.ext.swing.SwingButton;




var player: MediaPlayer =  MediaPlayer {
    autoPlay: true
    //repeatCount: MediaPlayer.REPEAT_FOREVER
    volume: 1.0
    mute: false
    stopTime: 0s
    media: Media {
        source: "{__DIR__}areyouracist.wav"
    }
};

Stage {
    title: "meu barulhinho - MIDI file"
    width: 250
    height: 80
    scene: Scene {
        content: HBox{
            spacing: 10
            content: [
                SwingButton {
                    text: "play"
                    action: function() {
                        player.play();
                    },
                },
                SwingButton {
                    text: "pause"
                    action: function() {
                        player.pause();
                    }
                }]
        }
    }
};
Pages: [1]
 
numerical (191 views)
2017-02-21 07:32:16

numerical (191 views)
2017-02-21 07:31:46

theagentd (300 views)
2017-02-18 13:42:33

theagentd (300 views)
2017-02-18 13:35:16

h.pernpeintner (1466 views)
2017-01-24 22:39:11

h.pernpeintner (1452 views)
2017-01-24 22:38:32

Galdo (2018 views)
2017-01-12 13:44:09

Archive (2055 views)
2017-01-02 05:31:41

0AndrewShepherd0 (2592 views)
2016-12-16 03:58:39

0AndrewShepherd0 (2333 views)
2016-12-15 21:50:57
List of Learning Resources
by elect
2016-09-09 09:47:55

List of Learning Resources
by elect
2016-09-08 09:47:20

List of Learning Resources
by elect
2016-09-08 09:46:51

List of Learning Resources
by elect
2016-09-08 09:46:27

List of Learning Resources
by elect
2016-09-08 09:45:41

List of Learning Resources
by elect
2016-09-08 08:39:20

List of Learning Resources
by elect
2016-09-08 08:38:19

Rendering resources
by Roquen
2016-08-08 05:55:21
java-gaming.org is not responsible for the content posted by its members, including references to external websites, and other references that may or may not have a relation with our primarily gaming and game production oriented community. inquiries and complaints can be sent via email to the info‑account of the company managing the website of java‑gaming.org
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!