[flexcoders] Applying a filter to part of a DisplayObject

2009-08-12 Thread mauricen
I'd like to apply a ColorMatrixFilter to one rectangular area of a DisplayObject, leaving the rest untouched. To solve this problem, I've seen suggestions of cropping a bitmap snapshot of the DisplayObject and overlaying it on the original, but that hack won't work for me. You'd think this

[flexcoders] How to run another air application from air application

2009-08-12 Thread vladakg85
I have one air application. Now I want to make custom update (no default, I want my component) and I made it to download new application version to my app folder now I need to install it, but I don't know how to invoke newVersion.air from action script code??? I try with this but doesn't work:

Re: [flexcoders] How to run another air application from air application

2009-08-12 Thread Ian Thomas
Take a look at the flash.desktop.Update class - call the update() method on the AIR file in question rather than using URLLoader(). There's a code snippet that does what you want here: http://livedocs.adobe.com/flex/3/html/help.html?content=updating_apps_1.html HTH, Ian On Wed, Aug 12, 2009

[flexcoders] Strange type-coercion error message! Ideas?

2009-08-12 Thread nwebb
*TypeError: Error #1034: Type Coercion failed: cannot convert Tools.dal.dataObjects::datainvestmentallocat...@2d28301 to Tools.dal.dataObjects.dataInvestmentAllocation.* This one has me a little stumped! The client's project is modular, and has a 'global' array of data objects. They access them

Re: [flexcoders] Strange type-coercion error message! Ideas?

2009-08-12 Thread Ian Thomas
Looks like your objects belong to different ApplicationDomains. By which I mean - object 1 is created from a class called Tools.dal.dataObjects.dataInvestmentAllocation defined by module 1, and object 2 is created from a class called Tools.dal.dataObjects.dataInvestmentAllocation defined by

Re: [flexcoders] connecting data/passing data between 2 modules

2009-08-12 Thread mikehh mikey
Does anyone know how to passing a data between two different modules. As long as I tried..a module can't read an ID from another module and that makes me stuck... any solution ? From: Ian Thomas i...@eirias.net To: flexcoders@yahoogroups.com Sent: Wednesday,

Re: [flexcoders] Strange type-coercion error message! Ideas?

2009-08-12 Thread nwebb
Ian, you are an absolute star! Thank you so much. I get the feeling I could have been going round in circles over this one. For anyone searching these threads, just to clarify, the solution was to add the second line of code as shown below: _mainModuleLoader = new NoviaModuleLoader();

[flexcoders] Protection in a SaaS application

2009-08-12 Thread christophe_jacquelin
Hello, I have a Flex application that runs with the Saas model. I rent the application for 1 month. They pay for a login and a password. How to protect the application if someone put the login and password on an internet forum ? Thank you, Christophe,

Re: [flexcoders] Protection in a SaaS application

2009-08-12 Thread Pedro Sena
The better way is to protect your app from make multiple logins with the same credentials. If the user wanna share his credentials, no problem, but he cannot use it while someone else is doing it. Other alternatives(like restriction per IP) are not very good. AFAIK, the is no 'tech' way to do

Re: [flexcoders] Re: Combobox like on http://www.bombaysapphire.com

2009-08-12 Thread Yesaya handoyo
@huhgawz Thanks,i'll try it out.Are there other possibilties then flexwheel? On 8/12/09, huhgawz huhg...@yahoo.com wrote: --- In flexcoders@yahoogroups.com, yonghan79 yongha...@... wrote: Hi all,i wonder does anyone ever before create combobox like the one here bombaysapphire.com born detail

Re: [flexcoders] Re: Combobox like on http://www.bombaysapphire.com

2009-08-12 Thread Yesaya handoyo
By the way,how to use it?I look on the web,using minVal and maxVal.In the newest version,there are no minVal and maxVal option...Thanks.. On 8/12/09, Yesaya handoyo yongha...@gmail.com wrote: @huhgawz Thanks,i'll try it out.Are there other possibilties then flexwheel? On 8/12/09, huhgawz

[flexcoders] Weird issue with movieclip/sprite uiComponent

2009-08-12 Thread djhatrick
I have an embedded UIComponent, with a sprite inside, what's weird is that every time I compile I either have to extend Sprite, or MovieClip to make my component work. I understand that Flex automatically uses a movieclip as a sprite if it has one frame in the timeline, like usually all my

[flexcoders] Send an automatic Password

