grouchoman

grouchoman


  • Name: Scott
  • Favorite Languages: Actionscript
  • Website: [not set]
  • Location: Connecticut
  • About Me:
    I like long walks on short piers.

Recent Comments

  • Video playback and control
    11/18/2009 - 16:39

    figured it out...

    private function showVideo(event:Event):void{
                    //user clicks grid item, selects URL for video playback
               
                    myVid.source = eventData.getItemAt(event.currentTarget.selectedIndex).videoUrl;
                    myVid.load();
                   
                    if (myVid.playing)
                    //if there is already a video playing, stop it
                            myVid.stop();
                           
                            else
                    //otherwise, just play the selection
                            myVid.play();

                }