[flexcoders] Re: How to control depth

2006-11-30 Thread Darin Kohles
You control depth by the order in which the display object appears in the display tree. To adjust to order, you need to remove and re-insert the child object using something like this: this.addChildAt(this.removeChildAt(1),0); The remove statement pops the item out of the display list,

[flexcoders] Re: Styling in Flex is officially ridiculous

2006-11-30 Thread Darin Kohles
mx:Label id=linkTxt htmlText=font color=#FFa href='http://mysite.com'goto mysite/a/font mouseOver=hover() / function hover():void{ linkTxt.htmlText = String(linkTxt.htmlText).replace('FF','00FF00'); } you get the idea --- In flexcoders@yahoogroups.com, Ethan Miller [EMAIL PROTECTED]

[flexcoders] Re: Passing Embedded object into Grid Component.

2006-09-19 Thread Darin Kohles
As a simple approach to this I'd create an inline renderer for this column as: mx:DataGridColumn headerText=Port Country mx:itemRenderer mx:Component mx:Label text={data.port.country} / /mx:Component /mx:itemRenderer /mx:DataGridColumn In this case the 'data' object is

[flexcoders] Re: Problems with TextInput

2006-09-19 Thread Darin Kohles
I've most often encountered this type of error when I am setting state based properties in mxml. It generally means that I've coded target=someThing instead of target={someThing}. The target wants an object with {} not a string with . I suggest you look at your code to see if you haven't done

[flexcoders] Re: Problems with TextInput

2006-09-19 Thread Darin Kohles
I've most often encountered this type of error when I am setting state based properties in mxml. It generally means that I've coded target=someThing instead of target={someThing}. The target wants an object with {} not a string with . I suggest you look at your code to see if you haven't done

[flexcoders] Re: syntax issue

2006-09-19 Thread Darin Kohles
When in doubt dump your data to make sure you are getting what you think you are (in a change event handler for instance): import mx.utils.ObjectUtil; trace(ObjectUtil.toString(masterList.selectedItem)); --- In flexcoders@yahoogroups.com, bghoward3 [EMAIL PROTECTED] wrote: i am trying to use

[flexcoders] Looking for simplest way to transform a MenuBar event: mouseOver=click

2006-08-24 Thread Darin Kohles
I'm trying to capture a mouseOver event and propogate it as if it were a click event to control menu opening without forcing the user to actually click. Perusing the MenuBar.as and Menu.as class files, I've seen candidate functions, but they are either set as private or I get a 1061 or 1195

[flexcoders] Re: Limiting decimal places

2006-08-24 Thread Darin Kohles
Use a Currency Formatter: // import the class import mx.formatters.CurrencyFormatter; // in code create and instance and set the format (also include $|,|. selection) var cashFormatter:CurrencyFormatter = new CurrencyFormatter(); cashFormatter.precision=2; // apply the format to the raw and

[flexcoders] Re: changing state of all itemrenderer instances?

2006-08-24 Thread Darin Kohles
Look into using the dataChange event in your renderer class. Basically this event fires whenever the dataProvider is changed on your list: this should include reapplying the same dataprovider that was previously assigned. I'd apply a change event function on your check box that basically

[flexcoders] Re: specifying a percentage width in script?

2006-08-24 Thread Darin Kohles
In ActionScript there is a property available that is not available in MXML, and it is. [drum roll] percentWidth !!! (and of course percentHeight) In some of the betas this was also available in MXML. --- In flexcoders@yahoogroups.com, Doug Arthur [EMAIL PROTECTED] wrote: How can I

[flexcoders] F2: Cascading states

2006-06-26 Thread Darin Kohles
I'm trying to cascade states (mxml format) in a top down fashion. At each level children are being added, and I need to wait for this to happen before trying to effect their states. What is the best event model to approach this? I'm thinking of using the creationComplete event on the child, that

[flexcoders] f2b3: Using states in itemRenderer

2006-06-13 Thread Darin Kohles
Trying to cascade states in mxml based item renderer. I've got a viewer that has states, and I'd like to be able to cascade a state transition through a HorizontalList component that uses an mxml based itemRenderer on its data provider. The renderer creates thumbnails that I want to change state

