AS2 XML Flash Navigation

Hello All,
I have been creating a dynamic Flash Navigation based on a tutorial I found online.
I'm having issues aligning the MovieClip house all the array names from My XML file.
I'm using:
var yPosition:Number = 118;
var xPosition:Number = 250;
to align the Movie Clip. For some reason I can adjust the yPosition but I cant get the xPosition to move my MovieClip at all. >:(
Any helpful hints would be greatly appreciated.
Cheers-
Graeme

Heres the code I'm using:
//Store Button Position
var yPosition:Number = 118;
var xPosition:Number = 250;
//Declare New XML Object
var myXML:XML = new XML();
//Set Flash to ignore the XML file's white space
myXML.ignoreWhite = true;
//Declare new Array to store the links from the XML file
var links:Array = new Array();
//Declare new Array to store the names from the XML file
var names:Array = new Array();
//Set XML onLoad function
myXML.onLoad = function(){
    //Set varible to store the XML childNodes
    //This allows you to get the number of buttons in the XML file.
    //You'll use this tell flash how many times to loop the for loop.
    var linkname:Array = this.firstChild.childNodes;
    //Set a for loop
    for(i=0;i<linkname.length;i++){
        //Push the button name into the names Array
        names.push(linkname[i].attributes.NAME);
        //Push the button link into the links Array
        links.push(linkname[i].attributes.LINK);
        //Attach the button Movie Clip from the libray give it an instance name and place it on the next highest level
        _root.attachMovie("button","btn"+i,_root.getNextHighestDepth());
        //Set the y position of the buttons
        _root["btn"+i]._y = yPosition;
        //Increace the varible yPosition 15 pixel each time the loop runs to place each button under each other
        yPosition = yPosition+25;
        //Place the button name from names Array into the blackTxt text box
        _root["btn"+(i)].blackTxt.Txt.text = (names[i]);
        //Place the button name from names Array into the whiteTxt text box
        _root["btn"+(i)].whiteTxt.Txt.text = (names[i]);
        //Assign the btnOver function to the button onRollOver state.
        _root["btn"+(i)].onRollOver = btnOver;
        //Assign the btnOut function to the button onRollOut state.
        _root["btn"+(i)].onRollOut = btnOut;
        //Assign the btnRelease function to the button onRelease state.
        _root["btn"+(i)].onRelease = btnRelease;
//Load the XML file
myXML.load("links.xml");
//Button Over function
function btnOver(){
    //This referse to the current button the mouse is over
    //Go To And Stop frame 2 of the current button the mouse is over
    this.gotoAndStop(2);
//Button Out function
function btnOut(){
    //Go To And Stop frame 3 of the current button the mouse rolls out from
    this.gotoAndStop(3);
//Button Release function
function btnRelease(){
    //Set a varible named currentBtn equal to the instance name of the current button the mouse clicked on
    var currentBtn:String = this._name;
    //Set a varible named currentIndex equal to the varible currentBtn and the characters between 3rd letter and 5th of that string.
    //This will return a number between 0 and the total number of buttons
    var currentIndex:String = currentBtn.substring(3,5);
    //Get the URL from the links Array
    //Use the currentIndex varible as the index number
    getURL(links[currentIndex]);

Similar Messages

  • Problems with Flash Navigation

    I'm trying to edit a horizontal flash navigation that I found
    on the internet but i'm having some issues. The original file can
    be found
    here.
    The flash pulls menu information from an XML file. To add a
    menu block all I should have to do is add the text to the flash
    file and then add a block of code to the XML file. The issue I'm
    having is that when I attempt to add a 9th main menu item, its
    submenu doesn't display correctly.
    I've been wracking my brain on this one for days and can't
    figure it out. Any help anyone could offer would be greatly
    appreciated.

    JodiBurgess wrote:
    > I have a frameset, the navigation frame uses flash for
    the navigation - basic
    > getURL code with target frame "MAIN" (which is the name
    of the frame I want to
    > target). This worked fine in IE6, but when I upgraded to
    IE7 clicking on the
    > navigation caused it to fire off a new window (as if I
    had given it a target
    > "_blank").
    Try another name, words like Main or mainFrame are reserved
    and always caused
    problems. Give the frame some unique name Jodi_frame etc...
    Also, don't forget to test it on server, not locally.
    Best Regards
    Urami
    !!!!!!! Merry Christmas !!!!!!!
    Happy New Year
    <urami>
    If you want to mail me - DO NOT LAUGH AT MY ADDRESS
    </urami>

  • XML flash Menu

    Hello Guys,
    I am stuck with a xml flash menu which contains quite a few great options to manipulate the text, url, button and even change the color to the menu externally from xml. The only thing missing here (which I massively need it) is the option resizing the buttons from the xml file itself. The buttons need to be resized so that they fit each text length. I have the feeling that someone that is good at XML and deal with ActionScript would be able to easily add this option.
    Thanks for commiting your time on this and I would be happy to help anyone in return who tackles this requirement I am after now.
    Please download the file attached and you can own it as well.
    Looking forward to hearing from you soon.
    Respectfully yours,
    Beko

    Ok, here we go:
    ACTION SCRIPT CODE:
    _parent._visible = false;
    // xml processing
    menu_cfg_xml = new XML();
    menu_cfg_xml.load(String(_url.slice(0, (_url.length-3)))+"xml");
    menu_cfg_xml.ignoreWhite = 1;
    menu_cfg_xml.onLoad = function(ok) {
        // create main menu after successful loading of XML
        if (ok) {
            create_menu();
        } else {
            trace("XML not loaded");
    counter = 1;
    function create_menu() {
        while (counter<menu_cfg_xml.firstChild.childNodes.length) {
            attachMovie("button_type", "btn"+counter, counter);
            set("btn"+counter+"._x", counter*80-100);
            btn1._y = 0;
            // set the buttons text
            set("btn"+counter+".the_text", menu_cfg_xml.firstChild.childNodes[counter].attributes.text);
            set("btn"+counter+".the_url", menu_cfg_xml.firstChild.childNodes[counter].attributes.url);
            set("btn"+counter+".the_target", menu_cfg_xml.firstChild.childNodes[counter].attributes.target);
            this["btn"+counter].onRollOver = this["btn"+counter].onDragOver=function () {
                this.effect.gotoAndPlay(2);
                this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color2;
            this["btn"+counter].onRollOut = this["btn"+counter].onDragOut=function () {
                this.textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
                this.effect.gotoAndPlay(9);
            this["btn"+counter].onRelease = function() {
                if (this.the_url != undefined and this.the_url != "") {
                    getURL(this.the_url, this.the_target);
            //set buttons color
            this["button_color"+counter] = new Color("btn"+counter+".btn_color");
            this["button_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .button_color);
            //set button effect color
            this["effect_color"+counter] = new Color("btn"+counter+".effect");
            this["effect_color"+counter].setRGB("0x"+menu_cfg_xml.firstChild.childNodes[0].attributes .effect_color);
            //set button text color
            this["btn"+counter].textul1.textColor = "0x"+menu_cfg_xml.firstChild.childNodes[0].attributes.text_color1;
            counter++;
        _parent._visible = true;
        info_clip._visible = false;
    >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>
    XML CODE:
    <?xml version="1.0" encoding= "UTF-8" ?>
    <!-- Menu created by www.adrianTNT.com -->
    <menu>
    <options button_color="000066" effect_color="87A10C" text_color1="87A10C" text_color2="FFFFFF">
    </options>
    <button text="Task force" url="http://www.google.com" target="_parent">width="250" height="136"</button>
    <button text="Service og turisme" url="http://www.google.com" target="_parent"></button>
    <button text="Fodbold" url="http://www.google.com" target="_parent"></button>
    <button text="Idraet" url="http://www.google.com" target="_parent"></button>
    <button text="Kunst and Design" url="http://www.google.com" target="_parent"></button>
    <button text="Teknisk/praktisk linje" url="http://www.google.com" target="_parent"></button>
    <button text="Gastronomi" url="http://www.google.com" target="_parent"></button>
    <button text="Laekker mad" url="http://www.google.com" target="_parent"></button>
    <button text="Musik" url="http://www.google.com" target="_parent"></button>
    <button text="Turbo-boglig" url="http://www.google.com" target="_parent"></button>
    </menu>

  • Looking to Download Leopard Patch File for XML Flash Slideshow Maker?

    Hi I was told that I have to download and install the Leopard
    patch for the extension XML Flash Slideshow to work properly with
    its style wizard (it isnt loading at the moment). I cant seem to
    find it. Is there a source where I can download it.

    atomic king wrote:
    > Hi I was told that I have to download and install the
    Leopard patch for the
    > extension XML Flash Slideshow to work properly with its
    style wizard (it isnt
    > loading at the moment). I cant seem to find it. Is there
    a source where I can
    > download it.
    Is the patch you're talking about for Leopard itself, or for
    the extension? If the patch is for Leopard, I'd assume that You'd
    have to get it from Apple, but I don't know where to look for that.
    If the patch is for the extension, then you probably need to go to
    the developer's site to see if the patch is posted there, or
    contact the developer directly to see where this patch may be if
    indeed it is necessary.
    Danilo Celic
    |
    http://blog.extensioneering.com/
    | WebAssist Extensioneer
    | Adobe Community Expert

  • Flash navigation won't always load page

    A web site I'm working on working uses Flash for the
    navigation. There's a primary vertical navigation bar and all links
    work. There are two vertical menu bars that appear separately when
    certain buttons are rolled over on the primary bar. One of the
    secondary bars works fine. The second one however is the one
    causing me grief...it's a movie clip. When I click on a button, it
    opens like an accordion revealing additional links. When any of the
    links are clicked, a new web page is supposed to load. Sometimes
    the appropriate page loads, sometimes not.
    I've used getURL throughout and it works everywhere but in
    that navigation bar.
    Every html page has a different flash file. Sometimes when
    the html page doesn't load the appropriate page, the proper flash
    navigation appears though.
    I've gone over the code for every button on every page and
    searched forums, but still can't find what I've done wrong. Any
    help would be appreciated.

    Hi
    I am having the same problem. I was working on word and then it crashed. I then switched it off and now all I get is the apple and the wheel going round. I bought my mac in 2011.
    Anyone know hoe to fix it
    Dawn

  • Flash navigation and frames

    I have flash navigation buttons in top frame. When the
    navigation/menu buttons are clicked the content should load in the
    'body' frame. What is actually occurring is the content is opening
    in a new window. I've checked the frame name and actions etc in
    flash. Can anyone provide advice on why this isn't working?

    What is the link to your page?
    Is this something that your school is requiring, or was the
    decision to use
    Flash nav and frames yours?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Murray *ACE*" <[email protected]> wrote
    in message
    news:[email protected]...
    > If you want to use Flash for navigation, consider this -
    >
    > 1. Some people don't have Flash installed - what do they
    do?
    > 2. Search engines don't parse Flash links - your site
    will not be
    > spidered
    > 3. Screen assistive devices don't parse Flash links -
    what will those
    > users
    > do?
    > 4. DW cannot maintain links within a Flash movie, so if
    you move or
    > rename
    > a linked file, your navigation will break - what will
    you do?
    >
    > It's usually a very bad idea for these reasons...
    >
    > The decision to use or not use frames should be based on
    a) your site's
    > needs, and b) your willingness to accept the potential
    problems that
    > frames can create for you as developer and maintainer of
    the site and for
    > your visitors as casual users of the site.
    >
    > I am down on frames because I believe that they create
    many more problems
    > than they solve.
    > Judging from the posts here, and the kinds of problems
    that are described,
    > the kind of person most likely to elect to use frames is
    also the kind of
    > person most likely ill-prepared fo solve the ensuing
    problems when they
    > arise. If you feel a) that you understand the problems
    and b) that you
    > are prepared to handle them when they occur, and c) that
    you have a need
    > to use frames, then by all means use them.
    >
    > As far as I know, the most comprehensive discussions of
    frames and their
    > potential problems can be found on these two links -
    >
    >
    http://apptools.com/rants/framesevil.php
    >
    http://www.tjkdesign.com/articles/frames/
    >
    > Combining both makes you the award winner for the day!
    >
    > --
    > Murray --- ICQ 71997575
    > Adobe Community Expert
    > (If you *MUST* email me, don't LAUGH when you do so!)
    > ==================
    >
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    > ==================
    >
    >
    > "GreenWat" <[email protected]> wrote in
    message
    > news:[email protected]...
    >>I have flash navigation buttons in top frame. When
    the navigation/menu
    >>buttons
    >> are clicked the content should load in the 'body'
    frame. What is
    >> actually
    >> occurring is the content is opening in a new window.
    I've checked the
    >> frame
    >> name and actions etc in flash. Can anyone provide
    advice on why this
    >> isn't
    >> working?
    >>
    >

  • Flash navigation and html files

    I have a Flash navigation banner. The navigation banner
    contains seven buttons. Each button when clicked goes to different
    frames in the Flash movie. So, the first interaction is to make the
    movie to go to a particular frame, which I was able to do easily.
    On those frames, I also would like to load or link to HTML page.
    Like frame 10 will be page1.htm, frame 18 will be page2.htm so on
    and so forth. How do I link .htm files and the single navigation
    bar where each button would go to a specific frame and play the
    frame? I don’t want to use frames in my html docs. Is there
    any other solution? Please help!!
    Thank you in advance.
    FA

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • Flash navigation and HTML forms

    Wondering if any one can help. Whenever I use an html form on
    an html page, my flash navigation will not show up. The area where
    it should be is blank and my browser status bar says that there are
    two items remaining (my flash navs). The browser stays like this
    indefinately, not completely loading the page.
    Any suggestions ?
    Thanks,
    Elise

    Thank you for reply. I appreciate it. So, if I understand
    correctly:
    I would embed the navbar.swf in all my html files. Then Each
    button would go to each html pages (Like page1.htm page2.htm
    etc...) Then I use your code in my html file right? Like each html
    file will have the following code:
    <param name="movie" value="nav.swf?frame=page2">
    Is that how it works. Sorry for not being able to your
    answer.
    Thank you very much again

  • Embedding an SWF Flash Navigation into Dreamweaver

    My website http://www.theboxinghistorian.com/ has already been created and has a lot of files, at the moment whenever i make a change to my spry navigation i do it through the template which automatically updates every page.
    Now I was looking to remove the spry navigation and to add a flash SWF File as my navigation, however I am relatively new to this and was wondering if adding such a file as my navigation is a simple case of updating the change through the template and once again every page through the Webstite would be updated.  Or would there be more complex issues i would need to Iron out as im using flash in dreamweaver.........

    My advice would be to forget about using Flash for navigation and stick with your Spry menu for now - but make it more efficient (see below).
    There are no upsides and too many downsides to Flash navigation including relying on the Flash plugin being available on your vfisitors computer (what do they do if Flash is not available for them?), search engines struggle with Flash without some clever coding by you (why bother?) and maintaining the navbar is a major pain (have to recreate the Flash file every time).
    The navigation you're currently using looks OK but I suggest implementing it as a Server Side Include instead of propagating it through your Template every time.
    Whilst the Template approach works, the major downside is that you have to upload every page of your website every time you change the Template. That gets old, fast.
    If you convert just the HTML part of your navigation (the ul structure) to a single tiny external text file (an Include) which the server then Includes in the page dynamically every time, you have minimal work to do to update your navigation bar whenever you wish. Just update the tiny text file (e.g. add/delete/move an <li> in the code), upload it to the server and your entire site is instantly up-to-date.
    Adding your navbar to the page as a Server Side Include transforms maintenance from a lengthy mundane chore to a pleasure.

  • Target another frame in a framset from flash navigation

    Target another frame in a frameset with for example
    getUrl (example.html, "rightFrame");
    has Adobe released some solution?
    - Right now we migrate from Flash towards PowerPoint and CSS,
    because
    the lack of answers and interactivity in Flash because of
    Microsofts "security pathes" in IE 6 and 7
    Right now I cant find a simple solution of how to target
    another
    frame from a frame in the same html-doc from a button in a
    flash navigation.
    Am I right or wrong? It looks like everyone avoid this simple
    question?
    - Why?
    And I still appreciate every possible answer that could solve my
    problem and a lot of problem to other
    interactive producer.

    Cant target another frame in the same frameset (2 frames -
    LeftFrame and RightFrame ) in the same html.doc
    This is the code I have applied to the Flash button
    in a frame called navigation in LeftFrame:
    on(release){
    getURL("right.htm", rightFrame);
    For some reason I can't get the page to open in the target
    frame (RightFrame).
    It will only pop up in a new window. (_blank)
    Microsoft has done a some security restriction since februari
    2006.
    The problem is that you cant use flash navigation in the same
    frameset no longer.
    I´ve serched everywhere and it looks like there is no
    simple solution to this problem.
    Adobe suggest that you Work around with Javascript.
    But what´s happend if the user disable JavaScript in the
    WebBrowser?
    Isn´t that obvious - it´s a strategic issue for the
    Interactive webbindustry.
    It´s a crossroad - which way webdesigners/developers,
    markering managers
    e-commerce managers.., want to choose to work along with
    databases, content
    management system and so on.
    If Flash not can provide an easy way of targeting another
    frame in a webbrowser for
    its customers, the customers have to choose a another
    solution - CSS+php or even worse
    - PowerPoint.
    I already migrate to CSS, PHP and PowerPoint because of
    Adobes late response of Microsoft so called
    "..because of security reason".
    At least I hope Adobe is interested of producing a motion
    tutorial of how to solve the problems by
    Javascript or whatever complex and not user friendly
    solution
    they come up with.
    Do you understand now?
    If you can provide a simple code below - please tell me -
    I really appreciate that!!!!!
    Code on flash button in LeftFrame:
    OnPress (I appreciate some bright solution here or som e link
    to how I solve the problem.)

  • Flash navigation not showing up...

    I am just beginning to learn the basics of Flash using some tutorials and have run into an issue.
    I have built a flash navigation menu that plays fine. I exported it and saved it into the root directory of my website.
    Then I opened the website and added it where I wanted it (on a Template) by selecting Insert>Media>Flash and following the steps.
    I added the files to my server and am finding something odd. When I open the Template file on the website, it loads the Flash file just fine.
    http://www.mosaleen.com/barb/Templates/template1.dwt
    However, when I load any of the pages built from the Template the menu won't load correctly.
    http://www.mosaleen.com/barb/index.html
    Any suggestions as to what might be wrong?

    In your normal page you are still referring to the nav.swf file as though you were in the Templates folder.  While the adjustment was made in the html parameters portion of the embedding code, it was not adjusted in the javascript portion of it, which is the more likely portion that will apply for modern browsers... fix what's highlighted in red to just be 'nav'
    AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,28,0','width','150','height','400','title','menu','src','../nav','quality','high','pluginspage','http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash','movie','../nav' );

  • How to create animated xml flash gallery ?

    I am a new starter . I want to create a xml flash gallery ,
    but i dnt know how to create it ....Can any one let me know what is
    the procedure to do this dynamically .....
    Thanks

    If you are using Actionscript 3, there is a pretty good
    tutorial on working with XML files here:
    http://www.gotoandlearn.com/player.php?id=64
    The home page of that site provides numerous other tutorial
    links that may come in handy for you in other projects.
    You will also need to become familiar with the Loader object
    and the addChild method in order to dynamically insert externally
    stored images. Look for the "Loading display objects" section in
    the Flash help documentation.
    I'd recommend just getting one image to load/display to
    become familiar, then you can decide how you want/need to make the
    rest of the design work.

  • Leopard Patch for XML Flash Slideshow please?

    Hi all. I've been searching for hours on end trying to find a patch for the Leopard OS for the XML Flash Slideshow v3 extension (to add an image slideshow) from dwuser.com. The support area of that site leaves much to be desired, but I've read elsewhere that I need "the Leopard patch". Can anyone point me in the right direction to get the appropriate patch, please? Form submissions to dwuser.com have gone unanswered to date. Thank you in advance.....

    Monk Fan wrote:
    Wow! Did you ever get an answer? I'm going through this right now. The GUI on v3 doesn't display correctly on Snow Leopard with Dreamweaver CS4, so I can't do any advanced editing.
    reply to [email protected]
    Because this product is not developed by Adobe your best bet is to contact the original developer.

  • Contact.php file for my XML, Flash based contact form

    I am trying to create a contact.php file for my XML, Flash based contact form.
    Anybody know some good tutorials Please introduce me !
    Amanda Nguyen

    I think that I should post the 2 .xml files here:
    structure.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <contactFormStructure>
    <formItems>
      <item id="1" label="Name" required="true" />
    <item id="2" label="E-mail" required="true">
      <validator>EmailValidator</validator>
    </item>
      <item id="3" label="Message" required="true" />
    </formItems>
      </contactFormStructure>
    configuration.xml
    <?xml version="1.0" encoding="utf-8" ?>
    <contactFormConfiguration>
    <emailTo>[email protected]</emailTo>
    <serverProcessorType>php</serverProcessorType>
    <serverProcessorFileName>contact</serverProcessorFileName>
    <validateRequiredOnly>false</validateRequiredOnly>
    <submitFormOnEnter>true</submitFormOnEnter>
    <messageSentText>Thank you for your message.</messageSentText>
    <messageSentFailedText>The form is not submitted.</messageSentFailedText>
    <formProcessingText>processing...</formProcessingText> 
    <plainText>false</plainText>
    <emailFromSource>2</emailFromSource>
    <subjectSource>Contact Form from your site</subjectSource>
    <validationErrorMessages>
    <message type="fieldIsRequired">{LABEL} is required.</message>
    <message type="emailNotValid">{LABEL} - is not valid email address.</message>
    <message type="minCharsLimitError">{LABEL} - The specified number of characters in a field is less
    than a required minimum.</message>
    <message type="reqExpError">{LABEL} - The specified string does not match with the regular
    expression.</message>
    <message type="biggerThanMaxError">{LABEL} - The specified number is greater than an acceptable
    biggest number for this field.</message>
    <message type="lowerThanMinError">{LABEL} - The specified number is lower than an acceptable
    lowest number for this field.</message>
    <message type="notANumberError">{LABEL} - The data is not a number.</message>
    <message type="negativeError">{LABEL} - The specified number must not be negative.</message>
    <message type="minRequirementError">{LABEL} - The minimum number of variants is not
    selected</message>
    <message type="maxRequirementError">{LABEL} - The number of variants selected exceeds the
    maximum</message>
    <message type="shouldBeEqualError">{LABEL} - values do not match</message>
    <message type="dateIsNotValidError">{LABEL} - date has wrong format</message>
    </validationErrorMessages>
    </contactFormConfiguration>
    I am working and learning and I would like to create the contact.php for my contact form.
    Please help !
    Amanda

  • Newbie, Please help, How do I add CDATA to exsting xml flash asset

    Hi, I am a front end web designer/developer and
    analyst...struggling with putting an accordian flash xml menu
    together. I have it done except I need to add a simple trademark
    symbol circle with r. I am struggling with how to do this since I
    am not savvy in actioncript. I assume the best way is to add it is
    with a CDATA child node, but do not know how or whatever is the
    best way to get this done since am on a tight deadline. I need
    someone to explain step by step what I have to do to get this
    simple addition resolved. Attached are the links to home page and
    code for the xml file. The left navigation is the asset that I need
    to add the trademark symbol under about, about ADHERE. Thanks so
    much in advance!!!!!!
    [URL=http://www.nodcreative.com/natrecor_sliced/natrecor_index.html]index
    page with flash xml menu asset[/URL]
    xml code:
    <?xml version="1.0" encoding="UTF-8"?>
    <accodion>
    <item name="HOME">
    </item>
    <item name="ABOUT">
    <item name= "ABOUT
    ADHERE<![CDATA[write]]>"></item>
    <item name="Medical Information" url="
    http://www.jnj.com?ref=Random">
    </item>
    <item name="About SCIOS" url="
    http://www.jnj.com?ref=Random">
    </item>
    </item>
    <item name="INTERACTIVE DOSING INFORMATION">
    <item name="Indications and Usage" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Contraindications" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Warnings" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Dosage and Administration" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="RESOURCES AND TOOLS">
    <item name="NATRECOR PI" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="About Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Stages of Heart Failure" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="NATRECOR Dosing Information" url="
    http://www.jnj.com?ref=Random"></item>
    <item name="Patient Management Resources" url="
    http://www.jnj.com?ref=Random"></item>
    </item>
    <item name="US PRESCRIBING INFORMATION">
    </item>
    <item name="IMPORTANT SAFETY INFORMATION
    ref=http://www.jnj.com">
    </item>
    <item name="REGISTRATION ref=http://www.jnj.com">
    </item>
    </accodion>
    FLASH actionscript is as follows:
    // The accordion
    var accordion = this
    // The item list
    var itemList = []
    // SETTINGS
    //-------------PROPERTIES----------------
    // Separation between the buttons
    var separation = 1.5
    // Tabulation between the buttons and the margin
    var tabulation = 10
    // if true, it cant be more than one items opened at the same
    time (only for the first buttons, POWERFUL, MENU ,ACCORDION, ets).
    var autoClose = true
    // if true, it cant be more than one subItems opened at the
    same time.
    var subItemAutoClose = true
    // if true, open and close all the subItems at the same time.
    var openAll = false
    // The height of the button
    var itemHeight = 21
    // The width of the button
    var itemWidth = 230
    // If true, show the light over the button
    var light = true
    // The ease of the menu opening
    var openEase = 2.5
    // The ease of the menu closing
    var closeEase = 2.5
    // The rollOut color fade speed
    var rollOutFade = 8
    //-------------COLORS----------------
    // The color of the button
    var buttonColor = 0xa
    // The roll over color
    var rollOverColor = 0xCCCCCC
    // The arrow color
    var arrowColor = 0xCCCCCC
    // The arrow color on roll over
    var rollOverArrowColor = 0x000000
    // The text color
    var TextColor = 0xFFFFFF
    // The text color on roll over
    var rollOverText = 0x000000
    // LOADING XML
    // The xml data
    var xmlSource:XML = new XML
    // Loading the xml
    xmlSource.onLoad = function(success:Boolean):Void {
    // When the load finishs...
    if (success) {
    // The first node of the xml
    xmlRoot = xmlSource.firstChild
    // The item nodes
    xmlItems = xmlRoot.childNodes
    // The total of items
    total = xmlItems.length
    // Creating the buttons
    for (i=0; i<total; i++){
    // Attaching the buttons
    accordion.attachMovie("item", "item" + i, i)
    // The button reference
    itemList
    = accordion["item"+i]
    // The first node of the item node
    itemList.xmlRoot = xmlItems
    // The separation between subitems
    itemList.separation = separation
    // Tabulation between the subitems and the margin
    itemList
    .tabulation = tabulation
    // subItems auto close
    itemList.subItemAutoClose = subItemAutoClose
    // The subitems height
    itemList
    .itemHeight = itemHeight
    // The subitems width
    itemList.itemWidth = itemWidth
    // shows/hides the subitems light
    itemList
    .light = light
    // The subitems color
    itemList.buttonColor = buttonColor
    // The roll over color
    itemList
    .rollOverColor = rollOverColor
    // The arrow color
    itemList.arrowColor = arrowColor
    // the arrow color on roll over
    itemList
    .rollOverArrowColor = rollOverArrowColor
    // The text color
    itemList.TextColor = TextColor
    // The roll over text color
    itemList
    .rollOverText = rollOverText
    // the opening easing
    itemList.openEase = openEase
    // The closing easing
    itemList
    .closeEase = closeEase
    // The roll over fade speed
    itemList.rollOutFade = rollOutFade
    // open all
    itemList
    .openAll = openAll
    // ignore white
    xmlSource.ignoreWhite = true;
    // Loads the .xml file
    xmlSource.load("accordion.xml");
    // Aligning the items each one below the other
    this.onEnterFrame=function(){
    // Does the align to ALL the items
    for (i=1; i<total; i++){
    // Aligning the items
    itemList._y = itemList[i-1]._y +
    itemList[i-1].mask._height + itemList[i-1].button._height +
    separation
    // The cursor position
    cursor._x = _xmouse
    cursor._y = _ymouse
    // Opens the items
    onMouseDown = function (){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // If is clicked
    if (itemList
    .button.hitTest(cursor)){
    // Shows the current item
    showCurrent(itemList)
    // Shows the button clicked
    showCurrent=function(current){
    // Does this to all the buttons
    for (i=0; i<total; i++){
    // Does this to all the buttons exept the clicked
    if (itemList
    !=current){
    // Close the other items if autoclose = true
    if (autoClose){
    // Close the other items
    itemList.openBox=false
    // fades the roll over effect of the other items
    itemList
    .over = false
    //Does this to the clcked item only
    } else {
    // If it has sub items
    if (total>0){
    //Hides them if its open
    if (itemList.openBox){
    itemList
    .openBox=false
    //Shows them if its closed
    } else {
    itemList.openBox=true
    // If it has no subitems goes to the link
    } else {
    getURL(xmlRoot.attributes.url, _self)

    Please don't cross-post in multiple forums. I have answered
    this in your other thread.

Maybe you are looking for

  • How to get each node in tree?

    how to get each node in tree? Message was edited by: NikisinProblem

  • Sending multitrack Project from FCP to STP on another computer doesn't work

    Hello, I attempted to search the forums but can't find my specific problem mentioned. I apologize if I overlooked it! I am attempting to send a Soundtrack Pro Multitrack Project from Final Cut Pro 6.01 to Soundtrack Pro 2.01 on another computer. When

  • JNDI lookups on Tomcat 5.5 and Oracle XE

    Hi there! I'm using Oracle 10g XE and Tomcat 5.5.9. I just wanna get advice on how to do JNDI lookups. I know XE doesn't have native support for Java and servlets and I noticed the "jndi.jar" file is missing in XE, unlike in Oracle 10g EE. Is "jndi.j

  • How to Destroy PDFs generated thru Interactive Form ELement

    Hello Friends My team has figured out that constructing pdfs through Interactive Form Element in Netweaver is a big performance issue We need to destroy those pdfs generated , So please help us out with this thanks a lot

  • HP Pavilion DV6 Webcam Issue.

    I have an HP Pavilion dv6-6033cl with Windows 7 64 bit installed. I have an issue with my webcam, it appears to turn on randomly every now and then. Not longer than a week ago I thought this may have been a virus and I deleted my entire hard drive an