Log in

View Full Version : Is this possible?



nate51
10-29-2008, 05:05 PM
I am looking into a project and I am not sure if this is possible, here are the details.

A site similar to this
http://www.stephenchungphotography.com

Client wants the list in XML so they can upload their own videos.

The question I have is, would it be possible to have the right side be a dynamic place holder with open variables so when someone clicks the XML list on the left the XML drops in code for the flv?

I used something similar to this but it was hard coded into flash, it was an open ended line in my code that when you click for a new swf file, the current one would animate out then look for the swf file that filled in that blank extension (see code below)

Code used on page



Code used on button
[CODE]on(release) {
if (_root.currMovie == undefined) {
_root.currMovie = "movieName";
_parent.container.loadMovie("movieName.swf");
} else if (currMovie != "movieName") {
if (_parent.container._currentframe >= _parent.container.midframe) {
_root.currMovie = "movieName";
_parent.container.play();
}
}
}

As you can see the line
currMovie+".swf" gets replaced with whatever movie clip you click on.

Does anyone know if something like this is possible as I don't even know what to search for on the net as I am not sure what this is classified as.


-- Nate

Medyman
10-29-2008, 10:51 PM
I'm not sure I get the question. Are you asking if you can dynamically call a flv to play? If so, sure it's possible.

Lee Brimelow has a tutorial on an XML-powered FLV player at gotoAndLearn(). That might the place to start.