Swiff problem with 100% Flash size - Firefox 3.5.7

12 views
Skip to first unread message

soundseller

unread,
Jan 24, 2010, 12:59:12 PM1/24/10
to MooTools Users
Hi,
I am having following problem:
In firefox 3.5.7 using swiff, if I set the flash's size to 100%/100%
the flash movie ends up being displayed at 0px/0px.

var startflash = new Swiff('index.swf', {
id: 'startflash',
width: '100%',
height: '100%',
container: $('startflash'),...

I have also tested it with Chrome&Opera and it works flawlessly.
Any idea what I am doing wrong?

Thanks in advance

Bob

Ryan Florence

unread,
Jan 24, 2010, 1:44:42 PM1/24/10
to mootool...@googlegroups.com
Why's the css on the container and its parents?

Sent from my iPhone

On Jan 24, 2010, at 10:59 AM, soundseller <sound...@googlemail.com>
wrote:

soundseller

unread,
Jan 24, 2010, 1:54:40 PM1/24/10
to MooTools Users
Hi Ryan,
thanks for your reply.
What do you mean by that?


On Jan 24, 10:44 pm, Ryan Florence <rpflore...@gmail.com> wrote:
> Why's the css on the container and its parents?
>
> Sent from my iPhone
>

> On Jan 24, 2010, at 10:59 AM, soundseller <soundsel...@googlemail.com>  

soundseller

unread,
Jan 25, 2010, 4:55:57 AM1/25/10
to MooTools Users
Ok I got it working now:
html:
<div class="startflash_wrapper">
<div id="startflash">
<div class="error">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="<?=base_url()?>images/no_flash.png" alt="" width="550"
height="400"/>
</a>
</div>
</div>
</div>
javascript:

var startflash = new Swiff('index.swf', {
id: 'index',
container: $('startflash'),

width: '100%',
height: '100%',
params: {
id: 'index',
name: 'index',
salign: 'TL',
scale: 'noScale',
allowscriptsaccess: 'always'
},
vars: {},
callBacks: {}
});
});
css:
html,body{margin:0;height:100%;overflow: hidden;}
.startflash_wrapper{ height: 100%;}
#startflash{ height: 100%;} // I forgot to give the container itself
a height of 100% too.

Cheers

Reply all
Reply to author
Forward
0 new messages