[flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-13 Thread aduston1976
Hi Alex, Thank you for your reply. then minHeight=0 should allow for scrollbars on the top. That's what I would think too, but it is incorrect. I am using build 477 of Flex 3 SDK version 3.0.0. Here is my entire mxml application: ?xml version=1.0 encoding=utf-8? mx:Application

Re: [flexcoders] Re: Stupid question regarding sizing of mxml components

2008-07-13 Thread Josh McDonald
Have you tried something like this? mx:VBox minHeight=0 id=in1 maxHeight={ _outer.height - in2.height } ... /mx:VBox mx:VBox id=in2 ... /mx:VBox -Josh On Sun, Jul 13, 2008 at 4:01 PM, aduston1976

[flexcoders] Semi-OT: Formatting code for HTML / blog postings?

2008-07-13 Thread Josh McDonald
Hey guys, Just wondering how the bloggers amongst the group go about formatting code for display online? I'm using Blogger so I can't use wordpress plugins, and I'm on OS X so windows-only tools are out too :) Cheers, -Josh -- Therefore, send not to know For whom the bell tolls. It tolls for

[flexcoders] missing label

2008-07-13 Thread [EMAIL PROTECTED]
I'm using flex3 mx:Button x=348 y=74 label=Button height=54 width=93/ Why doesn't the label appear on this button ?

Re: [flexcoders] missing label

2008-07-13 Thread [EMAIL PROTECTED]
Never mind, the style for the panel it was in had a text indent which was inherited by the button. I only meant to indent the panel title. [EMAIL PROTECTED] wrote: I'm using flex3 mx:Button x=348 y=74 label=Button height=54 width=93/

[flexcoders] Passing objects to components

2008-07-13 Thread Dan Vega
If I want to pass a string to my custom component its pretty easy. Lets say you have a custom button component and in that component you declare a public var str, when you create your custom button you can simply do the following. local:CustomButton str=Hello World/ This works fine, but If I

[flexcoders] Re: Passing objects to components

2008-07-13 Thread Michael VanDaniker
You've declared that the instance obj should be bindable, but that doesn't make the properties on the class Object bindable. What you can do is create a class for the object you want to pass your custom component and add the bindable metadata tag to the properties you want to bind on. You can

Re: [flexcoders] Re: Passing objects to components

2008-07-13 Thread Dan Vega
So there is no way to push the object down to my component? On Sun, Jul 13, 2008 at 2:40 PM, Michael VanDaniker [EMAIL PROTECTED] wrote: You've declared that the instance obj should be bindable, but that doesn't make the properties on the class Object bindable. What you can do is create

[flexcoders] Re: Binding for Dynamic Datagrid

2008-07-13 Thread Sid Maskit
I believe that binding assignments need to use strings. Try: myDG.dataProvider={ myData } Hope that helps, Sid http://CraftySpace.com --- In flexcoders@yahoogroups.com, limhy0306 [EMAIL PROTECTED] wrote: Hi, I've tried using the suggestion: myDG.dataProvider={ myData } But

RE: [flexcoders] Calling AS3 functions

2008-07-13 Thread Scott
THANK YOU! I just want to be able to pull the username of the person that is currently logged in. I didn't have the id=name in the definition and that fixed all of it. Regards, Scott From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

[flexcoders] Application Design

2008-07-13 Thread Dan Vega
Maybe I am going about this the wrong way. I would like to explain my small application and get some feedback. This app started out as 1 big file but I decided to break it into smaller components. The main file is pretty small as you can see below. What the main app does is use a view stack to

RE: [flexcoders] Re: Passing objects to components

2008-07-13 Thread Tracy Spratt
Object is dynamic and you can't bind to it. (I would expect binding warnings from the compiler) Create your own bindable class. Or wrap the Object in ObjectProxy, if I recall correctly. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On

RE: [flexcoders] Re: Binding for Dynamic Datagrid

2008-07-13 Thread Tracy Spratt
You cannot set up a binding using braces in AS. You need to use BindingUtils. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Sid Maskit Sent: Sunday, July 13, 2008 4:03 PM To: flexcoders@yahoogroups.com Subject: [flexcoders]

RE: [flexcoders] Application Design

2008-07-13 Thread Tracy Spratt
You can pass *any* kind of reference via public properties. What you are doing is very standard. How are you implementing the property vs in your components? How do you know it is not working? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL

Re: [flexcoders] Application Design

2008-07-13 Thread Dan Vega
I am just passing vs so that my next and previous buttons can increment or decrement the selectedIndex of the view state. Basically when I get to my final review screen and pass the data / files / client I try and output them and I get this error TypeError: Error #1009: Cannot access a property

RE: [flexcoders] Application Design

2008-07-13 Thread Tracy Spratt
You get that error on what line? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega Sent: Sunday, July 13, 2008 5:23 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Application Design I am just passing vs so

Re: [flexcoders] Application Design

2008-07-13 Thread Dan Vega
at views::Review/init()[H:\Program Files\Apache\htdocs\Uploader\src\views\Review.mxml:27] which is this line lblClientPhone.text = client.phone; Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Sun, Jul 13, 2008 at 5:38 PM, Tracy Spratt [EMAIL PROTECTED] wrote: You get that

RE: [flexcoders] Application Design

2008-07-13 Thread Tracy Spratt
How/when are you instantiating the client object? Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega Sent: Sunday, July 13, 2008 5:30 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Application Design at

[flexcoders] Re: Application Design

2008-07-13 Thread Sid Maskit
Although you could do lots to make this more sophisticated, such as creating a class for each type of data you are collecting, this looks like a solid start. One thing you could do to improve it (which might solve your problem), is to let the compiler know which variables it should set up for

Re: [flexcoders] Application Design

2008-07-13 Thread Dan Vega
ON the first screen when a user picks a client from the data grid private function onClientSelect(event:ListEvent):void { _client = event.itemRenderer.data; btnNext.enabled = true; dispatchEvent(new

[flexcoders] Re: Context menu triggers browser crash

2008-07-13 Thread Sid Maskit
You might try running the same behavior from a simple button, instead of from a context menu, since that might give you a sense of where the problem lies: i.e. if it occurs even when you run the behavior off a button, then the problem presumably has nothing to do with the context menu. --- In

[flexcoders] Re: 3 tier architecture using adobe flex

2008-07-13 Thread Sid Maskit
Well, it's pretty flexible. At one end, you can do as suggested below, and use flex purely as a presentation layer, keeping business logic and data storage on the server. At the opposite end, you can deploy as an air application which functions as a pure desktop application with all three layers

Re: {Disarmed} RE: [flexcoders] Calling AS3 functions

2008-07-13 Thread Sid Maskit
I haven't worked much with states, but my sense is that here is how things might be working. Either by default, or based on some user action, you are entering the state where the loginForm component is instantiated. At that point the user logs in, using the CFC. By definition, the login process

RE: [flexcoders] Application Design

2008-07-13 Thread Tracy Spratt
No, that is setting _client. You need to be setting client. Or change to: client={_client} You just need to debug this. You reference passing methodology is correct. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of

Re: [flexcoders] Application Design

2008-07-13 Thread Dan Vega
That is just the local variable for that screen. I was told If I wanted to share information with the main application i had to push it back through an event. Thank You Dan Vega [EMAIL PROTECTED] http://www.danvega.org On Sun, Jul 13, 2008 at 6:06 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

RE: [flexcoders] Application Design

2008-07-13 Thread Tracy Spratt
Huh? My question was: How/when are you instantiating the client object? You just need to debug. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Dan Vega Sent: Sunday, July 13, 2008 6:20 PM To: flexcoders@yahoogroups.com

[flexcoders] Flex blog topics - what should I write about?

2008-07-13 Thread Josh McDonald
Hey guys, Working on a Flex related blog. I'm not an über-guru, but I'd like a place to collect tips, and FAQs I find myself answering here fairly often ;-) No URL yet, not launching it for a few weeks, just trying to cook up content for now. Wondering what topics people would like to see more

Re: [flexcoders] Application Design

2008-07-13 Thread Dan Vega
Thank you so much to everyone for your help and suggestions. Tracy - I think it was because the objects are not bindable like you said. In the review panel i was passing client but on startup its just an empty object. mx:ViewStack id=vs width=100% height=100% views:ClientSelector

[flexcoders] Re: Flex blog topics - what should I write about?

2008-07-13 Thread andrii_olefirenko
hi, just one piece of advice - google for your next blog's subject before posting to see if it's already widely known. I read many blogs and 90% of the bloggers just rediscovering a bicycle again. (though they do write something interesting in the rest 10% so i'm still reading them :)) --- In

[flexcoders] How appropriate is it using mx_internal ?

2008-07-13 Thread Manu Dhanda
Hi guys, As I am trying to get into this Flex world, I am coming across to a few things where I need expertise advice like why and what should be done in an appropriate way. So here is one more question: why one should (not) use the following line of code and in what scenario's it could be

[flexcoders] Re: Why does IE7 display # for tab title?

2008-07-13 Thread andrii_olefirenko
is it deeplinking stuff? try to turn off history support in compiler's properties --- In flexcoders@yahoogroups.com, paulbohnenkamp [EMAIL PROTECTED] wrote: In IE7 I see the tab title appears with the correct logo but a label of simply # . In Firefox the tab is correctly labeled. In the

[flexcoders] Re: How would you make a heat map?

2008-07-13 Thread Michael VanDaniker
I realize this is a fairly old thread, but it ended without much resolution. If there is anyone out there still interested in drawing heat maps, I have an implementation that might be worth checking out. http://michaelvandaniker.com/blog/2008/07/06/how-to-make-heat-maps-in-flex/ --- In

[flexcoders] Re: PopUpMenu Button item click....

2008-07-13 Thread Michael VanDaniker
PopUpMenuButton forwards event from it's internal Menu object. Menu only dispatches an itemClick event when the user clicks on a leaf node. You can monkey patch Menu to fire off events when an internal node is clicked by changing the mouseUpHander. By removing the check on isBranch from the line

[flexcoders] Question about capturing event.

2008-07-13 Thread Vik
I am working on a simple audio player that plays mp3 files inside a playlist. I am trying to create a continuous music play, once mp3 file after the next. However I am unable to capture the Event.SOUND_COMPLETE event. Here is how the code is structured. I have a player class(player.as - does not

Re: [flexcoders] How appropriate is it using mx_internal ?

2008-07-13 Thread Josh McDonald
I don't. That way you can tell at a glance which parts of your code reference the internal stuff (and may be pain points in the future against new framework versions). -Josh On Mon, Jul 14, 2008 at 11:37 AM, Manu Dhanda [EMAIL PROTECTED] wrote: Hi guys, As I am trying to get into this Flex

[flexcoders] XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread [EMAIL PROTECTED]
I have a box in one state, I remove the box and then add another box. I do this so when the box is complete, I have something to trigger getting data from an xml file. (That doesn't seem right, is there a better way to trigger a function on entering a State ? ) I'm testing the data in 2

Re: [flexcoders] XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread Josh McDonald
There's not going to be any data in there immediately after you call send() - you need to wait (and listen) for the ResultEvent.RESULT event to occur. -Josh On Mon, Jul 14, 2008 at 1:27 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I have a box in one state, I remove the box and then add

[flexcoders] Ant tasks and spaces in paths?

2008-07-13 Thread Josh McDonald
Hey guys. There *must* be something I'm doing wrong here. In my ant build: compc output='${bin.dir}/${targetLibrary}' source-path path-element=${src.dir}/ /compc Now src.dir is: /Users/josh/Desktop/Work/Builder workspace/PathwaysVersions/src And I'm getting the

RE: [flexcoders] Question about capturing event.

2008-07-13 Thread Alex Harui
Check the forum archives and double check the doc. I think folks often listen for this off the wrong object From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Vik Sent: Sunday, July 13, 2008 5:34 PM To: flexcoders@yahoogroups.com Subject:

Re: [flexcoders] Ant tasks and spaces in paths?

2008-07-13 Thread shaun
Josh McDonald wrote: Hey guys. There *must* be something I'm doing wrong here. In my ant build: compc output='${bin.dir}/${targetLibrary}' source-path path-element=${src.dir}/ /compc Now src.dir is: /Users/josh/Desktop/Work/Builder

Re: [flexcoders] Ant tasks and spaces in paths?

2008-07-13 Thread Josh McDonald
Can't really do either, as it comes from ${basedir} There are a few areas where Flex is decidedly beta-like for a version 3 product that costs so damned much. -Josh On Mon, Jul 14, 2008 at 2:31 PM, shaun [EMAIL PROTECTED] wrote: Josh McDonald wrote: Hey guys. There *must* be something

[flexcoders] Re: XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread Michael VanDaniker
You're on the right track. Remoting calls are done asynchronously, so code that depends on the result of an HTTPService can't be placed immediately after the remoting call. The data will not have loaded before those lines are executed. The HTTPService's result attribute defines an event handler

Re: [flexcoders] XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread [EMAIL PROTECTED]
Thanks. I tried to add the eventListener to the MXML of the HTTPservice, and I don't see how, but I was able to add it in the script. Josh McDonald wrote: There's not going to be any data in there immediately after you call send() - you need to wait (and listen) for the ResultEvent.RESULT

Re: [flexcoders] XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread Josh McDonald
It should've worked from the MXML, can you show me what you tried? -Josh On Mon, Jul 14, 2008 at 2:49 PM, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Thanks. I tried to add the eventListener to the MXML of the HTTPservice, and I don't see how, but I was able to add it in the script. Josh

Re: [flexcoders] Re: XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread [EMAIL PROTECTED]
Thanks for the tips. I got it working. Michael VanDaniker wrote: You're on the right track. Remoting calls are done asynchronously, so code that depends on the result of an HTTPService can't be placed immediately after the remoting call. The data will not have loaded before those lines

Re: [flexcoders] XML is NULL immediatelly following service call, but does appear valid in textarea

2008-07-13 Thread [EMAIL PROTECTED]
There's nothing about event listeners in the code hint for HTTPservice. Maybe I just don't know what to look for. What code is it that you think should work ? Josh McDonald wrote: It should've worked from the MXML, can you show me what you tried? -Josh On Mon, Jul 14, 2008 at 2:49 PM,

[flexcoders] Cast XMLList with 1 child to XML

2008-07-13 Thread Sergey Kovalyov
Hi All! Is it correct to cast XMLList with 1 child to XML like this: var myXMLList : XMLList = sourceXML..item.(@id == 1); // It is guaranteed that only one node with name == item and attribute id == 1 exists in sourceXML. var myXML : XML = XML(myXMLList); Actually it works and it fails only