Archive for the AS 3.0 category

Read Excel files in ActionScript 3

posted by Marcio Rosa in AS 3.0

An ActionScript 3 library for reading and writing Excel files. Currently reading numbers, text, and formulas from Excel version 2.0-2003 and writing numbers, text, and dates to Excel 2.0 is supported. No server-side help is needed.

Documentation and samples are at http://code.google.com/p/as3xls/

Post by Skitsanos

The Adobe Flash for digital interaction

posted by Marcio Rosa in AIR, AS 3.0, Flash

IMAGINE

We imagine a world where every digital interaction whether in the classroom, the office, the living room, the airport, or the car is a powerful, simple, efficient, and engaging experience. Flash Player is widely used to deliver these experiences and has evolved into a sophisticated platform across browsers, operating systems, and devices.

We continued to invest in building a range of technologies and prepared for the day that innovation on the web would ignite again. The days of innovation have now returned in full force, and I am delighted to see rich Internet applications coming into their own with Web 2.0.

THE AIR

The AIR project is actually our third attempt at creating this new environment. The first two attempts were part of an experimental project called Central which was code named Mercury and then Gemini after the United States space program, and with AIR code named Apollo. We learned a lot from those first two projects, and as I like to remind the team, Apollo is the one that actually went to the moon.

With AIR, you can leverage your existing web development skills (Flash, Flex, HTML, JavaScript, Ajax) to build and deploy RIAs to the desktop. Just like web publishing allowed anyone with basic HTML skills to create a web site, AIR will enable anyone with basic web development skills to create a desktop application.

As a developer, you can now create a closer connection to your users. With the browser, you have a fleeting, somewhat tenuous, connection to users. They browse to a page, and then they’re gone. AIR enables you to create an experience that can keep you continuously connected to your customers. Just like a desktop application, AIR applications have an icon on the desktop, in the Windows start menu, or in the OS X dock. Also, when you’re running a web application today, it’s a separate world from your computer. You can’t easily integrate local data with your web application. For example, you can’t just drag and drop your Outlook contacts onto a web-based mapping application to get directions to your friend’s house. Yet with AIR applications you can, as it bridges the chasm between your computer and the Internet.

AS3

0 ActionScript is the official programming language of Adobe’s Flash platform. While originally conceived as a simple tool for controlling animation, ActionScript has since evolved into a sophisticated programming language for creating content and applications for the Web, mobile devices, and desktop computers. True to its roots, ActionScript can be used in many different ways by many different kinds of programmers and content producers. For example, an animator might use just a few lines of ActionScript to pause the playback of a web animation. Or, an interface designer might use a few hundred lines of ActionScript to add interactivity to a mobile phone interface. Or, an application developer might use thousands of lines of ActionScript to create an entire email-reading application for web browser and desktop deployment.

ActionScript 3.0 is an object-oriented language for creating applications and scripted multimedia content for playback in Flash client runtimes (such as Flash Player and Adobe AIR). With a syntaxreminiscent of Java and C#, ActionScript’s core language should be familiar to experienced programmers.

Website controls (cross-domain policy files)

posted by Marcio Rosa in AS 3.0, Flash, Flex 3.0

To make data from a web server available to SWF files from other domains,you can create a cross-domain policy file on your server. A cross-domain policy file is an XML file that provides a way for the server to indicate that its data and documents are available to SWF files served from certain domains or from all domains. Any SWF file that is served from a domain specified by the server ’s policy file is permitted to access data or assets from that server. Cross-domain policy files affect access to a number of assets,including the following:

Data in bitmaps,sounds,and videos
Loading XML and text files
Access to socket and XML socket connections
Importing SWF files from other security domains into the security domain of the loading
SWF file

Policy file syntax

The following example shows a policy file that permits access to SWF files that originate from *.marciorosa.com ,www.friendOfMarciorosa.com and 192.0.34.166 :

<?xml version="1.0"?>
<cross-domain-policy>
<allow-access-from domain="*.marciorosa.com"/>
<allow-access-from domain="www.friendOfMarcioRosa.com"/>
<allow-access-from domain="192.0.34.166"/>
</cross-domain-policy>

When a SWF file attempts to access data from another domain,Flash Player automatically ttempts to load a policy file from that domain.If the domain of the SWF file that is attempting to access the ata is included in the policy file,the data is automatically accessible.

