Tracking Forums, Newsgroups, Maling Lists
Home Scripts Tutorials Tracker Forums
  Advanced Search
  HOME    TRACKER    Flash




Drag Photo



HI,How can drag similar effect this site http://www.ruehl.com/ruh/index.html#.../14899/390924/ tnks p.ssorry for my english



KirupaForum > Flash > ActionScript 1.0/2.0
Posted on: 02-25-2008, 11:06 AM


View Complete Forum Thread with Replies

See Related Forum Messages: Follow the Links Below to View Complete Thread

Drag A Panel With Transparancy Over A Photo
Hi
I saw this cool thing on a webpage (http://www.vilaplana.com/home_en.html) and wanted to use it on a proyect. I thought I could use a function that I leart in Brendan Dawes book called dragslidefade. But then, you can't click on the links that are in the transparent area because the panel moves...

I suppose that the best thing to do is to send you my code and if there is anybody that feels like helping me out, I should really apreciate it... the design (foto and so)is just a test so please don't pay any atention to that...:-)

thanks in advance.

agnetha

Drag And Drop Photo Gallery
can anyone give me a script to create a photo gallery where i can drag thumbnails to a designated area to open a larger image of that thumbnail as an animation..? I want to have about 16 thumbs.. and after you drop the thumb, I want the larger image to animate as it appears...?? anyone know how to do this?

Drag-And-Drop Photo Gallery Question . . .
Hello, I have a simple actionscript question. I am building a Flash photo gallery and it's going to look like polaroid pictures in sort of a stack. Now, I'm gonna make them draggable and all, but here's my question: How can I make a picture, if it's underneath the active pic, come up top if it's clicked or dragged? Is there any actionscript code? Thanks in advance!

Roll Over A Small Photo And Above It (or Beside) The Large Photo Is Displayed
Hi All
What is this called: When you roll over a small photo and above it (or beside) the large version of the photo is displayed. I would like to create a photo gallery that works this way. Could someone tell me what this is called? Or better yet, where I can learn how to do this? A free tutorial perhaps?

Loading Next Photo In The Background While View The Current Photo
Is there a way that when you are viewing a photo in the Photo Slide Show using XML > http://www.kirupa.com/developer/mx20..._slideshow.htm

The next photo in the slide show downloading, and once it has it than triggers to display the photo instead of having the preload bar?


Another cool feature > I created the xml to be dynamic based on the photos within a directory, some slideshows might one have 1 image in the direcotry. Is there away to stop the slideshow if this only one image, and only play the slideshow if there is more than 1 image?

Kirupa - Create A Photo Gallery, How Could I Put A Caption For Each Photo?
Hi all, im new here i stumbled upon the photo gallery page when looking at how to create one for my website, thanks to sbeener for the code! :-). It works perfectly however how could i change/add to the code so that for a specific photo a certain caption appears which changes for each different photo?

Any ideas will be greatly appreciated.

cheers, alex350r

Photo Gallery Tutorial Turned Into Photo Carousel
i've taken the tutorial on this site on how to create an flash photo gallery that loads the content from an xml file. i'd like to alter the output of this fine tutorial and would appreciate any help in doing so.

i would like to create gallery, but instead of only showing one picture at a time, i would like to have a carousel effect where more than one picture is shown at a time, and the buttons control the turn of the carousel. i'm thinking in order to do this i'll need to have the as create a movie clip for each picture (maybe during the for loop). each mc instance would have to have a unique name, and then the buttons could play with the properties of each created mc instance.

here's the code from the tutorial on this. any help would be much appreciated....

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
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;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}

Photo Gallery Help - Increase Height Of Main Photo
I have downloaded and walked through the steps in creating the Photo Gallery and have it working properly for my Horizontal shots. However, I am having trouble with displaying my Vertical shots (Height-300 x Width-200). How can I extend the flash in height to display my vertical pics properly?

Also, is there any cody that I can enter between the <Caption> </Caption> that would eliminate any caption being displayed? If it is left blank, it auto inserts undefined.

Thanks!

Help With: Last Photo Of A Transition To Transtion Back To First Photo...
I have a photo transition movie Ive created but how can I get the last photo to transition back to the first photo so it looks like all the other smooth transitions between photos?

Thanks guys/gals

