A Flash Developer Resource Site

Results 1 to 10 of 10

Thread: XML Gallery

  1. #1
    Member
    Join Date
    Jul 2007
    Posts
    91

    XML Gallery

    Hi,

    im trying make a good photo/video gallery.

    Now i make somthing like this:

    Check / download my sample gallery.

    And now i trying adding:
    - thumbs
    - links (link to photo, or links from info txt)
    - different size of big photo (this will be hard)
    - autoplay
    - add new album and button for new album from xml
    - animate dynamic text (here we must using some trick)

    And almost all this stuff easy configure in xml file. Only xml, without php.

    If someone has an idea, know as2, please help. Gallery with all this stuff will be great, for everyone who uses 3dfa.

    Btw. I use almost all code from this tutorial. Second tutorial is about autoplay, and work perfect. But i want use autoplay from button or animation.
    Last edited by 3DH; 01-28-2010 at 07:09 AM.

  2. #2
    Member
    Join Date
    Jul 2007
    Posts
    91
    hi again,

    Finally find great script for "fullscreen scale image proportionally". It's one problem with Opera and function setBackground. This function scale image and start, only when we change size of broswer(onResize). I want use this scirpt when my preloader get new picture. Now i use this code:

    Code:
    this.onEnterFrame = function() 
    {
    	filesize = picture.getBytesTotal(); 
    	loaded = picture.getBytesLoaded(); 
    	preloader._visible = true; 
    	if (loaded != filesize) 
    	{
    	preloader.preload_bar._xscale = 100*loaded/filesize;
    	}
    	else 
    	{
    		preloader._visible = false; 
    		if (picture._alpha<100) 
    		{
    			picture._alpha += 10;
    		}
    	}
    	if (loaded == filesize)
    	{
    	delete this.onEnterFrame;
            setBacground();
    	}
    }
    ;
    On IE works fine, but Opera have some problem. Sometimes preloader or photo dosen't show (i must refresh website). I need this function "on" before load new picture. But only one time, or only when i use preloader and resize website.

    Here you can see tutorial for scale image, and here you can see (or not, if you use Opera) fullscreen gallery sample.

    Btw. Mebya someone know how create button autoplay/showimage?? Or how load thumbs...

    --------

    Now is working. This is corect code:
    Code:
    this.onEnterFrame = function() 
    {
    	filesize = picture.getBytesTotal(); 
    	loaded = picture.getBytesLoaded(); 
    	preloader._visible = true; 
    	if (loaded != filesize) 
    	{
    	preloader.preload_bar._xscale = 100*loaded/filesize;
    	}
    	else 
    	{
    		preloader._visible = false; 
    		if (picture._alpha<100) 
    		{
    			picture._alpha += 10;
    		}
    	}
    	if (loaded >= filesize && loaded>123)
    	{
    	delete this.onEnterFrame;
            setBackground();
    	}
    }
    ;
    Last edited by 3DH; 05-25-2009 at 12:14 AM.

  3. #3
    Senior Member
    Join Date
    May 2002
    Posts
    142
    Very well done!
    PW Ihms

  4. #4
    Member
    Join Date
    Jul 2007
    Posts
    91
    Thx, but this is not finish. Now i have a problem with Dynamically loading bitmaps with smoothing. I don't know how i can use that script. Smoothing script works, but when i resize broswer/photo then stop work. Im not a programer, so... think i never finish that gallery. Not alone.
    Last edited by 3DH; 06-01-2009 at 07:49 PM.

  5. #5
    Member
    Join Date
    Jul 2007
    Posts
    91
    XML gallery with thumbs - check / download

    If you can improve (add preloaders, or something...) my gallery, please send your work to us. Together we can do more.

  6. #6
    Sorry this may come across as negative, but its not my intention.

    Not quite sure what i should be looking at!!
    I get a black BG with some white sections and a few white spots at the bottom.
    The word info displays and buttons vanish when clicked. Its almost impossible to do a mouse-over on those single pixels to show a blank white square, most don't even work.

    Maybe i missed something and need you to explain whats going on.
    Once again sorry to be negative or just plain dumb

  7. #7
    Member
    Join Date
    Jul 2007
    Posts
    91
    My last gallery. Everything done on 3dfa + xml. Over 1200 lines of code. Still it improves. Next thing I want to do is add a guest book and a choice of albums.

    Check

    For some time, you can download it and try it.
    Last edited by 3DH; 12-11-2010 at 08:46 PM.

  8. #8
    3DFA hobby scripter LewxX²'s Avatar
    Join Date
    Jul 2006
    Location
    Germany, Karlsruhe
    Posts
    198
    Quote Originally Posted by 3DH View Post
    My last gallery. Everything done on 3dfa + xml. Over 1200 lines of code. Still it improves. Next thing I want to do is add a guest book and a choice of albums.

    Check

    For some time, you can download it and try it.
    wow good work, very impressive!
    sorry for my bad school English
    btw. visit my Page: projects.lewxx.de
    or lewxx.de (<= German)

  9. #9
    Member
    Join Date
    Jul 2007
    Posts
    91
    Thank you.
    Last edited by 3DH; 05-18-2010 at 12:11 AM.

  10. #10
    Junior Member
    Join Date
    Nov 2010
    Posts
    9
    @3DH

    big Thanks man for your explaination and
    your sample files. It helps a lot. Superb...!!!

    cheers
    slatch

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center