Archive for Flash

Meeting - Creating IMAP client with Adobe AIR - Part 1

Hello friends,

Today, Once again We came up with interesting meeting series. Instead of just one speaker, We are including many speakers who have expertise in different topics. As mentioned in the meeting topic, Here are the modules we are planning to include in whole series of meetings:

  1. Basics of AIR.
  2. Basics of Protocol.
  3. Basics of IMAP.
  4. How to understand any protocol specifications from specification document / RFCs.
  5. Basics of Socket Communication in Flash Action Script 3.
  6. Handshaking with IMAP Server.
  7. UI - Login Screen.
  8. UI and Event Handling.
  9. Authentication with IMAP Server.
  10. Retrieving Folder Structure from Server.
  11. UI - Displaying Folder Structure.
  12. Retrieving Email headers for given folder (From, To, CC, BCC, etc.,).
  13. Retrieving Email data for given email.
  14. Separating Email Body and Attachments from email data.
  15. UI - Displaying Email Body.
  16. Decoding Email Attachments in to file data.
  17. (Not Sure - For Now) Scan the file via anti virus tool before display it.
  18. UI - Displaying whole email.
  19. UI - Replying email.
  20. Basics: Sending an email via SMTP.
  21. SMTP specifications and normal procedures.
  22. Handshaking with SMTP.
  23. Sending an email with SMTP.
  24. Final touch up to the application.
  25. Lessons Learnt by each attendee.

I hope, all of us will really enjoy this series and it would be meaningful add on pack to the knowledge of everyone of us:

As usual, Sponsor for Event, Place and Equipments is Avinashi and FlashBrain.

Part 1 - Venue and Time:

FlashBrain Unit, Avinashi Systems.
Seminar Hall, 2nd Floor,
Kohinoor Complex, Saiyedpura,
Surat - 395 003.

User Group Manager - Ashvin Savani
User Group Co-Manager - Naresh Khokhaneshiya

Comments (2)

Identify all the key strokes in Flash IDE Environment

By default, when you press some key in Flash IDE Environment, in ActionScript you will not be able to handle DELETE key stroke as that is shortcut key in Flash IDE.

To handle such key strokes in ActionScript, while running an application in Flash IDE, go to swf’s Control menu and tick ‘Disable Keyboard Shortcuts’. Now ActionScript will listen all the key events which are shortcuts in Flash IDE Environment.

- Naresh Khokhaneshiya

Comments

Adobe Flash Player 10 Beta Prereleased

Adobe® Flash® Player 10, code-named “Astro,” introduces new expressive features and visual performance improvements that allow interactive designers and developers to build the richest and most immersive Web experiences. These new capabilities also empower the community to extend Flash Player and to take creativity and interactivity to a new level.

This public prerelease is an opportunity for developers and consumers to test and provide early feedback to Adobe on new features, enhancements, and compatibility with previously authored content. Once you’ve installed Flash Player 10 beta, you can view interactive demos. You can also help make Flash Player better by visiting all of your favorite sites, making sure they work the same or better than with the current player.

Key New Features

3D Effects - Easily transform and animate any display object through 3D space while retaining full interactivity. Fast, lightweight, and native 3D effects make motion that was previously reserved for expert users available to everyone. Complex effects are simple with APIs that extend what you already know.

Custom Filters and Effects - Create your own portable filters, blend modes, and fills using Adobe® Pixel Bender™, the same technology used for many After Effects CS3 filters. Shaders in Flash Player are about 1KB and can be scripted and animated at runtime.

Advanced Text Layout - A new, highly flexible text layout engine, co-existing with TextField, enables innovation in creating new text controls by providing low-level access to text offering right-to-left and vertical text layout, plus support for typographic elements like ligatures.

Enhanced Drawing API - Runtime drawing is easier and more powerful with re-styleable properties, 3D APIs, and a new way of drawing sophisticated shapes without having to code them line by line.

Visual Performance Improvements – Applications and videos will run smoother and faster with expanded use of hardware acceleration. By moving several visual processing tasks to the video card, the CPU is free to do more.

See the release notes for more information regarding this prerelease technology.

Feature Demos and Videos

Flash Player 10 Feature Tours and Demos

Interactively explore Flash Player 10 via demonstrations of the new 3D effects, custom filters, text layout, and interactive Inverse Kinematics features. If you want to know more about how things work, check out the collection of feature tour videos, hosted by members of the Flash Player team. For those that have created their own filters, the Pixel Bender demo is your chance to see your filter running live! (Demos require Flash Player 10.)

* Release versions of Flash Player 9 are now available from the Flash Player Download Center on Adobe.com.

Comments

DataProvider.getItemIndex() function does not work

In ActionScript 3.0, DataProvider.getItemIndex() method is not working properly. It mostly returns -1, as an indicator of ‘Item not found’ in the DataProvider.

Following code illustrates the problem ::

import fl.controls.ComboBox;
import fl.data.DataProvider;

var cb:ComboBox = new ComboBox();
this.addChild(cb);

var dp:DataProvider = new DataProvider();
dp.addItem({label:”Ashvin Savani”});
dp.addItem({label:”Naresh Khokhaneshiya”});
dp.addItem({label:”Jignesh Dodiya”});
dp.addItem({label:”Alpesh Vaghasiya”});

cb.dataProvider = dp;

//get index of item ‘Naresh Khokhaneshiya’
var index:int = dp.getItemIndex({label:”Naresh Khokhaneshiya”});

//following line outputs :: index : -1, which is totally wrong
trace(”index : ” + index);

//set the item selected
cb.selectedIndex = index;

Naresh Khokhaneshiya

Comments

AIR - Change the size of Stage at runtime dynamically

Yesterday I came across a fact that you can resize the stage size dynamically at runtime using actionscript code. But this is limited to AIR only (either Flash or Flex) but not supported in normal Flash.

Following is the code to change the width and height of the stage at anytime (runtime) using actionscript in AIR (Flash) ::

stage.stageWidth = {numericValue};

stage.stageHeight = {numericValue};

Of course, we can change the width and height of the stage in Flash (normal) using JavaScript or some other external script which controls the container of the swf file.

Regards,

Naresh Khokhaneshiya

Comments

Flash Player 9 does not support Ordered List

Surprisingly Flash Player 9 does not support Ordered List <ol> tag for TextField.htmlText property. It gives output same as Unordered List <ul>. Also it does not support “type” attribute of <ul> tag.

TextField.htmlText supports List Item <li> tag but that is also limited. It does not support “type” attribute of <li> tag. It supports only “circle” as a type of <li> tag.

Hope that Flash Player 10 will support <ol> tag :)

Regards,

Naresh Khokhaneshiya

Comments (3)

Download – Adobe announces AIR 1.0

Adobe today announces AIR 1.0. In their words, here are how it’s important for Developers and for How it’s good for business.

For Developers:

The Adobe® AIR™ runtime lets developers use proven web technologies to build rich Internet applications that deploy to the desktop and run across operating systems. It’s for all developers like AJAX, Adobe Flex Developers and Adobe Flash Developers.

Developer Links:

Business Benefits:

Adobe AIR offers an exciting new way to engage customers with innovative, branded desktop applications, without requiring changes to existing technology, people, or processes. Click here to know more on this.

Here are other important links:

Comments

Yahoo! Announces ASTRA 1.1.1 – A Toolkit for Flash and Flex developers

Last month Yahoo! released version 1.1 of Yahoo! ASTRA libraries for Flash and Flex. Based on community feedback, they revised it and came up with a maintenance release as 1.1.1. Hence there are no new components but many fixes to minor bugs. Here are release notes from Josh Tynjala directly:

AlertManager (Flash)

  • Bug fix: Alert dialog lost focus if the user selected the text and then hit the tab key.

Charts (Flash)

  • Improved animation and invalidation of markers.
  • Bug fix: Setting axis maximum less than the value of an origin-based marker (column, bar) hides the marker.
  • Bug fix: With large data sets, line charts are displayed offset from the left, which hides some data on the right
  • Bug fix: Axis displays improperly when all items have the same value.
  • Bug fix: Infinite loop when calculating minimum and maximum values in some cases.
  • Bug fix: PieChart displays the wrong category when values are primitive and equal.

MenuBar (Flash)

  • Bug fix: Selected menubar button lost focus if it was toggled very quickly with keyboard shortcuts.
  • Bug fix: Skin conflicts between Menu and MenuBar.

TabBar (Flash)

  • Bug fix: Styles like textFormat are not passed through to tabs.
  • Bug fix: focusIndex setter tries to access buttons before they are created.

AutoCompleteManager (Flex)

  • New events
  • Added API for adjusting minimum disk space requirements
  • Bug fix: caret bug when changing selection of completion dropdown
  • Bug fix: itemToLabel bug on certain types of entries
  • Bug fix: loopSelection quirkiness

This updated version is available on Yahoo! Flash Developer Center as following:

Via - http://www.yswfblog.com/blog/2008/02/20/announcing-astra-111/

Comments

Download – FlashDevelop 3.0.0 Beta 6 Released

We are using FlashDevelop as our AS3 code in our daily coding since a long time at Avinashi.

FlashDevelop is came up with a new Beta 6 release for version 3 with obviously some cool features and some bug-fixes. These features are as following:

Changes:

  • General UI and localization fixes and improvements
  • New Bookmarks panel added for an overview of all your open documents bookmarks
  • Captures Flash CS3 compiler errors in FD results panel when CS3 is called from FD
  • Contextual generators (Ctrl+Shift+1) for getter/setter, event listeners, override methods, interface implementation, unknown var/method
  • First class SWC integration in AS3 projects
  • New in templates, set package of new project. Creates the main class with the package you provide
  • You can run your project in your web browser instead of FD or external player
  • Less aggressive and generally smarter completion
  • Improved Flex Compiler support
  • Improved Flash CS3 support


Important:

  • Java 1.6+ is required for the Flex compiler (ActionScript 3).
  • The Flex SDK (2 or 3) is required for ActionScript 3 development if you don’t use Flash CS3.
  • Backup your customized user files and uninstall any previous versions of FlashDevelop 3.0.0.

Full Release Notes can be found here.

Download FlashDevelop 3.0.0 Beta 6 (Built from rev. 2133)

And obviously if that seems a nice editor for Flash CS3 developers, you should donate too J

Comments (1)