Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




How To Use Fullsize Pics As Thumbnails [renamed]



He guys. Sorry for being so dramatic, but i'm itching to know this now! I created the flash gallery, like in the tutorial, but I have 1 issue with the whole thing. I need a way to generate thumbnails from the same image files as my large images, (image1.jpg is both the large image and the small image) and also allow me to adjust thumbnail size through either flash or xml scripting. It seems rather work-heavy to make a seperate list of thumbnails, even though the page would load faster. If anyone can help me with this, I would really appreciate it. (please explain it to me like I don't know what i'm doing... cuz i dont lol)



KirupaForum > Flash > Flash 8 (and earlier) > Flash MX 2004
Posted on: 03-05-2006, 09:55 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Linking Dyn Thumbnails To Fullsize Jpgs
Hey there-

I am fairly new to MX 2004, (previously used Adobe LM) but am well under way building a dynamic gallery using PHP and mySQL. So far I am able to load the thumbnails from my database, and create an onPress event for each thumbnail. I can get a static .jpg to load, but I can't get the thumbnial to link with the corresponding fullsize image dynamically.

Basically I have loaded the filenames from the database into two arrays: thumbnails[] and fullsize[]. I know the database is working perfectly, I can load the fullsize images or the thumbnails into the thumbnail placeholders. I'm at work so I can't post the .fla until later, but I can paste the AS into a message if anyone is willing to help.

BTW I know nothing about XML...

Any help is greatly appreciated!!

--JD

Linking Dyn Thumbnails To Fullsize Jpgs
Hey there-

I am fairly new to MX 2004, (previously used Adobe LM) but am well under way building a dynamic gallery using PHP and mySQL. So far I am able to load the thumbnails from my database, and create an onPress event for each thumbnail. I can get a static .jpg to load, but I can't get the thumbnial to link with the corresponding fullsize image dynamically.

Basically I have loaded the filenames from the database into two arrays: thumbnails[] and fullsize[]. I know the database is working perfectly, I can load the fullsize images or the thumbnails into the thumbnail placeholders. I'm at work so I can't post the .fla until later, but I can paste the AS into a message if anyone is willing to help.

BTW I know nothing about XML...

Any help is greatly appreciated!!

--JD

Can You Load 2 Pics In 1 Container [renamed]
Is there any way that a button can load two external swf's into one container?

How To Give Linkage To Pics In Gallery [renamed]
hey guys and girls I need help incorporating linking with this photo gallery

