HTMLDB 1.6 Multiple Image Directories

We want to be able to use two different image directories for htmldb. We created a second directory and modified the marvel.conf file as show below (basically copying the Alias for i and creating i2). The images2 directory does exist and does have the same owner/group as images. We can get to files in the images2 directory via a browswer:
http://nameofserver:7777/i2/nameof.gif, but access to htlmdb is not working. We took the Alias /i2/ etc. part out of the mavel.conf file and we can now access htmldb. Can we have more than one image directory, and if so, how do we do this? Contents of the error log are pasted below the marvel.conf file
marvel.conf that did not work:
Alias /i/ "/home/oracle/product/10.1.0/db_2/marvel/images/"
<Location /pls/htmldb>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
PlsqlDatabasePassword ######################
PlsqlDatabaseConnectString spirit.net.nwoca.org:1521:orcl ServiceNameFormat
PlsqlDefaultPage htmldb
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_manager.process_download
PlsqlAuthenticationMode Basic
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlCGIEnvironmentList SERVER_NAME=empower.nwoca.org
PlsqlCGIEnvironmentList SERVER_PORT=80
</Location>
Alias /i2/ "/home/oracle/product/10.1.0/db_2/marvel/images2/"
<Location /pls/htmldb>
SetHandler pls_handler
Order deny,allow
Allow from all
AllowOverride None
PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
PlsqlDatabasePassword #######################
PlsqlDatabaseConnectString spirit.net.nwoca.org:1521:orcl ServiceNameFormat
PlsqlDefaultPage htmldb
PlsqlDocumentTablename wwv_flow_file_objects$
PlsqlDocumentPath docs
PlsqlDocumentProcedure wwv_flow_file_manager.process_download
PlsqlAuthenticationMode Basic
PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
PlsqlCGIEnvironmentList SERVER_NAME=empower.nwoca.org
PlsqlCGIEnvironmentList SERVER_PORT=80
</Location>
Cut and Paste from the Apache error log:
mod_plsql: DAD '/pls/htmldb' is disabled because of misco
nfiguration. Please refer to the log entries during server startup up for more information.
I don't know what other logs this is referring to.
Thanks,
Catherine

Hi Catherine,
you could easily use the VirtualHost directive for your purpose, if this is an option for you.
1) add another Listen directive to the httpd.conf for another port, let's assume 7778:
Port 7777
Listen 7777
Listen 7778
2) your marvel.conf would look like this:
NameVirtualHost *
<VirtualHost *>
  Alias /i/ "/home/oracle/product/10.1.0/db_2/marvel/images/"
</VirtualHost>
<VirtualHost *:81>
  Alias /i/ "/home/oracle/product/10.1.0/db_2/marvel/images2/"
</VirtualHost>
<Location /pls/htmldb>
  SetHandler pls_handler
  Order deny,allow
  Allow from all
  AllowOverride None
  PlsqlDatabaseUsername HTMLDB_PUBLIC_USER
  PlsqlDatabasePassword ######################
  PlsqlDatabaseConnectString spirit.net.nwoca.org:1521:orcl ServiceNameFormat
  PlsqlDefaultPage htmldb
  PlsqlDocumentTablename wwv_flow_file_objects$
  PlsqlDocumentPath docs
  PlsqlDocumentProcedure wwv_flow_file_manager.process_download
  PlsqlAuthenticationMode Basic
  PlsqlNLSLanguage AMERICAN_AMERICA.WE8ISO8859P1
  PlsqlCGIEnvironmentList SERVER_NAME=empower.nwoca.org
  PlsqlCGIEnvironmentList SERVER_PORT=80
</Location>You can then access them via
http://server:7777/i
http://server:7778/i
and /pls/htmldb will be accessible on both ports.
~Dietmar.

