RE: [flexcoders] Looking for the right loop

2008-06-25 Thread Rick Winscot
Did I hear someone say 'fancy?' The best loop. isn't one! Especially if you have other mechanisms, like events, that can help reduce the cost of keeping track of a particular item. I've coded two classes; Thing and ThingCollection as an example. http://www.quilix.com/node/16 Overkill?

Re: [flexcoders] Looking for the right loop

2008-06-25 Thread Josh McDonald
Nice overkill. I'll put in my 2c: var anySelected : Boolean = false; var i : Number; for (i = 0; i things.length !anySelected) { anySelected = things[i].selected; } -Josh On Wed, Jun 25, 2008 at 4:24 PM, Rick Winscot [EMAIL PROTECTED] wrote: Did I hear someone say 'fancy?' The best

Re: [flexcoders] Looking for the right loop

2008-06-25 Thread Josh McDonald
Just re-parsed that message - Don't get me wrong, I love overkill! I'd have gone with a helper class that watches an IList rather than subclassing Collection though. That's how I decided to build my list indexer (get by fieldValue). That way you can watch any IList, and in my case have multiple

[flexcoders] Re: Problems with list using custom itemRenderer and variableRowHeight

2008-06-25 Thread Body Works Studio
Anatole, thanks for writing back. Sorry this is a little beyond me. HOw would you use the code with a list renderer. what do I compare against? { Reference( data ).name }? Sorry that I am not following. Jeff --- In flexcoders@yahoogroups.com, Anatole Tartakovsky [EMAIL PROTECTED] wrote: You

Re: [flexcoders] Re: Problems with list using custom itemRenderer and variableRowHeight

2008-06-25 Thread Josh McDonald
I think you'll just have to think of a way to keep track of the height information for your data (either add it to the model, or put it in some sort of look-up using the data or an ID from your data as a key). And simply reset this information in function set data(v) -Josh On Wed, Jun 25, 2008

Re: [flexcoders] No of Lines of Code

2008-06-25 Thread Alen Balja
We used externalis once, program for this once. Can't remember the name exactly but it's LineC or something like this. Do some Googling there are plenty of free options available. On Wed, Jun 25, 2008 at 6:57 AM, Paramjit Jolly [EMAIL PROTECTED] wrote: Hi all, Anyone have any idea, In

[flexcoders] videoDisplay and squished video...

2008-06-25 Thread grimmwerks
Hey - I'm pulling in a number of brightcove videos into flex using the videoDisplay class. For some reason, flipping through 68 different videos, some seem to squish and I can't figure out why. I might have to flip to the netstream classes but has anyone seen this before?

