PDA

View Full Version : need help with action script code



steinberginc
October 9th, 2003, 11:34 AM
on (release) {
_root.switchSection("kamera1");
}


this is what i use for a button in my flash compotistion. It basicly tells the movie to load different .swf file in. But thats just FYI.

Now i need to design a MC where I want to place this AS on the last keyframe. Just as if I would place a GOTO action on the last frame that will lead me to a different stage. How can I rewrite this script so it will do the same effect. Work.

Thanks,
Dave

m_andrews808
October 9th, 2003, 11:41 AM
just put:

_root.switchSection("kamera1");

in the last frame of your mc and it should do the job ;)

jeremy*
October 9th, 2003, 11:44 AM
*edit///
not fast enough.

:)

steinberginc
October 9th, 2003, 11:53 AM
thanks guys. you rock. Very cool that it was so easy. heheh