LOGIN Don't have an account yet?   Register

Forgot password?
 

Flash component transparency (XML Banner Rotator with Thumbs)

  • avatar
    leszekt
    on 21/8/11
    Hi,

    I cant set flash component transparency. There is my configuration:

    html:
    java script:
    var cacheBuster = "?t=" + Date.parse(new Date());

    var stageW = "460"; //"100%";
    var stageH = "329"; //"100%";

    // ATTRIBUTES
    var attributes = {};
    attributes.id = 'FlabellComponent';
    attributes.name = 'FlabellComponent';

    // PARAMS
    var params = {};
    //params.bgcolor = "#000000";
    params.menu = "false";
    params.scale = 'noScale';
    params.wmode = "transparent";
    params.allowfullscreen = "true";
    params.allowScriptAccess = "always";

    /* FLASH VARS */
    var flashvars = {};

    /// if commented / delete these lines, the component will take the stage dimensions defined
    /// above in "JAVASCRIPT SECTIONS" section or those defined in the settings xml
    flashvars.componentWidth = stageW;
    flashvars.componentHeight = stageH;

    /// path to the content folder(where the xml files, images or video are nested)
    /// if you want to use absolute paths(like "http://domain.com/images/....") then leave it empty("")
    flashvars.pathToFiles = "/banner/";


    flashvars.xmlPath = "xml/banner.xml";

    swfobject.embedSWF("/preview.swf" + cacheBuster, attributes.id, stageW, stageH, "9.0.124", "/Scripts/expressInstall.swf", flashvars, params, attributes);


    XML:
    startWith = "1"
    random = "false"

    cellWidth = "500"
    cellHeight = "340"

    showMinTime = "0.1"
    showMaxTime = ".5"

    blur = "0"
    netTime = "0.2"
    alphaNet = "30"
    netColor = "0xFFFFFF"

    controllerVisible = "false"
    autoPlay = "true"

    controllerDistanceX = "10"
    controllerDistanceY = "10"

    distanceBetweenControllerElements = "10"
    distanceBetweenThumbs = "5"

    backColorThumbs = "0x000000"
    overColorThumbs = "0x35D6FD"

    colorNavigation = "0x000000"
    navigationBackAlpha = "70"
    autohideNavigation = "true"
    autohideTime = "2"

    prevStr = "PREV"
    nextStr = "NEXT"

    visibleThumbs = "6"
    thumbSize = "30"
    minAlpha = "40"
    strokeTickness = "0"

    disableTooltip = "true"
    tooltipTextColor = "0x35D6FD"
    tooltipFillColor = "0x000000">

    Now I have white background. I'am using png filef with transparency. In other flash components (not from flabell) to have transparent background, I set "params.wmode = "transparent";" and deleted background attributes from XML.
    Please help.

    Last edit on 21/8/11
  • avatar corneliu.chitanu
    on 31/8/11
    Hello,

    You shouldn't have deleted the background attributes in the XML. You need to set the transparency to the background to 0. You'll need to set this property in the XML back:

    backgroundTransparency="100"

    and set it to "0".

    This should do it.

rss Subcribe to topic RSS

Post a comment

Please login to join the discussions. Don't have an account? Register (it takes 30 seconds)

This week's featured product

Store Locator

This cool AJAX application will enhance your website by showing your stores' locations. You can also display an image and a short description so your users know exactly where to find your business.

Become a premium member

premium membership Flabell and Themesbell membership provides users with the ability to download any of our components for Adobe Flash and website themes for free, during an entire year.
read more