|
|||
|
Code:
for (var x = 0; x < 6; x++) {
var detalj = new Menu();
detalj.createPopupMenu();
subj[x] = myXml.firstChild.childNodes[x].attributes.subject;
writer[x] = myXml.firstChild.childNodes[x].attributes.Profile;
temp_link[x] = myXml.firstChild.childNodes[x].attributes.lnx;
link[x] = temp_link[x].split("-AND-").join("&");
nya[x] = myXml.firstChild.childNodes[x].attributes.subject;
topDate[x] = myXml.firstChild.childNodes[x].attributes.TopicDate;
texT[x] = myXml.firstChild.childNodes[x].attributes.Tex;
menySub.appendItem(detalj, subj[x] + " av " + writer[x] + " vid " + topDate[x]);
******* detalj.appendItem(link[x], texT[x]);
var mSub = detalj.show();
******* if (mSub == link[x]) {
******* getURL(link[x]);
}
}
(The "blueprint" would look like this trayMenu -> menuSub -> detalj I dont get it, do i only need to use Code:
var mSub = detalj.show() Code:
var mSub = trayMenu.menuSub.detalj.show() Code:
getURL(link[x]) |
|
|||
|
the part marked with ******* should be working logically ???
its just the same as using Code:
Global.getMainWnd().bringToTop();
var trayMenu = new Menu();
trayMenu.createPopupMenu();
trayMenu.appendItem("id2", "Item 2");
var See = trayMenu.show();
if (See = "id2"){
Global.trace("Item 2");
}
|
|
|||
|
We've tested your file, but not sure what you mean. Do you mean that when click the items appended by the code
Code:
nyaInlagg.appendItem("subMenuq", nyTopic + " - av - " + skribent);
|
|
|||
|
What i mean is that i create (now-more) a menu in if loop. This loop runs 6 times and by that, it forces 6 menuItems.
Now, since the code itself is just one piece of menu code and its this one below Code:
menySub.appendItem(detalj, subj[x] + " av " + writer[x] + " vid " + topDate[x]); lets say this in visual way: my menu looks like this (just an example) Snapz at 8:24pm SWFKIT at 3:15am aCat at 4:23 pm PS3 at 3:33pm now, these 4 items would be created from a for loop that tuns 4 times, and inside this loop braces i would use the following: Code:
menySub.appendItem(detalj, writer[x] + " at " + topDate[x]); the point here now is that when placing mouse over one of these menuitems (poppedup from tray), it should append a new meny with more details (look above code in bold). thats where detalj comes along. detail menu would then within hold weblink and a text that is shown as menu. the code itself looks like this: Code:
detalj.appendItem(link[x], texT[x]); in other words if Snapz at 8:24pm (has writer[0]) SWFKIT at 3:15am (has writer[1]) aCat at 4:23 pm (has writer[2]) PS3 at 3:33pm (has writer[3]) then detail should recognize somehow if mouse is pointed at writer[2] or [3] or [0] and so on Im sorry if im still un clear with my point, if so, please let me know, ill write the code part that i want to use but isnt working Reg Snapz |
|
|||
|
Maybe you need to put
Code:
detalj.appendItem(link[x], texT[x]); Code:
menySub.appendItem(detalj, writer[x] + " at " + topDate[x]); |
![]() |
Was this information helpful? Yes No
| Thread Tools | |
| Display Modes | |
|
|