Thumbnail with dynamic images

I'm trying to create a thumbnail object for an HLIST, the
data for the thumbnail is a bytearray containing an image in PNG
format. The data comes from a database in an AMF object via FDS. I
can see the data in the debugger, and it is not null, but I'm not
sure what to do with it now that I have it. (ie, how to turn it
into an image that I can display) Any help would be greatly
appreciated.
Thanks.

So I've found something that "works", but I no longer get
mouseover highlights or the ability to click the items. I'll post
what I've got, and any suggestions/criticisms would be appreciated.
Thanks
ps, sorry I couldn't get the indenting to work properly
public class ThumbRenderer extends Image {
public var thumbLoader:Loader;
// Define the constructor and set properties.
public function ThumbRenderer() {
//trace("thumbrenderer created");
height=140;
width=140;
setStyle("borderStyle", "none");
thumbLoader = new Loader();
thumbLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,
completeHandler);
override public function set data(value:Object):void {
//trace("thumbrenderer set data");
if(this.numChildren > 0)
this.removeChildAt(0);
var myData:ByteArray = File(value).imageData;
thumbLoader.loadBytes(myData);
private function completeHandler(event:Event):void {
trace("completeHandler: " + event);
//super.data = thumbLoader;
addChild(thumbLoader);
super.invalidateDisplayList();
super.invalidateProperties();
super.invalidateSize();

Similar Messages

  • In CS5, Win7...go to File, then Open...do you see .PSD thumbnails with preview images?

    In CS5, Win7...go to File, then Open...do you see .PSD thumbnails with preview images?
    In all other versions of Photoshop, I can see a preview of the image, even .psd files, but with CS5 now, I just see the PSD icons...this again, is when you go to File, then Open...  Anyone else see this?  In Elements 9, I see the preview thumbnail icon, not generic, same with CS3 and Elements 7, but not with CS5? 

    Well, I was thinking if others tried on their Win7 system, they could let me know if they get the same result or different...so by comparison I could see if I had an issue with my software, such as if it were standard...  However, I did figure it out...  It's a 32-bit vs. 64-bit difference.  Elements 9 is a 32-bit software, and so is CS5 32-bit of course....so both of those softwares show .psd thumbnails in the File, Open view...but the 64-bit does not...in Win7 64-bit...in case anyone else is wondering...  

  • How to create a menu in flex with dynamic images?

    I am using mx.controls.Menu but can't seem to find a way to add dynamic images to it...is there a way fo doing this? should I me using another control?

    place the images path in the xml file
    when the swf is loaded pass the path of the xml file and
    bind the source of menu images with the loaded xml
    If this post answers your question or helps. please mark it as such

  • Sever Newbie wants to try his hand with Dynamic Images

    First off, I am a new Flash8 user (less than 3 months).
    I've read a lot of posts on how to create a SWF using Dynamic
    Images, but to tell you the truth...I can't seem to figure it out.
    I'd like to recreate the following SWF using my own data as
    this particular link <
    http://www.respectsoft.com/weatherclock/get-weather.php>
    is not always reliable.
    I've read that you must convert each image into a movie and
    then load that movie using the loadmovie. I can PROBABLY figure
    that part out, but I've tried creating a FLA and inserting a MOVIE
    image but nothing happens.
    Like I said, I am about as green as they come, but we all
    have to start somewhere.
    Any tips / help / links would be GREATLY appreciated.
    Ken

    Hi Lon,
    I tried your suggestion, but it only works locally. When I
    try it out on the Web, it doesn't work. I believe the reason why is
    that I am trying to load a SWF from another website. Since SWF's
    can't execute calls necessary to build the dynamic images...nothing
    appears.
    Is there a way around this?
    Thanks again,
    Ken
    I load the following into a local SWF called "weather.swf" on
    my website.
    var myClip_mc:MovieClip =
    this.createEmptyMovieClip("myClip_mc", this.getNextHighestDepth());
    myClip_mc.loadMovie("
    http://www.respectsoft.com/weatherclock/forecast.swf");
    myClip_mc._x = 100;
    myClip_mc._y = 100;
    In the HTML of my webpage I have
    <p align="center"><embed title="What will the
    weather be for your visit?" src="/Public/weather.swf"
    quality="high" wmode="transparent" bgcolor="#CC00CC" width="400"
    height="170" align="middle" type="application/x-shockwave-flash"
    pluginspage="
    http://www.macromedia.com/go/getflashplayer"
    /><br>
    </p>

  • In photoshop cc my saved files don't appear as thumbnails with the image, only with the generic tiff or jpeg icon

    how do i get actual thumbnail images in photoshop cc instead of generic tiff or jpeg icons??

    And what exactly? If you mean system thumbnails, then this has nothing to do with PS. You messed up your file associations then by installing a tool that usurped those associations and they no longer default to the Windows preview function.
    Mylenium

  • Thumbnails with Jpeg images

    I want to export JPEG images to an SD card to use in a digital photo frame. However, it seems a tiny thumbnail is always exported. How do I just export pure JPEG with no thumbnails?

    skipcello:
    Welcome to the Apple Discussions. Use the application Grim Ripper to strip the resource fork from the files before adding to the memory card. Export the files to a folder on the desktop, run Grim Ripper and then add to the card. You might fine that the slides may display faster if you reduce the size to the pixel dimension of the frame's screen beforehand. You can also get more pictures on the card.
    I've got a digital frame and it doesn't read the thumbnails in the resource fork. The card is a smart digital card and formatted for Fat 16 I think.
    Do you Twango?
    TIP: For insurance against the iPhoto database corruption that many users have experienced I recommend making a backup copy of the Library6.iPhoto database file and keep it current. If problems crop up where iPhoto suddenly can't see any photos or thinks there are no photos in the library, replacing the working Library6.iPhoto file with the backup will often get the library back. By keeping it current I mean backup after each import and/or any serious editing or work on books, slideshows, calendars, cards, etc. That insures that if a problem pops up and you do need to replace the database file, you'll retain all those efforts. It doesn't take long to make the backup and it's good insurance.
    I've written an Automator workflow application (requires Tiger), iPhoto dB File Backup, that will copy the selected Library6.iPhoto file from your iPhoto Library folder to the Pictures folder, replacing any previous version of it. You can download it at Toad's Cellar. Be sure to read the Read Me pdf file.

  • Transitioning with Dynamic images

    I am working on a project now where I will have to call a
    sequece of jpeg images and I will need to be able to crossfade
    IMAGE01 OUT and IMAGE02 IN....etc. I need to also focuse this
    inside one movie clip that resides on the master.swf file that is
    loading other content in addition to the image sequence. Anyone
    have any idea how to do such a thing?
    Thanks for the help (in advance)
    Kyle

    I have been able to resolve this. My problem with previous code was that it wasn't running at the right time during execution. Here's the fixed code:
    This will properly load a BLOB object into an image.
    -Mike

  • Dynamic Image Gallery Issue

    Hello All!
    I am creating a dynamic image gallery, but when my external
    images load in the empty movie clip, all the images are loading in
    the same size/dimension. Does anyone know how I can command the MC
    to load the images in different sizes, another words - to load them
    according to its own size?
    here's the AS
    onClipEvent (load)
    function imageMove()
    var _loc1 = this;
    for (i = 1; i <= num_of_image; i++)
    mc = _loc1["image" + i];
    if (i < hit)
    tempx = small * (i - 1) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else if (i > hit)
    tempx = big + small * (i - 2) + 30;
    temps = small - 5;
    mc.useHandCursor = true;
    else
    tempx = small * (i - 1) + 150; //distance of how far out the
    displayed image jumps.
    temps = big - 5; //distance between the displayed image and
    thumbnails.
    mc.swapDepths(1000);
    display = txt
    mc.useHandCursor = false;
    } // end else if
    mc._x = mc._x + (tempx - mc._x) / 3; //number of pixals on
    x-axis the displayed image moves over to right side before growing
    big.
    mc._width = mc._width + (temps - mc._width) / 3; //number of
    pixals on x-axis the displayed image moves over to left side before
    growing big.
    mc._height = mc._width * 4 / 3;
    if (Math.abs(mc._width - temps) <= 1)
    title._x = hit < 5 ? (_loc1["image" + hit]._x + big / 2) :
    (_loc1["image" + hit]._x - big / 2 - 100);
    title._y = 100;
    } // end if
    } // end of for
    } // End of the function
    function loopHye()
    if (hit != num_of_image)
    ++_global.hit;
    else
    _global.hit = 1;
    } // end else if
    } // End of the function
    getURL("FSCommand:allowscale", false);
    big = 300;
    //Large image width (400 works best for my portfolio site)
    small = 60;//Small image width (40 works well for my
    portfolio site)
    num_of_image = 8;//Total number of images
    timeGap = none;//Speed (speed of gaptime when each image is
    displayed automatically. "2000" is default of this original file.
    larger the number the slower the image changes. (type in "none"
    will stop automatic images from changing.
    _global.hit = 0;//First displyed image number (type "0" to
    stop images from growing out)
    txt = [" ", "image1", "image2", "image3", "image4", "image5",
    "image6", "image7", "image8"];//insert text of each images between
    for (i = 1; i <= num_of_image; i++)
    attachMovie("image", "image" + i, i);
    loadMovie("image/" + i + ".jpg", this["image" +
    i].tar);//image folder path
    mc = this["image" + i];
    mc._x = small * (i - 1) + 30;
    mc._y = 200; //where on the axis should the displays be.
    mc._width = small - 5;
    mc._height = mc._width * 4 / 3;
    this["image" + i].onRelease = function ()
    clearInterval(interval);
    _global.hit = this._name.substr(5);
    interval = setInterval(loopHye, timeGap);
    } // end of for
    interval = setInterval(loopHye, timeGap);
    onClipEvent (enterFrame)
    imageMove();
    check out the file
    http://www.wendiland.com/Gallery122b.fla
    this is what the current gallery looks like
    http://www.wendiland.com/print2.html
    I'd appreciated if someone replies with any sort of
    suggestions! thanks in advance!!!
    - W£NDI

    if you google with "dynamic image gallery", you'll find a lot
    of
    tutorials & examples including pre-programmed solutions
    if you prefer to do it yourself, you need to deal with
    dynamic sites. DW
    help chapters Preparing to Build Dynamic Sites, Making Pages
    Dynamic &
    Developing Applications Rapidly can also help to understand
    in fact you don't need a database, the images can be read
    from the
    folder they're stored. that way to update a gallery you only
    need to
    remove/replace/add images. one folder for each gallery
    and the application development forum is best suited for your
    question
    BTW, some nice photos in your page
    hth,
    jdoe
    uvi wrote:
    > I'm trying to create a dynamic image gallery that is
    updated from a database, i
    > managed to create a simple mysql database
    > using phpmy admin, so I could update my image gallery
    more often, I saw
    > something that I like but I have no idea how to create
    it here is the example:
    >
    http://flight001.com/store/trip.htm?itemid=307&sid=201&page=2
    > I didnt manage to create this with dynamic table from
    within dreamweaver 8,
    > maybe I just don't know how,
    > this is the link to a gallery on my website:
    >
    http://www.yuvallavy.com/work/scenic/scenic.htm.
    I need all the help I can get
    > I'm using dreamweaver 8 on a Mac and using PHP/MySql
    server model.
    >

  • Dynamic Images in Crystal Reports

    I have a report with Dynamic Images. I am able to run the report but once I try to export it or try to browse through the pages I get the following error:
    Application popup: Crystal Reports - [Inventory Graphics Report.rpt]: crw32.exe - Application Error : The exception Integer division by zero.
    (0xc0000094) occurred in the application at location 0x2c03a410.

    Hi Don,
    I have read your response 10 times, but I don't really understand it.
    "Your only option is to use the Insert OLE Object or picture into the report" - fine, but how is this achieved from a dataset?
    "CR will not display BLOB fields as pictures" - fine, but maybe I used the word BLOB badly. The dataset column datatype is "byte[]". Will CR display byte[] columns as pictures?
    "You can use a database field to point to which picture file to use, then you won't be using up valuable memory space importing the images into your data set. And the Logo's now dynamic...." - this seems to suggest that the database field is a string storing the file location on disk. Yes? I don't care about memory space in this case and I'm happy to load a binary file into a byte[] column if there is a way of displaying it.
    So, if I understand correctly, you're suggesting the dataset contain a table.row.column which stores the filelocation. How do I convert that to display as a picture (dynamically)?
    Robert

  • Dynamic Image Location in JRC

    <p>Hi !</p><p> </p><p>We are interested in using so called dynamic image location future in JRC. So far we are unsucessful, so the question is, is it supported in JRC ? We are able to get dynamic image location future working in report designer, but when our report is exported there is no image only path to it. </p><p> </p><p>We use Crystal Reports 11 R2, Java Reporting Component in JSP version.</p><br /><p>Mac</p>

    I have a couple of reports working with dynamic images. CR4E doesn't support this (yet?!?), but you can still do it with the JRC. The big kicker is the syntax of your URL. If you're using a static image on a server somewhere, it should work with no problem. However, if you're using a generated image, it's a little trickier. I discovered this when I was creating a report with barcode labels. The barcodes were not getting generated. I turned on debugging and found that the JRC was screwing up my url. The url was as follows http://myserver/barcode?message=12345 67890&format=datamatrix.
    In the logs, the JRC said it couldn't find an image at the url
    http://myserver/barcodemessage=12345+67890&format=datamatrix. It was stripping out the ? in the url, which is kind of an important character to say the least. I messed around with it and eventually found that if I just put ?? instead of ?, the image would display correctly with the JRC. Hope this helps! If not, post what version of the JRC you're using and the URL you're using for the image location.

  • Dynamic Image issue using the SDK CrystalReportViewer in a Web Farm

    Hello,
    Well it's the classic dyanamic Red X image problem with a twist. We have the CrystalReportViewer control coded into an ASPX web page using the BOE XI R2 SDK.
    The problem is everything works fine (after all the usual Red X image fixes) when only one of the servers in the farm are running. It's when two are running, by using Process Monitor, I can tell NetScaler is splitting up the HTTP calls so one server may have the temp image created and of course the other one doesn't.
    Therefore, if you're lucky enough for one server to handle most of the load, image comes up fine. Otherwise, the report renders, but you get Red X for the image.
    I have seen an article about a registry key (CrystalImageDir) that allows you to enter a network share as the temp folder. The problem is, we are using Windows Integrated Authentication for the intranet site so you're faced the two hop authentication hurtle, leading to access denied on the UNC network path.
    Anyone using the SDK in a .NET application using multiple web front end servers?
    Thanks!
    Horus

    By the way, I'm hearing that NetScaler can handle sticky sessions. However, since a report with dynamic images is really a GET request for the report, then a bunch of sub-GETs to grab the images, what URL would you set the sticky session for?
    For example, if the web page containing the CrystalReportsViewer was:
    https://coolapplication.mycompany.com/Site100/ReportApp/ViewReport.aspx
    Then report the viewer would contain links to something like:
    https://coolapplication.mycompany.com/Site100/ReportApp/CrystalImageHandler.aspx?dynamicimage=cr_tmp_image_5671d67a-4f5d-4ab1-b3c8-0d2561ee64f3.png
    So which URL/page gets load balanced? Or is that not how LB works?
    Thanks!
    Horus

  • How to save transparent background images to have transparent background thumbnails with Photoshop 2014?

    In old versions of Photoshop there was a feature that made thumbnail images have a transparent background.  I'm a CC member using Photoshop 2014 on a MacBook Pro running OS X 10.9.4 and every thumbnail of a transparent background image I've created in Photoshop 2014 appears on my desktop with a solid white box background that has a thin black outlined box inside of it.  How do I save the transparent background images I've created in Photoshop 2014 so they will appear on my desktop as thumbnails with a transparent background?   I'd like to continue to be able to replace the default background-less folder icon that that appears on files with transparent background thumbnails to customize my files as I use to do with older versions of Photoshop.

    If your layered document has a Photoshop background layer it visibility need to be set off when saving a PNG or Gif file for Photoshop background layers do not support transparency.
    Thumbnail may be a bit more complicated than you think. I do not use Lightroom, and only occasionally use the bridge.  I believe Lightroom and Bridge  keep thumbnails they develop for image files  in their library databases and caches.  Other programs do not have acces to  these.  RAW Files and Image files have Jpeg previews stored in then.  I believe most application use these previews jpeg to create thumbnails.  Jpeg format does not support transparency.
    Icon on the desktop are not always thumbnails some are embedded icons in application modules other are icon in dll these may well have transparency. However image file on the desktop have generated thumbnails.  However you can create a shortcut for an image png file and create a icon with a transparent background for the png file and change the shortcut's icon for the png file to the transparent ico file you created for it.
    Also many Photoshop release ago an Adobe module created Thumbnails for image files in Windows File explorer and most likely system file dialog. Adobe stopped supporting that stating Microsoft changes how windows works.
    Today I use FastPictureViewer Codec Package to generate image thumbnails for image files including RAW and PSD files in File Explorer and system file dialogs.
    I don't use a Mac don't know what available for your Mac.

  • Is it possible to add a thumbnail to an image file with core graphics ?

    Hi,
    I'm writing a small image processing application.
    For image reading and writing I'm using core graphics (CGImageSourceRef / CGImageDestinationRef).
    Several image formats like jpeg or tiff provide the option to store a thumbnail in the file.
    To get this thumbnail I'm using
    CGImageSourceCreateThumbnailAtIndex( ... )
    which works fine so far. If there is no thumbnail in the image it is created
    with this function. Now, in the case there was no thumbnail in the image I would like to store
    the created thumbnail in the image file when I write it to the disk. So far I failed to find a function in core graphics
    to perform this task. In the CGImageDestinationRef documention it is only mentioned, that thumbnails
    are written into the output file, but not how to add these.
    I fear I'm overseeing something very trivial ...
    Regards,
    ingo

    normfb wrote:
    I believe that a Smart Object will solve your problem.
    place your original image in a new file as a smart object and do the same for the reflection (made by Transforming, reducing the opacity and introducing a mild horizontal motion blur) on its own layer, then:
    by double clicking on the smart object in the layers panel and returning to the original image, any change you make in the original and save, will automatically update the upright image and its reflection.
    Nice one Norm.  Five Kudos points to you.

  • Lightbox with multiple images attached to one thumbnail?

    Is it possible to have one thumbnail allow you to scroll through multiple images without having to click on another thumbnail? 
    For example,  lets say that I have three projects with 10 images per project.  I only want to have three thumbnails which will allow the user to see each project by clicking on it's "master" thumbnail.
    Thanks.

    If your intent is to have a single thumbnail (image) that your visitors click and it launches a Lightroom with Slideshow, you can try the following.
    The gist :
    Insert Slideshow Widget into target of Composition Widget
    The details :
    01. Drag & drop the Lightroom Display Composition Widget onto your design surface.
    02. Drag & drop a Slideshow Widget into (this is the important bit) the Target of the Lightroom Display Composition Widget
    The Target is the large area of the Composition Widget
    The Target is what appears as a light box when you click on the Trigger (the smaller boxes)
    03. Add your thumbnail image to the Trigger of the Lightroom Display Composition Widget (the smaller boxes)
    Style it :
    You're now ready, style your widgets and replace the images of the Slideshow Widget and you'll have the effect you're looking for.
    Very crude example :
    http://slideshowwidgetincompositionwidget.businesscatalyst.com/index.html

  • Dynamic image load with MovieClipLoader

    I'm trying to load five images from five URLs. If I use the
    documentation exactly as is, it works fine. Problem is, I don't
    want to createEmptyMovieClip, I want to use an existing one that's
    tucked inside a movie instance. Also, the images coming in are of
    unknown size, but have a standard 4:3 size ratio. I'd also like to
    scale them down to 180x120 after they arrive. Any help would be
    greatly appreciated.
    The code below only loads one image (which isn't working). I
    will eventually need it to load five different images.

    Dynamic text that doesn't have embedded fonts won't respond
    to tweening, alpha, etc. So you need to embed the font(s). There
    are a couple of ways to do this depending upon what you are doing.
    But most likely you can just select the text field and click the
    font button on the properties panel and select embed. Also I would
    recommend that you use _visible=false instead of alpha for this
    effect.
    I'm not sure what the second go-round is. Can you explain
    that a bit better? You should be able to use the same loader, so
    I'm not quite sure what is going on. Again, look for some helpful
    places to put some traces and see if you can figure out what is
    going on. Remember that generally Flash does what we tell it, not
    what we want! So if you can find the places where you are telling
    it to do things you can figure out what is happening.
    Also I'm not clear on what is going on with the variables and
    text. Generally I would recommend against using the variable
    property of text fields. That is a leftover from the Flash 5 days
    when you couldn't work directly with dynamic text fields. Instead
    give the fields instance names and then assign the text with the
    text property.
    myTextField.text="some value in here";
    myTextField2.text=someStringVariable;

Maybe you are looking for

  • Losing screen tips in pdf

    Hello, I've created a pdf from a Word doc. In the Word doc I created bookmarks. When I create the hyperlink I added Screen Tip text and then selected the bookmark. After I convert the pdf, the link works fine, but the screen tip is missing. any help

  • Changing the encoded link to an aggregated task in MySite

    Hello, we have created a task process in SPD with a content type of Workflow Task 2013. A user starts the workflow and the task is then assigned to a user. The task is synchronized in his MySite and then wants to either approve or reject the request

  • Why do my emails keep reappearing.

    Cannot delete my emails, keep reappearing. Tried changing settings and still reappears. Very frustrating and time consuming.

  • Je peut demander un change d iphone au bout de 3 semaine car il a des beug et des probleme de finition

    je peut demander un change d iphone au bout de 3 semaine car il a des beug et des probleme de finition des probleme de batterie des probleme de wifi ect

  • Cant Browse Over wifi using opera

    i have problem over LAN while using opera mini in my x3-02. whenever iam trying to browse with opera over wifi its saying to review my network settings i dont know what is the problem. i downloaded another version but that also doesn't work. please h