Flash Gallery | Flash Templates | Flash Menu | Flash Design | Flash Audio & Video

flash page flip

Actionscript 3.0 video tutorials

+ Reply to Thread
Results 1 to 10 of 10

Thread: Mini Gallery

  1. #1
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Mini Gallery

    flash templates
    Flepstudio has created a new free utility.
    It is called 'MiniGallery', a image gallery of the dimension 400x300px.
    It has a friendly thumbs viewer and can be easily updated working directly in the FLA.
    Perfect, for those who want to add a simple but useful image gallery to their site's homepage.
    If you need a image gallery with few pictures and without the need to use an XML file...this is the solution!
    Otherwise, if you need XML based gallery, you can have a look to Pixellation Flash CS3 SlideShow and Full Screen Gallery.

    MINI GALLERY

    Flash CS3 image gallery










    Files package :

    main.fla

    Main.as

    main.swf

    leggimi.txt




    Source files:

    Attached Files

  2. #2
    Junior Member Settled In energyhigh is on a distinguished road
    Join Date
    Jan 2008
    Posts
    12
    Rep Power
    0

    Re: Mini Gallery

    Hello there Flash Guru
    I would like to ask.
    Could i add an image description in each image sepeteraly?
    (Not of course embedded in the graphic)
    When the image changes the description would do the same

  3. #3
    Junior Member Settled In habyby is on a distinguished road
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Re: Mini Gallery

    it is not working for me. the problem is I try to display this photo galery as a link from a button. all in flash. i click the button, it enters the stage, but it is not working.
    Maybe I should enter the as in the same stage.
    can someone help me ?

  4. #4
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Mini Gallery

    Hi,
    do you mean you are trying to load the miniGallery SWF into your SWF ?

  5. #5
    Junior Member Settled In habyby is on a distinguished road
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Re: Mini Gallery

    No, I made it all over again in my flash website, but i can`t use the as file. I modified the values, but nothing. I tried to do this deep inside my site. Is there a solution to nest all the content from the as into a frame ?
    Or what should I do ?

  6. #6
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Mini Gallery

    You can move the code in a frame but many things will depend which frame, if you have just one frame or your timeline runs, etc etc...

    I suggest you to leave the code in AS file and load the entire SWF into yours.

  7. #7
    Junior Member Settled In habyby is on a distinguished road
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Re: Mini Gallery

    I tried this too, but an error ocurs:

    TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at Main/init()
    at Main()
    I tried to load that swf with this code:

    -var imageRequest:URLRequest = new URLRequest("/MiniGallery/main.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.load(imageRequest);

    addChildAt(imageLoader, 1);


    imageLoader.x = -265;
    imageLoader.y = -210;

  8. #8
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Mini Gallery

    ok, try the following:
    Change these lines of Main.as
    Code:
    public function Main()
    {
    	addEventListener(Event.ADDED_TO_STAGE,init);
    }
    
    private function init(event:Event):void
    {
    	removeEventListener(Event.ADDED_TO_STAGE,init);
    	
    	stage.frameRate=31;
    and use this code to load:
    Code:
    var imageRequest:URLRequest = new URLRequest("/MiniGallery/main.swf");
    var imageLoader:Loader = new Loader();
    imageLoader.contentLoaderInfo.addEventListener(Event.COMPLETE,loadComplete);
    imageLoader.load(imageRequest);
    
    function loadComplete(evt:Event):void
    {
    	imageLoader.contentLoaderInfo.removeEventListener(Event.COMPLETE,loadComplete);
    	
    	var swf:MovieClip=imageLoader.content as MovieClip;
    	swf.x = -265;
    	swf.y = -210;
    	addChildAt(swf, 1);
    }

  9. #9
    Junior Member Settled In habyby is on a distinguished road
    Join Date
    Nov 2008
    Posts
    5
    Rep Power
    0

    Re: Mini Gallery

    It's working fine. Many thanks. You saved my life. ;)

  10. #10
    Administrator Living At The FlepStudio! Flep is on a distinguished road
    Join Date
    Jul 2007
    Posts
    5,609
    Rep Power
    9

    Re: Mini Gallery

    cool

+ Reply to Thread

Similar Threads

  1. Mini Gallery
    By Flep in forum Utilità di FlepStudio
    Replies: 25
    Last Post: 20-01-10, 16:06
  2. Mini-gallery-3 modifiche?
    By Onsitus in forum AIUTO utilità free
    Replies: 11
    Last Post: 21-01-09, 12:56
  3. mini gallery per sempliceXte
    By Flep in forum AIUTO utilità free
    Replies: 7
    Last Post: 27-09-08, 14:34
  4. Mini gallery immagini all'interno di schede con xml
    By poppy in forum Actionscript 3.0 base
    Replies: 4
    Last Post: 24-05-08, 15:24
  5. how to i put the mini gallery into one of the section of the menu ?
    By wen_jie in forum Actionscript 3.0 newbies
    Replies: 4
    Last Post: 11-12-07, 14:20

Tags for this Thread

Bookmarks

Posting Permissions

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