How Do You Make A Shooting Gallery Of Bottles?
i have the background, bottles (all animated MCs) and the crosshair. what code do i need to make trhe bottles break when they are shot?
here is my file....(see attached)
FlashKit > Flash Help > Flash ActionScript
Posted on: 05-23-2005, 02:15 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
Gallery Shooting Game
Hey guys
im a bit new to actions scripting but im just starting to make me first game.
"a gallery shooting game" simalar to the "shoot mr duke" game in the game contest section but insead were ducks scroll across the screen along with bad targets and other things . ive been trying a bit but i was wondering if anyone knew of any guides that might be relivant. Ive seem to got everythign work incuding the score/timer/intro/help and im working on dificulties & ducks/bad targets scrolling acros the screen randomly
any help would be well welcomed
thanks
~stork
Gallery Shooting Game
Hey guys
im a bit new to actions scripting but im just starting to make me first game.
"a gallery shooting game" simalar to the "shoot mr duke" game in the game contest section but insead were ducks scroll across the screen along with bad targets and other things . ive been trying a bit but i was wondering if anyone knew of any guides that might be relivant. Ive seem to got everythign work incuding the score/timer/intro/help and im working on dificulties & ducks/bad targets scrolling acros the screen randomly
any help would be well welcomed
thanks
~stork
Scaling For A Shooting Gallery Game...
I'm about to write a small shooting gallery game for my website - the one from which I took inspiration can be found at here.
I want to do something a little bit more sophisticated though - specifically, I'd like to have the target image scale down depending on how far back it is.
I know how to do the random appearance of the target (thanks to the tut found on this site!), and I think by limiting the x and y co-ordinates I can 'anchor' the image to the gound.... but I have no idea how to shrink the image as the stage deepens.
Can anyone help me?
How Do You Shoot Bottles With A Cursor?
I am using:
onClipEvent (mouseDown) {
gotoAndPlay(2);
}
and i am attaching it to the bottle i want to shoot. I have an animation for the smashing of the bottle, but no matter where you shoot on the screen the bottle MC plays from frame 2, and sticks to the mouse click.
What do i do?
Trying To Make A Shooting Star With Trails
Hello, I am trying to make a star that starts small and gets bigger and has trails behind it like a comet. Whats the best way to do this?
Please excuse me I am new to flash and I am trying to learn tricks and shortcuts..thanks in advance
Need To Make A Shooting Star With A Trail ?
Hello, I am trying to make a star that starts small and gets bigger and has trails behind it like a comet. Whats the best way to do this?
Please excuse me I am new to flash and I am trying to learn tricks and shortcuts..thanks in advance
Anyone Have Any Fla's I Can Use To Make A Gallery?
Or something simple like that for my portfolio page? I don't know any XML and I couldn't figure out any of those gallery component downloads that I was previously referred to...
I need to have a gallery for up to 150 images that I could update easily. Even just a scrolling list that they can click on to see a small preview then click a launch button or something. I dunno.
How Can I Make Gallery Like
hello , i want to make a photo gallery in flash ,like this site http://www.redsantacruz.com/gallery/index.shtml ,any one have to help please i nedd it
thanks.
How Can I Make Gallery Like
hello , i want to make a photo gallery in flash ,like this site http://www.redsantacruz.com/gallery/index.shtml ,any one have to help please i nedd it
thanks.
How To Make This Gallery?
I'm trying to make something simmilar to the gallery at this site: http://www.kitsuman.com/chrisbailey/
Does any one know where can I find a tutorial or sample files?
thanks
How To Make That Gallery...
How to make that gallery:
http://www.homeinitaly.com/ (Flash area)
My idea is use a MC container and in that create MC's for each photo and use the onRollout with the mouse.
Any ideas....
How Can I Make Both? XML Gallery & PL
Hi all
I'm just wondering how to make this 3D XML Gallery: http://www.flashden.net/files/6434/index.html
And also how to make this preloader with % in text: www.vitaminwater.com
Thankz in advance
How To Make This Gallery?
I'm trying to make something simmilar to the gallery at this site: http://www.kitsuman.com/chrisbailey/
Does any one know where can I find a tutorial or sample files?
thanks
What Can I Do To Make My Gallery A Bit Smarter?
What I need to do is turn off the left or right button when the gallery scrolls to the left of right end respectively.
For example, the user clicks the right button several times until the gallery ends...the user then can't keep hitting the button because it has turned itself off.
Right now, users can keep hitting my buttons even tho the gallery has hit the end, and it looks kinda unprofessional, I think.
Here is the AS I have at the moment...
On the slider (slider_mc)...
onClipEvent (load) {
this._xDest = this._x;
this.xMax = 354;
this.xMin = -310;
this.speed = 2;
}
onClipEvent (enterFrame) {
this._x += (this._xDest-this._x)/this.speed;
}
On one of the buttons...
on (press) {
slider_mc._xDest -= 221;
if (slider_mc._xDest<slider_mc.xMin) {
slider_mc._xDest = slider_mc.xMin;
// _xDest is limited
}
}
On the other button...
on (press) {
slider_mc._xDest += 221;
if (slider_mc._xDest>slider_mc.xMax) {
slider_mc._xDest = slider_mc.xMax;
// _xDest is limited
}
}
What do I need to add to make this whole thing a little smarter? I'm using Flash MX...not 2004 though.
[F8] How Can I Make Dynamic Gallery?
I need to make a website entirely in flash, that will have dynamic content, I know how to make the text read from external txt. files, but how do I make images load from outside???
Any help would be welcome
Thanks in advance
[CS3] Somebody Please Help Me To Make A Clipart Gallery.
I appeal somebody from the flash experts or someone who know how to make a thing I describe below.
My problem is I need to make a clipart thumbnail gallery in flash. Actually I want to make a some kind of flash constructor and for these purpose I use Transform Manager by Green Sock http://blog.greensock.com/transformmanageras2
What I need now is to make a gallery which will contain a thumbnails of .swf cliparts. Each of thumbnails I should be able to click like a button after what an .sfw image according to the thumbnail I clicked will be attached to the flash scene. The problem is I need to form this gallery using xml or somehow so that I could add new cliparts to the gallery. So basically I need to make a gallery exactly like this http://tart.lv/?page=customize
chose some products there and you'll see a clipart button in the constructor, so when you click this button the gallery appears, and this is the gallery I need to make.
I beg anyone to help me to do this, I don't even know where to start from. Maybe there is already an example of such thing. Please help me somehow anyone!
How To Make This Tween In A XML Gallery?
Hi,
on this site (click enter and then "Projects" and then, let say web sites. It will open a new swf with this amazing scrollable gallery, where every next item has a little time delay showing itself on the stage. And of course there's also that nice blur effect.
Any good tutorials?
THX for your help
Edited: 03/01/2008 at 10:16:46 AM by rohai
How To Make Image Gallery
I read the good tutorial here http://www.kirupa.com/developer/mx20...otogallery.htm and i would like to enhance it with gallery.
I think about it how to do it.
I need to load the description and images and movie and than with loop create next, and next.
I do'nt know how duplicate this movies.
I load the XML:
Code:
// fn after loading XML load
function loadXML_gal (loaded)
{
if (loaded)
{
xmlNode_gal = this.firstChild;
image_gal = [];
description_gal = [];
path_gal = [];
total = xmlNode_gal.childNodes.length;
for (i = 0; i < total; i++)
{
image_gal[i] = xmlNode_gal.childNodes[i].childNodes[0].firstChild.nodeValue;
description_gal[i] = xmlNode_gal.childNodes[i].childNodes[1].firstChild.nodeValue;
path_gal[i] = xmlNode_gal.childNodes[i].childNodes[2].firstChild.nodeValue;
trace ("image_gal =" + image_gal[i]);
trace ("description_gal =" + description_gal[i]);
trace ("path_gal =" + path_gal[i]);
}
}
else
{
content = "file not loaded!";
}
}
// create XML object
xmlData_gal = new XML ();
xmlData_gal.ignoreWhite = true;
xmlData_gal.onLoad = loadXML_gal;
xmlData_gal.load ("xml/seznam_gallery.xml");
//
And now i need to put every loaded images in new movie.
XML what is loaded:
Code:
<?xml version="1.0" encoding="windows-1250"?>
<main_node>
<gallery>
<caption>Prvni galerie</caption>
<image>gallery/img_01.jpg</image>
<path>xml/gallery_01.xml</path>
</gallery>
<gallery>
<caption>Druha galerie</caption>
<image>gallery/img_02.jpg</image>
<path>xml/gallery_02.xml</path>
</gallery>
</main_node>
How to do it please?
How To Make Picture Gallery?
I just tried to do a picture gallery.But It has to have around 21 pictures.In 3 sections(this is around 7 pictures per section)
I would like to look like file 1. It must have 21 buttons (on which when you click to see the picture bigger) on the same window,now there are only 13.
Could you please help me to do?
here is the link of the FLA file
http://w02.easy-sharing.com/115120/i...sLR5WKQ7/1.zip
How To Make A Pop Up In An XML Image Gallery?
Could someone please help me with simple action script/html. I am using Kirupa's XML image gallery with thumbnails:
http://www.kirupa.com/developer/mx2004/thumbnails.htm .
&
The images link to an even larger image:
http://www.kirupa.com/forum/showthread.php?t=81020 .
The only problem is that I need these larger images to come up in a Pop Up window instead of in _blank window.
I have tried numerous java script & flash scripts for pop up windows. None of them work because I have XML in this gallery.
Does anyone know a script html/java/AS that would make these larger images come up in a pop up window?
Thank you,
-Max
edit: I have searched all over this forum and can't find the right code
How To Make A Video Gallery
Does anybody know how i can make this tutorial: http://www.kirupa.com/developer/mx2004/thumbnails.htm display .flv movies instead of regular images? I want the same functions with the scrolling panel and the thumbnails, in other words i want a video gallery based on the image tutorial...
How To Make This Sort Of Gallery
How would you make a draggable mask so a picture is masked and as the user moves their mouse the mask moves so different areas of the picture are revealed.
Also the way the thumbnails load is very nice, is that using xml do you think?
http://www.chemical-crew.tv/chemical...ry2/index.html
How Can I Make A Photo Gallery Like This One?
http://www.robertlewissmith.com/flash.ht...
Click on "projects" then click either on " Mimi&Liam's World" or on "the west of Ireland"
What i would like to create is a photo gallery such as this one.
in the past I saw many good tutorials that teach you how to make these kind of effect, but i can't find any, anymore.
Does anyone know a good tutorial?
any suggestion, links would be very helpfull. thanx in advance.
The Ultimate Image Gallery. I Am Going To Make It
I have just started writing out the basics of my plan and what this gallery needs to do. Its going to be very complicated, and I am sure to run into many problems, so before I begin I want to make sure I have a general idea of how this thing is gonna be set up and coded. If people could read my plan and give me some advice before I embark on this project I would greatly appreciate it. Here's what this gallery needs to do:
[PHOTOGALLERY]
BASIC OUTLINE
- Picture frame on left.
- Thumbnails on right.
- Picture info is displayed under the picture frame.
- Drop down menu above thumbnails that switches between galleries.
- Gallery is fully dynamic and uses an XML file to designate what images/thumbnails are loaded.
PICTURE FRAME
- Frame has set width. The height scales with the picture.
- Frame would be an MC that has 4 Layers.
- Layer 1: Mask (scales according to height of image loaded)
- Layer 2: Top Bar (moves along Y-Axis according to image loaded)
- Layer 3: Bottom Bar(moves along Y-Axis according to image loaded)
- Layer 4: Left & Right Bars (doesn’t move, are very tall)
- Preload Bar/ Percentage displayed in center of Picture Frame.
- When image is loaded, previous image fades out,preloader, then current image fades in.
THUMBNAILS
- Thumbnails are Squares or Rectangular box’s.
- When gallery is opened boxes pop open (maybe elastically maybe a simple ease)
- When thumbnail box has eased to intended dimensions a preloader appears in each box while thumbnail image loads.
- I may want to stagger the popping/easing open of the thumbnail boxes to create a wash effect
- After all Boxes have eased to their dimensions the first image is loaded into Picture frame.
- At this time thumbnail images will still be loading.
- A thumbnail is not clickable until its thumbnail image has loaded.
- Thumbnails reflect weather or not they have been clicked.
- The number of thumbnail box's depends on how many i say in the xml file. And if there are more then 8, then 2 arrows popup that allow me to chagne thumbnail pages.
OK, there's the fairly basic outline of my plan. What do you think. If there are any stumbling blocks that you can think of that I may run into please warn me now.
I should let you know that I'm not extremely experienced with flash, I just this past week learned about the usefullness of functions. I have built a sorta dynamic image viewer, but it was pretty messy and hard to alter. I want to make this one the right way, clean and efficient code, and easy to make changes to.
Any advice, help or ideas would be great!. Thanks!
Drop In Pix In Folder To Make Gallery?
Can i make a flash site that that takes pictures ive uploaded that are named 001, 002, 003, etc. and puts them into different movieclips to make a gallery??? I want it so i can just drop the pictures into a folder in my site to load in a gallery. Any help would be GREAT.
oh and btw im trying to create something like this: http://www.collages.net/ConsumerSite...l=aus@bags.com
thanks!
austin
Please Help Me Make My Gallery Truely Dynamic
Hello!
So I made a basic little photo gallery the other day, that pulls jpgs from the specified address. It was super easy with this article as guidance:
http://www.tutorialoutpost.com/count/5021
So far so good.
But what I REALLY want is for my gallery to DYNAMICALLY offer all the jpg files in a specified folder (and dynamically create buttons). I want to be able to load the gallery.swf into the server once, and have it automatically update when I make changes to the photos in a specific folder.
Conceptually it doesn't seem that hard (ahh the wonders of MX 2004), but does anyone have any advice about how I should do it?
I'm still very much a noob.
I've searched all over, and can't find any articles that specifically address what I'm trying to do.
Ok well thanks for reading and I hope someone can help me!
.:Nils
[CS3] Trying To Make A Photo Gallery Work
Hi,
I am using one of the Picasa gallery templates (polaroid) and have been trying for hours to get this gallery working the way I need.
The gallery is online here: http://eccolo.com/Site2/More/Photos/ (the images aren't optimized yet so it may run slow)
On that page you can see each frame has the image expanding outside of the white frame border. I need the images to be the same size as the black box on the inside (which is a mask that I turned off for your viewing).
I have tried everything and all I can do is manually move a holder that does not really respond to where I place it. I can stretch the photo but I cant get it exactly where I need it or the right size.
Also, the photos look lowered in quality when I test the project.
Please Help! I will send you the FLA and files if anyone would like to take a look at it.
Thanks
NOOB Wants To Know: Best Way To Make A Bitmap Gallery?
I can think of a couple of cumbersome ways to make a bitmap gallery of internal images, (IE: Put the images into MovieClips, and have all 50 of them hiding off-stage, and a button brings one on) but I'm trying to figure out the most practical, and popular way to do it. Any thoughts?
Thanks!
Jason
animationjason.com
PS: I have several Flash books, which dance around the issue. They tell you how to do this or that line of code, but don't discuss the application for it. Frusterating!
The Ultimate Image Gallery. I Am Going To Make It
I have just started writing out the basics of my plan and what this gallery needs to do. Its going to be very complicated, and I am sure to run into many problems, so before I begin I want to make sure I have a general idea of how this thing is gonna be set up and coded. If people could read my plan and give me some advice before I embark on this project I would greatly appreciate it. Here's what this gallery needs to do:
[PHOTOGALLERY]
BASIC OUTLINE
- Picture frame on left.
- Thumbnails on right.
- Picture info is displayed under the picture frame.
- Drop down menu above thumbnails that switches between galleries.
- Gallery is fully dynamic and uses an XML file to designate what images/thumbnails are loaded.
PICTURE FRAME
- Frame has set width. The height scales with the picture.
- Frame would be an MC that has 4 Layers.
- Layer 1: Mask (scales according to height of image loaded)
- Layer 2: Top Bar (moves along Y-Axis according to image loaded)
- Layer 3: Bottom Bar(moves along Y-Axis according to image loaded)
- Layer 4: Left & Right Bars (doesn’t move, are very tall)
- Preload Bar/ Percentage displayed in center of Picture Frame.
- When image is loaded, previous image fades out,preloader, then current image fades in.
THUMBNAILS
- Thumbnails are Squares or Rectangular box’s.
- When gallery is opened boxes pop open (maybe elastically maybe a simple ease)
- When thumbnail box has eased to intended dimensions a preloader appears in each box while thumbnail image loads.
- I may want to stagger the popping/easing open of the thumbnail boxes to create a wash effect
- After all Boxes have eased to their dimensions the first image is loaded into Picture frame.
- At this time thumbnail images will still be loading.
- A thumbnail is not clickable until its thumbnail image has loaded.
- Thumbnails reflect weather or not they have been clicked.
- The number of thumbnail box's depends on how many i say in the xml file. And if there are more then 8, then 2 arrows popup that allow me to chagne thumbnail pages.
OK, there's the fairly basic outline of my plan. What do you think. If there are any stumbling blocks that you can think of that I may run into please warn me now.
I should let you know that I'm not extremely experienced with flash, I just this past week learned about the usefullness of functions. I have built a sorta dynamic image viewer, but it was pretty messy and hard to alter. I want to make this one the right way, clean and efficient code, and easy to make changes to.
Any advice, help or ideas would be great!. Thanks!
How To Make A Photo Gallery With Many Pictures?
Hello,
I have a folder full of pictures that I want to be able to show as thumbnails and then enlarge when clicked.
It would be tedious to make place each thumbnail and then a hyperlink to a pop-up. Is there a way just to point them to a folder?
Ihave done this with asp, but unfortunately, my bud's server is for PHP.
Thanks again!
Suggestions To Make Scottys Gallery Just Better
For i while now I am working on Scottys exelent Photo Gallery on my webpage. www.apneaimages.com
With the help off Scotty i have make some buttons that the have a activ and a visited status
My problem & maybe a suggestion how to develop this exelent gallery is
that my buttons are not created from a XML file but they are movieclips...50 off them
My dream is to make the buttons like them in http://www.slideshowpro.net/
with thumbs & everything but still keep the activ and a visited status
A other think is update the Gallery online
I have play with SSPAdmin where you can create and update new gallerys and images with data everything online. How aout to create a Slideshow that can read the xml file from SSPAdmin ?
Take a look.. http://www.motionsync.com/sspadmin/images.php
Other suggestion will be to can put a picture in a bean , like favorite picture, so that later you can send it via ecard or order it via PAYPAL or...etc...
They are only suggestion that i think will make a great gallery just mutch better
For me I just need thumbs like slideshowPro :-)
Lambis
Tryin To Make A Photo Gallery
I wanna make a photo gallery that has like 5-10 thumbnail images that you can scroll through, and then when you click on the thumbnail, I want that picture to fade in and pop up in a empty movie clip I assume, i just need to know what action script I use. thanks!
How To Make This Addition To The XML Image Gallery?
Hi there.
I have searched the forums but obviously didn't find what i was looking for.
I am looking for a way to make a XML gallery like the one on this site, without the thumbnails.
What i need it to be able to do is to scroll/slide/move my pictures the distance of the following picture.
Example:
Lets say i have 5 pictures with identical width and height. Through a mask, 4 of them are visible. When i click my Next button i want the whole list of pictures to move a distance similar to the next picturse (the 5th pictures). That way the pictures 2 3 4 5 are visible and picture 1 is not.
Actually what i'm looking for is kinda like the Kirupa thumbnail scroller, just scrolling/sliding one picture at a time per click on the next button instead of a contionous scroll.
Does anyone know how to do that?
Any help is much appreciated.
The Ultimate Image Gallery. I Am Going To Make It
I have just started writing out the basics of my plan and what this gallery needs to do. Its going to be very complicated, and I am sure to run into many problems, so before I begin I want to make sure I have a general idea of how this thing is gonna be set up and coded. If people could read my plan and give me some advice before I embark on this project I would greatly appreciate it. Here's what this gallery needs to do:
[PHOTOGALLERY]
BASIC OUTLINE
- Picture frame on left.
- Thumbnails on right.
- Picture info is displayed under the picture frame.
- Drop down menu above thumbnails that switches between galleries.
- Gallery is fully dynamic and uses an XML file to designate what images/thumbnails are loaded.
PICTURE FRAME
- Frame has set width. The height scales with the picture.
- Frame would be an MC that has 4 Layers.
- Layer 1: Mask (scales according to height of image loaded)
- Layer 2: Top Bar (moves along Y-Axis according to image loaded)
- Layer 3: Bottom Bar(moves along Y-Axis according to image loaded)
- Layer 4: Left & Right Bars (doesn’t move, are very tall)
- Preload Bar/ Percentage displayed in center of Picture Frame.
- When image is loaded, previous image fades out,preloader, then current image fades in.
THUMBNAILS
- Thumbnails are Squares or Rectangular box’s.
- When gallery is opened boxes pop open (maybe elastically maybe a simple ease)
- When thumbnail box has eased to intended dimensions a preloader appears in each box while thumbnail image loads.
- I may want to stagger the popping/easing open of the thumbnail boxes to create a wash effect
- After all Boxes have eased to their dimensions the first image is loaded into Picture frame.
- At this time thumbnail images will still be loading.
- A thumbnail is not clickable until its thumbnail image has loaded.
- Thumbnails reflect weather or not they have been clicked.
- The number of thumbnail box's depends on how many i say in the xml file. And if there are more then 8, then 2 arrows popup that allow me to chagne thumbnail pages.
OK, there's the fairly basic outline of my plan. What do you think. If there are any stumbling blocks that you can think of that I may run into please warn me now.
I should let you know that I'm not extremely experienced with flash, I just this past week learned about the usefullness of functions. I have built a sorta dynamic image viewer, but it was pretty messy and hard to alter. I want to make this one the right way, clean and efficient code, and easy to make changes to.
Any advice, help or ideas would be great!. Thanks!
How To Make A Photo Gallery With Many Pictures?
Hello,
I have a folder full of pictures that I want to be able to show as thumbnails and then enlarge when clicked.
It would be tedious to make place each thumbnail and then a hyperlink to a pop-up. Is there a way just to point them to a folder?
Ihave done this with asp, but unfortunately, my bud's server is for PHP.
Thanks again!
How Do I Make A Picture Gallery With A Small Filesize?
I have absolutely no idea how to make a decent picture gallery with a small filesize (it would include over 20 pictures, all with a filesize of over 250 kb...)
could someone help me on this one?
or does any1 have a tutorial on this? because there is no tut on this on flashkit.com ...
thnx
I Wanna Make A Dynamic Image Gallery
Hi there,
I need to make a dynamic image gallery. there are about 300 images and creating mc for so many images will be very time consumable work.
Is there anyway i can do it thru action scripting. I am not good with it too, i can load dymanic txt, can i load images dynamically in movie clips and is there anyway to add on movie clips or images in the flash file without actually edditing the flash file, instead just adding files in the image folder.
Please guys help me with this.
Thank you.
[F8] AS Question To Make Arrow Buttons In Xml Gallery.
Hi,
I have xml structure flash gallery. It has a several xml files with different pictures. In the first frame I have this code:
Code:
var sound:Sound = new Sound();
sound.attachSound("foto");
var photo_filename:Array = new Array();
var photo_thumbnail:Array = new Array();
var photo_description:Array = new Array();
var gallery_name:Array = new Array("1", "2", "3", "4");
var gallery_file:Array = new Array("1-9", "10-18", "19-27", "28-36");
var no_of_gallery:Number = gallery_name.length;
var folder:String = "modeliai/";
var total:Number;
var g:Number = 0;
var i:Number = 0;
var j:Number = 0;
var k:Number = 0;
var p:Number = 0;
var border_size:Number = 2.2;
var scrolling_speed:Number = 0.15; // 0.00 to 1.00
var cv:Number = 0;
var cv_old:Number = 0;
var onDrag:Boolean;
var xml:XML = new XML();
sub_button._visible = false;
tn_area._visible = false;
stop();
for( i = 0; i < no_of_gallery; i++ )
{
sub_button.duplicateMovieClip("sub_button" + i, i);
//this["sub_button" + i]._x = sub_button._x;
this["sub_button" + i]._x = sub_button._x + (sub_button._height+10) * i;
this["sub_button" + i].label_txt = gallery_name[i];
this["sub_button" + i].no = i;
}
function changeGallery(no)
{
for( i = 0; i < no_of_gallery; i++ )
{
this["sub_button" + i].button_mc._visible = true;
this["sub_button" + i].graphic_bg1._visible = true;
this["sub_button" + i].graphic_bg2._visible = false;
}
this["sub_button" + no].button_mc._visible = false;
this["sub_button" + no].graphic_bg1._visible = false;
this["sub_button" + no].graphic_bg2._visible = true;
xml.load( gallery_file[no] + ".xml");
xml.ignoreWhite = true;
}
changeGallery(0);// set default gallery at first loading
xml.onLoad = function()
{
for( i = 0; i < total; i++ )
removeMovieClip(tn_group["tn"+i]);
tn_group.tn._visible = false;
var nodes = this.firstChild.childNodes;
total = nodes.length;
for( i = 0; i < total; i++)
{
photo_filename[i] = nodes[i].attributes.filename;
photo_thumbnail[i] = nodes[i].attributes.thumbnail;
photo_description[i] = nodes[i].attributes.description;
}
j = k = p = 0;
g++;
create_tn();
scroller();
play();
}
function create_tn():Void
{
for( i = 0; i < total; i++)
{
var t = tn_group.tn.duplicateMovieClip("tn"+i, i);
t.pic.loadMovie( folder + photo_thumbnail[i] );
t.tn_no = i;
t._x = j * 95;
t._y = k * 145;
j++;
if( i % 3 == 2 ) {j = 0; k++;}
t.onEnterFrame = function()
{
var bytes_loaded:Number = this.pic.getBytesLoaded();
var bytes_total:Number = this.pic.getBytesTotal();
var percent:Number = 0;
this.bd._width = this.bd._height = 60;
this.bd._alpha = 20;
this.bd._x = this.bd._y = 15;
percent = Math.round( bytes_loaded / bytes_total * 100 );
if( percent != 100 && percent > 0)
this.info.text = percent + "%";
else
this.info.text = "0%";
if( percent == 100 )
{
this.info.text = "";
this.pic._x = (85 - this.pic._width) * 0.1 + border_size;
this.pic._y = (135 - this.pic._height)* 0.1 + border_size;
this.bd._alpha = 100;
this.bd._width = this.pic._width + border_size * 2;
this.bd._height = this.pic._height + border_size * 2;
this.bd._x = this.pic._x - border_size;
this.bd._y = this.pic._y - border_size;
}
}
t.onRollOver = function()
{
this.pic._alpha = 75;
}
t.onRollOut = function()
{
this.pic._alpha = 100;
}
t.onRelease = function()
{
p = this.tn_no;
play();
sound.start(0,0);
//this.pic._alpha = 25;
}
}
}
function scroller():Void
{
scroller_mc._y = scrollable_area_mc._y;
tn_group._y = tn_area._y;
sr = tn_area._height/tn_group._height;
scroller_mc._height = scrollable_area_mc._height * sr;
sd = scrollable_area_mc._height - scroller_mc._height;
cd = tn_group._height - tn_area._height;
cr = cd / sd;
tn_group.setMask(tn_area);
if( tn_group._height <= tn_area._height )
{
scroller_mc._visible = scrollable_area_mc._visible = false;
}
else
{
scroller_mc._visible = scrollable_area_mc._visible = true;
}
scroller_mc.onPress = function()
{
this.startDrag(false, this._x, scrollable_area_mc._y, this._x,
scrollable_area_mc._y + scrollable_area_mc._height - this._height + 2);
onDrag = true;
this.onEnterFrame = function()
{
new_y = tn_area._y + scrollable_area_mc._y*cr - this._y*cr;
cv = (new_y - tn_group._y) * scrolling_speed;
tn_group._y += cv;
if( onDrag == false && cv_old == cv )
delete this.onEnterFrame;
cv_old = cv;
}
}
scroller_mc.onRelease = scroller_mc.onReleaseOutside = function()
{
this.stopDrag();
onDrag = false;
}
}
I would like to add 2 arrow buttons - to the right and to the left. And when I press one of them, it should slide through xml files:
("1-9", "10-18", "19-27", "28-36");
What should I write in Actions panel on the arrow button?
Thanks for help...
[CS3][AS2] Flash And XML Gallery. How Make Thumbnails Clickable?
Hi all,
I'm making a flash gallery with XML, the thumbnails loads just fine but i cant figure out how to make the thumbnails clickable so that they can load the correct Image..
Here is the code i have so far:
Code:
var galleryXML:XML = new XML();
galleryXML.ignoreWhite = true;
this.createEmptyMovieClip("container_mc",this.getNextHighestDepth());//Container for the thumbs
this.createEmptyMovieClip("theImage_mc",this.getNextHighestDepth()); //Movie Clip to hold larger Images
theImage_mc._x = 0;
theImage_mc._y = 0;
container_mc._x = 0;
container_mc._y = 481;
//************* ONLOAD EVENT FOR THE XML DATA*******\
galleryXML.onLoad = function(success){
if(success)
{
var myImages:Array = galleryXML.firstChild.childNodes;
//trace(myImages);
for(i=0;i<myImages.length;i++){
thumb_mc = container_mc.createEmptyMovieClip("thumb_mc" + i,i);
clipLoader.loadClip("thumb/" + myImages[i].attributes.thumb_url,thumb_mc);
thumb_mc.loadMovie("thumb/" + myImages[i].attributes.thumb_url);
thumb_mc._x = 105*i;
imgURL = "images/" + myImages[i].attributes.full_url;
theImage_mc.loadMovie(imgURL);
}
}//end if
else
{
trace("I'm dead");
}//end else
}
galleryXML.load("gallery2.xml");
Can someone help me out with this? I can write AS, but I'm not a real pro.
Thanks in advance
How Do You Make The Ultimate Dynamic Gallery More Ulitimate?
Hi folks,
I've recently completed the tutorial that can be found at
http://www.lukamaras.com/tutorials/a...e-gallery.html
which creates a pretty good dynamic gallery using actionscript & xml.
I was just wondering if anyone can tell me how (if at all possible) to make the image holder dynamically fit the size of the image.
The problem i have is that not all of my galleries were shot in landscape, but If I load portrait shots into the gallery the holder & dropshadow is totally the wrong shape!!
Cheers folks!
Tim
How To Make Click-And-Drag Image Gallery Like This?
hi friends...
check these links... i wanna make such image viewer for my touchscreen phone, can some1 help...
http://www.tofmade.com/products/mini/
http://www.tofmade.com/products/touchslider/
http://www.tofmade.com/products/polaroidz/
i tried to decompile those .swf file, but i din get some source files, they are at server i think.. can some1 give me a similar flash code...
i want to make a flashlite app to view picz which can be viewed by dragging to see next pic...
please some1 help me....
i want either tat linkz full flash code or similar apps flash code...
thnx..
How To Make Click-And-Drag Image Gallery Like This?
hi friends...
check these links... i wanna make such image viewer for my touchscreen phone, can some1 help...
http://www.tofmade.com/products/mini/
http://www.tofmade.com/products/touchslider/
http://www.tofmade.com/products/polaroidz/
i tried to decompile those .swf file, but i din get some source files, they are at server i think.. can some1 give me a similar flash code...
i want to make a flashlite app to view picz which can be viewed by dragging to see next pic...
please some1 help me....
i want either tat linkz full flash code or similar apps flash code...
thnx..
How To Make Preloaders Work For Photo Gallery
Hello,
This below photo gallery (link below) has a preloader example that I want to copy for my own gallery. The example is pretty complicated but I only want to know how to make the preloader for image viewing box.
http://www.actionscript.org/componen...onent.php?id=8
I understand how the basic preloaders work BUT I don't know how to create a preloader that runs everytime when a new thumbnail clicked. Could someone give me an example of this??
Much appreciated!!!
Kyle
Let's Make Photoshop's Auto Flash Web Gallery Really Useful
hello there,
I have spent many hours trying to solve this problem so any time you could spare to take a look at this would be great - i'm out of ideas/knowledge.
Photoshop can produce flash web gallerys through it's automate function. These look great and are a very quick and elegant solution. If you edit the XML files it produces you can get it to load swfs which is fantastic - you can now use the flash gallery automate function to load images, animation, and even games. But here's the thing that stops it being truly wonderful. The gallerys are produced as Flash 6 files which means they refuse to load Flash 8 files. If it could produce Flash 8 files then you could edit the XML and have it load swfs that contained Flash 8 video. This means I could do pretty much everything i want to do for my website simply by using the flash photo gallery function in photoshop and tweeking the XML. Anybody think this might be a doddle for them? Help
Photo Gallery Thumbnails.How To Make It 2 Colums
Good Day I have used the Vertical example of the photo gallery here.
Can any body help me or give saome idea how to make the vertical thumbnails in two colums? becuase it has onle 1 colum in the example.
Your help is greatly appreciated
[F8] Can I Make This Gallery Advance On Its Own Without A External Button?
I posted this a few days back and didn't get any suggestions so, I thought I'd try again.
This is from the gallery tutorial. Can I make this gallery advance on its own without a external button? I just want the images to automatically fade in and out with the user having to interact. This will be used for a large slide show.
In a bind here so, any suggestions would be greatly appreciated.
This is the gallery tutorial code:
//Code written by sbeener (suprabeener)
/*
i wrote this code, but you can use and abuse it however you like.
the methods are defined in the order which they occur to make it
easier to understand.
*/
// variables ------------------------------------------
// put the path to your pics here, include the slashes (ie. "pics/")
// leave it blank if they're in the same directory
this.pathToPics = "";
// fill this array with your pics
this.pArray = ["small8-05-1.jpg", "small8-05-2.jpg", "small8-05-3.jpg", "small8-05-4.jpg", "small8-05-5.jpg", "small8-05-6.jpg", "small8-05-7.jpg", "small8-05-8.jpg", "small8-05-9.jpg", "small8-05-10.jpg","small8-05-11.jpg","small12-22-05-12.jpg","small12-22-05-13.jpg","small12-22-05-14.jpg","small12-22-05-15.jpg","small12-22-05-16.jpg","small12-22-05-17.jpg","small12-22-05-18.jpg","smallCommonEntrance-19.jpg"];
this.fadeSpeed = 50;
this.pIndex = 0;
// MovieClip methods ----------------------------------
// d=direction; should 1 or -1 but can be any number
//loads an image automatically when you run animation
loadMovie(this.pathToPics+this.pArray[0], _root.photo);
MovieClip.prototype.changePhoto = function(d) {
// make sure pIndex falls within pArray.length
this.pIndex = (this.pIndex+d)%this.pArray.length;
if (this.pIndex<0) {
this.pIndex += this.pArray.length;
}
this.onEnterFrame = fadeOut;
};
MovieClip.prototype.fadeOut = function() {
if (this.photo._alpha>this.fadeSpeed) {
this.photo._alpha -= this.fadeSpeed;
} else {
this.loadPhoto();
}
};
MovieClip.prototype.loadPhoto = function() {
// specify the movieclip to load images into
var p = _root.photo;
//------------------------------------------
p._alpha = 0;
p.loadMovie(this.pathToPics+this.pArray[this.pIndex]);
this.onEnterFrame = loadMeter;
};
MovieClip.prototype.loadMeter = function() {
var i, l, t;
l = this.photo.getBytesLoaded();
t = this.photo.getBytesTotal();
if (t>0 && t == l) {
this.onEnterFrame = fadeIn;
} else {
trace(l/t);
}
};
MovieClip.prototype.fadeIn = function() {
if (this.photo._alpha<100-this.fadeSpeed) {
this.photo._alpha += this.fadeSpeed;
} else {
this.photo._alpha = 100;
this.onEnterFrame = null;
}
};
// Actions -----------------------------------------
// these aren't necessary, just an example implementation
this.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
this.changePhoto(-1);
} else if (Key.getCode() == Key.RIGHT) {
this.changePhoto(1);
}
};
Key.addListener(this);
Flash/XML Gallery: Make Desc_txt Box Different Size?
Hi, I just did the tutorial for the flash/xml photo gallery. I understand everything pretty well, but I want to make the desc_txt box accept larger text amounts and a smaller/different font. I changed the size of the box and made the font smaller, and it doesn't show up in the final product. I looked at the action script, and I don't see anything to do with the text info. I'm using Flash 8, but also have access to CS3, so I might try it on there later this week. Thanks for any help.
|