summoning unfit...
- Started
- Last post
- 13 Responses
- versa
*i hope its cool*
i emailed you a question, but wasn't sure if you'd still be awake over there
just checking if you're around
thanks!
- unfittoprint0
post the question here:
______________________
______________________
______________________
______________________
______________________
______________________
- versa0
i thought this would be super easy...
but i asked for help before and now its eluded me for like two weeks
Essentially i just want to create a slideshow using dynamically imported jpgs that get called into two separate empty mcs -
one is on top of the other with a timer on it for 10 seconds - when the timer reaches 10 seconds and the lower one is finished loading underneath, the two swapdepths, showing the second mc on top - ( a burn fade or just alpha fade would be awesome )....note:
at first/load however an mc holding a jpg gets attached to the top image mc so that an image is displayed for the end user when they first open the site -i then would like to figure out how to capture the currentframe and hold it so that i could pause the slideshow, and then start it again when the user wishes.
do you have any ideas as to how i can do this...
attached is a rough of my current skeleton attempt...its messy in there so sorry - some stuff is commented out for personal reference...
- unfittoprint0
well, I'll not write the entire code, but the necessary stuff to accomplish it.
//an array to save jpg's location/number
images = new Array ("image1.jpg", "image2.jpg", etc...)//create 2 holders for the images
this.createEmptyMovieClip("image... 3);
this.createEmptyMovieClip("image... 4);//an alpha function
changeAlpha = function(targetA){
movieA=image1._alpha
movieA += (targetA-movieA)/2
image1._alpha=movieA
image2._alpha=100-image1._alpha;
}//the loop
fade = function(targetA){
clearInterval(alphaLoop)
alphaLoop = setInterval(this, "changeAlpha", 30, targetA);There's more code into it. You should use the follwoing: A count variable with only two values [1 or 2]. After loading image1 change count to 2, make an interval function with a 10 second delay to load the next image into the specific holder [image2 MC], use the fade [either fade(0) or fade(100) depending on the count variable], then change count again to 1. Increase the variable imageNumber to load the desired image from the array, increasing it like ++imageNumber until it == images.length-1. Then equal it to zero to start over.
- versa0
i wish you could see the email i sent - i gave you a txt file with my AS in it...
it's pretty close to this...but still not working right...
why an array, and not just call them in when i need them?
thanks!
- unfittoprint0
night is waiting... i'll logoff.
If u can't solve this by tomorrow, I'll have a look, Ok?
- versa0
of course, no problem...
if you could look at the attachment tomorrow that'd be so awesome..
i've tried so hard to get it to work in different ways and am pulling my hair out...
have fun ( if night waiting means going out ) !
- ********0
ha haa. I keep telling you guys, unfit is the Wizard of Flash. Click your heals three times and make a big fat wish for pretty things and he will appear. :)
- versa0
unfit -
i can't figure it out, but i'm super close i think....
any thoughts?
i am still trying without an array -
don't think i need it...
- unfittoprint0
I'll be on the motherfucker.
After dinner.
- versa0
man, i really appreciate it!
just need that push from someone with a bit more experience ya know?
thanks!
- unfittoprint0
I'm goin' out so I don't have to check the code [anyway, I woudn't do it that way].
Check the following steps [these work and with less code]. You can add 'eye candy' after...#0
images= new Array("pic1.jpg","pic2.jpg","pic...#1: Alpha Fade + interval
changeAlpha = function(targetA){
movieA=image1._alpha
movieA += (targetA-movieA)/2
image1._alpha=movieA
image2._alpha=100-image1.
_alpha;
}fade = function (targetalpha) {
clearInterval(alphaLoop);
alphaLoop = setInterval(this, "changeAlpha", 30, targetalpha);
};#2 loader + interval +
create a loader function(targetIMG) that checks wich holder to be used [using a count 1/2 variable), then checking wich image from the array will be loaded..
Then create an interval function to check if the targetHolder's getByteloaded=getBytesTotal and use a delay function like the one below... [don't forget to clear the interval when it's over]:delay = function () {
delayLoop = setInterval(function () { clearInterval(delayLoop);(count == 1) ? loadImage(image2) : loadImage(image1);}, 10000);
};create the the empty movieclips and the just start the whole thing by:
imageLoad("image1");
good luck... [and don't use onEnterFrames...]
- ********0
this is why unfit should be promoted at this site. Like in the new NT Redesign site, they should give out colors for certain people that have knowledge in certain fields, like Flash, Typography etc.
- ********0
for reals! unfit is genie