Any way to refresh textfield content?

Reply

Join Date: Jul 2005
Posts: 12
Reputation: ozeona is an unknown quantity at this point 
Solved Threads: 0
ozeona's Avatar
ozeona ozeona is offline Offline
Newbie Poster

Any way to refresh textfield content?

 
0
  #1
Aug 31st, 2005
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.

Graphics and Multimedia Syntax (Toggle Plain Text)
  1. var ListListen:Object = new Object();
  2. ListListen.change = function(pEvent:Object) {
  3. var selectItem:Object = pEvent.target.selectedItem;
  4. var b :Object = pEvent.target.selectedIndex;
  5. sampleList =_root.sampleMovie.Slist
  6. sampleList._visible = false;
  7. for (j=0; j<total; j++) {
  8. if (fTitle[b]== sampleTitle[j]) {
  9. sampleList._visible = true;
  10. sampleList.htmlText += "<A HREF='javascript:openNewWindow(" + sampleLinks[j] + ",myFlash,width=640,height=480,toolbar=no,resizable =no)' target = '_blank'> " + sampleWorks[j]+ "</a><br>"
  11. sampleList.dataProvider = selectItem.data;
  12.  
  13. }
  14. }
  15. };
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,210
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 488
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Any way to refresh textfield content?

 
0
  #2
Aug 31st, 2005
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
Reply With Quote Quick reply to this message  
Join Date: Jul 2005
Posts: 12
Reputation: ozeona is an unknown quantity at this point 
Solved Threads: 0
ozeona's Avatar
ozeona ozeona is offline Offline
Newbie Poster

Re: Any way to refresh textfield content?

 
0
  #3
Aug 31st, 2005
hm..
i need to have 2 listbox showing.. so that user uses the main lsitbox to open up whatever it is on the 2nd listbox aka textfield with scrolling buttons..
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 4,210
Reputation: peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of peter_budo has much to be proud of 
Solved Threads: 488
Moderator
Featured Poster
peter_budo's Avatar
peter_budo peter_budo is online now Online
Code tags enforcer

Re: Any way to refresh textfield content?

 
0
  #4
Sep 1st, 2005
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.
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the Graphics and Multimedia Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC