Flex :: Changing Cornerradius Of Label And Changing Arrow Of Combo Box

Aug 14, 2009

How do I change the corner radius of a Label component in Flex. Tried applying style name, and the setStyle('cornerRadius',9) methods, but doesn't work. How can I change the arrow image in the combo box control to a different image?

View 4 Replies


Similar Posts:


Flex :: Changing Left / Right Arrow Button Styles For DateChooser?

Jul 25, 2011

My DateChooser code and its style code is shown below:
<mx:DateChooser id="dc" cornerRadius="0" bottom="0" width="100%" allowMultipleSelection="true" allowDisjointSelection="false" styleName="dateChooserGradient" change="fetchDateAgenda(dc.selectedDate)"/>

And the dateChooserGradient:
.dateChooserGradient {
header-colors: #133c59, #29506c;
todayStyleName: myTodayStyleName;
headerStyleName: myHeaderStyleName;
weekDayStyleName: myWeekDayStyleName;
dropShadowEnabled: false;
arrowBorderThickness:2;
arrowColor: #062338;
arrowAlpha: 0.1;
}
What I actually want for my arrows is a transparent background, with borderthickness to be 2, and the arrows and bordercolor to be #062338. Also if I can make the width and height of the arrow itself a bit bigger then what it is as default.

View 1 Replies

Flex :: Horizontal Label On DateTimeAxis Dissappears Sometimes After Changing Data

Jul 31, 2009

I'm working with an Adobe Flex project and I have data I'm plotting against a DateTimeAxis (X-axis) but because there are a lot of points, I have to do some manipulation and remove some objects in the array (I do this by copying data to another array, removing items, then copying the new array into the original array). However, sometimes after I do this, the date labels disappear off of the x-axis! Why does this happen? I look through my array and I cannot find a reason its occurring (no objects with nothing in them, everything appears in chronological order).

View 1 Replies

Flex :: Hide (or Remove) Label Text Without Changing The Button Size?

Dec 21, 2010

I have a button with variable-length of label text. I have a User Setting that can turn on or off the label text on this button.

How can I implement this?

NOTE: the button's background has a gradient color.

I tried using BlendMode.LAYER, no luck;

I tried using Button.resizeHandler

