[flexcoders] Re: ListEvent ItemRollOver columnIndex value is wrong

2010-01-12 Thread bhaq1972
@yahoogroups.com flexcoders%40yahoogroups.com, bhaq1972 mbhaque@ wrote: I have an itemRollover event handler in my datagrid. This datagrid also has some invisble columns (i made them visible=false during the datagrid's initialize event) Now if I make col0 invisible, and col1

[SPAM] Re: [flexcoders] DataGrid is blank

2010-01-21 Thread bhaq1972
sometimes setting the dataprovider to null (or new Object) worked for me. partsGrid.dataProvider = null; partsGrid.dataProvider = partsListCollection; or set the dataProvider in another event like creationComplete. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I think

[flexcoders] Re: From your own experience how long does it take to learn AS3?

2010-03-24 Thread bhaq1972
Referring back to your lessons is no different to what you would do if you were learning any new skill (eg learning English or French). You will keep doing that until you become familiarand then you move to more complex stuff. My suggestion would be keep looking at examples, try them out.

[flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-25 Thread bhaq1972
But, pressing Print Screen and then pasting it into an image container would be much nicer and more consistant. Have you checked out Andrew Trice's BitMapData blog. Very clever stuff. Just an idea. When someone presses the PrintScreen button, call his function getUIComponentBitmapData() to

[flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-25 Thread bhaq1972
into the image container. I check out the blog just incase there is some other magic there... Cheers, Nick On 25 March 2010 09:31, bhaq1972 mbha...@... wrote: But, pressing Print Screen and then pasting it into an image container would be much nicer and more consistant. Have you

[flexcoders] Re: What's wrong with this basic AS3 code?

2010-03-25 Thread bhaq1972
your class Car looks okay and so does you syntax to instantiate it and method call. try this. Create an Application(test.mxml) in the same folder location as your Car.as file. mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; mx:Button label=test click=test()/

[flexcoders] Re: What's wrong with this basic AS3 code?

2010-03-26 Thread bhaq1972
Doesn't make sense. I just tried it out and it works for me in an ActionScript project as well. Clearly, you Car class constructor takes 2 arguments, and its being passed 2 args in the instantiation. If you are using flexbuilder try click ProjectClean (this will build the project like its

[flexcoders] Re: Pasting an image into an image or bitmap container?

2010-03-26 Thread bhaq1972
interested in reading through it... I've just googled Andrew Trice BitMapData blog getUIComponentBitmapData but can't find what you've mentioned. Cheers, Nick On 25 March 2010 10:43, bhaq1972 mbha...@... wrote: I think i'm barking up the wrong tree. I misread your question

[flexcoders] Re: Help! - Intermittent Network Issues - How do you handle?

2010-04-07 Thread bhaq1972
I don't have a suggestion but wanted to know if you found anything useful to help your problem? We had one customer who had this problem on one of their pc's. But I never got to the bottom of what was happening. It became a low grade issue (as it was only one pc). I couldn't replicate the

[flexcoders] Flex 4 HGroup and Group background colour

2010-04-22 Thread bhaq1972
Why does this work s:Group width=100% height=28 s:Rect top=0 right=0 bottom=0 left=0 s:fill s:SolidColor color=0x4960a6 / /s:fill /s:Rect /s:Group But this doesnt? s:HGroup width=100% height=28 s:Rect s:fill s:SolidColor color=0x4960a6 / /s:fill

[flexcoders] Re: Flex 4 HGroup and Group background colour

2010-04-23 Thread bhaq1972
HGroup, but feel free to file a bug at http://bugs.adobe.com/flex/ and Adobe can look into it. Peter From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of bhaq1972 Sent: Thursday, April 22, 2010 4:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Flex

[flexcoders] Re: Flex 4 HGroup and Group background colour

2010-04-23 Thread bhaq1972
would need a layout that uses absolute positioning, while vertical, horizontal and tail layout are automatic layouts and don't use absolute positioning. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Fri, Apr 23, 2010 at 9:45 AM, bhaq1972 mbha...@... wrote

[flexcoders] Spark Panel width=0 but still showing

2010-04-26 Thread bhaq1972
I am setting the width of a Spark Panel to zero but I can still see it. Halo Panel does not have this problem. Any ideas? Thanks in Advance. Here's a simple example ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009;

[flexcoders] Re: Spark Panel width=0 but still showing

2010-04-26 Thread bhaq1972
Sorted... I need the property clipAndEnableScrolling=true for the main panel to be set. s:Panel id=MainPanel s:layout s:VerticalLayout clipAndEnableScrolling=true /s:layout /s:Panel --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: I am setting the width of a Spark

[flexcoders] Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
I have a set of button skins which all look like the following skin s:SparkSkin xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark fx:Metadata [HostComponent(spark.components.Button)] /fx:Metadata s:states s:State name=up /

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
('downSkin') / /s:SparkSkin Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Apr 27, 2010 at 12:47 PM, bhaq1972 mbha...@... wrote: I have a set of button skins which all look like the following skin s:SparkSkin xmlns:fx=http

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
Hasn't worked. --- In flexcoders@yahoogroups.com, Haykel BEN JEMIA hayke...@... wrote: If it does not work try replacing getStyle with hostComponent.getStyle. Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Apr 27, 2010 at 1:43 PM, bhaq1972 mbha

[flexcoders] Re: Creating Spark controlBar with ActionScript

2010-04-27 Thread bhaq1972
I did this little test. It should help. s:Panel id=panel1 title=panel width=50% height=50% s:controlBarContent s:Label text=Label appears in Control Bar/ /s:controlBarContent /s:Panel s:Button click=test() label=add/ fx:Script ![CDATA[ public function test():void { var

[flexcoders] Re: Flex 4 - Is it possible to create a generic Button skin

2010-04-27 Thread bhaq1972
to be set in curly braces like: source.up={getStyle('upSkin')} Sorry! Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, Apr 27, 2010 at 3:03 PM, bhaq1972 mbha...@... wrote: Hasn't worked. --- In flexcoders@yahoogroups.com flexcoders

[flexcoders] Re: Dynamic skin on spark.component.textinput

2010-05-05 Thread bhaq1972
try newObject.setStyle(skinClass, getDefinitionByName(spark.skins.spark.TextInputSkin)); instead of newObject[skinClass] = spark.skins.spark.TextInputSkin; --- In flexcoders@yahoogroups.com, Netaman rtigr...@... wrote: I stripped away most of the code and just have all the pertinent parts.

[flexcoders] Flex 4 ButtonBarButton skin to look like a LinkBar skin

2010-05-06 Thread bhaq1972
Hi I'm trying to create a ButtonBar skin which looks like a halo LinkBar skin. However, i'm having a few issues with trying to create the separator graphic. So far my ButtonBarButton skin has a Label. 1) Do I create the separator graphic in updateDisplayList()? If so can someone help with a

[flexcoders] Re: Flex 4 ButtonBarButton skin to look like a LinkBar skin

2010-05-07 Thread bhaq1972
/ /s:stroke /s:Line s:Label id=labelDisplay x=20 y=0 ..other attributes / /s:Group --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Hi I'm trying to create a ButtonBar skin which looks like a halo LinkBar skin. However, i'm having a few issues with trying to create

[flexcoders] spark ButtonBar selectedIndex out of view

2010-05-11 Thread bhaq1972
I have a spark ButtonBar with a horizontalLayout. The width of the ButtonBar is small ...so the end buttons don't show. When I set the selectedIndex to one of the end buttons...its not coming into view. How can I ensure the selectedItem is in view? thanks s:HGroup s:ButtonBar id=buttonbar1

[flexcoders] Re: spark ButtonBar selectedIndex out of view

2010-05-12 Thread bhaq1972
@yahoogroups.com, Alex Harui aha...@... wrote: Maybe put the ButtonBar in a Scroller or put a Scroller in the ButtonBar skin? On 5/11/10 1:14 AM, bhaq1972 mbha...@... wrote: I have a spark ButtonBar with a horizontalLayout. The width of the ButtonBar is small ...so the end buttons don't show

[flexcoders] Re: spark ButtonBar selectedIndex out of view

2010-05-12 Thread bhaq1972
.layout.horizontalScrollPosition += buttonbar1.layout.getScrollPositionDeltaToElement(buttonbar1.selectedIndex).x; Haykel Ben Jemia Allmas Web RIA Development http://www.allmas-tn.com On Tue, May 11, 2010 at 9:14 AM, bhaq1972 mbha...@... wrote: I have a spark ButtonBar

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-20 Thread bhaq1972
Generic form var item:String = xmlLC.getItemAt(i).collectionID; ?? Try this var item:String = xmlLC.getItemAt(i)[collectionID]; --- In flexcoders@yahoogroups.com, Angelo Anolin angelo_ano...@... wrote: Actually, the dpID is different for each xmllistcollection being passed. For

[flexcoders] Re: Generic Function To Set ComboBox Item

2010-05-20 Thread bhaq1972
sorry, i meant var item:String = xmlLC.getItemAt(i)[collectionID]; --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Generic form var item:String = xmlLC.getItemAt(i).collectionID; ?? Try this var item:String = xmlLC.getItemAt(i)[collectionID

[flexcoders] Which layout/container being used in Tour de flex

2010-05-20 Thread bhaq1972
Just wondering, Can someone tell me which layout/container is being used for Featured Projects section in Tour De Flex (Under Introduction to Flex What's Possible). thanks

[flexcoders] Re: Which layout/container being used in Tour de flex

2010-05-24 Thread bhaq1972
Anyone? --- In flexcoders@yahoogroups.com, bhaq1972 mbha...@... wrote: Just wondering, Can someone tell me which layout/container is being used for Featured Projects section in Tour De Flex (Under Introduction to Flex What's Possible). thanks

[flexcoders] spark Panel titleBar equivalent

2010-06-03 Thread bhaq1972
In flex 3 I used do add buttons to MyPanel (extends mx.containers.Panel) titleBar. var button:Button = new Button(); this.titleBar.addChild(button); whats the equivalent to this in Spark? one way i'm thinking of is using a basic layout, and positioning the buttons where I want. Just wanted

[flexcoders] Re: spark Panel titleBar equivalent

2010-06-04 Thread bhaq1972
Thanks Alex --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Use a Custom skin for the Panel On 6/3/10 8:13 AM, bhaq1972 mbha...@... wrote: In flex 3 I used do add buttons to MyPanel (extends mx.containers.Panel) titleBar. var button:Button = new Button

[flexcoders] flex 4 - NavigatorContent question / element parent

2010-06-09 Thread bhaq1972
I added a Panel component into a NavigatorContent public function aMethod():void { var nc:NavigatorContent = new NavigatorContent(); nc.addElement(myPanel); } Now, in another method I want to access this NavigatorContent eg public function anotherMethod(myPanel:Panel):void { var

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-10 Thread bhaq1972
: Or make nc a property of the class so you can use it in any method. --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote: Try myPanel.owner On 6/9/10 8:23 AM, bhaq1972 mbhaque@ wrote: I added a Panel component into a NavigatorContent public function

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-16 Thread bhaq1972
thanks --- In flexcoders@yahoogroups.com, valdhor valdhorli...@... wrote: nc = null; --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: myPanel.owner is the same as myPanel.parent so that won't work. Making it a property would work. What would the disadvantages

[flexcoders] Re: Hai Ths Is Sridhar : Regarding Flex Plz Help Me

2010-06-17 Thread bhaq1972
do a google on IFrame Alistair Rutherford this might help --- In flexcoders@yahoogroups.com, sridhar s sweetsrihe...@... wrote: How to integrate a HTML page inside the flex, i tried a lot using iframeetc but everything redirects to another page , i need the HTML page inside the

[flexcoders] Re: flex 4 - NavigatorContent question / element parent

2010-06-17 Thread bhaq1972
a whitewashed code example let me know. Randy --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: myPanel.owner is the same as myPanel.parent so that won't work. Making it a property would work. What would the disadvantages be with using myPanel.parent.parent.parent (a trace shows

[flexcoders] Re: setting the border thickness on a Spark mx.controls.VBox ?

2010-06-24 Thread bhaq1972
Or you might want click the Use Flex 3 compatibility mode checkbox under properties / compiler --- In flexcoders@yahoogroups.com, Peter DeHaan pdeh...@... wrote: If you're using Flex 4, I'd probably use the s:BorderContainer instead. It gives you a lot better control over the border

[flexcoders] VGroup and verticalScrollPolicy / horizontalScrollPolicy

2010-07-02 Thread bhaq1972
I am trying to migrate Flex 3 mx:VBox verticalScrollPolicy=off horizontalScrollPolicy=off to a Flex4 s:VGroup However, VGroup does not have verticalScrollPolicy or horizontalScrollPolicy. What do I use, to ensure scrollBars don't show on my VGroup. Thanks

[flexcoders] TabNavigator styles not being applied (flex4)

2010-07-07 Thread bhaq1972
Anyone know why styling is not being applied to this Flex4 example (a modified example from livedocs)? thanks s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx s:layout s:VerticalLayout

[flexcoders] Re: TabNavigator styles not being applied (flex4)

2010-07-08 Thread bhaq1972
. --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: Anyone know why styling is not being applied to this Flex4 example (a modified example from livedocs)? thanks s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark

[flexcoders] Re: How to remove the DateField textInput border?

2010-07-13 Thread bhaq1972
or borderVisible : false; --- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote: Have a look at textInputStyleName style http://help.adobe.com/en_US/FlashPlatform//reference/actionscript/3/mx/controls/ComboBase.html#style:textInputStyleName -

[flexcoders] Re: How to remove the DateField textInput border?

2010-07-14 Thread bhaq1972
no probs. my answer was based on flex 4 (i havent been using flex 3 for a long time) cheers --- In flexcoders@yahoogroups.com, Andriy Panas a.pa...@... wrote: There is no borderVisible style for DateField, it exists only for DateChooser, only in Flex 4 SDK and only in default skin theme

[flexcoders] Compile error when trying to use an extended spark TextInput

2010-07-14 Thread bhaq1972
I have created a very simple MyTextInput MyTextInput.mxml - ?xml version=1.0 encoding=utf-8? s:TextInput xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx fx:Declarations !-- Place non-visual

[flexcoders] Re: Compile error when trying to use an extended spark TextInput

2010-07-14 Thread bhaq1972
, bhaq1972 mbha...@... wrote: I have created a very simple MyTextInput MyTextInput.mxml - ?xml version=1.0 encoding=utf-8? s:TextInput xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark xmlns:mx=library://ns.adobe.com/flex/mx

[flexcoders] Re: Compile error when trying to use an extended spark TextInput

2010-07-14 Thread bhaq1972
the class in solemn ActionScript. -- Best regards, Andriy Panas On 14 July 2010 13:41, bhaq1972 mbha...@... wrote: I have created a very simple MyTextInput MyTextInput.mxml - ?xml version=1.0 encoding=utf-8? s:TextInput xmlns:fx=http://ns.adobe.com/mxml

[flexcoders] Spark TextInput text highlight colour

2010-08-26 Thread bhaq1972
I have a very simple question about Spark TextInput. s:TextInput text=Highlight this text and see what color the text is focusedTextSelectionColor=black/ When I use focusedTextSelectionColor=black I want the the colour of the text to be white (like it is in flex 3 and lower) How do I achieve

[flexcoders] GridColum.itemEditor errorString not showing

2011-08-10 Thread bhaq1972
Why does the red error box not show when I have this DefaultGridItemEditor(dg.itemEditorInstance).errorString = error; but does show when I have this DefaultGridItemEditor(dg.itemEditorInstance).textArea.errorString = error;

[flexcoders] Spark Datagrid selectedItem question

2011-08-24 Thread bhaq1972
How would I go about making the datagrid.selectedItem the ONLY editable row? A bit like making individual columns editable by setting GridColumn.editable. Thanks BH

[flexcoders] Re: Spark Datagrid selectedItem question

2011-08-25 Thread bhaq1972
, bhaq1972 mbhaque@ wrote: How would I go about making the datagrid.selectedItem the ONLY editable row? A bit like making individual columns editable by setting GridColumn.editable. Thanks BH

[flexcoders] Re: Spark Datagrid selectedItem question

2011-08-25 Thread bhaq1972
the grid data provider with the changed row value. Sent from my iPhone On Aug 24, 2011, at 10:56 PM, Amy amyblankenship@... wrote: How would a user edit a row that is not selected? --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: How would I go about making

[flexcoders] Re: Spark Datagrid selectedItem question

2011-08-26 Thread bhaq1972
headerText=col4/ /s:ArrayList /s:columns /s:DataGrid s:HGroup s:Button id=btn1 label=lock row click=lockRow() / s:Button id=btn2 label=unlock row click=unlockRow()/ /s:HGroup /s:Application --- In flexcoders@yahoogroups.com, bhaq1972

[flexcoders] Spark Datagrid / IGridItemEditor.save() issue when using the tab key

2011-09-02 Thread bhaq1972
I have problem with the IGridItemEditor.save() method. According to the docs for save()...if the data isn't valid, then the data isn't saved and the editor is not closed. So I setup an example to test this, and its seems ok. However, once I enter valid data and hit the Tab key, I expect the

[flexcoders] Re: Using RemoteClass meta tag

2011-09-07 Thread bhaq1972
I'm doing the same thing as you, I don't even cast my object and it still works. I did do a simple test using [RemoteClass] but I can't remember it sorry. I just saw it as different approaches in achieving the same end result. --- In flexcoders@yahoogroups.com, Nick Middleweek nick@... wrote:

[flexcoders] RTE when setting spark gridcolumn visible property (f

2011-10-05 Thread bhaq1972
I get a runtime error when I set the gridcolumn.visible property during a datagrid initialize event. There is no problem's if its the first gridcolumn. Looks like a bug? Can anyone suggest a workaround? s:DataGrid initialize=makeColumnInvisible() s:columns s:ArrayList

[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-06 Thread bhaq1972
). --- In flexcoders@yahoogroups.com, valdhor valdhorlists@... wrote: The column probably hasn't been created yet. Try the creationcomplete event of the datagrid. --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: I get a runtime error when I set the gridcolumn.visible property during

[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-07 Thread bhaq1972
and follow up with a validateNow() call. On 10/6/11 1:11 AM, bhaq1972 mbhaque@... wrote: The problem doesn't exist if the code is executed in the preintialize or creationComplete event. However, I didn't want to mention that because it takes the focus away from what looks like

[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-10 Thread bhaq1972
and columns on the fly in ActionScript. Why bother having columns in memory that you don't use? --- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: The problem doesn't exist if the code is executed in the preintialize or creationComplete event. However, I didn't want to mention

[flexcoders] Re: RTE when setting spark gridcolumn visible property (f

2011-10-11 Thread bhaq1972
thanks for the clarification. --- In flexcoders@yahoogroups.com, Alex Harui aharui@... wrote: Even columns with visible=false get instantiated when declared in MXML. On 10/10/11 3:36 AM, bhaq1972 mbhaque@... wrote: Yes agreed. In our newer applications we do that. Just

[flexcoders] spark datagrid drag drop question

2011-10-12 Thread bhaq1972
Does anyone know if the drag drop functionality will feature in the next release of spark datagrid?

[flexcoders] right align the gridcolumn text

2011-10-24 Thread bhaq1972
GridColumn doesn't have the textAlign style. Instead we can do this - s:GridColumn id=col dataField=etc s:itemRenderer fx:Component s:DefaultGridItemRenderer textAlign=right color=black/ .. How can I do this in actionscript? I've tried the following but doesn't work var

[flexcoders] Re: right align the gridcolumn text

2011-10-25 Thread bhaq1972
--- In flexcoders@yahoogroups.com, bhaq1972 mbhaque@ wrote: GridColumn doesn't have the textAlign style. Instead we can do this - s:GridColumn id=col dataField=etc s:itemRenderer fx:Component s:DefaultGridItemRenderer textAlign=right color=black/ .. How can I do

[flexcoders] Re: Custom Component Height issue

2011-10-28 Thread bhaq1972
this is a simple example, it might be useful. Basically, all i'm doing is increasing the panel height everytime i add a row into the datagrid. ?xml version=1.0 encoding=utf-8? s:Application xmlns:fx=http://ns.adobe.com/mxml/2009; xmlns:s=library://ns.adobe.com/flex/spark

<    1   2   3   4   5