[flexcoders] Re: Can't get value after labelfunction

2006-11-30 Thread Darin Kohles
instead of adding the calculation to the value object, which is scoped locally, try adding it to the data object: super.data.net_lbs = total; --- In flexcoders@yahoogroups.com, "bsdensmore" <[EMAIL PROTECTED]> wrote: > > yes, they do. > > I'm just doing a very small example to get my head aroun

[flexcoders] Re: Styling in Flex is officially ridiculous

2006-11-30 Thread Darin Kohles
goto mysite" 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]> wrote: > > While in general I've been fairly happy with my ability to styl

[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, retur

[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

[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 do

[flexcoders] Re: What happened to getTreeNodeAt??

2006-09-19 Thread Darin Kohles
I encountered the same problem and wrote my own version. public var categoryNodes:XML = new XML(); // xml data of the tree set elsewhere public var arrayFromNodes:ArrayCollection = new ArrayCollection(); public var nodeCount:Number = 0; /** * returns an xml node based on a tree index */ public

[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 do

[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: In this case the 'data' object is replicated for each row of your collection. You can then drill down in the usual fashion to retrieve embeded objects and their contained values. The same could

[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] 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 re-assign

[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 save

[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 error:

[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 wo

[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 w

[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: 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 displ

[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 c

[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 b

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

2006-02-27 Thread Darin Kohles
- In flexcoders@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:

[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 the

[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 (cons

[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] 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: http://groups.yahoo.com/group/flexcoders/files/flexcodersF

[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: http://groups.yahoo.com/group/flexcoders/files/flexcodersF

[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 (:xhttp://etc.";; } Good Luck --- In flexcoders@yahoogroups.com, [EMAIL PROTECTED] wrote: > > Do you make an array of Objects or do you make an array of > Yahoo! Groups Sp

[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." http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=

[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 limit

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

2005-12-15 Thread Darin Kohles
ecember 13, 2005 10:39 AM > To: flexcoders@yahoogroups.com > Subject: RE: [flexcoders] Re: Using Embed with dynamic values possible? > > > > Was taking a similar approach with repeater and Image tag...thanks for > the tip! > > Stace > > > > > &g

[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@yahoogroups.com

[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 setSty

[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,

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
ot;bhaq1972" <[EMAIL 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 Ko

[flexcoders] Re: flex 2 translation

2005-12-13 Thread Darin Kohles
rent (actually this.parentDocument if > you take my original question) > > > dispatchEvent({type:"myEvent", val1:"hello"}); > > dispatchEvent(new Event("myEvent)); > > but what about my 'val1' value ("hello"); > > > The docs

[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; someContainerObjectLikeCanvas.addChild(myIm

[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, myClickFunc

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

2005-12-13 Thread Darin Kohles
Not exactly what you 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 PROT

[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@yahoogroups.com

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

[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

[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 wa

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

2005-12-10 Thread Darin Kohles
Transed lots'a (of) code from many plats (platforms) ((and it sucks)). What you(I) assume in one, aint gonna work in t'other. But sometimes what does 'work' is better to work around than re-write ('smother times it be aint). 'nuff said. ( if'n,... - If you can understand the preceading, well mo p

[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 u

[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@yahoogroups.com

2005-12-09 Thread Darin Kohles
Dunno if this will help but try & 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: Applying "transition" effects to Flex state transitions (Flex 2 Alpha 1)

2005-12-08 Thread Darin Kohles
check Here: http://www.macromedia.com/cfusion/webforums/forum/messageview.cfm?catid=584&threadid=1090772&enterthread=y --- In flexcoders@yahoogroups.com, "Ralf Rottmann" <[EMAIL PROTECTED]> wrote: > > Has anybody managed to apply effects to state transitions so does a > currentState="xyz" causes

[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: http://www.macromedia.com/2005/mxml"; xmlns="*"> Here the dataObject represents the bound dataProvider, and .

[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 this

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

2005-12-05 Thread Darin Kohles
On dynamic mySilder.labels re-assignment, the .labels array always retains the first label (and appears to pre-append its value to the assigned array). Setting the labels array dynamically after the initial display appears to retain the low value. mySlider.labels=[0,100]; //displays OK ... more c

[flexcoders] Re: Custom Validator on CheckBox

2005-12-03 Thread Darin Kohles
In addition to what Matt has said: it depends on when you're firing your validator. in MXML do validation on user event: -or- If you're doing it programmatically in AS, you can add an event listener for mouse events for this target. myCheckBox.addEventListener(MouseEvent:MOUSE_UP,myValidation);

[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=72&catid=582&flcache=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=72&catid=582&flcache=2109871 --

[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 a

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

2005-11-29 Thread Darin Kohles
wrote: > > you might try using removeEventListener() onEffectStart and reassign it onEffectEnd > //Philippe > > > > From: flexcoders@yahoogroups.com on behalf of Darin Kohles > Sent: Tue 29/11/2005 5:34 > To: flexcoders@yahoogroups.com

[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 pro