[flexcoders] No, Flex & Flash Are Not Dead

2011-11-16 Thread turbo_vb
http://www.tricedesigns.com/2011/11/16/no-flex-flash-are-not-dead/

[flexcoders] Re: Binding behaviour

2011-11-05 Thread turbo_vb
af() returns new duplicated object. > > Hope this works for you. I did't test it, however your reply will tell > about that. :) > > Thanks > > On Thu, Nov 3, 2011 at 9:26 PM, turbo_vb wrote: > > > ** > > > > > > If nodeName is a class,

[flexcoders] Re: ModuleLoader.child is null

2011-11-03 Thread turbo_vb
Perhaps you're getting an error on load; probably due to the path. Try adding an event listener for ModuleEvent.ERROR. Also, this line is missing an equal sign: var test:ITest ITest(this._moduleLoader.child); Should be: var test:ITest = ITest(this._moduleLoader.child); -TH --- In flexcoders

[flexcoders] Re: Binding behaviour

2011-11-03 Thread turbo_vb
If nodeName is a class, you'll need to create a clone method in that class as well, and do this: obj.nodeName = nodeName.clone(); If it's just a string, you can try: obj.nodeName = nodeName.toString(); -TH --- In flexcoders@yahoogroups.com, geckko wrote: > > Hi all, > > I'm trying to duplic

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-26 Thread turbo_vb
Cool! -TH --- In flexcoders@yahoogroups.com, "sdl1326" wrote: > > That worked! I put it in prepare() and was able to get a reference to the > datagrid. > > Thanks to all for the assistance. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wro

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-26 Thread turbo_vb
Try sticking that in override prepare() or set data(), and make sure that data isn't null, and I bet you that it'll work. -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > hmm, don't know what to tell you. The following works fine: > > var myDa

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-26 Thread turbo_vb
.e. - Datagrid(owner).dataprovider > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > That error looks like you were trying to cast "parent" instead of "owner". > > > > -TH > > > > --- In flexcoders@yahoog

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-26 Thread turbo_vb
or: Error #1034: Type Coercion failed: cannot convert > spark.components.gridClasses::GridLayer@260fac29 to > spark.components.DataGrid > > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Cast the "owner" property to DataGrid. > > >

[flexcoders] Re: Datagrid's Itemrenderer - Access to Datagrid

2011-10-26 Thread turbo_vb
Cast the "owner" property to DataGrid. -TH --- In flexcoders@yahoogroups.com, "sdl1326" wrote: > > I have a custom itemrenderer in a GridColumn of a Spark Datagrid. I need > to get access to the Datagrid from the custom itemrenderer. What's the > best way to do this? > > Thanks, in advance. >

[flexcoders] Re: Flex 4.1 VBOX background renderer fails

2011-10-24 Thread turbo_vb
In practice, itemRenderers actually tend to be the best candidate for skins. -TH --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > You cannot set the backgroundColor of the renderer. Backgrounds are removed > in order to allow alternating background colors to show through. But you > s

[flexcoders] Re: right align the gridcolumn text

2011-10-24 Thread turbo_vb
ClassFactory doesn't support setting styles; they're different than properties. You can get around this by either: 1) use a custom item renderer that has a styleName or css selector. 2) extend ClassFactory to support setting styles on the item renderer instances. See com.blogagic.core.UICompo

[flexcoders] Re: toggling checkbox's enabled field in datagrid

2011-09-21 Thread turbo_vb
Have you tried this: -TH --- In flexcoders@yahoogroups.com, "carriecharp" wrote: > > I've inherited some code to update and I could use some help. > > I have an Advanced Data Grid where one column uses a custom checkbox > component. It's very simple with the checkbox's selected field contro

[flexcoders] Re: Best practices for dynamically styling components in FlashBuilder 4.5

2011-09-13 Thread turbo_vb
styleManager.getStyleDeclaration(style_name).setStyle("property", value); -TH --- In flexcoders@yahoogroups.com, "c0mpl3xxx" wrote: > > Hi all, > I'm trying to create a set of components for a video player app that require > the ability to be styled via user supplied color options. Basically I

