shout to all you,
i read and implemented the tutorial for a pop up window and it works just fine. I was wondering what the most efficient way of loading numerous images was. For instance, on my movie i have 10 images that are of small size. there will be a button that allows you to see them at a bigger size. This button will obviously load the pop-up window the one of the images. Is there a way in html or flash to designate a particular image to load upon pressing the button without creating a database…I don’ tknow if this is clear, but an example would be any clothing websites…that is, if you want to see a larger image of the pair of pants, you click on the magnification button and it loads the bigger picture into a pop up window…any help would be greatly apprecited
there’s a way to do a preloader for dynamically loaded files, although the location of the script seems to be escaping me at the moment. but one thing you can do is make an swf file that contains a preloader and then your image on the next frame … with a stop(); obviously.
so you can then load that swf containing the preloader and image into the popup window.
oooooooooooooh … i see what it is you’re wanting … the problem is you want a popup to come up but know which image it’s supposed to load.
i’ll go through the popup tutorial and see if i can think of anything … i’ll post back here soon.
in this tutorial :: http://www.kirupa.com/developer/mx/centered_popup.asp :: you can specify the .html page you want the pop up window to load. I would assume it’s the same with all of them. so where it says to insert the url for the page you want loaded, just put the path to the .swf file. or i suppose you can make an html file with the swf in it … whatever makes you happy
hey shuga, thanks for the quick response
yeah i got the idea that i could change the url for each image according to which one i wanted to show…BUT…here’s the thing, i have 75 images, and id rather not make 75 swfs…or html pages…and im an idiot for not creating a databse from which i could pulll…seeing as its too late to create a databse, is there a way to make…say 5 swfs containing 15 image, and then have the button call the particular swf and a specific frame…i’m assuming here that after specifying which swf or html to lead, you can declare which frame to go to…
ALSO the Tute mentioned that there is this thing called html frames, could that help??? i don’t know what those are…
html frames are things that seperate the window in html basically allowing you to load multiple html files into one page simultaneously … traditionally it’s used to have a navbar and then a frame with content so they don’t have to make the navbar on every page. but since then different things have come out like .asp includes that do a much better job in my opnion. so frames aren’t used too much anymore among the pros. but they have their uses
i’m in the middle of my workout … just taking a break between sets … so i’ll come back when i’m done and try to figure something out for your problem. i’m not the best with variables (sending and such) but i will give it a shot.
hey … if you get a chance go to borders or barnes&noble look for a book by “New Riders” called Flash MX Magic
the “preloading” tutorial in there will help you to preload individual images without making seperate .swf files. but i don’t completely understand all it’s doing yet i just see the finished project and it’s a buncha files so i can’t post it here.
i’m really sorry i can’t be of more help.
some people don’t look at threads once they have a lot of replies so you might try posting again with a different subject line and asking your question again
i hope you figure it out … i know how frustrating it can be to try to figure out something in flash
hey shuga, thanks for the try man, much appreciated…yeah i am totally gonna check out the book, thanks for the suggestion
senocular, you are the MAN!!! BUT…when i test your movie out, it says there is a 404 error in the window that pops up…i havent changed anything of yours, i just tested to see if it works…do you know why this would happen??? or do i have to upload the fiels for it to work???
it worked for me … simple script really … not sure why i didn’t think of it … oh yeah that’s right … i didn’t think of it b/c i didn’t know you could do that
anyway … i just extracted the files straight to my desktop and clicked on the html file and it opened
kinda cool
sen … can you explain maybe how it works
does it preload each image individually when you click on it like pithcell was talking about originally? and how does it make the thumbs … are they just imported versions of the images and then when you click on them it loads them full size in a new window … i basically don’t understand where the loading of these images takes place b/c it would take a while to preload all 75 of his images that he was talking about when you first load the movie.
pithcell:: i like that book but i wouldn’t buy it if i were you … that tutorial and a few others in there are good and you should look em up and read through em but if you want to buy a book i like SAMS “Flash MX Unleashed” it goes through a lot of stuff. it has some glaring typos but i guess coders aren’t known for their spectacular grammar and apparently they hired a poorly trained monkey for an editor … but overall it’s a good book. it’s the one i use most … next to kirupaforum.com ofcourse =)
shuga,
cheers mate, thanks for the tip…had a question for ya…don’t know if you understand the code…but ill ask you anyways…here goes:
i have 75 TOTAL images but they are in 5 different categories, with different numbers of images in each
these five categories are each swfs
what im doing is loading a swf when the user clicks on a category (the buttons for the categories are one movie): so basically, the user clicks one of the five buttons on the main movie, and one of the categories preloads.
so lets take category one, and say it has 5 images in it
i have thumbnails in this category one movie that gotoAndPlays a certian frame where a medium size image of that thumbnail resides
Now i want that larger image to be blown up to full size, and thats where i need a pop up window with the BIGGEST image to appear.
so if i understand senocular’s method, i should:
place the frame code in each frame i have the medium size images
create a magnification button and place the button on each of the medium size images and place the specific code on each of the maginification buttons
HERE’s QUESTION: if i upload all the jps to a particular folder, then how do i target that folder to retrieve the images??? in the frame code there is a image.html? …is this where the images should reside (or some other folder that i designate)
i hope this all makes sense, probably not, and yeah if you can explain the code senocular that would be AWESOME
the thumbnails in that example are just thrown in the fla… the example itself isnt about thumbnais but about reusing the one html page over again for more than one external image, so no special attention was payed to make a convenient easy thumbnail loader.
but basically the action remains the same - as long as you are able to apply it to your thumbnail/preview button.
For loading images in a folder, include the image.html in that folder and reference it in the getURL with the foldername i.e.
fullsizedimages/image.html… etc etc
how it works is, it adds the proper image file name on the end of the image.html location (as you see with other variables in the URL - Im surere theres some up there ^ now) and uses javascript to grab it out and load that particular image in the HTML at that time. This can be seen in the html itself.
hey senocular,
thanks for the explantion, i got it figured out after i read your explanation. SAVED ME A HUGE amount of time man…your AWESOME!!!,
take it real slow
P