[flexcoders] Air File Is Damaged Error

2010-02-12 Thread James
I keep getting the same The application could not be installed because the AIR file is damaged. etc... message every time I attempt to test the install of an air file I've just made from an application in flex. I've tried exporting other applications for release build and they work fine but it

Re: [flexcoders] Air File Is Damaged Error

2010-02-12 Thread Johannes Nel
one thing which can cause this is if the update.xml file and the air file have different versions. On Fri, Feb 12, 2010 at 2:54 PM, James garymoorcroft_...@yahoo.co.ukwrote: I keep getting the same The application could not be installed because the AIR file is damaged. etc... message every

Re: [flexcoders] A security question...

2010-02-12 Thread Warren
You can mix them. What you need to do is make 2 ROs -- one tied to the secure service and one tied to the normal service. mx:RemoteObject id=RONormal destination=ColdFusion source=xxx showBusyCursor=true mx:RemoteObject id=ROSecure destination=SecureColdFusion source=xxx showBusyCursor=true

Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-12 Thread valdhor
Nope, sorry. How about just exporting a Flex Builder Project Archive and including it in your email to the list. I have seen many people post projects this way. --- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote: hi Valdhor i sent the self contained app to your email. hope you got

[flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread James
Yes but the fact that other air files I make are working shows that it's not a flex/air related problem doesn't it? If it is this though how would I fix it? --- In flexcoders@yahoogroups.com, Johannes Nel johannes@... wrote: one thing which can cause this is if the update.xml file and the

Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-12 Thread ZIONIST
sent to valdhorli...@embarqmail.com

[flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread seanmcmonahan
Have you recently changed sign certificates? Had a similar problem when our certain expired. Ended up having to migrate the old one to the new for each update. --- In flexcoders@yahoogroups.com, James garymoorcroft_...@... wrote: Yes but the fact that other air files I make are working

RE: [flexcoders] Module Memory Leaks

2010-02-12 Thread Battershall, Jeff
Thanks Alex, I had gone around and around to get a certain module to unload and was unable to determine the cause. Your article was very informative and my suspicion is that an image loaded at runtime was at fault. But that really isn't the same thing as compile-time embedded assets, is it?

[flexcoders] navigateToURL error

2010-02-12 Thread Darrin Kay
I am tring to get some text become a link in a Flex3 app, but getting an error I know the data is getting pulled in, in this case I hard coded the xml with http://www.espn.com for testing so it is not the link. mx:Repeater id=imageRepeater dataProvider={imageData.lastResult.panel} mx:Panel

[flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread James
I don't think so. In a project I made a while ago I have an app called coolvisi1. A few months back I created an air file from this very app called coolvisi1.air and I've tested it just now and it works perfectly. The app in question hasn't even been touched since back then. I've just tried to

Re: [SPAM] [flexcoders] Animating items in a tilelist when filtering arraycollection

2010-02-12 Thread valdhor
Well, I got the file but it is not standalone - it requires a ColdFusion server which I do not have. --- In flexcoders@yahoogroups.com, ZIONIST stinas...@... wrote: sent to valdhorli...@...

[flexcoders] Re: navigateToURL error

2010-02-12 Thread valdhor
Try this... mx:Text text={imageRepeater.currentItem.linkText} click={navigateToURL(new URLRequest(imageRepeater.currentItem.link), 'blank');} x=109 y=200 fontFamily=Gunplay fontSize=14/ Although I would recommend creating a custom component and repeating that. --- In

RE: [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread Jim Hayes
Are you including any other files in the package? I seem to remember that certain characters in their file names could cause this problem. Maybe an ampersand ??? I'm sorry, it was quite a while ago and I've forgottten exactly which char(s) caused it for me. There was a bug open on it at the time

[flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread James
Thanks for that. I'll try it. How can I solve a lack of space in my temp directory exactly? I've heard of the airappinstall thing too but how exactly do I do this? I'm on vista. Sorry if this all sounds stupid. I'm just a flex student at the moment. Cheers for your help so far. --- In

Re: [flexcoders] Flex builder automation?

2010-02-12 Thread Mykola Dzyuba
Hi Nick, Yes, it is possible. What is the goal of the automation? If you want just a clean build done automatically, the ANT build would be a good option. If you want to automate Flash Builder UI, you can develop an Eclipse plugin that would do that. Or you can use Eclipse UI automation

[flexcoders] Tip only show on some points?

2010-02-12 Thread markflex2007
Hi, I have a slider: mx:HSlider id=hsViewminimum=25 maximum=1000 width=470 value=500 visible=true tickValues =[25, 100, 200, 500, 1000] labels=[25 , '500', '1,000' ] x=0 y=73 / May I only show tip at 25, 100, 200, 500 and 1000 and I do not want to show Tip when slider on ther

RE: [SPAM] [flexcoders] Re: navigateToURL error

2010-02-12 Thread Tracy Spratt
.creating a custom component and repeating that yes, yes, yes. Pass in the entire currentItem and store it in a public variable, and then you will be able to code the repeated item cleanly and clearly. I'd suggest having the component dispatch an event on click, then listen for that in the

RE: [SPAM] [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread Tracy Spratt
Yes, look at the appinstall log. I don't recall exactly how to do that so just google it. In my case it was a bad character in the filename, an ampersand if I recall correctly. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com

[flexcoders] How do you use a mouse click and drag to scroll a datagrid?

2010-02-12 Thread luvfotography
How can I use a mouse drag to scroll a datagrid? I want to click anywhere in the datagrid and drag up or down to scroll the datagrid in that direction. thanks,

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Richard Rodseth
Yes, it's in an override of set dataprovider which calls super (I would not have done things this way). And it does sort correctly initially. It's only when I click on the column that I get the error. One thing I'm asking myself is if it's harmful or just redundant to specifiy dataField if you

[SPAM] [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread James
Ah right. The name of the swf file itself contained an ampersand or the air file which you compiled from your application? I tried changing the name of the air file to include only letters but that didn't seem to work either. --- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote:

RE: [SPAM] [SPAM] [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread Tracy Spratt
Im my case it was an image file in the assets folder. Look in the app install log. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of James Sent: Friday, February 12, 2010 2:36 PM To:

[flexcoders] Null pointer exceptions in call from Flex

2010-02-12 Thread Tom McNeer
Hi, I have a ColdFusion application that uses a Flex app as a front end. Until recently, everything worked smoothly. But now, I am getting a stack of NullPointerException errors that seem to come from the gateway's serializer. I am seeing this occur in both dev and production environments, and I

[flexcoders] FocusManager throws an error once in a while - defaultButton null

2010-02-12 Thread djhatrick
TypeError: Error #1009: Cannot access a property or method of a null object reference. at mx.managers::FocusManager/focusInHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:601] There's nothing in the debugger but this error, happens a lot,

[flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
I need extract the rendered text from all cells of a DataGrid, whether or not they are all displayed. The following code dies because renderer is null: public var dp:ArrayCollection = new ArrayCollection(); /** Obtain formatted text data from the DataGrid's dataProvider. * Other data

[SPAM] [SPAM] [flexcoders] Re: Air File Is Damaged Error

2010-02-12 Thread James
Ok I made a copy of the app thats not working NonWorkingCoolvisi tried to install it to bring up the error and then went through the .airappinstall.log process and it produced the following log:- Starting app install of file:///C:/Users/Gaz/Desktop/NonWorkingCoolvisi.air UI SWF load is complete

[flexcoders] Re: FocusManager throws an error once in a while - defaultButton null

2010-02-12 Thread djhatrick
Looks like this has been fixed in the 3.5 sdk, thanks engineers if (_defaultButton) _defaultButton.emphasized = true; --- In flexcoders@yahoogroups.com, djhatrick djhatr...@... wrote: TypeError: Error #1009: Cannot access a property or method of

[flexcoders] Creating a build.xml for a project that uses as3corelib

2010-02-12 Thread Paul Sanders
I have a Flex project that uses as3corelib for JSON coding and decoding and it builds and deploys fine within FlexBuilder but I cannot get my regular build.xml file to compile it from the command line. I get the following: [mxmlc] Loading configuration file

RE: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Tracy Spratt
I will answer, but you probably won't like the answer. This is simply not possible. In order to optimize performance, DataGrid and the other list components only create(render) the visible elements. If a row is not visible, it does not exist. You can't look sideways into your tv screen and

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Alex Harui
You should always specify a valid dataField. If you have null data items or items that are dynamic and missing properties you can hit this error. On 2/12/10 11:35 AM, Richard Rodseth rrods...@gmail.com wrote: Yes, it's in an override of set dataprovider which calls super (I would not

Re: [flexcoders] Module Memory Leaks

2010-02-12 Thread Alex Harui
Runtime-loaded images need to be “disposed()” Set the source to null and let it validate or call validateNow(). I’m not sure about embedded image assets. I’ll try to find time to look into that. We’ve found two remoteobject bugs recently. One is that, on every call, a few bytes leak. It

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
I need to post the displayed data to a server, complete with formatting. The dataProvider does not help much; I'd have to replicate the work that the datagrid does in determining the properties displayed by each column, and duplicate the job of the item renderers in order to extract the

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread turbo_vb
If you don't have too many items in the dataProvider, you could create a second DataGrid, with the same DataProvider and itemRenderers, that does not have a height set and is not visible. The second DataGrid would render all of the items in the dataProvider, because the height isn't set. Then

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Richard Rodseth
Original question: Is there a recipe for sorting initially on a column which has a computed value in it? I put together the example below which works great. I'm not sure what's triggering the error in the actual code I'm dealing with, but this example convinces me it's time for some refactoring.

[flexcoders] How to use Flex Unit 4 with Mate

2010-02-12 Thread dorkie dork from dorktown
Can anyone explain how to setup mate with a Flex Unit 4 test? For example, where do I create an instance of the event map? I have [Before] [After] [BeforeClass] [AfterClass] methods Would it be something like this: public function setup():void { var myMap:EventMap = new MainEventMap();

[flexcoders] Re: Creating a build.xml for a project that uses as3corelib

2010-02-12 Thread tntomek
Paul, why not pull down the AS3corelib source and compile that, its pretty easy since you can just specify include=*. --- In flexcoders@yahoogroups.com, Paul Sanders tendan...@... wrote: I have a Flex project that uses as3corelib for JSON coding and decoding and it builds and deploys fine

[flexcoders] AdvancedDataGrid Grouping with XML

2010-02-12 Thread srieger_1
OK, I have made some progress on this issue but still unable to resolve it completely. It's getting embarrassing already. . . . I am trying to use some XML that I get from an application to feed an advanceddatagrid where I can group the entries. I have a demo with view source here :

[flexcoders] Re: Null pointer exceptions in call from Flex

2010-02-12 Thread Flex
Hi Tom, Since it apparently happens randomly, it seems it depends on the data that is being passed from Flex to CF and that can vary depending on user input or selection. So, it seems some combination of this data is not loved by the CFASSerializer in the AMF gateway. I think you will have to

[flexcoders] Re: Obtaining rendered text from a DataGrid

2010-02-12 Thread Flex
Sorry to hear your posts get unanswered. I can only suggest a 'try'...did you try using the datagrid's indextoitemrenderer method instead of creating a new item renderer... I have seen something similar in the DataGrid to Excel component on Flexdownloads.com but there the exercise was limited

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Richard Rodseth
And it appears the error *was* caused by having a column with a value for both labelFunction and dataField. On Fri, Feb 12, 2010 at 3:36 PM, Richard Rodseth rrods...@gmail.com wrote: Original question: Is there a recipe for sorting initially on a column which has a computed value in it? I

[flexcoders] Re: Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
I meant formatting, as in currency, decimals, thousands separators, etc. but I don't need stylesheet info like font size or face. Seems like your approach may be exactly what I need. indexToItemRenderer() returned null, but maybe I invoked it improperly. I suppose you mean Flex DataGrid Excel

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
--- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: If you don't have too many items in the dataProvider, you could create a second DataGrid, with the same DataProvider and itemRenderers, that does not have a height set and is not visible. The second DataGrid would render all

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Amy
--- In flexcoders@yahoogroups.com, Tracy Spratt tr...@... wrote: I will answer, but you probably won't like the answer. This is simply not possible. In order to optimize performance, DataGrid and the other list components only create(render) the visible elements. If a row is not

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
I must take the DataGrid as I find it. If no labelFunction is defined, that approach won't work; also each item in the dataProvider might be manifested in 0 or more columns. This approach probably won't be general enough. Thanks, Mike You should be able to do this by running the

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Alex Harui
I’m still not sure what your goal is and what things are under your control. I can have a renderer that displays content not found in the data provider, or one that shows colors and no text. A renderer can have multiple text widgets inside it and be mixed with other controls. Is there some

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Alex Harui
I doubt that would be true unless the dataField was didn’t exist as a top-level property in the data objects. I ran your test case and never got any error. Looking at the code, I don’t know why you need two sort functions. They look the same. Also, I would apply the sort after setting the

Re: [SPAM] [flexcoders] Obtaining rendered text from a DataGrid

2010-02-12 Thread Mike
Alex, Your code is very interesting, and quite instructive. Thank you. You said that your code handles labelFunction and dataField; however the asdoc for the itemToLabel() method reads: public function itemToLabel(data:Object):String Returns the string the renderer would display for the

Re: [flexcoders] Initial sort on computed column

2010-02-12 Thread Richard Rodseth
Lots of crossed wires here. Sorry I wasn't more clear. My last two messages were the solution for the benefit of others, not further puzzlement. Yes the test case I included runs perfectly, as I said. Yes, a specified dataField must exist. The code I inherited had both a non-existent dataField

[flexcoders] I need a recommendation of an actionscript 3 book for Flex

2010-02-12 Thread fred44455
All the books that I checked are AS3 books for Flash. Where can I find a book for AS3 for Flex 3(4). Or maybe all the Flex 3 books explain AS3 and I don't need them? But I would like to know AS3 very well as most Flex 3 books don't spend much time going into details about AS3. What are your