| | |
Any way to refresh textfield content?
Please support our Graphics and Multimedia advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
Hi there
Im working on a listbox(flash component), where upon click, will display other arrays in a movie( which is also a listbox made from textfield). The second listbox suppose to contain html links, where it will open up a popup upon clicked.
The problem is that whenever i click on the listbox, the content in the sub listbox doesn't change. that is, it doesnt empty the previous load of links, but just add on to the list of links.
Im not sure what i can use to prevent this issue. I have tried listener, and "if else" statements.. Im not sure what else can be done to prevent this.
I've include the codes for the 2nd listbox(the textfield listbox) Hope that helps better in the understanding of my queston.
Really appreciate any help. Thanks.
Im working on a listbox(flash component), where upon click, will display other arrays in a movie( which is also a listbox made from textfield). The second listbox suppose to contain html links, where it will open up a popup upon clicked.
The problem is that whenever i click on the listbox, the content in the sub listbox doesn't change. that is, it doesnt empty the previous load of links, but just add on to the list of links.
Im not sure what i can use to prevent this issue. I have tried listener, and "if else" statements.. Im not sure what else can be done to prevent this.
I've include the codes for the 2nd listbox(the textfield listbox) Hope that helps better in the understanding of my queston.
Really appreciate any help. Thanks.
Graphics and Multimedia Syntax (Toggle Plain Text)
var ListListen:Object = new Object(); ListListen.change = function(pEvent:Object) { var selectItem:Object = pEvent.target.selectedItem; var b :Object = pEvent.target.selectedIndex; sampleList =_root.sampleMovie.Slist sampleList._visible = false; for (j=0; j<total; j++) { if (fTitle[b]== sampleTitle[j]) { sampleList._visible = true; sampleList.htmlText += "<A HREF='javascript:openNewWindow(" + sampleLinks[j] + ",myFlash,width=640,height=480,toolbar=no,resizable =no)' target = '_blank'> " + sampleWorks[j]+ "</a><br>" sampleList.dataProvider = selectItem.data; } } };
I am not "pro" in Flash but you may try to do following. After selection from main index been made ad an extra line in your code which will empty your listbox of main index (empty your string variable) and then load up sub index.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Same thing
At start your_subindex = {empty string}
on 1st click your_subindex = {1st subindex}
on 2nd click 1st command your_subindex = {empty string}
2nd command your_subindex = {2nd subindex}
and so on.
Also why dont you try classic on? All subindexes placed on the stage and make them invisible on start. Then when ever any selection made run small script which will make shore that others subindexes are hiden only requered is visible. In style of rollover, instead of rollover use command onclick.
At start your_subindex = {empty string}
on 1st click your_subindex = {1st subindex}
on 2nd click 1st command your_subindex = {empty string}
2nd command your_subindex = {2nd subindex}
and so on.
Also why dont you try classic on? All subindexes placed on the stage and make them invisible on start. Then when ever any selection made run small script which will make shore that others subindexes are hiden only requered is visible. In style of rollover, instead of rollover use command onclick.
Learn to see in another's calamity the ills which you should avoid.
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
Publilius Syrus
(~100 BC)
LJC - London Java Community, Graduate & Undergraduate Software Development Community, JAVAWUG (Java Web User Group), The London Android Group
![]() |
Similar Threads
- How to 'refresh' a php page? (PHP)
- Confirmation of Bug (Site Layout and Usability)
- How Often Should I Resubmit My Optimized Site (Search Engine Optimization)
- preloader for database content possible?? (Graphics and Multimedia)
- delayed page refresh when link is clicked (HTML and CSS)
- Key Press event Restriction (Java)
Other Threads in the Graphics and Multimedia Forum
- Previous Thread: Need Help! Photoshop to Dreamweaver Web Publishing!
- Next Thread: Adobe Pagemaker or Quark Xpress?
| Thread Tools | Search this Thread |
3d 10 actionscript3 adobe adobeacrobat adobereader air ajax amazon amf apple button cart childprotection cloud dashboard dell design dojofoundation dreamweaver ebay eclipse ecommerce elasticcomputecloud embed endorsement extra family flash flash-develop flashlite flex free harddrive iamthwee ibm illustrator imflash intel interactivemap javafx javascript laptop legal map micron microsoft mobile monitoringsoftware moonlight multimedia myspace nand news novell panorama pdf pedophiles photoshop photosynth php safety sandisk security shopping silverlight solidstatedrive sproutcore ssd streaming swf table ukmap unload unwanted video vulnerability web white.space xml zend zephyr zeroday






