ActionScript 3.0 :: Creating A Thumbnail Image?
Sep 22, 2008Is there a way to read in an existing image and write out a smaller, jpeg version?
View 8 RepliesIs there a way to read in an existing image and write out a smaller, jpeg version?
View 8 RepliesI am creating an image gallery where the user can select from several thumbnail images. Once selected, the thumbnails will enlarge and load the full sized image. My problem is that while the user is waiting for the full sized image to load, he may decide to close that image and view another image. I am trying to find a way to stop a loader from loading.ere is the code I have used. My problem is that even though the user has clicked on the unloadBtn, the loader continues to load the file. Is there a way to disable that?
Code:
import flash.net.URLRequest;
import flash.display.Loader;
[code]....
I'm looking to do a sliding image menu like this one: [URL]. I can do this using tweening but it is not as smooth as using actionscript. Does anyone know what the name of this is as when I do a search as I can't find any solutions? I've tried 'thumbnail expand' and 'image easing' but am not getting any hits.
View 2 RepliesI have found an excellent tutorial and source file for a 3D image gallery. However I would like to make the thumbnail click thorugh to a url link when pressed rather than loading the image into the gallery.
Currently the images load in through actionscript. Is there a way to amend this script so you can specify that a thumbnail clicked links through to a url, like you would with a normal button instance rather than loading the image. Here is a link to the file and tutorial. The actionscript is on the top layer within the file.[URL]...
As far as I know, what I ask here isn't possible, but I thought I'd ask anyway in case I'm missing something.
Suppose you want to let users upload JPG images, and these images are scaled into smaller icons and the original images are always discarded and never required again. Is there any way that would commonly work in most modern browsers that would let the user select a single image on their hard drive, have that LOCALLY turned into a thumbnail and upload the created thumbnail to a server?
In a case where the server just needs a small image, it would be wasteful both in user time and server resources to proceed uploading the whole image, only to immediately discard it. It would be much better to just scale it on the client.
I can imagine three options. Just plain HTML/Javascript, using Flash or using Java. If this were possible with Flash, that would seem like the best option. But reading flash.net.FileReference documentation, it seems that you can upload a file from the HD yes, but you cannot look inside the file you are uploading. On the other hand, if you enable "can access local files" in Flash publishing options, it seems that you can then no longer access the net, so that doesn't work.
With HTML/Javascript, it is possible to load images and display them on a <canvas>, but if you try to access the pixels of these images, you get security violations, so that doesn't seem to work.
Java I hesitate to use, because only 96.52% of my users have it installed, and the file upload dialogs I have seen implemented in Java (at Facebook for example) have not worked well (unresponsive interface). I wonder though if Java is the only thing allowing resizing images from local HD?
I have found an excellent tutorial and source file for a 3D image gallery.However I would like to make the thumbnail click thorugh to a url link when pressed rather than loading the image into the gallery.Currently the images load in through actionscript. Is there a way to amend this script so you can specify that a thumbnail clicked links through to a url, like you would with a normal button instance rather than loading the image.Here is a link to the file and tutorial. The actionscript is on the top layer within the file.URL...
View 9 Repliesi have build an air app that has an extension of a FileSystemTree Component in it, to display only the jpg files and directories in the file system.a checkbox allows the user to choose whether to see the items in the tree as thumbnails or regular (labels+icons) tree items (the tree has variableRowHeight set to true).
if the checkbox is selected, any time a branch in the tree is opened all the thumbnails of the jpeg files in that directory are rendered first.this part of the application works fine (the thumbs are created).my custom itemrenderer is an extension of the TreeItemRenderer class.
the display of the items in the tree is unpredictable and scrolling the tree makes it worse. i am pretty sure that i didn't override the "lifecycle" functions of the component (the invalidation and validation methods) correctly.
i have added a function called thumbToggle which informs the itemrenderer if the checkbox is selected or deselected while the tree is idle.
what is your opinion in overriding set data, invalidateProperties, invalidateSize, invalidateDisplayList, commitProperties, measure, updateDisplayList and other functions to achieve a smooth operation of such a tree?
I am creating a gallery of video thumbnail.Also I am planning to set the frame of video on each thumbnail to first frame of video .When i load a single video,its working. But when i tried to load more than one video on different thumbnail movie clip in a for loop, its not working. This is my live project.can anybody help me.its very urgent. I tried with many possibilities that i know. I am a 3 month experienced flash programmer.
var thumb_nc:NetConnection = new NetConnection();
thumb_nc.connect(null);
for(i=0;i<videoArrLen;i++){
[code]...
The urlArry contains the url of video to be loaded and thumbArry contains the NetStream object for different movieclips.
I've found several good tutorials in AS2.0 on creating a scrolling thumbnail menu bar for adding to a photo gallery, but nothing in AS3.0. Anyone have a tutorial or code they'd like to share?
View 2 Replieshow to create a xml photo gallery but somehow all of them doesn�t discuss what i need to know. [code].....Especially i am interested in howto structure the xml for such an portfolio / gallery grid and having custom tweening for the thumbs to transition in and transition out, handling the click event for x thumb and loading the "big" content to a new container. Adding preview/next button functionallity to the Thumbnail Grid and for each "big" content and so on.
View 1 RepliesI have implemented a thumbnail. Then when I click on the thumbnail images, i want to create a popup window in flash. But the problem here is that no action is performing when i click on the thumbnails.
function createThumbnails(xml,MC){
var totThmbs = xml.firstChild.childNodes.length;
var Hldr = MC.createEmptyMovieClip("Hldr",200);
Hldr.attachMovie("thumbnail_bg","thumbnail_bg",100);
Hldr._y = 235;
[Code] .....
How would you guys go about creating an horizontally scrolling panel of thumbnail images? I want a panel that scrolls for ever in both directions and it also needs to be controlled via two arrow buttons not a mouse over type scroller. I would also like to animate with Tweens in action script to get a nice smooth scroll.I know some as3 but I can't work out how to make the scroller repeatedly scroll in both directions.
View 7 RepliesI'm working on creating a gallery for my portfolio site. I have thumbnails of all my work. I've turned them into button and made it so when you rollover it, a larger preview of it appears with a description of the piece, off to the side in a designated area. Instead of making my stage larger or creating more pages to contain all my thumbnails, I made a vertical scrollbar. The scrollbar works just fine. The problem is when the thumbnail is moved, the rollover that would be moves in relation to it.how can I absolutely make sure that any rollover I create with a button is where I want it to be, no matter where the thumbnail moves to?
View 10 RepliesI have a page that I'm trying to build that has a scrolling image bar at the bottom but I want to also show the full size image in flash above the images that come up in the thumbnail array when you mouse over each image in the array. I found some code that makes the thumbnail array work but I have no idea how to display the second larger image on mouse over because its loading the images externally... what can I do? Feel free to email me back.
View 1 RepliesI am using Flash CS4. I insert and build a SWF file just fine. In the component inspector there is a preview entry but there is a note that says it is only for development not runtime. It says to use ActionScript and the Export option. I have used the Export Option to create the thumbnail image but I have no idea how to setup the ActionScript.
View 1 Replies[URL]I can change the images and even the number of pieces. When I create a puzzle with a large amount of pieces you can't really tell what the whole image is suppose to look like. So what I would like to do is after the image is loaded and put in the listener, create a small version of that same image so the user can now know what the image should look it.
View 5 Repliesi'm using a modified version of the xml thumbnail tutorial on this site and am having a weird problem. sometime on some machines the thumbnails are desplayed in reverse order but when the page is refreshed they're dispalyed in the correct order. on other machines they load in in the correct order fine. anyone have any ideas why this would happen? the image names are loaded into an arrayin the onload of the xml the thumb images are put into an array:
for (z=0; z<videototal; z++) {
thumbnails[z] = xmlNode.childNodes[z].childNodes[0].firstChild.nodeValue;
moviefile[z] = xmlNode.childNodes[z].childNodes[1].firstChild.nodeValue;
[code].....
i'm making a scrolling xml gallery. Everything is working fine however for the particular design of the site i'm making i need thumbnails that have different widths. Currently i've written an xml file that lists the names of the images which are then loaded into a container within a scroller.Is there a way i can load external images and then write some AS that figures out how wide each thumbnail image is? (i have a feeling i need to write a variable for the widths of the containers but not sure how) or maybe an easier way of looking at it - does anyone know of an example that loads an array of images sequentially that have different widths but display next to each other?
View 2 RepliesI've done a basic thumbnail scroller before, but now I'm trying to make one like the scroller at I need to figure out how to get the popout with the text on it. Specifically when the image is the center image. Can anyone point me in the right direction?
View 3 RepliesI am trying to display the title of the thumbnail image, which is being loaded from the XML file. If i trace the title then it is printed, but it is not displayed in the TextField.
Below is the code, i used so far.
Code:
var Current_page:Number;
var Total_pages:Number;
var Detail_mc:Array = new Array();
[Code].....
I'm tring to have it when you click on a thumbnail, it loads a larger image over the scene. Here is an example, since I'm sure that my desc. is awlful. link My scrolling thumbnails are based off of the tutorial on kirupa.com. Here is my site. and action script. (architecture is only one that has any images on it currently for testing)
Code:
cliparray = [];
function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
[code]....
I've completed the tutorial to create a photo gallery using flash and xml, and have gone on to add the thumbnails. Everything works as intended, but now I would like to add another feature... I'd like to highlight the thumbnail that coordinates with the current image (maybe at 100% alpha while the others are only at 50% or something along those lines). Any suggestions, building off of this:[URL] ?
View 1 RepliesI have a MC filled with button thumbnail images. I am trying to tell the thumbnail to display the corresponding fullsize image. the script I have for the first button is
on (release) {
picts.gotoAndStop(2);
}
Picts is the name of the MC containing full size images. There is no response to the button.
I'm having trouble trying to get rid of an image in my container when I click on a thumbnail. I keep getting an error saying DisplayObject must be a child of the caller.I've looked around the web and can't figure out what I'm doing wrong, nor am I sure what the error means when its referencing the caller.[code]
View 3 Repliesi am currently working with flash based fashion website. here i am uploading large image and thumbnail from xml. i also have menu navigation at top. my code structure is detail below:
[Code]...
my problem here is like i have home button with 5 thumbnail and handbags with 2 thumbnail when i click home button will display 5 thumb with large image and again when i click hangbags buttom it will display 2 thumb which is what i want but 5 home thumbs keeps on remain at back. dont know how to remove them upon new button click
i am building a digital portfolio and i have managed to get the thumbnails on a horizontal scrollbar but i want to be able to click on one to load the full image. I dont know where to start though. The code i have so far is:
Code:
package {
import flash.events.*;
import flash.display.*;
import flash.net.URLRequest
[Code].....
I learned from great kirupa tutorial and implemented the thumbnail gallery in my site.If I open the site in browser Opera or Firefox (FP 8.0.0.447) i see only 1 thumbnail image - is it bug in Player? In IE 6 I have FP 7.0.19.0 and I can see all thumbnails in the navigation bar - also correct.
View 8 RepliesI've to create a image gallery with following features :
1) Vertical thumbnail list
2) I should know which image i've selected
3) It should have loading for both thumbnails & the main images
Plz take a look on the following site [URL]. I want exactly the same except the horizontal images.
just wondering how to resize a square so that a thumbnail size image comes through
heres the link peeps: its awesome [URL]
I was reading your tutorial on adding a thumbnail to an image gallery. Im trying to use your thumbnail_final.fla inside another movie and is not working for me. I made a movie, in Scene 1 of this movie i have an empty movie clip(DisplayArea) and a menu button(Gallery) so that when i hit the Gallery button it load the thumbnail)final movie into the empty movie clip DisplayArea. Everything work except for the thumbNailScroller function. It load all the thumbnails and you can click them and they load the matching big picture and all but the scrolling function is not working.
[Code]...