Marcello suggested:
Use
getURL("javascript:void(setFlashHeight('wrapper','"+h+"')");

I tried adding that, same problem - good suggestion though; I know this can be an issue. And thanks to Kevin for his suggestions about pseudo urls.


At 09:05 AM 5/29/2006, Bernard wrote:
Do you have an URL where I (and others) can look?

Certainly: http://instapoem.glatz.com/v7.php

Here is another version where I stripped out the enclosing CSS divisions from all but the SWF:
http://instapoem.glatz.com/v8.php

To reproduce the problem, go to the URL in IE 6 (I'm on XP). You should see the poem with a purple background. Below this, to the right of "there should be an image here:", you'll see a small gif image with the text "List all by author".

Now hit F5 to refresh the screen. The small gif and/or the purple background will disappear. Refresh a few more times, should keep happening. I've tried this on a number of systems and the small gif almost always goes away on refresh. There is also a small curlycue image at the top that sometimes goes away.

If you flush the browser cache (tools/internet options/delete files), the problem also goes away, until you refresh again.

If you open the page in Firefox 1.5, the problem never occurs.

This is a stripped down version of a much larger page. There is a link at the bottom to pull down the .fla file. You can view source to see the page itself (it is static). If anyone is interested, I will be happy to mail any other source materials (css, etc.).

I'm primarily a backend developer, and the is the first time I've worked in Flash for some time, so I apologize for any glaring errors. This is for a site that will allow members to post their own poems. One of the goals was to allow them to specify different backgrounds and fonts. The SWF is transparent, so the background image shows through. It is set dynamically on the real site, and is here as a static style on line 18. The poem information and font specifier are sent to the SWF via FlashVars. In the action script, you'll see where I make the font assignment based on the values. The fonts themselves are stored in a second SWF and linked in as external library sources.

When the poem is loaded, a call is made in the action script to the function resize(), when in turn calls the javascript function setFlashHeight() in the HTML. This compares the calculated stage height passed from the action script to the value stored in the database, and if they are different, updates the database and redisplays the page (some of this is done in PHP and isn't visible in this static source I'm using in this example. I added a return statement at the top of setFlashHeight() for testing, so it isn't executed anyway here.

I discovered if I comment out the call to getURL() in the action script (line 128) the problem doesn't happen. That's what's making me suspect there is something wrong with the way I'm using this function, or there is a bug of some sort with Flash or IE (I suspect IE).

thanks to all for their excellent help, Phil



_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to