[flexcoders] Delay before text is updated

2008-08-05 Thread Paul Steven
Probably something really basic, but I am having trouble with delays updating some text on screen. Basically I want to display a message on screen to tell the user to wait whilst a save operation takes place and after the save operation change the text message back to blank. However I am not

Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Josh McDonald
What does your method do? Most changes made to most components (such as changing the text property) won't be reflected on-screen until the next ENTER_FRAME is dispatched by the player due to the way Flex works internally. If your method is simply some gigantic or slow loop, you won't see anything

Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Ralf Bokelberg
Another option is to delay the call to the method, which does the main work. Cheers Ralf. On Tue, Aug 5, 2008 at 9:56 AM, Josh McDonald [EMAIL PROTECTED] wrote: What does your method do? Most changes made to most components (such as changing the text property) won't be reflected on-screen

Re: [flexcoders] apply stroke color to a column chart from external css file

2008-08-05 Thread Tom Chiverton
On Monday 04 Aug 2008, [EMAIL PROTECTED] wrote: I wanted to apply stroke color to a column chart not using the stroke tag but from external css file to avoid hardcoding Check the archives. -- Tom Chiverton This email is sent for and

RE: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Paul Steven
Thanks for the replies. My method basically creates a fairly large string and then writes this string to disk as an xml file. So are you saying, if my function takes say 10 seconds to complete, there will be no ENTER_FRAME dispatched during this time? If so then is there any function I can

RE: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Paul Steven
When you say delay the call to the method, do you mean set a timer to a small time period (say 500 milliseconds) after which it will call the createStudentDataXMLFile function? I definitely must be missing something fundamental here as seems a really long winded way to get some text to update

[flexcoders] Join QAGuild Network on Linkedin

2008-08-05 Thread p_shedikare
You are on your way to further take advantage of QAGuild.com offerings. Visit your website at http://www.QAGuild.com The QAGuild Network on LinkedIn is an alternative means to jump start your awareness about QAGuild.com website. The official website is the portal for you expand your

[flexcoders] Re: Custom Context Menu in flex app

2008-08-05 Thread vipinck
Adam, That was the problem. I changed the menu name to 'Save This' and it started working. But I was expecting an error message from Flex if I use something which was not supposed to be used. -Vipin

[flexcoders] Turning off SWF messages

2008-08-05 Thread Laurent Cozic
Each time a SWF file is loaded, Flash display a message in the console window such as: [SWF] /myfile.swf - 6,303 bytes after decompression This clutters the window for no real usefulness, especially when many files are loaded at the same time. Is it possible to turn this feature off and, if

[flexcoders] modifying a function at runtime

2008-08-05 Thread arieljake
Is it possible to modify a function at runtime? Like set it to a new value?

Re: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Ralf Bokelberg
Exactly. And please have a look at Josh's very good explanation of why it is that long winded. You have the same thing in other programming systems as well. Eg. last time i looked at Java client programming, you need to establish a second thread for beeing able to update the UI and receive user

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Claudiu Ursica
var btn:Button = this.mx_internal::closeButton; btn.useHandCursor = true; However the mx:internal might change in the future so this is not bullet proof. --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: Hey there, In the titlewindow component, I set showCloseButton =

RE: [flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread nirav . gosalia
Use This, btn.mouseChildren = false; btn.useHandCursor= true; btn.buttonMode = true; Regards, Nirav Gosalia From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Claudiu Ursica Sent: Tuesday, August 05, 2008 5:05 PM To:

[SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Amy
--- In flexcoders@yahoogroups.com, Paul Steven [EMAIL PROTECTED] wrote: Thanks for the replies. My method basically creates a fairly large string and then writes this string to disk as an xml file. So are you saying, if my function takes say 10 seconds to complete, there will

Re: [flexcoders] Opening path with Finder/Explorer in AIR

2008-08-05 Thread Berkay Unal
Well the file is the DB file. And the Machines has no internet connection.That DB file needs to upload to a CF server which will parse the data and process. The DB file is located in Users folder. When you use NavigateToURL in a windows box it is no problem. But the client machines are all Mac.

Re: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Laurent Cozic
Try savingMessage.validateNow() - it should force an update of the text area. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: Paul Steven [EMAIL PROTECTED] To: flexcoders@yahoogroups.com Sent: Tuesday, August 5, 2008

Re: [flexcoders] Re: modifying a function at runtime

2008-08-05 Thread Laurent Cozic
I wouldn't recommend it, but you can do it using a dynamic class: package { public dynamic class YourClass { // Define the function this way: this.yourFunction = function() { return abcd; } } } // Then to change the function: var test = new YourClass()

Re: [flexcoders] Opening path with Finder/Explorer in AIR

2008-08-05 Thread Tom Chiverton
On Tuesday 05 Aug 2008, Berkay Unal wrote: I am able to do it with browser but could not find a way to open the path with finder/explorer What the users computer chooses to do when you navigateToUrl() with a URL that starts 'file://' is probably beyond your control. I happen to like the way

Re: [flexcoders] Can see series[0].seriesRenderData in debug - cannot code to it?

2008-08-05 Thread Tom Chiverton
On Thursday 31 Jul 2008, chigwell23 wrote: to find that any reference to .seriesRenderData creates an error. Which one ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability

[flexcoders] Opening path with Finder/Explorer in AIR

2008-08-05 Thread Berkay Unal
Hi Coders, I have an application that store data in users folder. Does any one know how to open that folder with Finder/Explorer so user can take those files attach to its email, do anthing else. I am able to do it with browser but could not find a way to open the path with finder/explorer

[flexcoders] Re: modifying a function at runtime

2008-08-05 Thread arieljake
ehem...was a little sleepy when I wrote that. I meant... Is it possible to modify the method of a class at runtime? The only way I can think of is to encapsulate the function into a Function property that gets called by a wrapper class method.

Re: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Josh McDonald
Disclaimer: This is from memory, and details will be wrong :) I have documentation in the works for this, but it'll turn up in a blog post in a couple weeks when it's launched! I've also left out the sizing etc. When you set fields of most properly written components, you're usually not setting

[flexcoders] disable type-ahead look-ups in AdvancedDataGrid..

2008-08-05 Thread Dennis van Nooij
currently the AdvancedDataGrid use type-ahead look-ups on the first column, so if you enter any character it will search for that an item that matches it and focus that item. Problem is that I have defined a list of shortcut keys (like CTR+I) to do actions on those items on the list, so every time

Re: [flexcoders] Re: modifying a function at runtime

2008-08-05 Thread Josh McDonald
Be careful with this though! Consider this code: public dynamic class MyClass { private var myVar : String = Blue!; public function foo1() : void { trace(myVar = + myVar); } public var foo2 : Function = function() : void { trace(myVar = + myVar); }

Re: [flexcoders] AIR - window size/taskbar height

2008-08-05 Thread Anirudh Sasikumar
Hi, Have you tried using visibleBounds property of the Screen? import flash.display.Screen; import mx.controls.Alert; private function init():void { Alert.show(Screen.mainScreen.visibleBounds.bottom); } Regards, -- Anirudh Sasikumar http://anirudhs.chaosnet.org/

Re: [flexcoders] LCDS2.6 + Hibernate3 + Heirarchial objects - ds.deleteItem fails

2008-08-05 Thread Ryan Gravener
You need to cascade delete. http://java.sun.com/javaee/5/docs/api/javax/persistence/OneToMany.html http://java.sun.com/javaee/5/docs/api/javax/persistence/ManyToOne.html On Mon, Aug 4, 2008 at 10:26 PM, Manu [EMAIL PROTECTED] wrote: Hi, Am new to flex coding and have been able to get basic

[flexcoders] scroll to non-visible item in hierarchical AdvancedDataGrid

2008-08-05 Thread Parker Ault
Hey all, I need to programmatically scroll an AdvancedDataGrid component, without changing the currently selected row, to an arbitrary item in a HierarchicalData provider. I have another component that displays the samedataset, and I want to synchronize the display states of both,including

Re: [flexcoders] LCDS2.6 + Hibernate3 + Heirarchial objects - ds.deleteItem fails

2008-08-05 Thread manu manicklal
Hi,   I was able to get this to work after doing the following 1. Made update-conflict-mode and delete-conflict-mode to none 2. Changed use-query-cache to false 3. Removed the one-to-many and many-to-one metadata entries for both the Country and Region.   Not sure what the flip side of these

[flexcoders] Re: Flex Tree having 20000 nodes crashes

2008-08-05 Thread profiles_arun
Thanks Blanco, tht was awesome. -arun --- In flexcoders@yahoogroups.com, Guilherme Blanco [EMAIL PROTECTED] wrote: Hi, I have implemented a DynamicTree for my own usage, after spending almost a week looking for an URL about this subject. Until now, I haven't seen any implementation,

RE: [flexcoders] problem adding images to UIComponents using AS3

2008-08-05 Thread scole
Thanks Alex, Loader (finally) got the job done. I was hoping for a more direct solution, but this should work. --Steve One of my responses to the thread said that you probably can't wrap UIComponents in non-UIComponents. You'll have to use flash.display.Loader instead of mx:Image or

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread stinasius
hi thanks for the link, maybe you can help me out here, i am filtering the datagrid using three controls (2 combo boxes and a slider), the filter works without the slider but when i add the slider into the equation nothing shows up in the data grid when each control is clicked. here is my filter

RE: [flexcoders] scroll to non-visible item in hierarchical AdvancedDataGrid

2008-08-05 Thread Dimitrios Gianninas
try changing the verticalScrollPosition property. adg.verticalScrollPosition = 5; Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Parker Ault Sent: Tuesday,

[flexcoders] help required in retriving data from Database

2008-08-05 Thread sreekanth_kalluru
Dear friends, i doing a project where i selected a city name from comboBox that selectedIndex has to sent through GET method to the php file, for that selectedIndex the php file should retrive corresponding data from a dataBase table.but my code was not working

Re: [flexcoders] help required in retriving data from Database

2008-08-05 Thread Tom Chiverton
On Tuesday 05 Aug 2008, sreekanth_kalluru wrote: data from a dataBase table.but my code was not working You forgot to include the error. -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells

[flexcoders] TextArea - Limit the amount of text

2008-08-05 Thread tchredeemed
I am creating a web-to-print Greeting Card Editor. I need to limit the amount of text someone can put in the editable field (obviously cannot print more than the printable area). I cant just do maxChars, because it can fit variable amount depending on the amount of i's and w's used, etc! any

Re: [flexcoders] TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
You could do it by listening to the textInput event. When it's triggered, check if the text height is above a certain limit (for example the TextArea height - font height): if it is, cancel the event. The code below should work: textArea.addEventListener(TextEvent.TEXT_INPUT,

[flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread tchredeemed
Ok, that is definitely a step in the right direction. 1 problem: After they hit that max, it doesn't allow them to go back and change old text that they already edited, because the textHeight has been reached, so it prevents them from changing (essentially setting enabled=false). Any ideas?

Re: [flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread Tom Chiverton
On Tuesday 05 Aug 2008, tchredeemed wrote: Any ideas? Trap the key press event, and if it's delete set a flag to prevent the preventDefault(). -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a

Re: [flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
I haven't checked but I guess that the TextEvent.text property is empty if you are deleting text. If that's the case, then don't cancel the event. -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: tchredeemed [EMAIL

[flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread tchredeemed
no no, thats not the issue the issue is this a b c is a certain textHeight, whether the cursor is on the a or the c, so if they hit that textHeight, then no matter whree they put the cursor, the textHeight is at the limit, so i prevent the default. if I delete the c, the textHeight is no

Re: [flexcoders] Re: TextArea - Limit the amount of text

2008-08-05 Thread Laurent Cozic
Yes that's right, that wouldn't work in that case. Then one solution would be to save the text property when you know it's below the limit (for example in the TextInput event), then in the CHANGE event, check the text height again. If it's above the limit, restore the previous text property.

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread flexawesome
The button is at the TOP/LEFT corner in the TitleWindow. it shows the error msg below... any suggestions? 1120: Access of undefined property mx_internal. --- In flexcoders@yahoogroups.com, Claudiu Ursica [EMAIL PROTECTED] wrote: var btn:Button = this.mx_internal::closeButton;

Re: [flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Laurent Cozic
Add the mx_internal declarations at the top of your class: import mx.core.mx_internal; use namespace mx_internal; -- Laurent Cozic Flash, Flex and Web Application development http://pogopixels.com - Original Message From: flexawesome [EMAIL PROTECTED] To:

[flexcoders] index of rollover

2008-08-05 Thread Dimitrios Gianninas
If you are hovering with a mouse over a DataGrid, how do you get the index of the currently highlighted item? Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. -- WARNING --- This electronic message and its attachments may contain confidential, proprietary or

[flexcoders] Question about Flex + PHP directory structure

2008-08-05 Thread Cadu de Castro Alves
Hi people! I've been working in a project using Flex and PHP, but I have a question about creating the project structure. I'm using CakePHP for the backend and (of course) Flex for the frontend. Cake is working correctly. Where should I put the Flex code? I'm using Eclipse to develop my projects.

[flexcoders] SWFObject URL

2008-08-05 Thread flexaustin
Is it possible to obtain the URL of the page the swf is embedded in from within the Flex object. So I have a Flex app running inside a basic html page can I call something like getExternalPage, which will allow my Flex app to find out who embedded it. Thus, baby says: who's womb am I in?

RE: [flexcoders] index of rollover

2008-08-05 Thread Dimitrios Gianninas
nevermind, figured it out... you have to listen for the itemRollOver event and get the events rowIndex property Dimitrios Gianninas RIA Developer and Team Lead Optimal Payments Inc. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread flexawesome
It shows btn.buttonMode = true has an error = TypeError: Error #1009: Cannot access a property or method of a null object reference. here is the code, please click the link below.. http://www.privatepaste.com/0d0GdjsUId Thank you --- In flexcoders@yahoogroups.com, Laurent Cozic

Re: [flexcoders] SWFObject URL

2008-08-05 Thread Tom Chiverton
On Tuesday 05 Aug 2008, flexaustin wrote: Is it possible to obtain the URL of the page the swf is embedded in from within the Flex object. Application.application.url -- Tom Chiverton This email is sent for and on behalf of Halliwells

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread Tim Hoff
Hi, Your code for the filter function looks fine. Must be a data or slider value issue. Make sure that you set the slider's values array to two values that would include all of the prices in the dataProvider. It's possible that the range of values for the slider is too low or high; thus

Re: [flexcoders] SWFObject URL

2008-08-05 Thread Laurent Cozic
This would only return the SWF file URL, not the URL of the page within which it is embedded. To do that, you'll have to use javascript and the ExternalInterface class: ExternalInterface.call(document.location); -- Laurent Cozic Flash, Flex and Web Application development

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread stinasius
hi my price ranges are between 0 and 3,000,000 so should my max value be 3,000,000 or 1? thanks

[flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread hworke
Hi, how can I swap two rows in a datagrid?

[flexcoders] Unhandled NetStatusEvent

2008-08-05 Thread brad.cedergren
I am trying to display video and am receiving this error. Error #2044: Unhandled NetStatusEvent:. level=error, code=NetStream.Play.StreamNotFound at comps::ballistics/ballisticsRequestHandler()[C:\Documents and Settings\e47899

[flexcoders] Re: filtering a flex datagrid using a slider with two thumbs

2008-08-05 Thread Tim Hoff
mx:HSlider values=[0,30]/ --- In flexcoders@yahoogroups.com, stinasius [EMAIL PROTECTED] wrote: hi my price ranges are between 0 and 3,000,000 so should my max value be 3,000,000 or 1? thanks

[flexcoders] Add a context menu to a menubar item

2008-08-05 Thread valdhor
Either this is really easy and I've missed it or it's really quite difficult. I have a MenuBar that is created from an ArrayCollection that is returned from a RemoteObject call: mx:MenuBar id=menuBar itemClick=menuHandler(event) dataProvider={menuBarCollection} / How would I get at each item so

[flexcoders] Re: how to swap two rows in a datagrid

2008-08-05 Thread Tim Hoff
Manipulate the dataGrid's dataProvider. Chances are that it is an ArrayCollection, so you can swap items by using getItemAt(), setItemAt and removeItemAt(). When you change the dataProvider, the dataGrid will automatically reflect the changes. -TH --- In flexcoders@yahoogroups.com, hworke

[flexcoders] How do I show only part of an image?

2008-08-05 Thread whatabrain
Let's say I have a 64x64 image, but I only want to display one 16x16 section of it. How would I do this? I tried playing with img.transform.pixelBounds.offset(), but it didn't do anything. mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;

[flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread flexawesome
are you able to use the mask? --- In flexcoders@yahoogroups.com, whatabrain [EMAIL PROTECTED] wrote: Let's say I have a 64x64 image, but I only want to display one 16x16 section of it. How would I do this? I tried playing with img.transform.pixelBounds.offset(), but it didn't do anything.

[flexcoders] Flex 3 DataGrid with frozen first row

2008-08-05 Thread ndele_sutton
I am trying to display data with a locked and frozen (not subject to sorting) first row. This is a summary row and it has to be at the top of the grid. I considered using AdvancedDataGrid but the I didn't want the expand/collapse icon visible. Hiding the root node did not work because it hid

[flexcoders] Cannot install latest Flex Builder 3.0 SDK Build 3.0.3.2490 from 7/15/08

2008-08-05 Thread joseph_freemaker
Downloaded and installed into Flex Builder 3.0 under Eclipse 3.3.2 the Adobe Flex SDK Build 3.0.3.2490 from 7/15/08 from http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3. When my Flex project is recompiled, the compiler states that the charting classes such a LegendItem, PieChart,

[flexcoders] Questions about DragManager

2008-08-05 Thread timgerr
Hello all, I am working on a drag and drop component and I have a few questions if ya don't mind. I am seeing this DragManager (http://weblogs.macromedia.com/pent/archives/2006/11/tree_drag_and_d.html) and other places, so when I add it I get an error. Here is my code: ?xml version=1.0

[flexcoders] How to embed external fonts in flex app

2008-08-05 Thread saatreddy
I am using anycharts with flex app. I am trying to embed fonts that these charts need. These are swf files. I tried to include these files in my main.mxml file using mx:Style @font-face { src:url (/src/fonts/anychartfonts/Verdana.swf); fontFamily: myFont;}

RE: [SPAM]Re: [flexcoders] Delay before text is updated

2008-08-05 Thread Tracy Spratt
My suggestion would be to write your text to the control, then use callLater() to call the main method. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Tuesday, August 05, 2008 7:41 AM To: flexcoders@yahoogroups.com

RE: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Tracy Spratt
Do you really mean swap? Or just re-order, as in move one row to another location? Resequence is pretty simple, swap is more complicated. Either way, as Tom says use those Collection API methods. Be careful with the row indexes, since removeItemAt will cause the indexes to change for any row

Re: [flexcoders] Where are the AIR resources?

2008-08-05 Thread Steve Mathews
Let me give some specific examples so hopefully we can get this to work. What I am creating is a player for a custom file type. The file is basically a zip (with different extension) that when opened is extracted to the app-storage location. This is just resources. Next I have a Flex based swf

RE: [flexcoders] Questions about DragManager

2008-08-05 Thread Alex Harui
import mx.core.UIComponent From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr Sent: Tuesday, August 05, 2008 10:06 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Questions about DragManager Hello all, I am working on a

RE: [flexcoders] Flex 3 DataGrid with frozen first row

2008-08-05 Thread Alex Harui
You might be able to borrow from this post: http://blogs.adobe.com/aharui/2008/03/custom_ilists_combobox_prompts.htm l From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ndele_sutton Sent: Tuesday, August 05, 2008 9:31 AM To:

RE: [flexcoders] Add a context menu to a menubar item

2008-08-05 Thread Tracy Spratt
When you use the term context menu, do you mean right-click access? Or just normal sub-menus. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Tuesday, August 05, 2008 12:05 PM To: flexcoders@yahoogroups.com Subject:

RE: [flexcoders] Add a context menu to a menubar item

2008-08-05 Thread Alex Harui
Custom itemRenderer From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of valdhor Sent: Tuesday, August 05, 2008 9:05 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Add a context menu to a menubar item Either this is really easy and

RE: [flexcoders] Turning off SWF messages

2008-08-05 Thread Alex Harui
I don't know of any way to turn it off, but I sure love the [UnloadSWF] when I'm trying to prove that a SWF did get GC'd, so I put up with it. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Laurent Cozic Sent: Tuesday, August 05, 2008

[flexcoders] Re: scroll to non-visible item in hierarchical AdvancedDataGrid

2008-08-05 Thread Parker Ault
Thanks for the reply, Dimitros. In this case setting the vertical scroll won't work since the application doesn't know what position to scroll to (the list could be hundreds of items long). I've found a compromise since I last posted by using a second row selection as the hover state, then

RE: [flexcoders] Where are the AIR resources?

2008-08-05 Thread Alex Harui
You didn't say what error you are getting, but I'll bet it is that a localWithNetworking swf can't access local assets. Good thing we have that security check otherwise if you downloaded a spyware SWF, someone would be stealing your identity. So, no matter what, if you suck down SWF bits and

[flexcoders] Re: Flex 3 DataGrid with frozen first row

2008-08-05 Thread ndele_sutton
alex, thx for response. i think i am going to try a modified version of http://blogs.adobe.com/aharui/2008/03/custom_arraycollections_adding.html, where i return the summary row when then index is 0. do you see any problem with this? --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread flexawesome
anyone? :) --- In flexcoders@yahoogroups.com, flexawesome [EMAIL PROTECTED] wrote: It shows btn.buttonMode = true has an error = TypeError: Error #1009: Cannot access a property or method of a null object reference. here is the code, please click the link below..

[flexcoders] Re: Add a context menu to a menubar item

2008-08-05 Thread valdhor
Yes, I mean right-click access. I already have sub-menus. --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: When you use the term context menu, do you mean right-click access? Or just normal sub-menus. Tracy From:

RE: [flexcoders] Re: Flex 3 DataGrid with frozen first row

2008-08-05 Thread Alex Harui
That's what I would try. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of ndele_sutton Sent: Tuesday, August 05, 2008 11:35 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Flex 3 DataGrid with frozen first row alex, thx for

RE: [flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Alex Harui
See if btn is null. Find a different place to run your code if it is. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of flexawesome Sent: Tuesday, August 05, 2008 11:46 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: How to show

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread flexawesome
AWESOME! It couldn't be placed in the constructor... thanks Alex --- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote: See if btn is null. Find a different place to run your code if it is. From: flexcoders@yahoogroups.com [mailto:[EMAIL

[flexcoders] Online Flex Meetup Group

2008-08-05 Thread john_mason_ii
For those who don't have a local Flex user group, there is now an online meetup Flex user group which has its meetings over Adobe Connect sessions. Our next meeting is August 13th and the topic is on BlazeDS. The group site is located at http://ria.meetup.com/10/ John Mason [EMAIL PROTECTED]

[flexcoders] Re: How to show the Hand Cursor on the Close Button?

2008-08-05 Thread Tim Hoff
Here's a way; without extending: var myTitleWindow : TitleWindow = new TitleWindow(); myTitleWindow.showCloseButton = true; PopUpManager.addPopUp( myTitleWindow, myCanvas, false ); PopUpManager.centerPopUp( myTitleWindow ); myTitleWindow.mx_internal::closeButton.buttonMode = true;

[flexcoders] Re: Cairngorm Event Question

2008-08-05 Thread sk_acura
Hi, I have created a Sub Class of Cairngorm Event and added a variable for Storing the IReponder.. Now When the execute() is invoked on the Command we get the Delegate and set the Responder of Delegate to the instance of Command . So when the delegate completes the method it automatically

Re: [flexcoders] Re: Cairngorm Event Question

2008-08-05 Thread Josh McDonald
If you're using Cairngorm, why not use the UM extension to do it? -Josh On Wed, Aug 6, 2008 at 6:12 AM, sk_acura [EMAIL PROTECTED] wrote: Hi, I have created a Sub Class of Cairngorm Event and added a variable for Storing the IReponder.. Now When the execute() is invoked on the Command

Re: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Vivian Richard
Thanks Tim and Tracy. I guess I need to make it little clear as Tracy suggested. I want to select 2 rows and as I click a button those 2 rows will take each other's place. Now one more thing I want to do this in a TOUCHSCREEN monitor. Now the problem is how do I select 2 rows in a

[flexcoders] datagrid question

2008-08-05 Thread Chad Gray
I have a datagrid that I populate with some data. ProductID, Name, Description I would like it so when a user clicks on one of the datagrid rows it fires a RemoteObject that queries a CFC with the ProductID. Then take the RemoteObjects results and display the data returned. How do I get the

[flexcoders] Re: Cairngorm Event Question

2008-08-05 Thread sk_acura
Hi, Josh thanks for your reply... I have gone through the code for UM Extensions.. So i guess all i need to do is don't override the result() in my CustomeCommand Class so that the default result() gets called and will automatically invoke the result() on my view.. Thanks Mars --- In

RE: [flexcoders] datagrid question

2008-08-05 Thread Tracy Spratt
On click, use the value from the ProductID property in the selectedItem to build your RO method arguments. Then make the call. In the result handler, process the result data as you need. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] how to swap two rows in a datagrid

2008-08-05 Thread Tracy Spratt
Touch screens usually render a touch as a click, so this probably won't be difficult to implement. Obviously you will want to develop against an actual sample of the hardware. On your swap, use getItemAt() to put a ref to each item into a temp var, then use setItemAt() to replace the old

[flexcoders] ADG editable cells dataprovider

2008-08-05 Thread Josh Millstein
I have a ADG with a dataprovider that is set dynamically. I would like to be able to edit any of the cells in the datagrid but right now I can only edit cells that have information in them from the dataprovider. Problem is that when someone starts using my app there is no info in the

Re: [flexcoders] Where are the AIR resources?

2008-08-05 Thread Steve Mathews
Alex, Yes, it isn't an error, just the security dialog because my swf has -use-network=true but it is running locally. In theory I can compile a 'local' version, but there are some webservices that I would like to consume even on the desktop. Also, I don't think telling the user to trust the

RE: [flexcoders] Where are the AIR resources?

2008-08-05 Thread Alex Harui
I'm sure there is a way to do that right now. It might be a planned feature for a future AIR release. You can try it though. This post: http://weblogs.macromedia.com/emalasky/archives/2008/04/remote_plugins.h tml#more implies that you can't and should use loadBytes instead. -Alex

[flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread whatabrain
Not really sure what that means. But I'll explain my situation better... I have multiple mx:Image tags whose size is 16x16. I also have a larger image, say 64x64, which is a tiled array of 16x16 icons. I'd like to show a different piece of the 64x64 image in each mx:Image. --- In

RE: [flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread Blake Barrett
You may have to wrap each mx:Image/ with an mx:Canvas clipContent=truemx:Image//mx:Canvas and manipulate the canvases by positioning the mx:Image/ and scaling the mx:Canvas/ to get the image where you want it. Like this: mx:Canvas clipContent=true width=16 height=16 mx:Image

[flexcoders] Multiline Button Label

2008-08-05 Thread kenjgreenwood
I followed these instructions to attempt to create a multi line button label...but I've been unsuccessful. http://blogs.adobe.com/aharui/2007/04/multiline_buttons.html Any working solutions that I could view? Source?

[flexcoders] Re: snapshots of TabNavigator tabs

2008-08-05 Thread Danny Venier
Thanks Vijay, Tim, I definitely had two issues. Tim nailed one in that I was adding the existing child object to the new view and therefore removing it from the old because I copied a reference. I'm still struggling with the capture part. I think I need a bit of clarification on your

RE: [flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread Alex Harui
That mgiht work, and can be done entirely in MXML, but others are suggesting you learn how to use DisplayObject.mask. You can also create your own flash.display.Bitmaps by cutting up the original Bitmap and hand those to mx:Image as well. From:

Re: [flexcoders] Re: How do I show only part of an image?

2008-08-05 Thread Toby Ashley
You could try something like mx:Image source=path/to/image/file scrollRect={new Rectangle (0,0,16,16)}/ If you fiddle with the scrollRect property, you should be able to choose which 16x16 segment of the image is displayed. Cheers, Toby On Wed, Aug 6, 2008 at 12:37 AM, Alex Harui [EMAIL

RE: [flexcoders] Multiline Button Label

2008-08-05 Thread Alex Harui
I posted Flex versions in an update of the article. In the future, please give more detail as to what kinds of problems you are running into. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of kenjgreenwood Sent: Tuesday, August 05, 2008

Re: [flexcoders] Re: Can we subclass Application yet?

2008-08-05 Thread Josh McDonald
Alex - how can you use DefaultProperty for this? Doesn't the compiler stop you from using a default property on MXML root elements? -Josh On Fri, Aug 1, 2008 at 3:18 AM, Alex Harui [EMAIL PROTECTED] wrote: So you can use the defaultProperty trick, but I'd just subclass in AS and add the

[flexcoders] Queer compiler error resolving mx:Operation/

2008-08-05 Thread Josh McDonald
My code: ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute creationComplete=go() mx:WebService id=myservice mx:operations mx:Operation name=getSomething/ /mx:operations /mx:WebService /mx:Application My

  1   2   >