Flash – XML Video

May 28, 2009

Here is the XML – Video I made for an assigment. The video can be viewed here : http://maartendedetter.ikdoeict.be/flash.html

Do note that the CuePoints aren’t that perfect, this is because of the quality and properties of the encoder
also WordPress DOESNT allow embeded flash movies to be posted..

Flash and Other Embeds

Flash and all other embeds are not allowed in WordPress.com posts, pages, or text widgets. For security reasons we remove the tags needed for these to work. Your intentions may be innocent but someone somewhere would try to damage the site, affecting all of our users.

There are several safe ways to post Videos, Audio, and other items to your WordPress.com blog.

http://support.wordpress.com/code/

Flash – AS3 Libs

May 27, 2009

Some actionscript 3 libraries i found on everythingflex
RSS and Atom libraries is a very handy one if you’re using Atom & RSS Feeds mixed ;)

AlivePDF

AlivePDF is an open-source ActionScript 3 (Flash, Flex, AIR) PDF generation library.
It allows you to generate PDF’s client-side.
http://alivepdf.bytearray.org/?page_id=2

Amazon S3 ActionScript Classes

Connect to Amazon’s AS3 service from Apollo
http://code.google.com/p/as3awss3lib/

Artemis

Artemis is a community focused project aimed at bridging AIR (Adobe Integrated Runtime, formerly Apollo) applications with existing java libraries. Nearly any java API can be encapsulated in an Artemis Library and exposed to an AIR application through the Artemis framework.
http://artemis.effectiveui.com/

asSQL

Connect from ActionScript directly to mySQL
http://maclema.com/assql/

commandproxy

A simple development kit for proxying calls between applications and the operating system.
Useful for web based desktop application environments which may not have complete access to operating system functionality by default.
This project is intended as a proof of concept.
http://code.google.com/p/commandproxy/

Commando

Commando is an extension to Adobe’s Cairngorm that allows Flex developers to take advantage of command line parsing in their applications.
http://labs.effectiveui.com/commando/

corelib

The corelib project consists of several basic utilities for MD5 hashing, JSON serialization, advanced string and date parsing, and more.
http://code.google.com/p/as3corelib/

degrafa

Degrafa is a declarative graphics framework for Flex. Degrafa allows you to use MXML markup to draw shapes, make complex graphics, create skins and also includes advanced CSS support.
http://code.google.com/p/degrafa/

Ebay

The eBay ActionScript 3.0 library provides an interface between the eBay XML API and ActionScript 3.0. This open-source library will allow developers to create novel and innovative applications leveraging both eBay’s marketplace services and Adobe’s Flash Player 9 runtime! It is written in ActionScript 3.0, so any environment using ActionScript 3.0 can use this library, including Adobe Flex 2 and Adobe Flash Pro 9.
http://code.google.com/p/as3ebaylib/

Facebook

The Facebook Actionscript API provides an interface between the Facebook REST based API and Flash/Flex based applications.
http://code.google.com/p/facebook-actionscript-api/

FlexUnit

FlexUnit is a unit testing framework for Flex and ActionScript 3.0 applications. It mimics the functionality of JUnit, a Java unit testing framework, and comes with a graphical test runner.
http://code.google.com/p/as3flexunitlib/

Flickr

The Flickr library is an ActionScript 3.0 API for the online photo sharing application, Flickr. It provides access to the entire Flickr API.
http://code.google.com/p/as3flickrlib/

Jest

Jest is a mouse gesture interpereter extension to Adobe’s Cairngorm framework. Jest allows a developer to add mouse gestures to any Flex application.
http://labs.effectiveui.com/jest/

Mappr

Mappr is a service and application that combines images from Flickr with geolocational information. The Mappr ActionScript 3.0 API gives you access to Mappr’s geo-tagged image data.
http://code.google.com/p/as3mapprlib/

Odeo

The Odeo API provides an ActionScript 3.0 interface for searching and retrieving podcasts from Odeo.
http://code.google.com/p/as3odeolib/

Papervision3D

Papervision3D is an open source project enabling realistic 3 dimensional Flash.
http://code.google.com/p/papervision3d/

Pownce

AS3 library for connecting to the Pownce APIs.
http://code.google.com/p/as3powncelib/downloads/list

Ribbit

The Ribbit API allows developers to integrate telephony into their Flex and AIR applications.
http://developer.ribbit.com/

RSS and Atom libraries

Use the RSS and Atom libraries to parse Atom and all versions of RSS easily. These libraries hide the differences between the formats so you can parse any type of feed without having to know what kind of feed it is.
http://code.google.com/p/as3syndicationlib/

UrlKit

UrlKit supports Adobe Flex applications that need to expose URLs and window titles in the browser to represent their state. These URLs can be bookmarked, accessed via the Back button, etc. Such states typically represents some notion of location within the app, but in general can be mapped to any aspect of the application.
http://code.google.com/p/urlkit/

WOW-Engine 3D Physics Engine

This engine handles positions and rotations of abstract objects, which need to be linked to some visual objects (2D or 3D).
http://seraf.mediabox.fr/wow-engine/as3-3d-physics-engine-wow-engine/

YouTube

The YouTube API provides an ActionScript 3.0 interface to search videos from YouTube.
http://code.google.com/p/as3youtubelib/

Yahoo! Answers AS3 API

Yahoo! Answers is the most popular Q&A service in the world, with hundreds of millions of users and tens of millions of questions and answers. That entire dataset is available for search and retrieval via the web APIs, and now via the ActionScript APIs as well.
http://developer.yahoo.com/flash/astra-webapis/

Yahoo! Weather AS3 API

Yahoo! Weather provides current detailed meteorological conditions and forecasts for over 60 thousand locations around the world, from Aruba to Zimbabwe internationally, and from zip code 00210 to 99950 in the US. The data is updated hourly and comes with a full set of weather icons to reflect the conditions. The current weather report, in addition to temperature, contains full details on wind conditions, sunrise and sunset times, atmospheric conditions, and other data.
http://developer.yahoo.com/flash/astra-webapis/

Yahoo! Search AS3 API

Yahoo! Search indexes 19.2 billion web documents, 1.6 billion images, and over 50 million audio and video files. The search indices are updated daily and in addition to site search, feature image, video and audio search, song downloads, album lookup, news search, term extraction, spelling correction, related suggestions, local and context-based searches. All of these are accessible via the AS3 API.
http://developer.yahoo.com/flash/astra-webapis/

Yahoo! Upcoming.org AS3 API

Yahoo! Upcoming.org is a social event calendar with an open API. The Upcoming.org API allows users to manipulate all aspects of the calendar: edit and post events, create groups and venues, retrieve lists of events and metro areas, and so on. The AS3 wrapper provides convenient access to that functionality via native AS3 classes.
http://developer.yahoo.com/flash/astra-webapis/

Yahoo! Maps AS3 Communication Kit

Yahoo! Maps is a powerful map browser with multiple additional tools (widgets) that make it truly universal. The Maps API allows incorporation of GeoRSS feeds, custom marker creation, and many other features. Although the Maps library currently only exists as an AS2 component, we’ve created an AS3 wrapper that allows developers to use Maps in their AS3 applications.
http://developer.yahoo.com/flash/astra-webapis/

Flash – List Component

May 25, 2009

Using the List Component in Flash is very handy to use when for example using cue points as listitems..

Here are an example of how to use the listcomponent in AS3


//Define new list and add to stage
list = new List();
list.x = 100;
list.y = 100;
stage.addChild(list);


///AddItems
list.addItem({label:"3. Einde", data:"einde"});


//Check for Click
list.addEventListener(ListEvent.ITEM_CLICK, switchIndex);


private function switchIndex(e:ListEvent){
//Item Index
trace(e.index);
//Current Item
trace(e.item);
//Current Item Data
trace(e.item.data);
//...
}

Full Detailed description of ListEvent:
Here

Flash – XML

May 21, 2009

Links about XML and actionscript3

http://www.republicofcode.com/tutorials/flash/as3xml/

http://pixelfumes.blogspot.com/2007/05/easy-xml-parsing-using-as3-actionscript.html

http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm

http://www.gotoandlearn.com/play?id=65

http://www.blog.noponies.com/archives/16

Flash – Video Class

May 21, 2009

More info on the video class can be found here :http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/flash/media/Video.html

Info on ceu points can be found herehttp://www.mediacollege.com/adobe/flash/video/cuepoints.html

Flash – Tutorials and Resources

May 7, 2009

From kirupa.com

Tutorials

Resources

Flash Sounds

Flash Fonts

Also See

Releated Useful Lists

Releated Links

Flash – AS3 Tips & Tricks

May 7, 2009

Lots of Actionscript 3 Tips & Tricks…

Thank you kirupa.com

ActionScript 3 is the next step forward in Flash scripting and to help with the transition (for those of you deciding to make it), I thought I’d make a new Tip of the Day thread for ActionScript 3.0 to help people prepare (after 100 tips, they will no longer be provided daily).