Similar Messages

  • Any way to upload multiple images without renaming?

    The multiple image upload seems to enforce a renaming convention and the
    creation of restricted user backup folders or new folders.
    Is there a way to just upload multiple files to an existing folder and just
    allow renaming or replacing of images, but still resizing? This procedure
    seems to work fine on individual image uploads in an update or insert record
    behavior....
    Maybe I'm missing something, but I was getting all sorts of directories
    being created and couldn't load the new files with their current name into
    the directory I actually wanted...
    Jeff

    Post Author: norton
    CA Forum: crystalreports.com
    Hi Dixie,
    You seem to be asking all the right questions lately!
    Right now we do not have any way of uploading multiple docs at once.  We do have the desktop publisher tool that helps with automatically refreshing a report and uploading it, but it is still handles them on an individual basis.
    However, with our next big release (planned for the middle of December) we are planning to add a new batch task to the desktop publisher.  The intent behind this is that you can set up your folder and document structure on your local file system and use the batch task to upload everything to your cr.com account.  This would include creating the necessary folders in cr.com.  You will be able to schedule this batch task like you do the existing individual tasks so that it runs once a week or whatever you like.
    This new batch task will NOT allow you to refresh any reports before uploading them though.  Everything will be uploaded as is.
    Hopefully this will help with what you are trying to do.
    Steve

  • Bringing in Multiple Images Together?

    Hi everybody. Is there any way of bringing in multiple images at the same time into a HTML page in Dreamweaver? I am trying to place about 70 small thumb nails on the same page. At the moment I have to bring them all in, one at a time, which takes forever! If you could just select a folder and bring all the images in that folder in to your page together, ordered as they are in the folder that would be a lot quicker. Thanks for your help.

    Copy & paste this code into a new, blank document.  SaveAs gallery_test.php.  Change php code to point to your Gallery/thumbs and Gallery/slides.  If you don't have a local testing server, upload to your remote site to test.
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>HTML5 Document</title>
    <!--[if lt IE 9]>
    <script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->
    <!--LATEST JQUERY CORE LIBRARY-->
    <script src="http://code.jquery.com/jquery-latest.min.js"></script>
    <!--FANCYBOX plugins-->
    <link href="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.css" rel="stylesheet" media="screen">
    <script src="http://cdnjs.cloudflare.com/ajax/libs/fancybox/2.1.4/jquery.fancybox.pack.js"></script>
    <style>
        padding: 0;
        -moz-box-sizing: border-box;
        -webkit-box-sizing: border-box;
        box-sizing: border-box;
    body {
        margin: 0;
        padding: 0;
        background: #08035F;
        color: #333;
        font-family: "Lucida Grande", "Lucida Sans Unicode", "Lucida Sans", "DejaVu Sans", Verdana, sans-serif;
        font-siz: 100%;
    #wrapper {
        width: 1000px; /**adjust width in px or %**/
        margin: 0 auto; /**with width, this is centered**/
    header {
        background: #355DA0;
        width: 100%;
        margin: 0 auto;
        color: #FFF;
    #inner_wrapper {
        background: #CCC7B3;
        overflow: hidden; /**float containment**/
    aside {
        float: left;
        width: 14%;
    section {
        background: #FFF;
        width: 72%;
        float: left;
        margin: 0 auto;
    /**Begin image gallery styles**/
    .thumbs { /*divs that hold gallery pictures*/
        float: left;
        margin: 0.5%; /*space between thumbnails*/
        border: 1px dotted #CCC;
        /**same size images**/
        width: 135px;
        height: 99px;
        opacity: .70
    .thumbs a { /* in every .thumbs div there is a hyperlink exactly the size of the container */
        width: 135px;
        height: 99px;
        text-indent: -99999px; /*move text links off screen*/
        display: block;
        outline: none;
    /**on mouse over**/
    .thumbs:hover { opacity: 1.0 }
    /**end gallery styles**/
    footer {
        clear: both;
        background: #222;
        width: 100%;
        color: #FFF;
        margin: 0 auto
    </style>
    </head>
    <body>
    <div id="wrapper">
    <header> <h1>Header</h1>
    <nav>Navigtion</nav>
    </header>
    <div id="inner_wrapper">
    <aside> LEFT ASIDE </aside>
    <section> <h2>Dynamic Thumbnails go here</h2>
    <?php
    $directory = 'GALLERY/thumbs'; //path to your thumbnails
    $link = 'GALLERY/slides'; //path to your full-sized images
    $allowed_types = array('jpg','jpeg','gif','png');
    $aFiles = array();
    $dir_handle = @opendir($directory) or die("There is an error with your image directory!");
    while ($file = readdir($dir_handle)) //traverse through files
    if($file=='.' || $file == '..') continue; //skip links to parent directories
    $file_parts = explode('.',$file); //split filenames and put each part in an array
    $ext = strtolower(array_pop($file_parts)); //last element is the file extension
    $title = implode('.',$file_parts); //what's left is the filename
    if(in_array($ext,$allowed_types))
    $aFiles[] = $file; //filename array
    closedir($dir_handle); //close directory
    natsort($aFiles); // natural sort by filename 01, 02, 10, 20
    $i=0;
    foreach ($aFiles as $file) {
    $file_parts = explode('.',$file); //split filenames and put each part in an array
    $ext = strtolower(array_pop($file_parts)); //last element is the file extension
    $title = implode('.',$file_parts); //what's left is the filename
    $title = htmlspecialchars($title); //make it html-safe
    echo '<div class="thumbs" style="background:url('.$directory.'/'.$file.') no-repeat 50% 50%">
    <a class="fancybox" data-fancybox-group="gallery" href="GALLERY/slides/'.$file.'" title="'.$title.'">'.$title.'</a>
    </div>';
    $i++; //increment the image counter
    ?>
    <!--end gallery-->
    </section>
    <aside> RIGHT ASIDE </aside>
    <!--end inner_wrapper--></div>
    <footer>Footer</footer>
    <!--end wrapper--></div>
    <!--FancyBox function code-->
    <script>
    $(document).ready(function() {
        $('.fancybox').fancybox();
    </script>
    </body>
    </html>
    Nancy O.

  • How do I stop iWeb outputting multiple image files? It makes my site slow!

    I'm a professional web designer (but don't let that put you off) who uses Dreamweaver and also handcodes HTML & CSS websites at work on a PC, but having got a new Mac for home use I thought I'd give iWeb a go for a personal site hosted on .Mac, showcasing my music and film efforts, that I didn't want to have to think about coding.
    I've built a short little site using the attractive 'Travel' theme, just 5 or 6 pages so far, and have not yet added any multimedia content. However, it seemed to take ages to upload it when I published it to .Mac. So then I went to view it, and it was soooo sloooow to download each page, even on my 4mb cable connection. I know it's a fairly graphically-rich theme, but still!
    I noticed that it was redrawing the navigation menu each time... and upon close inspection of the HTML code using Safari's 'View Source' to my horror I found out that that each page has a seperate '_files' folder that contains multiple versions of files that are also used in other pages - including navigation buttons and background images. I also saw that every element has styling applied to it 'inline' in the code, rather than in a single seperate style-sheet.
    To confirm this I published it to a folder on my hard drive and checked it all out. What a mess!
    As a WYSIWYG web page editor iWeb is great but it's an undisputable fact that the HTML markup and CSS code it produces is absolutely appaling. What's worse though is that it also renders whole swaithes of text as images and that it does create seperate folders for each pages content including images, CSS code and navigation buttons - so even though the same images and code are used throughout the site for the background and buttons and layout, they are written out as seperate files and have to be reloaded with every page!!!
    This means that the .Mac server must be getting hammered and webpages are very slow to download and slow to render in Safari - it's almost like dialup when I'm viewing my iWebsite, and like I said, I've got a 4mb cable connection!
    Looking at the code iWeb produces, it is good to see that tables are not used for layout, and that's one thing in its favour. But surely the whole point of providing 'themed' templates for users is that the same content is used across the site and therefore doesn't need to be created multiple times - one of the benefits of using CSS stylesheets. Why doesn't iWeb create a single stylesheet and make efficient use of repeated images instead of creating multiple instances of the same file for each page?
    Perhaps there is a setting somewhere I've missed. If so, let me know someone!
    It is a great WYSIWYG editor, but behind the scenes it's not efficient, it's not clean and simple and it's certainly not attractive - and I'm surprised at that coming from Apple! I know iWeb is a great tool for beginners and I'm a picky professional, but if I was Joe Public First Time Web Designer I'd be very annoyed by this.
    Clean it up and sort it out Mr Jobs!
    PS: Also, where does iWeb store the website whilst it's in production? I can't find it anywhere?

    Your iWeb Site is stored not on your iDisk, but on a file named Domain.sites in your ~/Home/Library/Application Support/iWeb/ Folder.
    If , for whatever reason, you wipe your HD and/or lose this file (Get a new computer, Re-Install your OS, Stolen Laptop, Crashed HD, Etc.) without backing-up your Domain.sites file then you will have to re-build your iWeb sites from scratch again.
    Of course you can edit your Published HTML files in a different program such as Dreamweaver or even Text Edit. You just can't edit Published HTML files in iWeb. Not at this time at least.
    Use iWebBackup to backup your Domain file to a Blank CD or DVD. Backing up your Domain file to another folder on your computer is not fully backing it up. If your computer gets stolen you still lost the file but if you have your Domain file burned onto a CD you have a backup!
    Download iWebBackup Here
    You can use iWebExtender to automatically consolidate your files into one folder and delete multiple images.
    http://iWebFAQ.com

  • Can you edit multiple images from a PDF in photoshop?

    I scan a lot of old publications with images and drawings. The images are in greyscale, but my scanner produces better results set to color. As such, I have to convert the images to greyscale in Photoshop from Acrobat. I have several PS actions that make this process easier, but I wish there was a way to select multiple images from a page or PDF file and run the actions on them (a batch) instead of one at a time. Is there? Or perhaps another method than what I am doing?

    I recommend that you scan first, save as TIFF, do any desired correction, and only then make PDFs. Scanning direct to PDFs is great for simple uncomplicated workflows, but a liability when correction is needed.

  • Is there a way to add multiple images at the same time to Keynote 6.0?

    I just brought keynote after searching online about adding multiple images to a presentation all in one go - I couldn't do this on the powerpoint version I was using but there were multiple references on google to being able to do this on keynote. I purchased it and now can't get it to work! Any ideas anyone? Thanks

    Do you mean like dragging in multiple images and having one image go on each slide? If so, you just drag the images into the Slide List on the left instead of onto the slide. From this prior post.
    https://discussions.apple.com/message/9068283#9068283

  • Js-error while executing Multiple Image Upload wizard

    If i want to save the configured window of Multiple Image Upload with Save to Database wizard i get this js-error: "While executing onClick in MIUploadWSaveWizard.htm, a JavaScript error occured".
    can someone help?
    thanx
    peter

    That again would be more of a question for the Cold Fusion group.
    Try http://forums.adobe.com/community/coldfusion/coldfusion_administration
    Those people will be able to help you out more.
    Brad Lawryk
    Adobe Community Expert, Dreamweaver
    Adobe Usergroup Manager, Northern British Columbia Adobe User Group

  • Cannot select multiple images in iPhoto '08?

    What am I doing wrong? I want to select multiple images to either print several on a page, or publish to a gallery, but for the life of me I cannot find a view which shows me all photo thumbnails or all thumbnails in an album or all in an event. I can spin the mousewheel to singly go through them, or I can hit edit and go to full screen where I get a thumbnail bar and can select multiples and view them at the same time, but printing or publishing this selection only recognizes the first photo as selected. If I try to select View>Thumbnails, the subsequent menu options are grayed out, and the top one is "hide" even though I see no thumbnail bar. Is there something very obvious I'm missing, or has something gone awry and I should reinstall?
    <Edited by Host>
    Any one can help them?
    Thanks

    There's a slider down right of the iPhoto Window - drag it left.
    Regards
    TD

  • File associations in Bridge CS4 for multiple images

    After a "cache purge" my file associations got altered.  I can go into Edit>preferences> file associations and change that to photoshop; but if I click MULTIPLE images in Bridge and right click "open with" I only get Illustrator as an option.  How can I change this to photoshop as a default when trying to open MULTIPLE images?

    Ronald Keller - thank you.  I am practically in tears laughing about how something so completely simple has had me fretting for days.  Could it be my over 60 mind has completely failed me now, or is it I am just a bit rusty on using my software?  Anyway, thank you for taking the time to offer up this response!

  • Bridge CS4 won't output to pdf multiple images with same filename

    Hiya...my googling efforts have thus far failed!
    I've got CS4, and in Bridge, I created a New Smart Collection to find all filenames in a folder containing "." or ".jpg" - which in turn searched through all the subfolders like what you used to be able to do in Photoshop CS3.  Very simple stuff, but all the images are jpg's, but in multiple folders (I don't want to move them out of the folders, as the files came from an external source, and there are heaps of folders, and I don't want to pdf each subfolder seperately as it will take forever).
    The problem is that some of the files have the same filenames (again I'd prefer not to rename, as it happens a lot on this project, and they are all over the place).  So whilst Bridge will show the thumbnail images correctly in the content tabbed screen in my New Smart Collection, but once I've done the Output to PDF thing, for example, instead of showing both different images it has pdf only the first image but repeated it twice.  And this happens multiple times throughout the pdf, the more times the same filename is used, the more times the first image gets repeated.
    I know that it is messy to have multiple similar filenames, but why can't bridge just place the image anyway?  It allocated a space for it on the pdf and does show it in bridge, it just doesn't seem to survive the transfer to pdf well.
    The only other thing that I have done is use the below link (which was posted on another adobe forum thread) to create a custom pdf output template (nothing too fancy, just number of rows / columns, size, font etc).  But I've tried using the standard bridge templates and it does the same thing.
    http://www.proficiografik.com/2009/08/03/save-custom-pdf-output-template-in-adobe-bridge-c s4.html
    Any help would be appreciated...even if to tell me that I am being unreasonable!
    UPDATE 16/11/09
    Just to let you know that I seem to have resolved the bug inadvertently with one of the Adobe updates. The below is the link for the AdobeOutputModule-2.1-mul-AdobeUpdate.zip which was released on 2/19/2009 - which allows for headers & footers to be placed in the Ouput pdf. I finally installed it today, and everything seems to be working fine now (i.e. I can pdf multiple images with the same filenames and the pdf will actually show each different image rather than repeating only 1 of the images).
    Must have been a fix installed in the contact sheet templates that get installed with the update - not sure why the original version was corrupted, but I've left that with the Adobe guys (I submitted a bug report - and they were able to replicate the problem but hadn't fixed it as yet).
    http://www.adobe.com/support/downloads/detail.jsp?ftpID=4228
    Message was edited by: djtun71 (16/11/09)

    When I click import from disc I am asked to choose a disc and then I get this message:
    The following photos will not be imported because they are already present in the catalog. To see these photos in the catalog select 'Show in Library' (the import will be canceled).
    This is followed by a long list of images. If I click 'Show in Library' I can see all the images with the same filename. And then they start to automatically write over those images with images from the disc. However they keep the same metadata and keywords from the previous images. If I click on Import and deselect the "don't reimport suspected duplicates" box, it imports only the images that don't share filenames and none of the images that do.
    Is there a way of setting the "Don't reimport suspected duplicates" box in preferences?

  • In the new iphoto app, why can't i save multiple images to camera roll at once?

    why can't i save multiple images to camera roll at once? it seems i can only save one at a time and its very frustrating..
    the options seem to be there, they are just greyed out and i cant click on them.
    at first i thought its because the images were too big, so i tried it with smaller images but same thing.
    APPLE HELP!

    I can confirm @khaniff's original post the option in iPhoto for iOS is greyed out in conflict with the referenced article that follows:
    Save to the Camera Roll
    Tap a photo, album, or event and tap .
    Tap Camera Roll.
    Confirm or change the photos you want to share by tapping an option.
    Select all the photos in an album or event: Tap All.
    Select a range of photos: Tap Choose, tap Range, tap the first and last photos in the range, and tap Next.
    To use your photo in another app, open the app and select the Camera Roll album.

  • I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    I am getting a error IO when trying to upload multiple images within wordpress using the flash uploader. I do not get the error when uploading using explorer. The error only appears if I try uploading using firefox....any ideas?

    Logged the call with SAP who directed me to 'Define settings for attachments' in IMG and setting the 'Deactivate Java Applet' & 'Deactivate Attachment versioning' checkboxes - problem solved.

  • Problem in Loading Multiple image in Single Sprite/MovieClip

    Hi All,
    I am having a killing problem in loading multiple images in single movie clip/sprite using a separate class.
    Here is the ImageLoader.as class
    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(imgHolder:MovieClip, imgObj:Object):void {
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
                imgMc = imgHolder;
                imgObject = imgObj;
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadProgress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadFailed);
                imgloader.load(new URLRequest(imgObj.FilePath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    //imgLoader=new ImageLoader;
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(target.list_mc.imgholder_mc,imgObj);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;
    In this case, the ImageLoader.as works only on the last movie clip from the for loop. For example, if i am trying to load three image in three movie clips namely img_mc1,img_mc2 and img_mc3 using the for loop and ImageLoader.as, I am getting the image loaded in the third movie clip only img_mc.
    See at the same time, If i uncomment onething in the for loop that is
    //imgLoader=new ImageLoader;         
    its working like a charm. But I know creating class objects in a for loop is not a good idea and also its causes some other problems in my application.
    So, help to get rid out of this problem.
    Thanks
    -Varun

    package com.project.utils{
        import com.project.*;
        import com.project.utils.*;
        import flash.events.EventDispatcher;
        import flash.display.MovieClip;
        import flash.events.Event;
        import flash.events.ProgressEvent;
        import flash.display.Loader;
        import flash.events.IOErrorEvent;
        import flash.net.URLLoader;
        import flash.events.MouseEvent;
        import flash.net.URLRequest;
        import flash.display.Bitmap;
        public class ImageLoader extends EventDispatcher {
            public var imgloader:Loader;
            public var imgMc:MovieClip;
            public var imgObject:Object;
            public var loaded:Number;
            public function ImageLoader():void {
    // better add you movieclip to the stage if you want to view anything added to it.
                imgMc = new MovieClip();
                imgObject = new Object();
                imgloader = new Loader();
            public function loadImage(filepath:String):void {
                imgloader.contentLoaderInfo.addEventListener(Event.COMPLETE,onImgLoad);
                imgloader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,onImgLoadPr ogress);
                imgloader.contentLoaderInfo.addEventListener(IOErrorEvent.IO_ERROR,onImageLoadF ailed);
                imgloader.load(new URLRequest(filepath));
            private function onImgLoad(Evt:Event):void {
                var image:Bitmap = Bitmap(Evt.target.content);
                try {
                    imgMc.removeChildAt(0);
                } catch (error:Error) {
                imgMc.addChild(image);
                try {
                    if (imgObject.URL != undefined) {
                        imgMc.buttonMode = true;
                        imgMc.removeEventListener(MouseEvent.CLICK, onImageClicked);
                        imgMc.addEventListener(MouseEvent.CLICK, onImageClicked);
                } catch (err:Error) {
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD"));
            private function onImageClicked(evt:MouseEvent):void {
                trace("Image Attrs:"+imgObject.URL +" Target "+imgObject.Target);
            private function onImgLoadProgress(Evt:ProgressEvent):void {
                if (Evt.bytesLoaded>0) {
                    loaded = Math.floor((Evt.bytesLoaded*100)/Evt.bytesTotal);
                    dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_PROC",loaded));
            private function onImageLoadFailed(Evt:IOErrorEvent):void {
                trace("Image Loading Failed");
                dispatchEvent(new CustomEvent("CustomEvent.ON_IMGE_LOAD_FAIL"));
    Here I am loading some images using the above class in a for loop, like
                for (var i=0; i < 3; i++) {
                    var imgLoader:ImageLoader=new ImageLoader();
                    imgLoader.addEventListener("CustomEvent.ON_IMGE_LOAD",onImageLoad);
                    var target:MovieClip=videolist_mc["list" + mcCount + "_mc"];
                    target.list_mc.visible=false;
                    var imgObj:Object=new Object;
                    imgObj.FilePath=list[i].Thumbnail;
                    imgObj.Url=list[i].Url;
                    imgObj.Target=list[i].Target;
                    target.list_mc.urlObj=new Object  ;
                    target.list_mc.urlObj=imgObj;
                    imgLoader.loadImage(pass the image file's path/name);
                    target.list_mc.lable_txt.htmlText="<b>" + list[i].Label + "</b>";
                    target.list_mc.imgholder_mc.buttonMode=true;
                    target.list_mc.imgholder_mc.addEventListener(MouseEvent.CLICK,onItemPressed);
                    mcCount++;

  • Multiple images of the same file on one page

    How do I create multiple images of the same file on one page? For example, I've got an image that I could fit 6 of on one page, and would like to print it that way instead of printing it on 6 individual pieces of paper.

    Are you attempting to do this in Adobe Workspaces? Or are you looking for software that will do it?
    If the former, you could insert the image into a Buzzword document six times. Not exactly elegant, but it might do the trick.

  • Can I have multiple images on a single USB drive?

    I would like to save an image from my T400 (XP), then upgrade the hard drive to an SSD, then upgrade the OS to Windows 7 (or 8), and take another image.
    I have several questions that I hope someone can help me with...
    Can I use Rescue and Recovery to save multiple images to a single USB drive?  
    If so, how does the sw keep the files separate?
    Will it still work if I use two different Rescue and Recovery versions (4.3 for XP, and 4.5 for W7)?
    Is there a way to store the images in separate folders on the USB drive, or is that unnecessary?
    Is there a better way to do this (including using different sw)?
    Thanks in advance,
    Ron
    Solved!
    Go to Solution.

    If you open Disk Management, you'll see Disk 0 with more than one partition. If you want to rebuild a HD back the same you'll want all or at least two of the partitions. You'll notice the Active Boot partition is not C the Windows drive but a partition called System_Drv (at least in my system). Those two will be mandatory when you image a new drive. Otherwide you'll have some fixing with external tools to get it booting.
    T520 Model 4239 Intel(R) Core(TM) i7-2860QM CPU @ 2.50GHz
    Intel Sandy Bridge & Nvidia NVS 4200M graphics Intel N 6300 Wi-Fi adapter
    Windows 7 Home Prem - 64bit w/8GB DDR3

Maybe you are looking for

  • Hyperlinks bump me out of Slideshow View

    Hi. I have a Keynote presentation that has links to another Keynote presentation.  When I click the link in Slideshow view, the other presentation opens but I get bumped out of Slideshow view.  How do I keep this from happening? And once I have the l

  • 'open new tab' function has stopped working, even after reinstall

    The 'open new tab' function has stopped working. I even uninstalled Firefox and reinstalled and no help.

  • Can't download pictures fom card thru USB

    I can't download pictures from memory card thru USB port Solved! Go to Solution.

  • HT2494 Mac book pro dead

    I plugged in an Iphone usb cable to charge my iphone and as soon as the usb touched the port, the macbook pro went dead.  The laptop will not turn on, the charging light does not turn on.  Completely Dead.  Hoping that I can recover the data. i copie

  • Zcm11 reporting server infoview error

    ZCM 11 on Suse 11 x64. when I open the ZRS InfoView window and try to run a canned or custom report it always returns "C​a​n​n​o​t​ ​i​n​i​t​i​a​l​i​z​e​ ​R​e​p​o​r​t​ ​E​n​g​i​n​e​ ​s​e​r​v​e​r​.​ ​(​E​r​r​o​r​:​ ​R​W​I​ ​0​0​2​2​6​)​ ​(​E​r​r​o​r​: