CSS :: Set Radius For Lower Corners Of Tab In Navigator
Apr 26, 2010
Using CSS, I can set the corner radius of the top corners of a tab in a tabnavigator:
<mx:Style>
.tabstyle {
corner-radius: 10;
} </mx:Style>
<mx:TabNavigator tabStyleName="tabstyle" />
However, I also want the bottom corners to have a radius.
I have a mx.components.List component with a bunch of custom styles:
<mx:Style> .dropDownListStyle {
[code]....
I'm creating the list in AS:
_dropDown = new List(); ... _dropDown.styleName = "dropDownListStyle";
The List is then added as a popup with PopUpManager:
PopUpManager.addPopUp( _dropDown, this );
The problem is that the corners of the newly created popup are not rounded. I found that border-style is needed in order to get the effect, but adding this property didn't help. I'm building the project with Flex 4.1, but the List and its parent are MX components and it's a lot of work to migrate them to Spark.
I have used the script below to load the mp3 file, but I couldn't do what I used to when I imported the mp3file to stage and I did it there. Is there a way to place fadeout at the end of the music and make the sound lower and lower, is there a way to apply something like that via Action Script?
I am wondering about making lines with a corner radius. It seems that the smaller the scale, the corners sort of distort, and end up looking jaggy. Maybe its just the way it is, but is there any remedy? I tried shifting the registration points, etc, but still the only way it looks smooth is when enlarged.
I am no master of Flash. I was wondering if there was a way to tween the radius of a circle to be placed on the circumference of the circle. I want a student to see the radius being transformed to a curve and then placed on the circle. I will be teaching my students the concept of a radian.
Code: var nav1pos:Number = 37.5; function scrollingUp(evt:MouseEvent):void { if (nav1pos < 37.5){
[code]....
Now at the moment all it does it shunt up/down once and then stops, but what i want it some constitant scrolling until the user removes there mouse from the scrollUp or scrollDown box.
I have a component mxml in which i have a save button, on click of the save button i need to display another component which will be in a tab navigator, for this I am using the view stack. My problem is, on click of save I need to display the second tab instead of the first tab, but defaultly the first tab will be displayed.
I'm trying to create a custom tab navigator that has to look like. Also, when there's a rollover, the borders of the arrow have to be in blue (like the label in the current tab). For that purpose, I've created a custom component: a hbox containing a label and a canvas with 3 images inside (for the arrow tip that has to change depending on the currentState). Then, I thought of overlapping the components in order to get the blue highlight color (ex: arrow button 3 is over arrow button 4. The image of the arrow tip in button 3 will be transparent outside the arrow, so that we can see the black color of the following button).
I'm now trying to position the components inside the canvas ... but I cannot. After the creationComplete event, I assign the label text and I was calculating the coordonates of the component but it doesn't take into account the label width... -_-'
I am adding a tab navigator to a title window here. Once the title window is closed, it can be reopened using the button.But on opening the title window second time in this manner ,the content of the children of the Tab navigator(here, a label) is not visible.
i have screen1(contains products link button).My Requirement is wen i clicked on products button,then i want togo for second screen.now in second screen will contains Home>Products.How can i acieve this?
I am trying to make an application that tells me what points are within, say, 5 miles of me. I have my latitude and longitude coordinates that are constantly updating depending on my location... and I want to be able to search a XML file and ask whether or not certain locations are within the 5 miles.
If they are it displays those points in a list... if not, they are excluded.I don't need to be deathly accurate... Under a quarter of a mile or so would suffice.example of lat:long numbers would be something like
http://www.auktionsverket.se/dbk/rdbk_oversikt.asp?d=2010-06-04&at=k&s p=en&bm=E006&id=2855&snr=0 Click on any image, then one popup window will open, then click on "zoon in" buttton then
My problem: I have a tab navigator, with many forms in each tab. But I have a single global save button.Problem is, if I don't open a Tab, it doesn't get initialized and therefore the forms it contains do not exist..
How Can I make it as if the user had clicked on every tab?
This is a general question on optimization technique and am more than willing to rewrite a majority of my code as I am moving a lot of it to a library.My concern applies not so much to flex performance as I have used methods that have reduced cpu/memory footprint so performance is quick when inside a view.The problem I have is with the navigator.pushView which seems slow, I do call my init function on creationComplete for the view but I have it factored so my init looks like:
private function init() : void { doStuff1(); doStuff2();
how to create a specific navigator effect. I'm sure you've all seen it. I'm just having some trouble with the scripting. What I want to happen is I have a map and you can only see a small section of it, when you click on a button the map slides behind the window to the new point. I've mainly seen this done in photogalleries where all the images are layed out on a grid inside a MC behind a mask then the MC slides around to show the selected image.
I'm trying to create a slider which will control the radius of a sprite I've created. This is the code I have so far: var aura:Slider = new Slider(); aura.liveDragging = false; aura.setSize(120,20); aura.maximum = 100; aura.minimum = 0; [Code] .....
This adds my slider, "aura", and the sprite, "circle", and sets the radius to the slider default value, 50. What I need to add to this in order for the sprite to change radius each time I move the slider.
I'm looking for a way to increase the click size so when I click, it would effectively count as a click on anything that is in a 100px by 100px radius around the click.
I would like to know how to apply gradient and corner radius in flex. Is css the only way? I mean I want to use more of flex properties to make this happen give a sample class or code for it?
I want to draw a circle on the scrren of a random x,y position and a random radius. Then, I would like to draw a line that starts at the center of the circle and ends at the spot where the circle ends, at its perimeter. All I have been capable of doing by myself was creating that circle and set the drawing position with the moveTo function to its center, but I don't know how to calculate the length of the radius, so I have the coordinates for the lineTo function.
I created a skin to show on Button mousedown.I want to give corner raduis and border thickness also as skin attributes because I gave them to the button in the normal way but they are not working on mousedown when I chose to give skin on it.[code]
I have a line ("radie_mc") rotating when the button "btnPlayPause" is pressed. The line I think as a radius in a circle. I want a circle to be drawn when the radius is rotating. I have a tiny point at the end of the radie called "spets". I thought that I could curve to that point when the radie is rotating, but that doesn