I Have A Photo That Is A Thumbneil And When I Click On It I Want To Expend The Photo
To expain in detial my probem i have a thumbneil photo and when i click on it I want to display above the thumbnail a larger photo below is the action script I believe will cause this to but maybe not i do not really understand the script full what it is suppose to be doing - here is what i have done in my flash application I have overlaid this bttn_area as a hit zone over the thumbneil photo so when i hit the zone over the thumbnail photo i need to disos play a bigger picture. The thumbniel is 87 by 72 or so
and the large photo 592 by 400 or so can some one help me. THANKS

Up Over Down hit

This is the cation script but how do i modify it to display the filename.jpg when i click on the thumbneil called lets say thumb.jpg so where in this action script do i refenernce the photo names *.jpg. THANKS

on (rollOver) {
this.gotoAndPlay("s1");
}
on (releaseOutside, rollOut) {
this.gotoAndPlay("s2");
}
on (release){
if(_root.f<>1){
_root.cont.cont2.fotos.gotoAndPlay("s1");
_root.f=1;
}}

How To Create A Photo Gallery Of Hundreds Of Photo?
I saw the tut for the creating of photo gallery. Is it possible to do a photo gallery like this one (http://www.kriztal.com/flash.html) with hundreds of them? Do i have to key in the Action dialog all the photos' name in it? Is there another method of doing it with the effect of the web site i gave?Pls give some guidance and advice.

Photo Gallery - Only Loading Every Other Photo [urgent]
I've made a photo gallery from the MX tutoial, modifying it a bit for my needs. When I was using local images they would load fine and every one of them would display. I altered the XML to load images using URLS and now only every other displays (I've checked the urls are correct) - though because of the sequence I can see every image.

There are 7 images and my prev/next buttons loop, so the sequence I get is...

1,3,5,7,2,4,6

Any ideas?

Kirupa Photo Gallery - How To Load 2 Instead Of 1 Photo?
Hi!

How are ya?

I found the tutorial by Kirupa --> http://www.kirupa.com/developer/mx2004/xml_flash_photogallery.htm

Followed the tutorial and everything works great.

However I'm looking for a solution to load 2 instead of 1 photo at a time.

current situation:
[photo 1] *next button* [photo 2] *next button* [photo 3] .. etc!

wanted situation:
[photo 1][photo 2] *next button* [photo 3][photo 4] *next button* etc!!

think of it as a magazine!

How to do this? I tried copy-ing stuff in the actionscript layer and start adding 2's on places that were now double...figured i was doing it right but i was wrong, its not working

I really hope someone can help me out, greatly appreciated!
Thanks a lot.

RocketGuns

Merge Photo Slideshow With Photo Gallery
I am currently working on a website to display photos and have found kirupa's tutorial using the slideshow method very helpful. But I want the added user flexibility to stop the slideshow or skip to another image in the slide-show sequence at any time. So, if you can envision entering the site, a portfolio of images starts to cycle while the user can see what image number he/she is on and skip to or pause the slideshow. I'm not very code savvy and would love some help/ideas where to find help!

(1)drag Drop In 3 (2)drag Dropin 3 ...print 3 Contents (1)+(2)
i want to do the following.

drag (dynamic text file link)1 of choice of x text file links
into an area where all text file links can then be printed..(the text file itself)


[1] [2] [3] [4] [5]...


(basket)


drag drop [1] then [2] then [3] then [4] into (basket)

then print textfiles related to [1] [2] [3] [4]

if sombody could point me to a good tutorial or help me on my way?

thanx

Drag Dial (ie Drag Point In A Circular Motion)
I want to incorporate a dial (such as volume dial on a TV, or a timer dial on a microwave) so that when the user clicks on the dial they can move the dial up and down, but in a circular motion.


Does anyone know where I can get a tutorial/movie that would help me with that?

Does that even make sense?!

Drag Function Lost In Main .swf When Drag External .swf
using MX:

I made this really cool menu that acts like the MAC OS X buttons...
The only problem that i have is when i load an external .swf (which is a window) and drag the window the startdrag funtion on the MAC OS X buttons stops working...

so to break it down:

Main .swf:


Quote:




startDrag("dragscale", true);






then the code in the buttons to make then scale (this code may not matter):

Quote:




