Sunteți pe pagina 1din 50

Introduo Premium Page Flip is a component for Macromedia Flash MX, Flash MX 2004 and Flash 8, enabling Page

Flip Premium um componente para Macromedia Flash MX, Flash MX 2004 e Flash 8, permitindo the creation of online/offline catalogues with real flipping effect. a criao de catlogos online / offline, com efeitos a inverso real. Using this Flash component, which is Usando este componente Flash, que approved by the Macromedia team, you can easily create, modify and integrate catalogues with your aprovado pela equipe Macromedia, voc pode facilmente criar, modificar e integrar os catlogos com o seu Flash projects in no time at all. Projetos do Flash em nenhum momento a todos. Pages may also be represented by such external resources as interactive movies, images and library As pginas podem tambm ser representadas por tais recursos externos como filmes interativos, imagens e biblioteca symbols as well. smbolos bem. All this allows efficient application of the component not only for creating online Tudo isto permite uma aplicao eficaz do componente no s para a criao de linha applications but also for offline projects which are uploaded to CD or DVD media. aplicaes, mas tambm para projetos off-line que so enviados a mdia de CD ou DVD. You can control the component using ActionScript and create even more powerful applications. Voc pode controlar o componente usando o ActionScript e criar aplicaes mais poderosas. You Voc can use XML to cofigure your component. pode usar XML para cofigure seu componente. This option allows updating your books without Esta opo permite atualizar seus livros sem recompiling your movies. recompilar os seus filmes. You don't need to have advanced Flash or programming skills to use this component. Voc no precisa ter o Flash avanado ou habilidades de programao para usar esse componente. No matter what No importa o que your qualification is this component will be your reliable tool to tackle a variety of tasks. sua qualificao esta componente ser sua ferramenta segura para lidar com uma variedade de tarefas. This user guide contains all the information required to create powerful and professional Flash Este guia do usurio contm todas as informaes necessrias para criar Flash poderoso e profissional applications with flipping effect. aplicaes com inverso efeito. Here you will find complete reference information on the component Aqui voc encontrar informaes de referncia completa sobre o componente parameters and API. parmetros e API. You will learn how to create XML component configuration files and use them to Voc vai aprender como criar arquivos de configurao XML do componente e us-los para solve the most challenging tasks. resolver as tarefas mais desafiadoras. Page 3 Pgina 3 Contents Contedo 22 33 System Sistema 6 6 Component Componente 7 7 Quick Rpido 8 8 Project Folder Pasta do Projeto 8 8 Creating SWF Criar SWF 8 8 Component Componente 9 9 Using XML Settings Usando configuraes XML 12 12 Component Componente 14 14 Book Pages Pginas de livros 14 14

Scale Page Content Contedo da Pgina escala 15 15 First Page Number Nmero da primeira pgina 15 15 Always Sempre 15 15 Autoflip Area rea autoflip 15 15 Flip on Virar na 15 15 Static Shadows Sombras estticas 15 15 Dynamic Shadows Depth Profundidade sombras dinmicas 15 15 Page Moving Pgina Movendo 15 15 Page Closing Encerramento pgina 15 15 GotoPage Speed Velocidade gotoPage 15 15 Flip Sacudir 16 16 Page Background Fundo da pgina 16 16 Load Pages on Carregar as pginas em 16 16 Cache Esconderijo 16 16 External XML File Arquivo XML externo 16 16 Cache Esconderijo 16 16 Preloader Type Tipo Preloader 16 16 User Preloader ID ID Preloader Usurio 16 16 XML File Arquivo XML 17 17 18 18 width largura 18 18 18 18 18 18 firstPage FirstPage 18 18 alwaysOpened alwaysOpened 19 19 19 19 19 19 19 19 19 19 moveSpeed movespeed 19 19 19 19 20 20 20 20 pageBack pageBack 20 20 20 20 cachePages cachePages 20 20 20 20 preloaderType preloaderType 20 20 userPreloaderId userPreloaderId 21 21 ActionScript ActionScript 22 22 Component Componente 23 23 autoFlipProp autoFlipProp 23 23 23 23 23 23 closeSpeedProp closeSpeedProp 23 23 gotoSpeedProp gotoSpeedProp 23 23 Page 4 Pgina 4 24 24 width largura 24 24 height altura 24 24

totalPages TotalPages 24 24 24 24 25 25 enabledProp enabledProp 25 25 25 25 Component Componente 25 25 flipCorner flipCorner 25 25 26 26 26 26 directGotoPage directGotoPage 26 26 26 26 26 26 setSize setSize 27 27 27 27 27 27 isPageLoaded isPageLoaded 27 27 27 27 28 28 isLeftPage isLeftPage 28 28 isRightPage isRightPage 28 28 Component Componente 28 28 28 28 29 29 29 29 29 29 29 29 onFirstPage onFirstPage 30 30 onEndGoto onEndGoto 30 30 30 30 30 30 30 30 Internal Page Pgina Interna 31 31 31 31 31 31 31 31 Page Pgina 31 31 31 31 isExternal isExternal 32 32 book livro 32 32 URL URL 32 32 32 32 32 32 visible visvel 33 33 width largura 33 33 height altura 33 33 isLeftPage isLeftPage 33 33 isRightPage isRightPage 33 33 33 33 How Como 35 35 Use Component API Use API Component 35 35 Set External XML File Parameter Using ActionScript................................................................................ Configure o Parmetro arquivo

externo em XML usando ActionScript ........................................... ..................................... 38 38 Set Page List using Definir Lista Page usando 39 39 Make Custom Faa o costume 41 41 Curl First Page Corner Automatically Curl canto da primeira pgina automaticamente 45 45 Change Book Orientation to Alterar orientao do livro de 46 46 Add Buttons/Links (Creating Table of Contents)..................................................................................... Adicionar Botes / Links (criando ndice) ........................................ ............................................. 47 47 Flip Pages Automatically Virar as pginas automaticamente 48 48 Print Imprimir 49 49 Page 5 Pgina 5 Create Navigation Criar Navegao 50 50 Use Pages from Movie Library Use Pginas da biblioteca do filme 51 51 Flippingbook component Componente FlippingBook 53 53 53 53 How does Flash Component differ from Flash Object? Como o Flash Component diferir Flash Object? ........................................................................ .................................................. ...................... 53 53 What is the maximum size and number of pages?.............................................................................. Qual o tamanho mximo eo nmero de pginas? ........................................ ...................................... 53 53 Can I use PDF files with your component/object?............................................................................... Posso usar arquivos PDF com o componente / objeto? ....................................... ........................................ 53 53 Can I use sound and video on the pages? Posso usar som e vdeo nas pginas? ......................................................................................... .................................................. ...................... ................. 53 53 Can I use contents and links on pages?............................................................................................. Posso usar o contedo e links das pginas? ......................................... .................................................. .. 53 53 Is it possible to use XML files that are created on-the-fly with my PHP/ASP/CFM/script? possvel utilizar arquivos XML que so criados on-the-fly com meu PHP / ASP / script / ... CFM? ..................... ..................... 53 53 Do I need to have a programming knowledge to be able to use your component?................................ Eu preciso ter um conhecimento de programao para ser capaz de usar o componente? ................................ 54 54 54 54 When and how can I get the component? Quando e como posso obter o componente? ......................................................................................... .................................................. ...................... ................. 54 54 Can I pay for my order using PayPal? Posso pagar a minha encomenda usando o PayPal? ............................................................................................... .................................................. ................ ............................. 54 54 What do I get? O que eu recebo? What comes with the product? O que vem com o produto? .................................................................................. .................................................. ............................. ... 54 54 54 54 Which Flash versions does your component support? Quais as verses Flash faz seu apoio componente? ......................................................................... .................................................. ................ ....... 54 54

Which Flash Player versions does your component support? Quais as verses do Flash Player faz seu apoio componente? ............................................................... .................................................. ............. 54 54 54 54 I receive an error notice when installing the MXP file.......................................................................... Eu recebo um aviso de erro ao instalar o arquivo MXP ........................................ .................................. 54 54 My pictures fail to load. Minhas fotos no carregam. The paths are correct ................................................................................... Os caminhos esto corretos .............................................. ..................................... 54 54 My images load, but with distorted colors.......................................................................................... Minha carga de imagens, mas com as cores distorcidas .......................................... ................................................ 55 55 My SWF files load, but they are distorted .......................................................................................... Meu SWF carregar os arquivos, mas eles so distorcidos ......................................... ................................................. 55 55 When flipping, texts on my pages disappear and then appear again .................................................... Ao lanar, textos sobre minhas pginas desaparecer e depois aparecer novamente ...................................... .............. 55 55 Everything works when testing the movie in Flash, but the pages fail load on the site........................... Tudo funciona ao testar o filme em Flash, mas as pginas no carregamento do site ........................... 55 55 In Microsoft Internet Explorer I first need to click on the book to make it work..................................... No Microsoft Internet Explorer eu preciso primeiro clique no livro para fazer o trabalho .................................. ... 55 55 The buttons on my page do not work. Os botes na minha pgina no funcionam. Every time I press the button the page starts to flip ................... Toda vez que eu pressione o boto da pgina comea a virar ................... 55 55 I try to call up the component methods, as detailed in your documentation, but nothing happens.......... Tento chamar os mtodos de componentes, conforme detalhado na documentao, mas nada acontece .......... 56 56 56 56 Do I have to purchase a separate license for each site/application/presentation, in which I use your Tenho que comprar uma licena separada para cada site / aplicativo / apresentao, na qual eu usar o seu 56 56 Can I use your component to create offline applications and presentations?......................................... Posso usar o componente para criar aplicaes offline e apresentaes? ...................................... ... 56 56 Can I transfer the component to my work colleagues?........................................................................ Posso transferir o componente para meus colegas de trabalho? ........................................ ................................ 56 56 The client demands the FLA file from me, with the component. O cliente exige o arquivo FLA de mim, com o componente. Can I give it to him? Posso dar para ele? ............................ ............................ 56 56 Can I use the component for commercial / free templates?................................................................. Posso usar o componente para modelos comerciais / free? ....................................... .......................... 56 56 Support & Suporte & 57 57 I am experiencing problems with your product .................................................................................. Estou enfrentando problemas com o produto ........................................... ....................................... 57 57

Will I receive product updates? Vou receber as atualizaes do produto? 57 57 Component Package Pacote de Componentes 58 58 59 59 Disclaimer and license Disclaimer e licena 60 60 Page 6 Pgina 6 System Requirements Requisitos de Sistema The Premium Page Flip component is designed for Macromedia Flash MX, Flash MX 2004 and Flash O componente flip premium pgina foi concebido para Macromedia Flash MX, Flash MX 2004 e Flash 8 for both Microsoft Windows and Mac OS. 8 para o Microsoft Windows e Mac OS. Component installation requires the latest version of Macromedia Extension Manager. Instalao de componentes requer a ltima verso do Macromedia Extension Manager. This software Este software can be downloaded free of charge at pode ser baixado gratuitamente em http://www.adobe.com/exchange/em_download/ http://www.adobe.com/exchange/em_download/~~V Applications created using the component require prior installation of Macromedia Flash Player 6 or Aplicativos criados usando o componente requer instalao prvia do Macromedia Flash Player 6 ou higher. mais elevado. Page 7 Pgina 7 Component Installation Instalao de Componentes The Premium Page Flip component is delivered in MXP format, a standard Macromedia application O componente Pgina premium flip entregue em formato MXP, um aplicativo Macromedia padro format. formato. Use Macromedia Extension Manager to install Macromedia extensions. Use Macromedia Extension Manager para instalar extenses da Macromedia. The latest version of A ltima verso do this software is available on the Adobe website at este software est disponvel no site da Adobe em www.adobe.com/exchange/em_download/ www.adobe.com/exchange/em_download/~~V To install the component please close the authoring Flash application if open. Para instalar o componente feche o aplicativo Flash authoring se aberto. Unpack the ZIP archive Descompacte o arquivo ZIP you have received after purchasing the component and run the file with the MXP extension. que voc recebeu aps a compra do componente e executar o arquivo com a extenso MXP. This will automatically run the Extension Manager program to walk you through the installation Isto ir executar automaticamente o programa Extension Manager para orient-lo atravs da instalao process. processo. Figure 1 . Figura 1. Extension Manager with the Installed Component Extension Manager com o componente instalado On completing installation the Premium Page Flip component will show on the component panel of Ao completar a instalao do componente Pgina premium flip aparecer no painel de componente do the Flash development environment. o ambiente de desenvolvimento Flash. Now you can drag and drop it to any of your Flash projects. Agora voc pode arrastar e solt-lo para qualquer de seus projetos em Flash. Figure 2 . Figura 2. Component Panel After Installation Painel componente aps a instalao Page 8 Pgina 8 Quick Start Incio Rpido This section will introduce the component through the process of creating a simple folder set up using

Esta seo ir apresentar o componente atravs do processo de criao de uma pasta simples configurado usando an external XML file. um arquivo XML externo. Completion Time : 6 to 10 minutes. Tempo para concluso: 6 a 10 minutos. Requirements : Macromedia Flash MX / MX 2004 / 8 with Premium Page Flip component installed. Requisitos: Macromedia Flash MX / MX 2004/8 com componente flip Pgina premium instalado. Project Folder Preparation Preparao Pasta do projeto Create the quick_start folder with the pages subfolder in any chosen location on your computer. Crie a pasta quick_start com a subpasta de pginas em qualquer local escolhido em seu computador. The O quick _ start folder will contain the work files of your folder whereas the pages folder will contain the _ incio rpido pasta ir conter os arquivos de trabalho de sua pasta enquanto a pasta de pginas que contm o catalogue pages. pginas do catlogo. Now copy the JPEG images of your pages to the pages folder. Agora copie as imagens JPEG de suas pginas para a pasta de pginas. Use the preprepared images which can Use as imagens previamente preparada, que pode be found in the ZIP archive of the component in the quick_start/images folder. ser encontrada no arquivo ZIP do componente na quick_start / pasta de imagens. Creating SWF File Criao de arquivo SWF Now that we have the catalogue pages ready we can create the catalogue itself. Agora que temos as pginas do catlogo pronto, podemos criar o prprio catlogo. Open Macromedia Flash and create a new FLA document. Abra o Macromedia Flash e crie um novo documento FLA. Save this empty FLA file as catalogue.fla in Salve este arquivo FLA vazio como catalogue.fla em the quick _ start folder we created earlier using the File / Save As command. a pasta rpida _ incio que criamos anteriormente usando o Arquivo / Salvar como comando. Open the component panel and drag the Premium Page Flip component to your stage. Abra o painel de componente e arraste o componente Pgina premium Flip para seu palco. The empty O vazio component is colored grey and is sized 400 by 250 pixels as shown below: componente de cor cinzenta e dimensionado de 400 por 250 pixels como mostrado abaixo: Rename the current layer catalogue : Renomeie a camada atual catlogo: Page 9 Pgina 9 Save your file and run it (Control/Test Movie). Salve o arquivo e execut-lo (Control / Test Movie). Right now you will only see a blank screen since the Agora voc s ver uma tela em branco desde o component is not set up yet. componente no est configurado ainda. Component Settings Configuraes de Componentes Macromedia components are very powerful and versatile tools. Componentes da Macromedia so ferramentas muito poderosas e versteis. In fact the components are complex Na verdade os componentes so complexos movie clips which can be easily configured according to your needs. clipes de filme que pode ser facilmente configurado de acordo com suas necessidades. The component tuning interface A interface de sintonizao componente is split in two parts: the Component Inspector panel or the Component Parameter panel. dividido em duas partes: o painel Component Inspector ou o painel parmetros de componente. Highlight the Destaque o component and open the Parameters tab in the Properties panel: componente e abra a guia Parmetros no painel de propriedades: As you can see, the component has quite a few parameters. Como voc pode ver, o componente tem muito alguns parmetros. In most cases all you will need is just one Na maioria dos casos tudo o

