PDA

View Full Version : question for STRINGY sliding gallery pt 2


bunsco
12-05-2006, 10:16 AM
see if this something like you want
var buttonNames_array=[]
for(var j=1;j<4;j++){
buttonNames_array.push(this["but"+j])
}

trace(buttonNames_array)
var currentlySelectedButtonID:Number;
clearAllButtons = function () {
for (var i = 0; i<buttonNames_array.length; i++) {
if (i != currentlySelectedButtonID) {
buttonNames_array[i].gotoAndStop("deSelected");
buttonNames_array[i].enabled = true
}
}
};
buttonRollOver = function () {
clearAllButtons();
if (currentlySelectedButtonID != this.id) {
this.gotoAndStop("rollOver");
}
};
buttonRollOut = function () {
clearAllButtons();
};
buttonOnRelease = function () {
currentlySelectedButtonID = this.id;
clearAllButtons();
this.gotoAndStop("selected");
_root.trig.xposnew = -((_root.imagewidth)*(this.id+1));
this.enabled = false

};
for (var i = 0; i<buttonNames_array.length; i++) {
buttonNames_array[i].id = i;
buttonNames_array[i].onRollOver = buttonRollOver;
buttonNames_array[i].onRollOut = buttonRollOut;
buttonNames_array[i].onRelease = buttonOnRelease;
}
// _root.imagewidth defines the width of the image//
_root.imagewidth = 385;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;

Hi stringy, I hope your around to see this.

Im so sorry to do this, but im having trouble expanding on the sliding gallery.

I am aiming to load 1 or 2 extra galleries using the shell you were so kind to help me with.

What i have done is to create another frame where i would use the same code but to point to another folder of images (code in nested MC imagescroller/scroller):

loadMovie("sultan/0.jpg","clip1");
loadMovie("sultan/1.jpg","clip2");
loadMovie("sultan/2.jpg","clip3");
to
loadMovie("poland/0.jpg","clip1");
loadMovie("poland/1.jpg","clip2");
loadMovie("poland/2.jpg","clip3");

What i have done is to literally duplicate the 1st frame into the second and have a button/s navagate to the second and/or third frames.

Now i thought that it should work due to the fact that the only changes made were the reference points to the images.

But all i get is a blank screen when leaving the first frame.

I have even tried duplicating all the relevant MC's and updating the code to read lets say:
scroller and scroller2 etc

Does it require some kind of resetting of information to accept new referencing to images?

I cant see why it should'nt work

WHAT AM I DOING WRONG!!!

Dazzer
12-05-2006, 01:29 PM
your method seems to be an inelegant way of doing things. You should never have to do such things on a timeline.

I do not see where in your code you load your clips, but consider this


function loadGallery(folder:String):void
{
for (var i:Number = 0; i< 3; i++)
{
loadMovie("/" + folder + "/" + i + ".jpg", this["clip" + i])
}
}


then for each button you just have a separate code


loadGallery ("sultan")

or

loadGallery ("poland")



may be errors in there. But that's the overall idea

By the way, i think you need the "/" in front of your path to signify that it is a folder? not sure.

Hope this helps

stringy
12-05-2006, 01:35 PM
Hi stringy, I hope your around to see this.

Im so sorry to do this, but im having trouble expanding on the sliding gallery.

I am aiming to load 1 or 2 extra galleries using the shell you were so kind to help me with.

What i have done is to create another frame where i would use the same code but to point to another folder of images (code in nested MC imagescroller/scroller):

loadMovie("sultan/0.jpg","clip1");
loadMovie("sultan/1.jpg","clip2");
loadMovie("sultan/2.jpg","clip3");
to
loadMovie("poland/0.jpg","clip1");
loadMovie("poland/1.jpg","clip2");
loadMovie("poland/2.jpg","clip3");

What i have done is to literally duplicate the 1st frame into the second and have a button/s navagate to the second and/or third frames.

Now i thought that it should work due to the fact that the only changes made were the reference points to the images.

But all i get is a blank screen when leaving the first frame.

I have even tried duplicating all the relevant MC's and updating the code to read lets say:
scroller and scroller2 etc

Does it require some kind of resetting of information to accept new referencing to images?

I cant see why it should'nt work

WHAT AM I DOING WRONG!!!

I think "question for Stringy" might limit the number of replies you recieve

see if this helps

I think you might run into problems when you expand each of the galleries because the flash player does not like to load lots of movies all together

bunsco
12-05-2006, 04:29 PM
I think "question for Stringy" might limit the number of replies you recieve

