action script2



our program www.marie.apioneerphoto.com working. add automatic dynamic slide show not sure how it.

in code have working function calls next image displayed - loadnextimage() (it automaticaly resets if comes last photo starts @ beginning)
before each photo has started needs click or user intervention. real pain when want view 500 or so.

my dream ...
i use key.down start show , key.up abort show.

my code ...


myobject=new object();
key.addlistener(myobject);
myobject.onkeydown=function<>{
if (key.isdown(key.down)){
loadnextimage();
// need setup time span , call next image - have loop continually
}
if (key.isdown(key.up)){
// need stop loop started key.down stop automatic play
}}

this sounds simple me, staring @ wall stopped in tracks - can please help?

i dont how can give example code problem came flash mx load image
here's sample or go www.macromedia.com/go/flashmx_sample find load image

//initialize variables , properties
square._alpha = 0;
whichpic = 1;
//initiate change new image when buttons clicked
next.onpress = function() {
if (whichpic<5 && !fadein && !fadeout) {
fadeout = true;
whichpic++;
input = whichpic;
}
};
back.onpress = function() {
if (whichpic>1 && !fadein && !fadeout) {
fadeout = true;
whichpic--;
input = whichpic;
}
};
_root.onenterframe = function() {
// when new photo selected, fade out, load new image, , fade in
if (square._alpha>10 && fadeout) {
square._alpha -= 10;
}
if (square._alpha<10) {
loadmovie("../images/image"+whichpic+".jpg", "square");
fadeout = false;
fadein = true;
}
if (square._alpha<100 && fadein && !fadeout) {
square._alpha += 10;
} else {
fadein = false;
}
// limit input field
if (input>5) {
input = 5;
}
// initiate change new image when enter key pressed
if (key.isdown(key.enter)) {
fadeout = true;
whichpic = input;
}
};
// if number entered in input field enter not pressed, change
// current photo number when clicking anywhere else
inputfield.onkillfocus = function() {
input = whichpic;
};

www.macromedia.com/go/flashmx_sample find load image

i hope you!! have nice day



More discussions in ActionScript 1 and 2


adobe

Comments

Popular posts from this blog

VIDIOC_S_FMT error 16, Device or resource busy - Raspberry Pi Forums

using a laptop skeleton to build a pi laptop - Raspberry Pi Forums

Forum for Joomla? - Joomla! Forum - community, help and support