Flex :: Collapsing A Spark BorderContainer Dynamically Does Not Collapse Its Children

Sep 2, 2010

protected function lbHideQuery_clickHandler(event:MouseEvent):void
{
if (lbHideQuery.selected)
{

[Code]....

View 1 Replies


Similar Posts:


Flex :: Change Spark BorderContainer Default Height?

Sep 29, 2011

How to create horizontal layout container like HGroup but with border and border radius?In this example there is some default height:

<s:BorderContainer width="100%" borderWeight="2" cornerRadius="5">
<s:layout>
<s:HorizontalLayout/>

[code]....

I want it to have height of the heighest element in container. Like in HGroup. Add: Why is height for above example BorderContainer equal to 112 ?

View 2 Replies

Flex :: Spark BorderContainer - Draw Border For Specific Sides?

Dec 6, 2010

Is there a way to easily specify on which sides a border is drawn for Flex 4's Spark BorderContainer?[URL]But that uses MX styling which seems like a hack. Is there a better or 'correct' way without having to build a skin? It seems incredibly silly to build a skin for a 'Bordered' component when this is a very common use case.

View 1 Replies

AS3 :: Flex - Apply Color To Dynamically Created Spark Rectangles?

Dec 16, 2010

in FlashBuilder I want to dynamically generate approximately 1200 rectangles from a CSV file (these are all different colours) which will perform an action on Click.

What is the best way to go about doing this? I've read that the drawing API on Air and Android is not a good idea, and am thinking about using the Spark Rectangle class, but I can't seem to work out how to apply a colour to it if I'm generating them dynamically using AS?

View 2 Replies

Flex :: Spark - Change Style Of Selected TAB In TabBar Dynamically?

Jun 30, 2011

I want to change the background color of selected tab in spark TabBar control(Flex4). Till Flex3 we could have use the following code, bt it is not working in FLEX 4.

<fx:Script>
<![CDATA[
protected function tabbedPanel_clickHandler(event:MouseEvent):void

[code]........

View 1 Replies

Flex :: Mxml - Dynamically Resize Parent Container To Contain Children

Feb 11, 2010

Is there an easy way to make a parent container (eg Group) resize when it's children resize?

Below is a little example app. When I put the 200x200 'food' in the 'stomach' the stomach & it's containing 100x100 'body' should resize to contain the food.

[URL]

<?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 :: Changing Spark TextArea Text Color Dynamically Over A Range Of Characters?

Dec 22, 2010

I am attempting to dynamically change the color of a subset/portion of text in a Spark TextArea control. Using the MX-based TextArea, I could leverage the mx.controls.textClasses.TextRange type and change the color directly as follows:

TextRange tr = new TextRange(theTextAreaControl, false, beginIndex, endIndex);
 tr.color = somePredefindColor;

Input Parameters to TextRange constructor:

1st argument: The TextArea control that will provide access to the underlying textField property
2nd argument: Indicates the TextRange will not modify the content of the TextArea
3rd argument: The beginning index position in the TextArea text string
4th argument: The ending index position in the TextArea text string

How would I go about doing this for a Spark-based TextArea control? I am looking to dynamically change the font color for a range of text, not just the entire TextArea AND I cannot statically specify the font color. The problem I run into when trying to re-use the TextRange type is that the 1st argument is expected to provide the textField property, which is currently not on the Spark-based TextArea control. I thought about extending the Spark-based TextArea control to provide this accessor property but that seems like overkill and is probably not the best approach.

View 1 Replies

Flex :: Toggle A Mask To A Group In Flex (works For BorderContainer)?

Oct 6, 2011

Here's my test application:

<?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]....

I would expect the mask to be applied when the checkbox is selected, and removed when it issin't. But it doesn't seem to work.However, when you change to , it works like a charm. Can anyone explain to me why?

Note: In my actual application, i'm applying this in a skin to a component that is extending SkinnableComponent which can't use BorderContainer so a solution to this would be great.

View 1 Replies

Flex Tree Expand And Collapse?

Oct 12, 2009

I have created a tree with a custom treeitemrenderer where I have added a textinput box next to each label. My data provider is an ArrayCollection. When I enter value in the input box, I can see the value fine as I expand or collapse the tree using the disclousure arrow. There is a strange issue when I try to expand and collapse tree from the mxml page with a button click to expand and collapse tree using the following code.

The problem is as I expand or collapse tree, the values I entered in the input boxes appear to be moving.

For example, I have entered 15 in input box 1. When I expand and collapse tree, 15 moves to another input box, and moves to another, and then it moves back to where it was entered as I keep expanding and collapsing the tree. I am still learning Flex. I am not sure what is happening, it is something to do with arraycollection.

[Code]...

View 2 Replies

Flex :: BorderContainer As Foreground Object

Sep 12, 2011

I am searching for a way to have my spritevisualelement have round corners so that it is displayed in a circular shape.The SpriteVisualElement contains a Video Stream from FMS to display but I do not want it to be rectangular.[code] But the Container keeps being in the background and the whole remote Video which is displayed in the "vid" (=id) is in the foreground.How can I set the Container to be in Foreground? then just setting whole application background would do the job.

View 1 Replies

Flex :: AdvanceDataGrid Nodes Collapse On Refresh?

Aug 19, 2010

I have an AdvancedDataGrid which Im attemping to update with data from a web service that I poll once very 10 seconds. Im using a HierarchicalData object to provide data to the grid. The update seems to work fine, except that on each update, any nodes that were expanded are collapsed when the grid is refreshed. Stranger still, when I dig down into the bowels of the thing and look at the contents of the HierarchicalCollectionView that backs the grid, I can see that the openNodes property correctly contains the nodes that I opened, but those nodes are not shown as open on the grid...the state seems inconsistent.

View 1 Replies

Flex :: Change BorderContainer Background Color With AS

Oct 7, 2010

I'm trying to change the background color and or text color of a BorderContainer in flex 4 using Action Script, but have not idea how to. The Border Container component doesn't seem to have any properties like:
idname.color = "#333333";
idname.backgroundcolor = "#333333";
How might I go about doing this?

View 2 Replies

Flex :: BorderContainer Corner Rounding Only At Top Or Bottom

Jul 9, 2011

I need to round at only the top or bottom of a border container not all four corners, is their some CSS that I can use or do I have to create two new skins. I was reading their used to be a property for this for HBox back in the old days, is their not a property for BorderContainer now?

View 1 Replies

Flex :: Jerky Mouse Movement On BorderContainer

Sep 4, 2011

It seem when I trying to drag the bordercontainer to move along x-axis position on mouse down. It appear to move stable but became jerky when I drag a little faster.Any way to get bordercontainer move with smooth motion?[code]

View 2 Replies

Flex :: 4.5 - Create A Resizable Bordercontainer With 8 Dots?

Dec 26, 2011

I would like to have a bordercontainer in Flex, that the user can resize on his own with 8 dots in the top left, top, top right, left, right, bottom left, bottom and bottom right (like MS Paint etc.) Does Flex have a default solution for this, or do I have to write it myself?

View 1 Replies

Actionscript 3 :: Spark Images In Spark List With TileLayout Disappear On Scroll And Drag In Flex App

Jul 1, 2011

I have a renderer that looks like this:

[Code]...

Loading thumbnails using this method works perfectly. The issue happens when you scroll the List.

View 1 Replies

Flex :: Expand And Collapse Icon In Tree Control?

Aug 8, 2010

I am having some trouble with the flex Tree control.I have a control in my system and of course it is data driven.I have a group which shows a folder icon and that's fine but it also shows an expand icon when the item has no children.I don't what it to show the expand icon when the group has no children but I do want to show the folder icon, because it is different entities in my system.

View 1 Replies

Flex :: Set BorderContainer's BorderWeight, Contained Label Is Shifted?

May 22, 2011

I have a BorderContainer with a Label inside. I need this Label to be centered inside the container. BorderContainer has no layout (I guess it getst the default one, basicLayout...).

My code:
BorderContainer's definition:
<s:BorderContainer xmlns:fx="http://ns.adobe.com/mxml/2009"

[code].....

View 1 Replies

Flex :: Rect Drawn With Graphics Appear Below Background Of BorderContainer?

Nov 2, 2011

In a Flex component that inherits from BorderContainer I'm overriding the updateDisplayList function to draw a rect:

override protected function updateDisplayList(unscaledWidth : Number, unscaledHeight : Number) : void
{

[code].....

View 2 Replies

Actionscript 3 :: Control The Depth (z Index) Of Bordercontainer In Flex?

Mar 3, 2012

i'm desperately trying to set my border container the highest z-index so it will always appear on top.

how can I know how many objects are in my flex stage, so i'll be able to set the bordercontainer the highest depth? what shell i write in the depth property in order the border container would always be on top? (it's important to mention that i created dynamic objects)

<s:BorderContainer includeIn="state2" width="200" height="200" backgroundColor="#992F2F"
horizontalCenter="-61" verticalCenter="23" depth.state2=currentState.num>
</s:BorderContainer>

View 1 Replies

Flex :: 4 - Add Component To Title Bar Of Spark Panel Or Spark TitleWindow

Feb 7, 2011

I'm looking to add a couple of buttons to the title bar of a Spark Panel or Spark TitleWindow. Is this possible to do without making the panel from scratch?

View 1 Replies

Flex :: Flash Builder 4: Error #1009 In When Button Is Wrapped In BorderContainer

Sep 7, 2010

I have a component where a Button is wrapped in BorderContainer. I'm passing a custom property to the component at run-time to change the label of the button but Flex is reporting the following error:

Cannot access a property or method of a null object reference

When the error occurs, Flex highlights the following code:

myButton.label = value;

Here's the app:

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

[code]....

View 1 Replies

Flex - Access Children Of Children Recursively?

Mar 10, 2010

I have a Canvas which has many components inside it and those again, have many components inside them.

getChildren() returns only the top level children. What is the best way to retrieve all the children (children of children of children and so on).

Well, I sorta know how to do this by iterating through the children, but the code is really messy. I'd prefer to use a nice recursive function. Has anyone written this before? Or is there a Util class to do this?

View 3 Replies

Actionscript :: Add Children To Accordion Children In Flex 4?

Oct 28, 2011

I have an ArrayCollection that is read to generate containers in an accordion programmatically:

<s:ArrayCollection id="_ac_ps">
<fx:Object label="Block and lot" data="_blocklot" searchType="districtblocklot"
info="" />

[code].......

View 1 Replies

ActionScript 3.0 :: Xml.children() Returns Grand-children And Gr8-gran-children?

Nov 18, 2009

I'm making a OSX-finder-type file browser in CS4.The Structure for the folder and files is being generated by a PHP in a XML, heres an example:(sorry the xml is not sorted, but the command i'm using in php doesn't sort it)

Code:
<root>
<dir name="images">

[code]....

View 2 Replies

ActionScript 3.0 :: Dynamically Removing Children When Another Image Clicked

Oct 8, 2008

I have 36 images in a movie clip. Inside of that movie clip there are 36 other movie clips containing one separate image. I have figured out how to click on them and add it to the stage. But I can figure out how to get them to remove when another image is clicked. (ex. I click on image 1 it will appear on stage but when I click image 2 it show image 2 on top of image 1.) the thing is I don't want to have to click on the images in order. If any image is clicked the one showing on stage will automatically disappear.

View 9 Replies

Flash :: Dynamically Adding Children From Library Using Array?

Feb 1, 2010

i'm porting an old AS2 project to AS3, And have encounter a problem. I've tried a few different things but had no success.

in AS2 when dynamically attaching a MC from the library i would sometimes use an array. the array would hold linkage reference's, like so;

var mc:String = state_ar[currentState];
this.container.attachMovie(mc,mc,this.getNextHighestDepth());
targetMC = this.container[mc];

How would i do this in AS3?

View 3 Replies

Web Development :: Add Children To A Dynamically Added Swf Before Adding To Stage

Jun 6, 2011

I am trying to add children to a dynamically added swf file, using AS3, before I add it to stage

Here is the code I have thus far,

AS3:

var mLoader:Loader = new Loader();
var mRequest:URLRequest = new URLRequest(glo.bal.base_url+"videos/vid_1.swf");
mLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, onCompleteHandler_one);
mLoader.load(mRequest);

[Code].....

Inside the vid_1 swf there is a movie clip called box_one, I would like to append a image to box_one, and only have the swf added to stage after the image file has been added to box_one.

View 1 Replies

ActionScript 3.0 :: Dynamically Adding Children From Library Using Array?

Jan 31, 2010

i'm porting an old AS2 project to AS3, And have encounter a problem. I've tried a few different things but had no success.in AS2 when dynamically attaching a MC from the library i would sometimes use an array. the array would hold linkage reference's, like so;

ActionScript Code:
var mc:String = state_ar[currentState];
this.container.attachMovie(mc,mc,this.getNextHighestDepth());

[code].....

View 7 Replies

ActionScript 3.0 :: Accessing Children Of Dynamically Added MovieClip

Jan 8, 2011

Code:
function saveAction(evt:MouseEvent):void{
var choice=evt.target.name;
var inputText:String = saveName.text;
}

I have this and I am trying to make a variable from the contents of the input box. Simple ya? The issue is that it is a child of another clip that is being added dynamically, so it doesn't think the input exists. How do I declare the input? How can I target it's contents? Also I have a remove function that is meant to remove this same parent clip.

Code:
function closeSaveWindow(evt:MouseEvent):void{
removeChild(saver);
}
'saver' is a variable created in another function, so I think there is a scope issue there. To try to fix that I declared 'saver' as a movie clip as a global var.

View 1 Replies







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