Forums: Flash:

 

Photo Browser flash+xml+php

 

vthok Way cool...but how do I edit it?

I downloaded source and I am trying to add my own pictures to it but no luck. Do I delete .xml and .swf files and regenerate? How do I post it up on the net...just the .swf and .php files? Thanks in advance.

 

arigato

HOwdy and welcome aboard!
Tuersday is your turn in the barrel.
beer

 

vthok In the barrell? Sorry dont understand (newbie I know :-)

Well I found out how to edit the pics and I uploaded the .jpg, .swf files to my website and I type url to the swf file and the screen is just white (nothing shows up)...opening the .swf in IE on my machien works fine but not on the webpage...am I missing something?

 

zaaa

*hands vthok a gasmask*

Tuersday? Man Ari, you're just making up extra days of the week to get more barrel time aren't you?

The Barrel

...in accordance with the Archbishop to the fish.
quote
 

vthok Ok I got it working but slow...

Ok I finally got the swf file viewable on my website...however I put in more pictures and the now it runs really slow!! About how many max pictures can I get without effecting performance? Or is there a way that I can implement this faster with 50-100 pictures?

Thanks

 

arigato

Um... preload them?

the barrel

zaaa... Tuersday, right between Mondnesday and Tuesday.

 

zaaa

Hmmmm....

*checks calendar*

Well, damn you're right. I guess my new favorite day of the week is Friuesday!

...in accordance with the Archbishop to the fish.
quote
 

craftymind

vthok, do you have a link?

 

Malabooboo

hey craftymind, love your photo browser!

one thing though--how come the animation runs slowly if there are a large amount of pictures, even after all the pictures have been downloaded?

-Tim
quote
 

craftymind

malabooboo, can you post a link to the problem?
My guess is due to the alpha-ed shadow for each picture.



try changing the following line inside the drawOutline function


// Shadow
mc.beginFill(0x000000, 20);


into


// Shadow
mc.beginFill(0xCCCCCC, 100);


and tell me what happens.

 

Malabooboo

here's an example:

http://www.timches.com/pictures/slideshow_gallery.php?c=90

you'll have to wait a few minutes for all the pictures to load, but after they all have been loaded, the shuffling animation is noticably slower than when it had only loaded a few pictures.

...anyone else besides vthock and I have this problem?

Thanks in advance!

-Tim
quote
 

craftymind

Malabooboo try downloading this file and replacing gallery.swf on your server.
http://www.mustardlab.com/developer/test/gallery.swf

Otherwise if you've made modifications to the original that you need to keep, try making the change I listed above.

Please let me know if it speeds it up.

 

Malabooboo

I made the changes you listed, changning 20 to 100, but no noticeable change in speed.

It's currently running on the link I gave above.

-Tim
quote
 

craftymind

Ok, I'll give it a look tonight and try to have something by tomorrow smile

My guess for now is that flash just doesn't like rendering all those jpgs underneath, in which case I'll only ever be able to display the top ~15 images and show the 16th and beyond when you click on the top image.

 

arthaus

Hi craftymind,

Thankx for your code/zip file.

Q: How can I control the photo border? (the tickness, color, etc.)

...I'm new playing with Flash. And I would like to use your code at the entrance. Displaying about three stacked photos. As they peel off (onclick) they become invisible and what's left the logo at the background.

Thankx in advance,
Arthur

/* --------------------- */
UPDATE: Digging in the .fla code, I found my answer (mc.lineStyle(1, 0x999999, 100)wink.
My apologies for the quick post
/* --------------------- */

 

FlashPlaya Hi Everyone!!!!!

Hey craftymind,
I love your photo browser!!!!
I was just looking at it, and how would I add a number of what I was looking at? Like 2/30? Do you know how I can add this? Thanks!!!

Love this forum going to learn alot!!

 

craftymind

flashplaya, you would need to do 4 things.

1. create an empty textfield and align it appropriately
2. grab the length of the stack array to display for the total.
3. attach a value onto each movieclip in the stack array representing it's position.
find the line


img = _root.createEmptyMovieClip("image"+i, depth--);

and underneath it place

img.count = i+1;

4. in the method Cover.onRelease() underneath teh comment

// Rotate the next image into view

add

name_of_your_textfield.text = stack[1].count+"/"+total_length_from_step_2;

 

FlashPlaya Hey craftymind

You the MAN!!!!!!!

Thanks

 

subman

My version

This is what I did with the code, busy implementing preloaders, but just wait a while....\

Remember to select something in the scroller otherwise nothing will come up
Thanx for sharing

should we use our brains at all??

whateverplanet.co.za
quote
 

geestring

can i do this thing without php? I'm trying to put the pictures in the xml manually, but it only works when i preview in .fla, the .swf its nothing.

nm, it does work. But the swf opens up so that you can see anything, its minimized to its smallest size, then you have to maximize it youself to see.
anyone know why its doing this?

 
 

Forums: Flash: Photo Browser flash+xml+php

 
New Post
 
You must be logged in to post