see if this helps

I think you might run into problems when you expand each of the galleries because the flash player does not like to load lots of movies all together

yep, that seems to do it.

Thanks tons for that Stringy, many thanx for the time you've given to me.

One more thing if its possible - i may want to include a txt box with descriptions of each pic.

Going through the general structure of your code, i guess i'll have to use some 'similar' principles in going through the list of accompanying external txt files (mytext=<font> etc) to load into a 'html' rendered dynamic text box (mytext).

would i have to do something along the lines of:

buttonOnRelease = function () {
loadVariablesNum ("images/"*"(this.id+1).txt",0);
}

am i right with this or is there more to it than that.

stringy
12-05-2006, 06:09 PM
yep, that seems to do it.

Thanks tons for that Stringy, many thanx for the time you've given to me.

One more thing if its possible - i may want to include a txt box with descriptions of each pic.

Going through the general structure of your code, i guess i'll have to use some 'similar' principles in going through the list of accompanying external txt files (mytext=<font> etc) to load into a 'html' rendered dynamic text box (mytext).

would i have to do something along the lines of:

buttonOnRelease = function () {
loadVariablesNum ("images/"*"(this.id+1).txt",0);
}

am i right with this or is there more to it than that.
if your textfiles are file1.txt,file2.txt you would use
loadVariablesNum ("images/file"+Number(this.id+1)+".txt",0);

You could use xml and also include the names of the images you are loading

bunsco
12-17-2006, 11:30 AM
Hi Stringy

As you eluded to previously with this gallery - with so many largish images, there is delay in the availablility when calling latter images immediatly (i.e: if instantly calling pic 7 when the swf loads in the browser)

so far if i was to press lets say pic5 and above immediatly, no image is available - that is until around 15 seconds or so have passed;then all pics regardless of which one is called is available and the slider works as expected.

How and where can i place some kind of preloader, so's to give the viewer some feedback on the situation.

As you can see, im stumped once again - many apologies.

i have uploaded you the fla you provided for me if that would help.

stringy
12-17-2006, 02:00 PM
Hi Stringy

As you eluded to previously with this gallery - with so many largish images, there is delay in the availablility when calling latter images immediatly (i.e: if instantly calling pic 7 when the swf loads in the browser)

so far if i was to press lets say pic5 and above immediatly, no image is available - that is until around 15 seconds or so have passed;then all pics regardless of which one is called is available and the slider works as expected.

How and where can i place some kind of preloader, so's to give the viewer some feedback on the situation.

As you can see, im stumped once again - many apologies.

i have uploaded you the fla you provided for me if that would help.

see if this is of any use to you

bunsco
12-17-2006, 02:44 PM
if your textfiles are file1.txt,file2.txt you would use
loadVariablesNum ("images/file"+Number(this.id+1)+".txt",0);

You could use xml and also include the names of the images you are loading

see if this is of any use to you

thanx once again for the help Stringy.

one question though - why have you made visible/invisible states for the gallery buttons?

in my gallery, id need the gallery buttons to always be available so the user can choose which gallery to view.

I have upload my gallery, containing only one image from per gallery ( heavily compressed so as to upload)

so if you can imaging 10 such images per gallery (at higher res).

stringy
12-17-2006, 02:56 PM
thanx once again for the help Stringy.

one question though - why have you made visible/invisible states for the gallery buttons?

in my gallery, id need the gallery buttons to always be available so the user can choose which gallery to view.

I have upload my gallery, containing only one image from per gallery ( heavily compressed so as to upload)

so if you can imaging 10 such images per gallery (at higher res).

All i did was to make the buttons invisible until the movies corresponding to that button have been loaded - you can remove that bit if you want

bunsco
12-17-2006, 04:07 PM
if your textfiles are file1.txt,file2.txt you would use
loadVariablesNum ("images/file"+Number(this.id+1)+".txt",0);

You could use xml and also include the names of the images you are loading

All i did was to make the buttons invisible until the movies corresponding to that button have been loaded - you can remove that bit if you want

it doesnt seem to work when i apply it to my movie.

i got rid of:

g1._visible = false;
g2._visible = false;
so's to make the buttons visible.

and updated
myarray = [["image1", "image2", "image3"], ["image1a", "image2a", "image3a"]];
to
myarray = [["image1","image2","image3","image4","image5","image6","image7","image8","image9","image10"],["image1a","image2a","image3a","image4a","image5a","image6a","image7a","image8a","image9a","image10a"]];


im not sure what 'holder' does in particular.

