Flash Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignFlash Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old July 8th, 2003, 09:14 AM
mckracken83 mckracken83 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2003
Posts: 8 mckracken83 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
superHolder

what is a superHolder movie clip? when i use the following code:

if (mainTag.childNodes[i].childNodes[j].nodeName == "Answers") {
if (clip.RuleID == "1") {
clip.attachMovie("FComboBoxSymbol", "FComboBox_cb", j);
clip.FComboBox_cb._x =6;
clip.FComboBox_cb._y = clip.questionText_txt._height+8;
for (k=0; k<mainTag.childNodes[i].childNodes[j].childNodes.length; k++) {
if (mainTag.childNodes[i].childNodes[j].childNodes[k].nodeName == "QuestionChoiceID") {
QuestionChoiceID = mainTag.childNodes[i].childNodes[j].childNodes[k].firstChild.nodeValue;
} else if (mainTag.childNodes[i].childNodes[j].childNodes[k].nodeName == "QuestionChoiceDesc") {
QuestionChoiceDesc = mainTag.childNodes[i].childNodes[j].childNodes[k].firstChild.nodeValue;
}
}
clip.FComboBox_cb.addItem(QuestionChoiceDesc, QuestionChoiceID);
}
}

i get 2 ComboBoxes for each loop - one that's the "real" combobox populated with list items that's located where i specify, and one that's "fake" - its called _level0.superHolder2000 (or _level0.superHolder2001, etc.) and its always at 0,0 and it never is populated with any list items. also, clicking on it activates the "real" combobox. has anyone else run across this? what do i do to get rid of the "fake" combobox?

Reply With Quote
  #2  
Old July 9th, 2003, 04:42 PM
1ain 1ain is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2003
Location: Bath
Posts: 26 1ain User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
bit of a hack...but...

if you drag a combo box onto the stage, right-click and convert it into a movie clip. then hide it (either by placing it off-stage or by setting the '_visible = false' attribute), you can duplicate this movie clip by using the 'duplicateMovieClip' method. this has worked for me in the past.

be sure to give the movie clip an instance name so you can access it for duplication, then reference the inner combobox by it's instance name relative to the new movie clip, eg,

mycomboMC.duplicateMovieClip("mycomboMC_"+i, i);
eval("mycomboMC_"+i).mycombo.addItem(...whatever...);

hope this helps

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignFlash Help > superHolder


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway