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

2008-08-05 Thread stinasius
hi josh nice example but how about using one slider with two thumbs?

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

2008-08-05 Thread Josh McDonald
Waiting on a server-side bugfix, so enjoy. Working example: http://www.adobe.com/2006/mxml"; layout="absolute"> On Wed, Aug 6, 2008 at 3:57 PM, stinasius <[EMAIL PROTECTED]> wrote: > hi if you dont

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

2008-08-05 Thread stinasius
hi if you dont mind could you clarify on the trace statement, am not sure i understand what you said or how to go about it. thanks

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

2008-08-05 Thread Alex Harui
removing the filterfunction doesn't really prove anything. Whenever you call refresh() after you've assigned the filterFunction, your filterfunction should get called. If you add a trace statement, you should see it once per item in the dataprovider. From: flexc

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

2008-08-05 Thread stinasius
hi my filter function returns true for some of the data and in fact when i remove the slider filter statement, everything works well. another thing is that i set the onChange function of the combo boxes and the slider to filterGrid(). is that ok or am doing it the wrong way?

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

2008-08-05 Thread Alex Harui
Make sure your filter function returns true for some of the data From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of stinasius Sent: Tuesday, August 05, 2008 10:14 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: filtering a flex dat

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

2008-08-05 Thread stinasius
hi i tried just that but nothing shows up in my datagrid when i filter it. what could be the problem? here is my update filter function public function filterGrid():void{ dataAr.filterFunction=cityFilter; dataAr.refresh();

Re: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Josh McDonald
OK, good to know! Cheers Alex! -Josh On Wed, Aug 6, 2008 at 2:42 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > I see special casing code in the compiler source. > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMA

RE: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Alex Harui
I see special casing code in the compiler source. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, August 05, 2008 9:38 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] compilation - what's the secret

Re: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Josh McDonald
The only thing I'm trying to accomplish is an understanding of what's going on. If it's a special-case in the compiler (and builder) I want to be aware of it, if not I'd like to know how it works because it could be a useful trick for my arsenal. I smell some sort of voodoo, because builder is auto

RE: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Alex Harui
public dynamic class WebService extends mx.rpc.soap.WebService implements IMXMLSupport, IMXMLObject Looks like there is some compiler magic too though. What are you trying to accomplish? From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Jo

Re: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Josh McDonald
On the rare times it's worked and not simply crashed, that tool spits out billions of classes when working with multi-level type hierarchies (an unfortunate necessity here it seems due to the nature of the SOA solution). I might have another crack at it when I get some spare time, but I don't hold

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

2008-08-05 Thread Alex Harui
I don't think all metadata is inherited. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh McDonald Sent: Tuesday, August 05, 2008 9:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: Can we subclass Application yet? I

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

2008-08-05 Thread Josh McDonald
Interesting. So either the documentation is very old, or [DefaultProperty] simply isn't inherited? Either way the docs could use updating. I'll put testing this onto my todo list :) -Josh On Wed, Aug 6, 2008 at 1:55 PM, Alex Harui <[EMAIL PROTECTED]> wrote: > This pattern worked for me: > > ---

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

2008-08-05 Thread Alex Harui
Yup. That's what I said several replies ago. The bug looks like it doesn't happen if you use an HTML wrapper. There's probably some workaround too. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Douglas Knudsen Sent: Tuesday, August 05,

