ActionScript 3.0 :: Flash XML Gallery : Thumbnail Mask Targeting?
Jan 21, 2011
I am in the process of making my portfolio site but am having some trouble animating masks which mask each thumbnail...I can't target individual masks in my script, only one mask. I think the solution will be pretty simple but I don't have the skillz to do it.Here is my thumbloaded function:
Code:
var my_thumb:Loader = Loader(e.target.loader);
sprite = new MovieClip();
var shape:Shape = new Shape();[code]....
I am having problems targeting individual masks in my xml thumbnail gallery. What I have just targets the first mask rolled over. Below is my thumbloaded function, which is triggered when the thumb is loaded (obviously)
I've been watching a tutorial on making a thumbnail photo gallery with Flash. Unfortunately the only tutorial I could find that explained everything step by step was for Flash MX and I'm using Flash CS4. It seems that the scripting code is different. I've never written Flash script before. I am trying at this point to give a rollover effect to a thumbnail image, so when the mouse goes over the thumbnail the thumbnail will get brighter. The code given in the tutorial didn't work, but by looking at the debugger messages it seems like the script should be something like:[code]I converted the thumbnail to a button symbol and then created an instance of the button called thumb1. The code is applied to a keyframe.
[URL] how to make a Flash Thumbnail Photo Gallery. I am designing a bigger photo gellery based on this code how do I have the photo gallery to list 2 rows of thumbs 5 accross and 2 rows. This code is the code that designs the thumbnail movie clip.
I have a flash image gallery that loads images through xml. Images have to be croped for thumbnails. So u have to have two folders, one for the thumbnails an another file for the big size images. I would like to know if there is a way to load only one image ( and not this image's thumbnail too) and with a script or something, to resize this image to get the thumbnail. To make my self clearer here is the xml code:
image../gallery_flash/imageGallery/images/watches/i1005.jpg image thumb../gallery_flash/imageGallery/thumbs/watches/i1005.jpg thumb
(For some reason it doesnt show the xml right...) I dont want to have the line (thumb>../gallery_flash.), but only load one image and get the thumbnail also.
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.
I was looking for a way to make different grid layouts for xml loaded jpg thumbs, so I read and applied a lot of the tutorials and posts about galleries, xml, thumbs and grids around here. Some of the script I used comes from Kirupa's adding thumbs tutorial. I also applied the concept in Creating Grids with Flash/AS. The result is attached here. A lot of the parameters, like row and column numbers and scaling of the thumbs,spacing, alpha, rotation, etc, can be changed easily in the script. Also, the idea is that you could write different prototype functions to get different grid layouts effects.
I'm trying to get two thumbnail movieclips on the same page to display two different arrays of pictures. It's not working though and I'm not sure why, could someone please look at my xml and ActionScript and see what I'm doingwrong. I've been at this for a few hours now and I can't see whats wrong.
I built my gallery and import it a parent page (foo)... Sometimes the scroll of thumbnail scroll works... it is choppy.... Sometimes does not work at all.... When I view the movie outside of foo - it works beautifully...
Based on the Photo Gallery using XML and Flash tutorial found here:I�m having trouble with loading thumbnail images of various sizes which overlap if they are smaller than the previous image.The specific line that causes this is target_mc._x = hit_left._x+(target_mc._width+5)*k;I�ve tried all sorts of things with the closest being the following which put the images in the right size, but with the omission of �k� their order is backwardstarget_mc._x = (thumbnail_mc._width+5);Here is the full function block as per the tutorial
I am an artist trying to remake my website...I have a picture of a window on my homepage. The window is a movie. When clicked on, the window lights turn on and a grid of thumbnail pics appear. Each thumbnail is a movie clip. When a thumbnail is clicked on, the movie plays and a larger image appears over the window. The problem is, the window is still active underneath the large image, so if I click on the large image, I am really clicking on the window movie clip underneath, and the thumbnail grid disappears-starting the window movie clip over. How do I make the window clip inactive after it is initially clicked? Also, I would like the larger images to end their movie clips after another thumbnail is clicked, so that there aren't large images piled up on top of each other.
That said, I would like to alter some of the code to allow the thumbnail scrollbar to begin scrolling once the page has loaded. Here is what the code looks like as it is right now.
I want to incorporate a Horizontal thumbnail Scrolling Gallery to showcase the Special Menus of the concerned hotel. and on click of each image there should be a small popup to display other information of the menu. All this should be XML driven.
I have this thumbnail gallery that loads from an a simple XML. When a tumbnail is clicked its larger image loads into an UiLoader....
What i am trying 2 do is 2 show the larger image using a lightbox when a tumbnail is clicked (removing the ui loader for good). I have a lightbox that works with flash (when testing movie as well).
I have been trying for a couple days now 2 combine all this but it never works
I have a dynamic thumbnail gallery that laods thumbnails from db/xml and also each thumbnails associated main image. When the user rolls over the thumbnail the larger image displays to the right.
THis is all working fine however I need to update the script to change the thumbnail gallery layout from a 3 column 2 row gallery to a 4column 4 row gallery.I've adjusted the as and resized the thumbnails to allow for this and setup a 8px spacer between thumbs
I am trying to build a gallery where the thumbnail loads and then you hit the thumbnail and it opens the image full size. I don't want to have it resize.
I have a cool xml gallery designed by Scotty. I was wondering what actionscript could I use to add a gray border around each thumbnail and whenever the user rolls over the thumbnail, the border turns to white? Has anyone done this sort of thing before with an XML gallery? [code]...
but is there a way to make the thumbnails like, grid form, like in the examplerather than scroller? because i dont really like the scroller, and im not sure how to set them to grid
i'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:
Ok so i have looked thru the forums for the past two days trying to solve my issue and i didnt find anything that works. I have the xml thumbnail gallery from the site working here.Its the base code except i change some things so that it would work if i loaded with the mxloader component into another movie. When i try and do so the XML file doesnt load. you can see this here. Im not sure if theres something else that i need to do to make this work or what, but i cant seem to figure it out. all the paths are absolute paths (http://ect...). and even stranger is that it worked like 3 or 4 times when i first started then stopped working. so i dont know if its
i'm working on a flash xml gallery. But there is one thing i can't figure out.i like it very much when the thumbnails are not i 1 line but 5 next to each other and then down. So the 6th one must load underneath the first one. Is there an actionscript for or is too complex?
I'm just trying to change it so that a small line of text appears under each thumbnail. Each line of text is pulled from the XML file and is created using createtextfield. But after a few hours trying to warp the code to get it to work I still haven't gotten anywhere.I've tried many different approaches of attaching these text fields to the mc but no go. These two lines do create a text field for each thumb-but these fields do not scroll with the thumbnails. I'd like these text fields to be inside the "thumbnail_mc" clip so that when the thumbnails scroll the text moves along with it.
Im using xml photo gallery with thumbnail and right now when i hover th mouse on the left the thumbnail move to the left and same when i hover to the right.instead of moving my cursor left and right I want to put button on both side and if someone click left button, that time the thumbnail will only move.
Anywho im trying to add thumnails to a gallery of mine. Everything works fine untill i put all the symbols in a movieclip. When i do that the scroller stops working but everything else works fine!
The tutorial im working from is: [URL]
And the part of code that is relevant is:
function thumbNailScroller() { this.createEmptyMovieClip("tscroller", 1000); scroll_speed = 10;
im currently trying to use this script to create a little thumbnail gallery: [URL]first off my main flash file has 2 movie clips in, an empty on which an image will be loaded into and one with a navigation menu on.now within the navigation there is a button which will load an external swf into that same movie clip. This loaded swf contains the "Complex Button" my problem is that i dont know how to (or if it is possible) to use these buttons to load a jpg into the empty movie clip on the main timeline im guessing it has something to do with:
what im trying to do is, when you click on the large image or on a button it open this image in a pop-up.What they say on the sitec. Optional: you can assign a clickHandler to the large pictures for enabling pop-ups or download options:
01 function clickMe(id) { 02 //get imagenode for this thumbnail 03 //'id' counts from 1, XML counts from 0: hence the '-1'
I have completed the excellent Flash Thumbnail Gallery Tutorial (and the Picture gallery Tutorial). I have been able to update the dynamic text content, and basically customize the look and feel of the .swf. That works when I upload it to my website.My problem is that neither in Preview mode (via Flash) nor once uploaded to my website can I get my XML file to call my own images up. It will call the tutorial images from Kirupa if I leave them in there.
I have tried to use relative and absolute file paths for the image URL, and neither is working. I even tried using "image ID=" tags inside the node, to no avail. I have an image directory that is a few folders deep, so I tried putting the XML, FLA and SWF (all together) in different places, updating the SWF on my html page, and then republishing. In the place where my image should be, there is nothing.Flash reports an error when I hit CTRL+Enter that it cannot find those particular files.