is it possible to apply what you did to my gallery fla i uploaded and if possible explain what i may have overlooked.

thanx again.

stringy
12-17-2006, 05:27 PM
it doesnt seem to work when i apply it to my movie.

i got rid of:

g1._visible = false;
g2._visible = false;
so's to make the buttons visible.

and updated
myarray = [["image1", "image2", "image3"], ["image1a", "image2a", "image3a"]];
to
myarray = [["image1","image2","image3","image4","image5","image6","image7","image8","image9","image10"],["image1a","image2a","image3a","image4a","image5a","image6a","image7a","image8a","image9a","image10a"]];


im not sure what 'holder' does in particular.

is it possible to apply what you did to my gallery fla i uploaded and if possible explain what i may have overlooked.

thanx again.

i was just loading all movies so they are cached and will load instantly. Try this, i don`t have images to test properly but seems to give out the right traces

bunsco
12-17-2006, 08:19 PM
if your textfiles are file1.txt,file2.txt you would use
loadVariablesNum ("images/file"+Number(this.id+1)+".txt",0);

You could use xml and also include the names of the images you are loading

i was just loading all movies so they are cached and will load instantly. Try this, i don`t have images to test properly but seems to give out the right traces

my beef stringy one.

works like a charm, thanx for getting back so quickly/

im just amazed at how you alter the code so quickly, just how does one become soooo fluent in the ways of AS!

out of interest, how long have you been doing this - and how long did the penny drop with you as in being a Don of AS.

stringy
12-18-2006, 02:34 AM
my beef stringy one.

works like a charm, thanx for getting back so quickly/

im just amazed at how you alter the code so quickly, just how does one become soooo fluent in the ways of AS!

out of interest, how long have you been doing this - and how long did the penny drop with you as in being a Don of AS.

No problem
Been using flash since mx but never really learnt AS2 so struggling a lttle with AS3 at the moment

bunsco
12-20-2006, 09:21 AM
No problem
Been using flash since mx but never really learnt AS2 so struggling a lttle with AS3 at the moment

At risk of sounding like a copper with all these questions, whats you background.

i mean, if you've been doing AS since MX, i get the impression its a case of applied knowledge from some other decepline.

or is it just a case of locking yourself in a dungeon till you were ready to unleased yourself to the world.

stringy
12-20-2006, 02:05 PM
At risk of sounding like a copper with all these questions, whats you background.

i mean, if you've been doing AS since MX, i get the impression its a case of applied knowledge from some other decepline.

or is it just a case of locking yourself in a dungeon till you were ready to unleased yourself to the world.

No i work in construction but do a little freelance flash now.
No i actually learned mainly from forums