Kirupa has a tutorials on making the photo gallery (http://www.kirupa.com/developer/mx/photogallery.htm)
but I will like the ability to have those images linkable to something else is this possible.

If you can help it would defenitly be appreciated.

Thumbnails Don't Fit In Imageholder [renamed]
For anyone out there. This might be a lame *** question but I am trying to bring in an external swf inside a mc. The external swf is a image viewer or photo gallery. It works. My problem is that my thumbnails from the external swf will not fit into my imageHolder_mc box that I want it to.

Any pointers would be great cuz I am out of ideas. I am using AS 2.0 and Flash 8 if that helps at all.

Thanks

Linking Thumbnails To External Pics
I've been having trouble for awhile trying to get a photo website I built to work. (Flash/AS3 newbie, btw)... Unfortunately I didn't know that linking thumbnails to internal photos would take forever and a year to download. I'd like to keep my site as-is, but just redirect the thumbs to external pics so the site is functional.

An abbreviated sample of my code is below. I used an array for each of the photo galleries. The thumbs are buttons w/in movie clips (e.g., "guatTnails.guBtn1"). They call the full-size pics from the library into a component loader, "placeLdr" in the code below.

What is the easiest way to have the mouse event link the buttons/thumbs not to an internal array from the library, but to external full-size pics? I'm guessing it's via XML, but I can't find anything anywhere that shows how to use XML with buttons/thumbnails.

Thanks!!

var guatArray:Array = ["boat at dusk.jpg", "head_carriers.jpg" (...etc) ]

guatTnails.guBtn1.addEventListener (MouseEvent.CLICK, ldr1)
function ldr1 (e:Event) {
placeLdr.source = guatArray[0];
}

guatTnails.guBtn2.addEventListener (MouseEvent.CLICK, ldr2)
function ldr2 (e:Event) {
placeLdr.source = guatArray[1];
} (...etc)

Linking Thumbnails To External Pics
I've been having trouble for awhile trying to get a photo website I built to work. (Flash/AS3 newbie, btw)... Unfortunately I didn't know that linking thumbnails to internal photos would take forever and a year to download. I'd like to keep my site as-is, but just redirect the thumbs to external pics so the site is functional.

An abbreviated sample of my code is below. I used an array for each of the photo galleries. The thumbs are buttons w/in movie clips (e.g., "guatTnails.guBtn1"). They call the full-size pics from the library into a component loader, "placeLdr" in the code below.

What is the easiest way to have the mouse event link the buttons/thumbs not to an internal array from the library, but to external full-size pics? I'm guessing it's via XML, but I can't find anything anywhere that shows how to use XML with buttons/thumbnails.

Thanks!!

var guatArray:Array = ["boat at dusk.jpg", "head_carriers.jpg" (...etc) ]

guatTnails.guBtn1.addEventListener (MouseEvent.CLICK, ldr1)
function ldr1 (e:Event) {
placeLdr.source = guatArray[0];
}

guatTnails.guBtn2.addEventListener (MouseEvent.CLICK, ldr2)
function ldr2 (e:Event) {
placeLdr.source = guatArray[1];
} (...etc)

Dynamic Loading Of Pics In Various Sizes With Thumbnails
Hi!
I'll try to explain the problem, but it's kinda complicated.

OK, I have this external XML with url to jpgs and url to thumbnails respectively. I load them into temporary containers, as you would in a slideshow, and then I link the thumbnails to the pictures. The problem is, I create the links to the position/instance in the array where the picture is put. And, since a jpg at 500 kb is five times as large as one at 100 kb, and therefore will place itself later in the array, the array is totally f***ed up. Hence, the thumbnails will link to the wrong picture.

Basically, I want a way to load the pictures into the array once the actual data is loaded, not when the temp holder is created or when flash has FOUND the picture.

Once again, I want the order in the array to be 0,1,2,3,4,5 and not 4,3,6,1,2,3, but a simple sorting function doesn't work. Probably because I load all the pictures on the same time.

My guess is that I would have to create a stop or something to prevent the second image to start loading before the first is done, and so on. BTW, I use a MovieClipLoader...

Need Fullsize Script
I am making a cd in flash.
I want to make my flash full size, but dont know how.

Help needed.

Fullsize Flash & Lightbox
Hi Everyone,

I am trying to get lightbox to work on my fullsize flash site but I am having some difficulties.

The code I recieved from here:
http://blog.codefidelity.com/?p=16

works but it doesnt overlay the screen. It hides the flash behind a black box with no transparency and pushes the pop up image way down the screen. YOu have to scroll way down to see anything. Everything is all messed up.

Anyone know where I can find a good code for using lightbox on a fullsize flash site? Any ideas on how to fix this?

THX

Fullsize Issues With FLV Player
Hi all,

Quality forum by the way. I am newish to flash and am currently working on building an FLV player. It is all working but have hit a major stumbling block whilst trying to use the full screen mode. I want the screen to go full size and have my controls sit at the bottom of the page and my video to scale to its true 100% form.

I have forced true myVideo.autoSize to true this makes the video perfect size but controls dont move (and why should they). If anyone has any words of wisdom on this issue it would be great I am having headache after headache. I do have an event on a button that fires the toggleFullScreen function

My code thus far is


Code:
var vidSrc:String = _level0.vidSrc;
myVideo.contentPath = "../flv/1.flv"
myVideo.playButton= Play_btn;
myVideo.pauseButton= freeze_btn;
myVideo.volumeBar = cVolumeBar;
myVideo.seekBar = mySeekBar;
myVideo.stopButton = myStopButton;

Stage.scaleMode="noScale";
Stage.align = "BC";
//Function to toggle between fullscreen and normal size
//the toggle fullscreen button calls this function when pressed
function toggleFullScreen()
{
if(Stage["displayState"]=="normal"){
Stage["displayState"]="fullScreen";
myVideo.autoSize = false;
trace (Stage.height + " - " + Stage.width)
}else{
Stage["displayState"]="normal";
myVideo.autoSize = false
}
}

var resizeListener:Object = new Object();
resizeListener.onResize = function () {

viewFull._x=Stage.width/2;
viewFull._y=Stage.height/2;
}

Stage.addListener(resizeListener);

Thumbnail To FullSize Image Effect
Hello Flashers!

I want to have four images below each other on the left of the stage, these would be small thumbnails and might will include bmp's and also swf's with 3d in them.

I'd like to ActionScript a function so someone can click on the thumbnail and it opens the image to the right of the list. The effect i'd like it to have the image zoom out, into the space, from the thumbnail.

I haven't started yet - does anyone have any tips??

Thanks for your help.

SFilter

Dynamic Loading Pics And Variables?how To Change Pics Depending On Buttons Or Text
i want to load jpegs into a swf dynamically. I saw a post confirming u can do it w/load movie script. Heres my question:

first off: in the folder w/my movie, i have jpegs labeled
1-9

in the movie, when someone presses a button, var x is changed to the corresponding number, 1-9

what i want is to place this variable inside the loadmovie somehow so depending on the button pressed a new img loads

i dont wanna type out long if then statements seeing as how this will quickly extend to about 1-400.

im kinda brain dead rite now, whats a dynamic way of gettings imgs with relatively short, versatile code

How Do I Replace Pics In My Flash Template With My Own Pics?
Hi there! Ok, I've got this flash menu bar set up. The problem I've got is the fact that it's a template, and I'm not sure how to change those 4 little pictures of those male models at the bottom of the flash area. The ones that are spinning around every few seconds.

How do I set it so that it uses the pics I want, instead of those pics? I've figured out how to add the pics to the library, but it only adds them as bitmaps, and I don't know how to make them "graphics" and how to replace the current pics with them...

Can someone give me some advice on how to do this? I'm probably ging to need some pretty detailed help too... SOrry. I'm just really new to flash. I've read some tut's, but theyre not too helpful for what I want to do...

Thanks guys. My AIM is NoahPsych is anyone cares enough to help me by IMing me. That'd probably be best!

Thanks again!

Text Over Thumbnails: Adding Thumbnails Photo Gallery Using XML And Flash Tutorial
So I went through the adding thumbnails supplement to the XML Photo Gallery (http://www.kirupa.com/developer/mx2004/thumbnails.htm) and it works great. I wanted to put the label of the image over the thumbnail when the user mouses over the thumbnail. Any thoughts on how to do this? I want it to look like these thumbnails http://www.commonskymedia.com/index.html#reel. Thanks!

Thumbnails Tutorial - How Can I Make The Thumbnails Scroll By Default?
i have modified the xml photogallery on my site as i only want to use the scrolling thumbnail component but as a tool to scroll images.

2 modifications i would like to make that have me stuck!

1) how can i make the thumbnails scroll by default on load?

2) how can i add a little preloader within the empty thumbnail holder movieclip? i am loading the main gallery images directly into this clip rather than using it to display thumbnails

