Tutorial Downloads .com

Home

Flash Tutorial : GoLive CS2 SDK Programmerís Guide

Welcome to the Adobe GoLive CS2 SDK Programmerís Guide. This book and its companion volume, the GoLive CS2 SDK Programmerís Reference, describe how to extend the Adobe GoLive CS2 Web-site development environment.

Contents
Preface......................10
About Adobe GoLive CS2 SDK......................10
About This Book......................11
Who should read this book......................11
What is in this book......................11
Document conventions......................12
Typographical conventions......................12
JavaScript common properties......................12
Where to Go for More Information......................13
1 Installing and Configuring the GoLive SDK......................14
Installing the GoLive CS2 SDK......................14
Installing the core set of tools and sample extensions......................14
Installing the core extensions......................14
Uninstalling an extension......................15
Configuring GoLive for Extension Development......................15
Enabling the Extend Script module......................15
Enabling and disabling modules......................16
Debugging Your Scripts......................17
Error logs......................17
2 How to Create an Extension......................18
About Adobe GoLive CS2 Extensions......................18
What can extensions do?......................18
Anatomy of an Extension......................19
Extension-building tools......................20
Example Main.html File......................21
Creating An Extension Module......................21
Creating the Main.html file......................22
Adding SDK Tags and JavaScript Functions to the Module......................23
Adding the module tag......................24
Adding event-handling functions......................24
Summary......................26
3 The JavaScript Environment......................27
JavaScript Objects in the GoLive Environment......................27
Objects, elements, and properties......................27
Accessing attribute values......................27
Naming objects and attributes......................28
JavaScript object collections......................29
Using the global object arrays......................29
Comparing objects......................30
Updating references to objects......................30
Scope of Variables and Functions......................31
Releasing Memory......................32
Handling Events......................32
Defining and Registering Event Handlers......................33
Nesting Event Handlers......................34
Sharing Data......................34
Persistent shared data......................35
Non-persistent shared data......................35
Communicating with other extensions......................35
Sending messages to other extension modules......................36
Responding to a broadcast......................36
Delays and Timeouts......................36
Timed tasks......................37
Setting the JavaScript timeout......................37
Progress bars......................37
Starting a progress or busy bar......................38
Updating a progress or busy bar......................38
Progress bar example......................39
4 Menus and Toolbars......................40
Creating Custom Menus......................40
Basic example......................40
Adding the menu bar tag......................41
Defining the Menu......................41
Defining menu items......................42
Creating submenus......................43
Defining menu behavior......................43
Using one handler to react to multiple items......................44
Capturing events in the menu object......................44
Complete simple menu example......................45
Assigning Keyboard Shortcuts to Menu Items......................45
Setting a Menu Item’s State Programmatically......................46
Setting a menu item’s checked state......................46
Setting a menu item’s enabled state......................46
Initializing menu items......................47
Adding Items to GoLive Menus......................48
Extending Context Menus......................50
Registering context menu handlers......................51
Defining context menu handlers......................51
Creating Toolbars......................52
5 Windows and Controls......................54
Types of Windows......................54
Dialog windows......................54
Positioning windows......................54
Using the Dialog Editor tool......................55
Modal Dialog Windows......................58
Defining the modal dialog window......................58
Opening and closing modal dialogs......................58
Displaying a modal dialog......................58
Closing a modal dialog......................60
Palette Windows......................60
Showing and hiding palettes......................61
The Inspector window......................62
Control Containers......................63
Creating panels......................63
Creating tab panels......................63
Creating split panels......................64
Autolayout of Localized Controls......................65
Adding Controls to Windows......................66
Creating different types of controls......................67
Creating radio button groups......................68
Creating text input fields......................68
Creating source and preview controls......................69
Creating controls with parameters......................69
List controls......................70
Adding controls to a window dynamically......................72
Providing Behavior for Controls......................73
Handling events for a target control......................73
Handling simple clicks......................73
Handling different actions......................73
Handling editing actions......................74
Handling events in a control’s parent window......................74
Creating Custom Controls......................76
Defining user interactions with custom controls......................76
Drawing custom controls......................76
Updating a control’s appearance immediately......................77
Defining drag-and-drop for custom controls......................77
Control as Sender of a Drag Event......................77
Receiving a drop event......................77
6 Custom Elements......................78
Overview......................78
Tags for creating custom elements......................78
Defining A Custom Element......................79
Defining the tag for a custom element......................79
Redefining Tags Locally......................79
Defining the custom tag’s palette icon and HTML content......................80
Creating a Palette Entry in the Objects Palette......................81
Adding Palette Entries to a Built-in Tab......................81
Adding palette entries to a customized tab......................82
Defining the appearance of a custom element......................82
Initializing a custom element box......................83
Displaying a custom element box......................84
Drawing into container boxes......................84
drawBox Examples......................84
Resizing a custom element box......................86
Built-in undo support......................86
Inspecting a Custom Element......................86
Initializing the Inspector window......................87
Responding to changes in the Inspector......................87
Multiple Inspectors......................88
Supporting the Undo and Redo Commands......................88
Undo support and document parsing......................88
The document’s undo history......................89
Creating the undo object......................89
Initializing the undo object......................89
Implementing the undoSignal Function......................90
Updating Images Dynamically......................91
Creating pictures......................92
Drawing the image......................92
Deleting pictures......................93
7 Editing Documents Programmatically......................94
The GoLive Document Object Model......................94
The Markup Tree......................94
Reparsing and object references......................95
Markup editing options......................95
Automatic and explicit reparsing......................96
Working With Documents......................97
Opening documents......................97
Open a document in a document window......................97
Display layout view......................98
Open a document without displaying it......................98
Manipulating open documents......................98
Make an open document window frontmost......................98
Count open documents......................98
Validate document objects......................99
Working with style sheets......................99
Creating a new HTML page......................99
Saving documents......................100
Closing documents......................100
Working with Selections in Document Windows......................100
Retrieving the current selection......................101
Setting the current selection......................102
Using the range object......................102
Accessing selections through the document source......................104
Retrieving Objects from the Markup Tree......................104
Retrieving individual markup objects......................105
Retrieving multiple markup objects......................106
Editing Source Code Through Markup Objects......................106
Using Markup Objects to Edit HTML Directly......................106
Overriding document encoding for elements......................107
8 Editing with Layout......................108
Layout View and the Layout Objects......................108
Editing displayed elements through layout objects......................109
Getting the layout objects for tables, cells, and layout grids......................109
Editing Attributes of Managed Objects......................109
Example: Using layout objects......................110
Editing displayed elements through markup objects......................111
Editing Text in Layout View......................112
Manipulating text elements......................113
Adding text......................113
Setting the cursor position......................113
Finding and replacing text......................114
Selecting and deselecting text......................114
Manipulating Text Styles......................115
Applying styles to selected text......................116
Editing existing styles and stylesets......................117
Inserting Elements in Layout View......................117
Inserting raw HTML......................118
Working with Tables in Layout View......................118
Table styles......................118
Applying a table style within a table......................119
Table cells......................119
Cell styles......................120
Working with Layout Grids......................121
Adjusting the grid......................121
Sizing and positioning elements on the grid......................121
9 Managing Files and Folders......................123
Overview......................123
Using File Objects......................123
Acquiring file objects......................124
Determining the location of a file or folder......................124
Validating file objects......................124
Accessing folders......................125
Getting a file object from the user......................126
Creating a new file object......................126
Moving, Copying, and Deleting Files and Folders......................127
Moving and copying files......................127
Moving and copying folders......................128
Deleting files or folders......................128
Working With Document Files......................128
Creating a document file......................128
Reading the contents of an existing file......................129
Opening a markup document file......................129
Opening other files......................129
Changing encoding in a file......................129
Working With Folders......................130
Creating folders......................130
Retrieving the contents of a folder......................130
Getting files from a file object......................130
Getting files from a siteReference object......................131
Retrieving the contents of subfolders......................132
Working with Remote Files......................133
Using HTTP protocol......................133
Using FTP and DAV protocol......................133
Exchanging Data with Remote Hosts......................134
Establishing a simple HTTP connection......................134
Establishing an internet server......................135
Example: A chat server......................135
10 Managing Web Sites......................137
Creating Files and Folders in GoLive Web Sites......................137
Adding files and folders......................137
Using templates......................138
Deleting files and folders......................139
Managing the Site Window......................139
Selecting site files programmatically......................139
Creating custom columns in the Site window......................139
Using event handlers to display custom column content......................140
Using named properties to display custom column content......................140
Removing a custom column at runtime......................141
Working With Site Documents......................142
Making a document’s Site window frontmost......................142
Copying files......................143
Working with Version Control Systems......................145
11 Localization and Translation......................149
Dynamic UI Localization......................149
Creating the localization table......................149
Creating a localization table in GoLive......................150
Creating an external localization table......................151
Using the localization table......................151
Translating attribute value strings......................151
Translating JavaScript strings......................152
Localization test features......................152
Document Source Translation......................153
Defining a translator......................153
Inspecting translated elements......................154
12 Extending GoLive Actions......................156
GoLive Action Types......................156
Adding actions to a page......................156
Creating Your Own Actions......................157
Changing action icons......................158
Anatomy of an Action File......................158
Action Tags......................160
csactionclass......................160
csactionparam......................161
JavaScript Source for Actions......................163
Layout Grid......................163
Action Tutorials......................165
Tutorial 1: Customizing the Actions Inspector......................165
Tutorial 2: Go to previous page action......................166
Tutorial 3: Resize window action......................167
13 Debugging Scripts......................170
Enabling Debug Services......................170
Using the JavaScript Command Shell......................171
Executing JavaScript commands......................172
The Internal JavaScript Source Debugger......................173
Controlling code execution in the script Debugger window......................174
Customizing the Debugger Window......................175
Troubleshooting Tips......................177
Null and undefined values......................177
Case sensitivity......................177
Line breaks in palette entries and string literals......................177
A Using External Libraries......................178
About External Libraries......................178
Installing external libraries......................179
Installing an external JavaScript library......................179
Installing Binary Libraries......................179
External JavaScript Libraries......................179
Including an external JavaScript file......................180
Calling JavaScript library functions......................180
External Binary Libraries......................181
Implementing external binary libraries......................181
Including C header files......................181
Bit Alignment......................181
Initializing the JavaScript engine......................182
Defining external library functions......................182
Registering external functions......................184
Implementing optional termination code......................184
Calling C library functions from JavaScript......................184
Evaluating JavaScript expressions in C functions......................185
Performance Issues......................186
Glossary......................188
Index......................192

