Archive for May, 2008

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 Labs announces Adobe Dreamweaver Beta

Adobe labs announces Adobe Dreamweaver Beta. You can download Adobe Dreamweaver Beta from here.

Adobe Dreamweaver Beta includes following new features ::

Live View

View your web pages under real-world browser conditions with the new Live View in Dreamweaver — while still retaining direct access to the code. The new rendering mode, which uses the open source rendering engine WebKit, displays your designs like a standards-based browser.

Related Files

Manage the various files that make up the modern web page more efficiently in Dreamweaver. The Related Files feature displays all the documents associated with your current page, whether CSS, JavaScript, PHP, or XML, in a bar along the top of your document.

Code Navigator

The new Code Navigator pop-up window shows you all the code sources that affect your current selection. A click in either Code or Design view brings up the Code Navigator pop-up, which displays CSS rules, server-side includes, external JavaScript functions, Dreamweaver templates, Library files, iframe source files, and more.

CSS best practices

The Property inspector’s new CSS tab shows the styles for the current selection as well as all the applicable CSS rules. Hover over any property to view a tool tip with jargon-free English explanations of CSS principles. New CSS rules can be created and applied in the Property inspector panel and stored in the same document or an external style sheet.

Code hinting for Ajax and JavaScript frameworks

Write JavaScript more quickly and accurately with improved support for JavaScript core objects and primitive data types. Work with popular JavaScript frameworks including jQuery, Prototype, and Spry.

HTML data sets

With HTML data sets functionality, you can create your data in a standard HTML table, a series of div tags, or even an unordered list and then choose Insert > Spry > Spry Data Set to integrate that data into a dynamic table on the page with sortable columns, a master-detail layout, or other sophisticated displays.

Photoshop Smart Objects

Photoshop and Dreamweaver integration has evolved to the next level of compatibility and functionality. Drag and drop an Adobe Photoshop® PSD file into a Dreamweaver page to create an image Smart Object.

Subversion integration

Dreamweaver integrates Subversion software for a more robust check-in/check-out experience with file versioning, rollback, and more. Once you’ve defined Subversion as your version control system, you can update your site to get the latest versions of its pages directly from within Dreamweaver; no third-party utility or command-line interface is required.

Adobe® AIR™ authoring support

Create multiplatform desktop applications from your Dreamweaver HTML and JavaScript sites with new Adobe AIR™ authoring support.

New user interface

Work faster and smarter across Dreamweaver and other components of the next version of Adobe Creative Suite® thanks to a new level of integration and common user interface elements.

Read the release notes for additional details regarding the Dreamweaver beta.

Comments (2)

Virtual Directory in WAMP using Symbolic Link

You can setup a virtual directory in WAMP using Symbolic Link. You have to create a symbolic link in Windows using following command :

mklink /D [virtualDirectoryName] [TargetDirectory]

Where,

/D indicates the target is a directory, by default it would link to target file

[virtualDirectoryName] is the name of the virtual directory in the wamp/www folder

[TargetDirectory] is the target directory to which you want to link the virtual directory

For example, if I want to create a site using name ‘mysite’ and I want to link this virtual directory to the directory ‘d:\somefolder\sitecontent’, then, assuming the location of wamp as ‘c:\wamp\www’, I will create symbolic link as follows :

mklink /D c:\wamp\www\mysite d:\somefolder\sitecontent

I think it would be very useful to create virtual directories in wamp so that you would not have to put all the content into wamp/www directory.

Comments (4)

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

MXNA is back again with new name - Adobe Feeds

Just heard that MXNA is now back again, possibly with new scalable hardware and more power. It is also now re-branded as Adobe Feeds. Now can read the Adobe News Paper again every morning :)

Great work Mike and his team. Keep it up.

Comments

Adobe announces New Acrobat Connect Pro

Adobe today announces new version of Acrobat Connect Pro.

Here are interesting updates for Developer and End user perspective:

  1. It does have support of editing the recording. Yes, now you can edit your meetings recoreded previously. That is really cool feature so you can remove unnecessory items from it and can have neat and clean content. Very good for Universities so they can have meeting recorded and edited for perfect reference for some subject or topic.
  2. Integration with IMs. With new version of Acrobat Connect Pro, you can see your friends and mates inside meetings. I still not experienced the new version but still, guessing you should able to invite them to join meeting etc.,
  3. Improved LMS support for e-learning. Now Acrobat Connect Pro supports tight integration with LMS. A meeting room can be splitted in to some sections for seperate discussion for group of students. With other improvements in e-learning through Acrobat Connect Pro, Adobe tried the best to minimize the distance between virtual class room and the actual class rooms.
  4. New version of Adobe Presenter. Adobe also launched new version of Adobe Presenter along with Acrobat Connect Pro, which is add-on to facilitate smoother experience of meetings. In this new version of Adobe Presenter, Now you can have complex puzzle creation support with randomization. There is also improvement in working with video in Adobe Presenter. Now you can also publish your presentation(s) to Mobile Devices and inside PDF too.

Availability:

According to press release, it should be available at end of May, 2008 with languages listed below:

  1. English
  2. French
  3. German
  4. Spanish
  5. Dutch
  6. Italian
  7. Brazilian Portuguese
  8. Japanese
  9. Korean
  10. Simplified Chinese

Important Links:

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)