Re: [flexcoders] Re: speed of the for each looping

2008-12-12 Thread Rick Winscot
Sometimes it makes sense to compare the total effect of one approach to another... like comparing your favorite cereal to a competing product. Nothing speaks better than hard and fast facts like... It would take over two and a half million bowls of your oat bran cereal to equal the fiber content

Re: [flexcoders] how do you blur smoothly between two states?

2008-12-12 Thread Flex Noob
just dug into the AS3 classes and it by default fromX/fromY has a default value of 4 and in the BlurInstanceClass it doesn't save the current blurX/BlurY values. I could create an event that listens for the update, the only time the value are sent, but then that adds extra overhead for each

Re: [flexcoders] Getting NULL Object Reference while deleting last element of the list

2008-12-12 Thread Marco Catunda
Anuj, I think there is something wrong with this structure. Why make it into for loop? The _addToAssociatedDevicesArr is received the same value for(var i:*=0;i_addDevicesLen-1;i++) { _addToAssociatedDevicesArr=nvrsInPoolList.selectedItems; } The last

[flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread stinasius
Hi Tracy you asked hw far i was, well i decided to redo it from scratch so that i can get guidance. now i have 4 mxml files. one is the main application(login_example.mxml) and there is the Home.mxml which is the default view, the Admin.mxml which requires one to login in order to view it and a

Re: [flexcoders] Connecting Flex 3 to ASP.NET Using LINQ

2008-12-12 Thread Fotis Chatzinikos
Your friend's site is down ;-) On Thu, Dec 11, 2008 at 9:53 PM, johngag6969 johnga...@hotmail.com wrote: A friend of mine over at http://19Nates.com made a great post for beginners on how to connect flex 3 to ASP.NET. I would recommend it to anyone that wants to venture to .NET or anyone

Re: [flexcoders] how do you blur smoothly between two states?

2008-12-12 Thread Flex Noob
I know I'm answering my own questions but hope someone has gone down the same path as me, can tell if I'm overlooking something obvious or wants to learn from my mistakes. . . My previous idea didn't work thanks to transitionblurBlurInstanceTweenInstanceTween.endTween. endTween sets the

RE: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread Tracy Spratt
Your next steps: * Create a simple php page that takes an http request, reads the UserId and Password request parameters. Allow for either form(POST) or querystring(GET) parameters. Keep the authorization logic simple to start with, by hardcoding a userid and password to match. Have the

[flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread stinasius
hi tracy i dont know php. i use coldfusion. a coldfusion remedy would be good. thanks

Re: [flexcoders] Re: Setting up and connecting a simple CSS file with Flex 3

2008-12-12 Thread Fotis Chatzinikos
It seems that your site is down... the 500 error appears even in the root of the site cftips.net On Fri, Dec 12, 2008 at 2:03 AM, Amy amyblankens...@bellsouth.net wrote: --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, johngag6969 johnga...@... wrote: I consider myself

[flexcoders] Re: Problems with locale different to en_US when building an swf file using Ant

2008-12-12 Thread taze170171
Hello! The problem had to do with the automation_agent resource bundle. See also http://www.adobe.com/cfusion/webforums/forum/messageview.cfm? forumid=60catid=585threadid=1394162enterthread=y Best regards, Taze --- In flexcoders@yahoogroups.com, taze170171 taze170...@... wrote: Hello! We

[flexcoders] BadPaddingException using RTMPS

2008-12-12 Thread taze170171
Hello! We are using AIR, LCDS (running on a JBoss) and an RTMPS connection. Sometimes we get the following exception, when the AIR client tries to connect to the server: [Flex]Thread[my-rtmps-SocketServer-WorkerThread-88,5,jboss] failed to read Connection 'xxx' or process the data; Connection

[flexcoders] Re: Best practice for calling asynchronous functions?

2008-12-12 Thread Amy
--- In flexcoders@yahoogroups.com, Mark Carter c...@... wrote: stuff snipped Amy-28 wrote: As you can imagine, it keeps the implementation much simpler. No need for the ASyncToken. Just add new listeners each time a call is made. Everything is garbage collected. Oh, hang on,

[flexcoders] Re: Lazy loading trees

2008-12-12 Thread Amy
--- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote: those classes were just random stuff i was using from where i copied the code. OK, but it doesn't look like a very informative post. In fact, it just looks like a page of errors to me...but I know nothing about java.

[flexcoders] How to Connect flex To java...

2008-12-12 Thread jayapalkasarla
i am using Tomcat web server(my Tomcat integrated with LCDS). can u Give the Folder Structure of my web application using Java... what are the jar are required and also xml files and configuration of xml Files.like web.xml,config.xml,services.xml

[flexcoders] Screen Resolution

2008-12-12 Thread kotha poornima
Hi all, I am developing a flex application in adobe flex2, my application get displayed on my monitor(17) correctly, however when I try running same application from different computer or a laptop of 14 wide screen display is different as monitor screen is short I need to scroll down to view

Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter
So are you saying that, in general, anonymous functions should not be used as listeners? If its anything like in Java, (once the calling method returned) the anonymous function would only be referenced by the event dispatcher and so (assuming weak references are not used) would only be garbage

Re: [flexcoders] Screen Resolution

2008-12-12 Thread narayana e
Hi i know your problem. u can use percentage values for flex compents width,height and one more option is  horizontalScrollPolicy=off , verticalScrollPolicy=off example mx:HBox width=100% height=100%  horizontalScrollPolicy=off verticalScrollPolicy=off /HBox u can get result        

Re: [flexcoders] Screen Resolution

2008-12-12 Thread Jules Suggate
Yep, and don't forget constraint-based layouts http://livedocs.adobe.com/flex/3/html/help.html?content=size_position_5.html On Sat, Dec 13, 2008 at 03:37, narayana e narayana_naid...@yahoo.com wrote: Hi i know your problem. u can use percentage values for flex compents width,height and

Re: [flexcoders] How to Connect flex To java...

2008-12-12 Thread Vivian Richard
Please go through this link : http://coenraets.org/blog/2008/11/my-max-lcdsblazeds-sessions-materials-available/ On Thu, Dec 11, 2008 at 11:37 PM, jayapalkasarla jayapalkasa...@yahoo.com wrote: i am using Tomcat web server(my Tomcat integrated with LCDS). can u Give the Folder

RE: [flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread Tracy Spratt
Just change the word php to cold Fusion. The rest of the solution is the same. Tracy From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of stinasius Sent: Friday, December 12, 2008 8:14 AM To: flexcoders@yahoogroups.com Subject:

[flexcoders] Binding Question - ArrayCollection/ResourceBundle

2008-12-12 Thread securenetfreedom
Is it possible to have an ArrayCollection value updated by a resource bundle value. [Bindable] public var cbDP:ArrayCollection = new ArrayCollection(); cbDP.addItem( {label:ResourceManager.getInstance().getString('myResources','NAME') }); When changing locales at runtime, all label fields of

[flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Michael Prescott
*Short version:* I have a non-visual component that I'm trying to declare in a repeater, but it seems that MXML doesn't allow this. Is this true? How do you get around this, create a visual component to wrap the non-visual component? *Long version:* I have an ActionScript non-visual component

[flexcoders] Re: AS ResourceBundle Keys with Args?

2008-12-12 Thread securenetfreedom
Let me clarify. I am trying to use argument placeholders in my ActionScript created Resource Bundle. In a .properties file, you would write: DISTANCE_FORMAT={0} miles So how would you do the same in ActionScript? The compiler does not like the curly braces {}? rb.content[DISTANCE_FORMAT] = {0}

RE: [flexcoders] Re: AS ResourceBundle Keys with Args?

2008-12-12 Thread Alex Harui
Pretty sure it is just: rb.content[DISTANCE_FORMAT] = {0} miles; //?? does not like {0} From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of securenetfreedom Sent: Friday, December 12, 2008 10:01 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: AS

RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Alex Harui
I think Amy's point is that, w/o a reference to the anonfun, you can't call removeEventListener on it. If I do: someObj.addEventListener(foo, function (e:Event) { ... } ); someObj will release the anonfun when it gets garbage collected. However, until that time, all objects in the scope

RE: [flexcoders] BadPaddingException using RTMPS

2008-12-12 Thread Jeff Vroom
Are you running the released version of 2.6? There was a bug in RTMPS in that version which is fixed in a hotfix or in 2.6.1 that might cause this type of error intermittently. Jeff From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of taze170171 Sent: Friday,

Re: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Rick Winscot
It¹s difficult to determine what your problem is without knowing a little more about what your DetailPopUp does/is. If you post some code it would be far easier to determine why one context works and another doesn¹t. Generally... I wouldn¹t recommend mingling non-visual and visual components in

Re: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Ralf Bokelberg
You can use arguments.callee to let a anonymous listener remove itself. Cheers Ralf. On Fri, Dec 12, 2008 at 7:23 PM, Alex Harui aha...@adobe.com wrote: I think Amy's point is that, w/o a reference to the anonfun, you can't call removeEventListener on it. If I do:

Re: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Michael Prescott
I think that might be a distraction, I was asking a question about the rules of MXML, rather than asking for debugging help for my non-visual component. But just for fun, I'll explain! I was looking for a way to reuse the nice way that PopUpButton manages its pop-up, so I created a non-visual

RE: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Tracy Spratt
It IS, or at least was, the case that non-visual components must be at the root mxml scope. I will try to find it documented. If the component is non-visual, then it does not matter, functionally speaking, where in the DOM it goes. Tracy From:

[flexcoders] Re: Best Practices: ArrayCollection of custom objects?

2008-12-12 Thread burttram
Is this such a trivial question that people are passing up replying in lieu of bringing light to my ignorance, or are there really no best practices to speak of here? The only way I've found so far to do this is to deprecate the overridden method, but even then from time to time we'll get a

Re: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Michael Prescott
It still seems to be true. Yes, I can see that before repeaters are involved, but the detail popup creates a relationship between a pair of components - so once I get to an array of such pairs, it seemed like I'd need a detail popup for each pair. It's stateful, and it would get muddled up if one

[flexcoders] ASDoc for main MXML document?

2008-12-12 Thread oneworld95
How do you use the ASDoc tool to generate documentation for the main application file? For example, if you've got MyApp.mxml and it contains a ton of ActionScript code (with the /** */ comments), how do you generate documentation from that? Thanks.

[flexcoders] Re: Best practice for calling asynchronous functions?

2008-12-12 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: I think Amy's point is that, w/o a reference to the anonfun, you can't call removeEventListener on it. If I do: someObj.addEventListener(foo, function (e:Event) { ... } ); someObj will release the anonfun when it gets

[flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Dave Kong
From here: http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html#install_plugin_win Install Flex Builder Plug-in on Windows *NOTE*: Flex Builder is only supported on Eclipse 3.2.2 or Eclipse 3.3. where as: *Install Flex Builder Plug-in on Mac OS X* *NOTE*: Builder is

Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Pedro Sena
I'm running Eclipse 3.4 + FB 3.0.2 w/o problems. Regards, Pedro Sena On Fri, Dec 12, 2008 at 4:33 PM, Dave Kong davek...@gmail.com wrote: From here: http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html#install_plugin_win Install Flex Builder Plug-in on Windows

Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Pedro Sena
Ops, I forgot to say: In windows XP. Regards, Pedro Sena On Fri, Dec 12, 2008 at 4:46 PM, Pedro Sena sena.pe...@gmail.com wrote: I'm running Eclipse 3.4 + FB 3.0.2 w/o problems. Regards, Pedro Sena On Fri, Dec 12, 2008 at 4:33 PM, Dave Kong davek...@gmail.com wrote: From here:

[flexcoders] Re: ASDoc for main MXML document?

2008-12-12 Thread oneworld95
Found this: http://blogs.adobe.com/flexdoc/2008/11/ -Alex --- In flexcoders@yahoogroups.com, oneworld95 oneworl...@... wrote: How do you use the ASDoc tool to generate documentation for the main application file? For example, if you've got MyApp.mxml and it contains a ton of ActionScript

RE: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Alex Harui
In theory, if you take the VBox and its innards and put them in their own MXML file it should work. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Michael Prescott Sent: Friday, December 12, 2008 11:17 AM To: flexcoders@yahoogroups.com Subject: Re:

RE: [flexcoders] Binding Question - ArrayCollection/ResourceBundle

2008-12-12 Thread Alex Harui
You are defining dynamic objects and they are not bindable. If you had a class that dispatched an event when the locale changed then it should work. From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of securenetfreedom Sent: Friday, December 12, 2008 9:39 AM To:

RE: [flexcoders] Re: Best Practices: ArrayCollection of custom objects?

2008-12-12 Thread Alex Harui
There's no way to make a function parameter more narrow in an override, or have multiple signatures for functions, so there's no way to catch this at compile time. You can hint the MXML compiler, but not AS, and usually you stuff your AC from AS. The only thing we do is throw an error at

Re: [flexcoders] Restrictions on non-visual component placement

2008-12-12 Thread Michael Prescott
Yes, that's what we did! Thanks, team! On Fri, Dec 12, 2008 at 2:55 PM, Alex Harui aha...@adobe.com wrote: In theory, if you take the VBox and its innards and put them in their own MXML file it should work. *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On

Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Andriy Panas
Hi Dave, I aslo Flex Builder 3.0.2 as Flex Builder Plug-in with Eclipse 3.4 on Windows XP - no problems noticed. -- Med venlig hilsen / Best regards Andriy Panas a.pa...@gmail.com

[flexcoders] Re: Maintaining scale when resizing embed tag

2008-12-12 Thread Ivo
So the solution was to set the scaleX scaleY after I know the dimensions of the stage. Add an event listener for added to stage and resize, then calculate the scaling factor that will make the longest side of the app fit into the longest side of the stage then apply the scaling to both scaleX and

RE: [flexcoders] Re: speed of the for each looping

2008-12-12 Thread Gordon Smith
In section 12.6.4, The for-in statement, of the ECMA-262 spec, it says The mechanics of enumerating the properties (step 5 in the first algorithm, step 6 in the second) is implementation dependent. I don't see anything in the spec about Array being an exception and having a guaranteed for-in

RE: [flexcoders] Am i high?

2008-12-12 Thread Gordon Smith
I've noticed this using the MAX build of Flex Builder 4 (Windows, standalone), pointed at the trunk SDK. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of djhatrick Sent: Thursday, December 11, 2008 12:40 PM To:

Re: [flexcoders] Filtering the List Entries depending upon the text entered in text Input box

2008-12-12 Thread anuj sharma
Hi Alex Sorry to get back so late, we had release for couple of days, With you suggestion I made it working which means it is filtering but now it is showing the complete XML list , Is there any way I can only show the attribute with the friendly-name.Like suggested, i put everything in

Re: [flexcoders] Getting NULL Object Reference while deleting last element of the list

2008-12-12 Thread anuj sharma
Hi Marco I fixed it in the first loop i need to get rid of -1 to finish the loop correctly, its been fixed now Thanks for your help Anuj On Fri, Dec 12, 2008 at 4:02 AM, Marco Catunda marco.catu...@gmail.comwrote: Anuj, I think there is something wrong with this structure. Why make it into

RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter
For me, the question is: If I use someObj in the same way as my example above (i.e. assigning it to a local variable), when will someObj get garbage collected? Is it (potentially) when the result/fault event is dispatched or could it be earlier? Alex Harui wrote: I think Amy's point is

[flexcoders] Re: Binding Question - ArrayCollection/ResourceBundle

2008-12-12 Thread securenetfreedom
Thanks, Alex. So I assume a flex button listens for the locale change event and therefore updates it's label? Are you saying create say a LocaleArrayCollection class that dispatches the locale change event? Or are you saying create LocaleChangeDispatcher that dispatches the locale change event

RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Alex Harui
Can you repost your example? From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Mark Carter Sent: Friday, December 12, 2008 6:54 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Best practice for calling asynchronous functions? For me, the question is:

[flexcoders] Re: flex login popup help needed pleaseeeeeeeee

2008-12-12 Thread stinasius
hi guys i think am making progress. this is what i have so far. login_example.mxml ?xml version=1.0 encoding=utf-8? mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute xmlns:view=components.* mx:states mx:State name=Log Out

RE: [flexcoders] Best practice for calling asynchronous functions?

2008-12-12 Thread Mark Carter
Alex Harui wrote: Can you repost your example? Its just the very few simple lines I posted a few posts ago in this topic. Here is the link: http://www.nabble.com/Re%3A-Best-practice-for-calling-asynchronous-functions--p20969533.html Its not a full example, but it gives the idea... --