private function resizeHandler(event:ResizeEvent):void
{
if (event.oldWidth > this.width)

[Code]....

but it only worked if the initial UserSetting value is true.

How about embedded font? I don't know how to apply it to button

View 3 Replies

ActionScript 3.0 :: Combo Box And Changing Fonts?

Sep 17, 2008

i want to load font types into a combo box and depending onwhat the user selects change the font of a text box. this is what ihave so far...changedFont.enumerateFonts(true).sortOn("fontNam") to false as i didntwant all the fonts loaded from my system. I have embedded the fontsthat i want. but they will not change to what i select.

View 5 Replies

ActionScript 2.0 :: CS3 Changing Font Size In Combo Box AS This

Apr 5, 2010

I'm pretty new to working with components in flash and for the life of me cannot figure this out!

I'm using AS 2.0. I have a combobox component on my stage called my_combo

In the actions panel in the same frame as the combo box I have the following[code]...

When I publish the movie I get an error saying "Statement must appear with on/onClipEvent handler"

Ok, I understand that, but putting an onClipEvent handler in still doesn't work.

View 1 Replies

Flash8 :: Changing Frame With Arrow Keys?

Oct 28, 2009

Is there a way to make it so that when you press the right key your animation/game goes forward a frame and when you press the left key it goes back a frame? I have a pretty minimal knowledge of actionscript so I'm not exactly sure how it would be done.

View 2 Replies

Actionscript 3 :: Changing Mouse Cursor To Arrow?

Sep 8, 2011

I have a Flex application using ActionScript 3.0. For any element in my application I want to set the mouse cursor to -- which is used specifically to indicate that a "move" or "drag" operation is allowed -- whenever the mouse hovers above the element

View 2 Replies

Flash8 : Changing Frame With Arrow Keys?

Mar 12, 2010

Is there a way to make it so that when you press the right key your animation/game goes forward a frame and when you press the left key it goes back a frame? I have a pretty minimal knowledge of actionscript so I'm not exactly sure how it would be done.

View 2 Replies

ActionScript 2.0 :: Changing Color Of Movie Clip With Combo Box?

Mar 24, 2009

I have a combo box called "jcolor1". I have a Movie Clip called "main". In my combobox I have set all of the color names in the labels section, and all of their hex values in the values section. I am trying to be able to change the color of the movie clip using actionsctipt.My actionscript I have (attached to the combobox)

on (change) {
myColor = new Color(main);
myColor.setRGB(jcolor1);
}

Its not working, I think the link between the Movie Clip and the combobox is not right, maybe I am not declaring the variable correctly.I want the combo box to reference the hex value I put into the data section in the component inspector and change "main" to that color.

View 2 Replies

ActionScript 2.0 :: Scrolling Arrows - Right Arrow Is The Same Just Changing Left For Right Obv

Jun 8, 2009

I'm trying to do a photo gallery for a website with scrolling arrows. I found a bit of AS that's perfect for what I want to do only problem is, it's in AS1 and i'm working in AS2 so i was wondering if someone could convert the code to AS2 for me or direct me to a tutorial that has the same sort of outcome in AS2.

[Code]...

View 2 Replies

ActionScript 3.0 :: Power And Angle To Shoot The Arrow Back - Changing Distances Between The Player

Sep 24, 2010

So I've set myself a little project to build a bowman game. Everythings working smashing until the math at the point where the computer needs to figure out the power and angle to shoot the arrow back at you. What I've been working off is my knowledge from applied-math classes in school. I've been using the following formula where g is gravity, t is time (this would be in frames for flash), sx is the distance between the players, u is the initial force of the arrow and a is the angle we need to find. With a bit of moving around to seperate the angle, this becomes For my AS3 this translates to:

[Code]...

What happens is that it always fires the projectile at a very low angle that doesnt change to match the correct circumstances and I can't figure out how to get around this. Changing the force doesnt make any difference and the program will need to get around changing distances between the player so this math is pretty necessary (I think). Any math heads out there know what I should change?

View 1 Replies

IDE :: CS5 Changing Label Of Button Component?

Apr 18, 2009

This seems to be hidden, but I can't find where to change the label on the button component, as currently it looks like this:

View 2 Replies

IDE :: CS5 Changing Label Of Button Component

Aug 18, 2010

This seems to be hidden, but I can't find where to change the label on the button component, as currently it looks like this:

And I'm wondering how do I change the color and font family of the label on the button?

View 2 Replies

ActionScript 3.0 :: Changing Colour Of Checkbox Label?

Jan 22, 2010

I'm writing a section of code which displays a series of checkboxes on the screen, but as they are placed on a dark background the default label text colour of black is no use, as they can't been seen. When I initialise them I use the line:
 
checkboxArray[i].setStyle("textColor", 0xFFFFFF); to set the text colour to white, but this only seems to work when the checkboxes are disabled (checkboxArray[i].enabled = false) and reverts to black again once they are enabled. I have tried including the setStyle line of code again after they have been enabled, but this doesn't make any difference.

View 2 Replies

ActionScript 3.0 :: Dynamic RSS Viewer - Changing Label Color

Feb 24, 2010

I am building a dynamic RSS viewer in actionscript 3. I wrote a flex application to create the xml code, now I load the xml into my flash application. Now the user of my flex app can pick a color for a thread. I import this hex value into flash to assign a background color of a movieclip. The problem is that the movieclip also has dynamic text in it. With my function changeColor() I seem to be changing this font color as well. I have tried to solve it by using a TextFormat but no luck.

Code:
for each(var channel:XML in rssInfo.channels.channel){
var menuItem:MenuItem = new MenuItem();
changeColor(menuItem,channel.color);
menuItem.x = 512 + i*120;
menuItem.y = 718;
[Code] .....

View 2 Replies

ActionScript 2.0 :: Changing Style Of A "Combo/Scrollbox" In Flash MX?

Dec 31, 2002

I have a Flash Scene with a black background.Into that scene, I inserted a standard "Combobox" fromthe Flash component menu.As I want to have a black background in the Combobox, tooand also white text instead of black text, I wrote an action-script to customize my combobox (I gave it the instance name "splashesscroll").

Voil:
splashesscroll.setStyleProperty("arrow", 0xFFFFFF);
splashesscroll.setStyleProperty("background", 0x000000);

[code]....

View 4 Replies

Duplicating & Changing Movie Clip Without Changing Original?

Aug 31, 2009

I want to create another button on the main menu of my flash site. I want to take one of the existing buttons (which are set as movie clips) and modify it to show a different menu name and page link. BUT when I go into my library and "duplicate" my movie clip, change the instance name, drag it to the stage and attempt to modify it, the original changes as well. I need to keep the original the same and create a new one with the same code, frames, etc but with different static text. I keep going in circles

View 1 Replies

ActionScript 2.0 :: RGB Changing Is Working But Not Changing All The Time

Feb 1, 2006

basically when you load the .swf it changed everytime u re-load it , i want it to keep on changing even when the user hasnt reloaded the image

[Code]...

View 1 Replies

Professional :: Change The Label Text In One Of Buttons The Text Is Changing On The Other Button As Well

Apr 7, 2008

I want to make some buttons and use the buttons.fla library. The button is inserted and given an instance name. A second button is inserted (same kind) and given a new instance name. But when I am trying to change the label text in one of my buttons the text is changing on the other button as well. I believed they where separate instances?

[Code]...

View 3 Replies

Flex :: 4.5 TabNavigator CornerRadius Not Working?

Oct 19, 2011

I'm having the hardest time finding a way to simply add rounded tabs to a TabNavigator control.I have seen examples which seem to be really simple but they don't seem to work in Flex 4.5. Here is some sample code:

<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"

[code]......

View 2 Replies

Flex :: Extend A Panel To Allow CornerRadius Per Corner?

Apr 27, 2010

It looks like the "cornerRadius" property of a Panel only changes the top corners and bottom if using a ControlBar. I'd like to specify a corner radius for each of the corners individual.

I know Degrafa can do this but I'd like to avoid if possible.

View 1 Replies

Data Integration :: Get Value Of Label From Combo Box ?

Aug 6, 2006

I am going nuts with this combo box! I have a flash form with 3 textboxes a combo box, and a submit button. When I hit submit, I post to an aspx page. My 3 textboxes are inserting into my db fine, but I have not been able to retrieve the value of the combo box.I have a change handler on the combo box called "comboDropDown". I have 3 labels, and no data. In the ActionScript for my submit button I have:
on (release) {

function comboDropDown()
{
var vchUser1 = comboBox.selectedItem;[code]............

View 3 Replies

ActionScript 2.0 :: Combo Box - Jump To A Frame Label On The Timeline?

Jun 24, 2010

I have a combo box, and when a item from the drop down is selected I want to jump to a frame label on the timeline...Thats it.I dont know how to go about setting it up.I think it must be something Im not doing within the component inspector...Ive given the combo box the instance name of myComboBox here is the code I'm using:

myComboBoxListener = new Object();
myComboBoxListener.change = function(eventObj)
{
var eventSource = eventObj.target;

[code]....

View 2 Replies

Flex :: Changing A Flex Movie To Use Runtime Shared Libraries And Losing Text In Charts?

Dec 3, 2009

I'm creating a small size Flex movies which contains two line charts, at the moment the size of the release build swf is 343KB, which is too large for our needs.

I've tried changing the loading of the SWC file to Runtime Shared Libraries, but I found that this removed the text of the charts (the text for the x and y axis). Why would the text be removed when the Framework linkage is set as a Runtime shared library?

View 1 Replies

Flex :: 3 - Changing Components Language

Aug 11, 2009

When we are building a application in Flex the components that we add are in English. Lets say that i want to change then to French, Spanish or Portuguese. How could i do that?? I've google a bit about it, but nothing good. I didn't look too much, because you guys always now things, and here in SO its more faster to ask than search for it : I think i didn't expressed my self correctly.

[Code]...

View 2 Replies

Flex :: Changing Value Of A Numeric Stepper?

May 21, 2010

I am trying something where I have 2 Numeric Steppers. One numeric stepper holds values from 0-230 and the other from 0.00-0.99. My question is how to change the value of the first numeric stepper when the second numeric stepper goes from 0.99 to 0.00. Suppose the first numeric stepper has a value 10 and the second numeric stepper is being incremented continuously. As it reaches 0.99 and on mouse up on the up arrow, 10 should change to 11 and this numeric stepper goes to 0.00.

View 1 Replies

Flex :: Adobe Salesforce Changing Id To Name

Oct 11, 2010

I am having a problem converting for example the AccountId field in Contacts to the Account Name from the Account Object. I have tried the following query: select Name, Account.Name from Contact But when I look at the Console when I debug the application I see that this has been converted to

[Code]...

View 1 Replies

Flex :: Changing Y Values In A Chart?

Nov 22, 2010

Here is the updated code:

private function myFillFunction(element:ChartItem, index:Number, item:Object,
fieldName:String):IFill {
var c:SolidColor = new SolidColor(0x00CC00);

[code].....

View 1 Replies

Flex :: Changing Default Font?

May 4, 2011

How do I install multiple fonts for both bold and normal, I am trying to change the default font.

<fx:Style>
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";

[code].....

View 1 Replies







Copyrights 2005-15 www.BigResource.com, All rights reserved