views:

737

answers:

2

This is driving me up the wall, I need the ratios to stop the resizing/odd padding occuring when the movie renders.

According to the Ratio Calculation help article (which is unhelpful since it follows the old, not recommended, way of replacing elements) it should show me a prompt, but it doesn't.

ratio.html

<html>
<head>
<script src="http://mydomain.com/wp-content/plugins/sifr/sifr.js" type="text/javascript"></script>
<script src="http://mydomain.com/wp-content/plugins/sifr/sifr-debug.js" type="text/javascript"></script>
<script src="http://mydomain.com/wp-content/plugins/sifr/sifr-config.js" type="text/javascript"></script>
<link rel="stylesheet" href="http://mydomain.com/wp-content/plugins/sifr/sifr.css" type="text/css" media="screen" />

</head>
<body>
<h2>Hello World!</h2>
</body>

sifr-config.js

var futura = { src: 'http://mydomain.com/wp-content/plugins/sifr/LTe50243.swf' };

// activate sIFR: sIFR.activate(futura);

sIFR.debug.ratios(futura, {
selector: 'h2' });

I can't work out why this will not give me a prompt - it still renders the movie perfectly fine but gives no prompt...

A: 

In the snippet you posted it looks like you commented the line with sIFR.activate()? You'll still have to activate sIFR when calculating the ratios.

I assume this is r436 and that you're trying in Firefox?

Mark Wubben
Not sure why it's commented, just a copy and paste error. It's not commented in the actual file. yep, r436 and tried Firefox, IE and Safari to no avail. There's certainly something working, because it still renders the text; just no prompt!
jakeisonline
Could you post a live link?
Mark Wubben
I have a feeling this was something to do with WordPress and various other JS interfering. I recreated it on a different server using just a blank page and having all required files within the same directory. It then worked fine, giving me the ratio's I needed. Odd.
jakeisonline
A: 

adding to the comment above: use the index.xhtml file instead of the index.html which doesn't work.

Also, and this is where i was hanging for a while, make sure you recompile all of your fonts with the new FLA file included in version 3. Old SWFs from version 2 won't work.

Good luck.

Check out what i did with SIFR: www.parcemusik.com =]

Sam3k