flex

Flex horizontal tile list

Hello all I am using a horizontal tilelist in flex to display an image gallery with only one item in horiz. tilelist being shown at a time. I have next and previous buttons on both sides. The problem is I want to display a particular item/image in that list when user clicks on a thumb image from another thumbimages tilelist at bottom. ...

Does FlexBuilder 3 work with Eclipse 3.5.1?

I m trying to install Flex Builder 3 into Eclipse 3.5.1 as a plugin on Mac 10.6.2. During the installation phase, FB3 says it only support eclipse 3.3 & 3.4. But I started the installation anyway. After the installation was done, I can't find Flex perspective from Eclipse. So I google around and found out the possible way to manually ...

[Flex] How to get the viewport element index

I use flex4 list: <component:SmoothScrollingList x="200" y="180" dataProvider="{myProvider}" itemRenderer="myitemdrender.FriendPageItemRender" id="friendPageList" mouseDown="friendPageList_mouseDownHandler(event)"> <component:layout> <s:HorizontalLayout requestedColumnC...

Using validators in DataGrid - Flex

Hello, i have an editable DataGrid, something like: <mx:Datagrid editable="true" dataProvider="{arrayListPreferences}" id="preferencesGrid"> <mx:columns> <mx:DataGridColumn header="col1" dataField="preference" editable="false"/> <mx:DataGridColumn header="col2" dataField="value" editable="true"/> </mx:columns> </...

Converting button Icon back to Image

I want to extract/read the button icon image as a Flex image component, then apply transform filters to it to make it black/white and then apply image as an icon to another button. Any ideas how I could do that? So far I can get the icon out as an Object by doing this: var iconImg:Object = myBtn.getStyle("icon"); Not sure how to conve...

Validating XML parser for Flex/actionscript?

Is there a validating XML parser for flex/actionscript? The XML class verifies that it is well formed XML, but not that it follows the rules of the DTD. Java has a validating XML parser, but is there one for flex/actionscript? ...

Annoyances of Flex - Associative Array

I have an associative array and while iterating through this array, using foreach loop. Flex is loosing the order. This is so annoying. Why is this happening? How can i avoid this? ...

Air html window in debugger

Hi I have this code to open an html window from air : _win = HTMLLoader.createRootWindow(); _win.load(new URLRequest("d:/Content/testEnvironment/bin/index.html")); this however does not open a real html window but an air window ( i think ) my problem is that when running a swf in this window it does not pop up the error messages even...

flex: loading mxml component

Hello. I'm trying to load an mxml component into my main flex project. I saw that there are many related question regarding this issue but i'm too of a newbie to understand them. the page contains a vbox on left and right sides and another flash file in the middle. i want the vbox's that are placed on the left and right sides to be in s...

flex: loading local flash file

Hi. i'm pretty new to flex 3 but it's really cool so far. i have embedded 2 mxml components thank to you guys, now in the center of the screen when i try to load an swf file using the SWFLoader object i get the following error: Error #2044: Unhandled securityError:. text=Error #2140: Security sandbox violation: file:///C:/Users/ufk/...

How to set background color for a Flex actionscript 3 project

I am trying to set the background color of a Flex actionscript 3 project. I have tried all sorts of things, including this: <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" backgroundColor="#FF0000"> </mx:Application> this: SWF(backgroundColor='0x000000', frameRate=...

Mate Dispatcher tag...

I need to pass a variable in dispatcher tag... for instance var google:EventName = new EventName(EventName.ADD_User,user); dispatchEvent(google); Now when i go to Mate dispatcher tag... how can i pass the value user. <mate:Dispatcher id="myDispatcher" generator="{EventName}" type="{EventName.ADD_User}"> <mat...

Tree Component Drag And Drop Related

I am having a tree which has some root nodes and internally some child nodes. We can drag and drop between these nodes by enabling inbuilt properties like dragEnabled="true" dropEnabled="true" dragMoveEnabled="true". However, My requirement is that, while i drag and move a child node to upper side, It should not be dropped above the Root...

Flex Advanced data grid:column visibility

HI I am new to Flex and was wondering, when we use an advanced data grid, only when we click on the parent element the children details get populated in the corresponding columns, right?..SO now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly onc...

Flex AdvancedDatagrid : toggling visibility of columns when parent is expanded and closed

HI I am new to Flex and was wondering, when we use an AdvancedDataGrid, only when we click on the parent element the children details get populated in the corresponding columns, right? So now i have made the empty columns invisible(at design) now how do i make them visible at run time when the parent element is expanded..similarly once ...

Accurate BPM event listener in AS3

I'm trying to sync animation to music at a specific BPM. I've tried using the Timer but it isn't accurate when dealing with small intervals in milliseconds. I did some reading and found an alternate method that uses a small silent audio file and the SOUND_COMPLETE event as a Timer. I used 167ms long sound file with this code. package ...

Checking if Browser is using Cached SWC/SWF?

How do you know if the browser is actually using the cached swf RSL/library for Flex projects? I would like to be able to do different things from the preloader based on whether or not the user has never downloaded the library vs. they have it already cached by their browser. Is this possible? ...

Flex Whiteboard application - like Visio/MS Powerpoint

Hi all, I am creating an application that will allow users to model system information by allowing them to Drag and Drop objects from a Flex Tree into some sort of canvas/grid ie: like a whiteboard application eg: Visio/MS Powerpoint etc. The application requires the following functionality: Drag and drop items from a Tree to some sor...

is it possiable to use conditional operator in combo box dataprovider using flex?

In my Combo box i have to shows team names condition based . So i will try like dataProvider="{usersXML.users.user.(id=10).name}" but shows some errors . but if i tried dataProvider="{usersXML.users.user.name}" display all name . It's working . How can i condition based to display the list . In combobox . Plz refer me . is it possiab...

flex: swfloader - flash file overlaps it's configured size

hi, i'm using swfloader to load swf file in the middle of the screen using the following command: <mx:SWFLoader id="game_swf" source="crazy_counting.swf" x="198" y="0" width="721" maxWidth="721" height="531" maxHeight="531" /> now stage of the flash file takes the exact size that i stated by the flash file itself is overlapping the st...