AS3 SoundMixer, my turn

It seems everybody did a test with the ActionScript3 SoundMixer class 🙂
How many of you still remember the days of FlashKit spectrum analyzer?
It seems so long time ago when we had to find a way for extract spectrum informations from mp3 files..
Btw, now it’s my turn with a little experiment
Flash player 9 beta 3 is required
[kml_flashembed publishmethod=”static” fversion=”10.0.22″ movie=”http://blog.sephiroth.it/wp-content/uploads/2006/05/sound_mixer2.swf” width=”350″ height=”200″ targetclass=”flashmovie” fvars=”mp3=http://blog.sephiroth.it/wp-content/uploads/2006/05/song.mp3″]

Get Adobe Flash player

[/kml_flashembed]

P.S. The song is from Epica:
album: Consign to Oblivion album
track: Huban K’u “A new Age Dawns – prologue”

[attachments docid=773 force_saveas=”1″ logged_users=”0″]

DragController updated

Thanks to the hard work of Nicolas Zeh the component I did some time ago (draggable controller) has now lot of changes!

  • a new name: DragController
  • drag and drop multiple items at once if multipleSelection is set to true for a component
  • added the following methods to the DragEvent Object:
  • evt.checkType
  • evt.addItem
  • evt.removeItem
  • evt.addAndRemoveItem
  • the methods were renamed to fit Macromedias naming conventions for methods
  • i lowered the addReference restriction that both components have to be UIComponents. Now only the source has to be an UIComponent and the target suffices to be a MovieClip.
  • added a veto method for the “drag_start” event. So user can decide on this Event if he would like to allow dragging of this specific item.
  • added an onDropData method besides the Event handlers. So you can assign this method directly to a defined target component.
  • added flags similar to DragAndDropTree component. These are:
  • DENYDRAGFOLDER (only tree component)
  • DENYDRAGITEM (only tree component, as i makes no sense for other components)
  • DENYDROPINTOITEM (only tree component)
  • DENYDROPINTOFOLDER (only tree component)
  • DENYDROPINTO (only tree component)
  • DENYDROPINBETWEEN this option disallows setting a specific target index position and will add the item at the end of the List, DataGrid, Tree
  • removed some bugs concerning Focus on Component and selectedItems. But i am not sure if there aren’t some left due to Flash’s strange Focus mechanisms. (sure, I still haven’t understood the focus mechnism of MM components)

There’s also a very comprehensive help of the component (just look in the F1 flash help panel)

[attachments size=large docid=768 force_saveas=”1″ logged_users=”0″]

Open Source ActionScript 3 Libraries Updated

Macromedia (ops.. Adobe) has just released a new beta version (3rd beta) of Flex, Flex Charting Components, Flex Data Service Components and Flash Player 9 (was 8.5).
In addition to new beta builds the open source ActionScript 3 libraries have been updated too.
These libraries include a number of changes:
* Updated to work with beta 3
* Some API renaming (mostly in corelibs : com.adobe.utils)
* Removed some redundant APIs (mostly in com.adobe.utils)
* Fixed bug where events where not being documented in docs
Libraries available are:
* corelib
* FlexUnit
* Flickr
* Mappr
* RSS and Atom libraries
* Odeo
* YouTube
also available for download via SVN using:

svn checkout http://labs.adobe.com/subversion/flashplatform/

For more informations see adobe labs
http://labs.adobe.com/svn/flashplatform/?/projects/

From flashticle import swf

During the reading of one of the articles at osflash I’ve got inspiration (and portion of the code) from flashticle project to start with a little project by myself (called pyswf).
That’s not *really* a project, also because there are so many decrypers, disassemblers, optimizators etc around here, but more an exercize for better understand both python and the SWF file format…
BTW, currently it can read quite almost all swf tags and actions, writing them in a pseudo-code (later i will try to create the original actionscript code), and also extract some of the swf embedded multimedia objects (such as flv, mp3, wav, and images)
for example:
main -e "test.swf"
it will print all the swf code in the output buffer and also extract all the multimedia files embedded into test.swf
you can download the source code (with also a win32 binary) from here

Infragistics Alignment Manager

For who is familiar with sizers there’s no need to explanation.
I was noticed about this component and after a quick look at the online demo I was conviced to download and try it.
I must say the component inspector ir really well done. It can remember in some way Visual Studio’s inspector for components alignment..
It allows you to easily manage your movieclips on the stage once the stage has been resized.
An example of this behavior, the way sizers work: look at Image Gallery3, navigate and try to resize the borwser window. You’ll see that all the objects on the stage change their position according with the window size…
In order to download Alignment manager you need to fill a registration form: http://www.infragistics.com/..code=NAISAM
http://www.infragistics.com/design/

SWF server side compiler with MTASC

I never thought at this before but it was so obvious!! …put the mtasc binary on remote server and let it create swf on the fly!
HOSHI Tetsuya put toghether a server side swf compiler using mtasc (http://hossy.net, Everything is unreadable… just click on ENTER 🙂 ).
He also published the source code (php files): http://hossy.net/sssc.zip
http://hossy.net/

Flash 8: security problems

There’s a couple of interesting posts on franto’s blog about the problems which the new release of flash brought… (about local and network access)

http://www.franto.com/blog2/flash8-security-problems

and
http://www.franto.com/blog2/flash8-security-problems-still-no-solution
I suggest also read all the users’ comments, very interesting… and the problem seems to remain unsolved.
http://www.franto.com/blog2/flash8-security-problems

NetConnection Debugger Alternates

Today I’ve started a new Flash project which will also involve Flash Remoting.
So I decided to try this ServiceCapture tools for debugging the amf messages as replacement of the builtin NetConnection debugger.
I’m really suck of the flash NetConnection Debugger (it works 50% of the times for me). Sometimes I need to close and re-open it in order to make it works again, sometimes it doesnt display anything at all…
Btw, ServiceCapture can capture every kind of HTTP traffic, not only remoting calls and it has also a bandwidth simulation feature. (and these are cool features)
However the full license costs $34.99, which is not so cheap for this kind of tool.
http://kevinlangdon.com/serviceCapture/