Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Matthew 10 posts 31 karma points
    Aug 04, 2010 @ 12:36
    Matthew
    0

    Width and height not being populated

    In the macro I am setting the parameters to 960 / 250 for width and height respectively. In the generated source both variables are not filled. This is not happening with the CSSId property.

     

    The macro called below:

     

    <umbraco:Macro FileId="1196" FileURL="" Width="960" Height="250" CssId="flashDiv" UrlParameters="" Alias="InsertFlash" runat="server"></umbraco:Macro>
  • Matthew 10 posts 31 karma points
    Aug 04, 2010 @ 12:40
    Matthew
    0

    PS: This is how it is being generated:

     

     
    <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/swfobject/2.2/swfobject.js"> </script><script type="text/javascript">
    var flashvars = {};
    var params = {};
    var attributes = {};
    var path = "/media/1446/anim1.swf";
    var cssId = "flashDiv";
    var width = "";
    var height = "";
    swfobject.embedSWF( path, cssId, width, height, "9.0.0", false, flashvars, params, attributes);
    </script>
  • Anders Burla 2560 posts 8256 karma points
    Aug 04, 2010 @ 13:21
    Anders Burla
    0

    Could i get you to try and insert it though the wysiwyg editor? I got that working but i can see there is a problem when inserting it in a template, but to just see if you can also insert in editor.

  • Anders Burla 2560 posts 8256 karma points
    Aug 04, 2010 @ 15:57
    Anders Burla
    0

    Hi Matthew. I have uploaded a new version that fixes the bug. Please try that

  • Matthew 10 posts 31 karma points
    Aug 04, 2010 @ 17:29
    Matthew
    0

    Yeah this one works Anders! Good job there ;)

     

    The only "problem" is that the GUI is in scandinavian [looks like swedish]. Quite easy to understand but I guess if its i nEnglish more ppl would fine it helpful ;)

     

    GG on the fix ;)

  • Anders Burla 2560 posts 8256 karma points
    Aug 04, 2010 @ 22:21
    Anders Burla
    0

    Ahh yes that is danish :) I will translate it to english and release a new version.

    If you enjoy the package i will be happy if you vote it :)

  • Anders Burla 2560 posts 8256 karma points
    Aug 04, 2010 @ 22:43
    Anders Burla
    0

    Just uploaded 1.0.3 with english properties and names.

  • Matthew 10 posts 31 karma points
    Aug 05, 2010 @ 11:56
    Matthew
    0

    I am going to download it anders and make sure its fine so then we can sign off this thread as fixed ;)

     

    yeah i'll vote ;)

  • Matthew 10 posts 31 karma points
    Aug 05, 2010 @ 11:58
    Matthew
    0

    downloaded and confirmed as fixed! thanks!

     

    PS: Suggestion: I suggest in the Parameters one would put if there is a css menu over the flash

     

        var params = {wmode: "transparent"};
  • Michael 1 post 21 karma points
    Aug 01, 2014 @ 18:47
    Michael
    0

    @Anders - THANK YOU FOR THIS WONDERFUL SCRIPT!!

    @Matthew - Good idea!

    Just for the next noob like me who's looking and needs to know quickly, if you would like to add the "wmode" parameter mentioned by Matthew (or any other parameters), just add 

    varparams={wmode:"transparent"};

    to the XSLT script where the original has 

    var params = {};

    or put it on the line below it and make it easier (to me) to make it dynamic in the future!

    params.wmode = "transparent";
    var params = {};

    It may seem simple to those who are familiar, but when you are worried about "breaking" a GREAT piece of scripting, having the answer is a welcome relief!

    Just my 2 Lincolns!  I hope someone finds it useful.

    </H1>

Please Sign in or register to post replies

Write your reply to:

Draft