• Home
  • About
  • Publications
  • Contact
  • Imprint
  •  

    Recognize DisplayObject Transform Matrix Change Event in Flash AS3

    May 20th, 2011

    If another object changes the transformation matrix of a DisplayObject, the DisplayObject has no means to recognize that it has been transformed, as it is transformed automatically. E.g., there is no kind of TRANSFORMATION_MATRIX_CHANGED event that is dispatched on the DisplayObject. If your DisplayObject still should react on a change of its transformation matrix, a workaround is necessary, which is described in the following approach. I show a short solution at first and will explain the actual problem and solution approach in more detail afterwards.
    Read the rest of this entry »


    Remove ‘View Source’ from Adobe Air Debug Context Menu in Flash Builder

    October 11th, 2010

    Recently I wondered how I can get rid of that “View Source” entry in the context menu of Adobe Air as I wanted to add my own context menu there.

    It turned out that I had to remove all the source folder entries in the project’s run configuration (see in the image above).


    Adobe Air 2 Beta 2 VerifyError: Error #1014 (under Mac OS X and Win XP)

    February 16th, 2010

    Recently, I made my first steps in Adobe Air 2. As Air 2 is still in Beta version (currently in Beta 2, which was released on February 2, 2010) there still could be some problems when working with it.

    Read the rest of this entry »


    Flex Does Not Find Resource Bundles

    November 11th, 2009

    LocalizationProblem

    Recently I had the problem that my Flex code, which used the ResourceManager, would not find the resource bundle, which contained all resources for my application. However, the application compiled but it would always crash whenever the first time a resource should be loaded. I checked my compiler arguments a 1000 times but everything was correct and did work well in another Flex application. The problem was that my resource bundle was not present in the ResourceManager, it just did not load it.
    Read the rest of this entry »


    UNFOCUS – FOCUS

    September 15th, 2009

    I am going to present a few projects on my blog in which I collaborated in one or the other way. The project UNFOCUS – FOCUS is a multi-touch and TUI project that makes use of our fiducialtuioas3 classes.

    UNFOCUS - FOCUS interface

    What is UNFOCUS – FOCUS about?
    How can we know what we do not see?
    Read the rest of this entry »


    fiducialtuioas3 Now Supports Pure TCP TUIO Messages

    August 13th, 2009

    Important: I discontinued the work for fiducialtuioas3. If you are starting a new project, consider using our new AS3 Tuio library Tuio AS3. As you most certainly came here because you want to use fiducials in AS3 find the according Tuio AS3 fiducial howto here.

    fiducialtuioas3 now supports pure TUIO messages via TCP.

    TCPSupport

    The bridge TUIO → Flosc → Flash is now being replaced by the bridge TUIO → udp-tcp-bridge → Flash. The latter method renders the transformation of TUIO messages to a proprietary XML dialect obsolete. That speeds up the connection of the TUIO producer (e.g. Touchlib, CCV or Touché) to the Flash application itself (e.g. Vispol, Volvelles) and thus reduces lag.

    Hopefully, TUIO producers will support the output of TUIO via TCP natively soon (as far as I know at least Touché does). However, you are on the safe side if you use memo’s cross platform, open source, C++ UDP TCP bridge.

    The TCP tuio AS3 classes have been downloaded and adapted for the additional support of fiducials from Touchgateway.

    So you can download fiducialtuioas3 in both flavors (via Flosc and via pure TCP TUIO) from the fiducialtuioas3 google code repoitory (on the right).

    In the nuigroup there are a threads about fiducialtuioas3 here and here.


    Load XML and text files from your HD into Flash with AS3 and PHP

    July 30th, 2009

    In this post I’ll show how to load a file with a file chooser dialog from your local HD into an Internet Flash application in your browser. In another post I’ve explained how to save a file to HD from Flash.

    With a little workaround it is possible to load files into Flash in a way that it feels just as if you would do it with a common application: You are being asked with a standard system file dialog, which file you want to load in your application.

    However, at first you have to park (i.e. upload) your file on a server in order to make it “publicly” available for your Flash app:

    Howto save and load text files with AS3

    Figure 1: Howto save and load text files with AS3


    Read the rest of this entry »


    Twitter AS3 library TwitterScript Flex Example

    May 1st, 2009

    I have been looking around for Actionscript 3 libraries for the retrieval of data via the very nice Twitter API. Basically, TwitterScript seems to be a good choice for a Twitter Flash library as it wraps Twitter query URLs and packs the XML results automatically in arrays.

    Twitter Banner

    However, as so often with Actionscript libraries there is NO documentation pertaining TwitterScript available on its Google code page, there is no example included in the source code and the source code is not commented. What could be so difficult about providing a little piece of code like this:

    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" 
          addedToStage="init()">
      <mx:Script>
        <![CDATA[
          import twitter.api.data.TwitterStatus;
          import twitter.api.events.TwitterEvent;
          import twitter.api.TwitterSearch;
            import twitter.api.Twitter;
     
          private static const TWITTER_USER:String = "stephenfry";
     
          private var _twitter:Twitter;
          private var _twitterSearch:TwitterSearch;
     
          private function init():void{
            _twitter = new Twitter();
            _twitterSearch = new TwitterSearch();
     
            _twitter.loadUserTimeline(TWITTER_USER);
            _twitter.addEventListener(TwitterEvent.ON_USER_TIMELINE_RESULT, 
                userTimelineResult);
     
            _twitterSearch.addKeyword("ipad");
            _twitter.addEventListener(TwitterEvent.ON_SEARCH, onSearchResult, 
                false,0,true);
            _twitter.search(_twitterSearch);
          }
     
          private function userTimelineResult(e:TwitterEvent):void {
            var twitterStatus:TwitterStatus;
            for (var i in e.data) {
              twitterStatus = e.data[i]
              trace("user tweets",twitterStatus.text)
            }
          }
     
          private function onSearchResult(event : TwitterEvent) : void{
            var twitterStatus : TwitterStatus;
            for (var i : int = 0; i < event.data.length; i++){
              twitterStatus = event.data[i];
              trace("search result:",twitterStatus.text);
            }
          }
        ]]>
      </mx:Script>
    </mx:Application>

    This example originates to Trevor Boyle’s blog. Improved by Kimi.


    Touchlib’s TUIO Actionscript 3 Classes Enhanced With Fiducial Support (Source Code)

    April 22nd, 2009

    Important: I discontinued the work for fiducialtuioas3. If you are starting a new project, consider using our new AS3 Tuio library Tuio AS3. As you most certainly came here because you want to use fiducials in AS3 find the according Tuio AS3 fiducial howto here.

    In his Bachelor thesis Frederic Frieß enhanced the original Touchlib TUIO AS3 classes with support for fiducials (or to speak in TUIO terms with support for /tuio/2dobj messages).

    fiducialtuioas3 Google code

    Thus, the Touchlib’s TUIO classes can simply be replaced with Frederic’s classes and everything should still work as before. However, there is one slight change in the package structure: the TUIO classes are now lying inside the package tuio and not in the package flash.events.

    I have made Frederic’s Tuio Fiducial AS3 classes available on Google code in a project called fiducialtuioas3.

    If you want to use reacTIVision fiducials in Flash, Flex or Adobe Air you are heartily invited to use these classes in your private and professional project.

    Examples of what has been done so far with those classes:
    Tangible Vispol
    Pf Design Media Installation

    If you have a nice project with fiducialtuioas3 it would be great if you shared a link with us via mail or in the comments.


    How to get smooth image scaling in Flex

    April 15th, 2009

    Great article from Ben Longoria about how to get smooth image scaling in Flex.


    WordPress SEO fine-tune by Meta SEO Pack from Poradnik Webmastera