Read this full Flash Tutorial of GoLive CS2 SDK Programmer’s Guide


Resource: http://www.adobe.com/devnet/golive/pdfs/GoLive_SDK_Programmers_Guide.pdf
Posted By : Belinda
On date : 11.04.09

Most used Flash Tutorials

Flash CS4 Tutorial
In this Flash CS4 tutorial you will learn the basics of Flash CS4 animation. You will familiarize yourself with the Flash CS4 workspace and learn how to use the various tools in order to create a Flash animation.
Flash Tutorial : Essential ActionScript 2.0
This Flash tutorial covers the details of Essential ActionScript 2.0
Flash Button Tutorial
Flash Button Tutorial
Flash Tutorial : Using Remote Object to Send Data to the Server
The project location used in previous tutorials. Check Use remote object access service and ColdFusion Flash Remoting should be selected.
ADOBE After Effects CS4 : Create motion graphics and visual effects with the industry standard
This Flash tutorial covers the details of Create motion graphics and visual effects with the industry standard in ADOBE After Effects CS4.
Flash Tutorial : ActionScript Coding Standards
Macromedia Flash applications have generally been built without regard to particular standards or guidelines. While this flexibility allows for a wide variety of solutions to a problem, it also makes it difficult for anyone other than the author of an application to understand the code. Even the author may have difficulty reading his or her own code after it is written. If a developer cannot understand the code in an application, it will not be easy to debug the code, make changes, or reuse the application.
Flash Tutorial : Designing a Client Website
In this Tutorial, student teams design a website for a client. Each team might have a different client, depending on the availability of resources.Students evaluate a clientís site, analyze it, compare it to similar sites, and propose design solutions for its navigation scheme and page layout.
Flash Tutorial : Hinge animation
All animations and tweens need a single reference point. In Flash, that reference point is the objectís or symbolís center point. In many cases, the use of the center point is more a hindrance than a help because the default location of any objectís or symbolís center point, especially for rotation,is the physical center of the object.
Guide to Flash CS4 AIR Development - Build your First AIR application
This adobe flash AIR pdf tutorial has covered the fundamental steps in creating an AIR application with FlashCS4. Useful for beginners in AIR application development
Learn to Export Models from Autodesk 3ds Max, Sketchup and Blender into Papervision3D
Developers will learn to create basic models in 3ds Max, SketchUp, and Blender.
Adobe Flash Player 10 Administration Guide
Welcome to the Adobe Flash Player Administration Guide for Flash Player 10. This document describes Flash Player, how itís installed, how it works, and how it can be controlled to suit the needs of a specific network environment. Read this document if you are an IT or administrative professional who manages the installation or use of Flash Player for multiple users in a controlled environment.
Flash Tutorial : USER GUIDE
Adobe Design Center Offers articles, tips, and tutorials in various Acrobat Connect uses Flash and a personal meeting room for screen sharing, audio.
Flash Tutorial : GoLive CS2 SDK Programmerís Guide
Welcome to the Adobe GoLive CS2 SDK Programmerís Guide. This book and its companion volume, the GoLive CS2 SDK Programmerís Reference, describe how to extend the Adobe GoLive CS2 Web-site development environment.
Digital narratives using Adobe Flash CS4
In this Tutorial use Adobe Flash CS4 to create digital narratives. Students discover ways in which to use basic techniques in Flash to create various film effects and then apply those techniques to building a narrative. Students learn how rich media and animation created with Flash can improve digital communication.
Flash Tools for Developers: 3D Function Grapher A Guide
A pdf study material guide for using 3D Function Grapher in Flash.

Latest added Flash Tutorials

Flash Tutorial : The DV Rack Field Guide
Video clipping can occur when a quick, bright flash appears in your video such as You may not see the flash while you record but DV Rack will catch it .
Flash Tutorial : ActionScript Coding Standards
Macromedia Flash applications have generally been built without regard to particular standards or guidelines. While this flexibility allows for a wide variety of solutions to a problem, it also makes it difficult for anyone other than the author of an application to understand the code. Even the author may have difficulty reading his or her own code after it is written. If a developer cannot understand the code in an application, it will not be easy to debug the code, make changes, or reuse the application.
Flash Tutorial : Internet Publishing
PDF/Adobe Acrobat tutorials or enhance the interactive environment with JavaScript or applets line read at the top of the magnified area2 A flash.
Flash Tutorial : Digital narratives using Adobe Flash CS3
specific tutorials on Flash Explain to students that a good idea is to establish a need, categorise the type of effect they need, investigate options.
Flash Tutorial : GoLive CS2 SDK Programmerís Guide
Welcome to the Adobe GoLive CS2 SDK Programmerís Guide. This book and its companion volume, the GoLive CS2 SDK Programmerís Reference, describe how to extend the Adobe GoLive CS2 Web-site development environment.
Flash Tutorial : USER GUIDE
Adobe Design Center Offers articles, tips, and tutorials in various Acrobat Connect uses Flash and a personal meeting room for screen sharing, audio.
A Digital Video Primer
Adobe After Effects also exports Macromedia Flash (SWF) Graphics includes CD and tutorials Desktop Digital Video by Ron Grebler.
A Digital Video Primer : An Introduction to DV Production, Post-Production, and Delivery
Affer Effects also exports Adobe Flash (SWF) files. Several audio-only Multipurpose site with tutorials and tips for Affer Effects.
Flash Tutorial : Graphic design using Adobe Fireworks CS4-1
The instructor introduces web graphic formats (GIF, JPEG, and PNG). After a brief class discussion about copyright, students locate, select, save, and annotate a collection of image files, representing the three main file types (GIF, JPEG, and PNG) used to publish on the web.
DIGITAL VIDEO Foundations of Video Design and Production
Digital Video Foundations of Video Design and Production is a yearlong, project-based curriculum that develops career and communication skills in digital video production, using Adobe tools. Digital Video curriculum develops four key skill areas.