colnum = "1";
startnum = 1;
endnum = 6;
numberofItems = 6;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(false)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
}
i = startnum;
myInit = true;
}
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and Number(mouseposX)<=Number(boundright) and Number(mouseposY)>=Number(boundtop) and Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
// percentage increase
scaleAmount = 150-((myDif*myDif)/16);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
}
if (Number(scaleAmount)<100) {
scaleAmount = 100;
}
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
}
// *** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m, _height);
m = Number(m)+1;
}
// *** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) - getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add (m-1), _y) + getProperty ( "text" add (m-1), _height)) + avgdistance);
set("watchheight" add m, getProperty ( "text" add m, _height));
m = Number(m)+1;
}
} else {
// *** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100) {
// return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text" add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text" add i, _yscale ) ) -1);
}
if ( getProperty ("text" add i, _y) < eval("textY" add i)) {
// return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) + 1);
}
if ( getProperty ("text" add i, _y) > eval("textY" add i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) - 1);
}
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text" add i, _alpha ) ) - 1);
}
i = Number(i)+1;
}
}







NOw the External .swf code:


Quote:




on (press) {
startDrag ("_parent.win2")
}
on (release) {
stopDrag ();
}







I am pretty sure the "on release stopDrag" code is making the above buttons stop scaling...

How can i make it only stop draging the window not the entire movie??

basic question is it posible to have multiple dragable objects in one movie clip???

Drag Function Lost In Main .swf When Use Drag On External .swf?
using MX:

I made this really cool menu that acts like the MAC OS X buttons...
The only problem that i have is when i load an external .swf (which is a window) and drag the window the startdrag funtion on the MAC OS X buttons stops working...

so to break it down:

Main .swf:



quote:
--------------------------------------------------------------------------------
startDrag("dragscale", true);
--------------------------------------------------------------------------------



then the code in the buttons to make then scale (this code may not matter):

quote:
--------------------------------------------------------------------------------
colnum = "1";
startnum = 1;
endnum = 6;
numberofItems = 6;
mouseposX = int(getProperty("../dragscale", _x));
mouseposY = int(getProperty("../dragscale", _y));
i = startnum;
m = startnum;
filledSpace = 0;
gapspace = 0;
if (Number(myInit) == Number(false)) {
// on first run make an array of all the text Y Pos.
while (Number(i)<=Number(endnum)) {
set("textY" add i, getProperty ("text" add i, _y ) );
i = Number(i)+1;
}
i = startnum;
myInit = true;
}
boundleft = getProperty ("../boundbox" add colnum, _x);
boundright = boundleft + getProperty ("../boundbox" add colnum, _width) ;
boundtop = getProperty ("../boundbox" add colnum, _y);
boundbottom = boundtop + getProperty ("../boundbox" add colnum,_height);
if (Number(mouseposX)>=Number(boundleft) and Number(mouseposX)<=Number(boundright) and Number(mouseposY)>=Number(boundtop) and Number(mouseposY)<=Number(boundbottom)) {
while (Number(i)<=Number(endnum)) {
myDif = (eval("textY" add i) ) - (mouseposY - boundtop);
// percentage increase
scaleAmount = 150-((myDif*myDif)/16);
alphaAmount = 100-((myDif*myDif)/6);
if (Number(alphaAmount)<50) {
alphaAmount = 50;
}
if (Number(scaleAmount)<100) {
scaleAmount = 100;
}
setProperty("text" add i, _xscale, scaleAmount);
setProperty("text" add i, _yscale, scaleAmount);
setProperty("text" add i, _alpha, alphaAmount);
i = Number(i)+1;
}
// *** add up total Y pixels taken by text ***
while (Number(m)<=Number(endnum-1)) {
filledSpace = filledspace + getProperty ( "text" add m, _height);
m = Number(m)+1;
}
// *** find total Y pixels not taken by text
totalheight = getProperty ( "text" add endnum, _y) - getProperty ( "text" add startnum, _y);
gapSpace = totalheight-filledspace;
avgDistance = gapSpace/numberofitems;
m = Number(startnum)+1;
while (Number(m)<=Number(endnum-1)) {
setProperty("text" add m, _y, (getProperty ( "text" add (m-1), _y) + getProperty ( "text" add (m-1), _height)) + avgdistance);
set("watchheight" add m, getProperty ( "text" add m, _height));
m = Number(m)+1;
}
} else {
// *** shrink text back when mouse rolls out
i = startnum;
while (Number(i)<=Number(endnum)) {
if (int ( getProperty ("text" add i, _yscale ) ) >= 100) {
// return scale back to original state
setProperty("text" add i, _yscale, int ( getProperty ("text" add i, _xscale ) ) - 1);
setProperty("text" add i, _xscale, int ( getProperty ("text" add i, _yscale ) ) -1);
}
if ( getProperty ("text" add i, _y) < eval("textY" add i)) {
// return y position back to original state
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) + 1);
}
if ( getProperty ("text" add i, _y) > eval("textY" add i)) {
setProperty("text" add i, _y, int ( getProperty ("text" add i, _y ) ) - 1);
}
if ( getProperty ("text" add i, _Alpha) > 50) {
setProperty("text" add i, _alpha, int ( getProperty ("text" add i, _alpha ) ) - 1);
}
i = Number(i)+1;
}
}
--------------------------------------------------------------------------------