[flexcoders] Re: Can't see scrollbars on an MX list in a Spark TitleWindow

2011-09-09 Thread turbo_vb
Have you tried setting an explicit height for the List? -TH --- In flexcoders@yahoogroups.com, Nick Middleweek wrote: > > Mmmm, I must be doing something silly, I've also tried this using MX only > components, so MX:TitleWindow with an MX:List. > > Here's my code: http://pastebin.com/ZkzPQBgJ >

[flexcoders] Re: Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-06 Thread turbo_vb
rers instead of mxml; especially for ADG. -TH --- In flexcoders@yahoogroups.com, Nick Middleweek wrote: > > Thanks for the tip... > > If I bumped up to GroupBase, does that mean I can use Spark skinning as well > or is this not related? > > > > > > > On 6 Septembe

[flexcoders] Re: Flex 4: MouseOver not firing on a UIComponent Item Renderer

2011-09-06 Thread turbo_vb
You might try bumping up from UIComponent to GroupBase and set mouseEnabledWhereTransparent = true; -TH --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Something has to draw onto every pixel, otherwise the mouse hit passes > through to underneath. You can set the alpha to 0 and it wi

[flexcoders] Re: Why don't horizontalCenter and verticalCenter work with Spark ColumnConstraints?

2011-08-31 Thread turbo_vb
t; containers or what. They responded, "Yes, basically, they are not > implemented in ConstraintLayout. ConstraintLayout handles all of the > ConstraintColumns/ConstraintRows layout logic." So that leaves me stuck > until the next release unless I can find a workaround. > > >

[flexcoders] Re: Why don't horizontalCenter and verticalCenter work with Spark ColumnConstraints?

2011-08-29 Thread turbo_vb
Constraints are designed to be used to constrain other components for things like alignment and size. For your app, just add a group around each of your containers and you're fine. -TH http://ns.adobe.com/mxml/2009"; xmlns:s="library://ns.adobe.com/flex/spark" xmlns:mx="librar

[flexcoders] Re: Best Practice for Subclassed UIComponent and DataProvider

2011-08-28 Thread turbo_vb
ally dispatch the collection's binding event (same as the one in the setter). If this doesn't work, look further upstream; in the service, delegate or controller. You'll find the short. -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > You have th

[flexcoders] Re: How to call container's method into component file

2011-08-28 Thread turbo_vb
That's bad advice Rishi; that leads to tight coupling and "parent abuse". It's ok to have a parent call a method on a child ( data binding is preferred though). But, children shouldn't call methods directly on their parents. Instead, have the child component dispatch an event to initiate the

[flexcoders] Re: Best Practice for Subclassed UIComponent and DataProvider

2011-08-28 Thread turbo_vb
pe of class hierachy, please point me to it and I'll > have a look. As the subject states, I'm very much looking for the best > practice here. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Validation can be abstracted just like dataProvide

[flexcoders] Re: Best Practice for Subclassed UIComponent and DataProvider

2011-08-26 Thread turbo_vb
and no others, it made sense to subclass them and > encapsulate dataProvider assignment, so those ComboBoxes could be used in any > views that apply to that family of services. > > ...if that makes sense. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > >

[flexcoders] Re: Best Practice for Subclassed UIComponent and DataProvider

2011-08-26 Thread turbo_vb
Can't see any good reason to subclass a control in order to hardcode the dataProvider. The idea is to keep the components loosely coupled. Are you having a problem with dataProvider="{model.facilities}"? -TH --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > Binding a visual component

[flexcoders] Re: how to make a class can be iterated by for each/in

2011-08-11 Thread turbo_vb
If you're using Flex 4.5, something like this works: var myClassObject:Object = new MyClass(); var classInfo:XML = describeType( myClassObject ); var propertyType:String; var propertyName:String; for each ( var property:XML in classInfo..accessor ) { propertyName = property.@name;

[flexcoders] Re: Method for a Datagrid Button Itemrenderer

