Is there sample code for the ContactViewer component?
Alaric July 25th, 2008
9:48 am
It’s in the source code for the ContactManager app.
Michael Deutch July 25th, 2008
10:18 am
I looked in the source for ContactManager and did not see it. I did a search for ContactViewer on the site and it returned no matches.
Neil July 28th, 2008
9:31 am
I noticed that the source code on this page for the ContactManager app is not the same as the shorter, final version on page 194. Maybe that’s what Michael is referring to. I had problems when I first compiled the app using the source code on this page.
Once I copied and used the source code on page 194, the app worked fine.
Scott Gardner August 28th, 2008
6:37 am
In the Search app, I noticed that the “Query:” label is vertically-aligned to the top in the actual app, even though it displays vertically center in Flex Builder. I tried setting verticalCenter=”yes” but that didn’t work. Is there a way to get the label to center vertically?
Alaric August 28th, 2008
8:26 am
Well, you can’t guess at this stuff. When you’re trying to accomplish something, always check the ASDocs. The property you’re looking to place is verticalAlign=”top” instead of verticalAlign=”middle” in the HBox that contains the query label and the text input.
Scott Gardner August 28th, 2008
9:29 am
Ok, so why doesn’t this work (the label is still top-aligned, and changing the verticalAlign property to top, middle, or bottom seems to have no effect)?:
Scott Gardner August 28th, 2008
9:34 am
Your site ate up my markup. I added the verticalAlign=”middle” property to the HBox tag, but it has no effect.
Alaric August 28th, 2008
9:41 am
It may be that the FormItem is controlling this placement, not allowing the alignment to propagate to its internal Label. Try removing the FormItem, replacing it with a standard Label instead, and the alignment should show.
Scott Gardner August 28th, 2008
10:38 am
I removed the FormItem and then, since this is a state (even though the default state), I used an AddChild tag to add the label relative to and positioned before queryTextInput. Works fine now. Thanks for your help!
Scott Gardner August 28th, 2008
10:45 am
…ah, but then the Query: label was not on the search results page. So, I followed your suggestion to just remove the FormItem and add in a Label and that worked fine for both states. Thanks!
Scott Gardner August 28th, 2008
11:55 am
Following the steps on pages leading up to page 192, I noticed that, somehow, I have two ContactViewer entries under Components:Custom in Design mode. I do not actually have two components, though. I tried completely removing the packaging and component file and rebuilding it, and restarting FB. The second ContactViewer component entry just creates a small empty Panel. Any ideas on how I can clean this up? Thanks
Scott Gardner August 28th, 2008
3:07 pm
I deleted and re-added the project, and the duplicate component in the listing disappeared.
billy b September 11th, 2008
11:07 am
i am trying to run the search code but keep getting an internal build error. i even copied your source and still get it. went through the “more info” section and have hit a dead end. any thoughts?
PS: great book!
Alaric September 11th, 2008
11:10 am
Billy, not sure how to answer that without more info. An internal build error could be a lot of things. Trying sending it along, or searching for that error message online.
Steve October 7th, 2008
2:01 pm
The example Chapter 12 Contact Manager code does not use the ContactManager.mxml like the book shows.
Kevin November 3rd, 2008
8:44 am
Hi Alaric,
I’m working thru Chap 12, and don’t seem to be able to get the Registration\Login example to work correctly. It keeps displaying Fig 12-6 instead of 12-7. (I’m using FlexBuilder under Eclipse.) I’m attaching the code so you can advise if I have anything obviously mis-coded. -Thanks, Kevin-
==>
<!– Purpose: Show reusability by appending some tags to effectively override
the “base” state of a panel/form and it’s tags and labels.
–>
Alaric November 6th, 2008
4:23 pm
Your code didn’t come through. You’re saying the login application doesn’t change states?
Bruce Schwartz November 6th, 2008
4:46 pm
What is the best way to get the “Save” button to work? The text indicates that it doesn’t do anything and that is indeed true. I would have thought that the data binding stuff would have automatically propagated the changes.
[Please feel free to remove my previous comment as this one supersedes it...]
Alaric November 6th, 2008
5:11 pm
Hey Bruce. Hopefully I’ve answered your question in a post I’ve just drafted on persistent data. Check it out here: http://greenlike.com/?p=20
Does anyone have the sample code for Chapter 12 p 181 Sign In example? . I’m getting errors on the SetProperty and SetEventHandler commands that state that they “…could not be resolved to a component implementation.” I’m assuming it’s a simple user error but haven’t been able to find it.
Is there a better forum to ask these question?
Thanks
Mike
Florin May 20th, 2009
12:24 pm
My code works; if you are still interested, let me know… (ftodor@concordtrans.com)
Michael Nieuwenhuizen June 28th, 2009
12:06 pm
Hello, first of all thanks for the great book. I first got the Flex 3 Bible but that’s written so messy. This one is much much better. I even left the (first) review on Amazon.co.uk (only 4 stars, sorry, 5 stars are a rarity for me … the Flex Bible gets 1 star tho
Anyway, if I copy and paste the code of the ContactManager above I get an error message when I try to run the application, and when I do it doesn’t seem to work. The bizarre thing is that I get to see the error flag (the white cross on the red background) ONLY for the whole project, but not for the ’src’ directory nor the mxml application itself. So it doesn’t show on what line the error is. And it definitely is in this file, cos if I clear the file the error flag disappears. What’s happening?
Is there sample code for the ContactViewer component?
It’s in the source code for the ContactManager app.
I looked in the source for ContactManager and did not see it. I did a search for ContactViewer on the site and it returned no matches.
I noticed that the source code on this page for the ContactManager app is not the same as the shorter, final version on page 194. Maybe that’s what Michael is referring to. I had problems when I first compiled the app using the source code on this page.
Once I copied and used the source code on page 194, the app worked fine.
In the Search app, I noticed that the “Query:” label is vertically-aligned to the top in the actual app, even though it displays vertically center in Flex Builder. I tried setting verticalCenter=”yes” but that didn’t work. Is there a way to get the label to center vertically?
Well, you can’t guess at this stuff. When you’re trying to accomplish something, always check the ASDocs. The property you’re looking to place is verticalAlign=”top” instead of verticalAlign=”middle” in the HBox that contains the query label and the text input.
Ok, so why doesn’t this work (the label is still top-aligned, and changing the verticalAlign property to top, middle, or bottom seems to have no effect)?:
Your site ate up my markup. I added the verticalAlign=”middle” property to the HBox tag, but it has no effect.
It may be that the FormItem is controlling this placement, not allowing the alignment to propagate to its internal Label. Try removing the FormItem, replacing it with a standard Label instead, and the alignment should show.
I removed the FormItem and then, since this is a state (even though the default state), I used an AddChild tag to add the label relative to and positioned before queryTextInput. Works fine now. Thanks for your help!
…ah, but then the Query: label was not on the search results page. So, I followed your suggestion to just remove the FormItem and add in a Label and that worked fine for both states. Thanks!
Following the steps on pages leading up to page 192, I noticed that, somehow, I have two ContactViewer entries under Components:Custom in Design mode. I do not actually have two components, though. I tried completely removing the packaging and component file and rebuilding it, and restarting FB. The second ContactViewer component entry just creates a small empty Panel. Any ideas on how I can clean this up? Thanks
I deleted and re-added the project, and the duplicate component in the listing disappeared.
i am trying to run the search code but keep getting an internal build error. i even copied your source and still get it. went through the “more info” section and have hit a dead end. any thoughts?
PS: great book!
Billy, not sure how to answer that without more info. An internal build error could be a lot of things. Trying sending it along, or searching for that error message online.
The example Chapter 12 Contact Manager code does not use the ContactManager.mxml like the book shows.
Hi Alaric,
I’m working thru Chap 12, and don’t seem to be able to get the Registration\Login example to work correctly. It keeps displaying Fig 12-6 instead of 12-7. (I’m using FlexBuilder under Eclipse.) I’m attaching the code so you can advise if I have anything obviously mis-coded. -Thanks, Kevin-
==>
<!– Purpose: Show reusability by appending some tags to effectively override
the “base” state of a panel/form and it’s tags and labels.
–>
Your code didn’t come through. You’re saying the login application doesn’t change states?
What is the best way to get the “Save” button to work? The text indicates that it doesn’t do anything and that is indeed true. I would have thought that the data binding stuff would have automatically propagated the changes.
[Please feel free to remove my previous comment as this one supersedes it...]
Hey Bruce. Hopefully I’ve answered your question in a post I’ve just drafted on persistent data. Check it out here: http://greenlike.com/?p=20
Does anyone have the sample code for Chapter 12 p 181 Sign In example? . I’m getting errors on the SetProperty and SetEventHandler commands that state that they “…could not be resolved to a component implementation.” I’m assuming it’s a simple user error but haven’t been able to find it.
Is there a better forum to ask these question?
Thanks
Mike
My code works; if you are still interested, let me know… (ftodor@concordtrans.com)
Hello, first of all thanks for the great book. I first got the Flex 3 Bible but that’s written so messy. This one is much much better. I even left the (first) review on Amazon.co.uk (only 4 stars, sorry, 5 stars are a rarity for me … the Flex Bible gets 1 star tho
Anyway, if I copy and paste the code of the ContactManager above I get an error message when I try to run the application, and when I do it doesn’t seem to work. The bizarre thing is that I get to see the error flag (the white cross on the red background) ONLY for the whole project, but not for the ’src’ directory nor the mxml application itself. So it doesn’t show on what line the error is. And it definitely is in this file, cos if I clear the file the error flag disappears. What’s happening?