que voc precisa apenas um Book Pages. Pginas de livros. This is precisely why we put it in at the top. precisamente por isso vamos coloc-la em no topo. The empty brackets to the right of the Os suportes de vazio direita do component name mean the list is empty and needs to be populated. nome do componente: a lista vazia e precisa ser preenchido. You can also access these settings in the Component Inspector window. Voc tambm pode acessar essas configuraes na janela de Component Inspector. Page 10 Pgina 10 Double click on the empty brackets. D um duplo clique sobre os colchetes vazios. The list window will open as follows: A janela lista ser aberto como segue: Click the + button and type pages/page01.jpg instead of defaultValue text in the first line: Clique no boto + e tipo pages/page01.jpg em vez de texto defaultValue na primeira linha: Page 11 Pgina 11 Click OK. Clique em OK. As you can see, the component appearance on the stage has changed: Now it looks more like a closed Como voc pode ver, a aparncia do componente no palco mudou: agora ele parece mais um fechado book. livro. Save your file and run it (Control/Test Movie). Salve o arquivo e execut-lo (Control / Test Movie). You have just created a one-page catalogue. Voc acabou de criar um catlogo de uma pgina. So far it is hardly impressive although it still demonstrates At o momento no de impressionante mas se demonstra ainda some very important things: algumas coisas muito importantes: In order to ensure smooth flipping the frame rate of your movie should be at least 30 fps. A fim de garantir o bom inverter a taxa de quadros do filme deve ser de pelo menos 30 fps. It is 12 fps by default. 12 fps por padro. The page number in a book is always even just like in the real world. O nmero de pgina em um livro sempre mesmo - assim como no mundo real. Therefore, if you set an Portanto, se voc definir um odd number of pages the component will automatically expand the range by one filling it with nmero mpar de pginas que o componente ser automaticamente expandir a gama por um preench-lo com the default color. a cor padro. By default the component scales the page files so that they fit into the book's size you have Por padro, as escalas que compem os arquivos de pgina de modo que caibam no tamanho do livro que voc tem specified. especificada. Now open the page list again and add links to the remaining six files: Agora, abra a lista de pgina novamente e adicionar links para os restantes seis arquivos: Page 12 Pgina 12 Set fps = 30 for your movies: Definir fps = 30 para seus filmes: Change the book size to 600 by 400 pixels to prevent page distortion (the images we prepared are sized Alterar o tamanho do livro de 600 por 400 pixels para evitar a distoro da pgina (as imagens que preparamos so dimensionados 300 by 400 pixels). 300 por 400 pixels). You can also change the component size by using the Transform Tool. Voc tambm pode alterar o tamanho do componente usando a ferramenta de transformao. This tool also enables you to Esta ferramenta tambm permite que voc rotate the component on the stage: girar o componente no palco:

Now increase the stage size so that the magnified book fits completely, then save and run the movie. Agora aumente o tamanho do palco para que o livro se encaixa totalmente ampliada, em seguida, salvar e executar o filme. Doesn't it look a little better now? No parece um pouco melhor agora? If you want to add another page to this book or modify it you will Se voc quiser adicionar uma outra pgina para este livro ou modific-lo voc vai have to open the FLA file again, change its settings and regenerate the SWF file. tem que abrir o arquivo FLA novamente, altere suas configuraes e gerar novamente o arquivo SWF. All this hassle can be Tudo isso pode ser incmodo easily avoided by moving the settings to the external XML file. facilmente evitadas movendo as configuraes para o arquivo XML externo. Using XML Settings File Usando arquivo de configuraes XML Open any text editor capable of creating simple text files (eg Notepad) and type the following (you Abra qualquer editor de texto capaz de criar arquivos de texto simples (por exemplo o Bloco de Notas) e digite o seguinte (voc can copy/paste it): pode copiar / colar): <FlippingBook> <FlippingBook> <width>600</width> <width> 600 </ largura> <height>400</height> <height> 400 </ altura> <scaleContent>true</scaleContent> <scaleContent> true </ scaleContent> <firstPage>0</firstPage> <firstPage> 0 <FirstPage /> Page 13 Pgina 13 <alwaysOpened> false </alwaysOpened> <alwaysOpened> false </ alwaysOpened> <autoFlip> 50 </autoFlip> <autoFlip> 50 </ autoflip> <flipOnClick> true </flipOnClick> <flipOnClick> true </ flipOnClick> <staticShadowsDepth> 1 </staticShadowsDepth> <staticShadowsDepth> 1 </ staticShadowsDepth> <dynamicShadowsDepth> 1 </dynamicShadowsDepth> <dynamicShadowsDepth> 1 </ dynamicShadowsDepth> <moveSpeed> 2 </moveSpeed> <moveSpeed> 2 </ movespeed> <closeSpeed> 3 </closeSpeed> <closeSpeed> 3 </ closeSpeed> <gotoSpeed> 3 </gotoSpeed> <gotoSpeed> 3 </ gotoSpeed> <flipSound></flipSound> <flipSound> </ flipSound> <pageBack> 0x1C90CB </pageBack> <pageBack> 0x1C90CB </ pageBack> <loadOnDemand> true </loadOnDemand> <loadOnDemand> true </ loadOnDemand> <cachePages> true </cachePages> <cachePages> true </ cachePages> <cacheSize> 4 </cacheSize> <cacheSize> 4 </ cachesize> <preloaderType> Progress Bar </preloaderType> <preloaderType> Progress Bar </ preloaderType> <userPreloaderId></userPreloaderId> <userPreloaderId> </ userPreloaderId> <pages> <pages> <page>pages/page01.jpg</page> <page> pages/page01.jpg <pgina /> <page>pages/page02.jpg</page> <page> pages/page02.jpg <pgina /> <page>pages/page03.jpg</page> <page> pages/page03.jpg <pgina /> <page>pages/page04.jpg</page> <page> pages/page04.jpg <pgina /> <page>pages/page05.jpg</page> <page> pages/page05.jpg <pgina /> </pages> </ Pages> </FlippingBook> <FlippingBook /> Save the file as config.xml in the quick_start folder created earlier. Salve o arquivo como config.xml na pasta quick_start criado anteriormente. This file completely replicates the Este arquivo completamente replica a component settings specified earlier in the development environment. configuraes do componente

