[flexcoders] getItemIndex ......returning -1

2009-04-26 Thread kpjj31
What am I doing wrong. Thanks. private function getcoursesResult(event:ResultEvent):void{ courses = new ArrayCollection (event.result.COURSELIST as Array); var newindex:int = courses.getItemIndex('specific course name'); courses_datagrid.selectedIndex=newindex;

Re: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread Sam Lai
Flex is looking for a string in the array with the value 'specific course name'. In your arraycollection though, you have objects (not strings), which within them hold multiple strings (TITLE, DESC, REQ). The only way to match again the title field of every object in the array is to use a for

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
Maybe I am confusing you . This is what is my understanding of Menu . In genral we builld Menus and Their Childern we want users to be taken to the page on which the item is clicked . it similar to View Stack (in terms of Flex) Say Suppose I have Menu Menu1 - When User Clicks on Menu I want

[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum

2009-04-26 Thread Dharmendra Chauhan
Hi Alex, Thanks for the quick reply. I followed the approach suggested by you. But Now It still keeps allocating extra space to the last column.However Now the last column has been changed. It is the one which is without header having lableFunction returning string . Pls see below column

[flexcoders] AS3 Modules - how to optimize main application

2009-04-26 Thread pebanfield
Hi - I've got an application where I am using modules. My primary goal is to keep the file size down on the initial main swf. I've read some help docs that explain how to optimize the module itself. This is easily achieved by setting the optimize for application compiler option. This way

Re: [flexcoders] Calling C++ app or service from flex on Mac

2009-04-26 Thread Kamal99
I already have a C++ dll that I have invoked with flex on the Windows side using an Active/X plugin successfully We are also trying to do something similar. Can you please tell us how you did this part successfully? Thanks. Kamal -- View this message in context:

[flexcoders] Re: getItemIndex on filtered List

2009-04-26 Thread evan_mcd
Hi Alex, Thanks for the response. Yeah, it turns out that I was changing the object's property to one that was filtered _before_ i was trying to remove it - which I hadn't realized I was doing. Makes sense given that I was always getting -1 back from getItemIndex. So, the next question for

[flexcoders] New Into Flex

2009-04-26 Thread angelo_anolin
Hi Everyone. Am new into this flex thing and I really appreciate the way it is evolving for developing rich internet applications. I already have the free ebook Getting Started With Adobe Flex3. I would like to learn a lot more on developing Flex web data applications. Something that

Re: [flexcoders] flex builder's message?

2009-04-26 Thread Paul Andrews
- Original Message - From: markflex2007 markflex2...@yahoo.com To: flexcoders@yahoogroups.com Sent: Sunday, April 26, 2009 6:50 AM Subject: [flexcoders] flex builder's message? Hi, I just create a new Flex project with FB 3. I get following message when I switch the mxml to Design

[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-26 Thread Amy
--- In flexcoders@yahoogroups.com, Jack OMelia lome...@... wrote: Without the headerReenderer I am able to use {repeatername.currentitem.datanode}in the label field of the Canvas but as the headerRender property is part of the Accordion and not the Canvas (and outside the repeater) I can't

[flexcoders] Re: How to rotate text while keeping one eng fixed

2009-04-26 Thread Amy
--- In flexcoders@yahoogroups.com, Aaron Hardy aaronius...@... wrote: Try embedding your font. Or setting the blendMode to layer

[flexcoders] Gumbo trial expired

2009-04-26 Thread endrone endrone
Hello, does anyone know what happens when I enter my Flex Builder 3 serial for the Max 2008 Gumbo preview. regards Vic

[flexcoders] Re: CakePHP+CakeAMFPHP vs WebORB dialema

2009-04-26 Thread valdhor
If ADOdb is my final goal, I would start with that rather than PHP's built-in MySQL classes. I really don't see the point. --- In flexcoders@yahoogroups.com, raja_s_patil kpr.rspa...@... wrote: Thanks Steve, AFAIK no - They give you enough to get going but any further is up to your

[flexcoders] Re: Test various Flash Player version

2009-04-26 Thread valdhor
Have you tried Flash Switcher for Firefox? http://www.sephiroth.it/firefox/flash_switcher/ --- In flexcoders@yahoogroups.com, itdanny2002 itdann...@... wrote: Is there a way to test various flash player version in Flex Builder ? Some of our computers is locked and won't change flash player

[flexcoders] bug in Flex regarding to import

2009-04-26 Thread Everson Alves
Hello, I have this scenario: class zzz.Webservice; class xxx.Webservice; class xxx.WebserviceAccess; I'm trying to use zzz.Webservice and can't; I imported it but flex compiler says it's ambiguos, when it shouldn't because I explicitly which one I want to use; -- Jhonny Everson

[flexcoders] Re: bug in Flex regarding to import

2009-04-26 Thread Everson Alves
I'm trying to use zzz.Webservice from xxx.WebserviceAccess On Sun, Apr 26, 2009 at 12:07 PM, Everson Alves jho...@eversonalves.com.brwrote: Hello, I have this scenario: class zzz.Webservice; class xxx.Webservice; class xxx.WebserviceAccess; I'm trying to use zzz.Webservice and can't; I

[flexcoders] Re: Flex Windows Not Loading Bug

2009-04-26 Thread valdhor
Generally what I do is create separate sub classes (Of MDIWindow) for each of the windows I need. I try to treat each window as a completely self contained module. Each window is managed by MDIManager. Of course, you have to treat events differently as they will be parented by systemManager.

[flexcoders] Re: Gumbo: Styling Panels or Titlewindows when used as a popup not being styled.

2009-04-26 Thread valdhor
I don't do much CSS (I probably should) but do a lot of pop up windows. The only thing that jumps to mind is that popups are managed my systemManager. Is your CSS bound to Application? --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Does anyone know why styling a popup in

Re: [flexcoders] Re: CakePHP+CakeAMFPHP vs WebORB dialema

2009-04-26 Thread R. S. Patil
Thanks Steve, If ADOdb is my final goal, I would start with that rather than PHP's built-in MySQL classes. I really don't see the point. . I got the mysql code generated I studied that carefully I picked up two methods from service List all and update. I wrote similar ones for adodb

RE: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Tracy Spratt
Menu is more generic(flexible) than that. Its only function is to display the options to the user and respond to their gesture. You have the ability to act on the users choice however you choose. So your issue is more basic than that. You need to think about and decide on your applications

[flexcoders] Re: Flex Menu Basic Question

2009-04-26 Thread valdhor
In my case menu items are pulled from a database and put into custom objects that are returned to Flex. Each custom object has a label field and a link field (Amongst others). When the result is returned I put all these objects into an arrayCollection... menuBarCollection = new

RE: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread Tracy Spratt
Yes, as Sam says. To use getItemIndex(), you must pass in a reference to an item in the collection. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Sunday, April 26, 2009

[flexcoders] Re: CakePHP+CakeAMFPHP vs WebORB dialema

2009-04-26 Thread valdhor
There are a couple problems I have found with AMFPHP. The first is an error that pops up intermittently. I can't remember it exactly but have posted about it before. Suddenly it appears for no reason and you can't get rid of it no matter what you do. Changing to Weborb fixed it for me (And

Re: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread joe . g . james
Thank you, but for some reason the index variable is providing me with a -1 value, so the if statement is never true. var index:int = -1; for (var i:int = 0; index courses.length; index++) { -1 if (courses.getItemAt(index).TITLE == specific course name) { index =

RE: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread Tracy Spratt
Your if statement is wrong, decide whether you are going to use I or index. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of joe.g.ja...@kp.org Sent: Sunday, April 26, 2009 1:24 PM To:

Re: [flexcoders] Re: Tile will automaticly scroll to make component full visible

2009-04-26 Thread Aurek Brillowski
rockorgames wrote: hmm forget it, now that i stopped to think about it with a little calm i managed to it.. im so stupid for not realizing something so idiot lol Can you give the rest of us idiots a clue please? Thanks! :)

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
Thanks That was useful . I did realize I had to use View Stack . But the problem in using View Stack was , (maybe again its my lack of knowledge ) Can I be able to have Children for View Stack . if so how . In Example this ok . nx:vewStack HomeView SeacrhView LogoutView /mx:ViewStack

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Pedro Sena
If HomeView is some kind of container, yes, you can have it.(Containers examples: Canvas, Box(VBox, HBox), and so on) But for organization purpouses, I suggest you to put the homeView's child inside your HomeView mxml component. HTH On Sun, Apr 26, 2009 at 6:35 PM, guess what

[flexcoders] Error #2044: Unhandled StatusEvent:. level=error, code= with Timer

2009-04-26 Thread p0lish_sausage
Hello everyone, I've done some searching and it seems this strange error code has come up for some. My application's main loop is run by a timer which resets itself and triggers again after completion. (If people are wondering why I do it this way, the length of execution varies greatly

Re: [flexcoders] Good Flex skins

2009-04-26 Thread Josh McDonald
ScaleNine is as good as you're likely to find free of charge. -Josh 2009/4/24 Alexander Livitz aliv...@sbcglobal.net Hello, I am searching for a great looking Flex skins/themes. Something similar in quality to FlashMint (http://www.flashmint.com). Most of the Flex skins I've seen so far

[flexcoders] Re: Pass repeater data to headerrenderer

2009-04-26 Thread Jack OMelia
That is VERY cool. And I like the way you use grouping in this app as well. Much appreciated. Jack --- In flexcoders@yahoogroups.com, Amy amyblankens...@... wrote: --- In flexcoders@yahoogroups.com, Jack OMelia lomelia@ wrote: Without the headerReenderer I am able to use

Re: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread Sam Lai
I'm on my phone so I can't see the entirety of the reply, but I used a variable named i as well as one named index so you know if a match has been found or not. If index = -1, it means no match has been found. If it is always giving you -1, it is because the if statement inside the loop isn't

Re: [flexcoders] bug in Flex regarding to import

2009-04-26 Thread Sam Lai
Assuming you're using both xxx.Webservice and zzz.Webservice in the same class, you need to use the full name to refer to those classes in your code, otherwise Flex won't be able to work out what you're referring to. So instead of: var w1:Webservice; var w2:Webservice; use: var

Re: [flexcoders] bug in Flex regarding to import

2009-04-26 Thread Everson Alves
No, i'm using only one class. I guess it's importing automatically the Webservice on the same package but an explicit import should override that. On Sun, Apr 26, 2009 at 10:05 PM, Sam Lai samuel@gmail.com wrote: Assuming you're using both xxx.Webservice and zzz.Webservice in the same

RE: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum

2009-04-26 Thread Alex Harui
It swapped the order of the columns? That would be unexpected. The last column should not have resizable=false. It's job is to be resizable and take up the extra space not needed by the other columns. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog:

RE: [flexcoders] AS3 Modules - how to optimize main application

2009-04-26 Thread Alex Harui
Use the framework as an RSL. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of pebanfield Sent: Saturday, April 25, 2009 6:37 AM To:

RE: [flexcoders] Re: getItemIndex on filtered List

2009-04-26 Thread Alex Harui
I would probably have another unfiltered collection with the same source. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of evan_mcd Sent: Saturday, April

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread guess what
I know I am going on and on . I seriously coudnt get Children Working . Can anyone link me to a basic example which has Naviagtors for View Stack with Children. From: Pedro Sena sena.pe...@gmail.com To: flexcoders@yahoogroups.com Sent: Sunday, April 26, 2009

RE: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Tracy Spratt
Google: flex viewstack example Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of guess what Sent: Monday, April 27, 2009 12:11 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders]

RE: [flexcoders] getItemIndex ......returning -1

2009-04-26 Thread Tracy Spratt
A hint, look closely at this syntax: for (var i:int = 0; index courses.length; index++) See the problem? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Sam Lai Sent: Sunday, April

[flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum

2009-04-26 Thread Dharmendra Chauhan
It swapped the order of the columns? yes , Sometimes blank column swpped with other column.It should not happen 1) Is there is a way to prevent this swapping ? 2) Is it possible to get rid of extra space at all without adding blank column ? As per my understing the purpose of this blank

RE: [flexcoders] Re: DataGrid: How to Prevent Extra Space Allocation to Last Colum

2009-04-26 Thread Alex Harui
When did the swap happen? At startup? During a drag of columns or a sort? We'd need to know the cause to know how to prevent it. The datagrid cannot handle having a dead zone at the far right. It will always stretch the last column. Just to confirm, you have horizontalScrollPolicy=on?

Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Sam Lai
1 thing that might help is that ViewStack children all have to inherit from Container I think. So are the children subclasses of VBox, Canvas or similar? On 4/27/09, Tracy Spratt tr...@nts3rd.com wrote: Google: flex viewstack example Tracy Spratt, Lariat Services, development services