101 posts
  • Weekly Top Seller
  • Elite Author
  • 4 Years of Membership
  • Affiliate Level 4
+3 more
PixelBook
says

Hi there, I want to make a XML image gallery and I need some advice. In my project I load images sequentially. When an image is loaded I create a thumbnail (by scaling the bitmap) and then place it on the stage. The problem is when I test the file with a speed at around 1 mbps, my CPU goes at around 40-50% utilization (low framerates for a couple of seconds). This happens because this images are very big.

I know another techique: you create small thumbnails for every image and then you place them in a separate folder.The entire image will be loaded when the user clicks on the thumbnail This way, when you test the movie it runs much smoother, but the user will have to create the thumbnails by themselves.

So I’m asking which method is more practical, and if you know other methods.

Thnaks in advance!

1163 posts
  • Affiliate Level 2
  • Author Level 6
  • Collector Level 3
  • Top Monthly Author
+6 more
FlashTang
says

Don’t create them flashily ,Timer class is your good friend ;)

101 posts
  • Weekly Top Seller
  • Elite Author
  • 4 Years of Membership
  • Affiliate Level 4
+3 more
PixelBook
says
Don’t create them flashily ,Timer class is your good friend ;)

I don’t understand…

36 posts
  • Finland
  • 5 Years of Membership
  • Affiliate Level 1
  • Author Level 3
+3 more
gruvy
says

Best method so far is using a simple PHP script with GD functions to resize and crop the images, and return the image data to flash loading a smoother and quicker thumbnail. This way your client doesn’t need to create thumbnails, and your not overloading flash… I use this method most of the cases, if you want you can send me a message through my profile and I can send you a simple script I use.

Of course you will need PHP in your client’s server, but almost any shared hosting support it, and PHP running on your computer using WAMP or MAMP , or XAMP to preview it while you’re working locally.

Xtian

846 posts
  • Top Monthly Author
  • Weekly Top Seller
  • 7 Years of Membership
  • Author Level 7
+9 more
marcfolio
says

I say have the user create the thumbs. Sometimes you want the thumbs to look different than the actual image. More creative control.

132 posts
  • Affiliate Level 2
  • Author Level 6
  • Beta Tester
  • Collector Level 2
+3 more
baklach
says
I say have the user create the thumbs. Sometimes you want the thumbs to look different than the actual image. More creative control.

+1

And maybe create something like this to help your client in thumb creating process if he can’t use Photoshop or any other image editor program.

101 posts
  • Weekly Top Seller
  • Elite Author
  • 4 Years of Membership
  • Affiliate Level 4
+3 more
PixelBook
says

thnx for the reply, guys

1955 posts
  • 7 Years of Membership
  • Affiliate Level 2
  • Author Level 4
  • Collector Level 2
+3 more
Emroni
says

Agree with marcfolio here. You can also try phpThumb()

2108 posts
  • Envato Team
  • 6 Years of Membership
  • Tuts+ Instructor
  • Podster
+10 more
LanceSnider
Envato team
says

User LoaderMax. It’ll make your like so much easier.

846 posts
  • Top Monthly Author
  • Weekly Top Seller
  • 7 Years of Membership
  • Author Level 7
+9 more
marcfolio
says

I can’t get my head around loaderMax. I love tweenMax and timelinemax, but just can’t incorporate loadermax. It’s probably because I’ve been using Queueloader for years now, and now it’s a hugh part of my workflow. I need to give it another go. Maybe my next project.

Maybe someone can write a tutorial for the tutsplus site.

by
by
by
by
by
by