especificadas anteriormente no ambiente de desenvolvimento. You can also use it as the Voc tambm pode us-lo como o template for your future projects. modelo para os seus projetos futuros. Now go back to the Flash environment, open the Component Parameter panel and find the External Agora volte para o ambiente Flash, abra o painel de parmetros de componentes e encontrar o externo XML File parameter: XML parmetro do arquivo: Save the FLA file and run the movie. Salve o arquivo FLA e executar o filme. Now you can change the settings of this book by simply Agora voc pode alterar as configuraes deste livro, simplesmente modifying the XML file. modificar o arquivo XML. Now you have learned how to use Flash components in general and the Premium Page Flip component Agora que voc aprendeu como usar os componentes do Flash, em geral, e do componente Pgina premium flip in particular. em particular. This document also contains a detailed description of all the component parameters, Este documento tambm contm uma descrio pormenorizada de todos os parmetros de componentes, ActionScript API and some additional info. ActionScript API e algumas informaes adicionais. Page 14 Pgina 14 Component Parameters Parmetros de Componentes The component parameters are stored in the Component Inspector panel or the Component Parameter Os parmetros de componentes so armazenados no painel Inspetor Componente ou o parmetro Componente panel. painel. Highlight the component and open the Parameters tab in the Properties panel: Realce o componente e abra a guia Parmetros no painel de propriedades: Or open the Component Inspector window (Alt + F7): Ou abrir a janela de Component Inspector (Alt + F7): Book Pages Pginas de livros This parameter allows you to define a URL list for the page files. Este parmetro permite que voc defina uma lista de URLs para os arquivos da pgina. You can specify both absolute URLs Voc pode especificar URLs absoluta (such as (Tal como http://www.yoursite.com/images/page01.jpg http://www.yoursite.com/images/page01.jpg~~V ) and relative URLs (such as image/page01.jpg). ) E relativo URLs (tais como image/page01.jpg). Moreover, the list may contain linkage names of the movie clips symbols in the library. Alm disso, a lista pode conter nomes de ligao dos clipes dos filmes smbolos na biblioteca. This means Isto significa you can store all your pages in a single SWF file together with the book. voc pode armazenar todas as suas pginas em um nico arquivo SWF junto com o livro. The external page files may be represented by SWF files, non-progressive JPEG images (for Flash Os arquivos de pginas externas podem ser representados por arquivos SWF, imagens no progressivas JPEG (para o Flash Player 6 through 7) and progressive JPEG images, PNG and non-animated GIF images for Flash Player 6 a 7) e imagens JPEG progressivas, PNG e imagens no-GIF animados para Flash Player 8. Player 8. Page 15 Pgina 15 Scale Page Content Contedo da Pgina escala Defines the page content scaling method. Define o mtodo de escalonamento pgina de contedo. If the parameter is set to true (default) the loaded files will Se o parmetro for definido como true

(default), os arquivos carregados sero be automatically scaled to the page size. ser ajustada automaticamente ao tamanho da pgina. If the parameter is set to false the page content will be clipped Se o parmetro for definido como falso o contedo da pgina ser cortada to the page borders. para as bordas da pgina. First Page Number Nmero da primeira pgina This is the number of the book page open by default. Este o nmero da pgina do livro aberto por padro. Always Opened Sempre Aberto Defines the behavior of the first and last pages of the book. Define o comportamento das primeira e ltima pginas do livro. If true , the first and last pages are bound to Se for verdade, as primeira e ltima pginas so obrigados a the stage, preventing them being flipped by the user. a fase, impedindo-os a ser invertida pelo utilizador. If false the user may flip the first and last pages Se for falso, o usurio pode virar as primeira e ltima pginas just like the rest. assim como o resto. This parameter is useful when you need a permanently set book width. Este parmetro til quando voc precisa de uma largura livro permanentemente definida. Autoflip Area Size Autoflip tamanho da rea This is the size of the click-sensitive area at the page corners that allow page flipping. Este o tamanho da rea de clique-sensvel com os cantos da pgina que permitem que a pgina inverso. This parameter Este parmetro value defines the length of the sensitive square at the page corner. valor define o comprimento do quadrado sensvel no canto da pgina. Flip on Click Virar na Click Defines the page flipping method. Turned on (true) : you can drag pages by click-and-drag and flip Define a pgina virar mtodo ligado (true):. Voc pode arrastar as pginas com um clique e arraste e virar pages by corner click-release. Turned off (false) : you can drag pages by corner click-and-drag and flip . pginas de canto clique liberao desligado (false): voc pode arrastar pelo canto de pginas clique e arraste e virar pages by corner click-release. pginas de canto clique libertao. Static Shadows Depth Profundidade Sombras esttica Shadow intensity in the middle of the book. Intensidade sombra no meio do livro. These shadows imitate fixed page curvature. Estas sombras imitar curvatura de pgina fixo. Dynamic Shadows Depth Profundidade sombras dinmicas Curvature shadow intensity while flipping pages. Intensidade curvatura sombra enquanto lanando pginas. Use higher values for better 3D effect or for darker Utilize valores mais elevados para melhor efeito 3D ou para mais escuro pages. pginas. Page Moving Speed Pgina Mover Velocidade Page moving speed during normal page flipping (dragging). Pgina movendo velocidade durante virar de pgina normal (arrastando). Page Closing Speed Velocidade de fechamento pgina Automatic page moving speed on release of the mouse button. Pgina automtica movendo velocidade na liberao do boto do mouse. GotoPage Speed Velocidade gotoPage The speed of automatic page movement with the gotoPage, flipGotoPage, flipForward and flipBack A velocidade de movimento automtico de pgina com o gotoPage, flipGotoPage, flipForward e flipBack functions enabled. funes habilitadas.

Page 16 Pgina 16 Flip Sound Flip Som Flip sound. Inverter som. You may specify a URL to an external MP3 file or linkage name of the sound symbol in Voc pode especificar uma URL para um arquivo MP3 externo ou o nome de vinculao do smbolo de som em the library. a biblioteca. Page Background Color Cor de fundo da pgina Page background RGB color. Pgina de fundo de cor RGB. This color is displayed on page loading and through transparent page Esta cor exibido no carregamento da pgina e atravs da pgina transparente areas. reas. Load Pages on Demand Carregar as pginas on Demand Page loading mode. Pgina carregamento de modo. When true , pages are loaded as the user flips through the book. Quando true, as pginas so carregadas como o usurio folheia o livro. When false , all Quando false, todos pages are loaded before opening the book. as pginas so carregadas antes de abrir o livro. Cache Pages Pginas de cache Type of page storage in the component memory. Tipo de armazenagem de pgina na memria de componente. When false , the page is reloaded each time the user Quando false, a pgina recarregada sempre que o usurio visits it. visita. When true , the page is stored in the memory and is displayed immediately. Quando verdadeiro, a pgina armazenado na memria e exibido imediatamente. It should be noted Deve notar-se that not all the pages are stored in the memory when this value is set to true . que nem todas as pginas so armazenadas na memria quando esse valor definido como verdadeiro. The component removes O componente remove pages from the memory as the user moves away from them. pginas da memria que o usurio passa longe deles. External XML File Arquivo XML externo URL of the external XML file containing the settings and book page information. URL do arquivo externo XML contendo as configuraes e informaes pgina do livro. Cache Size Tamanho do cache The number of pages to the left and right of the current page, which are stored in the component O nmero de pginas esquerda e direita da pgina corrente, que so armazenados no componente memory. memria. Preloader Type Tipo Preloader The type of preloader in use. O tipo de preloader em uso. The valid values are as follows: Progress Bar, Round, User Defined and Os valores vlidos so os seguintes: Barra de Progresso, Redonda, Definido pelo usurio e None. Nenhum. To use your custom preloader, set this parameter to User Defined and specify linkage name of Para usar o preloader personalizado, defina este parmetro para User Defined e especificar o nome de ligao the preloader movie clip symbol in the User Preloader ID parameter. o preloader smbolo de clipe de filme no parmetro User ID Preloader. Attention: the preloader is not Ateno: o preloader no used at all for pages stored in the movie library. usado em tudo para pginas armazenadas na biblioteca de filmes. User Preloader ID ID Preloader Usurio Linkage name of the preloader movie clip symbol in the library. Linkage nome do smbolo de clipe de filme preloader na biblioteca. Page 17 Pgina 17

XML File Parameters Parmetros do arquivo XML Our component allows the use of external XML files for storing settings. Nosso componente permite o uso de arquivos XML externos para armazenar as configuraes. This convenient option Esta opo conveniente allows you to modify your books in a matter of seconds without recompiling the FLA file. permite que voc modifique seus livros em questo de segundos, sem recompilar o arquivo FLA. To use XML settings you need to create an XML file with all component parameters and specify its Para usar as configuraes XML que voc precisa para criar um arquivo XML com todos os parmetros de componentes e especificar o seu URL as the External XML File parameter value: URL como o valor do parmetro arquivo XML externo: Note: the XML file parameters always override those specified in the development environment. Nota: os parmetros do arquivo XML sempre substituir os especificados no ambiente de desenvolvimento. If Se you failed to specify a parameter in the XML file the default value will be used instead of the one set voc no especificar um parmetro no arquivo XML o valor padro ser usado em vez do conjunto de uma in the development environment. no ambiente de desenvolvimento. Note: you are not limited by static XML files. Nota: voc no est limitado por arquivos XML estticos. Such files may be created on the fly from your database Tais arquivos podem ser criados em tempo real a partir de seu banco de dados using a server technology (ie PHP, ASP, CFM etc.). usando uma tecnologia de servidor (ou seja, PHP, ASP, etc CFM). The component XML file usually looks like this: O componente de arquivo XML geralmente assim: <FlippingBook> <FlippingBook> <width>600</width> <width> 600 </ largura> <height>400</height> <height> 400 </ altura> <scaleContent>true</scaleContent> <scaleContent> true </ scaleContent> <firstPage>0</firstPage> <firstPage> 0 <FirstPage /> <alwaysOpened> false </alwaysOpened> <alwaysOpened> false </ alwaysOpened> <autoFlip> 50 </autoFlip> <autoFlip> 50 </ autoflip> <flipOnClick> true </flipOnClick> <flipOnClick> true </ flipOnClick> <staticShadowsDepth> 1 </staticShadowsDepth> <staticShadowsDepth> 1 </ staticShadowsDepth> <dynamicShadowsDepth> 1 </dynamicShadowsDepth> <dynamicShadowsDepth> 1 </ dynamicShadowsDepth> <moveSpeed> 2 </moveSpeed> <moveSpeed> 2 </ movespeed> <closeSpeed> 3 </closeSpeed> <closeSpeed> 3 </ closeSpeed> <gotoSpeed> 3 </gotoSpeed> <gotoSpeed> 3 </ gotoSpeed> <flipSound></flipSound> <flipSound> </ flipSound> <pageBack> 0x1C90CB </pageBack> <pageBack> 0x1C90CB </ pageBack> <loadOnDemand> true </loadOnDemand> <loadOnDemand> true </ loadOnDemand> <cachePages> true </cachePages> <cachePages> true </ cachePages> <cacheSize> 4 </cacheSize> <cacheSize> 4 </ cachesize> <preloaderType> Progress Bar </preloaderType> <preloaderType> Progress Bar </ preloaderType> <userPreloaderId></userPreloaderId> <userPreloaderId> </ userPreloaderId> <pages> <pages> <page>pages/page01.jpg</page> <page> pages/page01.jpg <pgina /> <page>pages/page02.jpg</page> <page> pages/page02.jpg <pgina /> <page>pages/page03.jpg</page> <page> pages/page03.jpg <pgina /> <page>pages/page04.jpg</page> <page> pages/page04.jpg <pgina /> <page>pages/page05.jpg</page> <page> pages/page05.jpg <pgina /> </pages> </ Pages>

Page 18 Pgina 18 </FlippingBook> <FlippingBook /> All the component parameters are described using XML tags with names resembling the Todos os parmetros dos componentes so descritos usando tags XML com nomes que se assemelha ao corresponding names of component parameters in Flash. nomes correspondentes de parmetros de componentes em Flash. All parameter descriptions are identical to the Todas as descries de parmetros so idnticos aos do descriptions given above in the Component Parameters section. descries dado acima na seo Parmetros de componente. The page array is defined by a list of common type A matriz de pgina definida por uma lista de tipo comum <page>URL</page> tags. <page> URL <pgina /> tags. Moreover, you may specify a new width and height for the book. Alm disso, voc pode especificar uma nova largura e altura para o livro. This XML code may be used as a template for future files, as required. Este cdigo XML pode ser utilizado como um modelo para arquivos futuros, conforme necessrio. pages pginas This parameter allows you to define a URL list for the page files. Este parmetro permite que voc defina uma lista de URLs para os arquivos da pgina. You can specify both absolute URLs Voc pode especificar URLs absoluta (such as (Tal como http://www.yoursite.com/images/page01.jpg http://www.yoursite.com/images/page01.jpg~~V ) and relative URLs (such as image/page01.jpg). ) E relativo URLs (tais como image/page01.jpg). Moreover, the list may contain linkage names of the movie clips symbols in the library. Alm disso, a lista pode conter nomes de ligao dos clipes dos filmes smbolos na biblioteca. This means Isto significa you can store all your pages in a single SWF file together with the book. voc pode armazenar todas as suas pginas em um nico arquivo SWF junto com o livro. The external page files may be represented by SWF files, non-progressive JPEG images (for Flash Os arquivos de pginas externas podem ser representados por arquivos SWF, imagens no progressivas JPEG (para o Flash Player 6 through 7) and progressive JPEG images, PNG and non-animated GIF images for Flash Player 6 a 7) e imagens JPEG progressivas, PNG e imagens no-GIF animados para Flash Player 8. Player 8. The page array is defined by a list of common type A matriz de pgina definida por uma lista de tipo comum <page>URL</page> tags: <page> URL <pgina /> tags: <pages> <pages> <page>pages/page01.jpg</page> <page> pages/page01.jpg <pgina /> <page>pages/page02.jpg</page> <page> pages/page02.jpg <pgina /> <page>pages/page03.jpg</page> <page> pages/page03.jpg <pgina /> <page>pages/page04.jpg</page> <page> pages/page04.jpg <pgina /> <page>pages/page05.jpg</page> <page> pages/page05.jpg <pgina /> </pages> </ Pages> width largura Book width in pixels. Livro largura em pixels. height altura Book height in pixels. Livro altura em pixels. scaleContent scaleContent Defines the page content scaling method. Define o mtodo de escalonamento pgina de contedo. If the parameter is set to true (default) the loaded files will Se o parmetro for definido como true (default), os arquivos carregados sero

be automatically scaled to the page size. ser ajustada automaticamente ao tamanho da pgina. If the parameter is set to false the page content will be clipped Se o parmetro for definido como falso o contedo da pgina ser cortada to the page borders. para as bordas da pgina. <scaleContent>true</scaleContent> <scaleContent> true </ scaleContent> firstPage FirstPage This is the number of the book page open by default. Este o nmero da pgina do livro aberto por padro. <firstPage>0</firstPage> <firstPage> 0 <FirstPage /> Page 19 Pgina 19 alwaysOpened alwaysOpened Defines the behavior of the first and last pages of the book. Define o comportamento das primeira e ltima pginas do livro. If true , the first and last pages are bound to Se for verdade, as primeira e ltima pginas so obrigados a the stage, preventing them being flipped by the user. a fase, impedindo-os a ser invertida pelo utilizador. If false the user may flip the first and last pages Se for falso, o usurio pode virar as primeira e ltima pginas just like the rest. assim como o resto. This parameter is useful when you need a permanently set book width. Este parmetro til quando voc precisa de uma largura livro permanentemente definida. <alwaysOpened> false </alwaysOpened> <alwaysOpened> false </ alwaysOpened> autoFlip autoflip This is the size of the click-sensitive area at the page corners that allow page flipping. Este o tamanho da rea de clique-sensvel com os cantos da pgina que permitem que a pgina inverso. This parameter Este parmetro value defines the length of the sensitive square at the page corner. valor define o comprimento do quadrado sensvel no canto da pgina. <autoFlip> 50 </autoFlip> <autoFlip> 50 </ autoflip> flipOnClick flipOnClick Defines the page flipping method. Turned on (true) : you can drag pages by click-and-drag and flip Define a pgina virar mtodo ligado (true):. Voc pode arrastar as pginas com um clique e arraste e virar pages by corner click-release. Turned off (false) : you can drag pages by corner click-and-drag and flip . pginas de canto clique liberao desligado (false): voc pode arrastar pelo canto de pginas clique e arraste e virar pages by corner click-release. pginas de canto clique libertao. <flipOnClick> true </flipOnClick> <flipOnClick> true </ flipOnClick> staticShadowsDepth staticShadowsDepth Shadow intensity in the middle of the book. Intensidade sombra no meio do livro. These shadows imitate fixed page curvature. Estas sombras imitar curvatura de pgina fixo. <staticShadowsDepth> 1 </staticShadowsDepth> <staticShadowsDepth> 1 </ staticShadowsDepth> dynamicShadowsDepth dynamicShadowsDepth Curvature shadow intensity while flipping pages. Intensidade curvatura sombra enquanto lanando pginas. Use higher values for better 3D effect or for darker Utilize valores mais elevados para melhor efeito 3D ou para mais escuro pages. pginas. <dynamicShadowsDepth> 1 </dynamicShadowsDepth> <dynamicShadowsDepth> 1 </ dynamicShadowsDepth> moveSpeed movespeed Page moving speed during normal page flipping (dragging). Pgina movendo velocidade durante virar de pgina normal (arrastando).

<moveSpeed> 2 </moveSpeed> <moveSpeed> 2 </ movespeed> closeSpeed closeSpeed Automatic page moving speed on release of the mouse button. Pgina automtica movendo velocidade na liberao do boto do mouse. <closeSpeed> 3 </closeSpeed> <closeSpeed> 3 </ closeSpeed> Page 20 Pgina 20 gotoSpeed gotoSpeed The speed of automatic page movement with the gotoPage, flipGotoPage, flipForward and flipBack A velocidade de movimento automtico de pgina com o gotoPage, flipGotoPage, flipForward e flipBack functions enabled. funes habilitadas. <gotoSpeed> 3 </gotoSpeed> <gotoSpeed> 3 </ gotoSpeed> flipSound flipSound Flip sound. Inverter som. You may specify a URL to an external MP3 file or linkage name of the sound symbol in Voc pode especificar uma URL para um arquivo MP3 externo ou o nome de vinculao do smbolo de som em the library. a biblioteca. <flipSound>sounds/01.mp3</flipSound> <flipSound> sounds/01.mp3 <flipSound /> pageBack pageBack Page background RGB color. Pgina de fundo de cor RGB. This color is displayed on page loading and through transparent page Esta cor exibido no carregamento da pgina e atravs da pgina transparente areas. reas. <pageBack> 0x1C90CB </pageBack> <pageBack> 0x1C90CB </ pageBack> loadOnDemand loadOnDemand Page loading mode. Pgina carregamento de modo. When true , pages are loaded as the user flips through the book. Quando true, as pginas so carregadas como o usurio folheia o livro. When false , all Quando false, todos pages are loaded before opening the book. as pginas so carregadas antes de abrir o livro. <loadOnDemand> true </loadOnDemand> <loadOnDemand> true </ loadOnDemand> cachePages cachePages Type of page storage in the component memory. Tipo de armazenagem de pgina na memria de componente. When false , the page is reloaded each time the user Quando false, a pgina recarregada sempre que o usurio visits it. visita. When true , the page is stored in the memory and is displayed immediately. Quando verdadeiro, a pgina armazenado na memria e exibido imediatamente. It should be noted Deve notar-se that not all the pages are stored in the memory when this value is set to true . que nem todas as pginas so armazenadas na memria quando esse valor definido como verdadeiro. The component removes O componente remove pages from the memory as the user moves away from them. pginas da memria que o usurio passa longe deles. <cachePages> true </cachePages> <cachePages> true </ cachePages> cacheSize cachesize The number of pages to the left and right of the current page, which are stored in the component O nmero de pginas esquerda e direita da pgina corrente, que so armazenados no componente memory. memria. <cacheSize> 4 </cacheSize> <cacheSize> 4 </ cachesize> preloaderType preloaderType The type of preloader in use. O tipo de preloader em uso. The valid values are as follows: Progress

Bar, Round, User Defined and Os valores vlidos so os seguintes: Barra de Progresso, Redonda, Definido pelo usurio e None. Nenhum. To use your custom preloader, set this parameter to User Defined and specify linkage name of Para usar o preloader personalizado, defina este parmetro para User Defined e especificar o nome de ligao the preloader movie clip symbol in the User Preloader ID parameter. o preloader smbolo de clipe de filme no parmetro User ID Preloader. Attention: the preloader is not Ateno: o preloader no used at all for pages stored in the movie library. usado em tudo para pginas armazenadas na biblioteca de filmes. <preloaderType> Round </preloaderType> <preloaderType> Rodada </ preloaderType> Page 21 Pgina 21 userPreloaderId userPreloaderId Linkage name of the preloader movie clip symbol in the library. Linkage nome do smbolo de clipe de filme preloader na biblioteca. <userPreloaderId>myCustomPreloaderId</userPreloaderId> <userPreloaderId> myCustomPreloaderId </ userPreloaderId> Page 22 Pgina 22 ActionScript API ActionScript API The Application Programming Interface (API) allows programming of the component using O Application Programming Interface (API) permite a programao do componente usando ActionScript. ActionScript. In particular, the API enables the following: Em particular, a API permite o seguinte: Creating navigation panels - Criao de painis de navegao Printing pages - Imprimindo pginas Displaying page numbers - Exibio de nmeros de pgina Acquiring data from XML files - A aquisio de dados de arquivos XML Creating tables of contents and links on pages - Criao de tabelas de contedo e links das pginas Creating books with auto scrolling (slideshows), and much more - Criao de livros com rolagem automtica (slideshows), e muito mais The component API is split into the following parts: A API componente dividida nas seguintes partes: Component properties. These component parameters may be programmed in runtime. Propriedades de componentes. Estes parmetros de componentes pode ser programado em tempo de execuo. For Para example, you may deactivate component sensitivity to mouse clicks by simply setting the exemplo, voc pode desativar a sensibilidade componente para cliques do mouse, basta definir o flipOnClickProp flipOnClickProp property to false : propriedade para false: componentInstanceName.flipOnClickProp = false componentInstanceName.flipOnClickProp = false .. Component methods. These functions perform certain actions on the component. - Mtodos de componentes Estas funes executar determinadas aes no componente. For Para example, they may instruct the component to move to the next page ( exemplo, eles podem instruir o componente para ir para a pgina seguinte ( flipForward) ) flipForward :: componentInstanceName.flipForward(); componentInstanceName.flipForward (); Component Events . - Eventos de componentes. These functions are periodically called by the component on certain Estas funes so periodicamente chamado, o componente em certa

conditions. condies. For example, each time the user performs a left mouse click on the page the Por exemplo, cada vez que o usurio executa um clique esquerdo do mouse sobre a pgina do customizable onClick function is called: funo onClick personalizvel chamado: componentInstanceName.onClick = function(pageNumber, page_mc, isCornerClick) { componentInstanceName.onClick = function (pageNumber, page_mc, isCornerClick) { // any actions here / / Todas as aes aqui }} Page properties. These properties are read-only and are individually defined for each page. - Page. Propriedades Essas propriedades so somente leitura e so definidos individualmente para cada pgina. You may access these functions both inside the page: trace( pageNumber ) and through the link Voc pode acessar essas funes tanto dentro da pgina: trace (pageNumber) e atravs do link to the movie clip of the page: ao clipe de filme da pgina: componentInstanceName.onClick = function(pageNumber, page_mc, isCornerClick) { componentInstanceName.onClick = function (pageNumber, page_mc, isCornerClick) { trace( page_mc.pageNumber ); trace (page_mc.pageNumber); }} Page events. Similar to component events, these functions are called within each page. - Eventos. Pgina semelhante para os eventos de componentes, essas funes so chamadas dentro de cada pgina. Assign a name to the component copy on the stage in order to program it. Atribua um nome cpia componente no palco, a fim de program-lo. For clarity's sake let us Por razes de clareza, vamos assume the component copy is named myBook. assumir a cpia componente denominado MyBook. However, you may use any name. No entanto, voc pode usar qualquer nome. Page 23 Pgina 23 Note: if you are publishing your movie with ActionScript 2.0 support please pay attention to the Nota: se voc est publicando o seu filme com ActionScript 2.0 por favor, preste ateno para a symbol case in the names of parameters, events and methods. caso smbolo nos nomes de parmetros, eventos e mtodos. ActionScript 2.0 is case sensitive, ActionScript 2.0 case sensitive, meaning significado onClick onClick and e OnClick OnClick are treated as two different events. so tratados como dois eventos diferentes. Examples of API practical application for solving various tasks can be found in the FLA Exemplos de API aplicao prtica para a soluo de vrias tarefas podem ser encontrados em FLA demonstration files contained in the ZIP archive of the component. arquivos de demonstrao contida no arquivo ZIP do componente. Component Properties Propriedades de Componente _________________________________________________________________________________ _ _________________________________________________________________________________ _ autoFlipProp autoFlipProp : Number : Nmero Size of the sensitive area in the page corners. Tamanho da rea sensvel nos cantos da pgina. This parameter value defines the length of the sensitive Este valor do parmetro define o comprimento do sensvel square at the page corner. quadrado no canto da pgina. Example: Exemplo:

myBook.autoFlipProp = 100; myBook.autoFlipProp = 100; _________________________________________________________________________________ _________________________________________________________________________________ flipOnClickProp flipOnClickProp : Boolean : Boolean Defines the page flipping method. Define a pgina virar mtodo. Turned on (true): you can drag pages by click-and-drag and flip Ligado (true): voc pode arrastar as pginas por clicar e arrastar-e virar pages by corner click-release. pginas de canto clique libertao. Turned off (false): you can drag pages by corner click-and-drag and flip Desligado (false): voc pode arrastar pelo canto de pginas clique e arraste e virar pages by corner click-release. pginas de canto clique libertao. Example: Exemplo: myBook.flipOnClickProp = false; myBook.flipOnClickProp = false; _________________________________________________________________________________ _ _________________________________________________________________________________ _ moveSpeedProp moveSpeedProp : Number : Nmero Page moving speed during normal page flipping (dragging). Pgina movendo velocidade durante virar de pgina normal (arrastando). Example: Exemplo: myBook.moveSpeedProp = 5; myBook.moveSpeedProp = 5; _________________________________________________________________________________ _ _________________________________________________________________________________ _ closeSpeedProp closeSpeedProp : Number : Nmero Automatic page moving speed on release of the mouse button. Pgina automtica movendo velocidade na liberao do boto do mouse. Example: Exemplo: myBook.closeSpeedProp = 5; myBook.closeSpeedProp = 5; _________________________________________________________________________________ _ _________________________________________________________________________________ _ gotoSpeedProp gotoSpeedProp : Number : Nmero Automatic page moving speed with the Pgina automtica movendo com a velocidade gotoPage, flipGotoPage, flipForward and flipBack gotoPage, flipGotoPage, flipForward e flipBack functions enabled. funes habilitadas. Example: Exemplo: Page 24 Pgina 24 myBook.gotoSpeedProp = 5; myBook.gotoSpeedProp = 5; _________________________________________________________________________________ _ _________________________________________________________________________________ _ alwaysOpenedProp alwaysOpenedProp

: Number : Nmero Read Only Somente leitura Defines the behavior of the first and last pages. Define o comportamento das primeira e ltima pginas. If true , the first and last pages and bound to the stage, Se for verdade, as primeira e ltima pginas que se dirijam para o palco, preventing the user from flipping them. impedindo que o usurio lanando-los. Example: Exemplo: trace(myBook.alwaysOpenedProp); trace (myBook.alwaysOpenedProp); _________________________________________________________________________________ _ _________________________________________________________________________________ _ width largura : Number : Nmero Component width. Largura do componente. Use this property instead of _width . Utilize esta propriedade em vez de _width. Example: Exemplo: myBook.width = 500; myBook.width = 500; _________________________________________________________________________________ _ _________________________________________________________________________________ _ height altura : Number : Nmero Component height. Altura do componente. Use this property instead of _height . Utilize esta propriedade em vez de _height. Example: Exemplo: myBook.height = 500; myBook.height = 500; _________________________________________________________________________________ _ _________________________________________________________________________________ _ totalPages TotalPages : Number : Nmero Read Only Somente leitura The number of pages in the book. O nmero de pginas do livro. Example: Exemplo: trace( myBook.totalPages ); trace (myBook.totalPages); _________________________________________________________________________________ _ _________________________________________________________________________________ _ leftPageNumber leftPageNumber : Number : Nmero Read Only Somente leitura The current left page number. O nmero da pgina atual esquerda. Please note that page numbering starts with 0. Por favor, note que a numerao de pginas comea com 0. Example: Exemplo: trace( myBook.leftPageNumber ); trace (myBook.leftPageNumber); Page 25 Pgina 25

_________________________________________________________________________________ _ _________________________________________________________________________________ _ rightPageNumber rightPageNumber : Number : Nmero Read Only Somente leitura The current right page number. O nmero da pgina atual certo. Please note that page numbering starts with 0. Por favor, note que a numerao de pginas comea com 0. Example: Exemplo: trace( myBook.rightPageNumber ); trace (myBook.rightPageNumber); _________________________________________________________________________________ _ _________________________________________________________________________________ _ enabledProp enabledProp : Boolean : Boolean Book status. Status do livro. Setting it to false disables mouse click sensitivity of the component. Defini-lo como falso sensibilidade do mouse clique desabilita do componente. Example: Exemplo: myBook.enabledProp = false; myBook.enabledProp = false; _________________________________________________________________________________ _ _________________________________________________________________________________ _ progress progresso : Number : Nmero Read Only Somente leitura Book page loading percentage in the total preload mode (load on demand = false). Livro porcentagem de carregamento da pgina no modo de pr-carga total (carga on demand = false). Example: Exemplo: _root.onEnterFrame = function(){ _root.onEnterFrame = function () { if ( myBook.progress < 100 ) if (myBook.progress <100) myPreloader.setProgress(myBook.progress ); myPreloader.setProgress (myBook.progress); else { else { myPreloader.removeMovieClip(); myPreloader.removeMovieClip (); delete this.onEnterFrame; excluir this.onEnterFrame; gotoAndPlay( 2 ); gotoAndPlay (2); }} }} Component Methods Mtodos de componentes _________________________________________________________________________________ _ _________________________________________________________________________________ _ flipCorner flipCorner ( cornerPosition ) (CornerPosition) Automatically bends the corner of the designated page. Automaticamente dobra o canto da pgina designados. The permissible values of the Os valores admissveis do cornerPosition cornerPosition parameter parmetro are as follows: so como se segue:

"top-left" - "Superior esquerdo" "top-right" - "Top-direito" "bottom-left" - "Inferior esquerdo" "bottom-right" - "Inferior direito" Example: Exemplo: Page 26 Pgina 26 myBook.onPageLoad = function( URL, pageNumber ){ myBook.onPageLoad = function (URL, pageNumber) { if( pageNumber == 0 ) if (pageNumber == 0) this.flipCorner( "top-right" ); this.flipCorner ("top-right"); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ gotoPage gotoPage ( pageNumber ) (PageNumber) Goes to the designated page by flipping all pages from current to target page. Vai para a pgina designada lanando todas as pginas do atual para pgina de destino. Example: Exemplo: goto_page_10_btn.onPress = function(){ goto_page_10_btn.onPress = function () { myBook.gotoPage( 10 ); myBook.gotoPage (10); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ flipGotoPage flipGotoPage ( pageNumber ) (PageNumber) Goes to the designated page by flipping one page. Vai para a pgina designada virando uma pgina. Example: Exemplo: goto_page_10_btn.onPress = function(){ goto_page_10_btn.onPress = function () { myBook.flipGotoPage( 10 ); myBook.flipGotoPage (10); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ directGotoPage directGotoPage ( pageNumber ) (PageNumber) Immediately goes to the designated page without flipping. Imediatamente vai para a pgina designada sem inverso. goto_page_10_btn.onPress = function(){ goto_page_10_btn.onPress = function () { myBook.directGotoPage( 10 ); myBook.directGotoPage (10); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ flipForward flipForward

() () Flips the book one page forward. Inverte o livro uma pgina para a frente. Example: Exemplo: next_btn.onPress = function(){ next_btn.onPress = function () { myBook.flipForward(); myBook.flipForward (); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ flipBack flipBack () () Flips the book one page back. Inverte o livro uma pgina para trs. Page 27 Pgina 27 Example: Exemplo: previous_btn.onPress = function(){ previous_btn.onPress = function () { myBook.flipBack(); myBook.flipBack (); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ setSize setSize (width, height) (Largura, altura) Sets component size. Define o tamanho do componente. Example: Exemplo: myBook.setSize( 500, 500 ); myBook.setSize (500, 500); _________________________________________________________________________________ _ _________________________________________________________________________________ _ getPageLink getPageLink (pageNumber): MovieClip (PageNumber): MovieClip Returns the link to the page movie clip with the pageNumber number. Retorna o link para o clipe de filme pgina com o nmero pageNumber. Please note that page numbering Por favor, note que a numerao de pgina starts with 0. comea com 0. Example: Exemplo: var page_3 = myBook.getPageLink( 3 ); var page_3 = myBook.getPageLink (3); page_3.gotoAndPlay( 2 ); page_3.gotoAndPlay (2); _________________________________________________________________________________ _________________________________________________________________________________ isPageVisible isPageVisible (pageNumber): Boolean (PageNumber): Boolean Returns true if the page with pageNumber number is currently visible to the user. Retorna true se a pgina com nmero pageNumber est visvel para o usurio. Please note that page Por favor, note que a pgina numbering starts with 0. numerao comea com 0. Example: Exemplo: If( myBook.isPageVisible( 3 ) )trace("Page #3 is visible!"); Se (myBook.isPageVisible (3)) trace

("Page # 3 visvel!"); _________________________________________________________________________________ _ _________________________________________________________________________________ _ isPageLoaded isPageLoaded (pageNumber): Boolean (PageNumber): Boolean Returns true if the page with pageNumber number is currently loaded. Retorna true se a pgina com nmero pageNumber carregado no momento. Please note that page Por favor, note que a pgina numbering starts with 0. numerao comea com 0. Example: Exemplo: If( myBook.isPageLoaded( 3 ) )trace("Page #3 is loaded!"); Se (myBook.isPageLoaded (3)) trace ("Page # 3 carregado!"); _________________________________________________________________________________ _ _________________________________________________________________________________ _ getPageURL getPageURL (pageNumber): String (PageNumber): String Returns the URL of the page with the pageNumber number. Retorna a URL da pgina com o nmero pageNumber. Page 28 Pgina 28 Example: Exemplo: If( myBook.isPageLoaded( 3 ) )trace("Page "+ myBook.getPageURL(3) + " is Se (myBook.isPageLoaded (3)) trace ("Page" + myBook.getPageURL (3) + " loaded!"); carregado! "); _________________________________________________________________________________ _ _________________________________________________________________________________ _ getPageParams getPageParams (pageNumber): Object (PageNumber): Object Returns for the page with the pageNumber number whose data object was sent to the page movie clip Retorna para a pgina com o nmero pageNumber cujos dados objeto foi enviado para o clipe de filme pgina via URL. atravs de URL. <page>some_page.swf?id=1&textFile=texts/01.txt</page> <page> some_page.swf? id = 1 & TextFile = texts/01.txt <pgina /> Example: Exemplo: var page_3_data = myBook.getPageParams( 3 ); var page_3_data = myBook.getPageParams (3); trace("Page 3 id is: " + page_3_data.id); trace ("Pgina 3 ID :" + page_3_data.id); _________________________________________________________________________________ _ _________________________________________________________________________________ _ isLeftPage isLeftPage (pageNumber): Boolean (PageNumber): Boolean Returns true if the page with the pageNumber number is to the left of the book center. Retorna verdadeiro se a pgina com o nmero pageNumber para a esquerda do centro do livro. Example: Exemplo:

If( myBook.isLeftPage( 3 ) )trace("Page #3 is on the left!"); Se (myBook.isLeftPage (3)) trace ("Page # 3 esquerda!"); _________________________________________________________________________________ _ _________________________________________________________________________________ _ isRightPage isRightPage (pageNumber): Boolean (PageNumber): Boolean Returns true if the page with the pageNumber number is to the right of the book center. Retorna true se a pgina com o nmero pageNumber est direita do centro de livro. Example: Exemplo: If( myBook.isRightPage( 3 ) )trace("Page #3 is on the right!"); Se (myBook.isRightPage (3)) trace ("Page # 3 a direita!"); Component Events Eventos de componentes _________________________________________________________________________________ _ _________________________________________________________________________________ _ onClick onClick ( pageNumber, page_mc, isCornerClick ) (PageNumber, page_mc, isCornerClick) Occurs on mouse-clicking a page. Ocorre no mouse clique uma pgina. pageNumber : Number pageNumber: Nmero is the number of the clicked page o nmero da pgina clicado page_mc : Number page_mc: Nmero is the link to the movie clip of the clicked page o link para o clipe de filme da pgina clicado isCornerClick : Boolean isCornerClick: Boolean is the parameter defining if the mouse click occurred in the corner (true) or in the o parmetro que define se o trinco de rato ocorreu no canto (true) ou na middle (false) of the page. mdio (falso) da pgina. Example: Exemplo: myBook.onClick = function( pageNumber, page_mc, isCornerClick ){ myBook.onClick = function (pageNumber, page_mc, isCornerClick) { if( page_mc.isRightPage )this.flipForward(); if (page_mc.isRightPage) this.flipForward (); else this.flipBack(); mais this.flipBack (); Page 29 Pgina 29 }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onPutPage onPutPage ( pageNumber, page_mc ) (PageNumber, page_mc) Occurs on every page flipping. Ocorre em todas as pginas virando. pageNumber : Number pageNumber: Nmero is the number of the page that was turned over. o nmero da pgina que foi entregue. This number depends on the Este nmero depende do flipping direction. lanando direo. page_mc : MovieClip page_mc: MovieClip is the link to the movie clip of the page that was turned over o link para o clipe de filme da pgina que foi entregue

Example: Exemplo: myBook.onPutPage = function( pageNumber, page_mc ){ myBook.onPutPage = function (pageNumber, page_mc) { trace("left page: " + this.leftPageNumber); trace ("pgina da esquerda:" + this.leftPageNumber); trace("right page: " + this.rightPageNumber); trace ("pgina certa:" + this.rightPageNumber); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onStartFlip onStartFlip ( pageNumber ) (PageNumber) Occurs on flipping the page with the pageNumber number. Ocorre em virar a pgina com o nmero pageNumber. Example: Exemplo: myBook.onStartFlip = function( pageNumber ){ myBook.onStartFlip = function (pageNumber) { var page_mc = this.getPageLink( page_number ); var page_mc = this.getPageLink (PAGE_NUMBER); page_mc.gotoAndStop( 2 ); page_mc.gotoAndStop (2); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onFlipBack onFlipBack ( pageNumber ) (PageNumber) Occurs on returning the page with the pageNumber number to the initial position. Ocorre em voltar a pgina com o nmero pageNumber para a posio inicial. Example: Exemplo: myBook.onFlipBack = function( pageNumber ){ myBook.onFlipBack = function (pageNumber) { var page_mc = this.getPageLink( page_number ); var page_mc = this.getPageLink (PAGE_NUMBER); page_mc.gotoAndStop( 1 ); page_mc.gotoAndStop (1); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onLastPage onLastPage () () Occurs on flipping the book to the last page. Ocorre em lanar o livro at a ltima pgina. Example: Exemplo: myBook.onLastPage = function(){ myBook.onLastPage = function () { this.flipGotoPage( 0 ); this.flipGotoPage (0); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ Page 30 Pgina 30

onFirstPage onFirstPage () () Occurs on flipping the book to the first page. Ocorre em lanar o livro na primeira pgina. Example : Exemplo: myBook.onFirstPage = function(){ myBook.onFirstPage = function () { // / / }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onEndGoto onEndGoto () () Occurs on cycle completion of Ocorre aps a concluso do ciclo de gotoPage, flipGotoPage gotoPage, flipGotoPage and e directGotoPage directGotoPage functions. funes. Example : Exemplo: myBook.onEndGoto = function(){ myBook.onEndGoto = function () { // / / }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onPageLoad onPageLoad ( pageURL, pageNumber ) (PageURL, pageNumber) Occurs on page loading in the load on demand = true mode. Ocorre no carregamento da pgina na carga sob demanda = modo verdadeiro. pageURL : String pageURL: String is the loaded page URL a URL da pgina carregada pageNumber : Number pageNumber: Nmero is the loaded page number. o nmero da pgina carregado. Example: Exemplo: myBook.onPageLoad = function( pageURL, pageNumber ){ myBook.onPageLoad = function (pageURL, pageNumber) { var page_mc = this.getPageLink( pageNumber ); var page_mc = this.getPageLink (pageNumber); page_mc.gotoAndPlay( 2 ); page_mc.gotoAndPlay (2); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onInit onInit () () Activated on successful book initialization. Ativada em inicializao livro bem sucedido. From this moment on you can apply ActionScript to the A partir deste momento voc pode aplicar para o ActionScript book. livro. This option may be useful when the book is initialized using an XML file. Esta opo pode ser til quando o livro inicializado usando um arquivo XML. Example: Exemplo:

myBook.onInit = function(){ myBook.onInit = function () { this.flipCorner("top-right"); this.flipCorner ("top-right"); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onXMLComplete onXMLComplete () () Occurs on XML file loading. Ocorre na carga do arquivo XML. Example: Exemplo: Page 31 Pgina 31 myBook.onXMLComplete = function(){ myBook.onXMLComplete = function () { // / / }} Internal Page Events Eventos internos Pgina _________________________________________________________________________________ _ _________________________________________________________________________________ _ onInit onInit () () Activated on page loading and successful setting of all its parameters. Ativada em carregamento da pgina e configurao bem-sucedida de todos os seus parmetros. Example: Exemplo: function onInit(){ onInit function () { page_number_txt.text = pageNumber; page_number_txt.text = pageNumber; }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onOpen onOpen () () Activated as soon as the page becomes visible to the user on flipping completion. Ativado assim que a pgina se torna visvel para o usurio em lanando concluso. Example: Exemplo: function onOpen(){ onOpen funo () { book.flipOnClickProp = false; book.flipOnClickProp = false; }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ onClose OnClose () () Activated as soon as the page becomes invisible to the user on flipping completion. Ativado assim que a pgina se torna invisvel para o usurio em lanando concluso. Example: Exemplo: function onClose(){ onClose function () {

// / / }} Page Properties Propriedades da Pgina _________________________________________________________________________________ _ _________________________________________________________________________________ _ params params : Object : Object The object of data sent to the page movie clip via URL. O objeto de dados enviados para o clipe de filme pgina via URL. <page>some_page.swf?id=1&textFile=texts/01.txt</page> <page> some_page.swf? id = 1 & TextFile = texts/01.txt <pgina /> Page 32 Pgina 32 Example: Exemplo: function onInit(){ onInit function () { trace("Page id is: " + params.id); trace ("id da pgina :" + params.id); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ isExternal isExternal : Boolean : Boolean Shows if the page is external or belongs to the movie clip library. Mostra se a pgina externo ou pertence biblioteca de clipe de filme. Example: Exemplo: var page3 = myBook.getPageLink( 3 ); var page3 = myBook.getPageLink (3); trace( page3.isExternal ); trace (page3.isExternal); _________________________________________________________________________________ _ _________________________________________________________________________________ _ book livro : MovieClip : MovieClip Link to the parent component of the book. Link para o componente pai do livro. Example: Exemplo: function onOpen(){ onOpen funo () { book.flipCorner("bottom-right"); book.flipCorner ("bottom-direito"); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ URL URL : String : String Page URL. URL da pgina. Example: Exemplo: var page3 = myBook.getPageLink( 3 ); var page3 = myBook.getPageLink (3); trace( page3.URL ); trace (page3.URL);

_________________________________________________________________________________ _ _________________________________________________________________________________ _ pageNumber pageNumber : Number : Nmero Page number. O nmero de pgina. Example: Exemplo: function onInit(){ onInit function () { page_number_txt.text = pageNumber; page_number_txt.text = pageNumber; }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ loaded carregado : Boolean : Boolean Returns true if the page is loaded. Retorna true se a pgina carregada. Example: Exemplo: var page3 = myBook.getPageLink( 3 ); var page3 = myBook.getPageLink (3); Page 33 Pgina 33 trace( page3.loaded ); trace (page3.loaded); _________________________________________________________________________________ _ _________________________________________________________________________________ _ visible visvel : Boolean : Boolean Returns true if the page is visible to the user. Retorna true se a pgina visvel para o usurio. Example: Exemplo: var page3 = myBook.getPageLink( 3 ); var page3 = myBook.getPageLink (3); trace( page3.visible ); trace (page3.visible); _________________________________________________________________________________ _ _________________________________________________________________________________ _ width largura : Number : Nmero Page width. Largura da pgina. Example: Exemplo: function onInit(){ onInit function () { _x = -width; _x = largura; }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ height altura : Number : Nmero Page height. Altura da pgina.

Example: Exemplo: function onInit(){ onInit function () { _y = -height; _y = altura; }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ isLeftPage isLeftPage : Number : Nmero Returns Retorna true verdadeiro if the page is to the left of the book center. Se a pgina para a esquerda do centro do livro. Example: Exemplo: function onInit(){ onInit function () { if( isLeftPage )trace("Page: " + pageNumber + " is on the left!"); if (isLeftPage) trace ("Pgina:" + + pageNumber! "est esquerda"); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ isRightPage isRightPage : Number : Nmero Returns Retorna true verdadeiro if the page is to the right of the book center. Se a pgina para a direita do centro livro. Example: Exemplo: function onInit(){ onInit function () { if( isRightPage )trace("Page: " + pageNumber + " is on the right!"); if (isRightPage) trace ("Pgina:" + + pageNumber! "est direita"); }} _________________________________________________________________________________ _ _________________________________________________________________________________ _ progress progresso : Number : Nmero Page 34 Pgina 34 Percentage of page file loading. Percentual de carregamento do arquivo de pgina. Example: Exemplo: _root.onEnterFrame = function(){ _root.onEnterFrame = function () { var page3 = myBook.getPageLink(3); var page3 = myBook.getPageLink (3); trace( page3.progress ); trace (page3.progress); }} Page 35 Pgina 35 How To? Como? This section contains solutions to the most frequent tasks you might have to tackle using the Esta seo contm solues para as tarefas mais freqentes voc pode ter que enfrentar usando o

component. componente. Use Component API Use API Component The API (Application Programming Interface) is a set of properties, methods and events of the A API (Application Programming Interface) um conjunto de propriedades, mtodos e eventos da component available via use of the ActionScript (1.0/2.0) programming language. componente disponvel atravs do uso da linguagem de programao ActionScript (1.0/2.0). The powerful API A API poderoso enables creation of really complex applications using our component. permite a criao de aplicaes realmente complexas usando nosso componente. Examples of practical API use are contained in the FLA demonstrations provided with the component. Exemplos de utilizao prtica API esto contidos nas manifestaes FLA fornecidos com o componente. In order to use ActionScript with the component we should first assign a name for the component A fim de usar o ActionScript com o componente que deve primeiro atribuir um nome para o componente instance on the stage. instncia no palco. For clarity's sake let us name our first component instance myBook . Por razes de clareza, vamos nomear o nosso MyBook primeira instncia do componente. Now we can use ActionScript for our component instance by name reference. Agora podemos usar o ActionScript para a nossa instncia do componente por referncia nome. For example, the next Por exemplo, o prximo code acquires the link to the movie clip of the first page (page numeration starts with 0) and sends the cdigo adquire o link para o clipe de filme da primeira pgina (pgina numerao comea com 0) e envia o command to the movie clip of the page to switch to frame 5: comando para o clipe de filme da pgina para alternar para enquadrar 5: var page0 = myBook.getPageLink( 0 ); var Page0 = myBook.getPageLink (0); page3. gotoAndStop ( 5 ); . page3 gotoAndStop (5); The ActionScript code interacting with the component is located in the first frame of the movie O cdigo ActionScript interagir com o componente est localizado no primeiro quadro do filme containing the component. que contm o componente. You can also access the component from your classes. Voc tambm pode acessar o componente de suas classes. The component API contains the properties, methods and events of the component. A API do componente contm as propriedades, mtodos e eventos do componente. You can also use Voc tambm pode usar the ActionScript properties and events of separate pages. as propriedades do ActionScript e eventos de pginas separadas. Components properties are dynamic component properties some of which are read-only. Propriedades componentes so propriedades de componentes dinmicos algumas das quais so somente leitura. The O flipOnClickProp property, the ActionScript counterpart of the Flip on Click component, is a good flipOnClickProp propriedade, a contrapartida do ActionScript Virar na componente Click, uma boa example. exemplo. You can change the value of this property while executing a Flash application in the Voc pode alterar o valor dessa propriedade durante a execuo de um aplicativo Flash na following way: seguindo da seguinte maneira: myBook.flipOnClickProp = false ; myBook.flipOnClickProp = false; A detailed description of all the component properties is given in the appropriate section of API Uma descrio detalhada de todas as propriedades do componente dada na seco adequada de API description. descrio. Component Events. Generally speaking, these are the functions called by the component during Eventos de componentes. De um modo geral, estas so as funes chamadas pelo componente durante execution. a execuo. It is you who creates the body of such a function to process various events.

voc quem cria o corpo de tal funo para processar vrios eventos. For example, Por exemplo, the next ActionScript code is called on each page flipping and prints the numbers of the current left o cdigo ActionScript seguinte chamado em cada pgina que sacode e imprime os nmeros da esquerda atual and right page: e pgina da direita: Page 36 Pgina 36 myBook.onPutPage = function ( pageNumber, page_mc ){ myBook.onPutPage = function (pageNumber, page_mc) { trace ( this .leftPageNumber + "/" + this .rightPageNumber); trace (este leftPageNumber + "/" + esta rightPageNumber..); }} It should be noted that to call the component methods or parameters within the component event body Deve notar-se que, para chamar os mtodos de componentes ou parmetros dentro do corpo evento componente you should use key word this and not the component occurrence name. voc deve usar esta palavrachave e no o nome de ocorrncia do componente. A detailed description of all the component events is given in the appropriate section of API Uma descrio pormenorizada de todos os eventos de componentes dada na seco adequada de API description. descrio. The component methods are used to make the component perform actions ie moving to the next Os mtodos de componentes so usados para fazer o componente de executar aces - ie mover-se para o prximo page. pgina. The next code may be used to automatically bend the right corner of each page corner on loading O cdigo seguinte pode ser usado para dobrar automaticamente o canto direito de cada canto da pgina sobre o carregamento the first page: primeira pgina: myBook.onPageLoad = function ( pageURL, pageNumber ){ myBook.onPageLoad = function (pageURL, pageNumber) { if ( pageNumber == 0 ) this .flipCorner("bottom-right"); if (pageNumber == 0) este flipCorner ("bottom-right").; }} The next code can be used for creating buttons on the stage which would trigger moving to the next O cdigo seguinte pode ser usado para a criao de botes na fase que provocaria mover-se para o prximo page. pgina. on ( release ){ on (release) { myBook.flipForward(); myBook.flipForward (); }} A detailed description of all the component methods is given in the appropriate section of API Uma descrio detalhada de todos os mtodos de componentes dada na seco adequada de API description. descrio. Page properties are read-only data specific to each particular page. Propriedades da pgina so somente leitura de dados especficos para cada pgina particular. The pageNumber property which A propriedade que pageNumber stores the page number is a good example. armazena o nmero da pgina um bom exemplo. You can use the value of this property to display the page Voc pode usar o valor dessa propriedade para exibir a pgina number in a text field. nmero em um campo de texto. The code in the first frame of the page is as follows: O cdigo no primeiro quadro da pgina a seguinte: function onInit(){ onInit function () {

page_number_txt. text = pageNumber; page_number_txt text = pageNumber.; }} The properties of each particular page may also be obtained in the parent movie and book events or by As propriedades de cada pgina particular podem tambm ser obtidos no filme pai e eventos de livro ou por means of the link to the movie of the page: atravs do link para o filme da pgina: myBook.onClick = function ( pageNumber, page_mc, isCornerClick ){ myBook.onClick = function (pageNumber, page_mc, isCornerClick) { trace ("Page number is: " + page_mc.pageNumber ); trace ("Nmero da pgina :" + page_mc.pageNumber); trace ("Page URL is: " + page_mc.URL ); trace ("URL da pgina :" + page_mc.URL); trace ("Is left page?: " + page_mc.isLeftPage); trace (" deixada pgina:" + page_mc.isLeftPage); }} A detailed description of all the component properties is given in the appropriate section of API Uma descrio detalhada de todas as propriedades do componente dada na seco adequada de API description. descrio. Page properties are page specific and are only called within each page. Propriedades da pgina so pgina especfica e s so chamados dentro de cada pgina. There are only three of such Existem apenas trs de tais properties: propriedades: Page 37 Pgina 37 onInit is called when the page is loaded and can be used onInit chamado quando a pgina carregada e pode ser usado onOpen is called when the page becomes visible to the user after scrolling onOpen chamado quando a pgina se torna visvel para o usurio depois de rolagem onClose is called when the page becomes invisible to the user after scrolling onClose chamado quando a pgina se torna invisvel para o usurio depois de rolagem function onOpen(){ onOpen funo () { trace("Page #" + pageNumber + " is visible!"); trace ("Page #" + pageNumber + " visvel!"); }} The detailed description of all the page events is given in the appropriate section of API description. A descrio detalhada de todos os eventos da pgina dado na seo apropriada de descrio API. Page 38 Pgina 38 Set External XML File Parameter Using ActionScript Configure o Parmetro arquivo externo em XML usando ActionScript The component has no corresponding ActionScript parameter, but you can create component instances O componente tem nenhum parmetro ActionScript correspondente, mas voc pode criar instncias de componentes using the attachMovie function. usando a funo attachMovie. In this case the External XML File parameter can be assigned any Neste caso, o parmetro arquivo XML externo pode ser atribudo qualquer value: valor: var initObj = new Object (); var initObj = new Object (); initObj.extXML = "config.xml"; initObj.extXML = "config.xml"; initObj. _x = 275; initObj _x = 275.; initObj. _y = 200; initObj _y = 200.; _ root. attachMovie("FFlippingBookSymbol", "myBook", 0, initObj); _ Raiz attachMovie ("FFlippingBookSymbol", "MyBook", 0, initObj).; myBook.onXMLComplete = function (){ myBook.onXMLComplete = function () {

trace ("XML is loaded.."); trace ("XML carregado .."); }} Important: the component symbol must be exported in the very first frame. Importante: o smbolo do componente deve ser exportado no primeiro quadro. The demonstration FLA file can be found in the component archive at demos/runtime- A demonstrao FLA pode ser encontrada no arquivo do componente em demos/runtimecreation/demo_xml.fla criao / demo_xml.fla Page 39 Pgina 39 Set Page List using ActionScript Definir Lista Page usando ActionScript The component does not enable you to manage a page array during the work, but you can create O componente no permitem que voc gerencie uma matriz de pgina durante o trabalho, mas voc pode criar component instances using the attachMovie function. instncias de componentes usando a funo attachMovie. Should this be the case you can define a page Se este for o caso, voc pode definir uma pgina array: matriz: var initObj = new Object (); var initObj = new Object (); initObj.pagesSet = new Array (); initObj.pagesSet = new Array (); initObj.pagesSet. push ("page0"); initObj.pagesSet empurrar ("Page0."); initObj.pagesSet. push ("page1"); initObj.pagesSet empurrar ("Pgina1").; initObj.pagesSet. push ("page2"); initObj.pagesSet empurrar ("page2."); initObj.pagesSet. push ("page3"); initObj.pagesSet empurrar ("page3."); initObj.pagesSet. push ("page4"); initObj.pagesSet empurrar ("Pgina4."); initObj.pagesSet. push ("page5"); initObj.pagesSet empurrar ("page5."); initObj.firstPage = 0; initObj.firstPage = 0; initObj.scaleContent = true ; initObj.scaleContent = true; initObj.alwaysOpened = false ; initObj.alwaysOpened = false; initObj.autoFlip = 125; initObj.autoFlip = 125; initObj.flipOnClick = true ; initObj.flipOnClick = true; initObj.shadowsDepth = 2; initObj.shadowsDepth = 2; initObj.staticShadowsDepth = 2; initObj.staticShadowsDepth = 2; initObj.moveSpeed = 5; initObj.moveSpeed = 5; initObj.closeSpeed = 4; initObj.closeSpeed = 4; initObj.gotoSpeed = 5; initObj.gotoSpeed = 5; initObj.flipSound = ""; initObj.flipSound = ""; initObj.pageBack = 9995639; initObj.pageBack = 9995639; initObj.loadOnDemand = true ; initObj.loadOnDemand = true; initObj.cachePages = true ; initObj.cachePages = true; initObj.cacheSize = 4; initObj.cacheSize = 4; initObj.preloaderType = "Round"; initObj.preloaderType = "Round"; initObj.userPreloaderId = true ; initObj.userPreloaderId = true; initObj.extXML = ""; initObj.extXML = ""; initObj._x = 275; initObj._x = 275; initObj._y = 200; initObj._y = 200; _ root . attachMovie ("FFlippingBookSymbol", "myBook", 0, initObj); _ Raiz attachMovie ("FFlippingBookSymbol", "MyBook", 0, initObj).; myBook. setSize (500, 300); . MyBook setSize (500, 300); Important: the component symbol must be exported in the very first frame. Importante: o smbolo do componente deve ser exportado no primeiro quadro.

Page 40 Pgina 40 The demonstration FLA file can be found in the component archive at demos/runtime- A demonstrao FLA pode ser encontrada no arquivo do componente em demos/runtimecreation/demo.fla criao / demo.fla Page 41 Pgina 41 Make Custom Preloader Faa Preloader personalizado Our component enables the use of two types of standard preloaders circular and rectangular. O nosso componente permite a utilizao de dois tipos de preloaders padro - circulares e rectangular. You can Voc pode also create and use your own preloader. tambm criar e usar o seu prprio preloader. The component preloader standard or custom is stored in the movie library. O preloader componente - padro ou personalizado - armazenado na biblioteca de filmes. At the beginning of No incio do work the component copies the preloader in use from the library onto each page. trabalhar o componente copia o preloader no uso da biblioteca para cada pgina. While loading page Ao carregar a pgina data the component calls the setProgress preloader function by sending it the data load percentage as a os dados do componente chama a funo preloader setProgress, enviando-lhe o percentual de carga de dados como um parameter. parmetro. Each preloader contains the setProgress( pt ) function which performs all the necessary Cada preloader contm o setProgress funo (PT) que executa todo o necessrio functions (eg increases the progress bar width). funes (por exemplo, aumenta a largura da barra de progresso). The FLA file with the text preloader example can be found in the component archive at demos/custom- O arquivo FLA com o exemplo preloader texto pode ser encontrada no arquivo do componente em demos/custompreloader/demo.fla preloader / demo.fla Now you need to create a preloader instance in the movie library and export it for ActionScript. Agora voc precisa criar uma instncia de preloader na biblioteca de filmes e export-lo para o ActionScript. You can create the necessary graphics and implant the body of the setProgress ( pt ) function into the possvel criar os grficos necessrias e implantar o corpo do setProgress funo (PT) na movie. filme. This function acquires the percentage of page loading progress from the component and Esta funo adquire a percentagem de progresso de carregamento da pgina a partir do componente e provides its graphical representation. fornece sua representao grfica. For example: Por exemplo: Page 42 Pgina 42 function setProgres setProgres funo )) s( pt { s (pt { progress_txt. text = Math.round (pt); . progress_txt text = Math.round (pt); }} setProgress( 0 ); setProgress (0); The only function of this code is to display the percentage of page or whole book loading progress in A nica funo deste cdigo para exibir a porcentagem da pgina ou progresso do carregamento todo livro em the text field. o campo de texto. To ensure component compatibility with your custom preloader you need to set the Preloader Type Para garantir a compatibilidade com o seu preloader componente personalizado que voc precisa definir o tipo Preloader

parameter to User Defined and set the linkage name of the preloader movie clip symbol parmetro para User Defined e definir o nome de vinculao do smbolo de clipe de filme preloader (MyPreloaderId) in the User Preloader parameter: (MyPreloaderId) no parmetro Preloader Usurio: Page 43 Pgina 43 Create Wide Pages Criar pginas de largura The best way to fit a wide page is to split it in two parts and use the parts separately. A melhor maneira para atender a uma pgina de largura dividi-la em duas partes e usar as peas separadamente. This option works Esta opo funciona best for JPEG images. melhor para imagens JPEG. But what if your wide page contains SWF content with animation? Mas o que se sua pgina de largura contm contedo SWF com animao? In this case splitting the wide page Neste caso, a separao pgina de largura in two is not a convenient option. em dois, no uma opo conveniente. Moreover, the component cannot use the same file for two pages. Alm disso, o componente no pode usar o mesmo arquivo para duas pginas. In any case you would have to Em qualquer caso, voc teria que specify and load your file twice. especificar e carregar o arquivo duas vezes. However, you can automatically match the two halves so that they No entanto, voc pode fazer corresponder automaticamente as duas metades para que eles look like a whole. olhar como um todo. This problem can be solved by placing additional ActionScript into the wide page clip to shift the right Este problema pode ser resolvido colocando ActionScript adicional no clipe pgina de largura para deslocar a direita side of the wide page to the left immediately upon loading: lado da pgina de largura para a esquerda imediatamente aps o carregamento: function onInit(){ onInit function () { if ( !isLeftPage ) _x = - width ; se _x = - largura (isLeftPage!); }} The example of such an approach can be found in the component archive at demos/wide-page/ O exemplo de uma tal abordagem pode ser encontrada no arquivo do componente em demos / widepage / desynchronized/ dessincronizado / Now, what if such a page also contains animation? Agora, e se esse tipo de pgina tambm contm animao? In this case you can use pages from the movie Neste caso, voc pode usar pginas do filme library. biblioteca. This guarantees simultaneous placement of such pages. Isso garante a colocao simultnea de tais pginas. The external files are still loaded at different times and in this case the animation will not be Os ficheiros externos so ainda carregado em tempos diferentes e, neste caso, a animao no ser synchronous. sncrona. But don't worry we can address this issue by changing the structure of your page ie empty all the Mas no se preocupe - ns podemos resolver este problema alterando a estrutura de sua pgina - ou seja, todo o vazio animation from the first frame. animao a partir do primeiro quadro. This is the frame to be displayed immediately on page loading. Este o quadro a ser apresentado imediatamente no carregamento da pgina. The O animation would begin from the second frame. animao comearia a partir do segundo quadro. In both cases we can create ActionScript code in the Em ambos os casos, podemos criar um cdigo ActionScript no main movie which would control loading of both pages and launch their animation only provided that filme principal, que seria controlar a carga de ambas as pginas e lanar sua animao s, desde que

they are both completely loaded. ambos so completamente carregado. wideLeftPageNumber = 1; wideLeftPageNumber = 1; wideRightPageNumber = 2; wideRightPageNumber = 2; myBook.onPageLoad = function (pageURL, pageNumber){ myBook.onPageLoad = function (pageURL, pageNumber) { if ( pageNumber == wideLeftPageNumber || pageNumber == wideRightPageNumber && if (PageNumber == wideLeftPageNumber | | pageNumber == wideRightPageNumber && !_ root . onEnterFrame ) ! Raiz _. OnEnterFrame) _ root . onEnterFrame = checkWidePages; . _ Raiz onEnterFrame = checkWidePages; }} function checkWidePages(){ checkWidePages function () { var leftWidePage = myBook.getPageLink( wideLeftPageNumber ); var leftWidePage = myBook.getPageLink (wideLeftPageNumber); var rightWidePage = myBook.getPageLink( wideRightPageNumber ); var rightWidePage = myBook.getPageLink (wideRightPageNumber); if ( leftWidePage.loaded && rightWidePage.loaded ){ if (&& leftWidePage.loaded rightWidePage.loaded) { leftWidePage. gotoAndPlay (2); . leftWidePage gotoAndPlay (2); rightWidePage. gotoAndPlay (2); . rightWidePage gotoAndPlay (2); delete this.onEnterFrame ; excluir this.onEnterFrame; }} }} Page 44 Pgina 44 As soon as one of the two halves begins loading the checkWidePages function begins to monitor Logo que uma das duas metades comea a carregar a funo checkWidePages comea a monitorar loading of both pages. carregamento de ambas as pginas. As soon as page loading is complete the function brings each page to the second Assim como o carregamento da pgina concluda a funo de cada pgina traz para o segundo frame, which already contains animation, etc. quadro, que j contm animao, etc An example of such an approach can be found in the component archive at demos/wide-page/ Um exemplo desse tipo de abordagem pode ser encontrada no arquivo do componente em demos / widepage / synchronized/ sincronizada / Page 45 Pgina 45 Curl First Page Corner Automatically Curl canto da primeira pgina automaticamente This can be done very easily by using ActionScript and component API. Isto pode ser feito facilmente usando o ActionScript e API componente. Place this code into the first Coloque este cdigo para o primeiro frame of your movie (let us suppose that the component instance is named myBook): quadro do seu filme (vamos supor que a instncia do componente chamado MyBook): myBook.onPageLoad = function ( pageURL, pageNumber ){ myBook.onPageLoad = function (pageURL, pageNumber) { if ( pageNumber == 0 ) this .flipCorner("bottom-right"); if (pageNumber == 0) este flipCorner ("bottom-right").; }} Page 46 Pgina 46 Change Book Orientation to Portrait Alterar orientao para Retrato Livro

Just rotate the book 90 degrees on the stage as shown below: Basta girar o livro 90 graus no palco como mostrado abaixo: Page 47 Pgina 47 Add Buttons/Links (Creating Table of Contents) Adicionar Botes / Links (criando o ndice) You can use regular Flash buttons and SFW pages or movie clip pages from the movie library. Voc pode usar os botes Flash regulares e as pginas de SFW ou pginas de clipe de filme a partir da biblioteca de filmes. The O greatest advantage of buttons is the transparency feature you can simply place a transparent button maior vantagem de botes o recurso de transparncia - que voc pode simplesmente colocar um boto transparente over the image of your page. sobre a imagem de sua pgina. The problem is preventing page scrolling with each click of such a such button. O problema est impedindo a rolagem da pgina com cada clique de um boto como tal. This is quite Isto bastante frustrating and prevents the creation of a table of contents for the book due to technical limitations. frustrante e impede a criao de uma tabela de contedo para o livro devido a limitaes tcnicas. This problem can be resolved by programming the Flip on Click component parameter. Este problema pode ser resolvido atravs da programao da Flip em parmetro componente Click. Thus, we need to use the following ActionScript code to create a page button pointing to a certain Assim, precisamos usar o seguinte cdigo ActionScript para criar um boto de pgina apontando para uma certa URL: URL: on ( release ){ on (release) { getURL ("your URL", _blank); getURL ("URL do seu" _blank "); }} on ( rollOver ){ em (rollOver) { book.flipOnClickProp = false ; book.flipOnClickProp = false; }} on ( rollOut ){ em (rollOut) { book.flipOnClickProp = true ; book.flipOnClickProp = true; }} This code deactivates book sensitivity to mouse clicking when mousing over the button so that the Esse cdigo desativa sensibilidade livro clique do mouse quando passar o mouse sobre o boto para que o page does not jump. pgina no saltar. Moreover, it activates book sensitivity when removing the mouse cursor from the Alm disso, ela ativa a sensibilidade livro ao remover o cursor do mouse do button. boto. On clicking the button the code opens the required URL. Ao clicar no boto o cdigo abre a URL desejada. To create a button on the page that would take API us to a certain page (let us assume page 5), use the Para criar um boto na pgina que levaria API-nos a uma determinada pgina (vamos supor pgina 5), use o following ActionScript code: o seguinte cdigo ActionScript: on ( release ){ on (release) { book.flipGotoPage( 5 ); book.flipGotoPage (5); }} on ( rollOver ){ em (rollOver) { book.flipOnClickProp = false ; book.flipOnClickProp = false; }} on ( rollOut ){ em (rollOut) { book.flipOnClickProp = true ; book.flipOnClickProp = true; }}

This code controls book sensitivity to mouse clicks and takes us to the required page by clicking the Este cdigo controla a sensibilidade livro para cliques do mouse e nos leva para a pgina desejada, clicando no button. boto. An example of such an approach can be found in the component archive at demos/navigation/demo.fla Um exemplo desse tipo de abordagem pode ser encontrada no arquivo do componente em demos / navegao / demo.fla Page 48 Pgina 48 Flip Pages Automatically Virar as pginas automaticamente One of the best ways to trigger automatic book scrolling after a certain period of time without user Uma das melhores maneiras de desencadear rolagem livro automtica aps um determinado perodo de tempo sem que o usurio intervention is to use the setInterval function in conjunction with the component API. interveno usar a funo setInterval em conjunto com o componente API. For example, for loop scrolling (ie automatic scrolling to the end and back to the first page) use the Por exemplo, para rolagem loop (ou seja, a rolagem automtica at o fim e volta para a primeira pgina) usar o following ActionScript code: o seguinte cdigo ActionScript: delay = 1000; delay = 1000; // 1 second: 1000 ms / / 1 segundo: 1000 ms forwardInterval = setInterval (myBook, "flipForward", 1000); forwardInterval = setInterval (MyBook ", flipForward", 1000); myBook.onLastPage = function () { myBook.onLastPage = function () { clearInterval(forwardInterval); clearInterval (forwardInterval); lastPageInterval = setInterval (closeLastPage, delay); lastPageInterval setInterval = (closeLastPage, atraso); }; }; function closeLastPage() { closeLastPage function () { myBook.flipGotoPage(0); myBook.flipGotoPage (0); clearInterval (lastPageInterval); clearInterval (lastPageInterval); forwardInterval = setInterval (myBook, "flipForward", 1000); forwardInterval = setInterval (MyBook ", flipForward", 1000); }} This code flips the page every second. Este cdigo vira a pgina a cada segundo. On reaching the end of the book the function returns to the first Ao chegar ao fim do livro a funo retorna para o primeiro page to restart the cycle. pgina para reiniciar o ciclo. An example of such an approach can be found in the component archive at Um exemplo de uma tal abordagem pode ser encontrada no arquivo do componente em demos/slideshow/loop/automatic_loop.fla Demos / slideshow / loop / automatic_loop.fla Page 49 Pgina 49 Print Pages Imprimir pginas Printing a book page is as easy as printing a regular movie clip. Impresso de uma pgina do livro to fcil como a impresso de um clipe de filme regular. The getPageLink method allows you O mtodo permite que voc getPageLink to acquire a link to the movie clip with pageNumber : para adquirir um link para o clipe de filme com pageNumber: page3 = myBook.getPageLink( 3 ); page3 = myBook.getPageLink (3); Now you can print the movie clip by using the print function or PrintJob class. Agora voc pode imprimir o clipe de filme usando a funo de impresso ou classe PrintJob. Please see Macromedia

Por favor, consulte Macromedia Flash documentation for details of the function operation. Documentao do Flash para detalhes da operao da funo. It should be noted that the page may not be loaded as stipulated by the printing time. Deve notar-se que a pgina no pode ser carregado como estipulado pelo tempo de impresso. Please use the Por favor, utilize o loaded property to check page availability. carregado propriedade para verificar a disponibilidade pgina. page3 = myBook.getPageLink( 3 ); page3 = myBook.getPageLink (3); if( page3.loaded ){ if (page3.loaded) { // print page / Print / pgina }} The demonstration FLA file for this topic can be found in the component archive at demos/print- A demonstrao arquivo FLA para este tpico pode ser encontrado no arquivo do componente em demos/printpages/demo.fla pginas / demo.fla Page 50 Pgina 50 Create Navigation Panel Criar Painel de Navegao You can control the book using ActionScript. Voc pode controlar o livro usando o ActionScript. The component API enables the use of various A API componente permite a utilizao de vrios navigation methods of the component: mtodos de navegao do componente: flipForward() flipForward () Moving to next page Passando para a prxima pgina flipBack() flipBack () Moving to previous page Movendo-se para a pgina anterior gotoPage( pageNumber ) gotoPage (pageNumber) Moving to the page with the pageNumber number by skipping all intermediate pages Movendo-se para a pgina com o nmero pageNumber saltando todas as pginas intermedirias flipGotoPage( pageNumber ) flipGotoPage (pageNumber) Moving to the page with the pageNumber number by skipping one page Movendo-se para a pgina com o nmero pageNumber saltando de uma pgina directGotoPage( pageNumber ) directGotoPage (pageNumber) Immediate navigation to the page with the pageNumber number, requiring no skipping Navegao imediata para a pgina com o nmero pageNumber, sem necessidade de pular One of the most convenient ways to call these methods is to use Flash buttons. Uma das formas mais convenientes para chamar esses mtodos usar botes em Flash. For example, you may Por exemplo, voc pode create the Next Page button and assign it the following ActionScript code: criar o boto Prxima Pgina e atribuir a ele o seguinte cdigo ActionScript: on ( release ){ on (release) { myBook.flipForward(); myBook.flipForward (); }} It is implied here that the component instance name is myBook. Est implcito aqui que o nome da instncia do componente MyBook. Of course, this name can be changed Naturalmente, este nome pode ser alterado to any other. a qualquer outro. An example of using such navigation buttons can be found in the component archive at Um exemplo da utilizao de botes de navegao tais pode ser encontrada no arquivo do componente em demos/navigation/demo.fla demos / navegao / demo.fla

Page 51 Pgina 51 Use Pages from Movie Library Use Pginas da biblioteca do filme Our component may be used not only for creating online flash applications but also for offline O nosso componente pode ser utilizado no s para a criao de aplicaes de flash em linha, mas tambm para fora de linha projectors for Windows / Mac OS. projetores para Windows / Mac OS. In this case all the pages may be conveniently stored in one file Neste caso, todas as pginas podem ser convenientemente armazenados em um arquivo together with the component, eliminating the need for any preloaders. em conjunto com o componente, eliminando a necessidade de quaisquer preloaders. This effect may be achieved by placing all the pages into the film library and using linkage name of Este efeito pode ser alcanado atravs da colocao de todas as pginas para a biblioteca de filmes e usando o nome de ligao de the movie clip symbol instead of URL. o smbolo de clipe de filme em vez de URL. Here are the steps required for importing your JPEG image into the movie library and setting it to work Aqui esto os passos necessrios para importar a imagem JPEG para a biblioteca de filmes e configur-lo para trabalhar in conjunction with the component. em conjunto com o componente. 1. 1. Open the FLA file (or create a new one) Abra o arquivo FLA (ou criar uma nova) 2. 2. Choose the File / Import / Import to Stage command from the main menu and select the Escolha o comando Arquivo Importar / / Importar para o estgio a partir do menu principal e selecione o required image. exigido imagem. Click OK Clique em OK 3. 3. The image will appear on the stage A imagem vai aparecer no palco 4. 4. Highlight the imported image and convert it into a movie clip (Modify / Convert to Symbol) Realce a imagem importada e convert-lo em um clipe de filme (Modificar / Convert to Symbol) 5. 5. Type the symbol name (Name) in the window: Digite o nome do smbolo (Name) na janela: 6. 6. Type the linkage name for the movie clip symbol. Digite o nome de ligao para o smbolo de clipe de filme. Highlight the Export for ActionScript and Realce o Exportar para ActionScript e Export in First Frame functions Exportar em funes do primeiro quadro 7. 7. Click OK Clique em OK 8. 8. Delete the symbol from the stage (it is already stored in the library) Excluir o smbolo do palco (que j est armazenado na biblioteca) 9. 9. Now the only thing we need to do is specify the linkage name of the page symbol instead of the Agora a nica coisa que precisamos fazer especificar o nome de vinculao do smbolo pgina em vez do file URL URL do arquivo Page 52 Pgina 52 Now the page will load together with the component and display immediately when the book Agora, a pgina ir carregar em conjunto com o componente e exibir imediatamente quando o livro launched. lanado. You can also combine different page types in one book. Voc tambm pode combinar diferentes tipos de pgina em um livro. An example of using library pages can be found in the component archive at Um exemplo da utilizao de pginas de biblioteca pode ser encontrada no arquivo do componente em demos/navigation/demo.fla demos / navegao / demo.fla Page 53 Pgina 53 Flippingbook component FAQ FlippingBook componente FAQ General Geral How does Flash Component differ from Flash Object? Como o Flash Component diferir Flash

Object? Flash Component is a standard extension for Macromedia Flash. Flash Componente - uma extenso do padro para Macromedia Flash. You simply install the MXP file Basta instalar o arquivo MXP and then you just to drag & drop the component from the Components panel onto the scene from your e ento voc s arrastar e soltar o componente do painel Componentes para a cena a partir do seu movie. filme. The component can be used in a movie with any structure. O componente pode ser usado em um filme com qualquer estrutura. You can control the component with Voc pode controlar o componente com ActionScript, for example, to create contents, a navigation panel, page print or enlargement. ActionScript, por exemplo, para criar contedos, um painel de navegao, imprima a pgina ou o alargamento. The O component can operate with XML files and with set ups, specified using a convenient development componente pode operar com arquivos XML e com set ups, especificados usando um desenvolvimento conveniente environment. ambiente. The component can operate with external files and symbols from the movie library. O componente pode operar com arquivos externos e smbolos a partir da biblioteca de filme. The object is a ready-to-use SWF file that you simply integrate into your HTML page. O objeto um arquivo de ready-to-use de SWF que voc simplesmente integrar em sua pgina HTML. We have Temos developed the object for users who do not have Macromedia Flash. desenvolveu o objeto para os usurios que no tm Macromedia Flash. The object cannot be controlled O objeto no pode ser controlado with ActionScript. com o ActionScript. It can work only with external files and set up only through an XML file. Ele pode trabalhar apenas com arquivos externos e configurar somente atravs de um arquivo XML. If you have Macromedia Flash MX or higher installed, we advise you to use the component. Se voc precisa do Macromedia Flash MX ou superior instalado, aconselhamos voc a utilizar o componente. What is the maximum size and number of pages? Qual o tamanho mximo eo nmero de pginas? The size of the book you can create using our product is unlimited. O tamanho do livro que voc pode criar usando o nosso produto ilimitado. However, in light of the fact that No entanto, tendo em conta o facto de que Flash Player works slowly with large images, the maximum recommended book size for online Flash Player funciona lentamente com imagens grandes, o tamanho mximo recomendado para o livro online viewing is 800 x 600 pixels. visualizao de 800 x 600 pixels. Large books can work slowly on slow computers. Livros grandes pode trabalhar lentamente em computadores lentos. The number of pages is also unlimited. O nmero de pginas tambm ilimitado. The component can work with books with hundreds of pages. O componente pode trabalhar com livros com centenas de pginas. As opposed to other products, our component does not store all pages in memory, so a 20-page book Ao contrrio de outros produtos, a nossa componente no armazena todas as pginas na memria, para um livro de 20 pginas will not take up 200 megabytes of RAM (which is possible if you use other products). no vai demorar at 200 megabytes de memria RAM (que possvel se voc usar outros produtos). However, No entanto, problems with performance may arise with volumes of over 1000 pages. problemas com o desempenho pode surgir com volumes de mais de 1000 pginas. Can I use PDF files with your component/object? Posso usar arquivos PDF com o componente / objeto?

Our component only supports formats that are compatible with Flash Player. Nosso nico componente suporta os formatos que so compatveis com o Flash Player. These are non- Estes so noprogressive JPEG images and SWF files for Flash Player 6-7 and also progressive JPEG, PNG and progressistas imagens JPEG e arquivos SWF para o Flash Player 6-7 e tambm JPEG progressivo, PNG e non-animated GIF images for Flash Player 8. no-animados imagens GIF para Flash Player 8. You will need to convert your PDF file page-by-page Voc vai precisar para converter o arquivo PDF pgina por pgina into SWF or JPEG files. em arquivos SWF ou JPEG. Can I use sound and video on the pages? Posso usar som e vdeo nas pginas? Yes. Sim. You can use SWF pages with embedded or uploaded sounds and video-files. Voc pode usar pginas SWF com sons incorporados ou carregado e vdeo-arquivos. Can I use contents and links on pages? Posso usar o contedo e links das pginas? Yes. Sim. You can use SWF pages with active elements (buttons, for example) in them. Voc pode usar pginas SWF com elementos ativos (botes, por exemplo) em si. And you can lock E voc pode bloquear API component calls to these buttons. Componente API chamadas para esses botes. You can find an example of the creation of similar pages in the Voc pode encontrar um exemplo de criao de pginas semelhantes na component composition. componente da composio. Is it possible to use XML files that are created on-the-fly with my possvel utilizar arquivos XML que so criados on-the-fly com o meu PHP/ASP/CFM/script? PHP / ASP / CFM / ... script? Yes. Sim. Page 54 Pgina 54 Do I need to have a programming knowledge to be able to use your Eu preciso ter um conhecimento de programao para ser capaz de usar seu component? componente? No, you can use the component without knowing ActionScript. No, voc pode usar o componente sem conhecer ActionScript. However, programming knowledge Contudo, o conhecimento de programao will enable you to solve more interesting tasks. lhe permitir resolver as tarefas mais interessantes. Purchasing Aquisitivo When and how can I get the component? Quando e como posso obter o componente? You will receive your link to download the component package immediately after payment. Voc receber o seu link para baixar o pacote de componentes imediatamente aps o pagamento. The link O link will also be sent to your mail address. tambm ser enviado para seu endereo de e-mail. Be aware that the link will only remain active for 48 hours. Esteja ciente de que o link s vai permanecer ativo por 48 horas. To Para receive the component after this time, simply send an message to sales@page-flip.com with your order receber o componente aps este tempo, basta enviar uma mensagem para sales@page-flip.com com sua ordem number or mail address that you used for the order. nmero ou endereo de e-mail que voc usou para a ordem. Can I pay for my order using PayPal? Posso pagar a minha encomenda usando o PayPal? No, we only work with 2Checkout in light of its reliability of service. No, ns s trabalhamos com 2Checkout luz da sua fiabilidade de servio. What do I get? O que eu recebo? What comes with the product? O que vem com o produto? The component package includes its MXP file, documentation, and many FLA files with examples of

O pacote inclui componente seu arquivo MXP, documentao, e muitos arquivos FLA com exemplos de component use (navigation and contents, XML use, dynamic component creation, working with video utilizao de componentes (navegao e contedo, XML uso, criao de componente dinmica, trabalhando com vdeo and sound, page enlargement, printing pages and others). e som, o alargamento da pgina, imprimir as pginas e outros). The object package contains its SWF file, XML file, documentation and an example of an HTML page O pacote de objeto contm o arquivo SWF, o arquivo XML, documentao e um exemplo de uma pgina HTML containing the object contendo o objeto You will also receive several mp3 files with different flipping sounds, which you can use with the Voc tambm receber vrios arquivos de mp3 com diferentes sons lanando, o que voc pode usar com o component. componente. Compatibility Compatibilidade Which Flash versions does your component support? Quais as verses Flash faz seu apoio componente? Macromedia Flash MX, Flash MX 2004 and Flash 8 for Windows and MacOS Macromedia Flash MX, Flash MX 2004 e Flash 8 para Windows e MacOS Which Flash Player versions does your component support? Quais as verses do Flash Player faz seu apoio componente? Flash Player 6 8.5 Flash Player 6-8,5 Troubleshooting Soluo de problemas I receive an error notice when installing the MXP file Eu recebo um aviso de erro ao instalar o arquivo MXP Make sure that you have installed the latest version of Macromedia Extension Manager. Certifique-se de que voc tenha instalado a ltima verso do Macromedia Extension Manager. You can Voc pode always download the latest version from: sempre baixar a verso mais recente: http://www.adobe.com/exchange/em_download/ http://www.adobe.com/exchange/em_download/~~V My pictures fail to load. Minhas fotos no carregam. The paths are correct Os caminhos esto corretos Perhaps you are using progressive JPEG images, but you are publishing a movie for Flash Player 6 or Talvez voc esteja usando imagens JPEG progressivas, mas voc est publicando um filme para Flash Player 6 ou Flash Player 7. Flash Player 7. Only Flash Player 8 can load progressive JPEG images, PNG and nonanimated GIF Apenas o Flash Player 8 pode carregar imagens JPEG progressivo, PNG e GIF no animado files arquivos Page 55 Pgina 55 My images load, but with distorted colors Minhas imagens de carga, mas com as cores distorcidas Your pictures are probably saved in CMYK color mode. Suas fotos so provavelmente salvou em modo de cor CMYK. Resave them in the RBG mode. Resave-los no modo RBG. My SWF files load, but they are distorted Meu SWF carregar os arquivos, mas eles so distorcidos The component scales the contained page by default. As escalas que compem a pgina contida por padro. You can cancel scaling, by setting the Scale Voc pode cancelar escala, atravs da criao da Escala

content parameter to false. parmetro para o contedo falso. When scaling, the component uses information on the size of your SWF file it contains. Quando a escala, o componente usa informaes sobre o tamanho do seu arquivo SWF que contm. For example, Por exemplo, if your page is empty and has only a small text in the center, the component calculates that the page se a pgina est vazia e tem apenas um texto pequeno no centro, o componente calcula que a pgina size is equal to the size of this text field. tamanho igual ao tamanho do presente campo de texto. In such cases you should set the page size by placing a shape Nesses casos, voc deve definir o tamanho da pgina, colocando uma forma or image under its content, the size of which is equal to the page size. ou imagem sob o seu contedo, o tamanho dos quais igual ao tamanho da pgina. You can find an example of this Voc pode encontrar um exemplo dessa is in the examples that accompany the component. nos exemplos que acompanham o componente. When flipping, texts on my pages disappear and then appear again Ao lanar, textos sobre minhas pginas desaparecer e depois aparecer novamente Our component uses page rotation as a part of the effect. O nosso componente utiliza rotao pgina como uma parte do efeito. However, Flash Player cannot rotate device No entanto, o Flash Player no pode girar dispositivo fonts correctly. fontes corretamente. To correctly depict your texts you need to embed fonts for text fields. Para descrever corretamente os textos que voc precisa para incorporar fontes para campos de texto. Everything works when testing the movie in Flash, but the pages fail load on the Tudo funciona ao testar o filme em Flash, mas as pginas no carga sobre o site local When the SWF movie with your book is loaded onto an HTML page, its location changes. Quando o filme SWF com o seu livro carregado em uma pgina HTML, a sua "localizao" muda. Its URL Sua URL is now the URL of your HTML page. agora a URL de sua pgina HTML. Therefore, if you use relative paths for page files, remember that Portanto, se voc usar caminhos relativos para os arquivos da pgina, lembre-se que these paths must be correct relative to the HTML page and not relative to the SWF file. estes caminhos devem ser relativos correta para a pgina HTML e no em relao ao arquivo SWF. A similar problem arises when your HTML file and the SWF file with the book are in different folders. Um problema semelhante surge quando o arquivo HTML eo arquivo SWF com o livro esto em pastas diferentes. Then you need to either place them in one folder or use absolute paths or detail relative paths relative Ento voc precisa se quer coloc-los em uma pasta ou use caminhos absolutos ou caminhos relativos detalhes relativos to the HTML file. para o arquivo HTML. In Microsoft Internet Explorer I first need to click on the book to make it work No Microsoft Internet Explorer eu preciso primeiro clique no livro para que ele funcione This problem is connected with the latest patent scandal. Este problema est relacionado com o escndalo ltima patente. Microsoft had to change the way active Microsoft teve que mudar a forma ativa media elements that operate in Internet Explorer are worked with. elementos de mdia que atuam no Internet Explorer so trabalhados. This problem can possibly be Este problema pode possivelmente ser overcome using JavaScript. superar usando JavaScript. See the following link for more detailed information: Veja no link abaixo para obter informaes mais detalhadas: http://www.actionscript.com/Article/tabid/54/ArticleID/Embedding-Flash-Content-withhttp://www.actionscript.com/Article/tabid/54/ArticleID/Embedding-Flash-Content-withFlashObject/Default.aspx FlashObject / Default.aspx

The buttons on my page do not work. Os botes na minha pgina no funcionam. Every time I press the button the page Toda vez que eu pressione o boto da pgina starts to flip comea a virar The component starts to flip pages by default at every click on the page. O componente comea a virar as pginas por padro em todos os clique na pgina. You can cancel this action by Voc pode cancelar esta aco setting the Flip on click parameter to false. definindo o flip do parmetro clique para false. In this case you can flip through the book only by dragging Neste caso, voc pode folhear o livro apenas arrastando by the corners. pelos cantos. A more convenient approach is in the program control of this component property. Uma abordagem mais conveniente no controlo de programa desta propriedade componente. The ActionScript O ActionScript code for the button on the page is detailed below: cdigo para o boto na pgina detalhado abaixo: on(release) { on (release) { //do something / / Fazer algo }} on(rollOver) { em (rollOver) { // turning page flipping by mouse click off / / Transformando pgina lanando pelo clique do mouse fora Page 56 Pgina 56 book.flipOnClickProp = false; book.flipOnClickProp = false; }} on(rollOut) { em (rollOut) { // turning page flipping by mouse click on / Page / transformando lanando pelo clique do mouse sobre book.flipOnClickProp = true; book.flipOnClickProp = true; }} I try to call up the component methods, as detailed in your documentation, but Tento chamar os mtodos de componentes, conforme detalhado na documentao, mas nothing happens no acontece nada You are probably using the XML file to set up the component. Voc provavelmente est usando o arquivo XML para configurar o componente. Until the XML file is loaded, the At que o arquivo XML carregado, o component is not able to process commands. componente no capaz de comandos de processo. Use the onXMLComplete function to determine the Utilizar a funo de onXMLComplete para determinar o moment the file loads. momento em que o arquivo cargas. Also check if you have appointed a component instance name. Alm disso, verifique se voc tiver nomeado um nome de instncia do componente. It is using this that you can work with Ele est usando isso que voc pode trabalhar com the component's functions, methods and properties. funes do componente, mtodos e propriedades. We used the name myBook in our examples. Usamos o MyBook nome em nossos exemplos. You Voc may use another name. pode usar outro nome. Licensing Licenciamento Do I have to purchase a separate license for each site/application/presentation, Tenho que comprar uma licena separada para cada site / aplicativo / apresentao, in which I use your component? em que eu uso o componente? No. No.

Embedding/OEM License Incorporao / Licena OEM Products may be used for personal and/or commercial projects such as websites, offline Os produtos podem ser usados para projetos pessoais e / ou comerciais, como sites, offline presentations and other multimedia presentations. apresentaes e outras apresentaes multimdia. These products may not be distributed Estes produtos no podem ser distribudos as part of templates. como parte de modelos. For any kind of product embedding, such as but not exclusively, Para qualquer tipo de incorporao do produto, tais como, mas no exclusivamente, applications for commercial distribution, TV / motion pictures, CD-ROMS, cellphones and aplicaes comerciais para distribuio, TV / Motion Pictures, CD-ROMS, celulares e PDAs, a special embedding/OEM license must be obtained for each project. PDAs, uma licena de incorporao / OEM especial deve ser obtido para cada projeto. Please email us to purchase an embedding/OEM license. Por favor, envie-nos a comprar uma incorporao / licena OEM. Can I transfer the component to my work colleagues? Posso transferir o componente para meus colegas de trabalho? No. Each license is intended for only one developer. No. Cada licena destinada somente um desenvolvedor. You must purchase additional licenses for every Voc deve adquirir licenas adicionais para cada developer that will work with the component. desenvolvedor que ir trabalhar com o componente. The client demands the FLA file from me, with the component. O cliente exige o arquivo FLA de mim, com o componente. Can I give it to Posso dar-lhe a him? ele? Yes. Sim. However, your client must purchase the required number of licenses for his developers, who will No entanto, o cliente deve comprar o nmero necessrio de licenas para seus desenvolvedores, quem o far work with the component within this FLA file. trabalhar com o componente dentro desse arquivo FLA. Can I use the component for commercial / free templates? Posso usar o componente para modelos comerciais / free? Only if you use these templates for your own personal use and do not present their source files to third S se voc usar esses modelos para seu prprio uso pessoal e no apresentar seus arquivos de origem para a terceira parties. partes. If you sell templates with source FLA files, you must purchase an additional component Se voc vender modelos com arquivos FLA, voc deve comprar um componente adicional license for every template copy that you sell. licena para cada cpia modelo que voc vende. Page 57 Pgina 57 Support & Updates Suporte e Atualizaes I am experiencing problems with your product Estou enfrentando problemas com o seu produto Describe these problems in a letter, attach the required source files and send the letter to Descreva esses problemas em uma carta, anexar os arquivos de origem necessrios e enviar a carta para support@page-flip.com . support@page-flip.com . We usually respond to letters within 24 hours. Ns geralmente respondem s cartas dentro de 24 horas. In your letter, please detail your order number and email address that you used for the order. Em sua carta, por favor detalhe o nmero do pedido e endereo de e-mail que voc usou para a ordem. Will I receive product updates? Vou receber as atualizaes do produto? Yes. Sim. You can always send a request for the latest component version to Voc sempre pode enviar um pedido para a verso mais recente componente para support@page-flip.com support@pageflip.com , , detailing your order number or email address you used to place the order. detalhando o nmero do pedido ou o endereo de e-mail que voc usou para fazer o pedido. All updates to this version Todas

as atualizaes para esta verso are free for our users. so gratuitos para os nossos usurios. Page 58 Pgina 58 Component Package Contents Contedo do pacote de componentes The ZIP archive you receive after purchasing the component contains the following folders: O arquivo ZIP que voc recebe aps a compra do componente contm as seguintes pastas: The DOCS folder contains the file you are reading. A pasta DOCS contm o arquivo que voc est lendo. The SOUNDS folder contains several mp3 files with various scrolling sounds. A pasta SOUNDS contm vrios arquivos de mp3 com sons de rolagem diferentes. The DEMOS folder contains a large number of FLA files, demonstrating various component A pasta DEMOS contm um grande nmero de arquivos FLA, demonstrando componente vrios capabilities. capacidades. The QUICK_START folder contains the files required for going through the tutorial for the Quick A pasta QUICK_START contm os arquivos necessrios para passar pelo tutorial para a rpida Start section of the following document. Iniciar seo do documento a seguir. The COMPONENT_FILES contains the installation file for the flippingBook.mxp component and an Os COMPONENT_FILES contm o arquivo de instalao para o componente flippingBook.mxp e um example of an XML settings file that can be used as a sample for your future projects. exemplo de um arquivo de configuraes XML que pode ser usado como uma amostra para o seu projectos futuros. Page 59 Pgina 59 Support Apoiar Should you experience any undocumented issues with the component or find a component bug or Se voc tiver problemas em situao irregular com o componente ou encontrar um bug do componente ou something you consider a bug, please do not hesitate to contact us at the following address: algo que voc considera um bug, por favor no hesite em contactar-nos atravs do seguinte endereo: support@page-flip.com support@page-flip.com We do our best to respond to your correspondence within 24 hours. Fazemos o nosso melhor para responder a sua correspondncia no prazo de 24 horas. Please attach archived FLA files or specify the URL to the Flash movie causing problems to facilitate Por favor, anexar arquivos FLA arquivados ou especificar o URL para o filme do Flash causando problemas para facilitar troubleshooting. soluo de problemas. Page 60 Pgina 60 Disclaimer and license agreement Disclaimer acordo e licena This disclaimer and license agreement is a legal agreement between you and FBSoftware. Esta renncia e contrato de licena um acordo legal entre voc e FBSoftware. By Por purchasing any of our products (or using our products), you agree that you have read and understood adquirir qualquer um dos nossos produtos (ou usando nossos produtos), voc concorda que leu e compreendeu this disclaimer in its entirety and accept its contents. este aviso em sua totalidade e aceitar o seu contedo. FBSoftware, does not take any responsibility and is not liable for any damage caused through use of FBSoftware, no assume qualquer responsabilidade e no se responsabiliza por quaisquer danos causados atravs do uso de these products, be it indirect, special, incidental or consequential damages (including damages for loss

estes produtos, seja ele indiretos, especiais, incidentais ou conseqentes (incluindo danos por perda of business, loss of profits, interruption or the like). de negcios, perda de lucros, interrupo ou semelhantes). FBSoftware does not take responsibility for the FBSoftware no assumir a responsabilidade pela correct workings of a product that has been modified in any way or by their use in ways they weren't funcionamento correctas de um produto que tenha sido modificados de qualquer forma ou por sua utilizao em formas que no eram designed for. projetado. You must also be aware that as with any other software, bugs could be found in the Voc tambm deve estar ciente de que, como com qualquer outro software, bugs podem ser encontrados no software that you purchase. software que voc compra. These should be reported to us and they will be solved as soon as possible Estes devem ser relatados para ns e que ser resolvido o mais rpido possvel (if and when possible). (Se e quando possvel). We reserve the right to distribute upgrades. Reservamo-nos o direito de distribuir atualizaes. All products are sold on an AS IS basis. Todos os produtos so vendidos em uma base COMO EST. All features are listed on the product page. Todos os recursos esto listados na pgina do produto. By ordering a Ao encomendar um product from FBSoftware, you agree that you have read and understood the product specifications and produto de FBSoftware, voc concorda que leu e compreendeu as especificaes do produto e have assessed that they can be used by you in the way that you require. ter avaliado que eles podem ser usados por voc da maneira que voc precisar. By ordering from FBSoftware you agree that you wish to purchase the selected product(s) and that you Ao encomendar a FBSoftware voc concorda que voc deseja comprar o produto selecionado (s) e que voc will not hold FBSoftware, responsible in any way. no vai segurar FBSoftware, responsvel de modo algum. Purchasing any of our products means that you have Adquirir qualquer um dos nossos produtos significa que voc tem understood and agreed to all the terms and conditions of this disclaimer. entendido e concordado com todos os termos e condies do presente aviso. Each purchase provides you with a single-user, single-machine license. Cada compra fornece-lhe com um nico usurio, a licena de uma nica mquina. You need one license for each Voc precisa de uma licena para cada developer using the components in your organization, including temporary or freelance developers desenvolvedor usando os componentes de sua organizao, incluindo desenvolvedores temporrios ou freelance engaged by the organization. engajados pela organizao. FBSoftware products may not be redistributed, modified or resold in any FBSoftware produtos no podem ser redistribudos, modificados ou revendidos em qualquer way without the written permission of FBSoftware. maneira sem a permisso por escrito da FBSoftware

S-ar putea să vă placă și