RE: [flexcoders] RESKINNING AN Alert

2007-02-11 Thread James T. Riffe
I'm looking for a way to re-skin the Alert popup. If anybody has a way to-do it an example would be nice. I've tried taking the Alert into a private function, however backgroundAlpha, background colors and text colors don't seem to be available. I'll have to assume if this can't be done either

RE: [flexcoders] RESKINNING AN Alert

2007-02-11 Thread Paul Williams
Hi James, You can specify custom styles for the buttons, message and title of your Alert control in CSS or in AS3. The Alert control also inherits styles from 'Panel' allowing you to set backgroundAlpha, backgroundColor, borderStyle, etc. This is covered in the Alert control documentation:

[flexcoders] Re: RESKINNING AN Alert

2007-02-11 Thread Hasan Otuome
CSS is the easiest way, IMO. For global Alert modifications, add this to your stylesheet: Alert { /*backgroundGradientColors: #ff,#ff; backgroundColor: #ff9933; borderColor: #ff9933;*/ color: #00; borderSkin: Embed(source=urlToSWFOrPNG);

[flexcoders] Re: Cairngorm - fireing two events at the same time messes the results?

2007-02-11 Thread Danko Kozar
Thanks, the web service worked OK until I started setting cairngorn events.. I think the problem is with the EventListeners I implemented in delegate that calls the web service.. --- In flexcoders@yahoogroups.com, Rich Tretola [EMAIL PROTECTED] wrote: You can certainly call multiple

[flexcoders] Re: Training from the Source - Can't find my error

2007-02-11 Thread oim415
Micahel, I had the same problem but trying your suggestion with the space before the keyword valueObjects does not work for me. I have moved on by deleting the click event but am curious as to what is causing the compiler anomoly. Is there current defect list for Flex that I can reference?

[flexcoders] Re: New to the group

2007-02-11 Thread Pedro Pastor
Hi Hervé, I've been browsing some E4X documentation, but it seems it is not enough for getting a good command of this language (mainly if someone comes from the XPath realm). Could you please tell me some good E4X manual with code example? Regards, Pedro --- In flexcoders@yahoogroups.com,

[flexcoders] Re: Want the SWEETEST Flex theme(s) ever? Contest!

2007-02-11 Thread superstella_uk
--- In flexcoders@yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED] wrote: I agree. If it was a serious offer, the author would have some themes to show, or at least a website. As it stands, I suspect its just a way to collect your email address and then spam you. I wish people wouldnt forward

Re: [flexcoders] Re: Want the SWEETEST Flex theme(s) ever? Contest!

