Rollover Text Color - Combo Box Component
How do you change the "rolled over" text color in the combo box component? I just don't know how to reference the style in the code.
FlashKit > Flash Help > Flash ActionScript
Posted on: 07-19-2004, 04:43 PM
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
List Component Text Color RollOver
Ahhhhrrrrg!!!!!
For the life of me i cannot figure this out or cannot find simple straight forward documentation.
Previously in AS2, to set the style for a List Component when the mouse was over an item you would simple set it with
Code:
setStyle("rollOverColor", 0x000000);
I've been trying to find info on how the heck you do this in AS3, cause the above dont work.
i've been playing with the following code, but it does not have a rollOver property
Code:
var tf:TextFormat = new TextFormat();
tf.color = 0x00FF00;
tf.font = "Andale Mono";
tf.size = 14;
So please help, does anyone have a clue?
PS, normally when a programing language is changed, is is done at an easing speed, but AHHH! NO!!! not with AS3, it has changed 101%
Sorry just letting some frustration out.
Thanks for the help.
Why Can't I Change The Color Of Radio Button & Combo Box Component In Mx
hi all,
can someone help me with this problem....
I want to create a feedback form which includes combo box & radio button. o i added component from mx to file file. somehow i managed to change the font face to verdana but i want to change the color to white which i think component color default is black.........
i tried a lot to change the color but i could'nt can someone tell me how to do it...
i am attaching my file...
thanks a lot.
Component Rollover Color Change
I am using the checkbox component and I want to change the color of the default green that I get when I rollover the component. How is that done?
I have the following to style my component otherwise. Is this the right way to do it? Or should I create a combined declaration?
this.checkBox.label = "Subscribe to Mailing List";
this.checkBox.setStyle("fontWeight", "bold");
this.checkBox.setStyle("color","0x000000");
this.checkBox.setStyle("fontSize","10")
Text Overflow In Combo Box Component
This is weird. I am receiving some recordset back from a remoting call, and using DataGlue.bindFomratString() to populate a combo box:
code: AdminDataHandler.prototype.getNews_Result = function(result){
//this handles the result from a getNews service call
DataGlue.bindFormatStrings(this._tl.sectionClip_mc .editNewsForm_mc.newsStories_cb, result, "#newsInfo#", "#news_id#");
}
Everything work ok, excpet for the fact that the text is overflowing for the labels in the combo box:
from what i understand, the text is supposed to just get clipped to fit if is too long to fit.
This is in Flash MX, and AS1.
Any ideas what it could be? I have been searching around but can't find any answers.
Thanks,
Rich
Text Overflow In Combo Box Component
This is weird. I am receiving some recordset back from a remoting call, and using DataGlue.bindFomratString() to populate a combo box:
Code:
AdminDataHandler.prototype.getNews_Result = function(result){
//this handles the result from a getNews service call
DataGlue.bindFormatStrings(this._tl.sectionClip_mc.editNewsForm_mc.newsStories_cb, result, "#newsInfo#", "#news_id#");
}
Everything work ok, excpet for the fact that the text is overflowing for the labels in the combo box:
http://www.visible-form.com/wh/cb.jpg
from what i understand, the text is supposed to just get clipped to fit if is too long to fit.
This is in Flash MX, and AS1.
Any ideas what it could be? I have been searching around but can't find any answers.
Thanks,
Rich
Simple Color-Rollover Text
In flash mx I just wanna make a very simple color change rollover text effect, like when a text is a hyperlink, how can i do this?.
Rollover Color In Hyper Link Text
Hi ,
I am having a dynamic htmlText .for the text i have given hyper link uesing <a href> tag.
on Release i am calling a function using asfunction method.
But while rollover the text i want to change the color of the text.Is it possible to do.
I tried the CSS hover method .But its not working.
How to solve this problem.Any other method is there to do this.
Please help me.
thanks,
shanthi.
DataGrid - Change Text Color On RollOver/Out
I'm trying to change the text color of one cell in a datagrid whenever its respective row is moused over (or even if just that cell is moused over). I've added event listeners for the rollover and rollout events, and I can isolate the cell/row that the event refers to, I'm just having trouble doing the whole text color thing. Could anybody offer any assistance?a
Component Text Color
Hello
I've made a couple of "checkboxes", and would like to change the color
of the text from the standard blue to white.
can anyone help me with that ?
thanks in advance
J
Checkbox Component Text Color
The default Text color for the CheckBox Component is black... If I have a form on a dark color, how do I change the CheckBox text to another color?
Thanks.
[F8] Text Color In A List Component
I have searched for this and nobody seems to know the answer!
I have a list and want to change the text color of individual rows.
The background color can be changed thus:
Code:
list.setPropertiesAt(number, {backgroundColor:0x999999});
but replace 'backgroundColor' with 'textColor' or even just 'color' and nothing happens! Surely I am not alone in thinking that changing the text color would be more desirable than changing the background color!
Anyone got any thoughts?
Text Color In A List Component
I have searched for this and nobody seems to know the answer!
I have a list and want to change the text color of individual rows.
The background color can be changed thus:
Code:
list.setPropertiesAt(number, {backgroundColor:0x999999});
but replace 'backgroundColor' with 'textColor' or even just 'color' and nothing happens! Surely I am not alone in thinking that changing the text color would be more desirable than changing the background color!
Anyone got any thoughts?
Change Component Text Color
I am working with flash CS3 in AS3 and I'm currently skinning my component. The component I'm working with is a list box and I have visually changed all the colors of button states from the library, which is a breeze. However, some of the colors I used do not work well with the standard black text. I was wondering how to make text in my listbox change with the button state changes that I've made.
Thanks,
Aubrey
Component Text Color, Multi-choice
Im trying to change the text color and attributes in a multiple choice quiz, but i have no clue where that is located in the macromedia premade templetes...plz help...
[CS3] Changing Text Color In List Component?
Hallo,
Just switched over to CS3, still adjusting to the many many changes.
How on earth do you change the text color styles of a List component in AS3? I know it was easier to directly access the .color, .rollOverColor properties in AS2, but I can't find *ANY* comparable feature in AS3. I can see how everything else is skinned, by navigating the layers of symbols within the component. Can anyone help me, or explain how I'm thinking about this wrong?
Thanks,
Dylan
Changing The Text Color On The List Component
It's my understanding that using listInstance.setStyle( "color", myColor ); should change the colour of the text in my list component, but I'm having a difficult time getting this to work. I've tried a variety of different things where 'myColor' is but nothing seems to be working.
Rollover Text For Tree Component Nodes
Hi,
I need to give rollover text for tree component nodes.
The text for the tree component is loaded from a xml.
Can somebody please help?
I need it pretty urgent!!
Changing The Text Color In A Radio Button Component
Hi,
I'm using a background in my frame , so I need to know how to change the color of the Radio Button Component. I tried using the Property Inspector , but in that the color option is disabled. The Flash version I'm using is Flash 8. Kindly provide me a solution for this.
Thanks In Advance,
Lokesh R
How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi
I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.
Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
my_color.setRGB(normalcolor);
};
Thanks in advance
How To Change MovieClip RollOver Color(NOT Single Color, But Gradient) Dynamically ?
hi
I have created this for single color.But how to change when it is a gradient color.
for single color rollover code.
ActionScript Code:
rollcolor = "0xFF0000";
normalcolor = "0x339900";
my_color = new Color(my_mc);
my_mc.onRollOver = function() {
my_color.setRGB(rollcolor);
};
my_mc.onRollOut = function() {
my_color.setRGB(normalcolor);
};
Thanks in advance
How Do I Change Background Color On MM Rich Text Editor Component?
I am trying to change the background color on Macromedia's Rich Text Editor component but I'm having no luck. I know I need to muck around in the library once I add the component to my project and I think it has something to do with skins but other than that, I'm lost!
Thanks in advance.
Update Text Size, Color And Font Of A TextArea Component
Hi All,
I'm using Adobe CS3 and writing in AS3. Many people are having the same problem as me, all across internet land, so if you can resolve this you will be helping a lot of people.
I have two textarea components that I'd like to change the font, size and colour of the text in each. Both have to remain editable, and if possible I'd like to do it from within the CS3 IDE.
Here's one of them:
Code:
var playerlist:TextArea = new TextArea();
playerlist.move(530.5,375.9);
playerlist.setSize(200,173);
playerlist.editable=false;
Can anyone give me (a newbie to this!) step by step instructions as to how to do this please?
Please do not direct me to the Adobe help pages or anywhere else. I have scoured the web and cannot find/understand anything that helps me resolve this problem. Among the solutions I've tried include:
1) Accessing the TextField component within the TextArea directly (I thought I was on to a winner with this, but found out the variable is protected)
2) Setting the style directly e.g.
Code:
playerlist.setStyle("fontFamily", "Times");
(for some reason, simply doesn't work)
3) Setting up a TextFormat object and applying that to the textarea (doesn't work)
And probably a whole lot more that I can't remember...
Your help... ANY help that gets me closer to a solution.. IS very much appreciated, thanks!
Thanks,
Dave
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Datefield Component And Combo List Component
Hello All,
Im creating a form for a booking system. When the user chooses the date and submits. The booking gets emailed to a specific address. Im using the datefield component and combolist component. in flash. I usually use PHP to push data from a text field and email. But i'm stuck here, because the datefield and combolist is not a text field. Can anyone please help me.
I wanna email the data from the fields to an email address. Im new in flash. Can anyone please help me.
Color Of Combo Box
How can I change the color of the combo boxes used in a mail form. The background is deep blue so I want to make the color of the combo box blue. How can I do that?
trnghosh
Combo Rollover
I have a bunch of boxes, which will have images in them.
I want to have a combo onRollover, where the target box gets much larger AND the other boxes are pushed to the side out of the way.
I could use a suggestion in terms of how to approach the structure.
I have attached a fla with a couple of scenes. I have an expansion for each box and was going to make a scene for the enlargement of each box also, but I think I am going in the wrong direction.
These effects will also be used to show gallery images which will be dynamic (using php probably), so I will want to re-use this elsewhere in the fla.
FLA
Combo Box Background Color
is there a way to change the background color of the selected item in a combo box?
Reason: i have a MC with a combo box. The movie clip is gray. So is the background of the combobox. I want to change the color of the combo-box background so that is is not identical to my movie clip background..
thanks,
-myk
Help With Combo Box Component
i been trying all night to figure this thing out. i have to admit i have very little experience... but i need to put a combobox on my website. it will have the rating of the website that the vistor can choose from and then emails the results to me. Unfontunatly i dont know how. Could someone PLEASE help me on this one. Thanks for your time.
-viper_sa87
Combo Component
I am using MX and wish to know if there is a way i can link an entry in a ComboBox to enable a "go to" or a "load movie" when that entry is clicked? I have a list of numbers in this ComboBox and when any one is selected i want it to take the user to a certain page/load movie.
I have read books and searched many places to find this answer, please could someone help me?
Thankyou.
Combo Box Component
I have a combo box component I named "exercise", but I am unable to get the "data value" from it. Please help.
Thanks
Shawn O.
The following is from my calculate button:
on (release) {
formData.AID = exercise.getSelectedItem().data
points = (formData.AID * weight * time);
}
Combo Box UI Component
Is there a way to populate a combo box with a db table column so that it dynamicly updates when DB table changes? I'm trying to create a shopping cart and I want to be able to select a product category that will run a Coldfusion query and display those category products.
thanks,
chuck
Combo Box Component Help
how do i get information out of the combo box component?
i have the combo box inside a MC and its instance name is "timezone"
Im want to set the feedback4 to be correct if they select the correct option from the combo box. The options have been given data names option1, option2 etc (option3 is the correct answer).
Then in my main movie is where i want to check the selection made, the code i have at the moment is...
if (_root.timezone.option3==1) {
_root.feedback1 = "Correct";
_root.score++; }
else {_root.feedback1 = "Incorrect"; }
what do i put in the (_root.timezone.option3==1) bit?
thanks.
Combo Box Component
how do i tell which option of a combo box the user has selected, then perform an action if it is a certain option?
at the moment i am using the code...
if (_root.timezoneapp.timezone.getSelectedIndex.data= =option3) {
_root.feedback4 = "Correct";
_root.score++; }
else { _root.feedback4 = "Correct TimeZone not selected"; }
timezoneapp = the name of the movie clip its in
timezone = the name of the combo box
As for the rest its what was suggested to me to use. I want the third option in the combo box list to perform the action. At the moment that code seems to be always returning a "Correct" result, even if i dont select anything at all
any help pls...
Using The Combo Box Component
how do i tell which option of a combo box the user has selected, then perform an action if it is a certain option?
at the moment i am using the code...
if (_root.timezoneapp.timezone.getSelectedIndex().dat a=="option3") {
_root.feedback4 = "Correct";
_root.score++; }
else {_root.feedback4 = "Correct TimeZone not selected"; }
timezoneapp = the name of the movie clip its in
timezone = the name of the combo box
At the moment it isnt working and just returns the wrong timezone even if i select the correct one. i want the 3rd option in the combobox to result in a correct answer.
please help. any suggestions...
thanks
Combo Box Component - Help
I am using the COMBO BOX Component in MX. This is going to be used in a mailform with PHP. What kinda of actionscript will i requie in order to pass the selection made over to PHP so it is displayed in an email?
I can get this to work with INPUT TEXT boxes and alike as i am able to assign them a VAR name but I cant see how i can do that with these COMPONENTS.
I have scanned the web and this forum for help but to no avail.
Please help me !!!
Thanks
Nick
Combo Box Component
Hello,
I'm running flash v8pro and having problems using the combo box in a movie. When I add a combobox using the combobox component I just get a white box where the combobox should appear. However, if I open up a new .fla and try to use the cb it works. I'm trying to add the combobox to the main timeline in the last frame and it's not working. Is there anything specific I need to look for to solve this problem?
Thanks,
tdsilk
[F8] Combo Box Component
Hello!
Ok, I'm using a combo box component in a mail form with php script. in the php, will it automaticly call on the selected item from the combo box as long as the instance and variable names are called out? does this question make any sense?
James
Yet Another But In AS3 Combo-box Component
only yesterday i faced one bug with the combo-box component, which i
mangaged to overcome (with some help from Luke867), and today i have another
one.
to remind you - i have a swf containing combo-box which i load into the main
movie behind a mask. it works fine, except for one minor thing - the
selected item isn't displayed.
for testing purposes i made an empty movie, containing a mask and an empty
MC below it ('con'), into which i load my combo-box-containing swf, which
not surprisingly doesn't display the selected item, unless i remove the
mask. of course i've tried embeding the fonts - but guess what, no luck.
here's my code:
var ur:URLRequest = new
URLRequest("C:\Users\eRez\Documents\AllOfMe\Timeline019\swf\balloon.swf");
var loader:Loader = new Loader();
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, loaded);
loader.load(ur);
con.addChild(loader);
function loaded(evt){
evt.target.content.cb.setStyle("embedFonts",true); // the instance name
of the combo-box is 'cb'
}
i've also tried inside the 'loaded' function -
evt.target.content.cb.getChildAt(1).setStyle("embedFonts",true); // knowing
that the combo-box' child #1 is the text-input
no success here either.
any suggestions?
thanks,
eRez
www.allofme.com
ps - just to make sure - i've already read this post -
http://groups.google.com/group/macromedia.flash.actionscript/browse_thread/thread/73b8dd813e21984b/8ea80167a48e36d9?lnk=gst&q=combobox+styles&rnum=3&hl=en#8ea80167a48e36d9
Combo Box Component
Hi all,
I am trying to figure out how to put a comboBox in my Flash form and normally I just use something like:
countryList.dataProvider = ["Country1", "Country2", "Country3", "Country4"];
var listenerObject:Object = new Object();
listenerObject.change = function(evtObj:Object) {
// code placed here executes
// when the event is triggered
trace("Selected Item: "+countryList.selectedItem);
};
countryList.addEventListener("change",listenerObject);
This will give me the selected item's value which I can chuck in a variable and send off to my form...
Well that is usually good enough but now I want to have a Label AND a Value so that when the user does the drop down they see the Label but I am actually sending the Value. I am messing around with the Flash Help code and I kind of see how this is working yet I can not get at the data I need which is the Value not the Label.
my_cb.dataProvider = [{name:"Gary", gender:"male"}, {name:"Susan", gender:"female"}];
my_cb.labelField = "name";
var listenerObject:Object = new Object();
listenerObject.change = function(evtObj:Object) {
// code placed here executes
// when the event is triggered
trace("Selected Item: "+my_cb.selectedItem);
};
my_cb.addEventListener("change",listenerObject);
Any help on this would be greatly appreciated.
XML Component To Combo Box
I am loading in an xml document through the xml component. The xml is the make and models of bikes. I want only the unique bike names to appear in the combo box component. Is there a way of filetering this out in the scheme and bindings tabs
XML example
<bikes>
<bike make="x" model="a"/>
<bike make="y" model="b"/>
<bike make="y" model="bb"/>
<bike make="z" model="c"/>
</bikes>
In the comb box I want to list only x, y,z. Do I need to write code to do this.
Combo Box Component
Whats the right actionscript to show one of the values in a combo box? Basically i have values that are inputed from a selection in the combo box being stored into a database. But I then need to read the values back and show the right one out of the combo box choices selected.
Thanks
Changing The Color Of A Component Inside A Component?
I've been going over these docs
http://livedocs.adobe.com/flash/mx20...3.html#3148563
http://livedocs.adobe.com/flash/mx20...=00002960.html
http://livedocs.adobe.com/flash/mx20...=00002096.html
and I've been able to customize my List component like
mp3list.setStyle("color", 0xFFFFFF);
But I cannot get change the UIScrollBar or Button components. I've tried several things
Code:
_global.styles.mp3list.Button.setStyle("backgroundColor", 0x0000FF);
_global.styles.Button.setStyle("backgroundColor", 0x0000FF);
Nothing is working
Gallery Component, Combo Box, XML ?
Hey,
My name is Jason, and I'm working on a project where I use the new Photo Gallery component to load pictures of albums. and you can view the track listing, then download the track you want.
1. The component works fine, and loads the images, along with there attribute to a text box, which is the name of the album (IE:
forgottenfreshness3).
2. I am able to import an XML of the track list to a combo box, and choose the song, and click the download button. It all works great.
Now the problem is that I want to make it so when you click on the album (IE: forgottenfreshness3) that it will load the track listing of that album to the combo box from the (forgottenfreshness3.xml). Then when you click on another album, the track listing for that album will load into the combo box
Every still with me???
Here is the AS I have it is on FRAME 1 (the only frame)
***ACTIONSCRIPT***
fscommand("allowscale", 0);
function setGlobalStyleFormat(){
globalStyleFormat.face = 0x666666;
// globalStyleFormat.background = 0xCCCCCC;
globalStyleFormat.arrow = 0x990000;
globalStyleFormat.darkshadow = 0x990000;
globalStyleFormat.shadow = 0x000000;
globalStyleFormat.highlight = 0xEFEFEF;
globalStyleFormat.highlight3D = 0xAAAAAA;
globalStyleFormat.scrollTrack = 0x990000;
globalStyleFormat.selection = 0x999999;
globalStyleFormat.textSelected = 0xFF0000;
globalStyleFormat.textColor = 0x990000;
globalStyleFormat.textFont = "Arial Black";
globalStyleFormat.textSize = 11;
globalStyleFormat.applyChanges();
}
setGlobalStyleFormat();
CBOLoadSites.setSize(150)
imageText.watch("imageText", LoadXML);
function LoadXML(id, oldval, newval) {
if (newval) {
//create a new XML object
thisXML = new XML();
//ignore whitespace in the file
thisXML.ignoreWhite = true;
//call the LoadChartData function when the XML file is loaded
thisXML.onLoad = LoadCombo;
//load the xml file
thisXML.load(newval+ ".xml");
} else {
gotoAndPlay(1);
}
return newval;
}
function LoadCombo(success) {
if (success) {
//set variables
var BaseNode=thisXML.childNodes[0];
var ComboSites = new Array();
var ThisNode;
//add a default item to the combo box
CBOLoadSites.addItem("-- select site --");
//get sites information
for (i=0; i < BaseNode.childNodes.length; i++) {
ThisNode = BaseNode.childNodes[i];
ComboSites[i] = ThisNode.attributes["siteName"];
//add to combo box
CBOLoadSites.addItem(ComboSites[i]);
}
}
}
// push button callback
function onClick(btn) {
track = CBOLoadSites.getValue();
getURL("http://www.wedontdie.net/audio/icp/forgottenfreshness3/" +track + ".rm",_blank);
}
***ACTIONSCRIPT***
In the actionscript I already told what xml file to load, and the image Gallery component, and combo box ,arent communicating to eachother yet. Some Ideas i had might be to write a "watch"
or a "while loop" checking the value of the textbox, so flash knows what XML file to load into the checkbox, but I'm not sure how to write it out....
If anyone can lend a helping hand I would greatly appreciate. I'm trying to get this up and going by Thursday or Friday.
Thanks in advance,
Jason
__________________
"To believe your own thought, to believe that what is true for you
in your private heart is true for all men--- that is genius."
Ralph Waldo Emerson
|