PDA

View Full Version : ActionScript


Socal
04-15-2002, 3:14 PM
I know of many good resources for ActionScript.... but wondering if anyone here is proficient with this code? (If you have to ask what AS is, sorry, you do not qualify ;) )

I've been learning it (ehh.. well, trying to :rolleyes: ) for the past few months and find it difficult to create new code. I have no real programming background. But, I do have books, use online tutes and lots of trial and error. Sometime it works - enough to keep me trying, but most of it is Greek geek to me.

I'd like to start up an AS exchange program here. I'd like to exchange my ignorance for your knowledge. :cool:

brandon
04-20-2002, 7:29 PM
I'm just starting in it as well... I have a little bit of experience with it from all of the Flash work I have done, but have never really understood why some love it so much.. I've never really considered it to be THAT robust... But then again, THAT is probably also ignorance. ;)

Brandon

Socal
05-15-2002, 4:12 PM
I figured I'd might as well post this here, too, who knows maybe I'll get lucky ;)

I'm having a problem with the MX Presentation (#3) template slide number indicator while using with a preloader.

Seems the totalFrames on the slide indicator takes into account all frames on the movie timeline, but I want the indicator to start by listing #1 on the first slide, and it doesn't do this. It starts by listing the frame number (#5) that the first slide is on.

Because of the preloader, the actual movie starts at frame 5.

What do I modify on the slide indicator script to get it to report my first slide as #1?

The script:

onClipEvent (load) {
function updateFrame (inc) {
// send slides to new frame
newFrame = _root._currentFrame + inc;
_root.gotoAndStop(newFrame);

// update status indicator
totFrame = "/ " + _root._totalFrames;
curFrame = _root._currentFrame;

if (_root._currentFrame == 1) {
prevBtn.gotoAndStop(2);
} else {
prevBtn.gotoAndStop(1);
}
if (_root._currentFrame == _root._totalFrames) {
nextBtn.gotoAndStop(2);
} else {
nextBtn.gotoAndStop(1);
}
}

updateFrame();
}

To see what I mean, here's the link to the file.
sample movie (http://socalgal.digitalmntsnow.com/slideflashban.html)


Note how the first slide is showing as #5 and not #1. The number indicator is on the bottom right of the movie.

Also, the slide indicator is showing total frames, not total of actual slides. I have only 3 slides but the total number is showing 7 which is the number of frames in the movie.

Another problem is when the movie is loaded, and the "previous" button is used, it goes back to the preloader and doesn't do anything.

What would be the correct script modification? Thanks SO much for the help!!

Socal
05-18-2002, 7:43 PM
nevermind, I ditched it for now. :p