[flexcoders] f2b3: Remote Object madness

2006-06-01 Thread Darin Kohles
So I finally broke down and am trying to play with the CF/Flex connectivity, but I'm running into problems. Here's the story so far: - I have a local developer environment set up for CF (C/:ColdFusionMx7) with a mapping to a remote datasource. - I have IIS setup to run (C:Inetpub/wwwroot) with

[flexcoders] Re: Accessing and binding to (and from) Application level vars

2006-04-18 Thread Darin Kohles
I generally pass a reference to the parent or to the Application scope in my constructor, depending on what scope I'm interested in having access to within my custome component (in this cass class instances). The code generally looks like this: // where the instance is constructed could be a sub

[flexcoders] Re: Question about Flex Beta

2006-04-18 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: How easy is it to use Flex Beta to make an application where you have a password that is secure from being seen, you know to store information? Most text components have a Boolean called 'password' that you can set to hide display

[flexcoders] Re: Release date for Beta 3?

2006-04-14 Thread Darin Kohles
My best guess is mid-May, but there is a slight possiblity it could be in the next two weeks. My reasoning is as follows: 1.) Beta 2 expires June 1, and they've usually released several weeks before expiration 2.)The recently announced contest rules state that all entries (due date is May 1) must

[flexcoders] Re: SWF Object/Embed tags (Flex/Flex 2/Flash 7+)

2006-02-27 Thread Darin Kohles
@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote: I'd use the HTML template that we provide from FB as a guideline for what we recommend. Matt -Original Message- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles Sent: Friday, February 24, 2006 8

[flexcoders] SWF Object/Embed tags (Flex/Flex 2/Flash 7+)

2006-02-24 Thread Darin Kohles
I recently had a colleague recommend not using the Embed tag for loading SWF files into html. I personally use swifs generated from multiple applications and I've currently got FP 8.5 on my main browser apps (IE/Moz-FF). I'm wondering if there is a definitive statement from someone who develops

[flexcoders] How about for Flex 2? Re: Customizing default Flex preloader

2006-01-31 Thread Darin Kohles
Flex 2 docs on this a very thin. Has anyone tackled this? Is it similar enough to Flex 1.5, that I can use them as a starting point? Or has the model change drastically for AS3? Thanks for any feedback. -- Flexcoders Mailing List FAQ:

[flexcoders] Re: Reusable CellRenderer

2006-01-31 Thread Darin Kohles
here are some examples: http://livedocs.macromedia.com/flex/15/flex_docs_en/wwhelp/wwhimpl/js/html/wwhelp.htm?href=0325.htm --- In flexcoders@yahoogroups.com, Jason Doyle [EMAIL PROTECTED] wrote: I would like to create a reusable cellRenderer that I can use on multiple columns in a

[flexcoders] Re: listOwner equivalent Flex 2

2006-01-31 Thread Darin Kohles
If you write your renderer in AS instead of MXML, you can pass a reference to the parent when you call the constructor for the class e.g. in calling class (Application) myRenderer:myRendererClass = new myRendererClass(this); someObject.cellRenderer = myRenderer.doRender; in custom Renderer

[flexcoders] Re: How do you make an array of images

2005-12-19 Thread Darin Kohles
It's easier to do the object route: var myImages:Object; myImages = new Array(length); for (:xmyImages.length:){ myImages[x].image = new Image(); myImages[x].image.source = http://etc.;; } Good Luck --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: Do you make an array of Objects

[flexcoders] (Flex 2) Knock Knock: Who's there?

2005-12-17 Thread Darin Kohles
If this is the future, lets hear about it. Fritz: Because it doesn't really work (at least for me), to use the existing swf in Flex (I read from some issues with AS2 / AS3...) I try to port the entire app.

[flexcoders] Re: Flex2 and Amfphp is it possible ?

2005-12-16 Thread Darin Kohles
Let's sum up shall we? If anyone's keeping track, and are willing to call this one discussed, please do so. The yahoo format is not the best, but I've been trying to follow some threads without overburdening my intake. I think there are a few things getting lost in the shuffle when time is

