Language: ChineseGermanSpanishFrenchDutchItalianRussian
123 Flash Chat Forums

Go Back   TOPCMM Community > SWFKit > SWFKit Support

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 03-10-2008, 08:46 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Why isnt this working ?

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]);
           }	
        }
before i come to "detalj" menu... i have trayMenu and menuSub
(The "blueprint" would look like this
trayMenu -> menuSub -> detalj


I dont get it, do i only need to use
Code:
var mSub = detalj.show()
or entire pathway:
Code:
var mSub = trayMenu.menuSub.detalj.show()
In eighter way, my
Code:
getURL(link[x])
never triggers or something else gets messed up in meny and isnt showing properly.
Reply With Quote
  #2 (permalink)  
Old 03-10-2008, 12:07 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Why isnt this working ?

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");
}
diffirence is just im using dynamic markers and identifiers.
Reply With Quote
  #3 (permalink)  
Old 03-11-2008, 07:13 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Why isnt this working ?

??? ???
Reply With Quote
  #4 (permalink)  
Old 03-11-2008, 06:30 PM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Why isnt this working ?

We are working on the file you sent us by email. We will get back to a.s.a.p.
Reply With Quote
  #5 (permalink)  
Old 03-12-2008, 06:50 AM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Why isnt this working ?

Thank you very much, i must bring it to your counsious that this code aboveis updated.

Still problem is to trigger idendifications from appendened items.


Again, Thank you!
Reply With Quote
  #6 (permalink)  
Old 03-17-2008, 11:15 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Why isnt this working ?

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);
a web page should be opened?
Reply With Quote
  #7 (permalink)  
Old 03-19-2008, 07:34 PM
Senior Member
 
Join Date: Jan 2008
Posts: 123
Default Re: Why isnt this working ?

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]);
since i use detalj as a identifier... it has to open an appendend menu....

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]);
but the hardest part is that since i use only one menu creating code and i also use writer[x] with will give us 4 choises..... i need detail to get that specific 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
Reply With Quote
  #8 (permalink)  
Old 03-27-2008, 01:04 AM
Senior Member
 
Join Date: Dec 2002
Posts: 2,015
Default Re: Why isnt this working ?

Maybe you need to put
Code:
detalj.appendItem(link[x], texT[x]);
before
Code:
menySub.appendItem(detalj, writer[x] + " at " + topDate[x]);
The "appendItem" method does not create a link between the parent menu and the sub menu, but just copies the items of the sub menu to the parent menu.
Reply With Quote
Reply

Was this information helpful?    Yes No



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 05:04 AM.


Powered by vBulletin® Version 3.7.1
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.