NOw the External .swf code:


quote:
--------------------------------------------------------------------------------
on (press) {
startDrag ("_parent.win2")
}
on (release) {
stopDrag ();
}
--------------------------------------------------------------------------------




I am pretty sure the "on release stopDrag" code is making the above buttons stop scaling...

How can i make it only stop draging the window not the entire movie??

basic question is it posible to have multiple dragable objects in one movie clip???

Drag 2 MCs, Kinda...drag 1MC, Follow MC Half?
i want to drag an object and have another mc to move half that distance. im trying to get the nondragMC to move half the distance from the bottom of the stage than the dragMC is moved by the user. they both start at the bottom of the stage and when the user drags the dragMC up, i want the other mc to move half the distance with the drag. dont know what script i should use. anybody got any ideas?

How To Make A Drag'n'drop Change Mid Drag?
Help! I already know the script to make a Movie Clip drag and droppable.
But how do I make it switch to a different Movie Clip in the middle of being dragged?
Please please help.

Stacking Drag Movie Lagging When Drag...
just wonder if anyone know how to solve these problem.

i have load in a .swf and this .swf is make up of one drag object. When i load into my _level0, i can drag it but it seem then the drag is not smooth, instead it is lagging. Thus i went back to the indiviual files and try to drag on it and it was not lagging. ...why is it like that? All the files are still on my local disk. Can't imgaine what will happen if it is on the net. Please help! is this normal for drag object ?

Load Photo Fade Last Photo
What I am trying to do is;

When you click to the next photo it keeps the one that is already there till the new one has 100% loaded then it fades the old one down and the new 100% loaded fade up. This way there is never the background color there while the photo is loading. So there is a smooth transition between the loading and the fading of the old and new image.

So I had to make two clips one holding the old photo and the other holding the new photo and toggle between the two to either fade up or fade down.

Here is the code there is two things wrong. One is I want to trigger the fadeIn only when the fadeOut is totally finished this way it looks better. Right now the both do fadeIn and fadeOut together.

Also if you check it on this link you will see that it sometimes has a delay before it fades up the new image. If you don't see it empth cache and play again.

Code: .............

Photo To Photo Morphing, Is There Such A Thing?
Hi i searched around and only found tutorials for basic shape to shape morphing which i can already do. I want to do photos to photos like on TV. like a picture of a dog to a cat. can flash do it? and if so how?

Need Photo To Photo Animation For Header
Hi - I'm new to Flash - just bought CS3 web suite, and the included help files are not helping.
I just need a simple header animation that will display through a group of photos with a fade-in/fade-out between each one.
I have sized my pix to the stage, and have them in the library.

Should they be movie clips or symbols?
How do I get them to do what i want? I have made them into an animation in PS, but the file is clumsy and large-size, or converts to lo-res gif. Figured Flash ought to do this, but i can't figure out how.

much thanks,
autwnd

Help - My Photo Xml Photo Album's On Fire...:)
Hello there,

I have recently completed the tutorial on how to make a slideshow with thumbnails. It is found here: http://www.kirupa.com/developer/mx2004/thumbnails.htm . I figured this would be a great way to show off a friends photogallery. The site is viewable here: www.prestigeinteractive.com/anneliephotography .

Well I can get it to work, however, when I try to load the swf file into another fla, the paths are messed up. Sadly, I am not good with code, so I am wondering what lines would need to be fixed in order to make this code work?

