RE: [flexcoders] Re: AIR and Framework RSL's

2009-09-16 Thread Alex Harui
I haven't tried loading the SWZs from AIR. Darrell's our expert on RSLs so maybe he'll respond. I would think you wouldn't want to pick up the SWZs from the network, but I would think you could put them in one central spot on the client computer. Alex Harui Flex SDK Developer Adobe Systems

[flexcoders] child component listens for event on parent

2009-09-16 Thread edencane
Hi. Im trying to get a child component to listen for an event that happens on tabchange in the parent. The parent is an application with a TabNavigator object. When the tabchanges I want the the child component to carry out some stuff. In the parent Ive got: mx:Metadata

Re: [flexcoders] child component listens for event on parent

2009-09-16 Thread edencane
I was able to get the event happening by changing the component code to be: private function postInit():void { Application.application.addEventListener(buttonLabelEvent, buttonLabelHandler); } but now the event seems to trigger 3 times for every tab change but doesnt trigger on the first

[flexcoders] Complex shape selection

2009-09-16 Thread vladakg85
Hi, how to create complex selectable shape in flex. For example if I make Europe map. And There is countries like Germany, Italy, Greece etc. They all have their boundaries. And I want to create application so that user can select Greece for example but only selectable in her boundaries. If I

Re: [flexcoders] child component listens for event on parent

2009-09-16 Thread claudiu ursica
You'd be better listening to some property in your model and update that property when tabs are changing. Your approach doesn't convince me. But then, maybe I didn't get it right... C From: edencane lukevanderfl...@gmail.com To: flexcoders@yahoogroups.com

[flexcoders] How to add files when exporting air application

2009-09-16 Thread reflexactions
If I want to add swf modules or a compiled css file that are all extern (ie there is no explicit reference to them in the actual application code) and will be loaded at run time to an AIR package how do I do it? Just to clarify, I can run the app just fine at the moment so long as I manually

RE: [flexcoders] How to add files when exporting air application

2009-09-16 Thread Jake Churchill
Include them in the root of your package and when your app runs, check for them in the install directory. If they are not there, move them there. Here's some code that I use to do this with an included DB file in an AIR app: try

Re: [flexcoders] Bringing application to front

2009-09-16 Thread nhid
Ian, No, it's not an AIR application. I'm using Flexbuilder 3, lifecycle 2.5. Is there a way to get around to it? Thanks nhid On Tue, Sep 15, 2009 at 6:19 PM, Ian Thomas i...@eirias.net wrote: If it's an AIR application, you can use the .orderToFront() method of your WindowedApplication.

RE: [flexcoders] child component listens for event on parent

2009-09-16 Thread Tracy Spratt
You want to add the listener to the thing that dispatches the event, the application, and declare the handler in the component. Application.application.addEventListener(buttonLabelEvent, buttonLabelHandler); You will need to import the custom event. Tracy Spratt, Lariat Services,

[flexcoders] Re: Creation Complete flag?

2009-09-16 Thread valdhor
If it has already fired then your event handler will have run. --- In flexcoders@yahoogroups.com, dfalling dfall...@... wrote: Is there a publicly-exposed property on components that can be inspected to determine if they have finished creation yet? I know I can listen for

[flexcoders] Re: accessing Array created in Private function?

2009-09-16 Thread valdhor
Or, set the return type of the function to array and return the array. --- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote: Store the array in a bindable variable inside the class instead of in the function Jake Churchill CF Webtools 11204 Davenport, Ste. 100 Omaha, NE

[flexcoders] Re: How to add files when exporting air application

2009-09-16 Thread reflexactions
Thanks, However I understood that for security reasons AIR apps are prevented from writing to the application installation directory? --- In flexcoders@yahoogroups.com, Jake Churchill j...@... wrote: Include them in the root of your package and when your app runs, check for them in the

[flexcoders] Re: filtering advanced datagrid

2009-09-16 Thread valdhor
This article should help: http://jonathanbranam.net/solutions/filter-hierarchicalcollectionview-parent-child-data and possibly this one: http://jonathanbranam.net/flex3anatomy/class/HierarchicalCollectionView --- In flexcoders@yahoogroups.com, kaushal.shah05 kshah0...@... wrote: Here is

[flexcoders] Re: Creation Complete flag?

2009-09-16 Thread valdhor
I should probably clarify a bit. You could create your own creationComplete flag. private var thisComponentIsComplete:Boolean = false; then set it in your creationComplete event handler private function onCreationComplete():void { thisComponentIsComplete = true; } --- In

RE: [flexcoders] Re: How to add files when exporting air application

2009-09-16 Thread Jake Churchill
I'm not sure on that but it may be correct. The model variables I references in the code below were set as follows in my app: public static constDATABASE_PATH : String= File.applicationStorageDirectory.nativePath; public static

[flexcoders] Re: Creation Complete flag?

2009-09-16 Thread dfalling
Man, I'm doing a terrible job communicating my problems. So I want way for other components to inspect each other to see if they've completed. I can't just listen to the event, because the creation could have happened before I ever had a reference to the component to start listening. I'm

RE: [flexcoders] How to add files when exporting air application

2009-09-16 Thread Jim Hayes
In flexbuilder, to get those files into your .air package, try the following : Either tick copy non embedded files to output folder in project|properties|flex compiler, and with a bit of luck when you publish your .air from FB they will appear in the Air file contents screen included files

Re: [flexcoders] Re: Creation Complete flag?

2009-09-16 Thread Fotis Chatzinikos
Do what Valdhor explains: public var compCreated:boolean = false ; creationComplete() { compCreated = true ; } now when ever needed check if compCreated == true On Wed, Sep 16, 2009 at 5:13 PM, dfalling dfall...@gmail.com wrote: Man, I'm doing a terrible job communicating my problems.

[flexcoders] Re: Creation Complete flag?

2009-09-16 Thread valdhor
So, I still don't understand. How would you create a component without having a reference to it? Also, if you have a public var thisComponentIsComplete:Boolean in your component that gets set when the creationComplete event fires, why can't you just ask the component if it has been created?

[flexcoders] Re: Creation Complete flag?

2009-09-16 Thread dfalling
I have a custom tab navigator that will be attached to a viewstack. It needs to know if the viewstack's children have been created or not. This could happen before it is attached to the viewstack or some time after due to creationPolicy, so I absolutely can't just listen for the

[flexcoders] Re: How to add files when exporting air application

2009-09-16 Thread reflexactions
Thanks!!! This really helped. Actually I found that even with copy non-embedded files checked FB wouldn't copy content from linked folders only direct 'physical' folders under 'src' so I had to use your 'hit the back button' trick in the export screen, as you say a PITA but works! --- In

RE: [flexcoders] Re: Java/Flex questions answered by James Ward

2009-09-16 Thread James Ward
Yeah. Turns out that the folks at Stack Overflow didn't like the idea of the riacowboy tag. So you can still ask the question with sensible tags and then post a comment on my Ask the RIA Cowboy blog so that I know where to find it. Thanks. -James From: flexcoders@yahoogroups.com

[flexcoders] Re: Complex shape selection

2009-09-16 Thread jer_ela
Check out the ImageMap component in FlexLib http://flexlib.googlecode.com/svn/trunk/docs/flexlib/controls/ImageMap.html It works the same way in imagemap works in html, and you can use any of the tools used to define imagemap coords for html, to define the coords. Fireworks for example. ---

[flexcoders] Create an array from values with in an array collection

2009-09-16 Thread kpjj31
The info below is a result from remote object that is put into an arraycollection. How can I use actionscript to create an array fom all the PROFILEIDs within the ATTENDEEINFO Object. This array needs to be passed into another remote object. ATTENDEELIST 0 - ATTENDEEID DATE

[flexcoders] Re: Create an array from values with in an array collection

2009-09-16 Thread turbo_vb
var attendeeProfileIdArray:Array = []; for each ( var attendee:ATTENDEE in ATTENDEELIST ) { attendeeProfileIdArray.push( attendee.ATTENDEEINFO.PROFILEID ); } You might want to consider changing the name of your classes and properties to follow standard naming conventions. Using all

[flexcoders] Lagging Panel title