2010-08-17 Thread turbo_vb
wrote: > > > > Would it be possible to simply add it to the MXML file where I am declaring > the > datagrid, instead of subclassing it? > > Thanks. > > > ____ > From: turbo_vb > To: flexcoders@yahoogroups.com > Sent: Tue, 17 August,

[flexcoders] Re: Method for a Datagrid Button Itemrenderer

2010-08-17 Thread turbo_vb
Hi Angelo, You're close. You'll need to declare the event in the DataGrid. A simple subclass should do the trick. This way you can add the event listener in mxml too: package myPackage { import mx.controls.DataGrid; [Event( name="myTest", type="flash.events.Event" )] public class MyDa

[flexcoders] Re: Flex 4 data management - how do I approach this?

2010-08-13 Thread turbo_vb
Hi Henrik, So you're getting back a collection of products from the service and binding them to the DataGrid. Let's assume that the product objects are Product Value Objects. You have every thing that you need for an order except for the quantity of the product(s) to order. Keep it simple, add a

[flexcoders] Re: Could not resolve * to a component implementation.

2010-07-27 Thread turbo_vb
> > So, its a class, even thought it doesn't declare a class inside the text? > > -- > Brian J. Ackermann > brian.ackerm...@... > 952.373.1626 > ------ > > > > > > On Thu, Jul 1, 2010 at 10:21 PM

[flexcoders] Re: Button with tooltip but no overskin

2010-07-22 Thread turbo_vb
Probably no more elegant, but an alternative: package { import mx.controls.Button; import mx.core.mx_internal; use namespace mx_internal; public class DeadButton extends Button { public function DeadButton() { super(); mx_internal::overSkinName = "upSkin"; } } } -TH --

[flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread turbo_vb
r it in the PM. > > On Fri, Jul 2, 2010 at 3:36 PM, turbo_vb wrote: > > > > > > > I agree, but it can; since the map knows about the PM anyway. This is where > > Swiz has an advantage with the Mediate metadata. In that case the PM method > > can just l

[flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread turbo_vb
ng it into the view). > I'm leaning towards a). That way it's centralized and manager properties can > potentially be injected into multiple presentation models. > > > > > On Fri, Jul 2, 2010 at 1:56 PM, turbo_vb wrote: > > > > > > > I usua

[flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread turbo_vb
t; > > On Fri, Jul 2, 2010 at 1:56 PM, turbo_vb wrote: > > > > > > > I usually use (b). For the error, you can call a public method in the PM > > from the faultHandler in the map; as one alternative. > > > > > > --- In flexcoders@yahoogroups.com ,

[flexcoders] Re: Mate: listener injector vs manager/PM binding

2010-07-02 Thread turbo_vb
I usually use (b). For the error, you can call a public method in the PM from the faultHandler in the map; as one alternative. --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Design question for any other Mate users out there. Will cross-post to Mate > forum. > > I use Mate with

[flexcoders] Re: Could not resolve * to a component implementation.

2010-07-01 Thread turbo_vb
> One other thing to check. Make sure you are not using a reserved name for > > your component. > > > > > > --- In flexcoders@yahoogroups.com , > > "turbo_vb" wrote: > > > > > > A couple things that you can check that might help: > > > &

[flexcoders] Re: Could not resolve * to a component implementation.

2010-06-30 Thread turbo_vb
A couple things that you can check that might help: • Make sure that you have an import statement for the component in the parent class. • If your component is an AS class, make sure that the package, at the top of the class, is correct. • If your compon

[flexcoders] Re: Pass two arraycollections to one component

2010-06-29 Thread turbo_vb
Have you tried just one instance of the component? -TH --- In flexcoders@yahoogroups.com, "Liam" wrote: > > I need to pass two separate arraycollections to one component. I'm sure this > is possible but I can't find anything online as to how to do this. > > I thought I could do this but it o

[flexcoders] Re: Yes/No RadioButton

2010-06-11 Thread turbo_vb
Well. it's pretty clear that the answer can only be yes or no in this case, so use a RadioButtonGroup for the two RadioButtons. -TH --- In flexcoders@yahoogroups.com, "jossminker" wrote: > > Can you clarify? Do you mean you ahve two radio buttons one for no and one > for yes? > In which case t

[flexcoders] Re: dispatchEvent import

2010-06-08 Thread turbo_vb
xtensively and didn't note which component he > was trying to use. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Hey Steve, > > > > The component that Marco is referring to is not a UIComponent, so it > > doesn't hav

[flexcoders] Re: dispatchEvent import

2010-06-04 Thread turbo_vb
The example does compile and the binding works; even when you remove the injected dispatcher. Kind of stumped on why this works in a class that doesn't extend EventDispatcher. -TH --- In flexcoders@yahoogroups.com, Oleg Sivokon wrote: > > If it ever worked that may be because of the patched c

[flexcoders] Re: dispatchEvent import

2010-06-04 Thread turbo_vb
Hey Steve, The component that Marco is referring to is not a UIComponent, so it doesn't have a dispatchEvent() method. He'll have to change thel class to extend EventDispatcher. -TH --- In flexcoders@yahoogroups.com, "valdhor" wrote: > > The component itself has a dispatchEvent method. The t

[flexcoders] Re: dispatchEvent import

2010-06-04 Thread turbo_vb
Hi Marco, That does look like a problem. The dispatchEvent() method is available for any UIComponent subclass or any class that extends EventDispatcher. So, if you're going to use [Bindable] properties in the presentation model, you would want to have the PM extend EventDispatcher: import flash.

[flexcoders] Re: Setting UI components in a composite component to private?

2010-05-27 Thread turbo_vb
Hi Nick, The best option is to create your composite components in Action Script. This gives you direct control over the scope of the children, and they can be referenced within the component by the name of the var. For MXML composite components, if you don't give the children id's, they won'

[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
cking > with the content area of the navigator, but not on the button bar. > And it wouldn't cover keyboard navigation. > > On Fri, May 21, 2010 at 1:06 PM, turbo_vb wrote: > > > > > > > You try itemClick? > > > > -TH > > > > > >

[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
Strike that first response; no itemClick event there. But, the protected var tabBar does dispatch itemClick, so... -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Is there an event dispatched by TabNavigator when the *user* switches tabs? > > "change" is dispatched when the

[flexcoders] Re: TabNavigator

2010-05-21 Thread turbo_vb
You try itemClick? -TH --- In flexcoders@yahoogroups.com, Richard Rodseth wrote: > > Is there an event dispatched by TabNavigator when the *user* switches tabs? > > "change" is dispatched when the selected change happens > programmatically (eg. because selectedChild is bound). >

[flexcoders] QTP Automation and Custom Flex CheckBox itemRenderer

2010-05-14 Thread turbo_vb
Using QTP 10 and SDK 3.5 and having a tough time figuring out how to record and play back the "click" event of a extended CheckBox itemRenderer in an extended DataGrid component. I've tried different combinations of custom automation delegates and class definitions file properties, for the item

[flexcoders] Re: Deleting row datagrid | Itemrenderer shows incorrect data

2010-05-14 Thread turbo_vb
renderer. Secondly, i do hot have property in the dataprovider which is attached to checkbox. So how can i stop itemrenderer to be recycled. > > Thanks > ilikeflex > > --- In flexcoders@yahoogroups.com, "turbo_vb" TimHoff@ wrote: > > > > Your CheckBox ite

[flexcoders] Re: Deleting row datagrid | Itemrenderer shows incorrect data

2010-05-13 Thread turbo_vb
Your CheckBox itemRenderer is getting recycled after the delete. Use a custom itemRenderer for the CheckBox. http://blogs.adobe.com/aharui/item_renderers/ -TH --- In flexcoders@yahoogroups.com, "ilikeflex" wrote: > > Hi > > I want to remove the row

[flexcoders] Re: Thoughts on Flash by Steve Jobs

2010-04-29 Thread turbo_vb
I thought that this response showed the kind of class that we've come to expect from Adobe. http://blogs.adobe.com/conversations/2010/04/moving_forward.html -TH --- In flexcoders@yahoogroups.com, Oleg Sivokon wrote: > > I've got t

[flexcoders] Re: How to get rid space between lines?

2010-04-29 Thread turbo_vb
Uh, verticalGap="-4". -TH --- In flexcoders@yahoogroups.com, "markflex2007" wrote: > > Hi, > > I use Flex builder 3. I have following simple code > > > > > > > > > but there are space between lines. > > I want to make the line close,

[flexcoders] Re: How to find the Value of a Property in the Last Object of An Array Collectio

2010-04-23 Thread turbo_vb
If you keep the id's in sync with the index values of the ArrayCollection you can just use: linksFullAC.addItem({linkid:linksFullAC.length, label:userenteredlabel.text}); -TH --- In flexcoders@yahoogroups.com, "James" wrote: > > I want to allow my users to add their own values to my array coll

[flexcoders] Re: Useless error from Adobe. Any hints?

2010-04-19 Thread turbo_vb
You can use reflexUtil to do what Alex describes: http://code.google.com/p/reflexutil/ -TH --- In flexcoders@yahoogroups.com, Alex Harui wrote: > > If AppHolder is height = 0, then the rect might draw from y=0 to y=-2 or > something like that. I use FDB for my debugging so I can always exami

[flexcoders] Flex 4 State Names and Binding

2010-04-14 Thread turbo_vb
Hi All, Unlike Flex 3, it seems that Flex 4 doesn't allow state names to be bound to constants anymore. An example that no longer works would be something like this: While I appreciate the improvements that have been made to Flex 4 states, this can be a problem for MVC oriented navigation f

[flexcoders] Re: Positioning / Scrolling problem with Flex popup

2010-04-09 Thread turbo_vb
You'll want to create a method that does something like this: var target:Point = localToGlobal( new Point( hbox.x, hbox.y ) ); popup.move( target.x, target.y ); Call the method after you add the popup and when the container is scrolled. In some cases localToContent is more appropriate. -TH --

[flexcoders] Re: A Viewstack but not with Canvases

2010-04-09 Thread turbo_vb
Hi Leonardo, ViewStack requires its children to be a Container, or subclass of Container. Box, HBox and VBox all extend Container and should work just fine. Besides, you're talking about adding a sibling to your current app. So, you could wrap the code for your current app into any Container

[flexcoders] Re: Handling dataProvider of ComboBox on another navigatorContent

2010-04-05 Thread turbo_vb
An easier approach than using these events, is to bind the ComboBox selectedIndex property to a variable like: [Bindable] public var myComboBoxSelectedIndex : int; that lives in the same class as the data array. When you get or initialize the array, set the variable to the desired value, and t

[flexcoders] Re: TextInput textAlign

2010-03-23 Thread turbo_vb
Just use paddingTop. -TH --- In flexcoders@yahoogroups.com, "chandruflex" wrote: > > I am using Flex 3. Is it possible to align the text in the TextInput control > to be vertically centered? >

[flexcoders] Re: Scale 9

2010-03-20 Thread turbo_vb
Scale 9 has nothing to do with the position of the image. You would use the normal properties for that ( top, bottom, left, right ). What scale 9 defines is the portion of the image to stretch when the dimensions of the image are changed to be bigger than the original image size. So, if you l

[flexcoders] Re: multicolor in single line chart

2010-03-18 Thread turbo_vb
This might give you some ideas: http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSampl\ e.html -TH --- In flexcoders@yahoogroups.com, Krunal Panchal wrote: > > Hi All, > > Is it possible to have mu

[flexcoders] Re: ViewStack and CreationComplete...

2010-03-12 Thread turbo_vb
Hey Laurence, When ViewStack children are instantiated the creationComplete event is dispatched, but not the show event. So, if you navigate to the second ViewStack child, the first time, you'll only get creationComplete. After that, when you navigate to the second child the show event will b

[flexcoders] Re: Partial LineSeries - is it possible?

2010-02-23 Thread turbo_vb
Hi Jeff, Probably going to have to add mock data for the remaining months in the decade and then use a lineSegmentRenderer and itemRenderer to hide the lines/points that are in the future. -TH --- In flexcoders@yahoogroups.com, "Battershall, Jeff" wrote: > > I have a line chart with a DateTi

[flexcoders] Re: Twitter Feed Within An Air/Flex Application

2010-02-13 Thread turbo_vb
gt; > Cheers for your help though. These are good ideas. > > --- In flexcoders@yahoogroups.com, "turbo_vb" TimHoff@ wrote: > > > > Hi James, > > > > If your application automatically displays new tweets, those created after the initial load, than yes; that would

[flexcoders] Re: Twitter Feed Within An Air/Flex Application

2010-02-13 Thread turbo_vb
Hi James, If your application automatically displays new tweets, those created after the initial load, than yes; that would be considered "live". If however its just taking a snapshot, then no. A starting point would be to "refresh" the tweets. Having the ability to post tweets, and see them

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread turbo_vb
If you don't have too many items in the dataProvider, you could create a second DataGrid, with the same DataProvider and itemRenderers, that does not have a height set and is not visible. The second DataGrid would render all of the items in the dataProvider, because the height isn't set. Then

[flexcoders] Re: Custom GridLines

2010-02-05 Thread turbo_vb
Or to put the lines in back, use backgroundElements. -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > Your best bet is to NOT show any default horizontal lines and then use > annotationElements to draw your 2 custom lines. > > -TH > > --

[flexcoders] Re: Custom GridLines

2010-02-05 Thread turbo_vb
Your best bet is to NOT show any default horizontal lines and then use annotationElements to draw your 2 custom lines. -TH --- In flexcoders@yahoogroups.com, "lauraff_mu" wrote: > > Hello! > > I'm trying to make a chart (in Flex 3). I only want to show two horizontal > gird lines instead of

[flexcoders] Re: horizontalAlign Puzzling

2010-01-21 Thread turbo_vb
I think because horizontalAlign is a style, not a property. Try setStyle(); -TH --- In flexcoders@yahoogroups.com, "criptopus" wrote: > > var boxArray:Array=new Array(); > var boxIdx:int=boxArray.length; > boxArray.push(new Box()); > boxArray[boxIdx].percentWidth=100; > > Why not...? > > boxA

[flexcoders] Re: Resize and Save an Image

2010-01-21 Thread turbo_vb
If the image is in a container, you could capture a bitmap of the container component and save that: import flash.display.Bitmap; import flash.display.BitmapData; import mx.core.UIComponent; import mx.graphics.ImageSnapshot; private function getSnapshotImage( com

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-19 Thread turbo_vb
My pleasure Monette. -TH --- In flexcoders@yahoogroups.com, "Monette" wrote: > > Tim, > It works!!! Hooray!!! You Rock!!! > Thank you so much for all your help. > Monette > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Th

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-18 Thread turbo_vb
= series ) { break; } } -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > Cleaner: > > private function dtFunction( o:HitData ):String > { > var series:LineSeries = LineSeries( o.element ) as LineSeries; > var seriesInde

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-18 Thread turbo_vb
t;; s += "Books: " + LineSeriesItem( o.chartItem ).yValue + "\n"; s += "Book rate: " + o.item.session[ seriesIndex ].bookrate + "\n"; s += "Status: " + o.item.session[ seriesIndex ].status + "\n"; return s; } -TH ---

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-18 Thread turbo_vb
layName + "\n"; s += "Books: " + LineSeriesItem( o.chartItem ).yValue + "\n"; s += "Book rate: " + o.item.session[ seriesIndex ].bookrate + "\n"; s += "Status: " + o.item.session[ seriesIndex ].status + "\n&quo

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-18 Thread turbo_vb
but I am just having problems accomplishing what I need in AS. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > Ok, good. Not sure exactly what you're trying to do, but it's basically > > the same type of thing as the data functi

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-18 Thread turbo_vb
quot; + LineSeries(o.element).displayName + " > \n"; > s += "Books: " + > LineSeriesItem(o.chartItem).yValue + "\n" + "Book rate: " + > o.item.session[index].bookrate + "\n" ; > s += "Status:

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread turbo_vb
6 > red > > > > > Baseline > 0 > 3 > red > > > 2009-8 > 0 > 1 > red >

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-15 Thread turbo_vb
+ o.item.session.books[a] + "\n" + > "Book rate: " + o.item.session.bookrate[a] + "\n" ; > s += "Status: " + o.item.session.status[a] + > "\n" ; > a++ > } > return s;

[flexcoders] Re: Displaying additional child nodes in Datatip

2010-01-14 Thread turbo_vb
If the dataTipFunction doesn't give you enough flexibility, you could try a dataTipRenderer. In either case, you can drill down to the child nodes there. -TH --- In flexcoders@yahoogroups.com, "Monette" wrote: > > The line chart displays multiple series created with the seriesDataFunction > (

[flexcoders] Re: Help: Line chart multiple series datatip

2010-01-14 Thread turbo_vb
Think that you're looking for the dataTipFunction. -TH --- In flexcoders@yahoogroups.com, "Monette" wrote: > > I assigned the y and x axis to each series in a line chart. I need to > include additional information for each datapoint in the datatip from the XML > file. How can this be accompli

[flexcoders] Re: Setting variables

2010-01-11 Thread turbo_vb
On the line above your setter, use the Inspectable metadata: [Inspectable(category="General", enumeration="auto,up,down", defaultValue="auto")] -TH --- In flexcoders@yahoogroups.com, "Warren" wrote: > > I'm creating my own actionscript class which will have a public property > accessed via a

[flexcoders] Re: Flex LineChart. Show only line.

2010-01-08 Thread turbo_vb
Just set showLabels="false" on the AxisRenderers. -TH --- In flexcoders@yahoogroups.com, "Slackware" wrote: > > I'm using a mx:LineChart. And I need to show just the line (no vertical and > horizontal labels). Is that possible? How? > > Many thanks. >

[flexcoders] Re: Updating renderer properties

2010-01-07 Thread turbo_vb
> sure if that's what you were suggesting, but that seems dirtier to me than > referencing a separate model from the renderers. > > I'm interested in understanding your analysis of this though even if we may > disagree in the end. > > Aaron > > On Thu, Jan 7,

[flexcoders] Re: Updating renderer properties

2010-01-07 Thread turbo_vb
h the model for changes to its "foobar" > property. > > Aaron > > On Thu, Jan 7, 2010 at 2:58 PM, turbo_vb wrote: > > > > > > > If it's a pure style, then yes that is a viable approach. However, if it's > > something like changin

[flexcoders] Re: Updating renderer properties

2010-01-07 Thread turbo_vb
hat aren't data-dependent) > being made to the renderers in my case can even be text and other such > things which may not normally be thought of as "styles" but in reality it > seems they actually are styles and could be treated as such. > > Thanks. > &g

[flexcoders] Re: Updating renderer properties

2010-01-07 Thread turbo_vb
One thought, since you're taking about a style, is to assign a styleName to the itemRenderer and update the backgroundColor style of the StyleDeclaration when the user changes the color. You may need to override the styleChanged() method the itemRenderer, to handle the update. -TH --- In flex

[flexcoders] Re: Multiple initializers for property 'dataProvider'

2010-01-07 Thread turbo_vb
Hi Raymond, You're missing the tag that wraps the DataGridColumns. -TH --- In flexcoders@yahoogroups.com, Raymond Brown wrote: > > Below is a snapshot of one of my components. However I am always getting an > error on the Datagrid (id="cmdTable') and the error is: > > Multiple initializers f

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
quot;> > > public function init():void > { > stage.addEventListener(Event.RESIZE, resizeHandler); > } > > private function resizeHandler(event:ResizeEvent):void > { > trace("height:" + stage.height); > trace("height:"

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
Btw, adding a new topic every few hours that addresses the same issue, but with a slightly different name, is really bad form. -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > The stage isn't available immediately. That's why you get a null error

[flexcoders] Re: how to use stage in mxml

2010-01-06 Thread turbo_vb
The stage isn't available immediately. That's why you get a null error. With a little trickery: http://www.adobe.com/2006/mxml"; creationComplete="onCreationComplete()" resize="getStageDimensions()"> -TH --- In flexcoders@yahoogroups.com, "markflex2007" wrote: > > > I try to get

[flexcoders] Re: Creating XML Document from Data

2010-01-03 Thread turbo_vb
Why change from an ArrayCollection to xml; especially if it contains strongly typed objects? A bit easier to work with for hierarchical components or charts perhaps? -TH --- In flexcoders@yahoogroups.com, Paul Andrews wrote: > > Better still, create the XML in the backend rather than generate

[flexcoders] Re: event when page is shown in ViewStack?

2010-01-01 Thread turbo_vb
The "show" event will work except for the first time; in which case you'd want to listen for the "creationComplete" event. -TH --- In flexcoders@yahoogroups.com, "mitchgrrt" wrote: > > Is there an event I can listen for on a page, which would be sent > automatically whenever the page is shown

[flexcoders] Re: Getting the Y value for a line at a given point

2010-01-01 Thread turbo_vb
Hi Ryan, You can get the coordinates of the point by using coordinate geometry and trigonometry. The key would be to determine the angle (or slope) of the line segment and the distance to the event point. Or, if you wanted to make the segments square, use form="step": -TH --- In flexcoder

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
t; the left without covering the title? > > Thanks, you've helped a lot so far. > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > In updateDispayList() position the box: > > > > tempBox.move( unscaledWidth - tempBox.width - 10, ( unscale

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
I am adding the box but now it's covering up the normal title text of the > panel. Any quick fix for that (I'm just adding space to the front of the text > for the time being)? > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > That'

[flexcoders] Re: change slideer look?

2009-12-29 Thread turbo_vb
Using the "tickValues" property will help you a little. -TH --- In flexcoders@yahoogroups.com, "markflex2007" wrote: > > Hi, > > I have a slider that is like following: > > tickColor="0x323232" snapInterval="0.5" tickInterval="0.5" > dataTipPrecision="1" labels="['0.5mile','5miles']" liveD

[flexcoders] Re: Adding a custom UI component as a panel titleIcon.

2009-12-29 Thread turbo_vb
That's exactly what you should do. To get around the the titleBar add the box to rawChildren. http://dougr.net/?p=160 -TH --- In flexcoders@yahoogroups.com, "invertedspear" wrote: > > Alternatively it would be nice if I could extend the Panel class to allow me to add cli

[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread turbo_vb
uplicate to the tiles on > the right. Appreciate it! > > -Sal > > --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > > If you need to check dups for other reasons that would work fine. but, > > if you just need it for this particular u

[flexcoders] Re: addItem Trouble with TileList

2009-12-23 Thread turbo_vb
t[i].id==dataRight[i].id){ > Alert.show("Already exists"); > } > } >} > > -Sal > > --- In flexcoders@yahoogroups.com, "s_hernandez01" s_hernandez01@ wrote: > > > > hey thanks TH, i knew it was something with one line

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
Because guys like Gordon are here, I'll also say that Instantiate is the correct word; instead of initialize. :) -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > Man, I always forget at least one thing. You also need to initialize > the second ArrayCollect

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
. -TH --- In flexcoders@yahoogroups.com, "turbo_vb" wrote: > > > Hey Sal, > minor tweaks: > > public function addButton():void > > { > > dataRight.addItem( rightTiles.selectedItem ); > > } > > > > > and: > > > > > > >

[flexcoders] Re: addItem Trouble with TileList

2009-12-22 Thread turbo_vb
Hey Sal, minor tweaks: public function addButton():void { dataRight.addItem( rightTiles.selectedItem ); } and: -TH --- In flexcoders@yahoogroups.com, "s_hernandez01" wrote: > > I am having trouble understanding the addItem method in AS3 with Flex. I'm trying to simply add th

  1   2   >