Dynamic image showing default image instead of requested image

I'm using CR4E v2.0 to incorporate reports into my application which is built into an ear file and deployed with Jboss 4.2.2 at the moment. I have an image in my report that I am trying to set dynamically from a URL in a database,  but when the report is run only the default image shows up. The URL in the database for the logo is http://localhost:8087/module_Reporting/Logo.gif and I verified that exact string is being returned to the report, but the image is not changing from the default placeholder.
The formula for the graphic location is:
HdrPictureLogoClient : Graphic Location
// Return values: Any string value.
If Not IsNull({REPORT_PARAMETER_FACT.LOGO_URL_PATH})
Then {REPORT_PARAMETER_FACT.LOGO_URL_PATH}
Else "";
I'm using a com.crystaldecisions.report.web.viewer.CrystalReportViewer in my jsp page to display the report and this is the part of the page that handles the viewer
CrystalReportViewer crystalReportPageViewer = new CrystalReportViewer();
// If the report is not saved in the session you just keep getting prompted for parameters
Object reportSource = session.getAttribute("ReportSource");
if (reportSource == null)
     reportSource = clientDoc.getReportSource();
     session.setAttribute("ReportSource", reportSource);
//     set the reportsource property of the viewer
crystalReportPageViewer.setReportSource(reportSource);
// setting the optoins in the Crystal Report toolbar
crystalReportPageViewer.setDisplayGroupTree(false);
crystalReportPageViewer.setHasToggleGroupTreeButton(false);
crystalReportPageViewer.setHasSearchButton(false);
crystalReportPageViewer.setHasRefreshButton(false); 
crystalReportPageViewer.processHttpRequest(request, response, application, null);
The viewer is contained in an iFrame and is disposed of in the containing jsp.
Am I missing something? Any help would be greatly appreciated!

Thank you very much for your reply, but I am not trying to add an image into the report at run time, I am trying to change the source of the image. There is an image in the report as a place holder (called HdrPictureLogoClient) and the code that handles the source of the image is in the .rpt file also as this formula:
HdrPictureLogoClient : Graphic Location
// Return values: Any string value.
If Not IsNull({REPORT_PARAMETER_FACT.LOGO_URL_PATH})
Then {REPORT_PARAMETER_FACT.LOGO_URL_PATH}
Else "";
{/code}
I have discovered that it works just fine with a file path name like C:\logo.png in the database but it does not work with my web URL.
I just find it extra interesting because when the report was originally created in a Crystal Reports Project in myEclipse and deployed as an expanded war directly to jboss running in myEclipse it worked fine, but now that it is being incorporated into an EJB project which is built into an ear file that is deployed in a jboss service running outside of myEclipse it no longer works.

