I’m aware there are tutorials online that cover how to make game menus and preloaders for AS3 flash games, but I’ve found that books are more in-depth for certain topics. Are there books with sections that cover the process of making a preloader and menus for an AS3 flash game?
My ultimate goal is to implement a preloader AND game menus without referring to the timeline.
specific book titles would be much appreciated, thanks.
Preloaders are a pretty easy topic to cover.
Here’s what you need to know:
root.loaderInfo– TheLoaderInfoobject associated withrootbytesLoadedbytesTotalThe latter two being properties of
LoaderInfo.You’ll be able to use these two properties to work out a percentage that represents how much of the SWF has been loaded. Generally this would be handled in an
ENTER_FRAME, like this:You could work with
ProgressEvent.PROGRESSif you wanted to as well, I’ve just preferred usingENTER_FRAME.