Note: Many of these tips were created prior to the release of Flash and pertain to AS-only projects. Others were for use with the Alpha version of Flash (released prior to the full release of Flash). Most of these are noted as being for “Flash 9″. Though much has changed in Flash CS3, most of those tips should still apply to it as well.

To code AS3, you’ll need one of the following

:

ActionScript 3 Tips and Tricks:

Latest Additions
(All categories are ordered from oldest (top) to newest (bottom))

General

Language Elements/Behavior and Syntax

New Classes

Regular Expressions

Proxy Class

XML

Events

Errors and Error Handling

Display Objects (MovieClips)

Flash Authoring

Additional Resources:

Samples:

Flash – URLRequest

May 4, 2009

Methods relying on URL strings in ActionScript 3 now use URLRequest (flash.net.URLRequest) instances instead of direct string values for URLs. URLRequest instances contain the following properties:

  • contentType:String
  • data:Object
  • method:String
  • requestHeaders:Array
  • url:String

which relates to the URL itself (specified in the url property).

For example, when using navigateToURL() (flash.net.navigateToURL) (getURL() replacement), instead of passing a string of the URL to navigate to, you use a URLRequest instance.

var request:URLRequest = new URLRequest(“http://www.adobe.com/”);
navigateToURL(request);

Flash – Code Snippets

May 4, 2009

Some nifty tips I found on the net :) Hope they help you like did helped me ^^

Source

String
strReplace – A function used for replacing portions of a string with a new one.
wordCount – Returns the amount of words in the argument.

is_str – Returns true if the argument is a string, or can be used as a string.
autoFormat – All sentences are started with a capital, all “I”s are capitalised and sentences can be spaced.

Array
arrIndexOf – A function used for finding the index of the first occurance of an object in an array.

arrLastIndexOf – A function used for finding the index of the last occurance of an object in an array.
remove – Removes the specified index element from an array.
shuffle – Randomises the contents of any array between the startIndex and endIndex indices.

MovieClip
createClassMovieClip – A function used for creating empty movie clips with subclass association.

_brightness – Property for setting brightness of a movieclip (like in the IDE). Value range from -100% to 100%.
_recordframerate – Records the approximate frame rate.
fadeOut – Fades a movie clip out of the stage, based on the fade speed.

Number/Math
numParity – A function that returns the parity of a number. In mathematics, parity refers to whether a number is odd or even.

factorial – A function that returns n! (factorial) from a positive integer or the amount of combinations possible from a set.
numDerive – A function for approximating the derivative of a function at a point.
numRoundTo – A function for rounding a decimal number to a precision.
addCommas – Converts the parameter to a string and formats the number value correctly with decmals where necessary.
ordinalise – Reads the numberparameter and converts it into an ordinalised String.

is_numeric – Returns true if the argument is a number.
distanceBetween – Calculates the distance between 2 points.

Sound
pause – Stops a playing sound at it’s current position and allows access to a variable newPosition which enables the sound to resume at it’s last position.

Color
setBrightness – Method for setting brightness of a Color object. Value range from -100% to 100%.

Object
_recordDownloadSpeed – Monitors how fast an Object is downloading

TextField
getAction – Returns an the type of modification (paste or cut) done to a text field.

Drawing Methods
drawStar – A function used to draw stars in a movie clip.

Miscellaneous
verifyEmail – Reads the address parameter to a string and checks that it is compliant to the typical “valid” email standards of today.
alertPopup – This creates a nice looking draggable popup.

Classes
com.Javascript.Request – URL query vars class.

com.centerObjects.centerEasing – Tells flash to keep content within a flash movie centered.
com.dragging.Dragger – This class is designed to move objects in a grid.

Code Snippets
Custom ContextMenu – A script that hides the original right-click menu’s playback & zoom functions and allows you to add your own.

Accordian Component with Child List Components – This code creates an accordion component with 3 list components as its children.
Display Current Frame – A movieclip that you can place anywhere in your flash movie that will automatically display the current frame.

Flash – MP3 – ID3

April 26, 2009

MP3 sound files can contain ID3 tags, which provide metadata about the file.
If an MP3 sound that you load using the Sound.load() method contains ID3 tags, you can query these properties.
Only ID3 tags that use the UTF-8 character set are supported.

ID3 2.0 tags, specifically 2.3 and 2.4. The following tables list the standard ID3 2.0 tags and
the type of content the tags represent. The Sound.id3 property provides access to these tags through
the format my_sound.id3.COMM, my_sound.id3.TIME, and so on. The first table describes tags that can be
accessed either through the ID3 2.0 property name or the Sound class property name.
The second table describes ID3 tags that are supported but do not have predefined properties in the Sound class.


Follow

Get every new post delivered to your Inbox.