Fade effect bold text in all IEs

I have created the following page
Cnet about
and used the spry fade effect on the section of text at the bottom
below the "A Sampling of what we offer" graphic.
It works fine but in IE6 and IE7 when viewed on an LCD
monitor, the bold blue text looks very choppy. I assume this has to
do with bad handling of opacity in IE. Does anyone know a hack to
fix this?

Hi artdoggy,
That is an IE bug with several workarounds. The first
workaround which is much simpler, is to specify a background color
or font on the element that you are fading in. This somehow
triggers IE to avoid this behavior.
The other workaround is to use an effect onPostEffect
observer or finish function to unset the filter function on the
element. You can see sample of how to use an observer here:
http://labs.adobe.com/technologies/spry/samples/effects/observers_sample.html
You'll have to do something like this in your observer:
effect.element.style.filter = "";
--== Kin ==--

Similar Messages

  • Fade effect with DataGrid. Header text are visible ... :(

    Hi,
    the problem with DataGrid.
    If I specify the Fade effect for showing DataGrid, all lines
    are showing correct, so the fade works, but the headers text and
    the data texts are showing immediately (like without Fade).
    Is it possible to avoid this effect? I want to show my
    datagrid from alpha 0.00 to 1.00 for ALL elements (for lines, for
    headers, for headers TEXT and of course of data TEXT)
    Is it a bug?

    I had the same problem. I havent fixed it but I did a work
    around and used a WipeDown effect in parallel. It eliminates the
    headers of appearing immediately.

  • Fade Effect working weird.

    My little app is driven by a TabNavigator with each tab
    showing a different "page" with DataGrids/Form/TabNavs etc. I am
    trying to fade from "page" to "page" and all looks fine except Text
    types on the "page". They don't fade, just abruptly disappear once
    the fadeOut alpha reaches some number. Am I missing something? All
    help is appreciated.

    "rtalton" <[email protected]> wrote in
    message
    news:gjp0v7$1r7$[email protected]..
    > In order to use Fade effects on text, the font must
    first be embedded.
    Or, if you can get direct access to the text objects, you can
    set the
    blendMode of the text to "layer", and then Fade effects will
    work on them
    properly.

  • Fade effect question

    I can implement a fade in effect with a single image, but I
    cannot get the same code to work with the arrayed images generated
    in the "photoDemo" tutorial on the Adobe site. Sho Kuwamoto has a
    fade in working in his tutorial (
    http://labs.adobe.com/technologies/flexbuilder2/tutorials/#)
    though with different syntax (that I can't make work either), so I
    know the array isn't the issue. Why does this work in one, but not
    the other, example?
    Any help would be greatly appreciated. I'm using the FB3
    Beta for the moment.
    Thanks in advance.
    1) In this example, the fade out works fine ...
    <?xml version="1.0"?>
    <!-- Simple example to demonstrate the Fade effect. -->
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml">
    <mx:Fade id="fadeOut" duration="1000" alphaFrom="1.0"
    alphaTo="0.0"/>
    <mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0"
    alphaTo="1.0"/>
    <mx:Panel title="Fade Effect Example" width="95%"
    height="95%"
    paddingTop="5" paddingLeft="10" paddingRight="10"
    paddingBottom="5">
    <mx:Text width="100%" color="blue"
    text="Use the Fade effect to show or hide the text and
    image. Use an embedded font when applying the Fade effect to
    text."/>
    <mx:Image source="photo.png"
    visible="{cb1.selected}"
    hideEffect="{fadeOut}" showEffect="{fadeIn}"/>
    <mx:CheckBox id="cb1" label="visible"
    selected="true"/>
    </mx:Panel>
    </mx:Application>
    2) In the itemRenderer ("thumbnails" here) of the "photoDemo"
    tutorial on the Adobe site (
    http://learn.adobe.com/wiki/display/Flex/1b.+Code+Files),
    it does not. It compiles and runs, but seems to ignore the effect
    call. Why?
    "thumbnails" ...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:VBox xmlns:mx="
    http://www.adobe.com/2006/mxml"
    width="125" height="125"
    horizontalAlign="center"
    paddingBottom="5" paddingLeft="5" paddingRight="5"
    paddingTop="5">
    <mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0"
    alphaTo="1.0"/>
    <mx:Image source="{data.thumbnail.url}"
    showEffect="{fadeIn}" />
    </mx:VBox>
    main ...
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute">
    <mx:Script>
    <![CDATA[
    import mx.collections.ArrayCollection;
    import mx.rpc.events.ResultEvent;
    [Bindable]
    private var photoFeed:ArrayCollection;
    private function requestPhotos():void {
    photoService.cancel();
    var params:Object = new Object();
    params.format = 'rss_200_enc';
    params.tags = keywords.text;
    photoService.send(params);
    private function photoHandler(event:ResultEvent):void {
    photoFeed = event.result.rss.channel.item as
    ArrayCollection;
    ]]>
    </mx:Script>
    <mx:HTTPService id="photoService" url="
    http://api.flickr.com/services/feeds/photos_public.gne"
    result="photoHandler(event)" />
    <mx:states>
    <mx:State name="panel1Zoomed">
    <mx:SetProperty target="{panel1}" name="width"
    value="831"/>
    <mx:SetProperty target="{panel1}" name="height"
    value="455"/>
    <mx:AddChild relativeTo="{panel1}"
    position="lastChild">
    <mx:TileList x="9" y="55" width="791" height="353"
    dataProvider="{photoFeed}"
    itemRenderer="thumbnails"></mx:TileList>
    </mx:AddChild>
    </mx:State>
    </mx:states>
    <mx:Panel x="10" y="10" width="542" height="75"
    layout="absolute" id="panel1" resizeEffect="Resize">
    <mx:Label x="10" y="10" text="Keyword:" width="63"/>
    <mx:TextInput x="116" y="8" id="keywords"/>
    <mx:Button x="307" y="8" label="search"
    id="keywordButton"
    click="requestPhotos();currentState='panel1Zoomed'"/>
    </mx:Panel>
    </mx:Application>

    I've never used this effect.  Maybe if you preload the image(s)...
    Go to Behaviors panel.
    Click the plus sign (+).
    From the drop menu, select Preload Images.
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com

  • E73 "fade" effect

    Does anyone know how to get rid of the "fade" effect on the E73 when switching screens between apps and such?  It just seems clunky and slow when it does that.  The E71 doesn't have it and it seemd much "faster".
    Solved!
    Go to Solution.

    I own an E73 and believe the "fade effect" is built into all FP2 phones.  If there is a way to disable it, I haven't noticed.  Actually, given my belief in the above, I never bothered to explicitly look.  I would be interested if there is a way, but think we're out of luck.

  • I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either i can have all the Style in Bold Text or in Kursiv Text :(

    I need in more lines of the Index some words in Bold text and some others in Kursiv text. How can i get it? It seems to me that either I can edit a Style only in Bold Text or in Kursiv Text
    I make you an example to clear what I really need:
    Index
    Introduction
    I. Leonardo's Monnalisa
    II. Leonardo's Battaglia
    Bibliography
    Please HELP HELP HELP

    What version of Pages are you referring to?
    Basically if you are talking about the Table of Contents in Pages and want to have different character styles within paragraphs in the T.O.C. you will have to export the T.O.C. and bring it back in as text and change that.
    Peter

  • Workaround for the Fade/Appear blocky text problem in IE

    Just wanted to share with folks a workaround for the IE
    "blocky text" problem that you see when using Fade effects like the
    one used in this example:
    http://labs.adobe.com/technologies/spry/samples/data_region/DetailRegionEffectsSample.html
    It turns out if you set the 'background' CSS property on the
    element you are fading, that IE properly renders the text. So to
    fix the effects sample above, all you would have to do is modify
    this CSS rule in the file to place a background color on the
    description region to get things to look good in IE:
    #description {
    opacity: 0;
    filter: alpha(opacity=0);
    background: white;
    So if folks have been avoiding the use of effects because it
    makes things look terrible in IE, you now have a workaround.
    --== Kin ==--

    I was using spry's AppearFade effect to transition between
    "slides" in what equates to a viewstack that I created.
    Then I noticed that it would take bold text in IE and make it
    look all smudgy or blurry.
    Well, after working on it for a while, I got to thinking,
    "This problem is specific to text rendered in MicroSofts
    browser"... "Hmmm, I wonder".
    So, I tried using this style rule: [ font-family:"MS Sans
    Serif",Arial, Geneva, sans-serif; ].
    Lo and behold, feed the stupid MS browser an MS font and it
    does not blur the text.
    I just wanted to get this our there. Because someone might
    want to solve this in a way where they don't have to set a
    background color...

  • Image rotation with fade effect

    I am new to the spry framework and have just started going
    through the examples to see if I could create an image rotator that
    fades the images into each other when changing. I have taken
    snippets from different places to do this and think I have the
    answer but really wanted some feedback to sanity check and let me
    know if this is the best way of doing it. If it is, then I hope
    others will find it useful.
    Here is the url to the example:
    Image
    rotation example
    And here is the code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Sample Image Rotation</title>
    <meta http-equiv="content-type" content="text/html;
    charset=iso-8859-1" />
    <meta http-equiv="X-UA-Compatible"
    content="IE=7;FF=3;OtherUA=4" />
    <meta name="author" content="www.baytree-cs.com - Peter
    Barkway"/>
    <meta name="copyright" content="(C)2006 Baytree Computer
    Services, All right reserved."/>
    <meta name="abstract" content="ISM Homepage" />
    <meta name="description" content="ISM Homepage" />
    <meta name="keywords" content="ISM Homepage"/>
    <meta name="robots" content="all,index,follow"/>
    <meta name="distribution" content="global"/>
    <meta name="mssmarttagspreventparsing"
    content="true"/>
    <meta name="rating" content="general"/>
    <style type="text/css">
    .element{
    float:left;
    position: relative;
    width: 350px;
    text-align: center;
    #display{
    opacity: 0;
    filter: alpha(opacity=0);
    #animate{
    left: -350px;
    opacity: 1;
    filter: alpha(opacity=100);
    </style>
    </head>
    <body>
    <noscript><h1>This page requires JavaScript.
    Please enable JavaScript in your browser and reload this
    page.</h1></noscript>
    <div id="container">
    <div id="display" class="element"
    spry:detailregion="dsImg"><img src="<?php echo
    $rootDir.$baseDir;?>/{@base}{@path}"/></div>
    <div id="animate" class="element"
    spry:detailregion="dsImg2"><img src="<?php echo
    $rootDir.$baseDir;?>/{@base}{@path}"/></div>
    <p class="clear"></p>
    </div>
    <script type="text/javascript"
    src="js/xpath.js"></script>
    <script type="text/javascript"
    src="js/SpryData.js"></script>
    <script type="text/javascript"
    src="js/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGalleries = new Spry.Data.XMLDataSet("spry.php",
    "galleries/gallery", { method: "POST", postData:
    "c=1&d=<?php echo $baseDir;?>", headers: {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
    var dsImg = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var dsImg2 = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var imageInterval = 8000; // 8 seconds
    var imageFadeInterval = 4000; // 4 seconds
    var image2Loaded = null;
    var effect = new Spry.Effect.Fade('animate', {from: 100, to:
    0, toggle: true, duration: imageFadeInterval});
    // Prepare an observer that will change the opacity of the
    initially
    // hidden element in oposition with the initially visible
    element
    var obs1 = new Object;
    // On each effect step we calculate the complementary
    opacity for the other image container.
    obs1.onStep = function(ef){
    if (typeof otherEl == 'undefined')
    otherEl = document.getElementById('display');
    var opacity = 0;
    if(/MSIE/.test(navigator.userAgent)){
    opacity = Spry.Effect.getStyleProp(ef.element,
    'filter').replace(/alpha\(opacity([0-9]{1,3})\)/, '$1');
    otherEl.style.filter = "alpha(opacity=" + parseInt(100 * (1
    - opacity), 10) + ")";
    }else{
    opacity = Spry.Effect.getStyleProp(ef.element, 'opacity');
    otherEl.style.opacity = (1 - opacity);
    // Attach the observer to the Fade effect
    effect.addObserver(obs1);
    function fadeInContent() {
    // 1st time in so set the current rows so that the 'animate'
    set is 1 ahead of the 'display' set
    if(image2Loaded == null) {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 2)
    % dsImg.getData().length);
    image2Loaded = 0;
    } else {
    if(image2Loaded) {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    image2Loaded = 0;
    } else {
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    image2Loaded = 1;
    effect.start();
    var obs2 = {
    onPostLoad: function() {
    setInterval("fadeInContent()", imageInterval);
    dsImg.addObserver(obs2);
    </script>
    </body>
    </html>

    I think that I might have got this going now. Here is the
    code if anyone wants to use it.
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
    Transitional//EN"
    http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="
    http://www.w3.org/1999/xhtml"
    xmlns:spry="
    http://ns.adobe.com/spry">
    <head>
    <title>Sample Image Rotation</title>
    <meta http-equiv="content-type" content="text/html;
    charset=iso-8859-1" />
    <meta http-equiv="X-UA-Compatible"
    content="IE=7;FF=3;OtherUA=4" />
    <meta name="author" content="www.baytree-cs.com - Peter
    Barkway"/>
    <meta name="copyright" content="(C)2006 Baytree Computer
    Services, All right reserved."/>
    <meta name="abstract" content="ISM Homepage" />
    <meta name="description" content="ISM Homepage" />
    <meta name="keywords" content="ISM Homepage"/>
    <meta name="robots" content="all,index,follow"/>
    <meta name="distribution" content="global"/>
    <meta name="mssmarttagspreventparsing"
    content="true"/>
    <meta name="rating" content="general"/>
    <style type="text/css">
    .element{
    float:left;
    position: relative;
    width: 350px;
    text-align: center;
    #display{
    opacity: 0;
    filter: alpha(opacity=0);
    #animate{
    left: -350px;
    opacity: 1;
    filter: alpha(opacity=100);
    </style>
    </head>
    <body>
    <noscript><h1>This page requires JavaScript.
    Please enable JavaScript in your browser and reload this
    page.</h1></noscript>
    <div id="container">
    <div id="display" class="element"
    spry:detailregion="dsImg"><img src="<?php echo
    $rootDir.$baseDir;?>/{@path}"/></div>
    <div id="animate" class="element"
    spry:detailregion="dsImg2"><img src="<?php echo
    $rootDir.$baseDir;?>/{@path}"/></div>
    <p class="clear"></p>
    </div>
    <script type="text/javascript"
    src="js/xpath.js"></script>
    <script type="text/javascript"
    src="js/SpryData.js"></script>
    <script type="text/javascript"
    src="js/SpryEffects.js"></script>
    <script type="text/javascript">
    var dsGalleries = new Spry.Data.XMLDataSet("spry.php",
    "galleries/gallery", { method: "POST", postData:
    "c=1&d=<?php echo $baseDir;?>", headers: {
    "Content-Type": "application/x-www-form-urlencoded; charset=UTF-8"
    var dsImg = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var dsImg2 = new Spry.Data.XMLDataSet("spry.php",
    "gallery/photos/photo", { method: "POST", postData:
    "c=2&d=<?php echo
    $baseDir;?>/{dsGalleries::@base}&s={dsGalleries::sitename}",
    headers: { "Content-Type": "application/x-www-form-urlencoded;
    charset=UTF-8" } });
    var imageInterval = 4000; // 8 seconds
    var imageFadeInterval = 2000; // 4 seconds
    var effect = new Spry.Effect.Fade('animate', {from: 100, to:
    0, toggle: true, duration: imageFadeInterval});
    // Prepare an observer that will change the opacity of the
    initially
    // hidden element in oposition with the initially visible
    element
    var obs1 = new Object;
    // On each effect step we calculate the complementary
    opacity for the other image container.
    obs1.onStep = function(ef){
    if (typeof otherEl == 'undefined')
    otherEl = document.getElementById('display');
    var opacity = 0;
    if(/MSIE/.test(navigator.userAgent)){
    opacity = Spry.Effect.getStyleProp(ef.element,
    'filter').replace(/alpha\(opacity([0-9]{1,3})\)/, '$1');
    otherEl.style.filter = "alpha(opacity=" + parseInt(100 * (1
    - opacity), 10) + ")";
    }else{
    opacity = Spry.Effect.getStyleProp(ef.element, 'opacity');
    otherEl.style.opacity = (1 - opacity);
    // Attach the observer to the Fade effect
    effect.addObserver(obs1);
    function fadeInContent() {
    // 1st time in so set the current rows so that the 'animate'
    set is 1 ahead of the 'display' set
    //use this flag to avoid the effect running on load
    if (typeof image2Loaded == 'undefined') {
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 2)
    % dsImg.getData().length);
    var curRow = dsImg.getCurrentRow();
    image2Loaded = 0;
    } else {
    if(image2Loaded) {
    var img = document.getElementById('display');
    dsImg.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    var curRow = dsImg.getCurrentRow();
    image2Loaded = 0;
    } else {
    var img = document.getElementById('animate');
    dsImg2.setCurrentRowNumber((dsImg.getCurrentRowNumber() + 1)
    % dsImg.getData().length);
    var curRow = dsImg2.getCurrentRow();
    image2Loaded = 1;
    var imgPath = '<?php echo $rootDir.$baseDir;?>/' +
    curRow["@path"];
    var gImageLoader = new Image();
    gImageLoader.onload = function()
    effect.start();
    gImageLoader.src = imgPath;
    var obs2 = {
    onPostLoad: function() {
    setInterval("fadeInContent()", imageInterval);
    dsImg2.addObserver(obs2);
    </script>
    </body>
    </html>

  • Example Fade effect for data change?

    Is there an example of how to use the fade effect when
    transitioning from one record to another in a dataset?
    What I have now is causing a blinking. The old data fades
    out, new data appears then fades in.
    <script type="text/javascript">
    <!-- // special effects - Fade in/out -->
    var fadePOout = new Spry.Effect.Fade('PO',{duration: 1000,
    from: 100, to: 0});
    var fadePOin = new Spry.Effect.Fade('PO',{duration: 1000,
    from: 0, to: 100});
    function observerPO(notificationType, notifier, data) {
    if (notificationType == "onPreLoad") {
    fadePOout.start();
    if (notificationType == "onPostLoad") {
    fadePOin.start();
    dsPO.addObserver(observerPO);
    </script>
    REF: Spry 1.5

    Yes, the example is what I want to happen. Am just not sure
    it can work with a pagedview dataset as the master. Tried very hard
    to follow your directions; Corrected the code in the
    SpryEffects.js. Made the CSS entry for the 'PO' region to have
    opacity:0. Copied your code and changed ds1 to my detail dataset
    (dsPO) (also tried my master dataset, dsPOrders, out of
    frustration). Changed the region name from 'description' to 'PO'
    (which is the name of my region to fade in and out). Added
    onclick="fadeOutContentThenSetRow('{ds_RowID}');" to the master
    dataset record. (Yes, I added it. I still have no clue as to how
    changes from the pagedview master dataset can update a detail
    dataset, but it does.)
    End result is the detail dataset appears as though the CSS
    was not read. I know this because I can see spry:state="loading"
    graphic. Then the data appears. It then disappears and fades in.
    Clicking on a master dataset record repeats the above result.
    Via Firebug am able to see that the function
    fadeOutContentThenSetRow never runs. The function fadeInContent
    runs several times. It appears to run through all events of the
    data region twice (Accounting for why the data is seen
    twice.)

  • [CS3] Flash buttons with fade effects.

    Well as the title says, i've got some buttons in Flash CS3,
    using AS 2 which when clicked changes the frame. The thing is that
    i want to add a fade effect to the text area AFTER the button was
    pressed. So for example:
    The user is reading the text, he presses one of the buttons
    (all of which change frames, in this case text) and the text fades
    away and the new text fades in.
    Well, i've designed the frames needed for this, so i've got
    10 frames before the frame the user will see for it to fade in and
    10 frames after it to fade out. What i havent figured out yet is
    how i'll make the script do that. I mean, i can make the script go
    forward one frame, starting the fade out effect, i can make it go
    to the frame i want but how will i do both.
    I've got 6 buttons and 6 corresponding texts.
    Does anyone have any ideas?
    Thank you in advance.
    P.S.: Any ideas welcome. I can change the frame layout.
    P.S.S.: Also forgot to mention that making layers for every
    combination is out of question....

    I've already had them placed each on their layer. I thought i
    might need mobility on the timeline.
    Let me see how much of this i understand...
    quote:
    which im assuming are MovieClip instances
    They're graphics but i can simply change them to be movie
    clips if it's the case.
    quote:
    do the same with your buttons on a seperate layer but you
    will only need one for them all
    I've lost you here....you're saying ill only need one AS
    reference?
    quote:
    for(var i=0; i<btns.length; i++) {
    Hmm... you're using the size of the array to set how many
    times the loop control will actually loop? Took me a bit to figure
    out what length an array could have
    quote:
    new Tween(current, '_alpha', Strong.easeOut, 100, 0, 10,
    false);
    new Tween(clips[this.id], '_alpha', Strong.easeOut, 0, 100,
    10, false);
    current = clips[this.id];
    //start the first clip transition 'in'
    current = clips[0];
    new Tween(clips[0], '_alpha', Strong.easeOut, 0, 100, 10,
    false);
    Ok i didnt get most of this but i'll have to check out the
    parameters for the Tween function.
    Actually i plan on going from a 50% alpha to a 100%, but
    that's just my choice.
    Thanks a lot and hope i dont become too annoying.
    P.S. I had a huge revelation at the end when i re-read the
    code and finally understood how this is going to work.

  • How to have smooth fade effect between the two images via XML

    I have my xml gallery working fine, all i need is to have a smooth fade effect between the two images, right now they are changing with a jerk. Can somebody help me getting this effect with my code. Any help is much appreciated.
    function loadXML(loaded) {
        if (loaded) {
            xmlNode = this.firstChild;
            image = [];
            link = [];
            thumbnails = [];
            thumbnailsOn = [];
            total = xmlNode.childNodes.length;
            for (i=0; i<total; i++) {
                image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
                link[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
                thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
                thumbnailsOn[i] = xmlNode.childNodes[i].childNodes[3].firstChild.nodeValue;
                thumbnails_fn(i);
            firstImage();
            loopPlay();
    xmlData = new XML();
    xmlData.ignoreWhite = true;
    xmlData.onLoad = loadXML;
    xmlData.load("data.xml");
    thumbnail_mc.attachMovie("prev", "prev_new", 1);
        thumbnail_mc.prev_new._x= -20;
        thumbnail_mc.prev_new._y= -1;
    thumbnail_mc.attachMovie("next", "next_new", 4);
    thumbnail_mc.next_new._y= -1;
        //thumbnail_mc.next_new._x= -30;
    thumbnail_mc.prev_new.onRelease = function() {
        prevImage();
    thumbnail_mc.next_new.onRelease = function() {
        nextImage();
    p = 0;
    this.onEnterFrame = function() {
        filesize = holder.getBytesTotal();
        loaded = holder.getBytesLoaded();
        //preloader._visible = true;
        if (loaded != filesize) {
            preloader.preload_bar._xscale = 100*loaded/filesize;
        } else {
            preloader._visible = false;
            if (holder._alpha<100) {
                holder._alpha += 10;
    function nextImage() {
        if (p<(total-1)) {
            p++;
            if (loaded == filesize) {
                holder._alpha = 0;
                holder.loadMovie(image[p], 1000);
                //desc_txt.text = description[p];
                picture_num();
    click._alpha=0;
    click.onRelease = function() {
        getURL(link[p], "_blank");
        loopStop();
    function HoldImage() {
        nextImage();
        clearInterval(myTimer2);
        loopPlay();
    function checkImageState() {
        if (p==total-1) {
            p = -1;
        if (loaded==filesize) {
            clearInterval(myTimer1);
            myTimer2 = setInterval(HoldImage,3000);
    function loopPlay() {
        myTimer1 = setInterval(checkImageState, 3000);
    function loopStop() {
        clearInterval(myTimer1);
        clearInterval(myTimer2);
    function prevImage() {
        if (p>0) {
            p--;
            holder._alpha = 0;
            holder.loadMovie(image[p], 1000);
            target_mc._alpha = 40;
            picture_num();
    function firstImage() {
        if (loaded == filesize) {
            holder._alpha = 0;
            holder.loadMovie(image[0], 1000);
            picture_num();
    function picture_num() {
        current_pos = p+1;
    function thumbnails_fn(k) {
        thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
        tlistener = new Object();
        tlistener.onLoadInit = function(target_mc) {
            target_mc._x = (target_mc._width+10)*k;
            target_mc.pictureValue = k;
            target_mc.onRelease = function() {
                p = this.pictureValue-1;
                nextImage();
            target_mc.onRollOver = function() {
                this._alpha = 40;
            target_mc.onRollOut = function() {
                this._alpha = 100;
        image_mcl = new MovieClipLoader();
        image_mcl.addListener(tlistener);
        image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);       

    I have a center of energy program similar to the one used by IMAQ. I have attached an example using your data. I first found the center of the entire image. Then I split the array in two and found the centers of each half. That gives you the position of the two spots. This program won't work if the spots are too close to each other or are separeted in the other axis.
    Attachments:
    distance between two spots one direction.vi ‏1096 KB
    Center of energy calc.vi ‏40 KB

  • How to create this fade effect

    I'm trying to create this fade effect in Dreamweaver 2004 and
    would appreciate any assistance.
    http://smallbusiness.smh.com.au/
    It's the blue and light orange fade half-box surrounding the
    "Management or Sales & Marketing or Show me information on:"
    sections in the middle of the page.
    Regards,
    James.

    Hi
    can be done in Fireworks, photoshop or xara.
    Simply load up the software and create a simple rectangle.
    Select you fill
    bucket and search for an option "gradient fill". Select the
    linear option
    and have a play with colours. I would suggest it's a blue to
    transparent
    gradient. Then you create a text layer and export the result
    as a gif (as
    it's a simple graphic).
    Take the exported graphic and place on your page using your
    chosen method.
    If you need a walk through I'd suggest going to the Fireworks
    forum where
    you'll get all the help you want or
    http://www.peachpit.com/articles/article.aspx?p=30942&seqNum=3
    for
    fireeworks
    http://graphicssoft.about.com/od/photoshop/l/bllps507b.htm
    - photoshop
    HTH
    Ian
    [email protected]
    http://www.edwards-micros.co.uk

  • How to change color from default black in JS and still retain fade effect?

    Hi, I have got some java script that fades in some text on loading. It is working but I cant seem to change the color and retain the fade in effect. Any ideas? I am using CS5.
    I think it is something in here that needs changing?
    <script language="javascript">
    col=255;
    function fade() { document.getElementById("fade").
    style.color="rgb(" + col + "," + col + "," + col + ")"; col-=40; if(col>20) setTimeout('fade()', 300); }
    </script>

    Try changing this -
    if(col>20)
    to this -
    if(col>90)
    and see what happens.
    Murray

  • Only bold text physically prints from a printer from a PDF created in Pro 11.0.2

    Hi.
    I have created a PDF of a Microsoft Excel spread sheet in Adobe Pro 11.0.2 but some of the text does not print.
    Have tried two different printers but get the same results.
    There seems to be a pattern in what does and does not print, but it does not make sense as only the bold text seems to print.
    It is written with standard Calibri font in Office Pro Plus 2010 on Win7ProSP1.
    It looks fine on the screen as all text is visible after creating the PDF
    Any comments appreciated...
    Tony Gray

    Try printing as a graphic. It may be that the fonts are not downloading to the printer -- a typical issue with HP printers for some reason.

  • How to get the bold texts in JTextPane?

    How to get the bold texts in JTextPane?

    I believe you need to look at the Elements of the Document. Use the Document.getDefaultRootElement() method to get the first root Element. From there you can iterate through all the Elements. You should then be able to check the attributes of the element to see if it contains the Bold attribute using something like:
    AttributeSet attributes = element.getAttributes();
    if ( attributes.containsAttribute(StyleConstants.Bold, Boolean.TRUE)
    // do processing here

Maybe you are looking for

  • Unable to format print field on Smart Form

    Hello, I have a problem trying to format a print field so that it displays correctly. The field in question is a display of a percentage (KOMVD-KBETR). I currently have the following in a Program node: IF NOT <KO>-KBETR IS INITIAL. WRITE <KO>-KBETR C

  • SQL Developer to Informix

    Oracle SQL Developer to Informix connections. I don't believe its supported though I thought I would put it out there.

  • Updating 5.0.1 9a405 to 9a406 PROBLEM

    Hi i have an Iphone4s and im trying to update to 9a406, apparently ive been looking around and to update from 9a405 to 9a406 is just pluging in the iphone to the computer having itunes then update it. BUT my problem is that each time i do that my iph

  • Which ethernet cable to use?

    I want to run a single cable from the Airport Extreme in the house to the garage and plug it directly into my laptop in the garage, without having a separate hub in the garage. I have several questions? Cat-5e or Cat-6? Do they both use the same conn

  • How do I restore all my pics to my Photoshop Elements lost when my Vaio crashed for the umpteenth ti

    My Vaio crashed for the umpteenth time. How do I restore all my pics to my new computer?