- new FlashPlayer(mp3, '', 'FlashPlayerContainer', 'FlashPlayer');
I'm trying to write a class that implements the Swiff class but I'm not sure how to pass through the first argument (the one where you would normall give the path to the .swf file) ..
I call my class like this:
FlashPlayer looks like this:
- var FlashPlayer = new Class({
- Implements: Swiff,
- initialize: function(mp3, title, container, id) {
- this.mp3 = mp3;
- this.title = title;
- this.container = container;
- this.id = id;
- },
- container: this.container,
- id: this.id,
- vars: {
- 'bg': '0xf8f8f8',
- 'leftbg': '0x006f3a',
- 'lefticon': '0xffffff',
- 'rightbg': '0xcccccc',
- 'rightbghover': '0x999999',
- 'righticon': '0x666666',
- 'righticonhover': '0xFFFFFF',
- 'text': '0x666666',
- 'slider': '0x666666',
- 'track': '0xFFFFFF',
- 'border': '0x666666',
- 'loader': '0xdddddd',
- 'soundFile': this.mp3
- },
- width: 290,
- height: 24
- });
Now I'm missing where to pass the actual .swf through, normally
- new Swiff(base + 'swf/player.swf', { ...
Can anyone offer any help with this ? Or even a point in the right direction.
Thanks in advance
- Alex


