Tuesday, February 7, 2012

Flash threads ( native Workers solution )

In Flash Player 12 the programmers can use Threads. The Threads called Workers, and the instances called Promises.
What we need to know about workers: The workers shared nothing, have message passing, and have shared render surface.


Flash thread ( Pseudo Thread solution )

Flash (Action Script) doesn't have (yet) Threads. The answer is simple: the concurency management too complex to an average Flash (or designer) developer. Threads will be available in Flash Player 12, but what we can do until? We can emulate the Threads ( called PseudoThread ).

The Flash Player has only limited thread ( example: request from server with async, event handling, video rendering ), but how can we delegate (or emulate) a Thread? (Not) Simply :) If you run a huge while or for each, you experienced that the UI froze.... Because the Flash Player has frames (and frame times too), so if your code don't fit in a frame time, the Flash can't update the UI.

The solution is: Use PseudoThread, and slice your function to. What is function slicing? If your program do A->B->C->D->E you can split "virtually" 5 segment. If you know, what is the actual segment that need to run, and rebuild the function state ( the variables that use common each segment ), you can pass the A, and some frametime later you can pass the B segment and so on.

Advanced Datagrid groupping tree bug

If you group an AdvancedDatagrid dataprovider with a grouping field, there is a mistake: If you have many rows, and scroll to right to the table, and than group a field, go back to scroll left, but there is an error (or you don't have error, but the tree lost some values). Obviously it is fail.

    <mx:AdvancedDataGrid width="100%" height="240"
            horizontalScrollPolicy="on" verticalScrollPolicy="on" >
        <mx:dataProvider>
            <mx:GroupingCollection2 id="gc" source="{arr_personal_production}" />
        </mx:dataProvider>
      
        <mx:columns>
            <mx:AdvancedDataGridColumn headerText="#" dataField="mppid"/>
            ...
        </mx:columns>
    </mx:AdvancedDataGrid>


Different round, floor, ceil


If you ever use a programming language to calculate something you will use the floor, the ceil, the round functions. It's freaky, but the result of these function differs. Here it is the source codes, and the output results. Funny ActionsScript and obviously Java :)

Friday, August 12, 2011

Cowboys & Aliens effect recreating using Adobe After Effects and Adobe Photoshop

Film Riot recreates weapon effects from Cowboys & Aliens using Adobe After Effects and Adobe Photoshop.
http://revision3.com/filmriot/cowboysandaliens

Video training: Adobe After Effects switches & other controls

Andrew Devis explains switches & other controls in the After Effects Timeline panel
http://library.creativecow.net/articles/devis_andrew/AE-Basics-8-Timeline-2/video-tutorial

Create extensions for Photoshop and Illustrator with Flex or Flash Builder

The tool called Creative Suite Extension Builder, you can find here:
http://www.adobe.com/devnet/creativesuite/cs-extension-builder.html

Introducing CS Extension Builder 1.5
http://www.adobe.com/devnet/creativesuite/articles/intro-cs-extension-builder15.html

Build a Creative Suite extension in 5 minutes
http://www.youtube.com/watch?v=JQYw7SBY1ao


In-depth view of CS Extension Builder

Part 1: Create, debug and attach CS extensions
http://www.youtube.com/watch?v=TcCSCtm-eVM

Part 2: Bundle Manifest Editor, skin and export CS extensions
http://www.youtube.com/watch?v=EXSupUsyMMU

Wednesday, August 10, 2011

Adobe developer week: Tips & tricks for maximizing Flex application performance

Both mobile and desktop:

http://adobe.ly/qpRhSs . (adobe.com membership ID required)

Adobe developer week: Migrating from Flex 3 to Flex 4.5

Understanding changes from Halo to Spark:

http://www.adobe.com/cfusion/event/index.cfm?event=set_registered&id=1839285&loc=en_us

Note: Adobe ID required to view the recorded event.

Adobe Flash Player 11 Beta for Desktops

New features for browser-based, expressive content

Adobe® Flash® Player 11 desktop beta drives innovation for rich, engaging digital experiences with new features for cross-platform browser-based viewing of expressive rich internet applications, content, and videos across devices. Some of the features from the Flash Player Incubator, such as Stage 3D and 64-bit support, have been moved into this beta release.
Key benefits of the Flash Player 11 desktop beta include:
  • Stage3D APIs — Deliver cutting edge three dimensional experiences on the desktop.
  • Native 64-bit support — Support for 64-bit operating systems and browsers on Linux, Mac OS, and Windows.
  • G.711 audio compression for telephony — Integrate real-time voice and telephony capabilities into business apps and integrate with existing phone systems using the G.711 codec.
  • H.264/AVC SW Encoding — Create apps that encode higher quality video locally using the efficient H.264 video standard.
  • Socket Progress Events — Improve management of data transfer, track progress, and provide responsive feedback in apps send large amounts of data.
  • JPEG-XR support — Take advantage of support for the advanced JPEG-XR image compression format to deliver higher quality images with less bandwidth, and leverage lossy and lossless compression with alpha channel transparency.