Cascading Style Sheets Tutorial

Create interactive video using Flash

  Interestingly, the author attended a Party, in the recommendations of friends inspired to create an interactive video.    The writer is through the application access to the video pixel color value function, the realization of the video track.    In each specific "onEnterFrame" incident on the use of "draw" method, the interactive video applications.    Operation results fairly successful, although in some places also needs optimizing.    Author its network with the camera and film used in parallel to create Below the name "air piano" simple charming small video. 

  The author also on the record-flv, at all times, pay attention to Oh, that the video, three red circle is the question of access to image pixel location. 

src=http://www.webjx.com/htmldata/2005-07-19/&

quality=high

pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'

type='application/x-shockwave-flash' width=320

height=240>   Http://www2.flash8.net/Upload_HtmlFile/2005/07/18/200571894345983.swf 

  Below is the code 
  _root.map New flash.display.BitmapData = (320, 240, true, 0); 
  _root.createEmptyMovieClip (\ "Fake \", 2); 
  _root.fake.attachBitmap (Map, 0, \ "auto \", true); 
  _root.fake._visible = False; 
  Balls = []; 

  For (var i = 0; i <3; i) 
  ( 
  Balls _root [i] = [\ "ball \" i]; 
  ) 
  _root.my_video.gotoAndPlay (1); 
  _root.onEnterFrame = Function () 
  ( 
  Map.draw (my_video); 
  For (var i = 0; i <3; i) 
  ( 
  Var clr = _root.map.getPixel (balls [i]. _x, Balls [i]. _y); 
  Balls [i]. Outclr clr =; 
  If (clr <12895941) 
  ( 
  Balls [i]. Kill (); 
  ) 
  ) 
  ); 

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • Digg
  • del.icio.us
  • Facebook
  • Google
  • DotNetKicks
  • DZone

Tags: css Video Guide

Releated Posts

  • Web2.0 problems: Video website sad copyright clearance
  • Getting Started Guide: CSS basic grammar and usage entry
  • Web Guide to Making: Understanding the CSS pseudo-category
  • AJAX.NET users guide (2)
  • Simple CSS source version of the Guide

This entry was posted on Friday, August 31st, 2007 at 12:00 am and is filed under CSS Tutorial. You can follow any responses to this entry through the RSS 2.0 feed. You can leave a response, or trackback from your own site.

« Chinese version of the Flash 8 Video Guide (18) effects - Projection
Introduced a method of making snow filled »

Leave a Reply

  • Categories

    • CSS Properties (491)
    • CSS Tutorial (1154)
    • CSS Tutorial By Examples (1201)
    • Css+Div Web Design (3274)
    • Xhtml and Web Design (1797)
  • Archives

    • February 2008
    • January 2008
    • December 2007
    • November 2007
    • October 2007
    • September 2007
    • August 2007
    • July 2007
    • June 2007
    • May 2007
    • April 2007
    • March 2007
    • February 2007
    • January 2007
  • Pages

    • About us

Cascading Style Sheets Tutorial