Retaining comboBox label on exitFrame

This is a discussion on "Retaining comboBox label on exitFrame" within the Flash & Multimedia Forum section. This forum, and the thread "Retaining comboBox label on exitFrame are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Flash & Multimedia Forum

Notices


Reply
 
LinkBack Thread Tools
  #1 (permalink)  
Old Oct 12th, 2006, 10:06
New Member
Join Date: Oct 2006
Location: Hemel Hempstead
Age: 25
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Retaining comboBox label on exitFrame

Hello all!
I'm building an application that uses combo boxes to choose (and change) the colour if the text in a dynamic text field. The only problem is, that when you leave the frame and then come back to it, the text has returned to it's default colour?
I am using this code for the colour change (colourBox is the combo box name lineOne_txt is the text field name):


Code: Select all
//sets a listener for lineOne text colour
objComboListener = new Object();
objComboListener.change = function(eventObj){

//sets the swith fuction for lineOne colour
    var nIndex = Number(colourBox.selectedIndex);
switch (nIndex){
    case 0: break;
    case 1: lineOne_fmt = new TextFormat();
lineOne_fmt.color = 0x000000;
lineOne_txt.setNewTextFormat(lineOne_fmt);break;
    case 2: lineOne_fmt = new TextFormat();
lineOne_fmt.color = 0xFFFFFF;
lineOne_txt.setNewTextFormat(lineOne_fmt);break;
    case 3: lineOne_fmt = new TextFormat();
lineOne_fmt.color = 0x3399FF;
lineOne_txt.setNewTextFormat(lineOne_fmt);break;
    case 4: lineOne_fmt = new TextFormat();
lineOne_fmt.color = 0x0000CC;
lineOne_txt.setNewTextFormat(lineOne_fmt);break;
}
}

//applies changes
colourBox.addEventListener("change", objComboListener);
I also had the same problem with the text itself (the dynamic field text, is created by the user, entering text into an input text field) with the text dissappearing when you re-entered the frame, but I fixed this by giving the input fields variable names. I'm not really sure why this fixed it - but it did!!

(I am very new to this!).

If anyone knows what I can do - it would be most appreciated.

Thanks,

DrGonzo.
Reply With Quote

  #2 (permalink)  
Old Oct 18th, 2006, 14:46
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Retaining comboBox label on exitFrame

Confused...Did you ever get this working?
Reply With Quote
  #3 (permalink)  
Old Oct 18th, 2006, 15:18
New Member
Join Date: Oct 2006
Location: Hemel Hempstead
Age: 25
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Re: Retaining comboBox label on exitFrame

No, I changed my whole approach to the site in the end and built is all in the same frame, using the _visible function. I played around with trying to label the combo box data fields as the colour codes - then sending that info to the text boxes. It almost worked, but then I changed it to a one frame file.

DrGonzo
Reply With Quote
  #4 (permalink)  
Old Oct 18th, 2006, 15:42
JacobHaug's Avatar
SuperMember

SuperMember
Join Date: Dec 2005
Location: On Internet
Posts: 4,859
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to JacobHaug Send a message via MSN to JacobHaug
Re: Retaining comboBox label on exitFrame

Well I guess the good thing is you got it working...lol
Reply With Quote
Reply

Tags
combobox

Thread Tools

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
combobox ahwell Flash & Multimedia Forum 3 Jan 25th, 2008 10:53
combobox component ahwell Flash & Multimedia Forum 0 Sep 11th, 2007 17:21
asp:Label text in javascript QuikFrozen ASP.NET Forum 1 Aug 17th, 2006 13:11
Retaining Quality when importing graphics into flash from fireworks Sope Graphics and 3D 1 Jul 26th, 2006 22:42
use of label twice wood1e Web Page Design 5 May 5th, 2005 20:27


All times are GMT. The time now is 22:40.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43