Archive for the ‘ flash ’ Category

SWX PHP – takes only 3 minutes to set up

I am working on a new project that requires serverside development, using Apache, MySQL and PHP. However I didn’t want to change my current personal webserver configuration – the one that comes with OS X, and I remembered my friend Eran’s tip about MAMP – an independent standalone webserver, but never got to download it.Then, few days later, Aral released SWX PHP 1.0 (remember SWX?), and offers a very convenient way to start playing with SWX in minutes, using no other that a MAMP bundle, already configured with a useful Start Page linking to the SWX Service Explorer & Data Analyzer , can’t be simpler than that.. try it out!Great work Aral! I liked the Screencast explaining how to set it up, Aral simply explode you with knowledge : )
swx.jpg
I also find the SWX icon very amusing in my dock..

FIVe3D – a new Flash ActionScript 3D package

five3d.jpg
A new open source vector based 3D animation engine for ActionScript called FIVe3D has recently been shared by Mathieu Badimon. Thanks Mathieu!It is a ActionScript 2 classes package, enabling 3D rotation and position control over objects such as movieclips and text fields.For setting up a simple 3D environment, with simple objects and basic interactivity it is indeed fast and pretty simple, as described by the author. I am sure in few months it will pick up some more advanced functionalities, we should be proud that such exiting initiatives are emerging in the open source sphere.I was impressed by the thorough (and beautiful..) documentation he provides with the source code, neatly packed in a pdf file. that’s the way!

Flash, a dominant video platform

The last Adobe Flash Player update, (Aug 21, codenamed “Moviestar”) integrates H.264 video and High Efficiency AAC audio codecs, as well as multi core support and full screen mode with hardware scaling.So flash will soon deliver HD quality videos, good news : )Flash is probably the best video platform today, as it combines the customizable interactivity of flash scripting and advanced streaming and playing abilities.The recently updated YouTube player is a great example, developing the video playing experience by improving the most difficult part – selecting the video out of the endless inventory without too much effort by the viewer. In the new player when the video you watched is over, relevant videos are offered, very aesthetically and in the same location, without visiting the flickr website or even leaving the page. nice.YouTube new player interface:youtube_interface.jpg

Flash – Highlighting a string in a textfield

Jack Doyle at greensock shared a really cool AS2 class he calls ‘TextMetrics’ – sounds promising ha?The class calculates x/y coordinates of a string in a textfield, allowing highlighting it or calculating rows width.. nice.Check out his example. Thanks Jack!

3D in Flash CS3 – Papervision3D Component

Few days ago John Grden released Papervision3D Component for Flash CS3.I wanted to try Papervision3D (actionscript 3D engine, check this out!) for some time now, and didnt have the time, with this cool shortcut I simply couldn’t resist..This component adds a panel for controlling properties of ‘Papervision3D COLLADA Scene’ component, properties such as the Source 3D file (collada = .dae), Camera settings and Model rotation or scale. The component also enable design-time rendering in Flash IDE, which is great! Flash and 3D are combined, in one native IDE. cool times.
check this vid out: (Sorry, the vid is no longer available)
Beside Flash components sweetness I still need the 3D modeling to be done on my Mac, I am not fluent in the 3D modeling world, but Blender is free and easily imports and exports Collada files, I guess it can give answer to my simple demands..

Started using Eclipse for ActionScript, not leaving Flash yet

During the last couple of months I’ve been doing some heavy flash work for ICQ (that instant messaging thing), great guys there.Anyway, part of the project required generating SWF files on a server, compiled using MTASC, an open source ActionScript compiler. I decided to grab the opportunity and start using Eclipse (an open source development platform) for editing ActionScript on my Mac (instead of TextWrangler), and compile with MTASC without the help of Flash IDE.It is easily done using the Flashout plugin. a great tutorial found here, it works the same on Macs, as Eclipse is platform independent.Well, so far I am a bit disappointed, compiling is faster but using ASDT for editing the AS code is not that good, it is not so up to date with features… hope a new release is coming soon.In meantime, I still want Flash and TextWrangler available.Speaking of ASDT, can someone please explain why my ‘Refactor’ menu is disabled?!

