Member 68
24 entries
37422 views

 RSS
Contributor to project:
Design Media Arts at UCLA
Joe Chunzu Liao (M, 34)
Hong Kong, HK
Immortal since Mar 29, 2007
Uplinks: 0, Generation 1

joe.liao.info
  • Affiliated
  •  /  
  • Invited
  •  /  
  • Descended
  • Recently commented on
    From adam
    Who gets to go? part 2
    czliao’s project
    Design Media Arts at UCLA
    In the 1970s space colonies were considered to be a viable alternative to a life restricted to planet Earth. The design of cylindrical space...
    Now playing SpaceCollective
    Where forward thinking terrestrials share ideas and information about the state of the species, their planet and the universe, living the lives of science fiction. Introduction
    Featuring Powers of Ten by Charles and Ray Eames, based on an idea by Kees Boeke.
    The Arduino–Flash communication tutorial can be found here.

    While the code for the flash side (action scripts) is as follow:
    ///////////////////////////
    ——————————-
    fscommand("fullscreen", "true");

    Mouse.hide();
    //———————————————————————————————————— Basic Arduino

    import Arduino;

    var port:Number = 5331; // What socket port are we configured to use?
    // See the net_port entries from serproxy.cfg

    // Create a custom object from Flash's XMLSocket
    var a:Arduino = new Arduino(port);


    //———————————————————————————————————— Listeners


    // You can trigger custom actions by adding listners to the Arduino object. For example, you can setup your
    // ActionScript code to run a setup function when Flash successfully connects to the socket listener

    aListener = new Object();

    aListener.onConnect = function() {
    trace("hello world");
    }

    aListener.onReceiveData = function(evtObj:Object){
    //Store the received data in a string
    var str = evtObj.data
    trace("Arduino says — " + str);

    if (vid1._currentframe != 1)
    {
    trace("key pressed1");
    vid1._alpha = 0;
    vid1.gotoAndStop(1);
    vid2.play();
    } else {
    trace("key pressed2");
    vid1._alpha = 100;
    vid1.play();
    vid2.gotoAndStop(1);
    }
    //Tests for a particular message from Arduino, and acts accordingly
    /*if (str == "switchOff") {
    vid1.play();
    vid1._alpha=100;
    vid2.gotoAndStop(1);
    }
    else if (str == "switchOn") {
    vid2.play();
    vid1._alpha=0;
    vid1.gotoAndStop(1);
    }*/
    }

    // Binds your custom listeners to the Arduino object (a)
    a.addEventListener("onConnect",aListener);
    a.addEventListener("onReceiveData",aListener);

    //———————————————————————————————————— That's all!


    //keyboard control

    var keyListener:Object = new Object();
    keyListener.onKeyDown = function() {
    if (Key.isDown(Key.SPACE)) {
    if (vid1._currentframe != 1) {
    trace("key pressed1");
    vid1._alpha = 0;
    vid1.gotoAndStop(1);
    vid2.play();
    } else {
    trace("key pressed2");
    vid1._alpha = 100;
    vid1.play();
    vid2.gotoAndStop(1);
    }
    }
    }

    Key.addListener(keyListener);
    ——————————-
    ////////////////////////////
    There're 2 major problems that I faced:

    1,) using netstream functions, you cannot loop video's seamlessly, because they'll always have to reload the video when it ended before it could be played again, so there'll be about half a second of a lag, even when the file is stored locally.

    2.) The arduino communication is based on a .as file stored outside of this code (that's why this is not long at all), however, when I started programming, I chose to try out Action Script 3 — the result is that it wouldn't work because the external .as file is written in AS2 and many syntax were changed only slightly — much enough for me to not be able to translate that whole page into AS3 at that time. Thus, I translated my AS3 code back into AS2, saved it as a AS2 file, it works.

    Sun, Jun 24, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote
      
      Add to favorites
    Create synapse
     
    This is the video made by shaun westbrook - partner for this project. What is shown in the real situation is the water looping through his comparatively stable part forever at until someone does the trigger (what's that ?) and then it'll play through with the water rising like crazy.

    Some people find it harder to figure out what that trigger is, some found it very intuitive. I have been thinking about improvements in the set up so people would more easily notice that there's a 'trigger detection' device... I tried shooting a light at it, but the reflected lights lit in the white room very noticeably and takes away from the mood and the detailed of the video, thus decided not to shoot light.
    Sat, Jun 23, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (1)
      
      Add to favorites (1)
    Create synapse
     
    Sat, Jun 23, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (1)
      
      Add to favorites
    Create synapse
     
    I came across this as I was searching for 'control' on the internet... something worth thinking about. This is not directly related to my current project. or is it not? What about the space collective?

    Sat, Jun 9, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (1)
      
      Add to favorites
    Create synapse
     





    We plan to make use of the curves and form of water to create a sense of the piece in the packaging of the installation.
    Sat, Jun 9, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (2)
      
      Add to favorites
    Create synapse
     


    The Clapper is an old high-tech device. It is just one demonstration of human's infinite desire to control. This may sound exagerrating but I think it is valid.

    "let you turn things on and off from anywhere in the room, just plug in the clapper and use television, lamp, stereo, almost anything you want to turn on and off."

    Anything? what about gravity.

    Human's relationship with nature has long been revolving around controlling the nature. Be that the food chain, the weather, the landscape... if man are leaving earth for a new home, a space colony, what are we going to control? is there still nature? Before we realize it, our power has allowed us to control more things than we think we could.

    We must reestimate our power.
    Sat, Jun 9, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (1)
      
      Add to favorites
    Create synapse
     
    http://www.electronics-tutorials.com/basics/basic-electronics.htm

    Much have been returned to my highschool teachers...
    Sat, Jun 9, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (1)
      
      Add to favorites
    Create synapse
     
    Mon, May 21, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote
      
      Add to favorites
    Create synapse
     
    Mon, May 21, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (2)
      
      Add to favorites
    Create synapse
     


    I am agnostic more than atheistic, but I agree with this video that there might be some confusion existing in religion. I get confused when I talk with my mum over the long distance phone call... how about something passed down hundreds of generations.
    Mon, May 7, 2007  Permanent link

    Sent to project: Design Media Arts at UCLA
      RSS for this post
      Promote (2)
      
      Add to favorites (1)
    Synapses (1)
     
          Cancel