Archive

Posts Tagged ‘ActionScript 3.0’

The Date Class in AS3

February 24th, 2009 No comments

The Date class will allow you to check the current date and time on a user's computer. You'll find this class valuable when developing widgets like an event count down clock. To work with the Date class, you must instantiate a Date object:

  1. var myDate:Date = new Date();
  2. trace(myDate);

When the Date object has been built, you can call methods or get properties of the Date class to get date and time values:

  1. var myDate:Date = new Date();
  2. trace(myDate.getDate());

The getDate() method gets the current day of the month.

The getMonth() method gets the month of the year as a number value. Numeric references to the current month are not the normal month numbers we are used to working with.

For example, January is equal to 0 and December is equal to 11. For display reasons, always add 1 to the returned month number to get the true calendar month value.

Available methods for getting Time and Date properties of the Date class are:

  • getDate();
  • getDay();
  • getFullYear();
  • getHours();
  • getMilliseconds();
  • getMinutes();
  • getMonth();
  • getSeconds();

Note: For a full description of each method search "date class" via the Flash help menu.

Easy.. now get fancy with it and tell us what you created..

Making flash sites search engine friendly

February 22nd, 2009 No comments

Until now Flash sites have not ranked well with search engines because they could not index them. For web developers or SEO specialists, this meant extra work.

In a press release on Tuesday Adobe announced that it was working with both Yahoo! and Google to enable indexing of Flash files. The project will enable searches on Flash content to return text and links, which can then be indexed. Better still, current Flash content will be immediately searchable by search engines, without alteration.

David Wadhwani, general manager and vice president of the Platform Business Unit at Adobe said:

Until now it has been extremely challenging to search the millions of RIAs (rich Internet applications) and dynamic content on the Web, so we are leading the charge in improving search of content that runs in Adobe Flash Player. We are initially working with Google and Yahoo! to significantly improve search of this rich content on the Web, and we intend to broaden the availability of this capability to benefit all content publishers, developers and end users.

Of course, all this assumes that the search engine has the Flash tech working: Google is rolling out Flash search today, but Yahoo! said it was going to enable the feature in a later release of its search engine and that it was “working with Adobe to determine the best possible implementation.” And no, Microsoft wasn’t mentioned at all.

However, Adobe’s statement does indicate Adobe will work with other search engines as well. With Microsoft having its Flash competitor, Silverlight, however, I’m wondering if that will slow things down between the two companies.

Downgrade to Flash 9

February 22nd, 2009 No comments
I recently needed to downgrade from Flash 10 to Fflash 9 because some of my scripts stopped working as soon as I made the update. You can download old versions of the player @ http://kb.adobe.com/selfservice/viewContent.do?externalId=tn_14266&sliceId=1.
SEO Powered by Platinum SEO from Techblissonline