video.Maru
by polyGeek polyGeek logo



 

XML documentation

June 24th, 2007 . by polyGeek

The XML documentation is broken up into two sections. Those attributes associated with the <video> nodes and those attributes associated with the <settings /> node.

Note: the capitalization of these attributes does matter. As opposed to the instance names of the elements of the video interface which do not.

<video>

path=”path/fileName.flv”
The path to the FLV that you would like to play. This can be a relative path to an FLV on the same server or a full HTTP address. If you would like to stream a video for youTube use: youtube=IDnumber.

captions=”path/fileName.xml”
The path to the captions data, if any. The data in this XML file will populate the captions TextField based on the time indexing.

videoTitle=”text goes in the videoTitle TextField”
Text that will populate the videoTitle TextField.

iconSrc=”path/fileName.png”
The path to the graphic that you would like to display in the linkIcon inside the linkBTN that is attached at runtime.

iconWidth=”number”
iconHeight=”number”
Override the intrinsic width/height of the graphic loaded into the linkIcon.

autoPlayNext=”true/false”
Automatically starts playing the next video. If currently playing the last video it will wrap around and begin playing the first video.

showStartPlay=”true/false” ( video.Maru 3.0 addition )
Display the startPlay MovieClip. Autoplay must be set to false for this to work. And the startPlay MovieClip must have been on the stage at authoring time.

loopVideo=”true/false”
Play the current video again.

autoPlayVideo=”true/false”
Determines if the video should be playing - true - or paused - false - on startup

btnX=”number”
btnY=”number”
The x,y coordinates of the associated linkBTN for this video node. The position will be from the registration of the _parent MovieClip or, if it exists, the linkBTNholder.

If you only supply the btnX, btnY value for the first <video> node then all the other buttons will stack vertically with a gap of 2 pixels between each.

linkText=”Text on the linkBTN”
The text that goes on the associated linkBTN.

description
The description is not an attribute. It is the value of the node. The text should be placed between the <video>description text</video> tags.

If you want to display HTML code in the description TextField then use CDATA, as such: <![CDATA[<b>description</b> of the video that goes in the description TextField]]>
description

<settings/>

buttonsX=”number”
Set the x-coordinate for all the linkBTNs.

buttonsY=”number”
Set the y-coordinate for all the linkBTNs.

prevButtonX=”number”
prevButtonY=”number”
The x,y coordinate of the prev button when it is attached at runtime. If no value is given then it will stack under the last linkBTN.

nextButtonX=”number”
nextButtonY=”number”
The x,y coordinate of the next button when it is attached at runtime. If no value is given then it will be placed at the same y-value and just to the right of the prev button.

verticalButtonPadding=”number”
The number of pixels between the linkBTNs if they are stacked vertically.

horizontalButtonPadding=”number”
The number of pixels between the linkBTNs if they are placed horizontally.

Below is a sample XML with all of the available attributes.

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

9 Responses to “XML documentation”

  1. comment number 1 by: dave waclo

    hi polyGeek, thanks for the great tool!
    Unfortunately I’ve gone down this road thinking I could save some time and have run into a snag. I’m writing my own actionscript to parse the data and assign the text to the text fields in the buttons for the playlist. But apparently they have to have already existed with the right dyn text fields at the strart to work right. Is there an easy solution? I’m doing this so I can make a more custom playlist.
    thanks!!

  2. comment number 2 by: polyGeek

    @Dave, yeah, that’s pretty easy to do. Essentially you need videoMaru to run after you have your buttons all ready to go. So put videoMaru in a MovieClip that is ‘exported for Actionscript’. That should do it.

  3. comment number 3 by: dave waclo

    I’ve tried it like this but that doesn’t seem to work

    this.attachMovie(”videoMaru”, “videoMaru”, this.getNextHighestDepth());

    …making the linkage in the library ‘videoMaru’, and this script on the _root.
    thanks for the help!

  4. comment number 4 by: dave waclo

    AAArgh!

    I think I’m using duplicate variables to your variables such as flv_path or maybe content_path. Looks like its working now.

    ouch.

  5. comment number 5 by: dave waclo

    ok, maybe the repeated variables wasn’t the problem.

    it seems that if I try to use any xml load prior to the appearance of the video maru on the stage the vidoe doesn’t play and I get the recursion error:

    256 levels of recursion were exceeded in one action list.
    This is probably an infinite loop.
    Further execution of actions has been disabled in this movie.

    The xml is a simple load call:

    var d_xml_loader:XML = new XML();
    d_xml_loader.ignoreWhite = true;
    d_xml_loader.load(”test.xml”);

    If I change “test.xml” to something random and flash can’t load it then the video plays fine (???). I guess it has something to do with the code trying to find an xml load?

    if you have a solution I would very much appreciate it!
    thanks, dave

  6. comment number 6 by: joonasjoonas

    I’d like to use the link list as thumbnails in a grid. is this possible? Or is it possible to have multiple rows or columns of thumbnails? And how does one have the list horizontal anyway?

    Thanks for the great tool!

  7. comment number 7 by: polyGeek

    @Joonas, that’s a tough one. I’m not sure if it can be done
    .
    .
    .
    Okay, it’s done.

  8. comment number 8 by: Abra melin

    how can i change the typeface of linkText?

  9. comment number 9 by: polyGeek

    @Abra, that’s easy. Select the link TextField and give it any font you want that’s on your machine. Then click on the “embed” button next to the font drop-down list. You can probably get by with only embedding the “Basic Latin” characters.

Leave a Reply

Name

Mail (never published)

Website