flash actionscript:
hi all...ive got a presentation that loads multiple swfs into a main player. for instance... Main.swf --Loading via loadMovie-- a.swf b.swf c.swf All of the sub sections have 5 frames a piece. I have a set of standard vcr controls (back, stop, play, and next). Im having trouble with the back button, is their a way that i can identify the last frame (without using frame labels) of the previous swf so that prevFrame() will navigate from part c.swf to frame 5 in b.swf? any suggestions would be great.
Im having troubles playing the next Movie Clip in line... so far obj returns the current movie clip...now my question would be could someone help me increment obj? ie advancing from MC_1 to MC_2. _global.currClip; if (_global.currSwf == 1) { <------ currSwf is the current swf the main player has loaded _global.currClip = "part1"; <------ part1 is a movie clip that the swf is being loaded in the main timeline } else if (_global.currSwf == 2) { _global.currClip = "part2"; } else if (_global.currSwf == 3) { _global.currClip = "part3"; } else if (_global.currSwf == 4) { _global.currClip = "part4"; } else if (_global.currSwf == 5) { _global.currClip = "part5"; } else if (_global.currSwf == 6) { _global.currClip = "part6"; } //next/previous clip function function nextClip() { for (each in _root[currClip]) { var obj = _root[currClip][each]; if (obj instanceof MovieClip) { var strName = obj._name; if (strName.substring(0, 3) == "MC_") { obj. <----------------- This is where im having the toubles! } } } } function prevClip() { for (each in _root[currClip]) { var obj = _root[currClip][each]; if (obj instanceof MovieClip) { var strName = obj._name; if (strName.substring(0, 3) == "MC_") { obj. <----------------- Yet another spot :-/ } } } }
Don't see what you're looking for? Try a search.
|