page flip2

Upload: alexandre-hiuga

Post on 18-Jul-2015

55 views

Category:

Documents


0 download

TRANSCRIPT

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): 600 600 400 400 true true 0 0 Page 13 Pgina 13 false false 50 50 true true 1 1 1 1 2 2 3 3 3 3 0x1C90CB 0x1C90CB true true true true 4 4 Progress Bar Progress Bar pages/page01.jpg pages/page01.jpg pages/page02.jpg pages/page02.jpg pages/page03.jpg pages/page03.jpg pages/page04.jpg pages/page04.jpg pages/page05.jpg pages/page05.jpg 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: 600 600 400 400 true true 0 0 false false 50 50 true true 1 1 1 1 2 2 3 3 3 3 0x1C90CB 0x1C90CB true true true true 4 4 Progress Bar Progress Bar pages/page01.jpg pages/page01.jpg pages/page02.jpg pages/page02.jpg pages/page03.jpg pages/page03.jpg pages/page04.jpg pages/page04.jpg pages/page05.jpg pages/page05.jpg

Page 18 Pgina 18 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 URL tags. URL 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 URL tags: URL tags: pages/page01.jpg pages/page01.jpg pages/page02.jpg pages/page02.jpg pages/page03.jpg pages/page03.jpg pages/page04.jpg pages/page04.jpg pages/page05.jpg pages/page05.jpg 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. true true firstPage FirstPage This is the number of the book page open by default. Este o nmero da pgina do livro aberto por padro. 0 0 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. false false 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. 50 50 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. true true 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. 1 1 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. 1 1 moveSpeed movespeed Page moving speed during normal page flipping (dragging). Pgina movendo velocidade durante virar de pgina normal (arrastando).

2 2 closeSpeed closeSpeed Automatic page moving speed on release of the mouse button. Pgina automtica movendo velocidade na liberao do boto do mouse. 3 3 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. 3 3 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. sounds/01.mp3 sounds/01.mp3 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. 0x1C90CB 0x1C90CB 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. true true 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. true true 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. 4 4 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. Round Rodada 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. myCustomPreloaderId myCustomPreloaderId 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