SWX – a cool way to exchange data in flash

Great things are happening recently! SWX is a new data exchange format for flash, by Aral Balkan, basically delivering the data in swf format, so the flash is actually using a native loadMovie() function to load the data.Passing data to and from flash has been evolving for a long time now, recently it seems like it even accelerated. I am really happy with this one, cause unlike other solutions, it took me about 10 minutes to figure out how to set it up (this means it is simple if you had doubts), and implementing this method looks simple enough to become very popular.I like the concept of passing data in swf format, but I wonder, are these data swf files cashed in users machines?I will keep track of this for sure.

Apollo this is earth, do you read?

Eric Dolecki wrote an inspiring post about “what Apollo might bring“, I must admit I share his excitement, I witnessed Flash evolve from a graphics and animation oriented application into a global standard RIA platform, empowering new approaches to User Interface, and changing the web application experience.

Apollo is a cross-OS runtime that allows developers to leverage their existing web development skills (Flash, Flex, HTML, Ajax) to build and deploy desktop RIA’s.

Apollo will probably do the same to desktop applications, enrich our desktop apps experience – applications will talk to each other, be updated without user involvement, be more personalized, and best of all – platform independent.In addition to that, imagine the impact open source projects such as Red5 will have on the way we communicate – as the costs of server applications to “talk” to (or through?) are dramatically diminished.I am definitely optimistic.

Communicating with Flash – External Interface method

Be warned, I will discuss ActionScript in the following words, you may want to eat something before reading any further. Any way, this may not be “hot news” but will still open my ActionScript category :) From time to time when I have more than one flash site open and they play sounds or music, I get confused which window produce what music? Since I am using a Mac where all the windows sounds just blend, it is really hard to tell.I expect flash authors & developers to handle this issue, especially in flash website, by adding a script that will stop the sound in the flash when the window is loosing focus. This is an example of a need for communication between flash and the scripting environment, invoking JavaScript functions from flash and vice versa, actually it’s also relevant in applications embedding flash player, and maybe Apollo soon?.
I will start with legacy methods:
The good old Flash Methods is pretty simple but very limited, all it can do is set/get a property in the flash object, or send flash few basic commands. The other direction – invoking JS functions from within Flash was done using fscommand that can pass one argument, so by using some kind of formatting (heard of Jason?) enabled passing few values in one string. However, fscommand does not return any value to flash, and therefore required using listeners for utilizing in more complex applications.
The new method:The External Interface Class Is a more matured method for communicating between ActionScript and the environment, available for flash version 8 and above, all major browsers.

From ActionScript, you can do the following on the HTML page:
Call any JavaScript function, Pass any number of arguments, Pass various data types (Boolean, Number, String, and so on), Receive a return value from the JavaScript function.
From JavaScript on the HTML page, you can:
Call an ActionScript function, Pass arguments using standard function call notation, Return a value to the JavaScript function.

It works by registering a function for external use by the browser, the registration is done using the ExternalInterface class and basically dedicates a unique name for each function.
This example shows an event (Page loosing/getting focus) that triggers a function in flash (stop/play sound), you can download sources here.

Spend a night with Geni – a new Genealogy site

GeniBeta.jpg
A new genealogy tree creation site has recently been launched, but this one Geni.com is really fun! without presumptuous features, the interface is made in Flash, so easy & strait forward that even my grandma can manage. Yesterday I sent my parents an invitation to see the tree I started, and this morning I saw a forest! this is so sticky, and the great part is that it bring your family closer, in contrary to all the trendy anonymous sharing communities this deals with your loved ones.I love the concept.
geni-tree.jpg
Look what my mom did!If you’re into Genealogy you should also check MyHeritage.com, though Safari browsers are not welcomed, it is well worth launching Firefox to find out you look like Fox Mulder…