Hi,
I would like to add items to a dropdownlist progmatically.
I have an empty drop downlist and depending on a number of factors I then populate it with various action choices.
the Drop Down list is called dlFirstChoice and I would like to add some values to it, can some one give me the basic code to do so, I have tired ILists and A...
There are lots of examples of how to create skinnable components in AS3 using the new Spark component architecture, however I've yet to find any such examples using MXML.
What I'm mainly referring to is defining the skin parts and skin states. It seems as though the SkinPart metadata is supposed to be associated with properties and as s...
Hi guys,
I'm new to Flex programming.. and I need to do some iteration.
How do I perform loops in Flex?
And does Flex has "switch case"?
Thanks guys
...
I have written a script (in two files) that correctly displays a Joomla user id, like this:
//this is testy.php
define( '_JEXEC', 1 );
define('JPATH_BASE', dirname(FILE));
define( 'DS', DIRECTORY_SEPARATOR );
require_once ( JPATH_BASE .DS.'includes'.DS.'defines.php' );
require_once ( JPATH_BASE .DS.'includes'.DS.'framework.php' );
$main...
Flex exposes a "selectionColor" CSS property for styling the background color of a selected list/datagrid. However, I cannot figure out how to style the foreground or text color of selected list. It appears you can only change the foreground color for all rows.
So, for example, that I wanted a very dark selection background color an...
I am trying to catch what label was pressed, but instead of label instance in event target I am getting BorderContainerSkin instance.
Any comment will be appreciated
<s:BorderContainer click="select(event)">
<s:Label/>
<s:Label/>
<s:Label/>
</s:BorderContainer>
private function select(event:MouseEven...
I am writing a Flex (Flash Builder) application which has a map component (http://help.arcgis.com/en/webapi/flex/apiref/com/esri/ags/Map.html) and a drop down list component used to select items shown on the map. I want the drop down list component to always be overlayed on top of the map in the top right corner, regardless of the size ...
Hi everybody,
We built an Flex application embbeded in a Oracle PL/SQL page (throw an Oracle DAD) developed with Flex3 SDK.
As we have many environnements (development, pre production, training, production), so many DAD, we used to set our HTTPService with relatives paths.
For example Development Plateform :
Client URL (into IE/Firef...
Hi,
I'm planning to break my Flex applications into different modules and need some advice regarding the loading of modules.
Currently, on load of the application, I need to add 5 modules as children to HGroups under a viewstack.
I'm using a ModuleManager to perform this and listens to the ModuleEvent to add the elements as IVisualEle...
I have a Custom SkinnableContainer that has nothing but 4 custom style properties on it. I have then given it a default Skin. which works fine. In the skin I have this :-
override protected function updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void
{
updateCornerRadius();
up...
Hi guys!
Does anyone know how to resize and move an Image with ObjectHandles
I need it to be as simple as possible.
Thank you!
...
I have a UI component that I wish to relocate and scale, but in a rather complex way. I've figured out the necessary transformations using the transform matrix, to which I applied several translate and scale operations.
I can set the new transform matrix for this UI component to be the above calculated matrix, and the results are accur...
I just noticed a strange behaviour while looking at my application in the Flash Profiler. When I click a button in my TitleWindow then the TitleWindow doesn't get garbage collected after it is removed. I have no idea why that is happening.
I've created a small example application, so you can try it out yourself:
Main.mxml
<?xml versio...
I am trying to initiate a drag&drop on a spark tilelist so the user can re-order the list manually.
The problem is : each time i drap and drop, the dropped/dragged entry is duplicated.
My main application is :
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com...
I have the following panel component called AdvancedPanel with controlBarContent:
<!-- AdvancedPanel.mxml -->
<s:Panel>
<s:states>
<s:State name="normal" />
<s:State name="edit" />
</s:states>
<s:controlBarContent>
<s:Button
includeIn="edit"
label="Show in edit"
/>
<s:Button
label="Go to e...
I have the following XML in my Flex4 (AIR) project that defines the start of my menu interface:
<mx:MenuBar x="0" y="0" width="100%" id="myMenuBar" labelField="@label" itemClick="menuChange(event)">
<mx:dataProvider>
<s:XMLListCollection>
<fx:XMLList xmlns="">
<menu label="File">
<item label="New"/>
...
How do I differentiate between a data provider update and a itemrender being recycled when using a custom itemrenderer in a DataGroup?
I have overridden the set data function of the custom item renderer, but I have found that on making a change to the ArrayCollection used as the DataProvider some of the item renderers are not assigned t...
Hi,
I have a custom component as an item renderer.
In this renderer there is an item called dlFirstChoice.
Now when I add more items to this list and force the list to rebuild itself something odd happens.
Part of the creation of the renderer I set a default selection for the DropDownlist as follows: dlFirstChoice.selectedIndex=0
Th...
Hello Stackoverflowers,
i'm creating a reusable flex tree component. And i would like to stick in the itemclick funtion. So that when a user clicks anywhere on one of the tree's Branches. the branch expands.
My problem is that i don't know how i can get the listener function to fire.
What i would like to do is create the tree completely...
Hi,
I need to call javascript function from Flash 4 based web application. When I run it in Debug mode it runs perfectly but when I make release build or run same application on other machine it does not call JavaScript function.
For testing I am just calling sample Alert function of JavaScript. Can someone help me what I am missing ?
...