Re: [flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-25 Thread nwebb
Hi Joseph, thanks for the reply - no, the provided example was nothing more than a scenario off the top of my head, and probably not a great one, so I'm not looking for a formatter. What I'm looking for is the best way to trigger a method whenever a bindable value changes. Changewatcher achieves

Re: [flexcoders] videoDisplay and squished video...

2008-06-25 Thread grimmwerks
What's curious is that both squished and unsquished videos are returning that they're 512 wide in videowidth On Jun 25, 2008, at 3:43 AM, grimmwerks wrote: Hey - I'm pulling in a number of brightcove videos into flex using the videoDisplay class. For some reason, flipping through 68

Re: [flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-25 Thread nwebb
Hi Tracy, I was really just checking that I hadn't missed anything obvious (as I'm intending to write a blog post which covers this area). So, is it safe to say that if you want a method to be triggered each time a bindable value changes, ChangeWatcher is the (only) way to go? ChangeWatcher

Re: [flexcoders] triggering a function (when an argument is a bindable value)?

2008-06-25 Thread Josh McDonald
I'm fairly certain that ChangeWatcher is the base for all bindings. -Josh On Wed, Jun 25, 2008 at 6:16 PM, nwebb [EMAIL PROTECTED] wrote: Hi Tracy, I was really just checking that I hadn't missed anything obvious (as I'm intending to write a blog post which covers this area). So, is it

Re: [flexcoders] passing data from PHP to Flex

2008-06-25 Thread David Pariente
if u take out the print line, and u just echo the XML it should work properly... - Mensaje original De: ghus32 [EMAIL PROTECTED] Para: flexcoders@yahoogroups.com Enviado: martes, 24 de junio, 2008 19:56:47 Asunto: [flexcoders] passing data from PHP to Flex Hello everyone, I have an

[flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-25 Thread arieljake
I agree. We totally could save time coding with a tool like that. 1. Inline stylesheet, see a # and popup color picker 2. Setting styles in MXML 3. Setting styles in ActionScript It doesn't look like this has been filed yet. Does someone need help doing that? I will vote for it. --- In

Re: [flexcoders] iFrame WebSite IE and FireFox

2008-06-25 Thread Tom Chiverton
On Wednesday 25 Jun 2008, essuark wrote: in but under IE I am not Why, what happens ? -- Tom Chiverton This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and

[flexcoders] Best way to submit requests and receive responses to AMF server from non-flash?

2008-06-25 Thread archon810
Hi, What I'm trying to do is send some AMF requests from Perl to a remote server and capture, deserialize, and use returned variables. So far I am stuck as all code I've seen deals with server-side Perl, PHP, whatever and client-side ActionScript. I'm looking for client-side Perl or another

[flexcoders] help me

2008-06-25 Thread Kumaran Raj
in my project remote java object return xml as string than i convert it into xml than bind it to the datagrid  it didn't loaded.any one can help me plzz

[flexcoders] Re: Unit Testing for Flex

2008-06-25 Thread luke.bayes
Hey Vinoth, While AsUnit does work with Flex applications, it really shines for ActionScript-only applications because you don't need to compile on top of the Flex framework in order to execute your test harness. You should be able to use the ActionScript 3 build of the AsUnit framework found in

[flexcoders] Re: User loads CSV file

2008-06-25 Thread cox.blair
So if I had the user upload the file to the server and specified what the file should be named as, could I then load the contents of the file and store it in the MySQL database? I see all kinds of information about XML files, however I would need to write an app to convert a CSV to XML to load...

[flexcoders] Flex TextArea's HTML Tag Support

2008-06-25 Thread Patrick McDaniel
Hello All - Does anyone know off hand or is it listed somewhere what HTML tags you can put in the TextArea component? I know you can do the basics like font color, bold, underline, and italics, but are there others? Also has anyone run into where you change the color of the font Flex puts

[flexcoders] Re: User loads CSV file

2008-06-25 Thread cox.blair
Sorry, It would initially be for a web page. Later the application will be migrated to AIR. We are using PHP and MySQL for the database, if that helps as well. Thanks, Blair --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Would this be for an AIR app or a web page? ---

[flexcoders] Re: line break in Actionscript variable

2008-06-25 Thread valdhor
Sorry, should have been public var text1:String = How are you?%0DI am fine. --- In flexcoders@yahoogroups.com, jovialrandor [EMAIL PROTECTED] wrote: does not work. here is my code: public var text1:String = How are you?\nI am fine. private function openEmail(email:String,

Re: [flexcoders] help me

2008-06-25 Thread Paul Andrews
Raj, If everyone had a subject line like yours, the forums would be a complete mess. Before worrying about why flex isn't displaying your data, query your server using a browser to check what data you're getting back. Alternatively check out the debugger to try and see what data you're

[flexcoders] .visability = true, but is it viewable?

2008-06-25 Thread bjorn
I have an animation that is displayed using a timer while something is loading. When this animation isn't visible, I don't want the timer to keep updating the animation. I've overridden the set visible( value:Boolean ) function and stop the animation if visible is set to false; but the problem is

[flexcoders] Printing VS. PDF Creation - Scaling the output

2008-06-25 Thread Battershall, Jeff
I'm using the FlexPrintJob classes and I'm really liking them over what was available previously. The scaling algorithms are great. IF ONLY I could get PDF creating to deliver similar results! If you print to PDF, the output is great. But for server-side PDF creation, I'm using CFDOCUMENT

[flexcoders] Re: Question about drawSelectionIndicator

2008-06-25 Thread markgoldin_2000
Here is my code: override protected function drawSelectionIndicator(indicator:Sprite, x:Number, y:Number, width:Number, height:Number, color:uint, itemRenderer:IListItemRenderer):void { var g:Graphics = graphics; g.clear(); g.beginFill(color);

[flexcoders] Question about LCDS ES2.6 setting?

2008-06-25 Thread markflex2007
Hi, I download LCDS ES2.6 and it works fine with the URL http://localhost:8400/lcds-samples/testdrive.htm May I change the IP and port (or link with Domain name) so I can use the demo like http://68.180.206.100:80/lcds-samples/testdrive.htm or http://www.testme.com/lcds-samples/testdrive.htm

[flexcoders] Re: A very simple resize effects doesn't work property!

2008-06-25 Thread flexawesome
I have created another resize effects for my UIComponent, it's weird, once you clicked the shape and you can see the scrollbar shows up. It means the shape gets resized, but I can't it. http://www.privatepaste.com/e21I5C2BEJ can u please have a quick look? Thank you --- In

[flexcoders] Re: User loads CSV file

2008-06-25 Thread valdhor
So, let me get this straight You have a bunch of users out in the field collecting data with some kind of datalogger. This datalogger exports its data as CSV. You want to get this data into a MySQL database using Flex? You already have a way of getting the data into MySQL and you want to use

Re: [flexcoders] Re: A very simple resize effects doesn't work property!

2008-06-25 Thread Chris Ivens
Does that mean you are resizing the containing UIComponent but not anything graphical like your sprite? On 25 Jun 2008, at 14:54, flexawesome wrote: I have created another resize effects for my UIComponent, it's weird, once you clicked the shape and you can see the scrollbar shows up. It

Re: [flexcoders] Right click context menus

2008-06-25 Thread Daniel Freiman
I can't find where in my code I am doing it, but I am. I don't remember caring about the distinction between the two types of context menus. So just try it and it will probably work. - Daniel Freiman On Tue, Jun 24, 2008 at 12:46 PM, sbx33 [EMAIL PROTECTED] wrote: Hello! Per the Flex

[flexcoders] Re: User loads CSV file

2008-06-25 Thread cox.blair
Okay, the back story is we are creating a completely new application based on a very complicated Excel based spreadsheet an engineer designed to record the data collected from users. The program essentially trends this data. It will be entered manually as well as collected from the device as I

Re: [flexcoders] Flex TextArea's HTML Tag Support

2008-06-25 Thread Daniel Freiman
http://livedocs.adobe.com/flex/3/langref/flash/text/TextField.html#htmlText This is the documentation for TextField, but TextArea uses a TextField to render text which is why this is the relevant documentation. - Daniel Freiman On Wed, Jun 25, 2008 at 7:11 AM, Patrick McDaniel [EMAIL PROTECTED]

[flexcoders] Resizing Images

2008-06-25 Thread kenny14390
Hi. I have a space that is 175x100 and I am loading images into it on the fly. I am loading images that are as big as 200x115 and I need to shrink them to fit but also preserve their quality. If I don't specify the Image component's height and width, the image retains its quality, but it also

[flexcoders] Re: Restrict the number of records viewable in a managed arraycollection

2008-06-25 Thread richcianci
The managed ArrayCollection IS the DG.dataProvider. Are you saying I need to keep 2 ArrayCollections per DG, one managed and one unmanaged and transfer data between the two? --- In flexcoders@yahoogroups.com, Tracy Spratt [EMAIL PROTECTED] wrote: In the result handler, just select the desired

[flexcoders] Re: httpservice and repetitive calls

2008-06-25 Thread deepcworld
This is all because of GET request URL being cached. As Tracy explained, POST does not cache, hence it works. On the other hand, you can add time stamp (in milliseconds) to the GET URL to make it unique for every call, hence avoiding cache. - --- In flexcoders@yahoogroups.com, Cameron [EMAIL

Re: [flexcoders] Resizing Images

2008-06-25 Thread Chris Ivens
Perhaps making sure that the resizing snaps to pixels. I have the same issue on mine and I'm trying to find a solution too. I'm thinking of using server-side resizing to get it to work neatly. On 25 Jun 2008, at 15:20, kenny14390 wrote: Hi. I have a space that is 175x100 and I am loading

Re: [flexcoders] .visability = true, but is it viewable?

2008-06-25 Thread Paul Andrews
Why not just remove the timer? - Original Message - From: bjorn To: flexcoders@yahoogroups.com Sent: Wednesday, June 25, 2008 2:01 PM Subject: [flexcoders] .visability = true, but is it viewable? I have an animation that is displayed using a timer while something is

[flexcoders] Is it possible to get compontnet height is it doesnt have height=###

2008-06-25 Thread Body Works Studio
Hello all, I have a flowContainer that is dynamically added to a vbox on load. Inside that flowContainer I dynamically fill it with labels (one label per phrase) via an addChild(). currently I do not define a height on the flowContainer. The vbox and its parent make up a itemRenderer component

[flexcoders] Re: Does Flex 2/3 support left to right languages?

2008-06-25 Thread twcrone70
Sorry...yes I meant right to left languages. Thanks for the response guys...minus the smart alek one. ;-) - Todd --- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote: If you meant to say right-to-left language (like Arabic and Hebrew), the answer is Not properly.

Re: [flexcoders] Re: Here's a great idea for flex 4 - simple color pallette utility

2008-06-25 Thread Richard Rodseth
I've done Eclipse plug-in development (fun, but not as much so as Flex), but my hunch is something like this would be difficult to do without Adobe. Flexbuilder does apparently publish Eclipse extension points, but I'm not sure how the language/runtime bridging would occur. If anyone knows more

Re: [flexcoders] .visability = true, but is it viewable?

2008-06-25 Thread bjorn
The timer is used to update the animation. I need to know when to stop it. 2008/6/25 Paul Andrews [EMAIL PROTECTED]: Why not just remove the timer? - Original Message - *From:* bjorn [EMAIL PROTECTED] *To:* flexcoders@yahoogroups.com *Sent:* Wednesday, June 25, 2008 2:01 PM

Re: [flexcoders] Is it possible to get compontnet height is it doesnt have height=###

2008-06-25 Thread Tom Chiverton
You probably can't get the height immediately after addChild() because it hasn't been calculated yet. You could try one of the invalidateNnn() methods or getting the height using callLater() to wait a frame. -- Tom Chiverton This email

Re: [flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-06-25 Thread Tom Chiverton
On Friday 20 Jun 2008, Alex Harui wrote: Another approach is to comment out code until you get the app to appear and see what the code made the difference. Or scatter Alert.show() through out the code and find out when they stop appearing. This is one case where having the most recent Alert on

[flexcoders] Re: User loads CSV file

2008-06-25 Thread valdhor
I would probably set up two (or three) states in your Flex application - one to upload files to the server (See http://livedocs.adobe.com/flex/3/html/help.html?content=17_Networking_and_communications_9.html), one to manually enter data and one to display the data in a meaningful fashion. I would

Re: [flexcoders] flex+coldfusion8 w/blazeDS integrated --docs?

2008-06-25 Thread Tom Chiverton
On Thursday 19 Jun 2008, Derrick Anderson wrote: i can't find any documentation that shows how to setup applications for BlazeDS when BlazeDS is integrated with CF8... Do you mean *not* using the built in LCDS in CF8, actually installing BlazeDS into the same J2EE instance as CF ? Why would

[flexcoders] Profiler problems

2008-06-25 Thread mauricen
I have just started working with FB3 Pro, but can't get the profiler to work - or rather, it can work, but never where I really need it. On one ActionScript project it works fine. On a Flex project, it malfunctions in two different ways: with most apps it starts ok but the session is terminated

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread holmgren.eric
Tom, The methods I'm referring to are the getter/setter and init methods in the cfc. Say I pass a vo.TestVO AS class with the properties value1, value2, etc to ColdFusion via remoting. When I dump the arguments variable scope in the cfc called by the remote object, the vo.TestVO object exists as

[flexcoders] Re: Printing full page w/ no margins

2008-06-25 Thread Dmitri Girski
Josh, what is the length width of the page in pixels you are printing on? For A4 it should be 820x580 px. PS It sounds for me as you printer uses Letter size while printing on A4. Cheers, Dmitri. http://mitek17.wordpress.com --- In flexcoders@yahoogroups.com, Josh Millstein [EMAIL

[flexcoders] Re: Resizing Images

2008-06-25 Thread kenny14390
I don't think I can do server-side work on the images. Flex should be able to handle this sort of trivial task, but for some reason it isn't doing it for me. And what is snap to pixel? That sounds like a Flash thing instead of Flex. --- In flexcoders@yahoogroups.com, Chris Ivens [EMAIL PROTECTED]

[flexcoders] Re: help me

2008-06-25 Thread Amy
--- In flexcoders@yahoogroups.com, Kumaran Raj [EMAIL PROTECTED] wrote: in my project remote java object return xml as string than i convert it into xml than bind it to the datagrid  it didn't loaded.any one can help me plzz Did you ever notice that the word please actually needs

Re: [flexcoders] viewSourceURL is getting overridden ??

2008-06-25 Thread Jonathan Branam
I'm having the same problem. The Export Release Build dialog always resets the value. This is breaking View Source when I embed into a page that doesn't have the flex source directly in it. As the value is encoded into the SWF (I think) there doesn't seem to be a way to fix this after the fact.

Re: [flexcoders] flex+coldfusion8 w/blazeDS integrated --docs?

2008-06-25 Thread João Fernandes
You can just define it as a standard ColdFusion + Remoting application since all Messaging classes are now part of the SDK. -- João Fernandes http://www.onflexwithcf.org http://www.riapt.org Portugal Adobe User Group (http://aug.riapt.org)

RE: [flexcoders] Resizing Images

2008-06-25 Thread Jim Hayes
There is a .smoothing property that you can apply to bitmaps/bitmapData, which is probably what you're looking for. On a quick check it looks like the Image component doesn't expose it (Ely Greenfields superImage component might?), and offhand I'm not sure if you can just apply it to the source

Re: [flexcoders] Resizing Images

2008-06-25 Thread Richard Rodseth
Yes, I think SuperImage does that, and I've seen other blog posts address this. Example from Googling flex image smoothing: http://weblogs.macromedia.com/mc/archives/2006/09/enable_smoothin.html Hope this helps. On Wed, Jun 25, 2008 at 9:02 AM, Jim Hayes [EMAIL PROTECTED] wrote: There is a

[flexcoders] Re: Small problem with database delete function

2008-06-25 Thread bredwards358
Okay, problem solved, mismatched with the wrong sql statement and parameters.

[flexcoders] Re: Question about LCDS ES2.6 setting?

2008-06-25 Thread Anthony DeBonis
Under dir \tomcat\bin you will find server.xml file Change the port in this section: Connector port=8400 protocol=HTTP/1.1 connectionTimeout=2 redirectPort=9400 / to Connector port=80 protocol=HTTP/1.1 connectionTimeout=2

RE: [flexcoders] Is it possible to get compontnet height is it doesnt have height=###

2008-06-25 Thread Alex Harui
Read the doc on custom components. The lifecycle methods (commitProperties, measure, updateDisplayList are designed to handle this kind of problem. From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Body Works Studio Sent: Wednesday, June

RE: [flexcoders] Re: Question about drawSelectionIndicator

2008-06-25 Thread Alex Harui
Var g:Graphics = indicator.graphics From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of markgoldin_2000 Sent: Wednesday, June 25, 2008 6:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Question about drawSelectionIndicator

RE: [flexcoders] Re: Restrict the number of records viewable in a managed arraycollection

2008-06-25 Thread Tracy Spratt
Two ArrayCollections pointing at the same source should be working with references to the items, so you shouldn't need to transfer data. I believe that if you slice the source array and wrap it with an ArrayCollection, then changes to the item objects via the AC API will actually apply to the base

[flexcoders] Re: httpservice and repetitive calls

2008-06-25 Thread Doug Lowder
You can fix this on the server by setting the no-cache header to max- age=0, must-revalidate in the aspx page. When possible, that's the best solution IMO. --- In flexcoders@yahoogroups.com, Cameron [EMAIL PROTECTED] wrote: I'm using the httpservice to make a call to an aspx page which runs

[flexcoders] a little loc-z help...

2008-06-25 Thread grimmwerks
Ok, I've got this Circle class that all it does is draw out a circle with some data -- x, y, a string. I've got a component that has a repeater that draws these circles out. There are times that I need to flip one of these circles on top of other circles -- how best to handle this -- have

[flexcoders] image snapshot in flex

2008-06-25 Thread netdeep
I'd like to add a button so the user can snapshot a graph in my flex app. I can do this storing it on the server with Java, but I'd like for the user to have direct access to it. Since I don't think this can be done for instance saving to the desktop, I thought the next best solution would

Re: [flexcoders] image snapshot in flex

2008-06-25 Thread leds usop
without remoting, and using string param only, encode the image as jpeg or png (depending on your requirement) . then convert it to base64 string which you can pass to the serlvet via post (or get, whatever) . Then decode at the backend accordingly as a jpeg file or png file which is you can

[flexcoders] Re: Question about drawSelectionIndicator

2008-06-25 Thread markgoldin_2000
Yes, it does highlight a cell in this case. But... It highlights a cell in a first column only regardless clicking on other columns. The x parameter is always 0, so it fills over a cell in the first column. Is it possible to get a column number that has been clicked? If yes then I can calc the

[flexcoders] width via style/css

2008-06-25 Thread Ingo Stoecker
hello, just a newbie question ;-) is it possible to define the width of any components (like textinput, button, combobox) via mx:style or external css? greets, kobe __ Gesendet von Yahoo! Mail. Dem pfiffigeren Posteingang.

[flexcoders] Keyboard macros or bindings for Eclipse?

2008-06-25 Thread crazyluck55
I would like to tap the F1 key and have the mx: prefix automatically spit out in the Eclipse editor (I'm using Flex if that matters). All I can find is information on how to re-assign existing commands (like Paste) to different keystrokes but nothing about macroing a few kestrokes to a

[flexcoders] uint unset value

2008-06-25 Thread Amy
I am working on styling a component, and I need to react to something where a color isn't set or is set to null. I get a compiler error when I check for if (!(_myColor==null)){ //do something }else{ //do another thing } I can't be the first person to need to do this, but I don't see

[flexcoders] Re: Flex Application will not refresh properly

2008-06-25 Thread Brian Raymes
Ah! That's a better approach, if you want a new swf loaded every time. Though, there should be a way to only load the swf if it has been updated. Obviously, we don't want the user to download the swf to determine whether or not a time stamp has changed, but how about some other server-side

[flexcoders] Re: Inheritance : Calling super.function with var args

2008-06-25 Thread dev.bits
Hi Wouldn't that send the arguments as an array but as just 1 argument ? see the e.g at http://blogs.adobe.com/fcheng/2008/03/proposed_splat_operator_in_ecm.html (the second box ) I like prototyping! And anyhow as I said I am working with AS2 and I work with BOTH prototype and class-based

[flexcoders] Web Service called two times in a row

2008-06-25 Thread Pascal Robert
Hello, I'm trying to display videos (either FLV with On2 or H.264/AAC stuff) in a loop. The idea is to fetch the first video by calling a Web service (SOAP) and when the video is done, I attach the complete event to a method that fetch the next video. It work well for the first pass

[flexcoders] Flex3 RO calls to ColdFusion 8 - limited Java Heap Space?

2008-06-25 Thread LazerWonder
Hi y'all, I have a Flex 3 Web application that makes RO calls to ColdFusion 8, which queries an MS SQL 2k Server and returns the result to the Flex application. This works great. Now I have converted this Web app. into an AIR app, and adding a sync ability so that if users are not online, they

[flexcoders] Re: Flex3 RO calls to ColdFusion 8 - limited Java Heap Space?

2008-06-25 Thread LazerWonder
Perhaps instead of saying queries, I should have said Remote Object calls. I hope that will make things a little more clear as to what my problem might be. Thanks! == Now, the remote db has over 100 tables and thousands of records. So a lot of queries (Should say remote

Re: [flexcoders] width via style/css

2008-06-25 Thread Michael Schmalle
Hi, No, width is a property of UIComponent not a style. You can try using constraints IE top,left,bottom,right. Mike On Wed, Jun 25, 2008 at 12:03 PM, Ingo Stoecker [EMAIL PROTECTED] wrote: hello, just a newbie question ;-) is it possible to define the width of any components (like

Re: [flexcoders] uint unset value

2008-06-25 Thread Michael Schmalle
Hi, try using isNaN() if (isNaN(_myColor)){ //do something when NaN }else{ //do another thing when is a color } PS ...Post trimmed. ;-) Mike -- Teoti Graphix, LLC http://www.teotigraphix.com Teoti Graphix Blog http://www.blog.teotigraphix.com You can find more by solving the problem then

[flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Tom McNeer
Hi, I'm working on a project where the user can create multiple product configurations within a single order. Each configuration object holds a variety of data about chosen product attributes, and the configuration objects are placed into an array. In order to display all the configurations, I

RE: [flexcoders] width via style/css

2008-06-25 Thread Shearer, Scott
Kobe, One thing that I found (and continue to find helpful) when trying to figure out how to set things for an object is to refer to Adobe's LiveDocs (http://livedocs.adobe.com/flex/3/langref/index.html). If the thing you want to set is found in the properties table for the class in

Re: [flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Michael Schmalle
Hi, If I am understanding you correctly, an MXML component is a class in itself. So if you have a mxml component named MyCustomComponent.mxml, you would do this when create the dynamic UI; var child:MyCustomComponent = new MyCustomComponent(); .. initialize container.addChild(child); You can

[flexcoders] embedding multiple locales

2008-06-25 Thread Jonathon Stierman
Has anyone tried compiling using multiple locales? According to the docs (http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_3.html#160 654) , you're supposed to be able to update the -locale compiler option to look like this: -locale= en_US,en_GB,es_ES However, when I do this,

[flexcoders] Re: Flex3 RO calls to ColdFusion 8 - limited Java Heap Space?

2008-06-25 Thread LazerWonder
I have encountered another error, in addition to the aforementioned one: [FaultEvent fault=[RPC Fault faultString=Send failed faultCode=Client.Error.MessageSend faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Failed: url: 'http://my cold fusion IP address/flex2gateway/']

[flexcoders] Re: Restrict the number of records viewable in a managed arraycollection

2008-06-25 Thread richcianci
I am aware that two arraycollections pointing to the same source contain references to the same set of objects. Let me clarify that I am speaking of an arraycollection that is managed by a custom assembler in LCDS 2.51. New items are being added to this arraycollection by a server-side process.

[flexcoders] Re: Resizing Images

2008-06-25 Thread kenny14390
This looked like it should work (posted last week): http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=9409 However, I got a sandbox violation when the image was loading because of the checkPolicyFile flag. The SuperImage page (previously linked) mentioned

RE: [flexcoders] uint unset value

2008-06-25 Thread Gordon Smith
If you've typed _myColor as uint, it can't store either null or NaN. If it needs to store null, make it Object. If it needs to store NaN, make it Number. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf

[flexcoders] Re: line break in Actionscript variable

2008-06-25 Thread jovialrandor
Thanks valdhor, this is great. Do you know if i can insert html tags in this? --- In flexcoders@yahoogroups.com, valdhor [EMAIL PROTECTED] wrote: Sorry, should have been public var text1:String = How are you?%0DI am fine. --- In flexcoders@yahoogroups.com, jovialrandor jovialrandor@

Re: [flexcoders] How to filter HierarchicalCollectionView????

2008-06-25 Thread Jonathan Branam
moonrchand, (Also posted at http://jonathanbranam.net/solutions/filter-hierarchicalcollectionview-parent-child-datawith SWF and source code): Any function applied to the filterFunction of HierarchicalCollectionViewhttp://jonathanbranam.net/flex3anatomy/class/HierarchicalCollectionViewis applied

RE: [flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Tracy Spratt
I advise using mx:Repeater for this. It is essentially the same as using addChild, but automates a lot of things, like creating an array of references to the created children, and handling removing the children, even if there are other manually added children in the container. If you code it

[flexcoders] Re: Can't bind mx:app's verticalScollPosition to a variable?

2008-06-25 Thread jack_freud
No one responded, but a friend helped me out with this. What I had not understood is that the binding to verticalScrollPosition is one-way, meaning that scrolling the app does not change the bound variable. So when my code told the bound variable to reset to zero, nothing happened because it was

Re: [flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Tom McNeer
Hi Mike, Thanks for your reply. I understand that components are compiled to AS classes, which I why I originally tried code much like yours. Here's mine: //import the component import views.SingleConfig; //function to build the children private function buildConfigs():void{ var

Re: [flexcoders] embedding multiple locales

2008-06-25 Thread Marvin Froeder
Do you have flex SDK on en_GB and es_ES? VELO On Wed, Jun 25, 2008 at 3:14 PM, Jonathon Stierman [EMAIL PROTECTED] wrote: Has anyone tried compiling using multiple locales? According to the docs ( http://livedocs.adobe.com/flex/3/html/help.html?content=l10n_3.html#160654) , you're

Re: [flexcoders] Measurement and scrolling

2008-06-25 Thread Richard Rodseth
I had the good fortune to spend some time with Alex last night and show him my infamous TiledCanvas, now with renewed urgency since the scroll bars don't appear on Windows under Firefox 3 or IE. We are looking into some other issues in the wrapper that could affect scrolling, but I want to get the

Re: [flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Michael Schmalle
Hi, I was just answering quick but Tracy had a point about repeaters. There all valid, I come more from a framework component development standpoint, repeaters are from the design aspect. As far as your current code; singleConfig:SingleConfig = new SingleConfig(); The above is incorrect as

Re: [flexcoders] embedding multiple locales

2008-06-25 Thread Robert Vollmar
The syntax is: -locale aa_AA bb_BB or -locale=aa_AA,bb_BB not -locale aa_AA,bb_BB - Rob On 6/25/08 11:14 AM, Jonathon Stierman [EMAIL PROTECTED] wrote: Has anyone tried compiling using multiple locales? According to the docs

RE: [flexcoders] embedding multiple locales

2008-06-25 Thread Jonathon Stierman
If I'm understanding what you are asking, yes. I do have the following folders created and populated with .swc files: [Flex Builder 3 root]\sdks\3.0.0\frameworks\locale\en_US\ Flex Builder 3 root]\sdks\3.0.0\frameworks\locale\en_GB\ Flex Builder 3

RE: [flexcoders] embedding multiple locales

2008-06-25 Thread Jonathon Stierman
Doh! Yes, that is the issue. Much thanks for pointing that out, I would have spent many more hours staring at this without noticing that! Jonathon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Robert Vollmar Sent: Wednesday, June 25, 2008 2:18 PM To:

[flexcoders] Event overloads and the Flex framework

2008-06-25 Thread fumeng5
Hi, After a long build we're testing and noticing a lot of time out errors and other things from remote calls to our Java services. One question that has been posed to me that I don't know how to answer is this: how does Flex handle someone clicking madly on a button that invokes a remote

[flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread holmgren.eric
The Flex and ColdFusion code is here: http://coldfusion.pastebin.com/m640b8baa Sending a typed object from CF to Flex works as it should. Sending from Flex to CF strips off all of the properties and only assigns the methods present in the aliased cfc.

[flexcoders] Grouping ContextMenuItems

2008-06-25 Thread linusgraybill
How on earth do you control whether or not a line separates custom ContextMenuItems? I would like to have two items with no line between them, and then a line, and then one more item. The code below is producing a line between every menu item. Many thanks! Linus [Bindable] private var

[flexcoders] Re: AIR Gmail rss reader

2008-06-25 Thread Spike
Just in case any one else runs into this, I figured out the problem. As usual, the root cause was between the seat and the keyboard. When logging in to Gmail for domains, you have to specify the full email address as the username, not just the bit before the '@' Kinda obvious really. Spike On

[flexcoders] Styling AdvancedDataGridItemRenderer

2008-06-25 Thread Amy
I'm trying to extend AdvancedDataGridItemRenderer to allow the styleFunction to set both the backgroundColor and the alpha of the item in. I've used a combination of the custom style example in the docs and the example here http://flexpearls.blogspot.com/2008/02/row- background-color-in.html.

RE: [flexcoders] Re: Problems passing value objects between Flex and CF

2008-06-25 Thread Battershall, Jeff
Eric, You have to use the this keyword in order to make your properties public. Using the variables scope keeps your properties private inside the CFC. So your code needs to read: cfscript //Initialize the CFC with the default properties values.

Re: [flexcoders] Dynamically creating instances of custom components

2008-06-25 Thread Tom McNeer
Tracy, Thanks for your advice. A Repeater is what I need, of course. Not sure why I missed it. I'm used to doing TileLists and such; just never used a generic Repeater before. Mike, Thanks for pointing out the error. It's interesting that a duplicated type declaration like that would throw an

  1   2   >