Howd he do this? Resizing slideshow

any body her how knows!


I´w got this code and i wana put a “brightOffset” code here instead how do i do help!

http://www.mikaelnaslund.com/Forum/m1.fla


Stage.scaleMode = “noScale”;
Stage.align = “tl”;
mc._alpha = 0;
onLoad = function () {
mc._width = Stage.width;
mc._height = Stage.height;
};
this.onEnterFrame = function() {
change();
};
Stage.addListener(this);
_global.change = function() {
mc._width = Stage.width;
mc._height = Stage.height;

function fadeIn () {
if (mc._alpha < 100) {
mc._alpha += 1
//The higher the number the faster it fades
} else {
clearInterval (time)
}
}
time = setInterval (fadeIn, 50)

};


brightOffset();
}
};
}

MovieClip.prototype.brightOffset = function(){
this.c = new Color(this.containerMC)
this.o = {rb:200,gb:200,bb:200}
this.up = true
this.onEnterFrame = function(){
if(this.containerMC._alpha < 100){
this.containerMC._alpha += 10
}
if(this.up == false){
this.o.rb -= 10
this.o.bb -= 10
this.o.gb -= 10
} else {
if(this.o.rb < 255){
this.o.rb *= 1.5
this.o.bb *= 3
this.o.gb *= 1.5
} else {
this.o = {rb:255,gb:255,bb:255}
this.up = false;
}
}
if(this.o.rb < 0){
this.o = {rb:0,gb:0,bb:0}
delete this.onEnterFrame;
}
this.c.setTransform(this.o)

};
};

/M

Thanks a zillion million raised to power zillion million for initiating such a thing!
Love ya!

hi everyone…i have learned alot from the gallery tut. ITS AWESOME!!! im stuck in one place though and if someone could help me out id be entirely grateful.

I have some extra buttons in the gallery and i would like to load an swf file into the containerMC but not through the xml file. I dont seem to be able to get the right command so that i can load a external movie from within the gallery through the extra button i have… but all within the flash file itself and still keeping the resize functions and others as is…

ex. loadMovie(example.swf, containerMC) but this will not work…

i know im doin this all wrong… i am learning but need help… thank you

sorry if my english is not that clear…

So if anyone can help me figure this out, please let me know…

Try this if you want the code in your _root timeline:

yourButton.onRelease = function() {
_root.containerMC.loadMovie("yourfile.swf");
};

or this if you want it on the button itself:

on (release) {
_root.containerMC.loadMovie("yourfile.swf");
}

Hope I understood your question:)

yes thats right vman, i got it to load the swf file, but I would like to still have the resize function work for this. what happens here is the file is loaded into containerMC but the border or anything else will not be resized… is there a way to make this happen?

if not then its ok please do not worry… i am more than thankful already for having learned so much… =)

thanks again vman

It should work whether it’s a .jpg or .swf. Check out the attached file.

can you please post a file that a stadard version of flash can open???
i got flash MX but it aint opening?

thank you VMAN, it works GREAT. I was trying to get it to work while still having the xml file included, that must have been why it would not work.?!? I will try to make it work with xml file also…

thanks man, i really appreciate it…

Anytime :slight_smile: Glad you got it.

LOL, im stuck and my code seems to be so messy… like i said i am still learning but i think i need some BIG help… i think you know what i am tryin to do…

  1. i have 2 buttons that load swf into the containerMC but not with xml - this is ok now

  2. on the 3rd button i want to have the gallery including its buttons load with the xml file… but it does not seem to work. I assume that the code needs to be reformated ??? or?

  3. is there a code to apply so the user can download the pic or open it in new window …

so sorry if im bothering you vman

any help would be kindly appreciated…

Sorry my friend, but I don’t know a darn thing about XML.:frowning:

thats ok vman, thank you though… :beer:

Hello everyone…
Can anyone help me out??

Error opening include file lmc_tween.as: File not found.

where can i get the lmc_tween file to be able to run Jerryj’s version??

http://laco.wz.cz/tween/?page=download

Good luck,

Jerryj.

thanks man… i downloaded them a few hours ago but the speeds are super slow and once i download them the zip is corrupted! could u please send me the one u used or any other?

Here’s a zip file with the extension.

Let me know if it works,

Jerryj.

Hi all, I’m having some problems getting images loaded into a gallery using XML to be resized and centered on the stage. I’ve spent hours/days going through the forums and playing around with the code, but I just cant get it right. I would worship anyone who can help me.

What I want to do it set a max height and width for pics, then resize it. So if the max width is 300, it will resize it down so the width is 300 and then display it centered horizonally. Since I want to be able to set a max height, I just want it to be in a static y position (a little down from the top).

I really really appreciate your help, so if anyone can take a look at my flash and help I would be forever grateful. I’m new to flash/actionscripting so forgive me. THanks so much! Best, Nick

Fla File: http://www.benmillermusic.net/images/album1/photogallery.rar

great gallery, works a treat. However, i am having troubles making it so when you click the containerMC it hides the main Image. Can anyone help.

 
t1.onRelease = function() {
 currentPic ='products/pro/mainImage.jpg';
 cMC.loadPic(currentPic);
 
};
t2.onRelease = function() {
 currentPic ='products/pro/mainImage2.jpg';
 cMC.loadPic(currentPic);
 
};
t3.onRelease = function() {
 cMC.loadPic('products/pro/mainImage3.jpg');
};
t4.onRelease = function() { 
 cMC.loadPic('products/pro/mainImage4.jpg');
};
 
MovieClip.prototype.loadPic = function(pic) {
 
 this.loadMovie(pic);
 
//added code
 **this._parent.onRelease = function(){**
** this.unloadMovie(pic);**
**}**
 this._parent.onEnterFrame = function() {
  var t = cMC.getBytesTotal(), l = containerMC.getBytesLoaded();
  bar._visible = 1;
  per = Math.round((l/t)*100);
  if (t != 0 && Math.round(l/t) == 1 && containerMC._width != 0) {
   var w = cMC._width+spacing, h = containerMC._height+spacing;
   //border.resizeMe(w, h);
   bar._visible = 0;
   loadText.text = "";
   delete this._parent.onEnterFrame;
  } else {
   bar._width = per;
   // gives the bar a max width 100
   loadText.text = per+" % loaded";
  }
 };
};
stop();

thaks

I have a question for who ever might know (I believe Scotty - did you put together version 3 with thumbnails).

The question is a bit inconsequential to how things work, but I just have to know, what did the variable “tnNr” stand for when you typed it out?

Thanks.

thumbnailNumber?