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



On Jan 24, 10:54 pm, soundseller <[email protected]> wrote:
> Hi Ryan,
> thanks for your reply.
> What do you mean by that?
>
> On Jan 24, 10:44 pm, Ryan Florence <[email protected]> wrote:
>
> > Why's the css on the container and its parents?
>
> > Sent from my iPhone
>
> > On Jan 24, 2010, at 10:59 AM, soundseller <[email protected]>  
> > wrote:
>
> > > 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

Reply via email to