Not signed in (Sign In)

Vanilla 1.0.3 is a product of Lussumo. More Information: Documentation, Community Support.

    • CommentAuthordonnan
    • CommentTimeOct 29th 2007
     
    Can anyone please tell me where the problem is in this code.

    There is supposed to be a wave going right across the page. It's ok when you first load the page in IE but as soon as you click one of the links it stops working.

    It works great in Firefox. Just IE it breaks.

    http://www.edgewatergallery.com.au

    Thank you for your help.
    • CommentAuthorphilip
    • CommentTimeOct 29th 2007
     
    i see one error in your code that could have a significant impact: you have a space in your SWF ID. "Edgewater Gallery" should be "EdgewaterGallery". spaces in IDs are invalid and break things like CSS and javascript, which could very well be leading to your problem.

    good luck :)
    - philip
    • CommentAuthordonnan
    • CommentTimeOct 30th 2007
     
    Hi Philip,

    Thanks for your reply. It is most appreciated.

    I took the space out as you suggested but the problem still exists.

    I have found that if I close IE and re-open it then the flash works, but as soon as I click on a menu button it breaks or stops working. Also, I have enabled Video under the security tab in IE and it doesn't make any difference. I thought that might have been stopping it.

    Any other ideas.

    Look forward to hearing from you.

    Kind Regards
    Paul
    • CommentAuthorphilip
    • CommentTimeOct 30th 2007 edited
     
    when i launched it in IE6 i noticed the flash file *was* there after clicking a link, but it somehow got repositioned all the way to the left side of the screen, with most of the SWF being off-screen.

    based on this observation, i would start troubleshooting in the following places:
    * your CSS code for positioning the SWF/DIV (especially width and x positioning)
    * your javascript code for any references to DIV/CSS styling (especially width and x positioning)
    • CommentAuthordonnan
    • CommentTimeOct 30th 2007
     
    Thanks Philip,

    I will take a look at that. Let you know how it goes.

    Kind Regards
    Paul
    • CommentAuthordonnan
    • CommentTimeOct 30th 2007
     
    Hi Philip,

    Here is just the bare code. You can see the flash is actually running, but the width is just not working for some reason.

    <HTML>
    <HEAD>
    <TITLE>Untitled</TITLE>
    <script type="text/javascript" src="http://www.edgewatergallery.com.au/javascript/swfobject.js">
    </script>
    </HEAD>

    <BODY>
    <div id="flashbackground">
    <script type="text/javascript">
    var so = new SWFObject("http://www.edgewatergallery.com.au/flash/waves.swf", "Edgewater_Gallery", "100%", "150", "6.0.65");
    so.addParam("allowScriptAccess", "always");
    so.addParam("menu","false");
    so.addParam("wmode","transparent");
    so.write("flashbackground");
    </script>
    </div>

    </BODY>
    </HTML>

    Thanks for your help again.
    • CommentAuthorAran
    • CommentTimeOct 30th 2007
     
    My guess is that you are not strictly specifying position / size for the flashbackground <div>. At present the swf is supposed to be 100% of the div size, but if the div is not sized correctly, then the flash file will not size correctly either.

    Also, I noticed that on some of your page you are specifying player v9 as your erquirements. Unless you actually need AS3 functionality, you should publish and target your player version as low as possible (e.g. 6)

    Cheers,
    Aran
    • CommentAuthordonnan
    • CommentTimeOct 31st 2007
     
    Hi Aran,

    But if you look closely at the coding I have changed the version to: 6.0.65

    The <div flashbackground> has no values at all set in the CSS. I removed them all to try and get this going.

    Any other ideas?

    Thanks so much for your reply.

    Cheers
    Paul
    • CommentAuthorphilip
    • CommentTimeOct 31st 2007
     
    i noticed the SWF doesn't scale when i resize my browser, so i'm thinking your issue is probably a scaling and alignment issue in the SWF. try adding a scaling routine to your FLA to ensure it expands to fill the div at 100% width. something along the lines of:


    //Align stage to top left "TL"
    Stage.align = "TL";
    Stage.scaleMode = "noScale";

    //Place positioning values inside this function
    function positionMCs(){
    myMC._width = Stage.width;
    }

    //Listener to check for resizing
    var sizeListener:Object = new Object();
    sizeListener.onResize = function (){
    positionMCs();
    }
    Stage.addListener(sizeListener);


    but this is a SWFObject forum, so i can't help you troubleshoot the FLA code. sorry! :)

    good luck!
    - philip
    • CommentAuthorAran
    • CommentTimeOct 31st 2007
     
    Paul.

    player version - Umm. For me, on your homepage (and others) I get the below when viewing source:
    var so = new SWFObject("http://www.edgewatergallery.com.au/flash/waves.swf", "EdgewaterGallery", "100%", "150", "9", "#ffffff");

    div - that is what I am saying :) You need some values of position / size, so flash can do it's 100% width to some dimension.

    flash code - I definitely agree with Philip in that you should make sure you have your alignment and scalemode set correctly. Although the fact that it works as intended in FF leads me to believe that it is a CSS issue this time....


    Cheers,
    Aran
    • CommentAuthordonnan
    • CommentTimeOct 31st 2007
     
    Hi Phillip and Aran,

    Thanks again for your reply. I have been playing around with the CSS and I have added different settings all to no result.

    Looks like I might just have to scrap this one. Just can't understand why it works in FF and not in IE.

    Cheers
    Paul