2 Replies Latest reply on Jul 6, 2009 4:31 PM by xsxtreme

    Video Gallery Action Script 3

    arikanoa
      I am creating a video gallery off of the demo action script 3, video gallery, that is shown on this site. I have updated the XML file that contains the link to the thumbnails and videos to the appropriate url. When I test the project out, I get the following error:

      TypeError: Error #1085: The element type "video" must be terminated by the matching end-tag "</video>".
      at fvg::FlashVideoGallery/fvg:FlashVideoGallery::onDataHandler()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at flash.net::URLLoader/flash.net:URLLoader::onComplete()

      I am fairly new to Action Scripts and would really appreciate overcoming this hurdle.

      Thanks

      Ari
        • 1. Re: Video Gallery Action Script 3
          Level 7
          arikanoa wrote:
          > I am creating a video gallery off of the demo action script 3, video gallery,
          > that is shown on this site. I have updated the XML file that contains the link
          > to the thumbnails and videos to the appropriate url. When I test the project
          > out, I get the following error:
          >
          > TypeError: Error #1085: The element type "video" must be terminated by the
          > matching end-tag "</video>".
          > at fvg::FlashVideoGallery/fvg:FlashVideoGallery::onDataHandler()
          > at
          > flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunctio
          > n()
          > at flash.events::EventDispatcher/dispatchEvent()
          > at flash.net::URLLoader/flash.net:URLLoader::onComplete()
          >
          > I am fairly new to Action Scripts and would really appreciate overcoming this
          > hurdle.
          >
          > Thanks
          >
          > Ari
          >
          > <?xml version="1.0" encoding="utf-8"?>
          > <!--
          > ***************************************
          > Settings.xml
          > Provides a configurable data source for the Flash Video
          > Gallery application.
          >
          > Configurable Settings:
          > - labels: exposes labels for localization.
          > - links: configure main screen links and resulting urls.
          > - filters(1): creates a list for filtering (up to 4 filters).
          > - filters(2): creates an alternate list for filtering (up to 4 filters).
          > - videos: creates a list of video display information.
          >
          > Note: Text nodes are for localization and node attributes
          > are not. The exception is the 'url' attributes...
          >
          > Last Modified: March 2, 2007
          > ***************************************
          > -->
          > <flashvideogallery>
          >
          > <!-- Labels for localization -->
          > <labels>
          > <label name="title"><![CDATA[ActionScript 3.0 Flash Video Gallery]]></label>
          > <label name="welcome"><![CDATA[<b>Click on a thumbnail to view
          > details</b>]]></label>
          > <label name="videoPreview"><![CDATA[Webvideo Preview]]></label>
          > </labels>
          >
          > <!-- Links for the main screen (up to 8 sidebar links) -->
          > <links>
          > <link name="textLink1"
          > url=" http://www.adobe.com/products/flash/video/"><![CDATA[Learn more about
          > Flash video >]]></link>
          > <link name="textLink2"
          > url=" http://www.adobe.com/devnet/flash/"><![CDATA[Visit the Flash Developer
          > Center >]]></link>
          > <link name="textLink3"
          > url=" http://www.adobe.com/devnet/flash/articles/video_gallery.html"><![CDATA[Exa
          > mine the gallery source files >]]></link>
          > <link name="textLink4" url=" http://www.adobe.com"><![CDATA[View more
          > examples of Flash video >]]></link>
          > <link name="textLink5"
          > url=" http://www.adobe.com/products/flash/"><![CDATA[Learn about Flash CS3
          > Professional >]]></link>
          > <link name="textLink6" url=""/>
          > <link name="textLink7" url=""/>
          > <link name="textLink8" url=""/>
          > </links>
          >
          > <!-- Filter by list #1 (category radio button and up to 4 checkbox filters)
          > -->
          > <filters>
          > <filter name="radio1" view="1"><![CDATA[Filter videos by industry]]></filter>
          > <filter name="checkbox1" id="i0" view="1"><![CDATA[Content]]></filter>
          > <filter name="checkbox2" id="i1" view="1"><![CDATA[Entertainment]]></filter>
          > <filter name="checkbox3" id="i2" view="1"><![CDATA[Marketing]]></filter>
          > <filter name="checkbox4" id="i3" view="0"/>
          > </filters>
          >
          > <!-- Filter by list #2 (category radio button and up to 4 checkbox filters)
          > -->
          > <filters>
          > <filter name="radio2" view="0"><![CDATA[Filter videos by region]]></filter>
          > <filter name="checkbox5" id="r0" view="1"><![CDATA[Europe]]></filter>
          > <filter name="checkbox6" id="r1" view="1"><![CDATA[North America]]></filter>
          > <filter name="checkbox7" id="r2" view="0"/>
          > <filter name="checkbox8" id="r3" view="0"/>
          > </filters>
          >
          > <!-- List up to 36 videos for display in the gallery -->
          > <videos>
          > <video preview="thumbnails/Qlippit_3_Adam3_pix_to_grandP-26May07-0523PM.flv"
          > flv="video/Qlippit_3_Adam3_pix_to_grandP-26May07-0523PM.flv" filter2="r1"
          > filter1="i2">
          > <title><![CDATA[Creative Bubble]]></title>
          > <description><![CDATA[Creative Bubble needed a way to show their demo reels
          > to the largest audience possible with the best experience. Their solution is a
          > Flash-based UI that instantly streams video to their home page.]]></description>
          > <moreInfo url=" http://www.adobe.com"><![CDATA[More info...]]></moreInfo>
          > </video>
          > </flashvideogallery>
          >

          1st. If you haven't already, get a nice xml editor such as
          http://www.wmhelp.com/download.htm
          free xmlpad editor for windows. Why? because it supports editing the
          dating in 3 different ways: Source <which has syntax/tag hilighting ,
          Grid , Table.. the grid is easiest to use and helps avoid deleting tags
          by mistake, which is what it sounds like you did based on the error
          message. If the above was a straight cut and paste of your xml file then
          you are missing
          the </videos> tag that belongs between
          </video> and </flashvideogallery>

          I have personally spent the last week playing with the example and
          modifying it to have a scrollbar so that i can show more than 36 videos,
          and have edited the xml files to add more entries.
          • 2. Re: Video Gallery Action Script 3
            xsxtreme

            Newsgroup_User

             

            So have you got your gallery to work in fullscreen mode? It's killing me at my site. Any suggestions