bunsco
12-26-2006, 09:46 PM
i was just loading all movies so they are cached and will load instantly. Try this, i don`t have images to test properly but seems to give out the right traces

Stringy, in all my obsession in getting the gallery to work, ive forgotten one of the primary functions in the gallery...

a text field with a little description of each photo.

i have tried to disect the structure of your code to try to intergrate a simple interation of the textfield, but im having trouble constructing it.

I must admit that im at a loss as to where i would implement it.

this is what ive tried so far:

on the main AS layer ive put -

tmp = new LoadVars();
tmp.load("photos/"+myarray[j]+".txt");
tmp.onLoad = function() {
createTextField("display",1,30,30,150,150);
display.multiline = true;
display.wordWrap = true;
display.html = true;
display.border = false;
display.borderColor=0xefefe;
display.background = false;
display.backgroundColor = 0xeeeeee;

_root.display.htmlText = _root.tmp.mainText;
}

i know im probably a million miles away from achieving it, and that i probably dont have to create a text object, but i was getting desperate.

The main problem im having is identifying how/where in the code i access the correct item in the array and append how to append .txt to it so as to get the text box to show the appropriate text i have in external txt files in the same directory as the image files.

The names of the files are exactly the same with only the file extensions being different (eg: image1.jpg/image1.txt etc)

can you provide an example of how i can achieve an info textfield within the code you have done for me, in the manner i am trying to achieve it and if possible add comments to the elements of the whole code structure so i can understand how all the elements relate to each other.

i know you have given me sooooo much help with this - im just so fustrated with the speed of my learning and my present abilities to do anything

AARRRGGHGHHHH!!!!!

stringy
12-27-2006, 05:46 AM
Stringy, in all my obsession in getting the gallery to work, ive forgotten one of the primary functions in the gallery...

a text field with a little description of each photo.

i have tried to disect the structure of your code to try to intergrate a simple interation of the textfield, but im having trouble constructing it.

I must admit that im at a loss as to where i would implement it.

this is what ive tried so far:

on the main AS layer ive put -

tmp = new LoadVars();
tmp.load("photos/"+myarray[j]+".txt");
tmp.onLoad = function() {
createTextField("display",1,30,30,150,150);
display.multiline = true;
display.wordWrap = true;
display.html = true;
display.border = false;
display.borderColor=0xefefe;
display.background = false;
display.backgroundColor = 0xeeeeee;

_root.display.htmlText = _root.tmp.mainText;
}

i know im probably a million miles away from achieving it, and that i probably dont have to create a text object, but i was getting desperate.

The main problem im having is identifying how/where in the code i access the correct item in the array and append how to append .txt to it so as to get the text box to show the appropriate text i have in external txt files in the same directory as the image files.

The names of the files are exactly the same with only the file extensions being different (eg: image1.jpg/image1.txt etc)

can you provide an example of how i can achieve an info textfield within the code you have done for me, in the manner i am trying to achieve it and if possible add comments to the elements of the whole code structure so i can understand how all the elements relate to each other.

i know you have given me sooooo much help with this - im just so fustrated with the speed of my learning and my present abilities to do anything

AARRRGGHGHHHH!!!!!

txt files stored in photos names mytext0,mytext1 etc
on each textfile
&var1=one1&var2=two1&var3=three1......etc
main timeline
textarray = [];
function lvfunction(a) {
var tmp = new LoadVars();
tmp.load("photos/mytext"+a+".txt");
tmp.onLoad = function() {
textarray = [];
for (var i=0;i<10;i++) {
textarray[i]=this["var"+Number(i+1)]
}
trace("loaded");
};
}

in the onRelease of each of the gallery selection btns-after current is changed
lvfunction(current)
in the buttonOnRelease function for individual pics
trace(textarray[this.id])
//you can assign your textfield here


To be honest the code is a mess, scattered over different timelines etc.
Have a look in the best of kirupa (sticky at the top) at some of scottys galleries which use xml. If you want i can stick your transition on to one of these in place of the resizing effect-you will just have to change btns etc

bunsco
12-28-2006, 12:55 PM
txt files stored in photos names mytext0,mytext1 etc
on each textfile
&var1=one1&var2=two1&var3=three1......etcmain timeline
ActionScript Code:
textarray = [];
function lvfunction(a) {
&nbsp;&nbsp;&nbsp;&nbsp;var tmp = new LoadVars();
&nbsp;&nbsp;&nbsp;&nbsp;tmp.load("photos/mytext"+a+".txt");
&nbsp;&nbsp;&nbsp;&nbsp;tmp.onLoad = function() {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textarray = [];
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;for (var i=0;i<10;i++) {
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;textarray=this["var"+Number(i+1)]
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;}
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;trace("loaded");
&nbsp;&nbsp;&nbsp;&nbsp;};
}





in the onRelease of each of the gallery selection btns-after current is changed
ActionScript Code:
lvfunction(current)




in the buttonOnRelease function for individual pics
ActionScript Code:
trace(textarray[this.id])
[I]//you can assign your textfield here






To be honest the code is a mess, scattered over different timelines etc.
Have a look in the best of kirupa (sticky at the top) at some of scottys galleries which use xml. If you want i can stick your transition on to one of these in place of the resizing effect-you will just have to change btns etc


thank you, stringy - id be most greatfull, and fearfull in equal measure.

i've had a look around that thread and all i can say is wow!!!

one problem i see though is how would i place the buttons in the way i have them in my fla. In fact, how would i lay it out in the same way - is that possible?

as i see it after downloading a couple of zips, everything seems to my untrained eye to be dynamically placed.

just how would i lay it out in the same way - this is important as it is to go into a DIV in my CSS based site.

I have a sorry example the structure of which it is to go in:
http://www.case236.co.uk/u_photo.html
obviously still in progress - as most things are.

As you can see, its not the most elegent of execution of a sliding gallery - mainly due to the 'on the fly' nature of its construction - this is the reason i thought it best to try and see it through to the end, even though there are far more elegent and simple ways to construct galleries.

your textfield advice (with a couple of changes) is working OFFLINE but NOT ONLINE at the moment - i've got it to work locally when doing preview, but my live versions not working!

i have placed a dynamic textfield on top named 'mainText' and the external txt files are named 0.txt and 1.txt

the variable in those files are &mainText1=<font color='#000000'>Sultan or Poland<br>1111111111eu<br>sollicitudin</font>&mainText2=<font color='#000000'>Sultan or Poland<br>1111111111eu<br>sollicitudin</font>etc

and to top it off the html is not parsing so the text comes out as above.


heres the construct of the code so far (changes made only on maintime line):

main timeline:
var myarray:Array = new Array()
var buttonNames_array=[]
var cid
for(var j=1;j<11;j++){
buttonNames_array.push(this["but"+j])
}
myarray = [["image1","image2","image3","image4","image5","image6","image7","image8","image9","image10"],["image1a","image2a","image3a","image4a","image5a","image6a","image7a","image8a","image9a","image10a"],[]]

textarray = [];
function lvfunction(a) {
var tmp = new LoadVars();
tmp.load("photos/"+a+".txt");
tmp.onLoad = function() {
textarray = [];
for (var i=0;i<11;i++) {
textarray[i]=this["mainText"+Number(i+1)]
}
trace("loaded");
};
}

_root.instruct._x=12;

mainscroller.scroller.f()
var currentlySelectedButtonID:Number;
clearAllButtons = function () {
for (var i = 0; i<buttonNames_array.length; i++) {
if (i != currentlySelectedButtonID) {
buttonNames_array[i].gotoAndStop("deSelected");
buttonNames_array[i].enabled = true
}
}
};
buttonRollOver = function () {
clearAllButtons();
if (currentlySelectedButtonID != this.id) {
this.gotoAndStop("rollOver");
}
};
buttonRollOut = function () {
clearAllButtons();
};
g1.onRelease =function(){
current = 0
_root.clearAllButtons();
_root.mainscroller.scroller._x =-imagewidth*cid
mainscroller.scroller.f()
_root.instruct._x=-300;
_root.hilite._y=319;
lvfunction(current)
}
g2.onRelease =function(){
current = 1
_root.clearAllButtons();
_root.mainscroller.scroller._x =-imagewidth*cid
mainscroller.scroller.f()
_root.instruct._x=-300;
_root.hilite._y=335;
lvfunction(current)
}


buttonOnRelease = function () {
cid = this.id
mainscroller.scroller.f1()
currentlySelectedButtonID = this.id;
clearAllButtons();
this.gotoAndStop("selected");
_root.trig.xposnew = -((_root.imagewidth)*(this.id+1));
trace (myarray[current][this.id])
mainText = (textarray[this.id])
mainText.scroll=0;
this.enabled = false


};

for (var i = 0; i<buttonNames_array.length; i++) {
buttonNames_array[i].id = i;
buttonNames_array[i].onRollOver = buttonRollOver;
buttonNames_array[i].onRollOut = buttonRollOut;
buttonNames_array[i].onRelease = buttonOnRelease;
}
// _root.imagewidth defines the width of the image//
_root.imagewidth = 385;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;

stop();

any reason that shouldnt work?

After seeing the resized stuff in the link you provided, i dont see a reason why that cant be implemented in my site (though,seeing what its taken to get this far, i should be greatfull to have something ROUGHLY assesembling a sliding gallery)

Many thanx stringy, you have been amazingly patient and kind to help me with my predicament, i have been increasingly fearfull of asking your assisantance through the duration of this sticky problem of mine.

all the very very best for the comming year to you sir.

stringy
12-28-2006, 01:47 PM
thank you, stringy - id be most greatfull, and fearfull in equal measure.

i've had a look around that thread and all i can say is wow!!!

one problem i see though is how would i place the buttons in the way i have them in my fla. In fact, how would i lay it out in the same way - is that possible?

as i see it after downloading a couple of zips, everything seems to my untrained eye to be dynamically placed.

just how would i lay it out in the same way - this is important as it is to go into a DIV in my CSS based site.

I have a sorry example the structure of which it is to go in:
http://www.case236.co.uk/u_photo.html
obviously still in progress - as most things are.

As you can see, its not the most elegent of execution of a sliding gallery - mainly due to the 'on the fly' nature of its construction - this is the reason i thought it best to try and see it through to the end, even though there are far more elegent and simple ways to construct galleries.

your textfield advice (with a couple of changes) is working OFFLINE but NOT ONLINE at the moment - i've got it to work locally when doing preview, but my live versions not working!

i have placed a dynamic textfield on top named 'mainText' and the external txt files are named 0.txt and 1.txt

the variable in those files are &mainText1=<font color='#000000'>Sultan or Poland<br>1111111111eu<br>sollicitudin</font>&mainText2=<font color='#000000'>Sultan or Poland<br>1111111111eu<br>sollicitudin</font>etc

and to top it off the html is not parsing so the text comes out as above.


heres the construct of the code so far (changes made only on maintime line):

main timeline:
var myarray:Array = new Array()
var buttonNames_array=[]
var cid
for(var j=1;j<11;j++){
buttonNames_array.push(this["but"+j])
}
myarray = [["image1","image2","image3","image4","image5","image6","image7","image8","image9","image10"],["image1a","image2a","image3a","image4a","image5a","image6a","image7a","image8a","image9a","image10a"],[]]

textarray = [];
function lvfunction(a) {
var tmp = new LoadVars();
tmp.load("photos/"+a+".txt");
tmp.onLoad = function() {
textarray = [];
for (var i=0;i<11;i++) {
textarray[i]=this["mainText"+Number(i+1)]
}
trace("loaded");
};
}

_root.instruct._x=12;

mainscroller.scroller.f()
var currentlySelectedButtonID:Number;
clearAllButtons = function () {
for (var i = 0; i<buttonNames_array.length; i++) {
if (i != currentlySelectedButtonID) {
buttonNames_array[i].gotoAndStop("deSelected");
buttonNames_array[i].enabled = true
}
}
};
buttonRollOver = function () {
clearAllButtons();
if (currentlySelectedButtonID != this.id) {
this.gotoAndStop("rollOver");
}
};
buttonRollOut = function () {
clearAllButtons();
};
g1.onRelease =function(){
current = 0
_root.clearAllButtons();
_root.mainscroller.scroller._x =-imagewidth*cid
mainscroller.scroller.f()
_root.instruct._x=-300;
_root.hilite._y=319;
lvfunction(current)
}
g2.onRelease =function(){
current = 1
_root.clearAllButtons();
_root.mainscroller.scroller._x =-imagewidth*cid
mainscroller.scroller.f()
_root.instruct._x=-300;
_root.hilite._y=335;
lvfunction(current)
}


buttonOnRelease = function () {
cid = this.id
mainscroller.scroller.f1()
currentlySelectedButtonID = this.id;
clearAllButtons();
this.gotoAndStop("selected");
_root.trig.xposnew = -((_root.imagewidth)*(this.id+1));
trace (myarray[current][this.id])
mainText = (textarray[this.id])
mainText.scroll=0;
this.enabled = false


};

for (var i = 0; i<buttonNames_array.length; i++) {
buttonNames_array[i].id = i;
buttonNames_array[i].onRollOver = buttonRollOver;
buttonNames_array[i].onRollOut = buttonRollOut;
buttonNames_array[i].onRelease = buttonOnRelease;
}
// _root.imagewidth defines the width of the image//
_root.imagewidth = 385;
// _root.speed defines the speed of the sliding images//
_root.speed = 3;

stop();

any reason that shouldnt work?

After seeing the resized stuff in the link you provided, i dont see a reason why that cant be implemented in my site (though,seeing what its taken to get this far, i should be greatfull to have something ROUGHLY assesembling a sliding gallery)

Many thanx stringy, you have been amazingly patient and kind to help me with my predicament, i have been increasingly fearfull of asking your assisantance through the duration of this sticky problem of mine.

all the very very best for the comming year to you sir.

i think it is quite easy to stick your transition in with the code scotty provided - i will do it tomorrow -I am drunk at the moment and drinking.
Are all your jpgs the same size as you provided earlier?

bunsco
12-28-2006, 06:51 PM
they are at the moment (385x275).

but if doing the resize transition, would size matter? (excuse the pun)/

Also if doing the resize, i would be able to include portrait pictures, instead of either cropping them or ommitting them altogether.

But I guess just applying my transition into the scotty code would be far less hassle, plus i quite like the simplicity of the look of the slidding gallery i have at the moment.

Anyways - enjoy your drinks and be merry

stringy
12-29-2006, 05:58 AM
they are at the moment (385x275).

but if doing the resize transition, would size matter? (excuse the pun)/

Also if doing the resize, i would be able to include portrait pictures, instead of either cropping them or ommitting them altogether.

But I guess just applying my transition into the scotty code would be far less hassle, plus i quite like the simplicity of the look of the slidding gallery i have at the moment.

Anyways - enjoy your drinks and be merry
I`ve adjusted this file of scottys for your stuff-if you download you can test with his pics/xml.
To adjust positioning just move the frame on the stage
multiple_resize.zip (http://www.gertdesign.info/kirupa/multiple_resize.zip)