Professional Web Applications Themes

can I use a pull down menu to take me to a page - Adobe Flash, Flex & Director

have a multi page SWF that uses external JPEGS and SWF's accessed via an XML file. I wish to be able to go to a certain page by having a pulldown contents list menu (html or flash based?). How would I go to the page I wish to using this and the XML file? So I assume that the menu would tell the swf to go to a certain file name based on information in the xml file? thanks...

  1. #1

    Default can I use a pull down menu to take me to a page

    have a multi page SWF that uses external JPEGS and SWF's accessed via an XML
    file. I wish to be able to go to a certain page by having a pulldown contents
    list menu (html or flash based?). How would I go to the page I wish to using
    this and the XML file? So I assume that the menu would tell the swf to go to a
    certain file name based on information in the xml file?
    thanks

    livingwithanangel Guest

  2. #2

    Default Re: can I use a pull down menu to take me to a page

    hi livingwithanangel

    try this
    1st frame of the file paste this code

    var myXML:XML = new XML();
    var title_array:Array = new Array();
    myXML.ignoreWhite = true;
    myXML.load("loadSWF.xml");
    myXML.onLoad = function(success) {
    if (success) {
    child_length = this.firstChild.childNodes;
    for (var i = 0; i<child_length.length; i++) {
    title_array.push({label:child_length.firstChild,
    data:child_length.attributes["id"]});

    }
    }
    };

    after 4 or 5 frames
    paste this code

    stop();
    list.dataProvider = title_array;
    var changeObj:Object = new Object();
    changeObj.change = function(evt) {
    swf_txt.text = evt.target.selectedItem.data;
    };
    list.addEventListener("change", changeObj);

    create a textbox with instance name of swf_txt and combo box with an instance
    name of list

    Anand

    tomeanand@hotmail.com Guest

  3. #3

    Default Re: can I use a pull down menu to take me to a page

    thanks - I can't access the main swf for editing though - is the code above a
    new separate flash doc I need to create, just for the menu?

    Here is an example from the "pages.xml" file that the current swf uses to
    access the pages:
    <pages>
    <page> images/01.jpg </page>
    <page> images/02.jpg </page>

    thanks


    livingwithanangel Guest

Similar Threads

  1. pull down menu dynamically displays db fields
    By tempweb in forum Dreamweaver AppDev
    Replies: 0
    Last Post: May 12th, 11:48 PM
  2. Pull down menu
    By tempweb in forum Dreamweaver AppDev
    Replies: 0
    Last Post: April 15th, 06:27 AM
  3. PHP Pull-down menu
    By Lee Kim Hock in forum PHP Development
    Replies: 1
    Last Post: October 14th, 07:13 AM
  4. PS7 and Panther/character palette pull-down menu
    By Tina_Tate@adobeforums.com in forum Adobe Photoshop Mac CS, CS2 & CS3
    Replies: 0
    Last Post: May 4th, 06:41 PM
  5. Script for simple pull down menu
    By JLD.MX in forum Macromedia Flash Actionscript
    Replies: 8
    Last Post: March 5th, 03:53 AM

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
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139