Views
TechSpecs
last edited 4 years ago by sheranian_r
Engelbart 80th Birthday Archive by Rebecca Sheranian
Project Technical Specs
© 2005 R. Sheranian
- Flash Structure:
· Flash MX 2004
· 1 swf file
· 2 scenes, one for the archive and one for the credits
· The photos, titles, video controls, and transcript box are all embedded in Flash
· The videos and transcripts are stored externally and loaded into flash using Action Script to call the files through XML. - Videos:
· stored externally
· .flv files. (There are also .mov files in the folder although these were only used to create the .flv files and are not necessary for the project to run)
· All the videos are stored in a local folder called video. - Text Files (transcripts):
· The transcripts are all created as text files with Unicode encoding and are stored in a local folder called transcript. - XML
· encoding = [?xml version="1.0" encoding="iso-8859-1"?]?
· xml structure (all tags are represented by bracets because opencourse will not display html tags also code does not keep correct format in opencourse)
[interviews]?
[interviews name = "crane"]?
[transcript]? transcript / transcript_name.txt [/transcript]?
[video]? video/video_name.flv [/video]?
[/interviews]?
[/interviews]? - Action Script
· 2.0
· code (note: code does not keep correct format in opencourse)
//load xml with:
xmlData = new XML();
xmlData.ignoreWhite = true;
xmlData.onLoad = loaded;
xmlData.load("name_of_doc.xml");
//create function to load text from xml
getTranscript = function (myTranscript) {
theTranscript = new LoadVars?();
theTranscript.datastring = "";
theTranscript.onLoad = function(success) {
if (success) {
// what to do with the data
transcript_txt.text = theTranscript.datastring;
//create function for video connection
var nc = new NetConnection?();
nc.connect(null);
var ns = new NetStream?(nc);
videoCon.attachVideo(ns);
//inside buttons call data from xml
comments /(comments are the transcripts)/= xmlData.firstChild.childNodes[1]?.childNodes[0]?.firstChild.nodeValue;
video = xmlData.firstChild.childNodes[1]?.childNodes[1]?.firstChild.nodeValue;
- Scalability:
This project can easily be scaled. Add new video and transcripts and then add a node to the xml doc and in actionscript add the node to the script inside the new button.