2009-09-16 Thread droponrcll
Hi, all; I have a component that extends Panel. The panel title is bound to a private bindable variable that I set in commitProperties. The title variable updates, but the titleTextField.text doesn't update, so the title always lags behind. I haven't done Flex on a regular basis in a few

[flexcoders] File size and Embed( image.png )

2009-09-16 Thread flexaustin
Anyone have any suggestions on the best way to import png files and keep the file size down? I have an app that can have up to 1000 imported png images with alpha backgrounds in my app. These images are 1 of 40 icons we offer in our app. These images were created in illustrator (web 2.0

[flexcoders] ItemRenderer killing datatips in List?

2009-09-16 Thread bgamblin
I've got an object that descends from List, and uses an itemRenderer. Recently, I tried adding datatips to it, but nothing shows up. When I set it to use a datatipFunction, the function never gets called. If, however, I remove the itemRenderer, datatips show up properly. Has anybody seen this

[flexcoders] Different behaviour between deployment and IDE execution

2009-09-16 Thread tendancer2000
Just finished my first ever Flex app (yay!) and deployed it to my tomcat server and it is behaving differently there compared to when I run it within the IDE. During the execution the Flex app makes an HTTPService call which returns a 404 if no data is found. My fault handler: if

[flexcoders] truncateToFit() and concatenated Strings

2009-09-16 Thread Matthew
Hi - I have a Label with truncateToFit set to true and a maxWidth. However, the htmlText I assign is concatenated a la: ipText = 'b' +endPointData.ipLabel+ '/b: ' + endPointData.ipValue; I've researched online and found that truncateToFit() has problems dealing with concatenated Strings; my

[flexcoders] Carl Tanner?

2009-09-16 Thread Matt Chotin
Carl, if you're on here my reply to you was bounced as it didn't recognize your domain. Please contact me again, hopefully with a known working email :-)

[flexcoders] Re: File size and Embed( image.png )

2009-09-16 Thread turbo_vb
Having a central EmbeddedAssets class that the views bind to works well. You can also reduce the image size by saving the png files as flattened pngs. -TH --- In flexcoders@yahoogroups.com, flexaustin flexaus...@... wrote: Anyone have any suggestions on the best way to import png files and

[flexcoders] How do I get the browser's height and width?

2009-09-16 Thread luvfotography
How do I get the browser's height and width, not the swf's height and width, but the browser's height and width, can I get it without using javascript (external interface)? thanks,

[flexcoders] JQuery questions

2009-09-16 Thread adamsch1
We were showing our product [written entirely in Flex BTW] to a web developer who commented that he could [with about as much trouble] duplicate our application via JQuery. I am not a web developer, so I am not qualified to agree or disagree with his comment. I'm not even sure its a valid

RE: [flexcoders] truncateToFit() and concatenated Strings

2009-09-16 Thread Gordon Smith
I don't think it has a problem with concatenated Strings... that would be very surprising if it did. But I don't think it works properly with htmlText. - Gordon From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Matthew Sent: Wednesday, September 16, 2009 3:52 PM

[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-16 Thread turbo_vb
// Plain text gets truncated with a // HTML text simply gets clipped, because it is difficult // to skip over the markup and truncate only the non-markup. // But both plain text and HTML text gets an automatic tooltip // if the full text isn't visible.-TH --- In flexcoders@yahoogroups.com,

[flexcoders] Re: truncateToFit() and concatenated Strings

2009-09-16 Thread turbo_vb
Haven't checked it, but this looks like it might work for htmlText: http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.ht\ ml http://skovalyov.blogspot.com/2007/02/text-control-with-truncatetofit.h\ tml -TH --- In flexcoders@yahoogroups.com, turbo_vb timh...@... wrote: //

RE: [flexcoders] ItemRenderer killing datatips in List?

2009-09-16 Thread Alex Harui
The renderer is responsible for showing datatips. You can see how it is done in the default renderer and decide how you want to implement it in your custom renderer. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From:

Re: [flexcoders] How do I get the browser's height and width?

2009-09-16 Thread Bob Wohl
You pretty much have to get it using JS. hth! B. On Wed, Sep 16, 2009 at 5:02 PM, luvfotography ygro...@all-digital-links.com wrote: How do I get the browser's height and width, not the swf's height and width, but the browser's height and width, can I get it without using javascript