[flexcoders] Re: Accordion icons

2005-12-15 Thread Darin Kohles
I've just been dealing with this in Flash 8 (AS 2). myAcc.setStyle('headerHeight',20); I also had problems with header text - do a: var headerObj:Object = myAcc.getChildAt(x); for (var i:Object in headerObj){ trace(i + myAcc[i]) } Look at the defined values (and undefined) and use

[flexcoders] Re: Selection.setSelection Issue

2005-12-15 Thread Darin Kohles
Try passing the explicit values to your function: setFBack(mytext.Selection.getBeginIndex(), mytext,Selection.getEndIndex()) function setFBack(begin:Number, end:Number){ } OR (Flex 2??): public var begin:Number; etc.. Maybe one of these will help. Good Luck --- In

[flexcoders] Re: (new issue) Using Embed with dynamic values possible?

2005-12-15 Thread Darin Kohles
a similar approach with repeater and Image tag...thanks for the tip! Stace From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Darin Kohles Sent: Tuesday, December 13, 2005 10:32 AM To: flexcoders@yahoogroups.com Subject

[flexcoders] Re: Datagrid CellRenderer doesn't fill entire cell

2005-12-14 Thread Darin Kohles
You might try playing with some style properties like: setStyle(borderThinkness,0) setStyle(focusThinkness,0) setStyle(marginLeft,0) setStyle(marginRight,0) Maybe one of these will do the trick. Good Luck --- In flexcoders@yahoogroups.com, stepanhil [EMAIL PROTECTED] wrote: Hi, I'm

[flexcoders] Re: (Flex 2.0) interacting with SWF files

2005-12-13 Thread Darin Kohles
are looking for, but perhaps it may help you anyway... http://www.helpqlodhelp.com/blog/archives/000141.html http://www.livejournal.com/users/mannu/305284.html cheers -michael On 12/13/05, Darin Kohles [EMAIL PROTECTED] wrote: I was wondering if anyone can point me to some good

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
A couple fo issues here: function startUp():Void { /* event listener needs target (this) event to listen for (MouseTypeEvent.CLICK) and what to do about it (myClickFunction - stay away from using key words like 'click' for custom functions */ this.addEventListener(MouseEventType.CLICK,

[flexcoders] Re: Using Embed with dynamic values possible?

2005-12-13 Thread Darin Kohles
Stacy, yes and no. Just create a new image dynamically when your XML data is returned (no need to use Embed in this case): private function resultHandler(event:ResultEvent):Void { myImage: new Image(); myImage.source=event.result._xml_path_to_image_url;

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
)); but what about my 'val1' value (hello); The docs don't give enough info regards bod --- In flexcoders@yahoogroups.com, Darin Kohles [EMAIL PROTECTED] wrote: A couple fo issues here: function startUp():Void { /* event listener needs target (this) event to listen

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
PROTECTED] wrote: Thanks for the link. Need to do some reading. Is there an alternative to your suggestion regarding someFunction and val1. regards bod --- In flexcoders@yahoogroups.com, Darin Kohles [EMAIL PROTECTED] wrote: I little bit more to clarify: You should have

[flexcoders] (Flex 2.0) interacting with SWF files

2005-12-12 Thread Darin Kohles
I was wondering if anyone can point me to some good documentation for interacting with Flash generated SWF files in Flex 2.0. At present I'm trying to re-skin some components with dynamic content (small event triggerd animations) but so far to no avail. Any help would be appreciated. Thanks

[flexcoders] Re: getURL and 's

2005-12-11 Thread Darin Kohles
and the solution was ? --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: nevermind, I got it On 12/9/05, Greg Morphis [EMAIL PROTECTED] wrote: getURL() doesnt like I keep getting The reference to entity date must end with the ';' delimiter. So how do you get

[flexcoders] Re: passing Map in remote object

2005-12-10 Thread Darin Kohles
Encounter this often in DOM JS coding. I would just add to Matt's code: for (var key:String in obj){ trace(var: +var+ | Obj[var]: +String(obj[var])); Alert.show(var: +var+ | Obj[var]: +String(obj[var])); } Do somthing like that and you'll be able to know which object/property you want to

