flex4

Force Flex 4 Spark Hslider snap to certain values?!

I remember using values array on good old mx:HSlider, is there any workaround for s:HSlider?! Basically I need slider to choose values between 300 and 2500 in following steps 300,500,1000,2000,2500. <s:HSlider id="franchiser" value="1500" skinClass="components.HorizontalSlider" x="0" y="0" minimum="300" maximum="2500" /> ...

Use mxml without flex to make a library

Hello, I'm looking to make a library that contains some audio files and a small as3 non-flex class. Is it possible to do this with mxml and not include any flex actionscript? ...

flex: what is the best way to create multi window web application?

I am using flex4, I am seeking the answer to create multi window web application. My application is some sort of complex, currently I only know using PopupManager to create a new window. Should I create each MXML for each window that I want to instantiate? And then load the mxml and put it into the stage? Is there any tutorial describing...

Adobe Flex 4 XML validation against XSD

Is there any way using any of the standard XML tools or E4X tools in Flex 4 (Adobe Air WindowedApp) for me to validate an XML against an XSD schema I have created? ...

Flex4: Combo Box with CheckBox Inside.

Hi, Apologies for all the simple questions but they are born of my sudden and unplanned migration from flex 3 to flex 4. Ok I have a combo box which I would like to show a list of selectable check boxes. <s:ComboBox x="181" y="-7" width="233" id="dropISLIST" itemRenderer="IsListFilterCheckBox" dataProvider="{GetIsList.lastResult.Rep...

keep 'down' state for spark skin button

I have spark skin a button with up, down, over, and disable states in a button component to create a modular. Is there a way when the user press and hold a key, the button will remain in 'down' state? The button component include skinclass: <?xml version="1.0" encoding="utf-8"?> <s:Button xmlns:fx="http://ns.adobe.com/mxml/2009" x...

Carriage Return Line Feed in MXML

I have this line: text="{selectedOrder.targetLocationName} 'crlf' {pickUpLocationHTML}" Does anybody has an idea how to make this work? Thank you. ...

Flex 4: State Change Event

Is there any event in Flex 4 that I can use to detect a state change? ...

Flex: Why does mouseOut of a DataGroup ItemRenderer cause a state change?

Hi guys, I've found a very annoying problem with the itemRenderers in a DataGroup in flex 4, when I mouseout of the itemRenderer is returns to its default state. Here's an example: <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009" xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="library://ns.adobe.com/flex/mx"...

Embed sound in flex with variable String

I'm looking to do something like: private static const fooDir : String = "foo"; [Embed(source = foo + "/foobar.mp3")] private var Foo:Class; Flex is only accepting the string if it's written fully out as [Embed(source = "foo/foobar.mp3")]. Is there a way around this? ...

Flex 4: Help adressing an object.

Hi, I found this amazing code to make a dropdownlist with check boxes: Click here I implemented it and it works, except for one detail I cant for the life of me get the array of selected checkboxes back. I have implemented as follows: <local:MultiSelectionDropDown maxHeight="300" x="181" y="-7" width="233" requireSelection="false" it...

Can I make my Flex entry-point MXML subclass a custom AS3 class

With MXML components, I've seen a pattern used where you have an AS3 class, then the MXML subclasses it, to have a separation between view/code (anonymized from real code): package com.john { public class MyComponent extends Canvas { ... } } <?xml version="1.0" encoding="utf-8"?> <logic:MyComponent xmlns:logic="com.john.*" ...

Webpage Icon that appears in the browser tab in Flex 4

Hello I want to add a Icon that represents my webpage in the browser tabs and when is saved to favorites. How do I add this. Probably some propriety of the Aplication tag that I can´t find. And what it the correct size the icon must be ? (32*32 or something like that) Thanks in advance. ...

How to make a custom item renderer in flex 4 without extending the ItemRenderer class?

How to make a custom item renderer in flex 4 without extending the ItemRenderer class? I need this because I want to use a custom class that is extended in all my components. as this item renderer for me is like a component, i would like to extend that custom class. Thanks ;) Now im having something like this: imageList.itemRenderer =...

How to set Security.sandboxType through programming in Flex

Hi, I need to call JavaScript for that I need to set flash.system.Security.sandboxType as LOCAL_TRUSTED. Default value is LOCAL_WITH_NETWORK. I can change this setting by Global setting of Flash player. Question is how can I set it throguh coding so that my application work on every local system ? ...

determine system icon size with Flex, AIR or ActionScript3 ?

Each system - whether it is win, mac, or linux - displays (desktop) icons at a user selected size (e.g., 16x16, 32x32, 48x48, etc.) How can I find which size is being used by the local system from within Flex or ActionScript3? thanks, Mark ...

Can e.target use to a button

Rather than assign to every buttons with MouseEvent, I assign to AIR application with: private function init():void { this.addEventListener(MouseEvent.MOUSE_DOWN,mpressKey); } However, I only want the mouse_down to execute if it detect a "button" property instead of Demo0.WindowedApplicationSkin2.Group3.contentGroup.g4 (g4 is an id)...

Quick Flex and Java tutorial

Hi! I need to build an application that works with Java and Flex. I worked with both, but separately, never combined. Can somebody gives me some useful links that help me to get familiar with both? Thank advance! ...

How to reflect changes in the list.selectedItem in the itemRenderer?

When I change the: list.selectedItem.name = 'name2' then in my item renderer the dataChange event is not fired! and I can't update the label with the name property... any help? ...

EventDispatcher undefined in Flex 4 class

Hi all, My class in ActionScript works perfectly, it all it's job but my only concern is that I have a textfield binded to a getter property and although this initially works perfectly, whenever the property updates the value will not change on the textfield =( public function get XMLCollisions():String { var s:String = new String();...