First I will tell you how I've structured the site.
- I have a swf file that basically loads a bunch of swf files into their appropriate x y coordinates.
- I have buttons that when selected open up external swf files into a movie clip called siteContentPage_mc . (this is where the site's content is loaded)
- On one page that is called portfolio, I want to have my slideshow photogallery page load. I am wondering how I would have to modify the code to make it work in this setting. I know it has to do with paths, but I am not sure which one's need changing. Currently the xml file resides in the folder with the swf files.

Here is the code at this time.









Attach Code

function loadXML(loaded) {
if (loaded) {
xmlNode = this.firstChild;
image = [];
description = [];
thumbnails = [];
total = xmlNode.childNodes.length;
for (i=0; i<total; i++) {
image[i] = xmlNode.childNodes[i].childNodes[0].firstChild.nodeValue;
description[i] = xmlNode.childNodes[i].childNodes[1].firstChild.nodeValue;
thumbnails[i] = xmlNode.childNodes[i].childNodes[2].firstChild.nodeValue;
thumbnails_fn(i);
}
firstImage();
} else {
content = "file not loaded!";
}
}
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loadXML;
xmlData.load("images.xml");
/////////////////////////////////////
listen = new Object();
listen.onKeyDown = function() {
if (Key.getCode() == Key.LEFT) {
prevImage();
} else if (Key.getCode() == Key.RIGHT) {
nextImage();
}
};
Key.addListener(listen);
previous_btn.onRelease = function() {
prevImage();
};
next_btn.onRelease = function() {
nextImage();
};
/////////////////////////////////////
p = 0;
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;
}
}
};
function nextImage() {
if (p<(total-1)) {
p++;
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
}
function prevImage() {
if (p>0) {
p--;
picture._alpha = 0;
picture.loadMovie(image[p], 1);
desc_txt.text = description[p];
picture_num();
}
}
function firstImage() {
if (loaded == filesize) {
picture._alpha = 0;
picture.loadMovie(image[0], 1);
desc_txt.text = description[0];
picture_num();
}
}
function picture_num() {
current_pos = p+1;
pos_txt.text = current_pos+" / "+total;
}
function thumbNailScroller() {
// thumbnail code!
this.createEmptyMovieClip("tscroller", 1000);
scroll_speed = 10;
tscroller.onEnterFrame = function() {
if ((_root._ymouse>=thumbnail_mc._y) && (_root._ymouse<=thumbnail_mc._y+thumbnail_mc._height)) {
if ((_root._xmouse>=(hit_right._x-40)) && (thumbnail_mc.hitTest(hit_right))) {
thumbnail_mc._x -= scroll_speed;
} else if ((_root._xmouse<=40) && (thumbnail_mc.hitTest(hit_left))) {
thumbnail_mc._x += scroll_speed;
}
} else {
delete tscroller.onEnterFrame;
}
};
}

function thumbnails_fn(k) {
thumbnail_mc.createEmptyMovieClip("t"+k, thumbnail_mc.getNextHighestDepth());
tlistener = new Object();
tlistener.onLoadInit = function(target_mc) {
target_mc._x = hit_left._x+(eval("thumbnail_mc.t"+k)._width+5)*k;
target_mc.pictureValue = k;
target_mc.onRelease = function() {
p = this.pictureValue-1;
nextImage();
};
target_mc.onRollOver = function() {
this._alpha = 50;
thumbNailScroller();
};
target_mc.onRollOut = function() {
this._alpha = 100;
};
};
image_mcl = new MovieClipLoader();
image_mcl.addListener(tlistener);
image_mcl.loadClip(thumbnails[k], "thumbnail_mc.t"+k);
}

Photo Spacing For XML Photo Gallery
Im new to this forum and Im also fairly new to action script. I have some questions regarding the Photo Gallery using XML and Flash. I'm only using the thumbnail portion of this tutorial. The problem that I'm having is that Im using photos with different widths. When I add these photos into the gallery they either overlap eachother or have very wide gaps in between. I've attached my .fla file and my .xml file. PLEASE HELP. Im pretty sure the problem is my action script but I dont know where to go. Thanks.

Photo Scalable Photo Gallery
Hi
Im trying to make a video gallery similar to this
http://www.fiesa2006.com/ (under gallerai link)
Is there a good tutorial on this
thanks in advance

Drag Drag Drag Menu
hi everyone

i have created a basic dragable menu, what i want to happen is that the menu can only be dragged in y position,or moves in y and slightly moves in x,....... what should be done?

this is the script:
on (press) {
startDrag("/drags");
}
on (release) {
stopDrag();
}

thanxxxxxxx

Photo MCs In Photo Gallery
Hi

I hope someone can help me,
I have created a flash photo gallery which you can see here click here
what i want it to do is, while its loading the next photo/mc is to still show the original one until loaded.

I can post fla files so you can see more info if this helps.

Cheers
Dean

Dissolve One Photo To Another Photo
Hi guys,

I have two images the same size and want to dissolve one image to another image, like the first flash movie here:
http://www.flashnifties.com/xml_slideshow.php

What would I need to do this?  I have tried two images on one layer with a shape tween, but this does not achieve the effect.

Any ideas?
------------------------------------
There's no place like 127.0.0.1
------------------------------------


Drag & Drop - "if" Drag's = Drops Script
HELP! I don't know a lot about flash script!

I have created a drag and drop. I want to make the users complete the drag and drop before they can move on. I want to include a script that checks to see if all items are in the correct boxes then "gotoandplay" the next frame where the navigation is active.

I have attached the drag and drop. Here's what I want to write (just need help writing it correctly):

IF
drag1 = drop1
drag2 = drop2
drag3 = drop3
drag4 = drop4
drag5 = drop5
drag6 = drop6
then gotoandplay frame2
If not, keep checking

What A DRAG Drag 2 Movies?
I have a movie clip that is draggable, and in that movie clip is a dynamic text area that has a scroll bar (with 2 arrows also) However, with the drag on the entire movie clip, the drag that makes up the scroll bar doesn't work. you cannot drag 2 movies at the same time. So right now I only have the arrows, but I'd really like to find out how to have a scroll bar inside a draggable movie.

I have a "drag" tab on my movie, is there a way to make that tab the only place to click and drag the movie?

Thanks for any help!

Drag Abd Drop, Rollover When Drag Is Over Drop Target?
Hi, im using Flash MX 2004.

I am building a drag and drop, and I have a MC that can be dragged around the stage. The trouble im having is trying to make the drop location do something when i drag the MC over/off it.

I have the following code which works.

objectToDrag.onMouseMove = function() {
if ((objectToDrag.hitTest(dropper)) && (component._beingDragged == true)) {
dropper._alpha = 50;
temp++;
trace("working"+temp);
}
}

This will make the clip i am dragging the draggable MC over change alpha, but for the life of me I cant figure out how to get the alpha to change BACK, after the draggable MC is taken away from the 'dropper'.

Is there a better way that hitTest??

Cheerz,
Dwayne

On Press Start Drag, On Press Stop Drag. How?
Hello i have an object that i want to drag and drop with the same event.

Something like on press start drag and on press again stop drag.

Anyone can help me?

I'm sure it's pretty simple with and if and else statment but i can't find how to do that...

The best i have done so far was this:




ActionScript Code:
on (press) {

startDrag(this);

}

on (release) {

stopDrag();

}

But i want to on press start drag then on press again stop drag.

anyone can help?



thanks

On Press Start Drag, On Press Stop Drag. How?
Hello i have an object that i want to drag and drop with the same event.
Something like on press start drag and on press again stop drag.
Anyone can help me?
I'm sure it's pretty simple with and if and else statment but i can't find how to do that...
The best i have done so far was this:


Code:
on (press) {
startDrag(this);
}
on (release) {
stopDrag();
}
But i want to on press start drag then on press again stop drag.
anyone can help?

thanks

Click & Drag Baby, Click & Drag
Ok peeps, check out this page

You can click & drag this map around, also zooming in and out. As you can see it's constrained so you never run out of image area. However when you zoom in & move the map so you can see the bottom edge, then zoom back out, you get a nasty white gap, which rights itself when you click on the map.

I need some way of stopping this nasty white gap appearing, any ideas anyone?

The "Zoom In" button has these actions applied:

on (release) {
_root.map._xscale += 20;
_root.map._yscale += 20;
}


The "Zoom Out" button has these actions applied:

on (release) {
if (_root.map._xscale>=101) {
_root.map._xscale += -20;
_root.map._yscale += -20;
} else if (_root.map<=100) {
setProperty("_root.map", _xscale, "100");
setProperty("_root.map", _yscale, "100");
}
}

While the map has these actions:

on (press) {
startDrag("_root.map", false, stage.width-_root.map._width,
stage.height-_root.map._height, 0, 0);
}
on (release, releaseOutside) {
stopDrag();
}

Cheers

Photo Help
i have a picture that i want to fade into a background. like putting an opaque gradient on it from left at 100% to right at 0%. now it seems this should be possible but i cant figure it out. im using fireworks but im sure i can translate photoshop advice. any help would be awsome.
thanks

Photo's
Hey how do you make it so when you open the site it reads the number of photos in a folder so lets say theres 10
dcp_1.jpg
dcp_2.jpg
dcp_3.jpg
etc etc
then displays them all in this fashion

<+++++>

the 5 +'s are photos and the arrows make them slide left or right revealing more.. and it keeps slideing untill it hits the last one and bam it slides no more hehehe. OH YEAH LOL these will be thumbs and when you clicked on them it would load the full size pic somewhere on the screen NOW if someone out there is nice enough to help me.. I can do a lot in flash **cant seem to get this lol** and i have a linux box with unlimited space etc etc so i will find a way to thank you.
Any help anyone could give would be GREATLY apreshaited

Thanks so much
Mike

Photo's
I didn't know where to post this so its probably in the wrong place but here goes:

Is there anywhere i can get good professional looking photo's of business people for a business website such as the one of the lady at http://www.chameleondata.com/siteindex.html I know you probably have to pay for that and if so which are the best sites for stock photos?

Get Photo?
Ok, what I want is quite simple...

I want a flash movie that is 134 x 134, which has some kind of actionscript so that when a member of my site uploads a photo to a directory (I.E /photos) the flash movie will take the pictures that are in that directory and randomly slide show them and resize them to fit in view.

Anyone know how I can do this??

Thank you

This.photo
when some code has this. in front of a mc name (for example, this.photo) what does that mean?

Xml Photo 2
Thanks God I found "XML Slideshow/PhotoGallery - Hyperlinking Each Image" Kirupa's modification.

Now I am trying to solve another problem. I want to open each time a blank window with a specific size and no toolbars. It would be nice if every picture is loading in one and only .html page.

I also found that script:

for index.html

<script language="JavaScript">
<!--
function spawnWindow(URL,Name,features) {
window.open(URL,Name,features);
}
//-->
</script>

for the .fla.

on (release) {
getURL("javascript:spawnWindow('theonlyone.html',' popup','toolbar=no,location=no,status=no,menubar=n o,scrollbars=yes,resizable=no,width=800,height=600 ')");
}

Thanks a lot!!!!

Photo's ?
I am searching for a script where flash can load in a xml file and show photo's lying on a table which you can throw around? I have seen some before but can't seem to find a ready to go solution as i need it rather quick

Photo Gallery
I am a photographer who is designing a new site for myself and I was wondering if anyone had some code (swish) that can help me create an online Photo Galleries?

I have tried looking around and have not found something as of yet.

Thank you in advance.

Jeff

Photo Manipulation?
Is there any way to work with photos after they've been brought into Flash? I'm wondering if some of the drawing functions can be used to manipulate them. Also, can I get photos to change scale like text?

Photo Album Help
just got back from a family vacation and my dad wants me to put all of our photos from our trip that we took. Since we used a digital camera i got em all on my comp, but i'd like to know how to do a few things. Is flash the best tool to use for this? I was thinking to have a few section for the differents places, Grand Canyon etc. in each section i'd like to create some thumbnails and you can enlarge the picture, how would i do this? Thanks alot.

Jason

Photo Quality
i am importing pictures from photoshop into flash and they look fine in the fla file and i break them apart and deselect allow smoothing but when i test the movie, the pictures in the swf file are fuzzy. is there a way to fix this?

Photo Gallery
Hey peeps... I need help figuring out exactly how buggedcom's photogallery thing works because i keep getting a bad url error when everything starts running.
His code is posted at: http://board.flashkit.com/board/show...hreadid=368190
please help me out. The error looks something like this...

Quote:




Error opening URL "file:///C|/thumbnails/AO_1.jpg?nocache="

Photo Scroller
Hi there I was wondering if there are any decent and easy to use photo scrollers out there ??? I have found a few but I dont go much on them. I dont mind if its horizontal or vertical & I would like to have buttons insted of mouse over action. Thanx for the help in the future

John

Copyright © 2005-08 www.BigResource.com, All rights reserved