[flexcoders] Re: background image with Flex?

2011-10-05 Thread BIOSMonkey
There is no direct way to do this, at least in the 3.x SDK (we are still standardized on flex 3). However for a workaround try this: http://alekkus.com/blog/2009/02/flex-tutorial-setting-tile-image-as-background/ I use a modified version of this component for banners to create a repeating

[flexcoders] Using the restrict property for a textfield - \u is not working?

2011-10-05 Thread BIOSMonkey
I am trying to set a numeric code range (versus entering string characters) for the restrict property of a text field. The documentation states that this can be achieved via the unicode escape sequence, such as \u0030-\u0039. But I cannot get this to work. Even trying single character such

[flexcoders] Troublesome problem with debugger - local variables not showing

2010-01-21 Thread biosmonkey
I ran into an extremely strange problem today with the debugger. Placing a breakpoint in a certain function was NOT showing my local scope variables in the list. At all. The only thing I have showing is this and, if the function has any inputs, _arg1, _arg2 etc. Some variables I can place

[flexcoders] Re: Unable to use a source path with a number in it?

2009-10-05 Thread biosmonkey
guess, try putting it in quotes.. ${MYPATH}\Components\ABC20Components - Original Message - From: biosmonkey biosmon...@... To: flexcoders@yahoogroups.com Sent: Monday, October 05, 2009 6:04 AM Subject: [flexcoders] Unable to use a source path with a number in it? I have

[flexcoders] Unable to use a source path with a number in it?

