Flash/XML/iFrames?????

  • Started
  • Last post
  • 3 Responses
  • unknown

    okay I am in the process of building a back end calendar application for a client and have hit a hole-
    *basically I have a scrolling link menu built by duplicating a movie clip and updating its content via XML. You click on the link and it opens the page in a new window- whatever. What I need to do now is have the link open individual SWF movies either in my main movie or in a frame. Sure I can assign a load movie function but since this is a duplicated clip (made especially so I can change its content with one XML page) every link would then open the SAME movie- I need it to open up a different movie for every link.
    ________________________
    QUESTION:
    Can I set XML up like a style sheet to open its "linked" content in a frame? If so how and can you provide reference websites-

    or

    Can I assign different SWF's to load within the duplicate movies code?

    PLEASE HELP- I AM STRESSING!!!

  • unfittoprint0

    why don't you send the different links thorugh XML to Flash, make a For loop to construct the menu with attachMovie, link each movie to each Link received from the XML (movie1.link... movie5.link). Make a getURL (or loadmovie) action for each one of them, for a onRelease event, for example, and voilá!

  • unknown0

    that's what I want to do actually but I cant figure out exactly how to do it. Can I do this in the XML file and have it load a new movie in place? I am trying to do it in flash but I am getting lost. my current link code is simple and looks like this:

    var array = new Array ();
    var xml = new XML ();
    xml.onLoad = function ()
    {
    var header, link;
    for (var i = 0; i < this.firstChild.childNodes.lengt... i++)
    {
    if (this.firstChild.childNodes[i].n... != null)
    {
    header = this.firstChild.childNodes[i].at...
    }
    for (var j = 0; j < this.firstChild.childNodes[i].ch... j++)
    {
    if (this.firstChild.childNodes[i].c... == "link")
    {
    link = this.firstChild.childNodes[i].ch...
    }
    }
    array.push (new struct (header, link));
    }
    printer ();
    };
    xml.load ("linkbase.xml");

  • unknown0

    since the movie is duplicated and all the link info comes from the XML file as simply "LINK" I dont understand how I can break it down in Flash. I created it this way so I can easy update the XML only and never have to touch the Flash page.