many thanks in advance if you can help!

natalie

Extra Thumbnails To "Adding Thumbnails"
I've searched the forum but there is not a certain solution. (http://www.kirupa.com/forum/showthre...tra+thumbnails)
I am trying to add the gallery extra thumbnails to use as extra information. Shortly trying to make a little thumbnail which will be change when clicked the main thumbs as the example below..
Thanks for your help if u can...

400 Pics
i have around 400 pics that i need to import into flash for a sortof presentation. i was curious as to what is the best way of going about doing this. ie. format, scenes vs. loadmovie etc. thanks

Maybe The Pics Are Too Big?
So I'm trying to make a Swish with alot of pics and music. I went to each pic and made then as web ready as possible...and I'm using a short mp3 file - half way through the movie starts to m o v e really slow.

any advice?

Pics
hi

i created a gallery. the pics are about 2mb total size. but when i launch it on the web it takes forever to load. i was told that the pics should each be about 100k in size. how would i make the smaller so that it can load faster...all the pics are jpegs

Pop Up Box For Pics Please Help.
I need to know how to make a window pop up to a certain size. Right now if u click the link to the pic it opens a full window, What I need it to do is just open in a window as big as the pic. How can I do this? thank u.

Pics
Okay, I am looking at other peoples sites, and their pictures don't look all blurry like mine do. I saved my in photoshop under "save for web" at the highest jpeg setting. Should I have done something else? I really want them to come in clear- especially on some of the graphic design stuff where you can't read the words. you can see what i mean at www.melanieharr.com
Thanks!

How To Keep Pics At Same Res. ?
Hi !!

I am making a movie and my laptop has resolution of 1280*800 or something like that and I put some pictures in the movie. Now, when I run the flash movie in full screen pictures become a bit bigger and loose quality... how can I make it so that the pictures stay at their original size (the size of I assign in Flash MX 2004 Pro) regardless of how I resize the movie ?

Thanks

Pics
Hey
I'm trying to build a photo gallery. I am setting movie clips within buttons so that i can just click on a photo for it enlarge, and then go back to normal when released again.
Is there a way of making the photo fade in nicely?

How To Keep Pics At Same Res. ?
Hi !!

I am making a movie and my laptop has resolution of 1280*800 or something like that and I put some pictures in the movie. Now, when I run the flash movie in full screen pictures become a bit bigger and loose quality... how can I make it so that the pictures stay at their original size (the size of I assign in Flash MX 2004 Pro) regardless of how I resize the movie ?

Thanks

Links On Pics
sorry, this hasn't really got much do do with flash, but i thought i would ask anyway... i'm using macromedia dreamweaver to make my website and i was wondering how you can make a section of a picture a link? i.e. if i had a picture of my band, then when u clicked on each person in the picture it would take you to their profile... please help me if you can...

thanks,

ant

Maps, Pics, Ect
I want to do this: I am going to design a floor plan (like a drafting or a blueprint)of a room in flash, I want to roll over certain parts of the room and have a picture of that part pop up. any ideas on how to start this?

Thanks

Importing Pics.
i am making my own web site and would like to know what format is best to bring in photos, drawings etc. i want to keep the file size as small as i can. jpegs?

Fading In And Out Of Two Pics
Hello,
Ive been trying to make one pic (pic a ) fade out when i move the mouse up and as i do so, have another pic (pic b) fade in and vice versa when i move the mouse down. But it never seems to work. Everytime i move the mouse up, BOTH pics fade out and when i move the mouse down, BOTH pics fade in. The following is the code i used :

setProperty (b, _alpha, (((getProperty("", _ymouse)-200)/2)*-1));

setProperty (a, _alpha, (getProperty("", _ymouse) / 2));

Thanks for the help. I fiddled with this problem for 3 hrs and its killing me..

Hidden Pics
The problem I'm running into with ANY movie I attempt to create with Swish 2.0 is that there is always a "phantom" pic once I enter in more than 10-12 pics. Eactly what happens is that as I enter a new pic, I can see that there is that phantom image in the way, and it blocks off part of the screen (usually the middle) and I have to move new pics to one side. Now I've gone through the files to make sure all previous pics are faded out, but the problem is still there. What am I doing wrong?

EB

LOADING SEVERAL PICS
hi,
thanks for reading my post...
For my website I plan to have several pictures that are going to be individually loaded with a loading bar on the click of a movie symbol. Instead of making an individual loading bar for every single picture by turning the picture into its own movie and then have some loading actionscript inside the movie, if there was a way that i could have a generic loading bar that somehow knows which picture it is supposed to load depending on what movie symbol you press.

-so, generic loading bar exist?
-if not what is another easy way, i want the loading bar no matter what.

thanks in advance

-DYCAPZ

Javascript Help With Pics Pop-up
I have some pics on my flashsite as buttons, but know if ya hit them, i want them to become a pop up with javascript. So I got to http://www.flash-db.com/PopUp/ , but now i want to know what to put in the html?

Flash /example / Pics
testing
[Edited by actionboy on 09-02-2002 at 06:35 AM]

Loading Pics
Okay, I am pretty sure that Flash MX is able to do this but I'm not sure. Can anyone help me with displaying different pics at different times?

I need to display a picture at the times during 3-4pm. Then switch it to a different pic at the times of 4-5pm.

My goal is to have this little flash thing in a corner of my site and then perse a viewer came in at 2pm. It would show picture a. Then, the viewer logged off and comes back in at 7pm. And picture d is now up.

If you can't do this with flash mx does anyone know how to do it with java or whatever script it might need?

Thanks

Best Way Of Adding Pics?
Wow finally getting somewhere now

New design sites up(www.djsoul.co.uk) Now i just need to work out the best way of adding pics to my gallery page..any idea's?

Also, if someone could please suggest how i could resize my page to fit the screen better id be thankfull.

Cheer's,

Andy.

Transparent Pics
i'm trying to import a transparent gif on top of a moving background but my pics still have the white box around it. how do i get rid of this?

Downloadable Pics
How do you make the pictures on your site available for download? My site is all flash and I want people to be able to download jpegs off it.

thanx for any and all help

Editing Pics
I cant seem to edit any picture (Cut, or take parts out) that I import while in flash. What do i have to do to the pic so i can?

Getting The Sum Of Width For Pics
Hi,

I have made a scroller slideshow. What I need to do is at one point when the pics are loaded and scaled I want to know the total width of all pics, when they are next to each other. This is not difficult if all pics are the same, because one can multiply the width of one with the number of pics. However, if I have pics of different width, how could I get the sum of all of them. Any ideas?

Loading .jpg Pics
hello,

What am I doning wrong??

I want to load in an external .jpg picture into my flash movie. This is how I tried to do it:

first I made a MovieClip Instance and named it "test" both in the library and as an instance name. In the frame action I wrote:

loadMovie("test.jpg", "/test");

My .jpg is named test but nothing happens. Whats wrong??? please help!

thx / jan

Loading Pics
Hi,

I am making something that has a lot of pictures on it. I have a simple navigation with a back and forward. I want a different pic on each frame. How can I have the pics load only when the user is on that frame, and not have to preload all of the images in the first place????

LoadMovie With Pics?
hey there

a quick question

when you use the loadMovie command, i know you can load an external swf into your movie, but can you do that with jpgs, or other image files?

like instead of loading "whatever.swf" can you do "whatever.jpg"?

thanks

Sizing Pics
Quick question,

when you load a jpg using the loadMovie command, is there a way you can immediately size the picture? I tried setting the width and height of the clip it loads into, but that didn't work. For some reason the pic wouldn't show. I just want to load pictures in and size them to my window. The other option is to edit each of the jpg files and make them the right width and height, and I really don't want to do that.

Frozley

Saving Pics From Fp7?
ok...
there are pics on http://www.designmobile.com/ that my brother wants to save to his hdd, so he can view them
the whole site is just 1 swf (made for flash player 7) and the pictures come up as a slideshow, and go really slow..
he wants to save each individual picture on the slideshow (as a gif, jpeg, or whatever format)
is there a way that he can just save each pic for viewing without havin to pause the flash player and and use print screen?

the pics he wants are:
http://www.designmobile.com/
open the projects page, goto the second page (at the bottom, red numbers), click play and it opens a fairly fast moving slideshow...

Linking To Pics
can i link jpgs-gifs to open in a new page from a flash movie?

thnx.

Using External Pics
Is it possible to call external pics from outside your swf file and use those like any other graphic? I know you can load and unload external swf's but is that all you are limited to?

-= greendog =-

.JPG-to-Flash Pics?
A friend of mine that knows a great deal more about flash than I, informed me that there was a way to edit a .jpg to make it look like it was drawn in flash.

He told me how he found a picture of a real dog, imported the pic, and somehow altered it with a simple comand to make it look as though it was a cartoon-like dog. I was wondering where this command is. Any help would be appriciated.

Tweening Pics
i was looking 3 days ago at shape hints and i saw that Flash can tween bitmaps.I started studying this kind o` stuff but i made nothing. Please correct me where i do wrong or send an example [I use flash mx, don't send in 2004 format]
1)I insert a keyframe at frame 10
2)I insert a pic at keyframe 1 and a pic at keyframe 10
3)I break apart both pics
4)I select frame 5[or another one from 2 to 9] and in Properties Bar, tween, i select shape
5)It doesn't work
6)HEEEEEEEEEEEELP
7)I contact www.flashkit.com
8)I expect help.

Thanx.


your beloved,
kvirri

Scrollable Pics
I have a dynamic scrolable text area. I have turned render as html. Now how can I insert pics in there that scroll with the text?

Thanks

also... why can't I drag the components (scroll bar) to my dynamic text area and automatically make it scrollable in 2004? Why would they make it more difficult?

Copyright © 2005-08 www.BigResource.com, All rights reserved