[flexcoders] Re: Pure AS3 button application (Flex 2)

2005-12-10 Thread Darin Kohles
Try /* */ and // on the auto-generated code. When you hit something that is required you'll know it. Unfortunatly, I end up doing this when I add too much at once, thinking that everything is supported. Good Luck --- In flexcoders@yahoogroups.com, zlayabuka [EMAIL PROTECTED] wrote: I wonder

[flexcoders] Re: Comparing complex objects

2005-12-09 Thread Darin Kohles
If you're familiar with the concept of a deep copy, then you can apply the same to a compare function (of course you'll have to write it yourself ;). Anytime you are dealing with a complex and/or custom type it's a good idea to plan on comparison and choose what is, in fact, 'equal'. This can be

[flexcoders] Re: getURL and 's

2005-12-09 Thread Darin Kohles
Dunno if this will help but try amp; Otherwise use encodeURI() on your URL string and you'll be much happier. (I think) Good Luck --- In flexcoders@yahoogroups.com, Greg Morphis [EMAIL PROTECTED] wrote: getURL() doesnt like I keep getting The reference to entity date must end with the ';'

[flexcoders] Re: Comparing complex objects

2005-12-09 Thread Darin Kohles
If you're familiar with the concept of a deep copy, then you can apply the same to a compare function (of course you'll have to write it yourself ;). Anytime you are dealing with a complex and/or custom type it's a good idea to plan on comparison and choose what is, in fact, 'equal'. This can be

[flexcoders] Re: Why does this effect not work?

2005-12-09 Thread Darin Kohles
Ralf, Wie Gehts? (no I really don't remeber my german 5 years ~ 20 years ago) Be careful of your use of 'this' as the target of your effect (Jesse stop by DP some time, ask for Ben, and maybe we can meet - Flash issues). I've had similar code that I've changed the effect type one several times

[flexcoders] Re: How to put Button or Linkbar in DataGrid

2005-12-07 Thread Darin Kohles
In the dataGridColumn set cellRenerer=myRenderer, then create a new component based on a container like VBox and name it myRenderer.mxml. Inside this new file add code like: ?xml version=1.0 encoding=utf-8? mx:VBox xmlns:mx=http://www.macromedia.com/2005/mxml; xmlns=* mx:Link label=Buy

[flexcoders] Re: (Flex 2.0) Slider.labels bug?

2005-12-06 Thread Darin Kohles
Thanks for the responses Matt and Sreenivas. For those interested my, work-around for this was to simply remove the exiting slider, and add a replacement at the same place in the child stack (within an VBox). myBox.removeChildAt() and myBox.addChildAt(). One other thing tho - I tried setting

[flexcoders] Re: datagrid column sorting

2005-11-30 Thread Darin Kohles
Not entirely sure about why it in the middle of your order. But I've handled this in Flash by doing the following: For display, set up a custom cellRenderer (listItemRenderer) that checks for undefined values and gives them a default display value: e.g. NA (Not Available) etc. For sort, provide

[flexcoders] Re: Flex 2.0 : How to validate form fields ?

2005-11-30 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, Michel Bertrand [EMAIL PROTECTED] wrote: Hi ! I've tried to find an approuch to validate fields of a data form. chech this: http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871

[flexcoders] Re: Flex 2.0 : How to validate form fields ?

2005-11-30 Thread Darin Kohles
--- In flexcoders@yahoogroups.com, Michel Bertrand [EMAIL PROTECTED] wrote: Hi ! I've tried to find an approuch to validate fields of a data form. chech this: http://www.macromedia.com/cfusion/webforums/forum/categories.cfm?forumid=72catid=582flcache=2109871

[flexcoders] Re: Effect Event mayham (Flex 2.0)

2005-11-28 Thread Darin Kohles
Thought this might have gotten buried by the holidays, anyone have any thoughts? Thanks, --- In flexcoders@yahoogroups.com, ur_dtrain [EMAIL PROTECTED] wrote: I've encountered the following issues with Event triggers during an Effect playback: I've set up several Resize Effects