Results 1 to 2 of 2

Thread: Is this possible?

  1. #1
    Join Date
    Dec 2007
    Location
    Mississauga
    Posts
    166
    Thanks
    13
    Thanked 0 Times in 0 Posts

    Default Is this possible?

    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
    [CODEcontainer.loadMovie(_root.currMovie+".swf");[/CODE]

    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
    Code:
    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

  2. #2
    Join Date
    Mar 2007
    Location
    Currently: New York/Philadelphia
    Posts
    2,735
    Thanks
    3
    Thanked 519 Times in 507 Posts

    Default

    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.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •