ActiveDen

Book v2

How to create a table of contents?

In the swf file, you can create buttons. It is not difficult. In the file “pages/10_11.fla” example you use the button.

Example:
button_redirect1.onPress = function () (
model.setPage (2)
)
button_redirect2.onPress = function () (
model.setPage (3)
)

The variable “model” is always present in any swf file.

I just need to know if this can be completely controlled by using XML ?

Yes, of course. You do not need to install Flash, you need not be a Flash Development. You can add and delete pages with just an XML file.

I can’t figure out how to get a swf page to play only when it is open

It’s easy. The file “pages/10_11.swf” have placed sound.

First, create a Sound object:
sound = new Sound (this)
sound.attachSound ("sound_in_swf")
sound_in_swf == > this id must have a sound file in library

And enable it here:
function onStartAnimationSheet (model_) (
sound.stop ()
sound.start (0.1000)
sound.setVolume (100)
)

And disable it here:
function onStopAnimationSheet (model_) (
sound.stop ()
)

functions onStartAnimationSheet and onStopAnimationSheet starting automatically.

How the height of the bar (tools) changeable ?

class templateBook.mvctemplate.BookModel.as
function BookModel
and this code:

if(Configuration.TOOLS_VISIBLE == "true") {
toolsHeight = 50 //your height
}else{
toolsHeight = 0
}

Can you tell me where I need to edit to remove some of the tool icons?

File “book.fla” and in the Library (Ctrl + L):
Book / ToolsView / ToolsView

How can I remove the reflections on the tool icons?

class templateBook.mvctemplate.AbstractTools.as
and
function createMaskReflection()


Delete the contents of the function createMaskReflection
(function must be empty)

My swf file is not working properly
(after loading not work the animation and the action script code)

You need to set the attribute smoothing=”false”
(example in “xml / book.xml)

When I have a lot of pages Book is slow. Why?

Book 2.7 has two methods of loading pages

Method one
< LOAD _ALL_PAGES >true< / LOAD _ALL_PAGES >
(Set this attribute in the file “xml / configuration_book.xml” )
If your Book has few pages and pages are of small size.
Then all the pages load to your computer’s memory.
Method two
< LOAD _ALL_PAGES >false< / LOAD _ALL_PAGES >
(Set this attribute in the file “xml / configuration_book.xml” )
If you have a lot of pages and pages have large dimensions.
Then, not all pages will be loaded into computer memory.
(A few pages forward and back)
Pages that are not visible are removed from memory.
You can set in this method the amount of pages to be loaded
< MAX _DIFFERENCE_LOADED_SHEET >4< / MAX _DIFFERENCE_LOADED_SHEET > (set this attribute in the file “xml / configuration_book.xml” )

by
by
by
by
by