By default,policy files must be named crossdomain.xml and must reside in the root directory of the server.However,a SWF file can check for a different name or in a different directory location by calling the Security.loadPolicyFile()method.A cross-domain policy file applies only to the directory from which it is loaded and to its child directories.Soa policy file in the root directory applies to the whole server,but a policy file loaded from an arbitrary subdirectory applies only to that directory and its subdirectories.

A policy file affects access only to the particular server on which it resides.For example,a policy file located at https://www.adobe.com:8080/crossdomain.xml will apply only to data-loading calls made to www.adobe.com over HTTPS at port 8080.

A cross-domain policy file contains a single tag,which in turn contains zero or more tags.Each tag contains an attribute,domain ,which specifies either an exact IP address,an exact domain,or a wildcard domain (any domain).Wildcard domains are indicated by either a single asterisk (*), which matches all domains and all IP addresses,or an asterisk followed by a suffix,which matches only those domains that end with the specified suffix.Suffixes must begin with a dot. However,wildcard domains with suffixes can match domains that consist of only the suffix without the leading dot.For example,foo.com is considered to be part of *.foo.com. Wildcards are not allowed in IP domain specifications.

If you specify an IP address,access is granted only to SWF files loaded from that IP address using IP syntax (for example,http://65.57.83.12/flashmovie.swf ),not those loaded using domain-name syntax.Flash Player does not perform DNS resolution.

You can permit access to documents originating from any domain,as shown in the following example:

<?xml version="1.0"?>
<!--http://www.marciorosa.com/crossdomain.xml -->
<cross-domain-policy>
<allow-access-from domain="*"/>
</cross-domain-policy>

Each tag also has the optional secure attribute,which defaults to true .You can set the attribute to false if your policy file is on an HTTPS server,and you want to allow SWF files on a non-HTTPS server to load data from the HTTPS server. Setting the secure attribute to false could compromise the security offered by HTTPS.In particular,setting this attribute to false opens secure content to snooping and spoofing attacks.Adobe strongly recommends that you not set the secure attribute to false .

If data to be loaded is on a HTTPS server,but the SWF file loading it is on an HTTP server, Adobe recommends that you move the loading SWF file to an HTTPS server so that you can keep all copies of your secure data under the protection of HTTPS.However,if you decide that you must keep the loading SWF file on an HTTP server,add the secure=”false” attribute to the allow-access-from>tag,as shown in the following code:

<allow-access-from domain="www.marciorosa.com"secure="false"/>

A policy file that contains no tags has the same effect as not having a policy on a server.

Adobe Open Screen project

posted by Marcio Rosa in AIR, AS 3.0, Flash

Open Screen Project levará as rich Internet experiences across televisions, personal computers, mobile devices, e consumer electronics, o  Open Screen Project suportará technologias líderes, incluindo Adobe, ARM, Chunghwa Telecom, Cisco, Intel, LG Electronics Inc., Marvell, Motorola, Nokia, NTT DoCoMo, Qualcomm, Samsung Electronics Co., Sony Ericsson, Toshiba and Verizon Wireless, e provedores de conteúdo como BBC, MTV Networks, e NBC Universal, levando toda rich Web e video experiences, a toda variedade de dispositivos.

O Open Screen Project remove qualquer barreira de uso do Adobe® Flash® Player e no futuro, Adobe AIR™, fazendo com que qualquer empresa posssa inserir ambos em seus produtos sem custos de direitos de software. Isso é um grande passo para a área de desenvolvimento, e uma boa resposta a abertura do SDK para iPhone para desenvolvimento de aplicações.

Veja algumas barreiras que cairam com este projeto:

Remoção das restrições na utilização das especificações SWF e FLV/F4V e
publicação das APIs de portabilidade do Flash Player para dispositivos

Publicação dos protocolos Adobe Flash Cast e AMF
Não só foram publicadas as especificações SWF e FLV/F4V, como as especificações dos formatos de comunicação de dados usados pelo Flash Player.

Remoção dos custos de licenciamento do Flash Player e Adobe Air
Passa a tornar-se gratuíto distribuir o Flash Player e o Adobe Air.

Novo! Desktop-Wallpaper

posted by Marcio Rosa in AIR, AS 3.0, Flash, Flex 3.0, Magazine

Novo! Desktop-Wallpaper Adobe technology platform ActionScript

Adobe technology platform ActionScript™ Reference Rich Internet Application Development

posted by Marcio Rosa in AIR, AS 3.0, Flex 3.0

atp_ria_guide-11.gif

Adobe technology platform ActionScript™ Reference Rich Internet Application Development. Adobe® Flash® Player 9 / Adobe® Flex® 3 / Adobe® AIR™.

Para mais informações visite Adobe Developer Connection ou faça download do pdf aqui.

Em breve versão português aqui

Most Popular Today

posted by Marcio Rosa in AS 3.0, Flash, Flex 3.0, Google, Web 2.0

Esta foi a semana dos vídeos, muitos post sobre o tema para Flex e Flash vamos começar pelo AIR App of the Week: RichFL editor de video FLV em .AIR exemplos de Flash Video AS3 Class Example passaram por muitos blogs e grupos sobre o assunto.

DClick Team Weblog de Marcos Arruda fala sobre os frameworks para a plataforma Flex em desenvolvimento atualmente, PureMVC é um deles. Rec6 - Tecnologia - Mais populares de Nicolas publicou a ótima ferramenta do Google Ad Manager, um novo serviço de gestão de publicidade on-line que, ao contrário de outras ferramentas similares, não é cobrado dos usuários.

Veja Showcase Of Creative Flash Preloaders do Smashing Magazine de Vitaly Friedman & Sven Lennartz que relacionaram ótimos exemplos de pre-loaders flash. The Guardian também apareceu com uma lista de 50 blogs poderosos da internet. Procurando por ferramentas web2.0 encontrei esse site que vai agradar a muitos. 101 recursos essenciais para o freelancer
eu mesmo passei a usar esse Clocking IT

Yahoo! Maps para ActionScript 3.0

posted by Marcio Rosa in AS 3.0, Web 2.0

A nova API  Yahoo!Maps está agora construída inteiramente em ActionScript 3,0. A API agora fornece um mapa e um motor que proporciona o controle total para criar componentes personalizados, sobreposições e marcadores enquanto consome diferentes webservices fornecidas pelo Yahoo!, ou a sua própria. O componente YahooMap é distribuído como um SWC para ser usada em seu Flex Builder.

A API Yahoo!Maps contém um conjunto de widgets, marcadores, sobreposições e serviços web para permitir-lhe interagir com o mapa de todas as maneiras.

Faça seu cadastro para obter Key API. Em seguida, faça o download do componente, existe muitos exemplos e classes e documentação no site do Yahoo!.

APIS para web 2.0 desenvolvida em ActionScript

posted by Marcio Rosa in AS 3.0, Web 2.0

MySpace Development Platform (ActionScript Library)

Facebook F8 Platform (ActionScript API)

Amazon S3 (ActionScript Library)

eBay Platform (ActionScript Library)

Flickr (ActionScript Library)

YouTube (ActionScript Library)

Yahoo! ASTRA (ActionScript Libraries)

Google Map (ActionScript API)

Web Map Services (Google, Microsoft VE and Yahoo) (ActionScript API)

Twitter Life Stream (ActionScript 3 API) ( SWX Twitter API )

Pownce ( ActionScript 3.0 library )

Digg (Flash Kit)

Last.fm Music (ActionScript Library)

MD5 para Actionscript

posted by Marcio Rosa in AIR, AS 3.0, Flex 3.0

Classe muito interessante para aplicações Flex/AIR que requer autenticação MD5 como o Flickr. Acesse ou coloque criptografia MD5 em suas aplicações clicando aqui.

Recent Posts
Recent Comments
About Us
Loren Norman: Brilliant! Straight to the point, and perfectly illustrates everything i need, even ...
melisa bruna: Estou interessada em fazer o Curso Gratuito de Flex....
Tom Humes: Nice Site layout for your blog. I am looking forward to reading more from you. Tom...
Pesquisa Anônima: Atencioso com a turma e sólido conhecimento sobre o assunto abordado....
Pesquisa Anônima: Márcio Rosa conseguiu cobrir todos os objetivos propostos pelo curso, e também abordo...