Flash CS3 - Flash CS4

Free tutorials and scripts for all.
Actionscript 3.0

Images Scroller

This is a discussion on Images Scroller within the FlepStudio utilities forums, part of the Tutorials category; Hola Che ! New free utility for Flash CS3 . It's a scroller of images. What it does: - it reads from ...


Go Back   Forum Flash CS3 Flash CS4 > English Forums > Tutorials > FlepStudio utilities

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  1 links from elsewhere to this Post. Click to view. #1 (permalink)  
Old 23-09-07, 13:11
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Images Scroller

Hola Che !
New free utility for Flash CS3. It's a scroller of images.
What it does:
- it reads from an XML file
- it loads the images and creates the thumbnails
- smooth effect
- at thumbs click it opens a pop up with original image

easy to configure

let us see it...*

IMAGES SCROLLER

Flash CS3+XML+Javascript







Description

Scroller of images that reads from XML file

Loads images and creates thumbnails

On thumb click it opens a pop-up with the image


Files package

main.fla

Main.as

LoadingXML.as

Caricatore.as

images.xml

cartella con immagini di prova e rispettivi pop-ups

readme.txt


Important : Open LoadingXML.as file and change the URL to XML file at line n° 34.


XML options

- source attribute contains the image's URL

- popup attribute contains the popup's URL


XML:
HTML Code:
<?xml version="1.0" encoding="UTF-8"?>
<images>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_0.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_0.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_1.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_1.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_2.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_2.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_3.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_3.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_4.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_4.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_5.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_5.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_6.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_6.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_7.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_7.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_8.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_8.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_9.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_9.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_10.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_10.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_11.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_11.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_12.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_12.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_13.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_13.html"></item>
	<item source="http://www.flepstudio.org/utilita/ImagesScroller/images/pic_14.jpg" popup="http://www.flepstudio.org/utilita/ImagesScroller/images/pop_14.html"></item>
</images>

Source files:
Attached Files
File Type: zip ImagesScroller.zip (479.4 KB, 860 views)

__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !

Last edited by Flep; 05-06-08 at 17:32..
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #2 (permalink)  
Old 03-10-07, 12:47
Junior Member
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0
nonlogos is on a distinguished road
Hi, I have really enjoyed your site and the mastery insights you have on flash CS3 (I can't tell you how many times you saved me from nights of headache and insanity). I especially love the event scroller script. My question is how do I confine the event scroller to a part of the overall page layout. I noticed everything was set with stage.stageheight, If I am working with a larger stage with a designated area for the events (kind of like a section), I can't have the events scrolling through the entire stage. Also can you help explaining some of the codes in this utility? Especially what the relationship between array, container_mc, hit_mc, and stage.stageheight is and how the mechanism works for the events to scroll and react to the mouse? I tried to figure it out myself and not bother you, but my lack of knowledge in these respects has kept me stucked for two days...

Please help!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #3 (permalink)  
Old 03-10-07, 14:06
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Hi,
the fact is the scroller has been created to be embed in HTML pages.
If you want load it into another SWF, you must recode almost all.

About the explantion, i will try to write it as soon as i have the time :)
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #4 (permalink)  
Old 11-10-07, 16:04
Junior Member
 
Join Date: Sep 2007
Posts: 2
Rep Power: 0
nonlogos is on a distinguished road
Re: Images Scroller

ah..I see. Thanks for letting me know.

Thank you much!

Connie
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #5 (permalink)  
Old 23-10-07, 18:37
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Images Scroller

******update******

Have a look to my message here:
http://www.flepstudio.org/forum/down...do=file&id=103
__________________

 


I recommend: Essential Actionscript 3.0

- Non rispondo ai messaggi privati con domande tecniche. Apri una discussione sul forum !
- I do not reply technicians pvt messages. Open a thread !
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Flash Multi Gallery
  #6 (permalink)  
Old 05-12-07, 11:52
Junior Member
 
Join Date: Sep 2007
Posts: 3
Rep Power: 0
devang is on a distinguished road
Re: Images Scroller

Hello,

I like this scroller.

But i donot want to load thumbnails & not pop ups.

Scroller width = 473 & Height = 256

All my images have same height 256 but widths are all different.

I want the scroller to load direct images.

Can somebody cleanup the code .. i dont know flash.. still i tried loading flash on my pc ... and in main.fla i changed the document size but i dont know how to stop the files from loading thumbs and pop urls...

Thankyou in advance,

Devang.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #7 (permalink)  
Old 05-12-07, 12:58
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Images Scroller

Hi,

1) Set SWF size to 256 height and width as the bigger of your pictures ( or as you want )

2) Open Main.as and delete this line:
Code:
addListeners();
3) Open Caricatore.as and substitute the createThumb function with this new one:
Code:
private function createThumb():void
		{
			
			_fla.objects_array[id].w=loader.width;
			_fla.objects_array[id].h=loader.height;
			bitmap_data=new BitmapData(loader.width,loader.height,true,0xFFFFFFFF);
			bitmap_data.draw(loader);
			
			var thumb:Bitmap=new Bitmap(bitmap_data);
			thumb.smoothing=true;
			
			clip=new MovieClip();
			clip.visible=false;
			clip.addChild(thumb);
			
			_fla.container_mc.addChild(clip);
			_fla.pics_array.push(clip);
			
			clip.id=id;
			clip.name='thumb_'+id;
			
			if(id<_fla.objects_array.length-1)
				_fla.loadImages();
			else
				_fla.positionClips();
		}
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #8 (permalink)  
Old 06-12-07, 11:49
Junior Member
 
Join Date: Sep 2007
Posts: 3
Rep Power: 0
devang is on a distinguished road
Re: Images Scroller

Hello,

Cheers i have done and got it working. Below is link.

Untitled Document

Now i need to have a 10px gap in between 2 pics and it should be black colour (not white). Please help me.

http://sound.suninter.co.in/audio.htm
Above is link where finally i will put the swf.

Thankyou,

Devang
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #9 (permalink)  
Old 06-12-07, 12:38
Administrator
 
Join Date: Jul 2007
Location: Cesena
Posts: 4,489
Rep Power: 6
Flep is on a distinguished road
Re: Images Scroller

Hi,
i already see the 10px gap
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

  #10 (permalink)  
Old 06-12-07, 12:45
Junior Member
 
Join Date: Sep 2007
Posts: 3
Rep Power: 0
devang is on a distinguished road
Re: Images Scroller

hi,

i resized the images on the left by 10px ..

Thankyou,

Devang
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads

Thread Thread Starter Forum Replies Last Post
Illusion - images gallery Flep FlepStudio utilities 9 17-11-08 06:31
FullScreen images gallery Flep FlepStudio utilities 3 13-11-08 15:51
unload images karonte Actionscript 3.0 base 2 14-05-08 20:01
Scroll Continuo Images Scroller soteha AIUTO utilitą free 13 29-02-08 12:22
Grey scale images with Actionscript 3.0 Flep Tutorials 0 27-09-07 21:04


All times are GMT. The time now is 19:19.


Powered by vBulletin versione 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.2.0 RC4
Forum SiteMap


FlepStudio
by Filippo Lughi
P.IVA 03605860406