Similar Messages

  • Computer image shows up on screen as 16 images

    Recently when I transfer my images  from my Sony DSC-H1 Cyber-shot camera to my computer they appear normal until I click on them to enlarge them to full screen. Then, instead of one image, I get 16. I know I have changed a setting inadvertently, but I don't know which one.

    Hi xausa,
    It seems that your camera is set to Multi Burst Mode.
    To deactivate that feature, Set the mode dial to the (camera) icon.
    You may also find this link helpful (page 34).
    If my post answers your question, please mark it as "Accept as Solution".
    Thanks. -Anthony

  • Preview image of top site selected or enable through fox tab, doesnt shows up? Instead of preivew image of particular site its showing up blank?

    I have assigned all top sites in the fox tab. It was working fine for two days. Later now it doesn't shows up the thumbnail image of each site. When i click the icon its redirecting to the particular site assigned to it. But i don't see the thumbnail image on it?

    Do any one have an answer or solution for this? i have attached the screen shot of it. I have assigned nearly 7 to 8 top site but none of them shows up.

  • After updating to 12.0, I can't copy and paste images from any website; instead of the image pasting, the URL for the image pastes instead; help, please?

    This applies to copying from any website, and pasting to any and all applications. This is exactly coincidental to install of 12.0. This is a basic, common, and essential function of any web browser. I've read various unacceptable "workarounds" in a couple posts, and am respectfully requesting a truly professional response from Firefox re: what exactly can be done to restore this basic, elementary function. I have been a major Firefox fan up until now, and need it to provide this basic functionality in a dependable way - simple right-click, copy image, and paste the image (not it's URL). Thanks for helping (hopefully).

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • Why do half of my images show as preview unavailable

    Why do half of my images show as preview unavailable? One image is plain gray with nothing written on it

    Yes, you have Lightroom through the Creative Cloud. However, in the forums, each community specializes in each separate app you have. There is a forum for the Creative Cloud app, another for the Lightroom app, and yet a different for Photoshop.
    In the Adobe Creative Cloud forum, you might post a question about not being able to download another app through it, or maybe you're having trouble signing into it. In the Photoshop Lightroom forum, you might ask questions about not being able to import photos into the app or other Lightroom questions. In the Photoshop General Discussion, you might ask for help because a tool isn't working or an error message pops up. So on for all the Adobe apps.
    Hope this helps
    Benjamin

  • Show Default Image when actual Image is not available

    Hi,
    The Customer is using BI Publisher to generate a Report with the Inventory Item Details. This report also shows an Image of the Item. These Image files are stored in a different server.
    We are able to dynamically show the Image based on the Item Numbers using the URL{} tag.
    We are facing an issue when there is an Item when there exists an Item with no corresponding Image File. The PDF is generated without any image. In such cases, the requirement is need to display a Default Image showing "NO IMAGE".
    During XML Extraction, we do not know whether the Image file is available in the server.
    How do we handle this specific requirement.
    Any assistance is highly appreciated.
    Thanks and Regards,
    Balachander.

    Having raised a service request with Oracle, it would seem that this is not possible -
    "Unfortunately, In the BIP core, there is no functionality to test that a file ( containing an image ) exists or not ."
    The problem I have is that the URL referencing the image is concatenated and includes the XML item for a reference number. That reference number, and therefore the XML item, is always available but the image that corresponds to it is not - so I can't test for a null or false return because BI Publisher does not recognise the concatenated string of the url as having a returned value.
    This would be a problem if the layout options in Word were more flexible (better) - being able to add an image to the background of a table or cell would have solved my problem but, sadly, that is not possible in the version of Word I'm using (2003). I'm not sure whether it's possible in newer versions though?

  • Spry vertical menu button shows background color instead of image in preview

    Hello All, I'm a newbie (to the forum and Dreamweaver) so my apologies if my question is not in good form.  I've searched for this issue but cannot seem to find the exact problem I have. 
    I've created a website (my first) and used the spry menu bar.  It works well using the default blue and grey colors for button and hover.  However, I decided I want to spruce it up a little and change the buttons to use a background image (rainbow pattern) instead of background color.  I internet researched this for some time and watched all the youtube videos people have posted for this process and editing the spry vertical menu bar CSS.  Using the .a and hover lines from the CSS, I was able to add my background .jpg image file.  In the design view, the button look exactly how I want them to.  However, when I attempt to preview in IE, Chrome, or FF, the buttons still have the default colors and no image.  I've gone back and deleted the default blue and grey, but then the preview just shows dark grey and white for the buttoms.  is there something that I am overlooking that would cause the background color to show instead of the image I have attached to the buttons.  I can't figure out why it looks right in DW but not in preview.
    BTW, I'm editing a template file and all the pages are updated with the new image buttons, but none of the pages show correctly in preview. 
    Thanks

    Point taken :-)
    This is my spry vertical css code.  No sub-menus. 
    DESIGN INFORMATION: describes color scheme, borders, fonts
    /* Outermost menu container has borders on all sides */
    ul.MenuBarVertical
    border: 1px solid #CCC;
    /* Submenu containers have borders on all sides */
    ul.MenuBarVertical ul
    border: 1px solid #CCC;
    /* Menu items are a light gray block with padding and no text decoration */
    ul.MenuBarVertical a
    display: block;
    cursor: pointer;
    padding: 0.5em 0.75em;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    background-image: url(/Images/Rainbow_Button.jpg);
    background-color: ;
    background-repeat: no-repeat;
    background-position: center;
    /* Menu items that have mouse over or focus have a blue background and white text */
    ul.MenuBarVertical a:hover, ul.MenuBarVertical a:focus
    background-color: #666666;
    color: #333333;
    background-image: url(/Images/Rainbow_Button_Hover.jpg);
    /* Menu items that are open with submenus are set to MenuBarItemHover with a blue background and white text */
    ul.MenuBarVertical a.MenuBarItemHover, ul.MenuBarVertical a.MenuBarItemSubmenuHover, ul.MenuBarVertical a.MenuBarSubmenuVisible
    background-color: #0000FF;
    color: #FFF;

  • Mavericks, only one site show question mark instead of images

    Hi,
         Updated to Mavericks, only one site show question mark instead of images. Tried safari, chrome and firefox all of them have same problem of showing images of this site. Tried reset, empty cachs, cookies, did not work. Any one have a clue to solve this? Thx.
    BTW, the site is: ssense.com

    Thanks! lol, seems silly now i had to post here when all i had to do was close and relaunch... sorry for wasting your time. thanks to those who answered.

  • How do I display the entire image by default in Photos app instead of filling the entire screen?

    A lot of the images that I have stored on my phone are taken with another camera. Whenever I view them in the photo app they don't show the full image until I pinch them. Is there a setting that shows the entire image by default? Don't want to be pinching every photo and when other people view my images they often don't realise that there is actually more to see.

    Yes, this is terrible. I am not showcasing the otherwise fine screen but my carefully framed photos. How arrogant from Apple to violently zoom to my pics.
    This needs to be addressed ASAP! Everyone please give feedback http://www.apple.com/feedback/

  • Dynamic images show in "Live View", however not in browser

    I'm doing the CS5.5 Missing Manual Dynamic Website tutorial and have had no issues until I want to display an image for the online store.  When I click on Live View, everything looks great.  However when I want to preview in a browser, I only see the alt text with no image showing.  What on earth could be going on?  Any help would be greatly appreciated.
    Here is the code (image code is in bold)
    <?php require_once('Connections/dbCosmos.php'); ?>
    <?php
    if (!function_exists("GetSQLValueString")) {
    function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
      if (PHP_VERSION < 6) {
        $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue;
      $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue);
      switch ($theType) {
        case "text":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;   
        case "long":
        case "int":
          $theValue = ($theValue != "") ? intval($theValue) : "NULL";
          break;
        case "double":
          $theValue = ($theValue != "") ? doubleval($theValue) : "NULL";
          break;
        case "date":
          $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
          break;
        case "defined":
          $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
          break;
      return $theValue;
    $varProduct_rsDetails = "1";
    if (isset($_GET["productID"])) {
      $varProduct_rsDetails = $_GET["productID"];
    mysql_select_db($database_dbCosmos, $dbCosmos);
    $query_rsDetails = sprintf("SELECT products.productID, products.productName, products.price, products.`description`, products.inventory, products.image, vendors.vendorName FROM products, vendors WHERE products.vendorID=vendors.vendorID AND products.productID=%s", GetSQLValueString($varProduct_rsDetails, "int"));
    $rsDetails = mysql_query($query_rsDetails, $dbCosmos) or die(mysql_error());
    $row_rsDetails = mysql_fetch_assoc($rsDetails);
    $totalRows_rsDetails = mysql_num_rows($rsDetails);
    ?>
    <!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">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <title>The CosmoFarmer Store</title>
    <link href="styles/global.css" rel="stylesheet" type="text/css" />
    <script src="SpryAssets/SpryMenuBar.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryMenuBarHorizontal.css" rel="stylesheet" type="text/css" />
    <link href="styles/twoColFixLtHdr.css" rel="stylesheet" type="text/css" />
    </head>
    <body class="twoColFixLtHdr">
      <div id="mainContent">
      <p><?php echo $row_rsDetails['productName']; ?></p>
      <p>Price: <?php echo $row_rsDetails['price']; ?></p>
      <p>Vendor: <?php echo $row_rsDetails['vendorName']; ?></p>
      <p>Inventory: <?php echo $row_rsDetails['inventory']; ?></p>
      <p><img src="images/large/<?php echo $row_rsDetails['image']; ?>" alt="<?php echo $row_rsDetails['productName']; ?>" class="productImage" /><?php echo $row_rsDetails['description']; ?></p>
      </div>

    Please read these -
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_13129&sliceId=2
    http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_15546&sliceId=2
    so that you understand root relative and document relative
    links.
    Your root relative links will work if you enable Preview in
    Browser > Use
    temp files to preview, in your PREFERENCES.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Scylibs1" <[email protected]> wrote in
    message
    news:fltebc$r12$[email protected]..
    > Hello. Can someone explain to me why this is an issue.
    >
    > When I add an image from Dreamweaver using the INSERT
    > IMAGE method, it
    > will
    > add the path as follow :
    >
    > /myfolder/myimage.gif
    >
    > The problem I have is with the first " / ". In my
    browser, that will not
    > work.
    > In other words, the correct path would be
    >
    > myfolder/myimage.gif
    >
    > but this path will not display in Dreamweaver... I am
    using dreamweaver mx
    > 2004 7.0.1
    >
    > I would like the image to be displayed in both my
    browser and dreamweaver
    > design mode.
    >
    > Thanks.
    >

  • Allow loading of remote images by default. SOLVED in Thunderbird 31 [was: Is there ANYONE at Mozilla who listens to users' requests?]

    '''bold text'''Numerous users at NUMEROUS Times have all requested Mozilla Fix Thunderbird so it works like A. It used to, B. what OTHER mail programs STILL do, and C. Is a fact of life on our SmartPhones!!!
    We get Live URL Links on our iPhones, AND automatically downloaded CONTENT on our iPhones, but NOT in Thunderbird..... Not even as an option! Mozilla decided they're going to "protect" you. and by golly they will, whether you like it or not.
    Mozilla will not even acknowledge the issue. It must be nice to produce a product an then let not support it, just sit back let everyone out there help each other.

    I never really thought of it as a 'bug' so I did not pursue that avenue.
    I can understand you objecting to allowing remote images by default. But remote images don't load it you don't look at them (I have 500 spam filters), Macs don't have nearly the security holes Windows has, and as I have stated before: some of us know what we're doing. AND....we know we'll have no one to blame but ourselves if something DOES get through and messes up our computers, (the Personal Responsibility concept, so lost in the U.S.) The other half is the sheer volume of email I get from eBay members, each and every one a slightly different address, and each and every one I had to 'enable' to see it! Maybe white listing sites will fix that, but I still would like the choice to make on my own. Many of my former customers still call me when they run into questions like 'Should they shut off global protection' so I do think it's a good idea you put in all sorts of warning if they go to disable it. Oh, and just so you know, my former service company "Cyclone Computer" (Approx 500 customers, most we single Mac freelancers) never sent out commercial emails and taught my users HOW to avoid getting hacked or phished or get their identity stolen. I now work in an IT department of a large Fortune 50 firm, so their is no 'commercial pressure' on my part in asking for this option. Many of my former customers do understand the reason for the default blocking and are happy it's there.
    Once again. Thanks for all the help, At least the hack solves the problem for me. I see if some of my former users what to take the risk and try it themselves.
    Keep up the good work. Despite my whining, it's still the best email program out there.

  • How to specify SWF instead of an image in loading

    I hope it is not too much over my head as I would like to make it work. Some time ago I recieved help in constracting an interactive image thumb scroller using greensock features.
    My biggest problem at the moment is that I can not figure out how to change the code so the thumbs would bring up the swf files and not jpg files. In other words my small thumbnails are small jpg files (as they were intended to be), but my bigger visuals (the ones which are being brought by clicking on the small thumbnails) I would like to change to an swf file (as it contains its separate animation and additional set of buttons)
    Here is the original code I am trying to modify:
    [CODE]
    package {
    import com.greensock.TweenLite;
    import com.greensock.events.LoaderEvent;
    import com.greensock.loading.ImageLoader;
    import com.greensock.loading.LoaderMax;
    import com.greensock.loading.XMLLoader;
    import com.greensock.plugins.AutoAlphaPlugin;
    import com.greensock.plugins.ColorTransformPlugin;
    import com.greensock.plugins.GlowFilterPlugin;
    import com.greensock.plugins.TweenPlugin;
    import flash.display.MovieClip;
    import flash.display.Sprite;
    import flash.events.Event;
    import flash.events.MouseEvent;
    public class SlideshowExample extends MovieClip {
      private static const _THUMB_WIDTH:Number = 100;
      private static const _THUMB_HEIGHT:Number = 64;
      private static const _IMAGE_WIDTH:Number = 550;
      private static const _IMAGE_HEIGHT:Number = 355;
      private static const _THUMB_GAP:Number = 4;
      private static const _SCROLL_SPEED:Number = 12;
      private static const _SCROLL_AREA:Number = 150;
      private var _progressBar:MovieClip;
      private var _arrowLeft:MovieClip;
      private var _arrowRight:MovieClip;
      private var _slides:Array;
      private var _curSlide:Slide; //Slide that is currently displaying
      private var _loadingSlide:Slide; //only used when a Slide is supposed to show but hasn't been fully loaded yet (like if the user clicks "next" many times before all the images have loaded). We keep track of the one that's in the process of loading and should be shown as soon as it finishes, then we set _loadingSlide back to null.
      private var _imagesContainer:Sprite; //the Sprite into which the full-size images are placed (this helps manage the stacking order so that the images can always be behind everything else and yet we can addChild() each image so that it shows up on top of the previous one)
      private var _thumbnailsContainer:Sprite; //the Sprite into which the thumbnail images are placed. This also allows us to slide them all at the same time.
      private var _destScrollX:Number = 0; //destination x value for the _thumbnailsContainer which is used for scrolling it across the bottom. We don't want to use _thumbnailsContainer.x because it could be in the process of tweening, so we keep track of the end/destination value and add/subtract from it when creating our tweens.
      private var _minScrollX:Number; //we know the maximum x value for _thumbnailsContainer is 0, but the mimimum value will depend on how many thumbnail images it contains (the total width). We calculate it in the _setupThumbnails() method and store it here for easier/faster scrolling calculations in the _enterFrameHandler()
      public function SlideshowExample() {
       super();
       //activate the plugins that we'll be using so that TweenLite can tween special properties like filters, colorTransform, and do autoAlpha fades.
       TweenPlugin.activate([AutoAlphaPlugin, ColorTransformPlugin, GlowFilterPlugin]);
       _progressBar = this.getChildByName("progress_mc") as MovieClip;
       _arrowLeft = this.getChildByName("arrowLeft_mc") as MovieClip;
       _arrowRight = this.getChildByName("arrowRight_mc") as MovieClip;
       _arrowLeft.visible = _arrowRight.visible = false;
       _imagesContainer = new Sprite();
       this.addChildAt(_imagesContainer, 0);
       _thumbnailsContainer = new Sprite();
       addChild(_thumbnailsContainer);
       _thumbnailsContainer.y = _IMAGE_HEIGHT;
       _thumbnailsContainer.alpha = 0; //we want alpha 0 initially because we'll fade it in later when the thumbnails load.
       _thumbnailsContainer.visible = false; //ensures nothing is clickable.
       var xmlLoader:XMLLoader = new XMLLoader("assets/data.xml", {onComplete:_xmlCompleteHandler});
       xmlLoader.load();
      private function _xmlCompleteHandler(event:LoaderEvent):void {
       _slides = [];
       var xml:XML = event.target.content; //the XMLLoader's "content" is the XML that was loaded.
       var imageList:XMLList = xml.image; //In the XML, we have <image /> nodes with all the info we need.
       //loop through each <image /> node and create a Slide object for each.
       for each (var image:XML in imageList) {
        _slides.push( new Slide(image.@name,
              image.@description,
              new ImageLoader("assets/thumbnails/" + image.@name + ".jpg", {name:image.@name + "Thumb", width:_THUMB_WIDTH, height:_THUMB_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:13000, onFail:_imageFailHandler}),
              new ImageLoader("assets/images/" + image.@name + ".jpg", {name:image.@name + "Image", width:_IMAGE_WIDTH, height:_IMAGE_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:820000, onFail:_imageFailHandler})
       //now create a LoaderMax queue and populate it with all the thumbnail ImageLoaders as well as the very first full-size ImageLoader. We don't want to show anything until the thumbnails are done loading as well as the first full-size one. After that, we'll create another LoaderMax queue containing the rest of the full-size images that will load silently in the background.
       var initialLoadQueue:LoaderMax = new LoaderMax({onComplete:_initialLoadComplete, onProgress:_progressHandler});
       for (var i:int = 0; i < _slides.length; i++) {
        initialLoadQueue.append( _slides[i].thumbnailLoader );
       initialLoadQueue.append(_slides[0].imageLoader); //make sure the very first full-sized image is loaded initially too.
       initialLoadQueue.load();
       _setupThumbnails();
      private function _initialLoadComplete(event:LoaderEvent):void {
       //now that the initial load is complete, fade out the progressBar. autoAlpha will automatically set visible to false once alpha hits 0.
       TweenLite.to(_progressBar, 0.5, {autoAlpha:0});
       //fade in the thumbnails container
       TweenLite.to(_thumbnailsContainer, 1, {autoAlpha:1});
       _setupArrows();
       //setup the ENTER_FRAME listeners that controls the thumbnail scrolling behavior at the bottom
       this.stage.addEventListener(Event.ENTER_FRAME, _enterFrameHandler, false, 0, true);
       //now put all the remaining images into a LoaderMax queue that will load them one-at-a-time in the background in the proper order. This can greatly improve the user's experience compared to loading them on demand which forces the user to wait while the next image loads.
       var imagesQueue:LoaderMax = new LoaderMax({maxConnections:1});
       for (var i:int = 1; i < _slides.length; i++) {
        imagesQueue.append( _slides[i].imageLoader );
       imagesQueue.load();
       //now start the slideshow
       _showNext(null);
      //loops through all the thumbnail images and places them in the proper order across the bottom of the screen and adds CLICK_THUMBNAIL listeners.
      private function _setupThumbnails():void { 
       var l:int = _slides.length;
       var curX:Number = _THUMB_GAP;
       for (var i:int = 0; i < l; i++) {
        var thumbnail:Sprite = _slides[i].thumbnail;
        _thumbnailsContainer.addChild(thumbnail);
        TweenLite.to(thumbnail, 0, {colorTransform:{brightness:0.5}});
        _slides[i].addEventListener(Slide.CLICK_THUMBNAIL, _clickThumbnailHandler, false, 0, true);
        thumbnail.x = curX;
        thumbnail.y = 4;
        curX += _THUMB_WIDTH + _THUMB_GAP;
       _minScrollX = _IMAGE_WIDTH - curX;
       if (_minScrollX > 0) {
        _minScrollX = 0;
      private function _setupArrows():void {
       _arrowLeft.alpha = _arrowRight.alpha = 0;
       _arrowLeft.visible = _arrowRight.visible = true;
       _arrowLeft.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
       _arrowLeft.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
       _arrowLeft.addEventListener(MouseEvent.CLICK, _showPrevious, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.ROLL_OVER, _rollOverArrowHandler, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.ROLL_OUT, _rollOutArrowHandler, false, 0, true);
       _arrowRight.addEventListener(MouseEvent.CLICK, _showNext, false, 0, true);
      private function _showNext(event:Event=null):void {
       //if there's a _loadingSlide we should assume that the next Slide would be AFTER that one. Otherwise just get the one after the _curSlide.
       var next:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) + 1 : _slides.indexOf(_curSlide) + 1;
       if (next >= _slides.length) {
        next = 0;
       _requestSlide(_slides[next]);
      private function _showPrevious(event:Event=null):void {
       //if there's a _loadingSlide we should assume that the previous Slide would be BEFORE that one. Otherwise just get the one before the _curSlide.
       var prev:int = (_loadingSlide != null) ? _slides.indexOf(_loadingSlide) - 1 : _slides.indexOf(_curSlide) - 1;
       if (prev < 0) {
        prev = _slides.length - 1;
       _requestSlide(_slides[prev]);
      private function _requestSlide(slide:Slide):void {
       if (slide == _curSlide) {
        return;
       //kill the delayed calls to _showNext so that we start over again with a 5-second wait time.
       TweenLite.killTweensOf(_showNext);
       if (_loadingSlide != null) {
        _cancelPrioritizedSlide(); //the user must have skipped to another Slide and didn't want to wait for the one that was loading.
       //if the requested Slide's full-sized image hasn't loaded yet, we need to show the progress bar and wait for it to load.
       if (slide.imageLoader.progress != 1) {
        _prioritizeSlide(slide);
        return;
       //fade the old Slide and make sure it's not highlighted anymore as the current Slide.
       if (_curSlide != null) {
        TweenLite.to(_curSlide.image, 0.5, {autoAlpha:0});
        _curSlide.setShowingStatus(false);
       _curSlide = slide;
       _imagesContainer.addChild(_curSlide.image); //ensures the image is at the top of the stacking order inside the _imagesContainer
       TweenLite.to(_curSlide.image, 0.5, {autoAlpha:1}); //fade the image in and make sure visible is true.
       _curSlide.setShowingStatus(true); //adds an outline to the image indicating that it's the currently showing Slide.
       TweenLite.delayedCall(5, _showNext); //create a delayedCall that will call _showNext in 5 seconds.
      private function _prioritizeSlide(slide:Slide):void {
       TweenLite.to(_progressBar, 0.5, {autoAlpha:1}); //show the progress bar
       _loadingSlide = slide;
       _loadingSlide.imageLoader.addEventListener(LoaderEvent.PROGRESS, _progressHandler);
       _loadingSlide.imageLoader.addEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
       _loadingSlide.imageLoader.prioritize(true); //when the loader is prioritized, it will jump to the top of any LoaderMax queues that it belongs to, so if another loader is in the process of loading in that queue, it will be canceled and this new one will take over which maximizes bandwidth utilization. Once the _loadingSlide is done loading, the LoaderMax queue(s) will continue loading the rest of their images normally.
      private function _cancelPrioritizedSlide():void {
       TweenLite.to(_progressBar, 0.5, {autoAlpha:0}); //hide the progress bar
       _loadingSlide.imageLoader.removeEventListener(LoaderEvent.PROGRESS, _progressHandler);
       _loadingSlide.imageLoader.removeEventListener(LoaderEvent.COMPLETE, _completePrioritizedHandler);
       _loadingSlide = null;
      private function _completePrioritizedHandler(event:LoaderEvent):void {
       var next:Slide = _loadingSlide; //store it in a local variable first because _cancelPrioritizedSlide() will set _loadingSlide to null.
       _cancelPrioritizedSlide();
       _requestSlide(next);
      private function _progressHandler(event:LoaderEvent):void {
       _progressBar.progressBar_mc.scaleX = event.target.progress;
      private function _clickThumbnailHandler(event:Event):void {
       _requestSlide(event.target as Slide);
      private function _rollOverArrowHandler(event:Event):void {
       TweenLite.to(event.currentTarget, 0.5, {alpha:1});
      private function _rollOutArrowHandler(event:Event):void {
       TweenLite.to(event.currentTarget, 0.5, {alpha:0});
      private function _enterFrameHandler(event:Event):void {
       if (_thumbnailsContainer.hitTestPoint(this.stage.mouseX, this.stage.mouseY, false)) {
        if (this.mouseX < _SCROLL_AREA) {
         _destScrollX += ((_SCROLL_AREA - this.mouseX) / _SCROLL_AREA) * _SCROLL_SPEED;
         if (_destScrollX > 0) {
          _destScrollX = 0;
         TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
        } else if (this.mouseX > _IMAGE_WIDTH - _SCROLL_AREA) {
         _destScrollX -= ((this.mouseX - (_IMAGE_WIDTH - _SCROLL_AREA)) / _SCROLL_AREA) * _SCROLL_SPEED;
         if (_destScrollX < _minScrollX) {
          _destScrollX = _minScrollX;
         TweenLite.to(_thumbnailsContainer, 0.5, {x:_destScrollX});
      //if an image fails to load properly, remove it from the slideshow completely including its thumbnail at the bottom.
      private function _imageFailHandler(event:LoaderEvent):void {
       var slide:Slide;
       var i:int = _slides.length;
       while (--i > -1) {
        slide = _slides[i];
        if (event.target == slide.thumbnailLoader || event.target == slide.imageLoader) {
         slide.dispose();
         _slides.splice(i, 1);
         _setupThumbnails();
         return;
    [/CODE]
    I could figure out that I have to change the line
    [CODE]
    new ImageLoader("assets/images/" + image.@name + ".jpg", {name:image.@name + "Image", width:_IMAGE_WIDTH, height:_IMAGE_HEIGHT, scaleMode:"proportionalInside", bgColor:0x000000, estimatedBytes:820000, onFail:_imageFailHandler}
    [/CODE]
    and instead of ".jpg" put ".swf" (making sure that the names of the files are identical except for their extensions)
    The problem is that I get an error message in the output that flash could not convert my swf file to the bitmap.
    I suspect that I have to change the hard coding to specify that Loader Max should treat loading bigger swf files as swf and not as image/jpg files.
    I don't have enough expertise to decipher all the lines where this has to be changed.
    It feels that I am close to accomplishing what I need. Is it possible to point out where this change has to take place?
    Here is my thought process:
    I don't need to specify SWFLoader as LoaderMax is already specified (line 5)
    I don't need to change anything in lines 31-34 as "Sprite" and "Slide" could be an .swf file (line31-34)
    I don't need to change anything in line 50 for the same reason (line 50)
    I don't need to change lines 66 and 68 as image list may contain swf files (line 66 and 68)
    I do need to change ".jpg" to ".swf" in line 72 (line 72)
    No sure if there are any changes in line 82 (line 82)
    LoaderMax has var as imagesQueue does that need to be changed into SFWLoader? (lines98-102)
    I don't think anything need to be changed in lines 138-173 as " Slide" can incorporate an SWF file (lines 138-173)
    Not sure if there has to be a change in lines 175-177 as it specifies that slide is an image (lines 175-177)
    Not sure if there has to be a change in lines 182-200 from imageLoager to SWFLoader (lines 182-200)
    Not sure if there has to be a change in lines 239-245 in specifying SWFLoader (lines 239-245)
    I am attaching the .xml and .as documents as well

    This was my very first step.
    The problem is that I get an error message in the output that flash could not convert my swf file to the bitmap.
    I suspect that I have to change the hard coding to specify that Loader Max should treat loading bigger swf files as swf and not as image/jpg files.
    I don't have enough expertise to decipher all the lines where this has to be changed.
    It feels that I am close to accomplishing what I need. Is it possible to point out where this change has to take place?
    Just in case here is my xml code:
    <?xml version="1.0" encoding="iso-8859-1"?>
    <data>
              <image name="agencynet" description="agencynet description text goes here." />
              <image name="buick" description="buick description text goes here." />
              <image name="cocacola" description="cocacola description text goes here." />
              <image name="cu3er" description="cu3er description text goes here." />
              <image name="diva" description="diva description text goes here." />
              <image name="dow" description="dow description text goes here." />
              <image name="erkyperky" description="erkyperky description text goes here." />
              <image name="flexa" description="flexa description text goes here." />
              <image name="happyplanetshots" description="happyplanetshots description text goes here." />
              <image name="holdencruze" description="holdencruze description text goes here." />
              <image name="ironman" description="ironman description text goes here." />
              <image name="mercedes" description="mercedes description text goes here." />
              <image name="micromaniac" description="micromaniac description text goes here." />
              <image name="overtheatlantic" description="overtheatlantic description text goes here." />
              <image name="saab" description="saab description text goes here." />
              <image name="silverpistol" description="silverpistol description text goes here." />
              <image name="softse" description="softse description text goes here." />
              <image name="target" description="target description text goes here." />
              <image name="tonydorio" description="tonydorio description text goes here." />
              <image name="prius" description="prius description text goes here." />
              <image name="waterlife" description="waterlife description text goes here." />
    </data>

  • Change .pdf icons to generic icon instead of preview image

    How can I change the icon of a .pdf on the desktop to the more generic red and white Adobe logo instead of the little preview picture? With the old-style icon it's easy to determine what's a .pdf - with everything a little preview now (which is too small to tell anything, at least for me) I have to actually read the file name to see what type of file it is.
    Not the end of the world but it would be nice to change.
    thanks

    What app do you want your PDF files to open with when they are double-clicked?
    If you click on the Desktop, type Command-J, and in the Desktop's view-options window uncheck the box for "Show icon preview," you will convert all the Desktop icons to whatever image the default "Open with" app has provided. If you have set Adobe Reader as the default app for PDF files, the icon will look like this:
    !http://i55.tinypic.com/2r4hf6p.jpg!
    If you have set Preview as the default app, the icon will look like this:
    !http://i51.tinypic.com/264noea.jpg!
    I don't know of an automatic way to have PDF files display an Adobe icon and still have them open in Preview when double-clicked.

  • How do I get Finder to show thumbnail icons of symlinks to images?

    For some reason, even when I have icon preview enabled, instead of showing the thumbnail of the image, it shows a generic JPG icon with an arrow.  This is really frustrating because I need to be able top see thumbnails of all my images at once, so I can quickly select files for acting on.  And just to be clear, all the images in the directory are symlinks to the original images.  I can't browse by the original images because I am using symlinks for organizational reasons.

    I am porting an image matching program from windows, which has a similar need; to show images which are similar to eachother via symlink or  windows shortcut.
    The data to show a preview of a linked image is readily available to the operating system.
    There should be absolutely no need for a 3rd party app.
    It works seamlessly and effortlessly under windows.
    It is a ridiculous shortcoming by Apple that this functionality is not available.
    (also, @barney, an alias is not the same as a symlink.)

  • I have connected my macbook pro to my tv via MDP to HDMI port cable, all that is showing up is the basic desktop image without any icons, what do i do to correct this

    i have connected my macbook pro to my tv via MDP to HDMI port cable, all that is showing up is the basic desktop image without any icons, what do i do to correct this

    Your MBP is running in "extended desktop" mode, where the two screens together make one larger area to display windows. You can drag one or more windows from the primary (internal) screen to the secondary (TV) screen. By default, the secondary screen is off to the right of the primary screen.
    If you would prefer the two screens show the same image, you want to switch to "mirroring" mode. You will have to pick a single resolution for both screens, which may look poor on one or the other.
    Both the relative positions of the two screens in extended desktop mode and the switch to mirroring mode can be set in System Preferences > Displays > Arrangement.

Maybe you are looking for

  • Safari suddenly shut and now won't open

    My safari suddenly crashed and now I haven't been able to open it for quite some time.  I've been using firefox, but would really like my safari back, I'm not sure what the best solution is.... this is the report problem details I get Process:       

  • Usage decision related tables

    Hi, I do a usage decision for a inspection lot of 10 qty in QA32. I enter UD code A( accept) and quantity as 4 and save.stock gets posted. Again in QA32 I  enter UD code as A1 ( conditional accept) for the same inspection lot and post remaining qty 6

  • Declare global variable and retrive?

    Hi, we are working in live project in webtool, we wants to create global variable, calling that variable in a required pages, our questions is that where to declare global variable and how to declare in which page we have to declare?   pls guide us i

  • U430 powered USB 2.0 port charges devices but does not recognizze

    I just got a U430.  I noticed that any devices plugged into the powered USB port on the right side of the computer will charge, but the computer does not recognize them.  I tried disabling/enabling all the USB hubs in the Device Manager, unselected t

  • Audio drift -- Need Help

    I'm very new to video editing so please try not to confuse me with terminolgy! I have a project that I have conduct recorded interviews, I use a Canon 40D which has no video or audio function but there is a program that lets it record through my comp