Re: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Douglas Knudsen
Try out the web service code gen tool in FB under Data > Import Web Service It creates a butt load of code using the low level schtuff, might help here. DK On Wed, Aug 6, 2008 at 12:09 AM, Josh McDonald <[EMAIL PROTECTED]> wrote: > Nothing in the WebService hierarchy includes the [DefaultPrope

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

2008-08-05 Thread Douglas Knudsen
looks like the same approach for other 'templating' comps as seen on Peter Ent's blog. might run into other issues such as http://bugs.adobe.com/jira/browse/SDK-15107 ??? DK On Tue, Aug 5, 2008 at 11:55 PM, Alex Harui <[EMAIL PROTECTED]> wrote: >This pattern worked for me: > > PanelTe

Re: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Josh McDonald
Nothing in the WebService hierarchy includes the [DefaultProperty] metadata, mxml.Operation does not implement IMXMLObject or extend UIComponent, and I can't see anywhere how the compiler makes the leap from (lowercase "o") to the mx.rpc.soap.mxml.Operation class. Is it in some sort of manifest fi

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

2008-08-05 Thread Alex Harui
This pattern worked for me: PanelTemplate.mxml - http://www.adobe.com/2006/mxml"; width="200" height="200" initialize="addNewChildren()" > [DefaultProperty("newChildren")] - test.mxml - http://www.adobe.com/2006/mxml"; layout="vertical" xmlns:local="*" >

RE: [flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Alex Harui
mx:WebService is defined in the RPC.SWC manifest as mx.rpc.soap.mxml.WebService, which implements IMXMLObject mx.rpc.soap.mxml.WebService has a default property which is a map of mx:rpx.soap.mxml.Operation objects IMXMLObjects have an initialized() method From

[flexcoders] compilation - what's the secret sauce?

2008-08-05 Thread Josh McDonald
A few questions - How does the compiler make the leap from this: to this: private function _main_WebService1_i() : mx.rpc.soap.mxml.WebService { var temp : mx.rpc.soap.mxml.WebService = new mx.rpc.soap.mxml.WebService(); service = temp; temp.operations = {VehicleO

[flexcoders] Re: Queer compiler error resolving

2008-08-05 Thread Josh McDonald
Ignore that last message, it seems there's some compilervoodoo going on for defining services in MXML that I'm apparently not 100% on :S On Wed, Aug 6, 2008 at 12:31 PM, Josh McDonald <[EMAIL PROTECTED]> wrote: > My code: > > > http://www.adobe.com/2006/mxml"; > layout="absolute" creationComplet

[flexcoders] Queer compiler error resolving

2008-08-05 Thread Josh McDonald
My code: http://www.adobe.com/2006/mxml"; layout="absolute" creationComplete="go()"> My error: Could not resolve to a component implementation. Not only that, builder keeps trying to resolve " with lowercase, and then gives me a parse error??? --

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 t

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 3:43

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

2008-08-05 Thread Toby Ashley
You could try something like 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 PROTECTED]> wrote: > That mgiht work, and can be done entirely in MXML, but

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: flexcoders@yahoog

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

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

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

2008-08-05 Thread Blake Barrett
You may have to wrap each with an and manipulate the canvases by positioning the and scaling the to get the image where you want it. Like this: That should give you somewhere to start. Blake

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

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 ___

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 app-s

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

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 ite

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 B

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

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

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 da

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 Co

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

[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; myTitleWindow.m

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

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 t

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 r

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

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

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 laun

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

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 2:28

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 I

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] 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: flexcoders@yahoog

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 drag

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 t

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 "ab

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 Subj

[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 @font-face { src:url ("/src/fonts/anychartfonts/Verdana.swf"); fontFamily: "myFont";} I am ge

[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: http://www.adobe.com/200

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

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

[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. http://www.adobe.com/2006/mxml"; implements="mx.controls.listClasses.IDropInListItemRenderer">

[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] 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: How would I get at each item so I can add a context menu to each menu item?

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

2008-08-05 Thread Tim Hoff
--- 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] 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 \Desktop\AmmoAuthority\AmmunitionAuthority\src\comps\ballisti

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

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 http://pogopixels.

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

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 L

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

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 Dimi

[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?"

[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] 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 legally

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@yahoogroups.c

[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; > btn.

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. You

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

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 PROTECTE

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 l

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

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

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. Halliwell

[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 .H

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

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

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

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 setti

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

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

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 b

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] 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);

[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

  1   2   >