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

Ask a Question related to Adobe Flash, Flex & Director, Design and Development.

  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. Similar Questions and Discussions

    1. pull down menu dynamically displays db fields
      HI... I am also looking for same solution . can you give us one example with code pls Thank TP
    2. Pull down menu
      HI... i have design simple web site with dreamwear using asp and vbscript i have design simple employee rocord table i have put dynamic pull...
    3. PHP Pull-down menu
      I am new to PHP. I developed a membership program which allows user to add, edit and print membership list. I would like to modify the menu...
    4. PS7 and Panther/character palette pull-down menu
      Just installed Panther and re installed PS7. Has anyone not been able to use the character pull-down menu to display all fonts activated on your...
    5. Script for simple pull down menu
      how will a user know what product number matches what product? in any case, you'll need to use an input textfield and you'll need to either use an...
  3. #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

  4. #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

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