Adobe
Products

Top destinations

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • SiteCatalyst
  • Students
  • Elements family

Adobe Creative Cloud

  • What is Adobe Creative Cloud?
  • Design
  • Web
  • Photography
  • Video
  • Students
  • Teams
  • Enterprise
  • Educational institutions

Design and photography

  • Photoshop
  • Illustrator
  • InDesign
  • Adobe Muse
  • Lightroom

Video

  • Adobe Premiere
  • After Effects

Web development and HTML5

  • Edge Tools & Services [opens in a new window]
  • Dreamweaver
  • Gaming [opens in a new window]

Adobe Marketing Cloud

  • What is Adobe Marketing Cloud?
  • Digital analytics
  • Social marketing
  • Web experience management
  • Testing and targeting
  • Media optimization

Analytics

  • SiteCatalyst
  • Adobe Discover
  • Insight

Social

  • Adobe Social

Experience Manager

  • CQ
  • Scene7

Target

  • Test&Target
  • Recommendations
  • Search&Promote

Media Optimizer

  • AdLens
  • AudienceManager
  • AudienceResearch

Document services

  • Acrobat
  • EchoSign [opens in a new window]
  • FormsCentral [opens in a new window]
  • SendNow [opens in a new window]
  • Acrobat.com [opens in a new window]

Publishing

  • Digital Publishing Suite

  • See all products
Business solutions

By business need

  • Digital analytics
  • Digital publishing
  • Document management
  • Media optimization
  • Social marketing
  • Testing and targeting
  • Video editing and serving
  • Web development [opens in a new window]
  • Web experience management
  • See all business needs

By industry

  • Broadcast
  • Education
  • Financial services
  • Government
  • Publishing
  • Retail
  • See all industries
Support & Learning

I need help

  • Products
  • Adobe Creative Cloud
  • Adobe Marketing Cloud
  • Forums [opens in a new window]

I want to learn

  • Training and tutorials
  • Certification [opens in a new window]
  • Adobe Developer Connection
  • Adobe Design Center
  • Adobe TV [opens in a new window]
  • Adobe Marketing Center
  • Adobe Labs [opens in a new window]
Download
  • Product trials
  • Adobe Flash Player
  • Adobe Reader
  • Adobe AIR
  • See all downloads
Company
  • Careers at Adobe
  • Investor Relations
  • Newsroom
  • Privacy
  • Corporate Social Responsibility
  • Customer Showcase
  • Contact us
  • More company info
Buy
  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers
  • Adobe Marketing Cloud sales [opens in a new window]
Search
 
Info Sign in
Why sign in? Sign in to manage your account and access trial downloads, product extensions, community areas, and more.
Welcome,
My Adobe
My orders
My information
My preferences
My products and services
Sign out
My cart
Privacy My Adobe
Adobe
Products Sections Buy   Search  
Solutions Company
Help Learning
Sign in Sign out Privacy My Adobe
Preorder Estimated Availability Date. Your credit card will not be charged until the product is shipped. Estimated availability date is subject to change. Preorder Estimated Availability Date. Your credit card will not be charged until the product is ready to download. Estimated availability date is subject to change.
Qty:
Purchase requires verification of academic eligibility
Subtotal
Promotions
Estimated shipping
Tax
Calculated at checkout
Total
Review and Checkout
Adobe Developer Connection / Adobe Connect Developer Center /

Saving data locally in a custom application for Adobe Connect

by Anurag Aggarwal

Anurag Aggarwal

Content

  • Using the file reference API to save data locally
  • Where to go from here

Created

6 December 2010

Page tools

Share on Facebook
Share on Twitter
Share on LinkedIn
Bookmark
Print
Adobe ConnectcollaborationSWF
Was this helpful?
Yes   No

By clicking Submit, you accept the Adobe Terms of Use.

 
Thanks for your feedback.

Requirements

Prerequisite knowledge

Knowledge of ActionScript 3 and Flex is required to make the most of this article.


Also required

  • Adobe Connect 8 Add-in
  • Adobe Connect Collaboration Builder SDK

User level

Intermediate

Required products

  • Adobe Connect (Download trial)
  • Flash Player 10.1

Sample files

  • SaveLocal.zip

This article describes how to create a custom application for Adobe Connect that saves data locally on the user’s machine. Although Flash Player doesn’t support this functionality by default, it is available when you are using the Adobe Connect Add-in to launch meetings. After reading this article you should be able to write your own application that will save any string to a file on the local machine.

Using the file reference API to save data locally

When running the Adobe Connect Add-In you can use the file reference class to download data from a server to the client machine and to upload data to the server from the client machine. The same class exposes a saveText function, which you can use to save text directly to a file if you are running the add-in.

Because this function is not directly available in Flash Player, you need to use it as a dynamic property in order to compile your application with the Flex compiler; for example:

public var fileRef:FileReference = new FileReference(); fileRef['saveText'](textToSave, defaultFileName= null, defaultExtension=null);

This code will open a file save dialog box that prompts for the location and name of the file to save.

The onApply() function in the sample application checks for the availability of this API and then uses it to save text locally:

public function onApply():void { if (fileRef.hasOwnProperty('saveText')) { try { fileRef['saveText']("Adobe Connect Information..." + ta.text); } catch(e:Error) { trace("Error Message " + e.message); } } }

When the sample application is compiled into an SWF and loaded in Flash Player without the Adobe Connect Add-in, the Button and TextArea are disabled (see Figure 1).

The SWF loaded in Flash Player.
Figure 1. The SWF loaded in Flash Player.

When the sample SWF is loaded in the Adobe Connect Add-in, the Button and TextArea are enabled, and you can use them to save text to the local machine (see Figure 2).

The SWF loaded in Adobe Connect Add-in
Figure 2. The SWF loaded in Adobe Connect Add-in

To test the application, type some text and click Save Text. When the file save dialog box opens, simply specify the destination path for the file where the text will be saved.

Where to go from here

For more information on extending the functionality of Adobe Connect for end users, see the Adobe Connect Developer Center.

More Like This

  • Building a multiuser Sudoku contest game using the Adobe Connect Collaboration Builder SDK
  • Building a multiple-question survey application for Adobe Connect 8
  • Building a multiuser snake and ladder game using the Adobe Connect Collaboration Builder SDK
  • Creating a custom stamp for Adobe Connect 8
  • Integrating the Asterisk MeetMe audio conferencing service with Adobe Connect 8

Products

  • Adobe Creative Cloud
  • Creative Suite
  • Adobe Marketing Cloud
  • Acrobat
  • Photoshop
  • Digital Publishing Suite
  • Elements family
  • SiteCatalyst
  • For education

Download

  • Product trials
  • Adobe Reader
  • Adobe Flash Player
  • Adobe AIR

Support & Learning

  • Product help
  • Forums

Buy

  • For personal and professional use
  • For students, educators, and staff
  • For small and medium businesses
  • Volume Licensing
  • Special offers

Company

  • News room
  • Partner programs
  • Corporate social responsibility
  • Career opportunities
  • Investor Relations
  • Events
  • Legal
  • Security
  • Contact Adobe
Choose your region United States (Change)
Choose your region Close

North America

Europe, Middle East and Africa

Asia Pacific

  • Canada - English
  • Canada - Français
  • Latinoamérica
  • México
  • United States

South America

  • Brasil
  • Africa - English
  • Österreich - Deutsch
  • Belgium - English
  • Belgique - Français
  • België - Nederlands
  • България
  • Hrvatska
  • Česká republika
  • Danmark
  • Eastern Europe - English
  • Eesti
  • Suomi
  • France
  • Deutschland
  • Magyarország
  • Ireland
  • Israel - English
  • ישראל - עברית
  • Italia
  • Latvija
  • Lietuva
  • Luxembourg - Deutsch
  • Luxembourg - English
  • Luxembourg - Français
  • الشرق الأوسط وشمال أفريقيا - اللغة العربية
  • Middle East and North Africa - English
  • Moyen-Orient et Afrique du Nord - Français
  • Nederland
  • Norge
  • Polska
  • Portugal
  • România
  • Россия
  • Srbija
  • Slovensko
  • Slovenija
  • España
  • Sverige
  • Schweiz - Deutsch
  • Suisse - Français
  • Svizzera - Italiano
  • Türkiye
  • Україна
  • United Kingdom
  • Australia
  • 中国
  • 中國香港特別行政區
  • Hong Kong S.A.R. of China
  • India - English
  • 日本
  • 한국
  • New Zealand
  • 台灣

Southeast Asia

  • Includes Indonesia, Malaysia, Philippines, Singapore, Thailand, and Vietnam - English

Copyright © 2013 Adobe Systems Incorporated. All rights reserved.

Terms of Use | Privacy | Cookies

Ad Choices

Reviewed by TRUSTe: site privacy statement