Flasher Archive

[Previous] [Next] - [Index] [Thread Index] - [Previous in Thread] [Next in Thread]


Subject: Re: [flasher] else grayed out/not available
From: DRMRLPLS
Date: Tue, 30 Jan 2001 03:21:40 -0000

David,
The typical preloader is a 3 frame process: A Boolean ifFrameLoaded check in
the first frame with a jump to Frame 3 and a loop back in the second Frame.
The ifFrameLoaded is not treated as a traditional 'if' in actionscript, so
there is no 'else' of 'elseif' available. It sounds like you've done it the
right way.

Welcome to the enigmatic world of Flash.

Andrew

In a message dated 1/29/01 9:26:33 PM Eastern Standard Time, Clock86ataol [dot] com
writes:

<< I am new to action scripting.
I tried to make a simple loading script with Actions in the normal (non
expert) mode.
The "else" command was grayed out.

this is what I wanted:
If frame 255 in the scene "end segment" is loaded then go to frame 1 in
scene "opening".
Else
go to frame 1 in scene "loader"
end

This is what Flash allowed me to do (this was placed in the second to last
frame in the "loader" scene):
ifFrameLoaded ("end segment", 255) {
gotoAndPlay ("opening", 1);
}

Since the "else" command was not available to me, I put another action
script
in the last frame of the "loader" scene that just said to go to frame 1 of
the "loader"

thanks
david
>>



[Previous] [Next] - [Index] [Thread Index] - [Next in Thread] [Previous in Thread]