2009-10-04 Thread biosmonkey
I have discovered an unusual problem with Flex and the use of workspace linked resources (Window/Preferences/General/Workspace/Linked Resources). If you have a source path that is partially a linked resource (ie ${MYPATH} and another part is a number, then Flex cannot find the path. For

[flexcoders] Found the problem! Re: Don't understand how to use deferred instantiation

2009-09-15 Thread biosmonkey
OK, I believe I have found the cause of the problem. The problem happens when I add a viewstack that is part of a container being added to a state with mx:AddChild If I set up a sample app with a tab navigator and three canvases, each tracing preinit, init, and creationComplete then I get

[flexcoders] Don't understand how to use deferred instantiation

2009-09-14 Thread biosmonkey
I am having trouble understanding how to use deferred instantiation. I have a project with a viewstack, and the viewstack has a lot of canvas containers for different pages that are activated according to user selection on a menubar. Each page inside the canvas is actually one or two

[flexcoders] Re: Don't understand how to use deferred instantiation

2009-09-14 Thread biosmonkey
://www.cfwebtools.com 402-408-3733 x103 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On Behalf Of *biosmonkey *Sent:* Monday, September 14, 2009 1:49 PM *To:* flexcoders@yahoogroups.com *Subject:* [flexcoders] Don't understand how to use deferred instantiation

[flexcoders] MXML Component and binding with a setter

2009-05-05 Thread biosmonkey
I have a custom MXML component that has a setter function, dataInput, that takes an arraycollection and essentially performs a similar function as a dataProvider. The problem is that I can't get my setter to fire when the dataInput is bound to an external arraycollection. So, if I have

[flexcoders] Re: MXML Component and binding with a setter

2009-05-05 Thread biosmonkey
I don't know if I can post source, but let me see... Here is source for a sample app: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=vertical xmlns:ns1=* horizontalAlign=left mx:Script ![CDATA[ import mx.collections.ArrayCollection;

[flexcoders] Re: MXML Component and binding with a setter

2009-05-05 Thread biosmonkey
Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of biosmonkey Sent: Tuesday, May 05, 2009 2:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: MXML

[flexcoders] Using an itemRenderer in a grid and rendering glitches

2009-02-17 Thread biosmonkey
I have an adg that displays a tree of items, along with a custom item renderer that shows an icon representing status. For the most part this works well, however, in some rare circumstances when scrolling I have seen the item renderer glitch ... sometimes it appears to be double rendered,

[flexcoders] Re: Using dispatchEvent ?

2009-01-13 Thread biosmonkey
manish.jeth...@... wrote: On Mon, Jan 12, 2009 at 8:59 PM, biosmonkey biosmon...@... wrote: The dispatched event needs to be heard by any component, anywhere, by setting an event listener for it at the application level. So bubbling up to the app is critical. Since your component has

[flexcoders] Re: Using dispatchEvent ?

2009-01-12 Thread biosmonkey
events. -Josh On Mon, Jan 12, 2009 at 4:12 PM, biosmonkey biosmon...@... wrote: I thought I had understood the event model, but apparently not. I have a custom class that extends EventDispatcher, let's call it MyClass. This class will periodically dispatch a custom event based

[flexcoders] Re: Using dispatchEvent ?

2009-01-12 Thread biosmonkey
The dispatched event needs to be heard by any component, anywhere, by setting an event listener for it at the application level. So bubbling up to the app is critical. --- In flexcoders@yahoogroups.com, Manish Jethani manish.jeth...@... wrote: On Mon, Jan 12, 2009 at 11:42 AM, biosmonkey

[flexcoders] Re: Using dispatchEvent ?

2009-01-12 Thread biosmonkey
/12 biosmonkey biosmon...@...: The dispatched event needs to be heard by any component, anywhere, by setting an event listener for it at the application level. So bubbling up to the app is critical. --- In flexcoders@yahoogroups.com, Manish Jethani manish.jethani@ wrote: On Mon

[flexcoders] Using dispatchEvent ?

2009-01-11 Thread biosmonkey
I thought I had understood the event model, but apparently not. I have a custom class that extends EventDispatcher, let's call it MyClass. This class will periodically dispatch a custom event based on a timer and some condition. In my main app, I instantiate an instance of this class. I also

[flexcoders] Deselecting tree nodes based on some condition

2008-12-23 Thread biosmonkey
I am using the tree view in an advanced data grid. The nodes in the tree can be any kind of parent/child relationship, and each node is one of a few different types. So for example, let's say you have a tree consisting of nodes that are one of 5 different types A,B,C,D,and E. If the user first

[flexcoders] Re: Deselecting tree nodes based on some condition

2008-12-23 Thread biosmonkey
Thanks to those who have replied. I am indeed executing this code inside the itemclick handler, but I just didn't know how to manipulate the list. When it was mentioned that the grid is not going to be aware of any array functions performed directly on the selectedItems array, I altered the code

[flexcoders] Creating UTF8 strings from hex bytes encoded as text

2008-12-22 Thread biosmonkey
I have a need to take a string that is encoded as hex bytes and decode it into a utf8 string. For example: 30 30 30 would be 000 This works fine since chars 0x7f are standard ascii in utf8. The problem is taking this concept and trying to decode a utf8 string with bytes 0x7f. For example, the

[flexcoders] Re: Creating UTF8 strings from hex bytes encoded as text

2008-12-22 Thread biosmonkey
I'll reply to you and my own post, as the solution was indeed the ByteArray class. It was quite simple actually 1) create a bytearray 2) writebyte each value into the bytearray 3) output by using by the toString function Data was correctly decoded from the bytearray as a utf8 string, and

[flexcoders] Re: ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...

2008-11-25 Thread biosmonkey
My understanding of this function is that it is to cause an update in the rendering of the control attached to the data, which implies that the dataProvider has the correct data - the control is just not showing it. I have the reverse problem. In my case, the renderers (the combo boxes) are

[flexcoders] ComboBox as itemRenderer/editor in Datagrid is not updating dataProvider...

2008-11-24 Thread biosmonkey
I'm seeing a problem with a combobox in a datagrid that I simply have not been able to solve. The setup: Consider a datagrid where one of the columns has a combobox itemrenderer/editor in each row with choices A,B,C,or D. Outside of the datagrid is a Save button, along with another combobox

[flexcoders] Binding textinput width to datagrid column width?

2008-10-29 Thread biosmonkey
I must be doing something dumb, but I can't understand why this isn't working. I have a datagrid with say, 2 columns. Under the datagrid, I have two text input controls next to each other in an hbox. I want the text input controls to match the width of the datagrid columns directly above them.