2009-08-12 Thread christophe_jacquelin
Hello, How to automatically send a password to a customer of my Flex Application when I receive his paiement by a system like Paypal ? Thank you, Christophe,

[flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Wesley Acheson
Hi I've an application already mostly written. *Background*: This application uses several custom components that extend or contain TabNavigators. A requrirement which I've missed is that if the user doesn't have permission to view a tab then the tab doesn't appear in the tab navigators.

[flexcoders] This mailing list vs the forum.

2009-08-12 Thread Wesley Acheson
I saw a mail a while ago about new Adobe forums. Those of you who use both which do you perfer flexcoders or the Adobe forums? I've an impression that the community is pretty strong here. ] Please only answer If you use both. Its not a real opinion to get the opinion of someone who only uses

RE: [flexcoders] Send an automatic Password

2009-08-12 Thread Jake Churchill
Use whatever server you have available to you (i.e. php, coldfusion) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of

re: [flexcoders] Send an automatic Password

2009-08-12 Thread Wally Kolcz
Use a backend technology (CF, .NET, PHP, Ruby, etc) to generate an email with a random or preset password). Flex cannot do it alone...kinda. From: christophe_jacquelin christophe_jacque...@yahoo.fr Sent: Wednesday, August 12, 2009 8:02 AM To:

Re: [flexcoders] Re: Instantiation of State Objects

2009-08-12 Thread Wesley Acheson
Maybe you could use the activate event instead of the creation complete event? On Tue, Aug 11, 2009 at 2:23 AM, Geoffrey gtb...@yahoo.com wrote: I'm getting a clearer picture of why I'm seeing state-related issue. In my setup, state B is a custom component. This component has event

[flexcoders] Spark components and addChild(UIComponent)

2009-08-12 Thread |Mirko
Hi, When using mx Halo components, one can create class which extends UIComponent and simply use addChild to add that custom class to let's say Panel or some other Halo component. That approach doesn't work anymore with Spark components because when you use

[flexcoders] How to run an AIR app in headless mode?

2009-08-12 Thread Sonia Gupta
I have to call an AIR app from my Flash app but in headless mode.. I know the command of FLFile.runCommandLine (but what will go here?); P.S: I am running this code on Windows machine.

[flexcoders] Re: This mailing list vs the forum.

2009-08-12 Thread mitchgrrt
I used to use the forums but there wasn't much on them. There's a lot more here. The value of one of these things goes up with the number of people, and for whatever reason it seems like a lot more people use FlexCoders than the Adobe forums. - Mitch --- In flexcoders@yahoogroups.com,

[flexcoders] How to use XML file as dataProvider for s:List

2009-08-12 Thread mattcalthrop
Hi all. I am using FB4, and want to specify an XML file to be used as the dataProvider for an s:List object. However, I just can't seem to work out how to do it. Have read manuals, done google searches, checked forums - all to no avail. Can anyone help me please? Format of XML file is thus:

[flexcoders] IS IT POSSIBLE??Load an SWF in another SWF using 2 diff loaderContext appdomain

2009-08-12 Thread Mehdi
I am getting to the conclusion that the following is not supported at all. (Using flex 3.2 SDK): Loading one SWF into another one using 2 different loaderContext. I tried using the Loader and the SWFLoader (and to some extend the ModuleLoader) 1- Build a simple Flex App with a combo box or

[flexcoders] Re: IS IT POSSIBLE??Load an SWF in another SWF using 2 diff loaderContext appdomain

2009-08-12 Thread Mehdi
ERRATA: Please read the problem line as: Loading one SWF into another one using 2 different loaderContext application domains. --- In flexcoders@yahoogroups.com, Mehdi elextra...@... wrote: I am getting to the conclusion that the following is not supported at all. (Using flex 3.2 SDK): Loading

Re: [flexcoders] How to run an AIR app in headless mode?

2009-08-12 Thread Gautam P
I have done this on a linux machine and it works. air app can run in headless mode, but not your flash app (on ur browser). you need to disable GUI on linux and then have xvfb installed to get the air app working in headless mode. On Wed, Aug 12, 2009 at 6:15 AM, Sonia Guptasoniagup...@yahoo.com

[flexcoders] BitmapData and Matrix: teach a man to fish (aka matrix).

2009-08-12 Thread flexaustin
Apparently I don't quite get how to use a matrix yet. I thought I did. So I have on stage of my Flex project a custom object that is 10,000 px wide by 6,000 px tall. I need to be able to print this so what I have done or tried to do is cut up the custom object into chunks of bitmapdata 1000px by

Re: [flexcoders] How to use XML file as dataProvider for s:List

2009-08-12 Thread Gautam P
var imageXML:XML = new XML('imageListimage location=path/to/image1.jpg/'+ 'image location=path/to/image2.jpg//imageList'); var s:List = new List(); s.dataProvider = imageXML.image; // this give a XMLList (e4x expression) s.labelfield = @location; // to display location in the list. to access

RE: [flexcoders] How to run an AIR app in headless mode?

2009-08-12 Thread Jake Churchill
In your -app.xml file you need to have this: systemChromenone/systemChrome In your main WindowedApplication tag, you need this attribute: showFlexChrome=false Also, you'll need to minimize the native window that comes with the AIR application or close it without exiting the app

Re: [flexcoders] Spark components and addChild(UIComponent)

2009-08-12 Thread |Mirko
I tried that but still didn't work :/ |Mirko wrote: Hi, When using mx Halo components, one can create class which extends UIComponent and simply use addChild to add that custom class to let's say Panel or some other Halo component. That approach doesn't work anymore with Spark

[flexcoders] Embedding Emmentaler Fonts

2009-08-12 Thread Tim Sawyer
Hi, I'm trying to embed the Emmentaler font from lilypond (www.lilypond.org) in order to be able to output musical notation with Flex. If I embed the font like this: mx:Style @font-face { src: url(/usr/share/lilypond/2.12.1/fonts/otf/emmentaler-26.otf);

[flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
I have a custom ItemRender that uses an ArrayCollection dataProvider. Everything loads up and displays nicely, but I am having a heck of a time finding out how to get at a specifc item in the list to change its state - something like myDataContainer.ItemArray[10].state = my_custom_state to get at

RE: [flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Tracy Spratt
I typically solve this problem using a TabBar and a ViewStack. The ViewStack has all the components and dataProvider for the TabBar is built according to the permissions, with only the allowed functions. The dataProvider items have the index to the corresponding ViewStack child, and the change

[flexcoders] Re: ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
I saw this info in another thread, and it makes sense, especially since I'm thinking of using virtualization: Renderers are virtual There's only as many renderers as you can see on screen plus one or two. If you have 1000 items and only see 8, there's only 8 to 10 renderers so

RE: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Tracy Spratt
access to the components that get created from the ArrayCollection. Is there a way? Short answer, no. Longer answer: itemRenderers are recycled and only the visible renderers even exist. When using item renderers, any state that depends on the item/row must be driven by the item. You need

[flexcoders]Is it possible to write a googletalk client in AIR

2009-08-12 Thread dorkie dork from dorktown
If so can you provide some guidance before hand? Thanks!

RE: [flexcoders] Re: ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Tracy Spratt
If there is not already a property that is suitable, then yes, add a property. Repeating my advice, find an example and modify it. Interactive itemRenderers are a bit complicated. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com

Re: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
Thank you very much Tracy. What do you suggest to show/hide specific items based on an outside event? I am hesitant to *remove* the item from the ArrayCollection as I have to add it back at some point, maintaining the same complicated sort order. Currently my ArrayCollection contains a list of

[flexcoders] Re: Send an automatic Password

2009-08-12 Thread Michael Slinn
I recently set up an IPN responder with PayPal so I can email people download instructions who buy my book. I blogged about this last week: http://www.insideria.com/2009/08/certified-adobe-flex-3-with-ai.html It only took a day and a half to get the proof of concept working, but another 7 days to

RE: [flexcoders]Is it possible to write a googletalk client in AIR

2009-08-12 Thread Tracy Spratt
I can't speak to googletalk specifically, but I am working on a project to build a front end to google analytics. If googletalk uses the standard google api stuff I may be able to help a little, though I am learning as I go. One problem I have found is that while the API is available through

RE: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Jake Churchill
When does the state need to change? You probably need to be looking for some kind of an event (ListEvent most likely) Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE 68154 http://www.cfwebtools.com http://www.cfwebtools.com 402-408-3733 x103 From: flexcoders@yahoogroups.com

RE: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Tracy Spratt
To show/hide items, use a filter on the collection. It does not actually remove any items. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Wednesday, August 12, 2009 4:21 PM

Re: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
@Jake, I am implementing search-as-you-type, so there's a separate input box outside of the itemrender that needs to show/hide items that match or don't match what was typed in. I am using the *change* event of the search box. @Tracy, thanks for the suggestion, I tried that originally and it

Re: [flexcoders] TabNavigator changing from MXML to actionscript.

2009-08-12 Thread Wesley Acheson
Thanks thats good advise. I'll try to get it to work like that. On Wed, Aug 12, 2009 at 10:04 PM, Tracy Spratt tr...@nts3rd.com wrote: I typically solve this problem using a TabBar and a ViewStack. The ViewStack has all the components and dataProvider for the TabBar is built according to

RE: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Tracy Spratt
Why would you not use commitProperties()? Where else would you do the work? Do not do it in set data(). Do you understand why? Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz

Re: [flexcoders]Is it possible to write a googletalk client in AIR

2009-08-12 Thread Ian Thomas
I believe GoogleTalk uses the open XMPP format. There's an AS3 library for XMPP here: http://code.google.com/p/as3xmpp/ HTH, Ian On Wed, Aug 12, 2009 at 9:16 PM, dorkie dork from dorktowndorkiedorkfromdorkt...@gmail.com wrote: If so can you provide some guidance before hand? Thanks!

[flexcoders] Execute events while loop is iterating - possible?

2009-08-12 Thread Baz
If I have a FOR loop that dispatches events, is it possible that those events will be acted on before the loop finishes? For example: FOR LOOP BEGIN 10 ITERATIONS DISPATCH EVENT TO CHECK A CHECKBOX FOR LOOP END In the previous pseudo code, lets say the logic in each iteration is very

Re: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Baz
Tracy, I always make visual changes in commitProperties and/or updateDisplayList - me and the component life cycle are good buddies :) In this case with the iterator, I'm still figuring out how items get refreshed and whether there are high-level functions that take care of making visual changes

[flexcoders] Performance of looping through Arrays and ArrayCollections

2009-08-12 Thread Baz
This (older) blog posthttp://www.phusor.com/index.cfm/2007/2/13/How-you-loop-in-AS3Flex-2-can-affect-layoutsays that looping through an ArrayCollection using FOR-IN is faster than using a regular FOR loop - any truth to this? Are there faster or slower ways to loop through ArrayCollections or

Re: [flexcoders] Execute events while loop is iterating - possible?

2009-08-12 Thread Wesley Acheson
Short answer no. I'm not sure If thats a good thing in your use case or not. Basically flex is single threaded so the events only get processed after the loop finishes. If you need it to be otherwise you have to break out of the loop. The other problem with doing a 10 iterations is that you

Re: [flexcoders] Execute events while loop is iterating - possible?

2009-08-12 Thread Baz
Thanks a lot Wesley, you confirmed my suspicion. I exaggerated my example to emphasise my point, its not that crazy in my app :) Never heard of pseudo threading before, googled some good resources, thanks for pointing me in a direction. Baz On Wed, Aug 12, 2009 at 3:35 PM, Wesley Acheson

[flexcoders] AIR Flex based sub-application and Sandbox bridge

2009-08-12 Thread joangarnetdotcom
Hi there, I've been unable to get a simple test sub-application to load into a main application by using a Loader, being the sub-application in a sibling ApplicationDomain and also in a different SecurityDomain (portal like structure). What I wanted to accomplish was to take advantage of the

[flexcoders] Need clarity on reducing the module size

2009-08-12 Thread dfeingol
When creating a module is there any way to exclude the Flex framework code. For example, I have an application called MyApplication.mxml that loads a module component called company.mxml . In order to reduce the size of the module I use the recommended approach from Adobe. First, I perform a

[flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-12 Thread mattcalthrop
Thanks Gautam. I think we're almost there... except: I want the XML to reside in an external file, not as a string in the AS3 code. Is that easy to do? cheers, Matt --- In flexcoders@yahoogroups.com, Gautam P p.gau...@... wrote: var imageXML:XML = new XML('imageListimage

[flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-12 Thread mattcalthrop
That's almost it - but I want the XML to reside in an external file, not in a string in the AS3. Is that easy? Matt PS - this may be a duplicate post... I replied already, but haven't seen it appear on the Y!group yet. --- In flexcoders@yahoogroups.com, Gautam P p.gau...@... wrote: var

Re: [flexcoders] Embedding Emmentaler Fonts

2009-08-12 Thread Wesley Acheson
Maybe the font only has bold. You need a seperate embedding for bold fonts. On Wed, Aug 12, 2009 at 9:51 PM, Tim Sawyer l...@calidris.co.uk wrote: Hi, I'm trying to embed the Emmentaler font from lilypond (www.lilypond.org) in order to be able to output musical notation with Flex. If I

Re: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-12 Thread Wesley Acheson
If you want to load it from the server its easiest to make a http request. If you don't need to change it at runtime. You can embed an xml easy enough. anyway to load one see http://livedocs.adobe.com/flex/3/html/help.html?content=13_Working_with_XML_11.html regards wes On Wed, Aug 12, 2009 at

[flexcoders] *** So you think you know ActionScript? (Read original post first) ***

2009-08-12 Thread Dave Glasser
Consider this code snippet: var xml:XML = outerinnernull/inner/outer; var xmlList:XMLList = xml.inner; trace(xmlList == null); What does the trace statement output, true or false, and why? Please provide an answer without running the code (of course) and, better yet, without consulting any

[flexcoders] Someone have sometime to help me develop a datagrid before this weekend? Key word is help me - not write for me.

2009-08-12 Thread Raymond Brown
Anyone, Wwas wondering if I could ask a couple of questions - aside from this one. 1. Is it possible to 'solely' in actionscript make a datagrid from an arraycollection? I am trying and it keeps dying. 2. Is it possible to have the cells in a datagrid show one of three png images all

Re: [flexcoders] *** So you think you know ActionScript? (Read original post first) ***

2009-08-12 Thread Paul Andrews
Dave Glasser wrote: Consider this code snippet: var xml:XML = outerinnernull/inner/outer; var xmlList:XMLList = xml.inner; trace(xmlList == null); What does the trace statement output, true or false, and why? Please provide an answer without running the code (of course) and, better yet,

[flexcoders] Re: *** So you think you know ActionScript? (Read original post first) ***

2009-08-12 Thread bsyyu
--- In flexcoders@yahoogroups.com, Paul Andrews p...@... wrote: Dave Glasser wrote: Consider this code snippet: var xml:XML = outerinnernull/inner/outer; var xmlList:XMLList = xml.inner; trace(xmlList == null); What does the trace statement output, true or false, and why?

[flexcoders] How To Print a text File ?

2009-08-12 Thread raja_s_patil
Hi, I am developing a flex application with PHP backend. I have created a Report in PHP in the form of Text file and I would like to print it on client side either on printer attached to client or network printer on Client LAN. How could I do this without disturbing Pagination in text file. The

[flexcoders] Re: TabNavigator changing from MXML to actionscript.

2009-08-12 Thread jaywood58
An easy way might be to use different viewstates (e.g., a base state without the restricted tab, and a derived state that includes the restricted tab), then simply set the appropriate viewstate based on user permissions. Similar to your init() code, it might look something like: if

[flexcoders] *** UPDATED: So you think you know ActionScript? (Read original post first) ***

2009-08-12 Thread Dave Glasser
Just so there's no confusion, the XML literal in the code snippet below should contain no whitespace at all. It seems that when I posted originally in HTML, there was a space added on either side of the string null by the mail client, but they shouldn't be there. --- On Wed, 8/12/09, Dave

RE: [flexcoders] ItemRender - Access Specific Item at Run-time

2009-08-12 Thread Tracy Spratt
That depends on what your item render is supposed to do when the value of the isVisible property changes. Tracy Spratt, Lariat Services, development services available _ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Baz Sent: Wednesday, August 12,

RE: [flexcoders] Re: How to use XML file as dataProvider for s:List

2009-08-12 Thread Tracy Spratt
You have two choices. You can embed the xml from an external file using mx:XML source=myFolder/Myfile.xml /, which is a compile-time process, or you can load it at run-time using httprequest as Matt says. Tracy Spratt, Lariat Services, development services available _ From:

[flexcoders] communicating between SharePoint and Flex?

2009-08-12 Thread Mic
Specifically I need to take the logged in user info from the UserControl web part and get it into the Flex app which is sitting in a PageViewer webpart. Generally I want to learn as much as I can about SP to Flex communication because I think there is a tremendous opportunity for Flex

RE: [flexcoders] *** So you think you know ActionScript? (Read original post first) ***

2009-08-12 Thread Tracy Spratt
_ From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Paul Andrews Sent: Wednesday, August 12, 2009 9:33 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] *** So you think you know ActionScript? (Read original post first) *** Dave Glasser