Groups | Blog | Home
all groups > flash actionscript > february 2006 >

flash actionscript : Actionscript Help


Vampire66
2/13/2006 10:04:04 PM
Help....Unable to direct code to next scene. I downloaded an animiation file
for a text introduction scene. I'm unable to get to scene two. I've tried
everything. I believe that it is in the code somewhere. Please note code
before in 4 frames.

Frame 1: text = "VISONS FLORAL DESIGNS BY ANTHONY BROWN";
i = 1;
max = length(text);
kerning = "15";
size = "25";
setProperty("char", _visible, "0");

Frame 3: duplicateMovieClip("char", "char" add i, i);
set("/char" add i add "/letter:char", substring(text, i, 1));
setProperty("/char" add i, _x, 100+Number(i*kerning));
setProperty("/char" add i, _xscale, 10*size);
setProperty("/char" add i, _yscale, 10*size);
i = Number(i)+1;

Frame 4: if (Number(i)>Number(max)) {
stop();
} else {
gotoAndPlay(3);
}
:confused;
blemmo
2/13/2006 10:35:02 PM
I guess it's in Frame 4: loop the animation (goto Frame 3) or stop. I think you
don't want to stop, but to go to the next scene, so replace the stop() with
gotoAndPlay("nextscene", 1).

hth,
blemmo
Vampire66
2/13/2006 11:13:19 PM
Thank you for responding to my scene problem. I tried replacing the stop ()
code with nextscene. Unfortunately it keeps replaying the animiation in the
current scene and still does not move to scene 2.
.:}x-=V!P=-x{:.
2/13/2006 11:42:09 PM
thats because you need to replace "nextscene" with your next scene name like:
AddThis Social Bookmark Button