2007-02-11 Thread Michael Schmalle
Haha, How can you even take this seriously? This has 'infomercial' written all over it! Peace, Mike On 2/11/07, superstella_uk [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Brendan Meutzner [EMAIL PROTECTED] wrote: I agree. If it was a serious

Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle
Hi, I was expecting to get ready and fight over this stuff, but hey, you are sticking with Adobe's conventions. I don't think there is really anything I disagree with. Although I do use in my component classes, dragButton_mouseDownHandler(event:MouseEvent):void When you start getting the

[flexcoders] Re: Refreshing Datagrid from pop up window

2007-02-11 Thread munene_uk
ive checked the contents returned and they are exactly the same as the data that populates the grid when the application loads however the only difference between the two is that the first call to update the grid on application load has this line dataProvider = new ArrayCollection (

[flexcoders] Watermark and other stuff

2007-02-11 Thread raz_gilad
Hi there I have 2 questions for you - the graphical experts - out there: * What is the best way to present a picture as a watermark .I tried using the Application Background Image Tag on a GIF but the GIF colors were distorted and the watermark effect was lost [:((] . How can I overcome

[flexcoders] Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
im tryin to successfully update a datagrid to add the latest record added to a Mysql database. the issue seems to be when i update the datagrid all i see is a blank row, however the debugger informs me that the correct results have been returned from the database. has anyone encountered this

Re: [flexcoders] Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway
you need to add an Item which is an object to the dataProvider of the grid. If you show us what you are doing, we can help better. What I have done is myGrid_dg.dataProvider.addItemAt(item,index) On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: im tryin to successfully update a datagrid to

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
ok here goes. private function resultHandler(evt:ResultEvent):void { dataProvider = new ArrayCollection ( ArrayUtil.toArray(evt.result) ); // same as: evt.result.toString(); } public function sendResultHandler(evt:ResultEvent):void

Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway
trace the evt.result using the ObjectUtil.toString() (note: you will need to import mx.utils.ObjectUtil to do this) and lets see what is coming back from the server. most likely the reason you are getting a blank row is that what is coming back does not match what the grid is expecting. On

[flexcoders] Re: Command line to compile system (extracted from FlexBuilder?)

2007-02-11 Thread Mike Crowe
Hi Paul, here's the errors: Unable to resolve a class for ResourceBundle: collections ... And the command line: @C:\Program Files\Adobe\Flex Builder 2\Flex SDK 2\bin\mxmlc.exe TaskBase2.mxml -accessible=false -allow-source-path-overlap=false -as3=true -benchmark=true -debug=false

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
this is what i got [SWF] F:\Adobe\Flex Builder 2\Projects\bin\Savo_Course_Manager2-debug.swf - 1,103,465 bytes after decompression warning: unable to bind to property 'SURNAME' on class 'Object' (class is not an IEventDispatcher) warning: unable to bind to property 'POSTCODE' on class 'Object'

Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway
try what I suggested in your addItem On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: this is what i got *[SWF] F:\Adobe\Flex Builder 2\Projects\bin\Savo_Course_Manager2-debug.swf- 1,103,465 bytes after decompression warning: unable to bind to property 'SURNAME' on class 'Object' (class is

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
how do i find out the index of the last item in order to use addItemAt(evt2.result,index); (if that makes sense!!) --- In flexcoders@yahoogroups.com, Clint Tredway [EMAIL PROTECTED] wrote: try what I suggested in your addItem On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: this is

Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Clint Tredway
myGrid.dataProvider.length On 2/11/07, munene_uk [EMAIL PROTECTED] wrote: how do i find out the index of the last item in order to use addItemAt(evt2.result,index); (if that makes sense!!) --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Clint Tredway [EMAIL PROTECTED]

[flexcoders] Re: Highlight and select all rows in datagrid by button.

2007-02-11 Thread ad9798
Thank a lot Adam! Works great!! --- In flexcoders@yahoogroups.com, Adam Royle [EMAIL PROTECTED] wrote: This works for me: private function selectAll():void { var a:Array = [], i:Number; var num:Number = myDataProvider.length; for (i=0;inum;i++) a[i] = i; myDataGrid.selectedIndices =

[flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread lepusmars
I agree, a very interesting read, but one thing I have to disagree with and bothers me a lot that Flex Builder does this when it creates classes. Close curly braces in its own line at the same position in which the open curly brace is... nothing bothers me more than a curly brace on it's own

[flexcoders] Please Help: Scale / Zoom Image from Center Not Working!

2007-02-11 Thread cnord0
Could someone please help, I am trying to scale / zoom an image from it's center point, instead the following code scales / zooms from the (0,0) point of the image. Any help is greatly appreciated. Thanks, Calo ?xml version=1.0 encoding=utf-8? mx:Application

[flexcoders] security error accessing URL ..Cannot invoke method as WSDL did not load

2007-02-11 Thread suyash
Hi everyone! This is my first post in this group.I am writing my first Flex application. It is a simple web service (SOAP) in which 1) Server : is written in python.It has a method getMetrics defined which outputs an array of performance metrics. Server resides on a machine on

[flexcoders] New Flex User

2007-02-11 Thread mikew6350
I currently working on a large project in Flex. I am just learning about flex and I am in over my head. I am now looking for a advanced flex developer to consult on the project. If anyone knows of anyone in the bay area (san jose ca) or any body who works well remotely please feel free to email

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
ive done as suggested however i still get a blank row public function sendResultHandler(evt2:ResultEvent):void { var index:int = dg.dataProvider.length; dg.dataProvider.addItemAt(evt2.result,index);

Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Michael Schmalle
I think it makes code less readable and Oh lets all agree to disagree on this one. Which side do you butter your bread? On the top or bottom, what??? On the sides!!! ? I can't stand curly braces on the method line, doesn't allow a space from the method signature to fully read and seems

Re: [flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread Adam Royle
OK, I think I see what your problem is. You said that your PHP script returns this, which is a nested array. (Array)#0 [0] (Object)#1 BIRTH_DATE = 1985-01-01 EMAIL = [EMAIL PROTECTED] FIRSTNAME = as HOUSENO = 40 PHONE = PHONENO = 1240235402-9 POSTCODE = sdf

[flexcoders] Re: Datagrid update woes(blank rows)

2007-02-11 Thread munene_uk
great news!!...ive gone back to using remotingConnection and your method worksthank you so much for all your input! public function onSendResult(result :Array) : void { if(!result) return; dg.dataProvider.addItem(result[0]); dg.dataProvider.refresh(); }

Re: [flexcoders] Any tips on how to do enable only vertical Sprite Drag and Drop ?

2007-02-11 Thread slangeberg
This example is Canvas, but... dragRule is vertical bar beneath the 'dragger' handle. mx:VRule id=dragRule x=182 y=64 height=315/ mx:Canvas id=dragger width=10 height=20 x={ dragRule.x-dragger.width/2 } y=62 mouseDown={ dragger.startDrag( false,

[flexcoders] ComboBox with binded dataProvider in DataGrid

2007-02-11 Thread someguy7_7
I have a datagrid with 2 columns. Each column contains a combobox. The dataProvider of the datagrid is bound to an ArrayCollection filled with a bunch of instances of a actionscript class. The dataprovider of one of the comboboxes we will call cbxA is dependent on the value selected in the other

RE: [flexcoders] Re: Command line to compile system (extracted from FlexBuilder?)

2007-02-11 Thread Paul Williams
Hi Mike, You shouldn't need to configure all these options on the command line, many of them are just defaults. The error suggests that your build is not including the locale-specific resource bundles located in frameworks/locale. To get to grips with mxmlc I would suggest starting with a

[flexcoders] Why doesn't Flash/Flex allow Basic Auth for uploads?

2007-02-11 Thread Steven Toth
I'm working on an application that's on a development server that is secured via Basic Auth over HTTPs. The application has an upload feature that will not work on the development server because Flash/Flex does not allow authentication for uploads... Here's an excerpt from the SDK

Re: [flexcoders] Why doesn't Flash/Flex allow Basic Auth for uploads?

2007-02-11 Thread hank williams
I'm not sure I am clear on your problem. This is only an issue when you are not running in a browser. The reason for this is that flash relies on the browsers code for doing this. In other words if you have created a flash projector this will not work. Is that what you are doing? Hank On

[flexcoders] Re: Training from the Source - Can't find my error

2007-02-11 Thread tonecluster1964
Try this: ... mx:Component mx:VBox mx:Script ![CDATA[ import valueObjects.ShoppingCartItem ]] /mx:Script mx:Button label=Remove click=outerDocument.removeItem(valueObjects.ShoppingCartItem(data)); / /mx:VBox

[flexcoders] Re: Can someone tell me what I am doing wrong.

2007-02-11 Thread tonecluster1964
I believe that you need to import the valueObjects.ShoppingCartItem component again from within your Component tags. Do it within the VBox... ... mx:Component mx:VBox mx:Script ![CDATA[ import valueObjects.ShoppingCartItem ]]

Re: [flexcoders] AMF3/WebService benchmark app

2007-02-11 Thread James Ward
Hi Mark, Sorry I took that down temporarily because it is still under construction and wasn't intended for public consumption yet. It should be back up with a new version soon. If you want to run the app on your own, you can get all the code from SourceForge: http://www.sf.net/projects/flexapps

[flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread lepusmars
I've seen more Java developers do it they way proposed with the curly braces on the next line. It's always bothered me... I'm an old dog I guess (actually I'm only 30), and a bit Obsessive Compulsive. --- In flexcoders@yahoogroups.com, Michael Schmalle [EMAIL PROTECTED] wrote: I think it

RE: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Matt Chotin
I'm not sure there's a single engineering organization that doesn't get into fights about curly brace placement. To each their own :-) I personally like separate lines. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of lepusmars Sent:

Re: [flexcoders] Re: Flex Coding Guidelines

2007-02-11 Thread Adam Royle
I don't understand why there isn't a feature in Eclipse that formats the code exactly how *YOU* want it. When you open up someone else's code it should just auto-format to how you prefer. You can make changes to the code, and when another coder opens it up, it formats it according to their

Re: [flexcoders] Re: Show/Hide Column of Grid using Context Menu

2007-02-11 Thread Adam Royle
Sure, here you go. It's a bit messy, but I've stripped out everything except for the bare essentials. There is one bug, it won't work correctly on Safari on the Mac (not sure of other browsers). It is because of the characters I use to denote the 'visible status' when the context menu is