[flexcoders] Charting: Drilling down into a legend label

2009-06-25 Thread Brad Bueche
I was just going through an old Flex 2 charting app I did.  And one of the
things I, and my prospective users, wanted to do was to drill down into a
legend label.  (I got drill-down in the charts workingthanks to
quietlyscheming   --- that stuff was not documented anywhere then!)

I'm thinking of resurrecting that... Even though it was my first flex
application it still looks and operates better than anything I have done in
php, html, javscript, or C# asp.net since!!  Now, seeing it again,  I don't
know why I every let it die.  It was a skunk works project. You know,
outside the work your supposed to be doing!  (Then you have to take the time
to sell it around on the quietbut I got busy)

So, anyway,  CAN you drill down into a legend item in FB3 or FB4?

brad


Re: [flexcoders] subversion ? where do i start

2009-06-23 Thread Brad Bueche
Just go to your software updates and install Subversive.

I've never checked out from a public server but I would guess that its not
much different than a private server.

If you want to use SVN locally, on windows, the easiest solution BY FAR is
to install VisualSVN and get the TortoiseSVN client.  Create your
repository.  Use tortoiseSVN to check them in.  Use subversive to check them
out into FB.   Takes about 10 minutes to hook FB up to a local SVN server,
check out your code,  and do a build.  IOW, you can go from nothing to a
working SVN setup with FB in about 10 minutes (ok 30 if you have never
touched any of this sort of thing before!)

brad

On Tue, Jun 23, 2009 at 11:49 AM, luvfotography <
ygro...@all-digital-links.com> wrote:

>
>
> Hi, I want to check out a google project, where do I start?
> Do I need to install subversion? or find a free subversion host?
> mucho thanks,
>
>  
>


Re: [flexcoders] AIR sql parameters - can I use an array ?

2009-06-21 Thread Brad Bueche
We just had to solve this very problem this week in asp.net c#.

[with the ack that there are multiple ways to solve most problems]

The way we solved it is to understand that what the db needs is this:

IN (:parameter1, :parameter2, :paramater3, [..])

So you take your input string, split it, put it in a list/array, create some
dynamic variable names  "fieldname + counter".

Do a for each word in list type loop:

fieldname + counter = "'" + word + "'"  //put the single quotes around your
string
sql_string = sql_string +  ":" + fieldname1

Then build the actual sql statement as seen above.  Your single quotes need
to be in the parameter.

You'll need to do slightly different processing for numbers in that they
will not need the single quotes around them.

Sorry, thinking in C# at the moment,

If you need to see how to do dynamic variable names in flex, look here:

http://www.nabble.com/RE%3A-Dynamically-Naming-Objects-p24017449.html

HTH
brad

On Fri, Jun 19, 2009 at 3:37 PM, Jim Hayes  wrote:

>
>
> I'm looking for a way to use the "IN" sql syntax and parameters,
> something like "SELECT someField FROM someTable WHERE someOtherField IN
> (1,4,6,8,12);" .
> Obviously I could build a string query from an array and execute that, but
> I'd rather stay with parameters if at all possible.
>
> If anyone knows, please do tell!
> I'm afraid I'm away from my workstation so can't check it at the moment.
> Many thanks!
>
> __
> This communication is from Primal Pictures Ltd., a company registered in
> England and Wales with registration No. 02622298 and registered office: 4th
> Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK.
> VAT registration No. 648874577.
>
> This e-mail is confidential and may be privileged. It may be read, copied
> and used only by the intended recipient. If you have received it in error,
> please contact the sender immediately by return e-mail or by telephoning
> +44(0)20 7637 1010. Please then delete the e-mail and do not disclose its
> contents to any person.
> This email has been scanned for Primal Pictures by the MessageLabs Email
> Security System.
> __
>  
>


[flexcoders] So might as well move everything to FB4 now?

2009-06-20 Thread Brad Bueche
I'm just developing personal hobby type stuff at this point.   No paying
customers or production work (at least until what I'm working on is far
enough along to demo).

So, I'm thinking, let me know if any of y'all disagree, that there is no
reason that I should not make the jump to FB 4 and just leave Flex 3 behind
for good.

I'm just feeling a little dismayed in that there are still a bunch of Flex 3
books that I was planning to read and now it looks like there are some
fundamental shifts in the flex/flash builder approach to things.  But such
is the price of progress I guess.  For the transition comfort zone, can I
develop in FB4 as if it were Flex Builder 3 and then add specific FB4 things
as I learn them?  I guess that would have to work, right?  (Otherwise, it
would break Flex Builder 3 projects).

Can I run 2 versions of eclipse on the same machine (full Flex 3, and full
FB 4) both with their own java and subversive plugins?

And, its also my understanding that I lose NOTHING by using the plugin (into
an existing eclipse) vs the full install, correct?

Will the FB4 plugin work just fine with a Ganymede 3.4 JEE Birt package?
How about 3.4.1?

brad


[flexcoders] (SOT) Opportunity for FB ? (Hey! Adobe !)

2009-06-19 Thread Brad Bueche
I've been reading up on Bugzilla and it is frequently mentioned that its UI
is not the most intuitive or easy to use in the world.

Well if one needs an improved UI experience,  is not FB the answer!?  Well
really, the SDK in this case.  Although, I guess, anything you do in FB,
outside of the data visualization, can be updated in the SDK, right?

Is this a good opportunity for Adobe to greatly improve an open source tool
with their open source solution?  To me,  it seems like there is significant
opportunity to show off many of the features of 4.x. in a highly targeted
market.

Anyway, just a thought, maybe I'm way off base.  (Then again, I'm always
late to the party with the flexcoders group,  so maybe somebody is already
working on it).   However, if you do decide to do it, Adobe, see if you can
add some built in integration with Subversion (in keeping with being a major
contributor to the open source community).

brad


Re: [flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
I take that back.  I  de-installed fb3 again and re-installed and tried the
proxy again and it worked!!  Thanks a bunch!!

brad

On Sun, Jun 14, 2009 at 9:25 PM, Brad Bueche  wrote:

> Sam,
>
> Thanks. Good call, I had forgotten about that method. I got the proxy but
> ,alas, I think its my laptop firewall config that is killing it here and I
> cant change that (well I probably good after lots of digging but then they
> could just push out a a new config). Security is pretty tight here.
>
> So my big issue with the subversive client is that I cant get the SVN
> connectors installed.  I can get the main package installed but when I
> download the connectors package it keeps giving me some sort of error to the
> effect that it cant find the archive in the directory that I'm pointing
> too.  Even when the exact same series of steps works correctly for the main
> package.
>
> sorry for the OT thread,
> brad
>
>
> On Sun, Jun 14, 2009 at 6:33 PM, Sam Lai  wrote:
>
>>
>>
>> You need to get the URL to the automatic configuration script, then
>> put that into a web browser. Depending on your browser, you will
>> either have to download it then open it in notepad, or it will just
>> display it.
>>
>> The script is basically javascript, telling the browser which proxy
>> address *and port* to use for what URLs. Generally, the last rule is
>> the one for 'everything else' (i.e. not internal or special
>> exceptions), so grab the proxy address and port from there and put it
>> into Eclipse. It will be either an IP or a host address, and a port,
>> usually 8080.
>>
>> You may also need to add the exceptions in later if your SVN repo is
>> on an internal server inaccessible from the outside world.
>>
>> 2009/6/15 Brad Bueche >:
>>
>> >
>> >
>> > Sorry to ask this here but I have searched everywhere over a period of
>> > months and I cant find an answer.
>> >
>> > If I install flex builder 3 (full install) at home, and bring it up, I
>> can
>> > connect to the cfeclipse updater and subversive updater in a hearbeat.
>> >
>> > However, I need to really use subversive and fb at work not at home.
>> And I
>> > can not figure out how to get the fb3 eclipse to connect to ANY update
>> > site.  I have to keep installing everything manually.  Well the manual
>> > install for subversive does not seem to work because they wont -- for
>> > license reasons -- put the SVN connectors in the main build and I cant
>> get
>> > the manual install of those to work.
>> >
>> > I'm getting to the point where I really, really, need version control
>> and
>> > this is really beginning to slow me down.
>> >
>> > Every time I try to do a software update eclipse either gives me the
>> this:
>> >
>> > Error Parsing Stream [Premature end of file]
>> >
>> > We do use a proxy at work.  I have put the the proxy server config into
>> the
>> > Eclipse->General-Network preferences but this does not seem to work.  I
>> > notice that Eclipse has a setting for port but we dont specifically use
>> port
>> > in our proxy setting.  Additionally, in IE the proxy says "Use AUTOMATIC
>> > Configuration script" whereas Eclipse's set up just says "Manual Proxy
>> > Configuration".
>> >
>> > What am I missing here?
>> >
>> > brad
>> >
>> >
>> >
>>  
>>
>
>


Re: [flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
Sam,

Thanks. Good call, I had forgotten about that method. I got the proxy but
,alas, I think its my laptop firewall config that is killing it here and I
cant change that (well I probably good after lots of digging but then they
could just push out a a new config). Security is pretty tight here.

So my big issue with the subversive client is that I cant get the SVN
connectors installed.  I can get the main package installed but when I
download the connectors package it keeps giving me some sort of error to the
effect that it cant find the archive in the directory that I'm pointing
too.  Even when the exact same series of steps works correctly for the main
package.

sorry for the OT thread,
brad

On Sun, Jun 14, 2009 at 6:33 PM, Sam Lai  wrote:

>
>
> You need to get the URL to the automatic configuration script, then
> put that into a web browser. Depending on your browser, you will
> either have to download it then open it in notepad, or it will just
> display it.
>
> The script is basically javascript, telling the browser which proxy
> address *and port* to use for what URLs. Generally, the last rule is
> the one for 'everything else' (i.e. not internal or special
> exceptions), so grab the proxy address and port from there and put it
> into Eclipse. It will be either an IP or a host address, and a port,
> usually 8080.
>
> You may also need to add the exceptions in later if your SVN repo is
> on an internal server inaccessible from the outside world.
>
> 2009/6/15 Brad Bueche >:
>
> >
> >
> > Sorry to ask this here but I have searched everywhere over a period of
> > months and I cant find an answer.
> >
> > If I install flex builder 3 (full install) at home, and bring it up, I
> can
> > connect to the cfeclipse updater and subversive updater in a hearbeat.
> >
> > However, I need to really use subversive and fb at work not at home.  And
> I
> > can not figure out how to get the fb3 eclipse to connect to ANY update
> > site.  I have to keep installing everything manually.  Well the manual
> > install for subversive does not seem to work because they wont -- for
> > license reasons -- put the SVN connectors in the main build and I cant
> get
> > the manual install of those to work.
> >
> > I'm getting to the point where I really, really, need version control and
> > this is really beginning to slow me down.
> >
> > Every time I try to do a software update eclipse either gives me the
> this:
> >
> > Error Parsing Stream [Premature end of file]
> >
> > We do use a proxy at work.  I have put the the proxy server config into
> the
> > Eclipse->General-Network preferences but this does not seem to work.  I
> > notice that Eclipse has a setting for port but we dont specifically use
> port
> > in our proxy setting.  Additionally, in IE the proxy says "Use AUTOMATIC
> > Configuration script" whereas Eclipse's set up just says "Manual Proxy
> > Configuration".
> >
> > What am I missing here?
> >
> > brad
> >
> >
> >
>  
>


Re: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Ok, thanks for the underscore there, Tracy.  Sounds like exactly what I
need.  Basically, at a simple level I'm extending that searchcoders search
interface to a full adhoc query front end.  So the plus minus buttons will
add a row that will have combo-boxes with the data providers --both static
and from a db -- and text entry boxes.  So each row will actually be a
series of sub-  components.   So I guess I could turn the row into a master
component and stick it in the Repeater.  I'll have to look into all these
goodies that the Repeater provides.

thanks again!
brad

On Sun, Jun 14, 2009 at 6:43 PM, Tracy Spratt  wrote:

>
>
>  “…thought of the Repeater as a simple grid creator …”  That is completely
> wrong.  Repeater has **no** layout functionality at all.  It is simply a
> replacement for addChild/ removeChild, with a lot of extra and useful
> functionality like optional recycling and automatic creation of an array of
> references via the id (myId[n]).
>
>
>
> Look into Repeater before you write all of that code manually.
>
>
>
> One suggestion: do not write any but the simplest repeated content
> ‘in-line’.  Instead, create a custom component and repeat that, passing in
> the entire currentItem via a setter function.  You will find this much
> easier to code, especially dispatching events, etc.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Brad Bueche
> *Sent:* Sunday, June 14, 2009 6:11 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] Re: Dynamically Naming Objects
>
>
>
>
>
>
>  Thanks, Amy, I didnt think about that.  I've always thought of the
> Repeater as a simple grid creator but I guess I'll have to read up on it.
>
> brad
>
> On Sun, Jun 14, 2009 at 11:57 AM, Amy 
> wrote:
>
>
>
> --- In flexcoders@yahoogroups.com , Gordon
> Smith  wrote:
> >
> > 1. If accessing the ComboBoxes you'll create by an index number is
> sufficient, declare an instance var of type Array:
> >
> > private var comboBoxes:Array = [];
> >
> > When you dynamically create a new ComboBox, simply add the reference onto
> the end of this Array:
>
> Or you can use a repeater, which automates this and will automatically
> handle destroying and recreating all the comboboxes if the data source they
> are based on changes.
>
>
>   
>


Re: [flexcoders] Re: Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Thanks, Amy, I didnt think about that.  I've always thought of the Repeater
as a simple grid creator but I guess I'll have to read up on it.

brad

On Sun, Jun 14, 2009 at 11:57 AM, Amy  wrote:

>
>
> --- In flexcoders@yahoogroups.com , Gordon
> Smith  wrote:
> >
> > 1. If accessing the ComboBoxes you'll create by an index number is
> sufficient, declare an instance var of type Array:
> >
> > private var comboBoxes:Array = [];
> >
> > When you dynamically create a new ComboBox, simply add the reference onto
> the end of this Array:
>
> Or you can use a repeater, which automates this and will automatically
> handle destroying and recreating all the comboboxes if the data source they
> are based on changes.
>
>  
>


Re: [flexcoders] Dynamically Naming Objects

2009-06-14 Thread Brad Bueche
Thanks! Gordon, that worked.  Also thanks for giving the two different
approaches.  I can probably get away with just using the arraybut I was
obsessing about that naming thing so you're giving me both approaches
allowed me to stop obsessing sooner! ;)

brad

On Sat, Jun 13, 2009 at 7:53 PM, Gordon Smith  wrote:

>
>
>  1. If accessing the ComboBoxes you'll create by an index number is
> sufficient, declare an instance var of type Array:
>
>
>
> private var comboBoxes:Array = [];
>
>
>
> When you dynamically create a new ComboBox, simply add the reference onto
> the end of this Array:
>
>
>
> var newComboBox:ComboBox = new ComboBox();
>
> …
>
> comboBoxes.push(newComboBox);
>
>
>
> You can then access the i-th ComboBox as comboBoxes[i].
>
>
>
> 2. If you need to access them by some kind of name, declare an Object
>
>
>
> private var comboBoxes:Object = {};
>
>
>
> and do something like
>
>
>
> var newComboBox:ComboBox = new ComboBox();
>
> …
>
> comboBoxes["state"] = new ComboBox();
>
>
>
> You can then access this ComboBox as comboBoxes["state"].
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Brad Bueche
> *Sent:* Saturday, June 13, 2009 3:48 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Dynamically Naming Objects
>
>
>
>
>
>
>  I have a button that creates new combo boxes with dataproviders.   I can
> hard code things and create combo-boxes as much as I want but thats a little
> silly.  I need to dynamically create new combo boxes and then reference them
> for hooking up the data providers and getting results etc.
>
> I have figured out how to create dynamic variable names.  For instance:
>
> this["cbx" + counter].x = xValue;
> this["cbx" +
> counter].addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject);
> this["cbx" + counter].labelField = "Label";
> addChild(this["cbx" + counter]);
>
> The problem is that I cant figure out how to dynamically create a new
> ComboBox.  This is as far as I can get (and its wrong)
>
> this["cbx" + counter]:ComboBox = new ComboBox();
>
> brad
>
>   
>


[flexcoders] Subversive Client install on full FB3

2009-06-14 Thread Brad Bueche
Sorry to ask this here but I have searched everywhere over a period of
months and I cant find an answer.

If I install flex builder 3 (full install) at home, and bring it up, I can
connect to the cfeclipse updater and subversive updater in a hearbeat.

However, I need to really use subversive and fb at work not at home.  And I
can not figure out how to get the fb3 eclipse to connect to ANY update
site.  I have to keep installing everything manually.  Well the manual
install for subversive does not seem to work because they wont -- for
license reasons -- put the SVN connectors in the main build and I cant get
the manual install of those to work.

I'm getting to the point where I really, really, need version control and
this is really beginning to slow me down.

Every time I try to do a software update eclipse either gives me the this:

Error Parsing Stream [Premature end of file]

We do use a proxy at work.  I have put the the proxy server config into the
Eclipse->General-Network preferences but this does not seem to work.  I
notice that Eclipse has a setting for port but we dont specifically use port
in our proxy setting.  Additionally, in IE the proxy says "Use AUTOMATIC
Configuration script" whereas Eclipse's set up just says "Manual Proxy
Configuration".

What am I missing here?

brad


[flexcoders] Dynamically Naming Objects

2009-06-13 Thread Brad Bueche
I have a button that creates new combo boxes with dataproviders.   I can
hard code things and create combo-boxes as much as I want but thats a little
silly.  I need to dynamically create new combo boxes and then reference them
for hooking up the data providers and getting results etc.

I have figured out how to create dynamic variable names.  For instance:

this["cbx" + counter].x = xValue;
this["cbx" +
counter].addEventListener(FlexEvent.CREATION_COMPLETE,createRemoteObject);
this["cbx" + counter].labelField = "Label";
addChild(this["cbx" + counter]);

The problem is that I cant figure out how to dynamically create a new
ComboBox.  This is as far as I can get (and its wrong)

this["cbx" + counter]:ComboBox = new ComboBox();

brad


Re: [flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Brad Bueche
LOL!

I feel like the character Jeff Goldblum played in the Big Chill when he and
Glenn Close came down stairs after everybody else had eaten breakfast and
gone out for the day and he said "Are we the first ones up?"

brad

On Mon, Jun 1, 2009 at 11:11 AM, Nate Beck  wrote:

>
>
>
> http://blog.natebeck.net/2009/05/the-flash-builder-4-and-flash-catalyst-betas-are-out/
>
> http://blog.digitalbackcountry.com/2009/05/flash-builder-and-flash-catalyst-betas-now-available/
>
> http://www.webkitchen.be/2009/05/31/get-your-flash-catalyst-flash-builder-beta-now/
>
> http://butterfliesandbugs.wordpress.com/2009/06/01/flex-4-public-beta-released-its-alive/
>
> http://www.coldfusionjedi.com/index.cfm/2009/6/1/Flash-Builder-4-and-Flash-Catalyst-hit-Labs
>
> Just to name a few ;)
>
>
>
> On Mon, Jun 1, 2009 at 8:01 AM, Brad Bueche  wrote:
>
>>
>>
>> Am I the only one seeing this?  I expected to see a flurry of posts on
>> this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
>> :)
>>
>> It must be real because I'm downloading!
>>
>> brad
>>
>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
>
>
>  
>


[flexcoders] Flex 4/Catalyst Now Available for Download on Adobe labs?

2009-06-01 Thread Brad Bueche
Am I the only one seeing this?  I expected to see a flurry of posts on
this.  Anyway,  wait a few minutes so I can get my stuff downloaded first!
:)

It must be real because I'm downloading!

brad


Re: [flexcoders] Application Idea

2009-05-13 Thread Brad Bueche
Create a Family Tree.

I mean the visual for the tree.

Branches Nodes Leaves would be either text (Mother/Father, or Family Name)
OR
Branches Nodes Leaves would be thumb nail images.

Mouse/over or hover over a branch, node, tree would bring up a little window
with more info about that particular family (couple).  Hover window could
have children names as links at the bottom of it. Clicking them would take
you to the children.

Clicking in the main part of the hover window would take you to a page of
info about that family.

===
Create a calculator that keeps a running tab on a visual, realistic roll of
paper.  Allow user to grab components on the paper and re-arrange them.  Be
able to still calculate what they have re-arranged on the paper.  Allow them
to save the work on a piece of paper. Figure out what the most atomic
components (building blocks) are.  You'll need to be able to do this in
order to recognize the new statements that are created on the paper.

=
Create an sql interface similar to search coders but enable this to also
create real sql in a text space. Allow them to drag elements around and
re-arrange them.  Then paramertize what they have submitted and submit it to
the database.  The trick is dont let them build in the text area.  Let them
build through a menu'ing system that prohibits nefarious sql.  Why both?
Its very hard to do complex sql with a menu'ing system only.

brad

On Wed, May 13, 2009 at 7:00 AM, kanu kukreja  wrote:

>
>
> Hello,
>
> I'm looking for an idea, so that i can create a application on based
> on that idea in flash or flex.
>
> Thanks,
> kanu
>  
>


Re: [flexcoders] Re: Choppy Move effect..

2009-05-07 Thread Brad Bueche
tweenlite: VERY cool link. Thanks!  I LOVE this community!


brad



On Wed, May 6, 2009 at 10:18 AM, nathanpdaniel  wrote:

>
>
> You should really look into TweenLite
> http://blog.greensock.com/tweenliteas3/
> Adobe animations are good in certain situations but, if you really want to
> control the animation - TweenLite/TweenMax are a lot better suited.
>
>
> --- In flexcoders@yahoogroups.com ,
> "vinayakvijay_v"  wrote:
> >
> > Hi friends,
> >
> > In flex when i apply Move Effect to a jpg or png image , the effect is
> not smooth and image appears choppy.
> >
> > u can see it even in the example given by adobe.
> >
> > http://livedocs.adobe.com/flex/201/langref/mx/effects/Move.html
> > (bottom of this page)
> >
> > the image when move appears choppy.
> > i think you got what i mean.
> >
> > do any one know how to make it smooth..
> >
> > thanks in advance
> >
> > Vinu.
> >
>
>  
>


[flexcoders] chet->flex->animation/graphics->book

2009-04-30 Thread Brad Bueche
'nuff said.

Make it so, #1.

brad


[flexcoders] Link to Adobe TV podcasts

2009-04-27 Thread Brad Bueche
Actually searching for it via the itunes interface was a little frustrating
(for me).

http://blogs.adobe.com/adc/2008/12/adobe_tv_video_podcasts_on_itu.html

Note that if you read the verbage at the top of that page ("related content"
-- or something like that) you'll also see that the Flex Show also has
podcasts (video ones too) that you can subscribe too.

brad


Re: [flexcoders] New Into Flex

2009-04-27 Thread Brad Bueche
cflex.net

tv.adobe.com

http://www.adobe.com/devnet/flex/

Are good places to start.

brad

On Sat, Apr 25, 2009 at 10:18 PM, angelo_anolin wrote:

>
>
> Hi Everyone.
>
> Am new into this flex thing and I really appreciate the way it is evolving
> for developing rich internet applications.
>
> I already have the free ebook Getting Started With Adobe Flex3.
>
> I would like to learn a lot more on developing Flex web data applications.
> Something that connects to an oracle database, perform some CRUD operations
> and other data-intensive operations.
>
> Since I am only beginning to discover the wonders of flex, I hope some of
> you could point me some nice articles and or blog posts that does this.
>
> Am sure I would have a lot more questions when I delve deeper into the
> world of Flex and I hope I could post some of them here so as to give me
> better understanding of this great development platform.
>
> Thanks a lot
>
>  
>


Re: [flexcoders] Re: What's your favorite Tip/Trick ?

2009-04-22 Thread Brad Bueche
If you click the full screen option on the player (in screen) then it will
go full screen and you wont have to scroll around.   I always just click
full screen as a matter of habit so I was not aware of  the issue and didnt
think to point it out. sorry!

brad

On Tue, Apr 21, 2009 at 7:45 PM, Amy  wrote:

>
>
> --- In flexcoders@yahoogroups.com ,
> "brad.bueche"  wrote:
> >
> >
> > Finally found a link to that max session I was talking about:
> >
> >
> http://www.truveo.com/Advanced-Tips-and-Tricks-for-Flex-Builder-3-by/id/386457724
>
> Does anyone have a link to this where it's not in a window that makes you
> scroll around to see the whole thing?
>
> Thanks;
>
> Amy
>
>  
>


Re: [flexcoders] CakePHP+CakeAMFPHP vs WebORB dialema

2009-04-21 Thread Brad Bueche
If you have SLA's in terms of maintenance and production response with your
customers you may want to partner with the party that can also offer that
contractural level of service to you. (My experience with the webOrb team is
that they are very responsive).  With that said you may also want to look at
Zend before you make a final decision.

brad

On Tue, Apr 21, 2009 at 6:30 AM, raja_s_patil  wrote:

>
>
> Hello,
>
> With reference to our topic few days ago and responses
> there on we are converging on PHP as server side technology.
> Within that we shortlisted two options
>
> 1> CakePHP + CakeAMFPHP - Adapter classes to make AMFPHP work
> seamlessly with CakePHP. This way, you can leverage your
> productivity by using CakePHP features on the server side to
> build your application server and use CakeAMFPHP to send
> data back and forth Flash/CakePHP. You can also have a
> HTML version of your Flash app without headeaches.
>
> 2> WebORB - WebORB for PHP is server-side technology enabling
> connectivity between Flex and Flash Remoting clients and
> PHP applications. WebORB for PHP can be installed into any
> PHP5 application to expose PHP classes as remote services.
> The product provides a complete implementation of the
> Adobe's AMF0 and AMF3 messaging protocols and thus supports
> any Flash Remoting or Flex client.
>
> What we need a fast performing, easy to understand and code and
> easily maintainable data abstraction layer. We are prefering
> to ability to change backend database to one of Firebird,
> PostgreSQL, MySQL, Oracle and MS-SQL. Similarly ability to
> embed business logic in that layer.
>
> So whatever study we had done so far we are tilting towards
> CakePHP but WebORB is also equally competing. We are not able
> to make up or Mind so can somebody guide us on this ?
>
> Thanks and Best regards
>
> Raja
>
>
>  
>


[flexcoders] StageAlign and StageScaleMode

2009-04-20 Thread Brad Bueche
Why do I have to use this (below)  to ensure that my web browser layout is
perfectly synced with my stage?  I would think that my browser window IS the
"stage".   Why is this not true?  What am I failing to understand and where
can I read more to understand whats going on here.

stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;

thanks for your time!
brad


[flexcoders] Solution: Port of (VERY Simple) Flash Animation Example to Flex ActionScript Project

2009-04-12 Thread Brad Bueche
Yahooo! (Yes, I might be a redneck).  With the help flex coders (i.e.
"y'all").  I was able to port a Flash ActionScript Project to a Flex
ActionScript project.  (Well, Joey Lott's ActionScript video class on
Lynda.com helped a lot too.  I highly recomend lynda.com for beginners -
like me).  The video mentioned that ENTER_FRAME does operate in Flex at a
default of 12fps.  (Where do you change that?).  So I did not have to resort
to Timer.

All of this is an effort to work through the book "Object Oriented
ActionScript 3.0" in Flex instead of Flash.  This is one of the first
examples in the book.   (Only the first few examples deal with animation,
but it was bothering me that I had to download and work with the Flash ide
simply because I wanted to learn advanced actionscript).  I *highly*
recomend the book. I actualy understand 4 patterns now! Now, I just have to
implement them in flex.

The book uses symbol's as MovieClip but I'm using my BasicShapes (extending
Sprite).  Yes, its probably stupidly simple but it has taken me a long time
to figure it out.  So I'm posting it in case somebody else needs something
like this.

Here is the main actionscript class:

-
package{
import flash.display.MovieClip;
import flash.display.Sprite;
import com.bueche.flex.graphics.BasicShapes;
import com.bueche.flex.graphics.Mover;

public class MoveShapes extends Sprite{

public function MoveShapes (){
   var testItem:BasicShapes = new BasicShapes();
   var testItemMover:Mover = new Mover(testItem, 2, 3);
   addChild(testItem);
   testItemMover.startMoving();
}

}//end of Class
}// end of Package

-end of main class

Here is the BasicShapes class:
-
package com.bueche.flex.graphics
{
import flash.display.DisplayObject;
import flash.display.Graphics;
import flash.display.JointStyle;
import flash.display.LineScaleMode;
import flash.display.Shape;
import flash.display.Sprite;

public class BasicShapes extends Sprite {
private var size:uint   = 80;
private var bgColor:uint   = 0xFFCC00;
private var borderColor:uint  = 0x66;
private var borderSize:uint   = 0;
private var cornerRadius:uint = 9;
private var gutter:uint   = 5;

public function BasicShapes() {
doDrawCircle();
doDrawRoundRect();
doDrawRect();
refreshLayout();
}

private function refreshLayout():void {
var ln:uint = numChildren;
var child:DisplayObject;
var lastChild:DisplayObject = getChildAt(0);
lastChild.x = gutter;
lastChild.y = gutter;
for (var i:uint = 1; i < ln; i++) {
child = getChildAt(i);
child.x = gutter + lastChild.x + lastChild.width;
child.y = gutter;
lastChild = child;
}
}

private function doDrawCircle():void {
var child:Shape = new Shape();
var halfSize:uint = Math.round(size/2);
child.graphics.beginFill(bgColor);
child.graphics.lineStyle(borderSize, borderColor);
child.graphics.drawCircle(halfSize, halfSize, halfSize);
child.graphics.endFill();
addChild(child);
}

private function doDrawRoundRect():void {
var child:Shape = new Shape();
child.graphics.beginFill(bgColor);
child.graphics.lineStyle(borderSize, borderColor);
child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
child.graphics.endFill();
addChild(child);
}

private function doDrawRect():void {
var child:Shape = new Shape();
child.graphics.beginFill(bgColor);
child.graphics.lineStyle(borderSize, borderColor);
child.graphics.drawRect(0, 0, size, size);
child.graphics.endFill();
addChild(child);
}
}//end class
}//end of package

-end of BasicShapes class

Here is the mover class:

package com.bueche.flex.graphics
{
import flash.display.MovieClip;
import flash.events.Event;
import com.bueche.flex.graphics.BasicShapes;

public class Mover extends MovieClip {

public var targetShape:BasicShapes;
public var xVel:Number;
public var yVel:Number;

public function Mover(targetShape:BasicShapes, xVel:Number,
yVel:Number) {
this.targetShape = targetShape;
this.xVel = xVel;
this.yVel = yVel;
}

public function updatePosition(evtObj:Event):void {
this.targetShape.x += this.xVel;
this.targetShape.y += this.yVel;
}

public function startMoving():void{
this.targetShape.addEve

Re: [flexcoders] ActionScript package/class wont produce output (or error)

2009-04-11 Thread Brad Bueche
Thanks! You made my saturday night! (Yea, I'm THAT boring).

If the class had not had all those addChilds in it I would have normally
thought to do this.  What are all those  addChild's in the class adding TO
then?  Its the same stage, same display list  ???

brad

On Sat, Apr 11, 2009 at 6:14 PM, Alex Harui  wrote:

>
>
>  Call addChild()
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. <http://www.adobe.com/>
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Brad Bueche
> *Sent:* Saturday, April 11, 2009 1:15 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] ActionScript package/class wont produce output (or
> error)
>
>
>
>
>
>
>  I'll probably get this working by just changing things until it runs,
> however, I'd like to really understand what is going wrong. ;)
>
>
>
> My packaged class is below (at the bottom).  IF I  run it as the only file
> in an actionscript project (in the Flex 3 ide). It works and draws 3 shapes
> onto the screen.
>
>
>
> However, if I try to call it from the default application class like this
> (immediately below) I get nothing on the screen and I dont get any errors (I
> didnt know wether I was supposed to use MovieClip or Sprite either).
>
>
>
> 
>
> package{
>
>   import flash.display.MovieClip;
>   import flash.display.Sprite;
>   import com.bueche.flex.graphics.BasicShapes;
>
>
>
>   public class MoveShapes extends Sprite{
>
>
>
>  public function MoveShapes (){
> var testItem:BasicShapes = new BasicShapes();
>  }
>
>
>
>   } //end of class MoveShapes
>
> } // end of package
> -
>
>
>
>
>
>
>
>
>
> *packaged class source
>
>
>
> package com.bueche.flex.graphics
>
> {
>
>  import flash.display.DisplayObject;
>  import flash.display.Graphics;
>  import flash.display.JointStyle;
>  import flash.display.LineScaleMode;
>  import flash.display.Shape;
>  import flash.display.Sprite;
>
>
>  public class BasicShapes extends Sprite {
>
>private var size:uint = 80;
>private var bgColor:uint = 0xFFCC00;
>private var borderColor:uint = 0x66;
>private var borderSize:uint = 0;
>private var cornerRadius:uint = 9;
>private var gutter:uint = 5;
>
>
>public function BasicShapes() {
>doDrawCircle();
>doDrawRoundRect();
>doDrawRect();
>refreshLayout();
>
>}
>
>
>private function refreshLayout():void {
>var ln:uint = numChildren;
>var child:DisplayObject;
>var lastChild:DisplayObject = getChildAt(0);
>
>lastChild.x = gutter;
>lastChild.y = gutter;
>
>   for (var i:uint = 1; i < ln; i++) {
>  child = getChildAt(i);
>  child.x = gutter + lastChild.x + lastChild.width;
>  child.y = gutter;
>  lastChild = child;
>
>   }//end of for
>
> }//end of function
>
>
>   private function doDrawCircle():void {
>  var child:Shape = new Shape();
>  var halfSize:uint = Math.round(size/2);
>  child.graphics.beginFill(bgColor);
>  child.graphics.lineStyle(borderSize, borderColor);
>  child.graphics.drawCircle(halfSize, halfSize, halfSize);
>  child.graphics.endFill();
>  addChild(child);
>   }
>
>
>   private function doDrawRoundRect():void {
>  var child:Shape = new Shape();
>  child.graphics.beginFill(bgColor);
>  child.graphics.lineStyle(borderSize, borderColor);
>  child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
>  child.graphics.endFill();
>  addChild(child);
>
>   }
>
>
>   private function doDrawRect():void {
>  var child:Shape = new Shape();
>  child.graphics.beginFill(bgColor);
>  child.graphics.lineStyle(borderSize, borderColor);
>  child.graphics.drawRect(0, 0, size, size);
>  child.graphics.endFill();
>  addChild(child);
>   }
>
>   }//end of class BasicShapes
>
> }//end of package
>
>   
>


Re: [flexcoders] What's your favorite Tip/Trick ?

2009-04-11 Thread Brad Bueche
You might be interested in following the development of this:

http://www.sapphiresteel.com/Download-Amethyst-Adobe-Flex-IDE

They are enabling the ability to develop flex within the visual studio IDE.

Also, a good adobe tv show to wach on thiswell I cant find it
now it was some guy from max doing a presentation on tips and tricks for the
ide.where I learned that the Flex ide keeps many many (dont know
what the limit is) versions of each file for you (just right click the
file and, choose Team, and then Local History).  Didnt get to wach the rest
of it and now I cant find it (after searching through all 18 pages).

But there is a ton of good stuff on there.

brad




On Fri, Apr 10, 2009 at 1:30 PM, Matthew A. Wilson wrote:

>
>
> I've been using .NET for years and recently started developing in Flex. One
> thing I've noticed (and maybe it's because I'm new) is that I have to write
> out just about everything. There were so many things in .NET that the IDE
> would handle for me. Like I could write a function, like DoThis(), and then
> right-click on DoThis() and the IDE would ask me if I wanted to generated a
> method stub. I know that's not earth-shattering, but there were a few things
> here...a few things there that shaved off some seconds and/or minutes and
> just generally speed up development.
>
> I haven't run across anything like that in the FlexBuilder IDE - so my
> question is: What's your favorite tip/trick for speeding up development? Do
> you have some favorite text snippets that you keep handy? Or do you you know
> some trick in the IDE that will save me some repetition?
>
> Or better yet, is there a site or list out there that covers this topic?
> Thanks to all! Have a great weekend!
>
> 
>


[flexcoders] ActionScript package/class wont produce output (or error)

2009-04-11 Thread Brad Bueche
I'll probably get this working by just changing things until it runs,
however, I'd like to really understand what is going wrong. ;)

My packaged class is below (at the bottom).  IF I  run it as the only file
in an actionscript project (in the Flex 3 ide). It works and draws 3 shapes
onto the screen.

However, if I try to call it from the default application class like this
(immediately below) I get nothing on the screen and I dont get any errors (I
didnt know wether I was supposed to use MovieClip or Sprite either).


package{
  import flash.display.MovieClip;
  import flash.display.Sprite;
  import com.bueche.flex.graphics.BasicShapes;

  public class MoveShapes extends Sprite{

 public function MoveShapes (){
var testItem:BasicShapes = new BasicShapes();
 }

  } //end of class MoveShapes
} // end of package
-




*packaged class source

package com.bueche.flex.graphics
{
 import flash.display.DisplayObject;
 import flash.display.Graphics;
 import flash.display.JointStyle;
 import flash.display.LineScaleMode;
 import flash.display.Shape;
 import flash.display.Sprite;

 public class BasicShapes extends Sprite {
   private var size:uint = 80;
   private var bgColor:uint = 0xFFCC00;
   private var borderColor:uint = 0x66;
   private var borderSize:uint = 0;
   private var cornerRadius:uint = 9;
   private var gutter:uint = 5;

   public function BasicShapes() {
   doDrawCircle();
   doDrawRoundRect();
   doDrawRect();
   refreshLayout();
   }

   private function refreshLayout():void {
   var ln:uint = numChildren;
   var child:DisplayObject;
   var lastChild:DisplayObject = getChildAt(0);
   lastChild.x = gutter;
   lastChild.y = gutter;
  for (var i:uint = 1; i < ln; i++) {
 child = getChildAt(i);
 child.x = gutter + lastChild.x + lastChild.width;
 child.y = gutter;
 lastChild = child;
  }//end of for
}//end of function

  private function doDrawCircle():void {
 var child:Shape = new Shape();
 var halfSize:uint = Math.round(size/2);
 child.graphics.beginFill(bgColor);
 child.graphics.lineStyle(borderSize, borderColor);
 child.graphics.drawCircle(halfSize, halfSize, halfSize);
 child.graphics.endFill();
 addChild(child);
  }

  private function doDrawRoundRect():void {
 var child:Shape = new Shape();
 child.graphics.beginFill(bgColor);
 child.graphics.lineStyle(borderSize, borderColor);
 child.graphics.drawRoundRect(0, 0, size, size, cornerRadius);
 child.graphics.endFill();
 addChild(child);
  }

  private function doDrawRect():void {
 var child:Shape = new Shape();
 child.graphics.beginFill(bgColor);
 child.graphics.lineStyle(borderSize, borderColor);
 child.graphics.drawRect(0, 0, size, size);
 child.graphics.endFill();
 addChild(child);
  }
  }//end of class BasicShapes
}//end of package


Re: [flexcoders] embedding mapquest location

2009-04-10 Thread Brad Bueche
Not sure how tied you are to mapquest but yahoo has an AS3 API to their
maps.

There is also a 2 (going to be 4) part series in Flex Authority magazine on
how to work with it.

brad

On Thu, Apr 9, 2009 at 6:48 PM, flexnewbie999  wrote:

>
>
> I'm writing a real estate application. I'd like to be able to either look
> up a location using the address location or save a URL to be passed to
> MapQuest. Is there a way to embed a MapQuest map in an existing Flex UI
> component or pop up the MapQuest map in a separate window without leaving
> the app?
>
>  
>


[flexcoders] Suggestion to enable adobe TV to be more effective

2009-04-10 Thread Brad Bueche
I may just be showing my ignorance here (and, if so, please point that out
to me).

1)  Enable the video's to be downloaded.

2) Enable them to be downloaded as podcasts.

I would imagine that a great many people do not have the
ability/infrastructure/funds to be connected all the time.

[Yes, this is not a code question but its the only place I know for sure
that high level adobe peeps hang out]

And the video's are great!

(tv.adobe.com for those of you who are unaware of this resource)

brad


Re: [flexcoders] In Flex and Coldfusion Crud in 100 lines, the CFC syntax doesn't work on MX702

2009-04-08 Thread Brad Bueche
In my example I have:







then ...wrote:

>
>
> Hey guys,
>
> I followed this seemingly great article, and I've found that in the
> Crud.cfc portion of the example (here specifically)...
>
> 1:
> 2: 
> 3: 
> 
> select id, name, type
> from test
> 
> 
> 
>
> ...the 3rd line cfset var local = {} throws this error:
> "Invalid token '{' found on line 3"
>
> Is this a CF8 v CFMX702 thing? If so, what is the solution?
>
> If I comment out the line and remove the 'local' prefix to the query name
> 'q', the cfc runs fine, and a test.cfml that invokes the cfc works fine, but
> the swf never gets data. (I added crossdomain.xml with allow "*")
>
> I'm thinking two things
> 1) the query result needs a collection wrapper for Flex to work?
> And
> 2) that I might have a minor have endpoint and/or source description
> problem in the mxml for the remote object because I'm a tad unclear which
> "root" is being referred to web root, app root.
>
> Thoughts/help?
>
> Please and thank you.
>
> Dov
>
>  
>


Re: [flexcoders] Re: How can I have my class return an ArrayCollection?

2009-04-08 Thread Brad Bueche
If you could post what finally works here.  I'd like to see it.

thanks
brad

On Wed, Apr 8, 2009 at 12:05 PM, - -  wrote:

>   Thanks Maciek that makes sense, I'll look into that.
>
>  --
> *From:* Maciek Sakrejda 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Wednesday, April 8, 2009 11:54:15 AM
> *Subject:* Re: [flexcoders] Re: How can I have my class return an
> ArrayCollection?
>
>  So you want a function to return a result before it's there? I think you
> can see the problem inherent in that design.
>
> In a runtime other than Flash, you could block if the user calls the
> function before the result is available, but Flash won't let you do that
> (and for good reason--the entire paradigm is built around nonblocking
> actions). I think the only think you can do is have Services extend
> EventDispatcher and dispatch an event when the result is returned, and
> listen for that in the client.
>
> -Maciek
>
> -Original Message-
> From: - - >
> Reply-to: flexcod...@yahoogro ups.com 
> To: flexcod...@yahoogro ups.com 
> Subject: Re: [flexcoders] Re: How can I have my class return an
> ArrayCollection?
> Date: Wed, 8 Apr 2009 08:35:32 -0700 (PDT)
>
> I tried that but it returns an empty ArrayCollection because it's only
> created within the ResultEvent Function once the HTTPService is
> successful.. .
>
> Thanks.
>
>  _ _ _ _ _ _
> From: valdhor 
> >
> To: flexcod...@yahoogro ups.com 
>
> Sent: Wednesday, April 8, 2009 11:20:44 AM
> Subject: [flexcoders] Re: How can I have my class return an
> ArrayCollection?
>
> Umm.. Add a public function that returns serviceArray ?
>
> --- In flexcod...@yahoogro ups.com, "sailorsea21" 
> wrote:
> >
> > Hi everyone,
> > how can I have this following class return me an ArrayCollection
> whenever I call it
> >
> > [Bindable]
> > public class Services
> > {
> > public var serviceArray: ArrayCollection;
> > public var serviceXML:XML;
> >
> > public function getServices( ):void
> > {
> > var service:HTTPService = new HTTPService( );
> > service.url = "test.php";
> > service.useProxy = false;
> > service.method = "POST";
> > service.resultForma t = "e4x";
> > service.showBusyCur sor = true;
> > service.addEventLis tener(ResultEven t.RESULT,
> > function (event:ResultEvent) :void
> > {
> > serviceArray = new ArrayCollection( );
> > serviceXML = event.result as XML;
> > var ourxml:XML;
> > for each(ourxml in serviceXML.elements ()) serviceArray.
> addItem(ourxml) ;
> > }
> > );
> > service.send( );
> > }
> > }
> >
>
>
>  
>


Re: [flexcoders] Freelance / Contract Jobs

2009-04-07 Thread Brad Bueche
You can also try www.riajobs.org.  Linkedin has a flexcoders group that is
always posting job ops. There is also www.searchcoders.com/jobs

brad

On Tue, Apr 7, 2009 at 1:57 PM, Kyle  wrote:

>   Does anyone have any good resources for finding Freelance / Contract
> work in Flex/Flash/Actionscript Development?
>
> Thanks!
>
> -Kyle
>
>  
>


Re: [flexcoders] clear concise article/tutorial on setting up CFC project in Flex Builder?

2009-04-07 Thread Brad Bueche
These are what enabled me to make the leap.  NOT using the wizard.

Valdhor turned me on to these:
http://flexcf.com/tutorials


This if from Tariq Ahmed:
I've collected various CF+Flex articles here:
http://www.cflex.net/showfiledetails.cfm?ChannelID=1&Object=File&objectID=618


And Dan Vegas recently posted an 11 part series on CF+Flex.
http://www.danvega.org/blog/



On Tue, Apr 7, 2009 at 1:12 PM, dmkramerica wrote:

>   I have full admin priv to CF, and the entire server for that matter, and
> Gassner's articles on lynda.com only describe setting up Cold Fusion
> projects in a local environment - which is like super rare in reality. The
> other information I find seems inconsistent and sometimes contrary so
> far...for instance one article tells me to make sure the xml config files
> are one location, and when I look it's not there, but there are five other
> copies in other folders yet when I try using those paths in the CF project
> set up in FB3 none of them work, so...I'm stuck in the CF project wizard in
> Flex Builder 3.
>
> How do you set up a Cold Fusion project in Flex Builder and verify the
> server communication so you can finish the wizard? (This seems
> straightforward but the information on it isn't.)
>
> or...
>
> Do I even need this IDE setup stuff, can't I just get my swf to talk to my
> CFC without this wizard? ( which would blow because of all niceties of
> having immediate feedback in an IDE while developing, but just getting them
> talking is good enough for me at this point.)
>
> Anyone?
>
>  
>


Re: [flexcoders] Vidoe Tutorials Needed

2009-04-07 Thread Brad Bueche
You can also try lynda.com.  They have excellent video's.  They even have
Joey Lott teaching ActionScript 3.0 (and not framework specific at that!).
 They have about 50 hours of flex traning alone. They also have Flash CS4
(CS3 and older) training. Dreamweaver training.  ColdFusion 8 training. etc.
 Very good and high quality video.
$25 a month though.   However, I was  watching the free ones last night
(approx first 5 lessons of each course are free) and they are  very good.
lynda.com covers  all the Adobe CS software (even older versions)

designprovideo's also has some adobe cs4 training but not nearly as  much as
 lynda.com does.

brad

On Mon, Apr 6, 2009 at 11:59 PM, Shabir Gilkar wrote:

>   Thanks You very much Mr Jeffry Houser.
>
> I hope the links provided by you may help me.
>
> Currently i am learning flash cs3 and after that i would like to take ADOBE
> FLEX 3 and that is why i am collecting materials for that.
>
> Thanks for being there!
> *
> With High Regards
>
> Shabir Ahmad Gilkar*
>
> --- On *Mon, 6/4/09, Jeffry Houser * wrote:
>
>
> From: Jeffry Houser 
> Subject: Re: [flexcoders] Vidoe Tutorials Needed
> To: flexcoders@yahoogroups.com
> Date: Monday, 6 April, 2009, 5:57 PM
>
>  Adobe's Learn Flex in a Week: http://www.adobe. com/devnet/
> flex/videotraini ng/ 
> The Flex Show Podcast ScreenShots: http://www.theflexs how.com/blog/
> index.cfm/ Fifteen-Minutes- 
> With-Flex
>
> Shabir Gilkar wrote:
>
>   Dear Friends,
>
> I am fresher in Flex Builder 3 and i want to learn Flex. Can any buddy help
> me in getting best explinatory video tutorials for that.
>
> I hope some buddy will definatley help me.
>
> *With High Regards
>
> Shabir Ahmad Gilkar*
> **
> *From Kashmir the Heaven!*
>
> --
> Add more friends to your messenger and enjoy! Invite them 
> now.
>
>
> --
> Jeffry Houser, Technical Entrepreneur
> Adobe Community Expert: http://tinyurl. com/684b5h 
> http://www.twitter. com/reboog711   | 
> Phone: 203-379-0773
> --
> Easy to use Interface Components for Flex Developers
> http://www.flextras .com?c=104 
> --
> http://www.theflexs how.com 
> http://www.jeffryho user.com 
> --
> Part of the DotComIt Brain Trust
>
>
> --
> Unlimited freedom, unlimited storage. Get it 
> now
>
>  
>


Re: [flexcoders] Re: Flex Component Kit still needed for CS4?

2009-04-06 Thread Brad Bueche
Nate,

Exactly.  This is my question.  The  adobe website seems to
be inadvertently linking a  CS4 website to a CS3 page because they never
specifically state "Yes, we are sending you from a  CS4 page to a CS3 page,
but you are still required to install this on CS4 as well if you want to use
this particular package as it does not ship as part of CS4".

brad


On Mon, Apr 6, 2009 at 2:01 AM, Nate Beck  wrote:

>   I think the question.. is the Flex component kit already installed in
> CS4?  To that, I don't know that answer right off the bat.  Flash and Flex
> workflows are quite confusing.  Someone from Adobe needs to write an updated
> article on DevNet explaining the preferred way of working with Flash and
> Flex.
>
>
> On Sun, Apr 5, 2009 at 8:21 PM, Amy  wrote:
>
>>   --- In flexcoders@yahoogroups.com ,
>> "brad.bueche"  wrote:
>> >
>> > I know CS3 needed the flex component kit. Does CS4 need it as well?
>> >
>> > Its confusing because this page:
>> >
>> >
>> http://help.adobe.com/en_US/Flash/10.0_UsingFlash/WSFD77A256-0DE1-46c7-86FB-CC4A8AE2EAA6.html
>> >
>> > which is for CS4, sends you to the component page, but the component
>> page only mentions CS3.
>>
>> What do you mean by "needed"? The component kit is kind of a convenience
>> for wrapping a flash MC or Sprite so it looks just like a component to Flex,
>> but you've always had the option of loading an ordinary swf into a
>> swfloader.
>>
>>
>
>
> --
>
> Cheers,
> Nate
> 
> http://blog.natebeck.net
>
>
>  
>


[flexcoders] Manually Downloading Flex Updates

2009-01-22 Thread Brad Bueche
I cant seem to get the right search string to find the answer to this in
the archives.
 
My Help->Software Updates always just goes out to lunch.  This probably
because of local firewall settings (which I cant change) and/or network
firewall settings.  Is there web page that describes how to get the
update manually?  I had to get CFEclipse manually. 
 
Right now my feature details says I have:
 
Flex Builder Core3.0.205647
Flex Builder Standalone:3.0.205647
 
I'm assuming this is not the most current rev.
 
thanks
brad
 
 


[flexcoders] Need a Flex 3, using local cfc server, tutorial

2009-01-13 Thread Brad Bueche
Ok, finally getting back into flex (TO STAY) after almost a year.  I
even purchased Flex 3 professional with my own money!  And I'm going to
make another attempt to get flex apps into my area of the company.
 
I tried the wizard but wizards are a Catch-22:
 
If you need the wizard to create your code, you'll get something that is
essentially nothing more than a demo and you wont understand how it did
what it did or where to go from there.  If you understand what the
wizard does and it could actually use a wizard to speed things up, you
dont need it because you'd rather do it your own way.  (They really seem
to only be useful for impressing people who dont actually code).
 
The tutorials that I have found so far assume you are using a J2EE
implementation..or they are for Flex 2.  So I need one for Flex 3
that walks through using the local cf server.  I have cf hooked up to
the db's (data sources work).  And the wizard demo app works.  However,
I dont need what the wizard does and I dont understand how its laying
out all the files.  I need an explanation of that so that.  If anybody
knows of some good walk throughs or tutorials on this pleas let me know.


RE: [flexcoders] Re: How to efficiently copy a filtered and sorted ArrayCollection?

2008-03-06 Thread Brad Bueche
Since array copying is such a frequent topic on this forum,  should it
be considered as a future addition to the product?
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Danny Gold
Sent: Tuesday, March 04, 2008 10:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to efficiently copy a filtered and sorted
ArrayCollection?



Since the filtering and sorting affects the iterator over the
ArrayCollection, I believe you could create a new ArrayCollection,
then do a "for each" over your current ArrayCollection, adding those
items to your new AC. The result will be a new AC with references to
the currently filtered and sorted items in ordered. Then you can apply
your sorting/filtering to the new AC so it will affect any future
iterations after adding items.

--- In [EMAIL PROTECTED] 
ups.com, "m.ar80" <[EMAIL PROTECTED]> wrote:
>
> I have to make copy of a filtered and sorted array collection.
> Iterating over the source array of the first collection and then
> adding each item iterated to the second collection is not an efficient
> way of doing it because each item added is re-filtered and re-sorted
> in the new collection even though its filter status and sorted
> position is already known in the first collection. Is there any better
> way of doing this? Thanks.
>



 



RE: [flexcoders] Be the tree, Bob

2008-02-26 Thread Brad Bueche
Thanks for the feedback Peter and Alex!
 
I have also found these two possible solutions:
 
http://cyberdust.wordpress.com/2007/02/23/introducing-selecttree-the-dro
p-down-tree-control/#comment-4946
 
However, this guy did part of it with cf and I'm getting an 1180 Error
"Call to possibly undefined method SubjectGateway".  I've asked if he
can give a flex only example.  As I'm a newbie, I'm much more into
re-use at this stage than writing the specifics myself (I"m learning as
fast as I can!). 
 
There is also this solution:
 
http://kmossman.blogspot.com/2007/03/blog-post.html
 
I'm still taking a look at this one.
 
Its a good sign though that you can think of something you might like in
flex, google it, and get multiple samples.  This is what enabled me to
learn php so fast.  I found them both by just typing "dropDownFactory =
Tree" into Google.
 
brad
 
keywords:  Tree Combobox dropDownFactory

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Peter DeHaan
Sent: Tuesday, February 26, 2008 2:04 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob






You could also try something like this:





  

  

  







And then tweak it slightly to fit your needs.



Peter






  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Tuesday, February 26, 2008 10:04 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Be the tree, Bob



Start with setting dropDownFactory=Tree.  There might be some other
things that need fixing though.




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Tuesday, February 26, 2008 9:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Be the tree, Bob



http://blog.
<http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-co
ntrol-using-the-expanditem-method/>
flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-control-using-t
he-expanditem-method/



Is there anyway to get the tree view INTO the combo box?



I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.



I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.



So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?



brad





 



[flexcoders] Be the tree, Bob

2008-02-26 Thread Brad Bueche
http://blog.flexexamples.com/2007/11/29/opening-nodes-in-a-flex-tree-con
trol-using-the-expanditem-method/
 
Is there anyway to get the tree view INTO the combo box?
 
I really like the idea of having a hierarchical menu that looks exactly
like the tree in this example.  I just want it to drop down and be a
menu like the combo box.  I detest the windows file manager interface
(because of its inefficient use of screen real-estate) and I dont like
cascading menu's because I get really annoyed having to slow down and
use my mouse in slow motion just so I can get to the sub-menu I want.
 
I think the drop down tree hiearchy within a combobox solves both of
these problems. 1).  Its a great use of screen real-estate  --- if you
are not using it it takes up practically no room and 2) the hierarchy is
persistent and I dont have to be a jedi master with my mouseand I
dont have to move %80 down and to the right to get the menu I want.
 
So would it be possible to do a tree in a combo box?  Or, if thats
impossible, I guess I can just put the tree on a application bar and use
it like a menu?
 
brad


RE: [flexcoders] Flex Charting with MySQL datetime field

2008-02-24 Thread Brad Bueche
I think you should be able to use a .string function and just (one way
of doing it) match the positions (in the string) of the time (since it
will always be the same -- give your formatting).
 
I pull data from an oracle database.  I do it via php though so I have
php do the string parsing before it puts it into an xml file. You also
have the option of changing the formatting on your database query so
that it only returns the time (and not the date) (i.e. hh:mm:ss)
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of donvoltz
Sent: Saturday, February 23, 2008 10:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Charting with MySQL datetime field



Hello Everyone,

I have been digging into the flex charting components with nice
success. Currently I have extracted a large dataset from a mysql
database and would like to plot a line graph with the y-axis being a
value and the x-axis being a time. 

Can anyone point me in the right direction to accomplish this, the
time field is returned as an mysql datetime field (ie MM-DD-
hh:mm:ss) and I would like to have the data displayed only as the time
since all of the dates are the same

Thanks in advance for any direction on this

Don



 



RE: [flexcoders] Re: Any Flex Math Tutorials out there

2008-02-23 Thread Brad Bueche
http://www.friendsofed.com/fmc/FMCv2/FMC.html
 
 
http://www.friendsofed.com/book.html?isbn=1590594290   "Flash Math
Creativity: 2nd Addition"
 
 
http://www.friendsofed.com/book.html?isbn=1590597915   "Foundation
ActionScript 3:  Making things Move"
 
(Note you should be able to get the books on amazon used for a lot less)
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Tuesday, February 12, 2008 4:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Any Flex Math Tutorials out there



There's a good little book called "Flash Hacks" published by O'Reilly
that has some maths intros in it for motion, effects and perspective
etc.

If you really want the maths then try "Numerical Recipes for C" - it's
not too hard to make the mental translation to AS3, after all the
maths is universal.

Failing that, grab a latte and a maths text book from off your shelf
and go and sit in the park for an afternoon.

--- In [EMAIL PROTECTED] 
ups.com, Sherif Abdou <[EMAIL PROTECTED]> wrote:
>
> i haven't had any math classes in years and was wondering if anyone
knows anysites that teach some Flex Math. What i mean is stuff like that
>
http://www.alex-
 uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/
>
http://weblogs.
 macromedia.com/auhlmann/archives/2006/11/download_distor.cfm
> 
> but i want simple stuff and start building up. I know the Source is
avaliable but i am lost as to where to start on it. Thanks
> 
> 
> 
__
> Looking for last minute shopping deals? 
> Find them fast with Yahoo! Search. 
http://tools.

search.yahoo.com/newsearch/category.php?category=shopping
>



 



[flexcoders] OO Patterns and Design Analysis Books based on Flex/AS3?

2008-02-21 Thread Brad Bueche
Do any exist (based on flex2+ and AS3)?
 
I have the O'reilly head start stuff but its based on Java.  I'd much
rather have these books based on Flex/ActionScript.  Also, Adobe, having
books like this of course ushers in new converts to your market place.
So I get the knowledge I want in the language I want and you get more
money for your stock holders. Sounds like a win-win situation.  Oreilly
already knows how to do these books, so go with them.   In fact, to make
it easy, just take the existing books and convert them to
Flex/ActionScript.
 
So let it be written, so let it be done.
 
Let me know when they're on amazon and I'll pre-order!
 

Ok, maybe throw in CF there because large scale OO design is going to
require backend.  Incidentally, wouldnt it be better if Flex/Flash/CF
were all one language and 1 IDE.  Flex is saving me from having to learn
javascript, advanced html, DOM, and ajax.  Now I'm going to have to
learn CF syntax though. I think, adobe, that you are pretty darn close
to critical mass here (with flex as the spearhead -- to mix metaphors) I
think you have the chance to grab major market share from MS and
Sun.but it comes down to the mix and your timing. At any rate, I
think your front door welcome mat should say "FLEX" and that an open
sourced AS3/MXML engine should permeate your product lines. (One Land!
One King!) Yea, and name this project "Excalibur"
.
 
 
 
brad


[flexcoders] No right mouse button functionality? Really?

2008-02-20 Thread Brad Bueche
I've been googling trying to find out how to turn off the player menu
and enable right mouse button clicks.  So far it looks like you cant do
it.  Am I missing something here? 
 
brad


RE: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and dataProvider

2008-02-20 Thread Brad Bueche
Ok, I understand!!! (Finally!)
 
thanks!!!
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, February 20, 2008 2:47 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and
dataProvider






For the XMLList collection, do this:

public var dpCollection:XMLListCollection;



dpList = event.result.month; 

dpCollection = new XMLListCollection(dpList);



One suggestion for flexibility: Keep a reference to the root of the XML.
My advised code below:

private var _xmlResult:XML;

public var _dpCollection:XMLListCollection;  //the leading underscore
just indicates that this is an instance scoped var



public function resultHandler(event:ResultEvent):void 
{ 
_xmlResult = XML(event.result);  //you can
also use the "as" operator

trace(_xmlResult.toXMLString()); //so you
can see exactly what you have

var xlMonths:XMLList = _xmlResult.month;  //this interim var
not required, just for clarity and debugging

_dpCollection = new XMLListCollection(xlMonths); 

linechart.dataProvider = _dpCollection;//this is
find, alternatively mark var [Bindable] and bind linechart dataProvider
to var

}// resultHandler



The "strong typing" is really a separate issue.  The above is fine
unless you have MANY renderers on screen at once.  I'd say do it like
above first, and go to the ArrayCollection of strongly typed objects if
necessary.  



The creation of the ArrayCollection is a manual process.  You will
for-loop over each xml node in the XMLList, create a value object, and
assign the object property values from the xml atribute values (often
the VO takes an xml node and does this itself).  Then you addItem() the
item object to the ArrayCollection.  All this happens in the result
handler.



Tracy


  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Wednesday, February 20, 2008 1:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and
dataProvider



Thank you very much for taking the time to give that answer. Its helping
a lot



I guess for turning this into a XMLListCollection and hooking it up to
my dataProvider I'd do the following?



//***

[Bindable]

public var dpCollection:XMLListCollection = new XMLListCollection (); 



public var dpList:XMLList = new XMLList(); 



[...snip...]



public function resultHandler(event:ResultEvent):void 
{ 
dpList = event.result.month; 

dpCollection = dpList;

linechart.dataProvider = dpCollection;

}





/*

Is this correct? But then where is the strong typing?



I WILL be doing grids and charts with hundreds of data points (for
reporting, query only, purposes), so if I am reading you correctly I
need to put this into an ArrayCollection (which I think, but I'm not
sure, is different than an XMLListcollection?).  



thanks,

brad



-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, February 20, 2008 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and
dataProvider

If you are not going to programatically update an individual data 
provider item, them XMLList will be fine.

However, if you ever want to have a user update a property of an 
item, in some editable cell for example, then you need to wrap the 
XMLList in an XMLListCollection.

This is because when you use the collection API to modify the data, 
events are dispatched to ensure the UI updates to match the data 
update. This is similar to the relationship between Array and 
ArrayCollection.

There is no performance reason not to use a collection. If you do 
not, then Flex wraps your XMLList or Array in a collection itself.

So, there are no reasons not to use a collection, except for one more 
line of code, and several reasons you should.

Performance caveat: It has become clear that accessing data an xml 
node is significantly slower than accessing data in a strongly typed 
object. This can be noticable if you have, say, a large datagrid 
that displays hundreds of cells.

If this is the case with your app, then best practice is to pre-
process the e4x xml into strongly typed objects in an ArrayCollection.

Tracy

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> Thanks to this group, I have come a long way in understanding 
this. I
> want to check my setup and see if I still have further to go. Is 
this
> the preferred way to set up a dataprovider when pulling XML in E4X
> format via HTTPService? Or do I still need to some how incorporate
> XMLLi

RE: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and dataProvider

2008-02-20 Thread Brad Bueche
Thank you very much for taking the time to give that answer. Its helping
a lot
 
I guess for turning this into a XMLListCollection and hooking it up to
my dataProvider I'd do the following?
 
//***
[Bindable]
public var dpCollection:XMLListCollection = new XMLListCollection (); 
 
public var dpList:XMLList = new XMLList(); 
 
[...snip...]
 
public function resultHandler(event:ResultEvent):void 
{ 
dpList = event.result.month; 
dpCollection = dpList;
linechart.dataProvider = dpCollection;
}
 
 
/*
Is this correct? But then where is the strong typing?
 
I WILL be doing grids and charts with hundreds of data points (for
reporting, query only, purposes), so if I am reading you correctly I
need to put this into an ArrayCollection (which I think, but I'm not
sure, is different than an XMLListcollection?).  
 
thanks,
brad
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, February 20, 2008 11:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Best Practices:HTTPService, E4X, XML and
dataProvider



If you are not going to programatically update an individual data 
provider item, them XMLList will be fine.

However, if you ever want to have a user update a property of an 
item, in some editable cell for example, then you need to wrap the 
XMLList in an XMLListCollection.

This is because when you use the collection API to modify the data, 
events are dispatched to ensure the UI updates to match the data 
update. This is similar to the relationship between Array and 
ArrayCollection.

There is no performance reason not to use a collection. If you do 
not, then Flex wraps your XMLList or Array in a collection itself.

So, there are no reasons not to use a collection, except for one more 
line of code, and several reasons you should.

Performance caveat: It has become clear that accessing data an xml 
node is significantly slower than accessing data in a strongly typed 
object. This can be noticable if you have, say, a large datagrid 
that displays hundreds of cells.

If this is the case with your app, then best practice is to pre-
process the e4x xml into strongly typed objects in an ArrayCollection.

Tracy

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> Thanks to this group, I have come a long way in understanding 
this. I
> want to check my setup and see if I still have further to go. Is 
this
> the preferred way to set up a dataprovider when pulling XML in E4X
> format via HTTPService? Or do I still need to some how incorporate
> XMLListCollection here?
> 
> public var xmlService:HTTPService = new HTTPService(); 
> public var dataProvider:XMLList = new XMLList(); 
> 
> public function loadXML():void 
> { 
> xmlService.url 
= "http://hostname/ <http://hostname/Data/createXML.php>
Data/createXML.php";
> 
> xmlService.resultFormat = "e4x"; 
> xmlService.addEventListener(ResultEvent.RESULT,
> resultHandler); 
> xmlService.send(); 
> } 
> 
> public function resultHandler(event:ResultEvent):void 
> { 
> dataProvider = event.result.month; 
> }
>



 



[flexcoders] Best Practices:HTTPService, E4X, XML and dataProvider

2008-02-20 Thread Brad Bueche
Thanks to this group, I have come a long way in understanding this.  I
want to check my setup and see if I still have further to go.  Is this
the preferred way to set up a dataprovider when pulling XML in E4X
format via HTTPService?  Or do I still need to some how incorporate
XMLListCollection here?
 
public var xmlService:HTTPService = new HTTPService(); 
public var dataProvider:XMLList = new XMLList(); 

public function loadXML():void 
{ 
xmlService.url = "http://hostname/Data/createXML.php";;

xmlService.resultFormat = "e4x"; 
xmlService.addEventListener(ResultEvent.RESULT,
resultHandler); 
xmlService.send(); 
} 

public function resultHandler(event:ResultEvent):void 
{ 
dataProvider = event.result.month; 
}


RE: [flexcoders] do you need CS Degree to get a job?

2008-02-20 Thread Brad Bueche
If its your first job in the field a degree will certainly help.  After
that you had better have some good references and be able to code on the
spot. You also need to be personable in the interview (no small point).
 
I was a political philosophy major.  It was the only degree I could find
that didnt have a math requirement at my school!  (Still had to take 6
hours of statistics .twice).  My first job was as a bill collector!
Didnt like that so I quit, worked construction, and took some night
school classes in programming (cobol, pascal, c)(1988!). Somebody in my
class got me a job at a bank and I've just gone from there.   I've been
through several banks and two startups. One very successful, one not.
I've been through several managerial positions.  I personally dont care
if you have a degree or not.  I care about what you know and (VERY
important) how motivated you are/how much passion you have for what you
do, and how much of a team player you can be. Its absoluteley no fun
working with people who are not doing what they love (this job just
requires too much dedication).  Its also a colossal waste of time and a
huge vulnerability to hire people who can not communicate with others
and/or are elitist (therefore, the team player requirement).  If you
give short answers at an interview and talk to your feet, you wont get
the good jobs.  With all this in mind, a degree is, therefore,
irrelevant to me.  Most of the people I would hire will come through
mutual friends (linkedin is a great source for this).
 
NEVER burn a bridge (5 years down the road, you have no idea who is
going to be the decision maker in something you want/need very, very
badly).  And ALWAYS keep in touch with people you know are good,
motivated and love what they do.  Build your short list of contacts as
you advance through your career.  It WILL be a life saver sooner or
later. (The coolest idea in the world and VC money are useless unless
you can build a good team).
 
Somebody mentioned putting a blog up and posting like hell.  I think
thats is a great idea!  Its much better than a resume.  It shows that
you are motivated, it displays your talent level (code wise), your
organizational ability, your ability to explain difficult concepts, your
ability to communicate in writing, and, it can, show your ability to
deal with annoying people! (And, at deadline, after a 60, 70 hour week,
everybody gets annoying!) A very good idea.
 
brad
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, February 19, 2008 7:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] do you need CS Degree to get a job?





A bit off-topic but I was just wondering since i have no reminescense of
this and their seems to be a lot of programmers on here  I thought I
would ask this question. Do you actually need some sort of CS degree or
Computer Related degree to get a job say in programming Web Applications
or getting a Job at Adobe or MSFT or Google. I have a degree in
Molecular Biology with a Chem Minor. I am Self-Taught so let me here
some stories. Thanks. 

  _  

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
 it now. 



 



RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders

2008-02-19 Thread Brad Bueche
Actually,  there was another component in my program doing essentially
the same thing (i.e. allowing users to go up and down from year to
month) and not having the problem.  I realized that for that component I
was only loading the xml once.  In this one that I was recently having
problems with, was grabbing the entire years xml every time they changed
month. I rewrote it to only load at startup and the problem disappeared.
 
Do you know of any tutorials or code samples for usint the progress bar?
I was using show busy but the show busy clock was showing longer than
just waiting for the xml to load.  Is there a way to shut the busy
cursor off or put a timer on it?
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Randy Martin
Sent: Sunday, February 17, 2008 1:28 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Prohibiting Old Chart from Displaying while
new Chart renders





Put a progress bar in a model popup window when you call the data
provider routine. Add a listener for the result event from the data
provider routine, and take the model popup down when you finish
processing the result from your data provider.
 
~randy


  _  

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Sunday, February 17, 2008 8:20 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Prohibiting Old Chart from Displaying while
new Chart renders





 
Well really I think the problem could be solved (1 way anyway) by just
telling it not to move to the next view (viewstack) until my
initDataDrovider function finishes.  Is there a way to do this? I'm not
used to things operating in parallel. I need the program to wait until
the dataprovider function returns. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Saturday, February 16, 2008 6:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Prohibiting Old Chart from Displaying while
new Chart renders





can you do some sort of mockup file, you can always try to call any of
the validation methods and see if that works


- Original Message 
From: Brad Bueche <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 3:12:13 PM
Subject: [flexcoders] Prohibiting Old Chart from Displaying while new
Chart renders





I have a chart that, at year level, allows users to drill down into
individual months.
 
The problem is that if the user drills down into march, then comes back
up to the year level (via viewstack bread-crumb trail button), and then
drills down into October, for a spilt second the march data will still
be on the screen.  I have been knocking my head against the wall all day
(on a weekend!) trying to prohibit the old data from continuing to show
until the new data is rendered but I cant get anything to work.
 
Any ideas?
 
brad


  _  

Looking for last minute shopping deals? Find
<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsear
ch/category.php?category=shopping> them fast with Yahoo! Search. 






No virus found in this outgoing message.
Checked by AVG.
Version: 7.5.516 / Virus Database: 269.20.7/1283 - Release Date:
2/16/2008 2:16 PM




 



RE: [flexcoders] How do i get rid of the white box?

2008-02-17 Thread Brad Bueche
Sorry, responded on the wrong thread.
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Sunday, February 17, 2008 8:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How do i get rid of the white box?





Well really I think the problem could be solved (1 way anyway) by just
telling it not to move to the next view (viewstack) until my
initDataDrovider function finishes.  Is there a way to do this? I'm not
used to things operating in parallel. I need the program to wait until
the dataprovider function returns. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Saturday, February 16, 2008 6:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do i get rid of the white box?





never mind, i guess it is called whiteBox who woulda thought it would be
that easy.


- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 4:55:49 PM
Subject: [flexcoders] How do i get rid of the white box?





Picture is attatched, i have no idea what it is or how to get rid of it.
Thanks

  _  

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
<http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i6
2sR8HDtDypao8Wcj9tAcJ>  


  _  

Looking for last minute shopping deals? Find
<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsear
ch/category.php?category=shopping> them fast with Yahoo! Search. 





 



RE: [flexcoders] Prohibiting Old Chart from Displaying while new Chart renders

2008-02-17 Thread Brad Bueche
 
Well really I think the problem could be solved (1 way anyway) by just
telling it not to move to the next view (viewstack) until my
initDataDrovider function finishes.  Is there a way to do this? I'm not
used to things operating in parallel. I need the program to wait until
the dataprovider function returns. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Saturday, February 16, 2008 6:00 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Prohibiting Old Chart from Displaying while
new Chart renders





can you do some sort of mockup file, you can always try to call any of
the validation methods and see if that works


- Original Message 
From: Brad Bueche <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 3:12:13 PM
Subject: [flexcoders] Prohibiting Old Chart from Displaying while new
Chart renders





I have a chart that, at year level, allows users to drill down into
individual months.
 
The problem is that if the user drills down into march, then comes back
up to the year level (via viewstack bread-crumb trail button), and then
drills down into October, for a spilt second the march data will still
be on the screen.  I have been knocking my head against the wall all day
(on a weekend!) trying to prohibit the old data from continuing to show
until the new data is rendered but I cant get anything to work.
 
Any ideas?
 
brad


  _  

Looking for last minute shopping deals? Find
<http://us.rd.yahoo.com/evt=51734/*http://tools.search.yahoo.com/newsear
ch/category.php?category=shopping> them fast with Yahoo! Search. 



 



RE: [flexcoders] How do i get rid of the white box?

2008-02-17 Thread Brad Bueche
Well really I think the problem could be solved (1 way anyway) by just
telling it not to move to the next view (viewstack) until my
initDataDrovider function finishes.  Is there a way to do this? I'm not
used to things operating in parallel. I need the program to wait until
the dataprovider function returns. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Saturday, February 16, 2008 6:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] How do i get rid of the white box?





never mind, i guess it is called whiteBox who woulda thought it would be
that easy.


- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, February 16, 2008 4:55:49 PM
Subject: [flexcoders] How do i get rid of the white box?





Picture is attatched, i have no idea what it is or how to get rid of it.
Thanks

  _  

Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try
it now.
  


  _  

Looking for last minute shopping deals? Find
 them fast with Yahoo! Search. 



 



[flexcoders] Prohibiting Old Chart from Displaying while new Chart renders

2008-02-16 Thread Brad Bueche
I have a chart that, at year level, allows users to drill down into
individual months.
 
The problem is that if the user drills down into march, then comes back
up to the year level (via viewstack bread-crumb trail button), and then
drills down into October, for a spilt second the march data will still
be on the screen.  I have been knocking my head against the wall all day
(on a weekend!) trying to prohibit the old data from continuing to show
until the new data is rendered but I cant get anything to work.
 
Any ideas?
 
brad


[flexcoders] Editor commands in code

2008-02-16 Thread Brad Bueche
In Visual Developer, one can insert markings that allow one to collapse
sections of code (expand, collapse).   Does the Flex 2 IDE have
something like that? I'm getting tired of paging through long sections
of code.  Also does the Flex 2 IDE have the ability to do split screen
views of the same file (like Komodo allows)? This would also help avoid
paging back and forth as I could compare two sections of the same file
to see what is different.
 
brad


RE: [flexcoders] Component Visbility in ViewStack

2008-02-15 Thread Brad Bueche
Thanks Tracy!!
 
CreationPolicy:  Dont leave home without it!
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Friday, February 15, 2008 2:32 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Component Visbility in ViewStack






You are not understanding "deferred instantiation" I'd wager the
component that works is the "0" index child of the ViewStack.



The child componets of a ViewStack, or TabNavigator, are not rendererd
(do not exist) until a user navigates to that view.  This is to improve
startup response by not requiring that the entire application be
rendered before the user can interact with it.  So you can't
programatically reference the a child of a ViewStack until it is viewed.



Best practice is to use an event, like show, or creationComplete to
fetch the data into the component, instead of trying to set it from the
"outside".  So have your resultHandler set a Bindable instance variable
with the data, then bind to that in the components.



Search the Archive or google for "deferred instantiation" and
"creationPolicy" for more info.



Tracy




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Friday, February 15, 2008 1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Component Visbility in ViewStack



I am trying to assign a value to a component property in my
actionscript.



If the component is NOT in a viewstack, everything works fine.



If the component IS in the viewstack, all I get are null object
reference errors. I also get the warning "unable to bind to property
'month' on class 'XML' (class is not an IEventDispatcher).  The line it
blows up on is "bucketComponent.month_number = "9";



I have another component in the same program IN the viewstack that does
not have this problem. And I'm doing essentially the same thing in the
component that works.  



In the component that does not work I do the following:



[Bindable]

public var month_number:String = '6';   // this is just a default
setting

private var xmlService:HTTPService new HTTPService ();



private function loadXML():void

{ 

   xmlSerivce.url = "http//longurl/generateXM.php"

   xmlService.resultFormat = "e4X"

   xmlService.addEventListener(ResultEvent.RESULT, resultHandler);

   xmlService.send();



}



private function resultHandler(event:ResultEvent):void

{

linechart.dataProvider = event.result.month[month_number].day;

}





What am I not understanding here?



brad



 



[flexcoders] Component Visbility in ViewStack

2008-02-15 Thread Brad Bueche
I am trying to assign a value to a component property in my
actionscript.
 
If the component is NOT in a viewstack, everything works fine.
 
If the component IS in the viewstack, all I get are null object
reference errors. I also get the warning "unable to bind to property
'month' on class 'XML' (class is not an IEventDispatcher).  The line it
blows up on is "bucketComponent.month_number = "9";
 
I have another component in the same program IN the viewstack that does
not have this problem. And I'm doing essentially the same thing in the
component that works.  
 
In the component that does not work I do the following:
 
[Bindable]
public var month_number:String = '6';   // this is just a default
setting
private var xmlService:HTTPService new HTTPService ();
 
private function loadXML():void
{ 
   xmlSerivce.url = "http//longurl/generateXM.php"
   xmlService.resultFormat = "e4X"
   xmlService.addEventListener(ResultEvent.RESULT, resultHandler);
   xmlService.send();
 
}
 
private function resultHandler(event:ResultEvent):void
{
linechart.dataProvider = event.result.month[month_number].day;
}
 
 
What am I not understanding here?
 
brad


[flexcoders] Thanks Sherif!

2008-02-14 Thread Brad Bueche
I couldnt find the original message but I was asking a question about
how to move around from component to component.
 
You mentioned viewstack. I had to drastically re-think my approach to
the application ( I'm new to OO).  However, I've re-done things around
view stack and its working a lot better.  Essentially, I wanted to
conceptually do the bread-crumb trail that Ely does on his drill down
chart example at quietlyscheming.com.  I have not gone back to look at
his code to see how he does it but have figured out how to do it with
viewstack.
 
thanks!
 
brad


RE: [flexcoders] Convert LineSeries to ColumnSeries

2008-02-14 Thread Brad Bueche
I was mis-interpreting the error message on this.  
 
The problem was that for a line chart click event, the event handler
tries to figure out datapoint was clicked by doing -- among other things
-- 
 
props = ColumnSeries(hitData.element).displayName;
 
Well obviously I need to be using LineSeries(hitData.element).
 
So my question is this:  How do I tell if the object that kicked it off
is a Line chart or a column chart?
 
The other way I was approaching this is to say  "if this event came from
the object with this id"  but I dont know how to do that either.
 
???
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Wednesday, February 13, 2008 2:52 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Convert LineSeries to ColumnSeries





When I drill down from a LineSeries based chart to a ColumnSeries based
chart.
 
I get the following error:
 
TypeError: Error #1034: Type Coercion failed: cannot convert
mx.charts.series::[EMAIL PROTECTED] to mx.charts.series.ColumnSeries.
 
Is there way to get around this?
 
The perplexing thing is that I CAN drill down from a ColumnSeries chart
to a LineSeries chart with no problem.
 
???
brad



 



[flexcoders] Convert LineSeries to ColumnSeries

2008-02-13 Thread Brad Bueche
When I drill down from a LineSeries based chart to a ColumnSeries based
chart.
 
I get the following error:
 
TypeError: Error #1034: Type Coercion failed: cannot convert
mx.charts.series::[EMAIL PROTECTED] to mx.charts.series.ColumnSeries.
 
Is there way to get around this?
 
The perplexing thing is that I CAN drill down from a ColumnSeries chart
to a LineSeries chart with no problem.
 
???
brad


[flexcoders] Moving Screen Control back and forth between components

2008-02-13 Thread Brad Bueche
I'm doing a charting application that allows the user multiple ways to
look at the data (both from a time hierarchy perspective as well as a
line of business organizational perspective).
 
My current problem is that when I drill down from the main (i.e. year
level view) component, say to a month component,  how do I get back the
main component.  I can move around within 1 component (applying
different chart types to the same set of data) using includeinlayout and
visible.
 
In fact, to get to a sublevel component I just turn off the other
components and make that one (includeinlayout and visible).  But now
control has passed to the sub-component and I dont know how to get back.
You cant turn off the component that you are currently in can you?  I
tried states but I find the includelayout and visible a lot more
straightforward to work with.  But I guess I can go back to states if
that is what is required here.
 
thanks
brad
 
 


RE: [flexcoders] XML, HTTPSerivce, & Setting dataProvider in Action Script

2008-02-12 Thread Brad Bueche
Thanks!  That worked.
 
I have noticed that I am not setting the dataprovider for my category
axis and its still getting filled in?  Is that possible? Or am I already
fried for the day?
 
I put the dataprovider in for it anyway just to be explicit.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Tuesday, February 12, 2008 1:39 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] XML, HTTPSerivce, & Setting dataProvider in
Action Script





lastResult doesnt work in Actionscript only MXML, you get null if you
use it in actionScript it should be just 
private function initApp():void{

chartXML.send();

chartXML.addEventListener(ResultEvent.RESULT,onResult);

}

private function onResult(event:ResultEvent):void{

 //u get event.result



}



- Original Message 
From: Brad Bueche <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Tuesday, February 12, 2008 12:30:32 PM
Subject: [flexcoders] XML, HTTPSerivce, & Setting dataProvider in Action
Script





I have been trying all morning to figure out how to set the dataprovider
for a line chart in actionscript.
 
Below is the code.  The dataprovider in MXML works  (and its the exact
same dataprovider! ).  And if I put the statement back into the MXML for
the mx:LineChart it will work. Why wont this work in the actionscript?
 
 * *
Dataprovider in ActionScript
 * *
 

[flexcoders] XML, HTTPSerivce, & Setting dataProvider in Action Script

2008-02-12 Thread Brad Bueche
I have been trying all morning to figure out how to set the dataprovider
for a line chart in actionscript.
 
Below is the code.  The dataprovider in MXML works  (and its the exact
same dataprovider!).  And if I put the statement back into the MXML for
the mx:LineChart it will work. Why wont this work in the actionscript?
 
**
Dataprovider in ActionScript
**
 

RE: [flexcoders] Re: AS3 Syntax for Adding to mx:series Array

2008-02-11 Thread Brad Bueche
Thanks!  I also found this:
 
http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhel
p.htm?context=LiveDocs_Book_Parts
<http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhe
lp.htm?context=LiveDocs_Book_Parts&file=charts_intro_108_06.html>
&file=charts_intro_108_06.html
 
This is really cool. Pretty straightfoward too.
 
Man! this opens up a lot of possiblities! 
 
thanks for your time!
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of rueter007
Sent: Monday, February 11, 2008 1:20 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: AS3 Syntax for Adding to mx:series Array



var chartSeries: Array = new Array();

var mySeries: LineSeries = new LineSeries();
mySeries.xFIeld = "blah";
mySeries.yField = "blah-blah"
//set the other styles and properties on the series.
...

chartSeries.push(mySeries);

// set the series property on the chart.
myChart.series = chartSeries.

HTH.

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> I have the following setup and I need to make it a little bit more
> dynamic:
> 
> 
> 
> 
> 
> 
> 
> Actually I'd like to start with it blank
> 
> 
> 
> 
>  
> 
> So I can build the whole series from sratch.
> 
> 
> I got as far as:
> 
> chart_series.push("
> 
> But that "LineSeries" is messing me up. Is "LineSeries" a string in
the
> array or what? 
> 
> What is the syntax for building this whole mx:Array->
> out in as3?
> 
> brad
>



 



RE: [flexcoders] How to programatically select a node in an XMLListCollection

2008-02-11 Thread Brad Bueche
http://www.brucephillips.name/blog/index.cfm/2006/12/5/Processing-XML-in
-Flex-20-Using-The-For-Each-Statement-And-The-Descendent-Accessor--Opera
tor
 
That should give you most of what you need to know.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of j_lentzz
Sent: Monday, February 11, 2008 12:43 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to programatically select a node in an
XMLListCollection



Hi,

I have a Tree with the dataProvider being an XMLListCollection. When
looking at the dataProvider with the debugger, all I see is a single
XMLList that contains the complete XML structure - that is all the
nodes and sub-nodes all in one element. I have a routine that will
traverse the tree and find nodes based on parameters I set - and it
will open those nodes. However, I want to be able to jump from found
item to found item, but I can't find a way to set the index to
highlight the item. Is there a way to do this that someone could
explain?

Thanks,

John



 



[flexcoders] AS3 Syntax for Adding to mx:series Array

2008-02-11 Thread Brad Bueche
I have the following setup and I need to make it a little bit more
dynamic:
 



   

 
Actually I'd like to start with it blank
 


 

 
So I can build the whole series from sratch.
 
 
I got as far as:
 
chart_series.push("
 
But that "LineSeries" is messing me up.  Is "LineSeries" a string in the
array or what? 
 
 What is the syntax for building this whole mx:Array->
out in as3?
 
brad
 
 
 


RE: [flexcoders] Problems with Components

2008-02-08 Thread Brad Bueche
Are you using the Flex IDE?
 
When you type mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cobb
Sent: Friday, February 08, 2008 2:15 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Problems with Components



Thanks for the help, everyone! 

I've followed everyone's advice, and now I have xmlns:ns1="*" in my 
WindowedApplication tag, and I have all of my Components referenced as: 
 Oh and when you are referncing your components in mxml
> 
> You need to be typing (continuing my example below)
> 
>  
> If you type just that, the dropdown list should pop up listing all 
> your components in there (pretty cool).
> 
> Therefore your full syntax would be:
> 
> 
> 
> brad
> 
> 
>
> -Original Message-
> *From:* [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com] *On Behalf Of *Brad Bueche
> *Sent:* Friday, February 08, 2008 12:51 PM
> *To:* [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> *Subject:* RE: [flexcoders] Problems with Components
>
> I'm a newbie to but it seems to me that you need to be saying
> xmlns:namespace = "directoryname.*"
> 
> "namespace" can be whatever you want. I use "ns1" and put my
> stuff in a directory named Components.
> 
> so my declaration looks like this:
> 
> xmlns:ns1="Components.*"
> 
> brad
>
> -Original Message-
> *From:* [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> [mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com] *On Behalf Of *Eric Cobb
> *Sent:* Friday, February 08, 2008 12:19 PM
> *To:* [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> *Subject:* [flexcoders] Problems with Components
>
> I'm working on my first Flex project and I want to break parts
> of it out
> into Components. I've read through the tutorial
> (http://livedocs.
<http://livedocs.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594>
adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594
> <http://livedocs.
<http://livedocs.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594>
adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594>),
>
> and for some reason I can't my Flex app to recognize my
> Components. I
> have 3 components, GridView.mxml, PhotoView.mxml, and
> MapView.mxml, all
> of which extent the Canvas container. Here's my entire main MXML
> application file:
>
> 
>  xmlns:mx="http://www.adobe. <http://www.adobe.com/2006/mxml>
com/2006/mxml
> <http://www.adobe. <http://www.adobe.com/2006/mxml> com/2006/mxml>"
> xmlns="*" layout="absolute" minWidth="950" minHeight="600"
> pageTitle="Employee Directory">
>
> 
>
>  horizontalCenter="0" top="12">
>
> 
>  dataProvider="{employeeDisplay}">
>
> 
>
> 
>
>  creationPolicy="all">
>
>  styleName="colorPanel"
> width="900" height="500" showEffect="WipeDown"
> hideEffect="WipeUp" />
>
>  width="900" height="500" showEffect="WipeDown"
> hideEffect="WipeUp" />
>
>  width="900" height="500" showEffect="WipeDown"
> hideEffect="WipeUp" />
>
> 
>
> 
> 
>
> I keep getting the following errors:
> 1046: Type was not found or was not a compile-time constant:
> GridView.
> 1046: Type was not found or was not a compile-time constant:
> PhotoView.
> 1046: Type was not found or was not a compile-time constant:
> MapView.
>
> Do any of you experts see what could be wrong or have any idea
> what's
> going on? Any suggestions you can provide will be greatly
> appreciated!
>
> Thanks,
>
> Eric
>
> 



 



RE: [flexcoders] Re: Currency Validation

2008-02-08 Thread Brad Bueche
What if you take control of the error yourself and use the
 
invalid tag (or atribute or whatever its called) of the
CurrencyValidator?
 
something like
 
invalid="txtresult.text = 'Enter only currency in this format $##.##' "
 
And use the trigger and triggevent attributes of CurrencyValidator too
so that you control when it gets validated.
 
Default, I think, is that it triggers on valueCommit for a textinput
field.
 
standard.newbieDisclaimer
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sanchivans
Sent: Friday, February 08, 2008 11:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Currency Validation



What I meant to say is that when I put '.01' it says 'NaN' in the 
textInput and I can't change it afterwards it just stay's like that.

--- In [EMAIL PROTECTED] 
ups.com, "sanchivans" <[EMAIL PROTECTED]> 
wrote:
>
> Hi Dimitrios,
> 
> That works fine, but it doesn't accept decimal without a '0'. So 
it 
> accepts '0.01', but it doesn't accept '.01'. do you know how to 
> work around this? thanks.
> 
> --- In [EMAIL PROTECTED] 
ups.com, "Dimitrios Gianninas" 
>  wrote:
> >
> > try using the restrict property of the TextInput field:
> > 
> > restrict="0-9,\-,\."
> > 
> > Dimitrios Gianninas
> > RIA Developer and Team Lead
> > Optimal Payments Inc.
> > 
> > 
> > 
> > 
> > From: [EMAIL PROTECTED] 
ups.com 
> [mailto:[EMAIL PROTECTED] 
ups.com] On Behalf Of sanchivans
> > Sent: Friday, February 08, 2008 10:00 AM
> > To: [EMAIL PROTECTED] 
ups.com
> > Subject: [flexcoders] Currency Validation
> > 
> > 
> > 
> > Hi,
> > 
> > I am trying to validate the currency in a text input. The 
currency 
> > could be negative, must be not more than two decimal place. This 
> is 
> > the code that I have.
> > 
> >  > precision="2" 
> > allowNegative="true" source="{value}" property="text" />
> > 
> >  > change="{testVO.value = Number(value.text)}" 
> text="{testVO.value}"/>
> > 
> > The problem that I am having is when the user types something 
that 
> it 
> > cannot accept, it put's a value 'NaN', and I can't change this 
> value 
> > or delete it. So this is like crashing the screen and the user 
> can't 
> > change anything. How can I fix this? By the way 
the 'testVO.value' 
> is 
> > of type 'Number'. Thanks. 
> > 
> > 
> > 
> > 
> > 
> > -- 
> > WARNING
> > ---
> > This electronic message and its attachments may contain 
> confidential, proprietary or legally privileged information, which 
> is solely for the use of the intended recipient. No privilege or 
> other rights are waived by any unintended transmission or 
> unauthorized retransmission of this message. If you are not the 
> intended recipient of this message, or if you have received it in 
> error, you should immediately stop reading this message and delete 
> it and all attachments from your system. The reading, 
distribution, 
> copying or other use of this message or its attachments by 
> unintended recipients is unauthorized and may be unlawful. If you 
> have received this e-mail in error, please notify the sender.
> > 
> > AVIS IMPORTANT
> > --
> > Ce message électronique et ses pièces jointes peuvent contenir 
des 
> renseignements confidentiels, exclusifs ou légalement privilégiés 
> destinés au seul usage du destinataire visé. L'expéditeur 
original 
> ne renonce à aucun privilège ou à aucun autre droit si le présent 
> message a été transmis involontairement ou s'il est retransmis 
sans 
> son autorisation. Si vous n'êtes pas le destinataire visé du 
> présent message ou si vous l'avez reçu par erreur, veuillez cesser 
> immédiatement de le lire et le supprimer, ainsi que toutes ses 
> pièces jointes, de votre système. La lecture, la distribution, la 
> copie ou tout autre usage du présent message ou de ses pièces 
> jointes par des personnes autres que le destinataire visé ne sont 
> pas autorisés et pourraient être illégaux. Si vous avez reçu ce 
> courrier électronique par erreur, veuillez en aviser l'expéditeur.
> >
>



 



RE: [flexcoders] Problems with Components

2008-02-08 Thread Brad Bueche
Oh and when you are referncing your components in mxml
 
You need to be typing (continuing my example below)
 

 
brad
 
 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Friday, February 08, 2008 12:51 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Problems with Components





I'm a newbie to but it seems to me that you need to be saying
xmlns:namespace = "directoryname.*"
 
"namespace" can be whatever you want.  I use "ns1" and put my stuff in a
directory named Components.
 
so my declaration looks like this:
 
xmlns:ns1="Components.*"
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cobb
Sent: Friday, February 08, 2008 12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with Components



I'm working on my first Flex project and I want to break parts of it out

into Components. I've read through the tutorial 
(http://livedocs.
<http://livedocs.adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594>
adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594), 
and for some reason I can't my Flex app to recognize my Components. I 
have 3 components, GridView.mxml, PhotoView.mxml, and MapView.mxml, all 
of which extent the Canvas container. Here's my entire main MXML 
application file:


http://www.adobe.
<http://www.adobe.com/2006/mxml> com/2006/mxml"
xmlns="*" layout="absolute" minWidth="950" minHeight="600"
pageTitle="Employee Directory">










 

 

 



 

 




I keep getting the following errors:
1046: Type was not found or was not a compile-time constant: GridView.
1046: Type was not found or was not a compile-time constant: PhotoView.
1046: Type was not found or was not a compile-time constant: MapView.

Do any of you experts see what could be wrong or have any idea what's 
going on? Any suggestions you can provide will be greatly appreciated!

Thanks,

Eric





 



RE: [flexcoders] Problems with Components

2008-02-08 Thread Brad Bueche
I'm a newbie to but it seems to me that you need to be saying
xmlns:namespace = "directoryname.*"
 
"namespace" can be whatever you want.  I use "ns1" and put my stuff in a
directory named Components.
 
so my declaration looks like this:
 
xmlns:ns1="Components.*"
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Eric Cobb
Sent: Friday, February 08, 2008 12:19 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problems with Components



I'm working on my first Flex project and I want to break parts of it out

into Components. I've read through the tutorial 
(http://livedocs.

adobe.com/labs/flex3/html/mxmlcomponents_2.html#150594), 
and for some reason I can't my Flex app to recognize my Components. I 
have 3 components, GridView.mxml, PhotoView.mxml, and MapView.mxml, all 
of which extent the Canvas container. Here's my entire main MXML 
application file:


http://www.adobe.
 com/2006/mxml"
xmlns="*" layout="absolute" minWidth="950" minHeight="600"
pageTitle="Employee Directory">










 

 

 



 

 




I keep getting the following errors:
1046: Type was not found or was not a compile-time constant: GridView.
1046: Type was not found or was not a compile-time constant: PhotoView.
1046: Type was not found or was not a compile-time constant: MapView.

Do any of you experts see what could be wrong or have any idea what's 
going on? Any suggestions you can provide will be greatly appreciated!

Thanks,

Eric



 



RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-06 Thread Brad Bueche
 
So something like ..: 
 
[Bindable]

private var photoFeed:XML;

private function photoResultHandler(event:ResultEvent):void
{

   photoFeed = event.result as XML;
}
 

http://api.flickr.com/services/feeds/photos_public.gne"; 

resultFormat="e4x"

result="photoResultHandler(event);"

fault="photoFaultHandler(event);"

/>
 
And you also state:
 
You wrap the XMLList in an XMLListCollection:
Var xlcResult:XMLListCollection = new XMLListCollection(xlResult)
 
I dont understand how this is better. I'm not disputing it. I just dont
understand. 
What will this enable me to do that I'm not doing now? (Again, I'm
asking to understand, not to dispute)
 
If you just want to give me a reading list thats fine too.


thanks for your time.
 
brad
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Wednesday, February 06, 2008 4:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Embedding String Variable in dataprovider
name






Yes, binding to lastResult is, as you are seeing, hard to debug.  Use a
result handler.

Tracy




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Wednesday, February 06, 2008 9:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name



For the immediate problem, add some code to the function that checks
the first parameter for null, and returns a null value of the
appropriate type in that case.

But for a more robust application, you should stop using lastResult.
Direct use of lastResult is really only appropriate for prototyping.
You are much better off using a result handler to process the result,
handling the special cases, and putting the appropriate values into
variables that you then use for the binding.

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> This gets rid of the data binding waring but then the chart itself
blows
> up saying its getting null objects.
> 
> brad
> 
> -Original Message-
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com [mailto:[EMAIL PROTECTED]
<mailto:flexcoders%40yahoogroups.com> ups.com] On
> Behalf Of jer_ela
> Sent: Monday, February 04, 2008 4:01 PM
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: Embedding String Variable in dataprovider
name
> 
> 
> 
> you can use a method to get around that
> 
> dataProvider="{getDp(chartXML2.lastResult, month)}"
> 
> private function getDp(lastResult:Object, month:String):String
> { return lastResult[month].day;
> }
> 
> The method will be called when ever one of it parameters is changed
> 
> --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com, "Brad Bueche"  wrote:
> >
> > That worked!
> > 
> > I still get the following warning:
> > 
> > Data binding will not be able to detect changes when using square
> > bracket operator. For Array, please use ArrraCollection.getItemAt()
> > instead.
> > 
> > But it still works. 
> > 
> > brad
> > 
> > -Original Message-
> > From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com [mailto:[EMAIL PROTECTED]
> <mailto:flexcoders%40yahoogroups.com> ups.com] On
> > Behalf Of jer_ela
> > Sent: Friday, February 01, 2008 3:01 PM
> > To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> > Subject: [flexcoders] Re: Embedding String Variable in dataprovider
> name
> > 
> > 
> > 
> > If you use the square brackets then you don't use the dot so it
should
> > be:
> > 
> > dataProvider="{chartXML2.lastResult[month].day}"
> > 
> > --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> > ups.com, Maciek Sakrejda  wrote:
> > >
> > > I'm no e4xpert, but
> > > 
> > > dataProvider="{chartXML2.lastResult.[month].day}"
> > > 
> > > should do it.
> > > 
> > > -- 
> > > Maciek Sakrejda
> > > Truviso, Inc.
> > > http://www.truviso. <http://www.truviso. <http://www.truviso.
<http://www.truviso.com> com>
> com> com
> > > 
> > > -Original Message-
> > > From: brad.bueche 
> > > Reply-To: [EMAIL PROTECTED]
<mailto:flexcoders%40yahoogroups.com>
> > ups.com
> > > To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com
> > > Subject: [flexcoder

RE: [flexcoders] Adding Event to Object that doesnt have one

2008-02-06 Thread Brad Bueche
Ha!  I figured out the xml thing. i.e. why when referencing
01, I had to use a 1.

chartXML.lastResult.month[1].day

Month[1] is an array reference! I figured it out when I wasn't getting
any data for December! :)

You probably knew that but I didn't.  I thought I was directly
referencing/compariing on  the "02" string for month_name. However, I
was referencing the array position for month_name.

Thanks!

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, February 06, 2008 9:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding Event to Object that doesnt have one


On Wednesday 06 Feb 2008, Brad Bueche wrote:
> http://path/createXML.php";
...
> Data provider for the chart looks like this" 
> dataProvider="{chartXML.lastResult.month[02].day}"
> That would the feb component.  There are 4 charts in here.  I change 
> charts by changing state. Charts are changed by using a combo box and 
> a case statement. For each state I use activate to call 
> "chartXML.send()".

My first thought was why the remote end sends back the month, so I guess
you 
have all 12 months on screen at once ?

If, as you say further down, it's an '02'/'2' thing, just change either
the 
Flex or the remote end so it does what you want.

-- 
Tom Chiverton
Helping to seamlessly expedite user-centric functionalities
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links






RE: [flexcoders] Removing Object from Screen

2008-02-06 Thread Brad Bueche
Scott,
 
Thanks that works great!!!  Man what  load off my shoulders now that I
have something to show! I feel 20 pounds lighter!
 
I was doing it in actionscript and in there it needs to be
whatever.visible = false;   i.e. no quotes.
 
I know you probably know that. I'm just posting it in case somebody is
reading through (that didnt know it -- like me!).
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott Melby
Sent: Wednesday, February 06, 2008 1:57 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Removing Object from Screen



I usually use whatever.visible  = "false" and
whatever.includeInLayout="false" then just set them back to true to
bring them back.

hth
Scott


Scott Melby

Founder, Fast Lane Software LLC

http://www.fastlane <http://www.fastlanesw.com> sw.com


Brad Bueche wrote: 



I need to do one more thing and then I can get this puppy out the door.
 
I have been using states because they allow me to do Remove child.
Then I stumbled across  whatever.visible = "false".   Well it appears
that this visibility is effective for the first presentation of the
screen and that you cant use .visible = "false" to remove something.
 
In this case I need to remove a panel with a chart in it.  I also need
to remove a menu bar.  And of course make them visible again based on
certain menu selections.  Is there an easy way to do this or do I have
to use states and removechild?
 
brad



 



[flexcoders] Removing Object from Screen

2008-02-06 Thread Brad Bueche
I need to do one more thing and then I can get this puppy out the door.
 
I have been using states because they allow me to do Remove child.
Then I stumbled across  whatever.visible = "false".   Well it appears
that this visibility is effective for the first presentation of the
screen and that you cant use .visible = "false" to remove something.
 
In this case I need to remove a panel with a chart in it.  I also need
to remove a menu bar.  And of course make them visible again based on
certain menu selections.  Is there an easy way to do this or do I have
to use states and removechild?
 
brad


RE: [flexcoders] Adding Event to Object that doesnt have one

2008-02-06 Thread Brad Bueche
I can have all 12 months on the screen at once, that will be my year
view.  Or I can do the month[number] thing to refence one month. I'm
tyring to put as much data into a single xml file as I can, and the just
hook the dataprovider up to sub sections of it. E4x's xpath like sytnax
allows me to do this (very nice).

Here is the code for moving through months.  The component simply throws
up an additional menu that lets the user choose from different chart
types (using the same data set).  I have to use the menu until I can
figure out how to enable horizontal access labels to be clicked upon
(allowing me to catch the event and the go to the charts for that
month). After I get v 1 out the door I can probably make the component
even more generic so that it will work for any time period from year
down to hour.

Yes, my first little Flexlet ;)

 
http://www.adobe.com/2006/mxml"; 
 layout="absolute" xmlns:ns1="Components.*"  > 
  
 
 
 
  
  

  
 
 
 
[]  
 
  


  




-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, February 06, 2008 9:58 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding Event to Object that doesnt have one


On Wednesday 06 Feb 2008, Brad Bueche wrote:
> http://path/createXML.php";
...
> Data provider for the chart looks like this" 
> dataProvider="{chartXML.lastResult.month[02].day}"
> That would the feb component.  There are 4 charts in here.  I change 
> charts by changing state. Charts are changed by using a combo box and 
> a case statement. For each state I use activate to call 
> "chartXML.send()".

My first thought was why the remote end sends back the month, so I guess
you 
have all 12 months on screen at once ?

If, as you say further down, it's an '02'/'2' thing, just change either
the 
Flex or the remote end so it does what you want.

-- 
Tom Chiverton
Helping to seamlessly expedite user-centric functionalities
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links






RE: [flexcoders] Adding Event to Object that doesnt have one

2008-02-06 Thread Brad Bueche
Unless I am missing something (entirely possible) it looks like Darron
is just pulling the y value for the event while clicking on a datapoint.
I had already figured out how to do this (thanks to a post here).  
 
What I need to do is to be able to click on the actual labels in the
horziontal access and generate an event that allows me too pull up a
detail chart for that time period.  I have some books that have info
about adding events to something that doesnt have it. So I'll research
that and let y'all know. [The newbie problems that I'm bound to run
into!]
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brad Bueche
Sent: Wednesday, February 06, 2008 7:04 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Adding Event to Object that doesnt have one



Looks like somebody has created what I need:

http://www.darronsc
<http://www.darronschall.com/weblog/archives/000267.cfm>
hall.com/weblog/archives/000267.cfm

It's a HorizontalDataSelector. Its part of the google flexlib project.

I'll let y'all know how it works for me.

Ok, now I think all my major hurdles are taken care of in my project.

The the inability to put a variable name an e4x result as a dataprovider
to a chart is going to cause me to have to create hard coded components
(because I cant figure out how to put a **bindable** month name variable
into the chart data provider). But that's not a show stopper.it just
means more files to create and keep track of.

brad

-Original Message-
From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
[mailto:[EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com] On
Behalf Of Tom Chiverton
Sent: Tuesday, February 05, 2008 11:50 AM
To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
Subject: Re: [flexcoders] Adding Event to Object that doesnt have one

On Tuesday 05 Feb 2008, Brad Bueche wrote:
> 2. How do I associate this event with a layout on the screen where 
> the object seemingly keeps no reference to position?

Subclass CategoryAxis, implement IEventDispatcher (if the base class
doesn't) 
and then add an event handler for the mouse click (etc) event.

-- 
Tom Chiverton
Helping to quickly deliver value-added information
on: http://thefalken. <http://thefalken.livejournal.com> livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents. If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.

--
Flexcoders Mailing List
FAQ: http://groups.
<http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt>
yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-
<http://www.mail-archive.com/flexcoders%40yahoogroups.com>
archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links



 



RE: [flexcoders] Adding Event to Object that doesnt have one

2008-02-06 Thread Brad Bueche
Ok, I have, thanks to this group made a LOT of progess here.  This is my
first flex project and I'm trying to get a cool charting site up while
everybody is interested in a cool charting site.  

I think I have figured out the problem.  But, just to give some
background

This is what my HTTPService call looks like:

http://path/createXML.php";
resultFormat="e4x">

Program views month data for 6 groups, provides year views, with month
drilldowns.

A single MONTH component offers line, clustered, stacked, and 100%
charts for the given month.

Data provider for the chart looks like this"

dataProvider="{chartXML.lastResult.month[02].day}"

That would the feb component.  There are 4 charts in here.  I change
charts by changing state. Charts are changed by using a combo box and a
case statement. For each state I use activate to call "chartXML.send()".
Although I'm not sure why I have to do that.  I thought the flash client
cached its data.  (Yes, this is called programming by throwing mud at
the wall and seeing what sticks).

In the component I declare at the top:

[Bindable]
 public var month_number:String = "02";

I use the component like this:



And it turns out that I had everything right but I was putting "02" in
the month.  HOWEVER, this IS what is in the xml. The xml is like this:

02

However, "02" doesn't work.  "2" works.  Does XML ignore zero?

brad





-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Wednesday, February 06, 2008 8:15 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding Event to Object that doesnt have one


On Wednesday 06 Feb 2008, Brad Bueche wrote:
> The the inability to put a variable name an e4x result as a 
> dataprovider to a chart

Can you be a bit clearer ?

> (because I cant figure out how to put a **bindable** month name 
> variable into the chart data provider).

The whole DP is bindable, no ?

-- 
Tom Chiverton
Helping to conveniently transition enterprise-class meta-services
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links






RE: [flexcoders] Adding Event to Object that doesnt have one

2008-02-06 Thread Brad Bueche
Looks like somebody has created what I need:

http://www.darronschall.com/weblog/archives/000267.cfm

It's a HorizontalDataSelector.  Its part of the google flexlib project.

I'll let y'all know how it works for me.

Ok, now I think all my major hurdles are taken care of in my project.

The the inability to put a variable name an e4x result as a dataprovider
to a chart is going to cause me to have to create hard coded components
(because I cant figure out how to put a **bindable** month name variable
into the chart data provider). But that's not a show stopper.it just
means more files to create and keep track of.

brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tom Chiverton
Sent: Tuesday, February 05, 2008 11:50 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Adding Event to Object that doesnt have one


On Tuesday 05 Feb 2008, Brad Bueche wrote:
> 2.  How do I associate this event with a layout on the screen where 
> the object seemingly keeps no reference to position?

Subclass CategoryAxis, implement IEventDispatcher (if the base class
doesn't) 
and then add an event handler for the mouse click (etc) event.

-- 
Tom Chiverton
Helping to quickly deliver value-added information
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office
address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged.  If you are not the addressee
you must not read it and must not use any information contained in nor
copy it nor inform any person other than Halliwells LLP or the addressee
of its existence or contents.  If you have received this email in error
please delete it and notify Halliwells LLP IT Department on 0870 365
2500.

For more information about Halliwells LLP visit www.halliwells.com.


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
Yahoo! Groups Links






RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-05 Thread Brad Bueche
This gets rid of the data binding waring but then the chart itself blows
up saying its getting null objects.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Monday, February 04, 2008 4:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name



you can use a method to get around that

dataProvider="{getDp(chartXML2.lastResult, month)}"

private function getDp(lastResult:Object, month:String):String
{ return lastResult[month].day;
}

The method will be called when ever one of it parameters is changed

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> That worked!
> 
> I still get the following warning:
> 
> Data binding will not be able to detect changes when using square
> bracket operator. For Array, please use ArrraCollection.getItemAt()
> instead.
> 
> But it still works. 
> 
> brad
> 
> -Original Message-
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com [mailto:[EMAIL PROTECTED]
<mailto:flexcoders%40yahoogroups.com> ups.com] On
> Behalf Of jer_ela
> Sent: Friday, February 01, 2008 3:01 PM
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: Embedding String Variable in dataprovider
name
> 
> 
> 
> If you use the square brackets then you don't use the dot so it should
> be:
> 
> dataProvider="{chartXML2.lastResult[month].day}"
> 
> --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com, Maciek Sakrejda  wrote:
> >
> > I'm no e4xpert, but
> > 
> > dataProvider="{chartXML2.lastResult.[month].day}"
> > 
> > should do it.
> > 
> > -- 
> > Maciek Sakrejda
> > Truviso, Inc.
> > http://www.truviso. <http://www.truviso. <http://www.truviso.com>
com> com
> > 
> > -Original Message-
> > From: brad.bueche 
> > Reply-To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com
> > To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com
> > Subject: [flexcoders] Embedding String Variable in dataprovider name
> > Date: Fri, 01 Feb 2008 15:40:25 -
> > 
> > Really what I need to be able to do is insert the variable name in
> this:
> > 
> > dataProvider="{chartXML2.lastResult.month.day}"
> > 
> > I need to replace the "month" with a string variable name (i.e
public
> > var monthName = "January";)
> > 
> > I also need to do the same for the categoryfield as it will not let
me
> > do categoryfield=$String.
> > 
> > In PHP this is incredibly easy to do. You just say blah=$string . In
> > fact, in PHP you can embed variable names everywhere. Its very
> > powerful. For instance, in php, for the dataprovider issue above,
i'd
> > just do
> > 
> > dataProvider="{chartXML2.lastResult.$StringName.day}"
> > 
> > and it'd work just fine. Whats the syntax for doing this in Flex?
> >
>



 



RE: [flexcoders] problem parsing a XML file

2008-02-05 Thread Brad Bueche
Well this is a question I had.
 
Doesnt using E4X and HTTPService essentially set up an XMLListCollection
for you?
 
bra

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Tuesday, February 05, 2008 4:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] problem parsing a XML file






Set resultFormat="e4x", and work with XMLList and XMLListCollection
instead of the default Object.



Tracy




  _  


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hworke
Sent: Tuesday, February 05, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] problem parsing a XML file





Hi my following code cannot parse the below
RSS feed, it is returning an array with no
no object. There is one item in this RSS
link so the array should have one item!
Any suggestions!

MY code:
//

http://www.adobe.
 com/2006/mxml"
layout="absolute" initialize="portFolio.send();">

http://localhost/

Main/WebSearchRss?space=Organization&text=WebHome"
result="newArray = portFolio.lastResult.RDF.item"/> 

/*/
AND THE XML FILE IS

/*/

http://www.w3.

org/1999/02/22-rdf-syntax-ns#"
xmlns:xlink="http://www.w3. 
org/1999/xlink"
xmlns="http://purl.  org/rss/1.0/"
xmlns:dc="http://purl. 
org/dc/elements/1.1/"
xmlns:wiki="http://purl. 
org/rss/1.0/modules/wiki/"
xmlns:html="http://www.w3. 
org/1999/xhtml">
http://localhost";>

localhost

http://localhost

localhost


RSS feed for search on 'WebHome'



localhost


localhost

http://localhost/
 skins/albatross/logo.png"/>
en
This wiki is licensed under a Creative>
ons.org/licenses/by/1.0/">Creative
Commons license

Administrator 
Administrator 


http://localhost/
 Organization/?language=en"
/>



http://localhost/ 
logo.png">
XWiki Logo
http://localhost

http://localhost/  logo.png


http://localhost/
 Organization/?language=en">
Organization
http://localhost/ 
Organization/?language=en
Version 1.10 edited by Administrator on 2008-02-04
12:23:05.0
WebHome

$doc.getTags()

2008-02-04T12:23:05-08:00
Administrator 


Administrator 





/*/





 



RE: [flexcoders] Re: Adding Event to Object that doesnt have one

2008-02-05 Thread Brad Bueche
Would it be possible for you to give me a short example of adding the
event in this manner?
 
The only syntax I am familiar with is as follows:
 
columnChart.addEventListner (ChartItemEvent.ITEM_CLICK,myListener);
 
but this, I think, is only for adding events to object that already have
event types defined.
 
thanks for your time!
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of JWOpitz
Sent: Tuesday, February 05, 2008 10:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Adding Event to Object that doesnt have one



Well to answer your first question: "How do I add events to an item
that does not have any?" - your object can implement the
IEventDispatcher interface or you can extend EventDispatcher. Either
way is the only way that you are going to get your object to be able
to make use of the Flash Player's event system.

I really can't answer your second question with any authority since I
haven't done much with Flex Charts. I think from what code I did have
to work on, it was pretty much a situation where you retrieve the x,y
coords of the mouse relative to the whole chart. I could be wrong at
various points but I think that is the only way I have seen it done.

Justin

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> I'm new to flex so there may be an obvious way to do this that I am
> missing.
> 
> In my charts, my users want to drill down from the month view to the
> days of month view by clicking on the month name (categoryAxis,
> categoryfield) for the horizontal axis.
> 
> However, from what I can see CategoryAxis has no mouse events (or any
> other events) associated with it. So my question is specific but may
> have broad application.
> 
> 1. How do I add events to an item that does not have any?
> 2. How do I associate this event with a layout on the screen where the
> object seemingly keeps no reference to position?
> 
> The only thing I can think of is pursuing looking at the fully
rendered
> chart, figuring out x and y coordinates of the items (from an eyes on
> view), and then making areas of the screen clickable (and able to
> generate events). This does not seem very generic though and seems
> heavily dependent up on eyes on the screen (which seems fraught with
> peril to me).
> 
> Suggestions? 
> 
> Since I'm new to flex, it would really help me if the answer could be
> tied specifically to the categoryAxis issue thats stumping me.
> 
> brad
>



 



[flexcoders] Adding Event to Object that doesnt have one

2008-02-05 Thread Brad Bueche
I'm new to flex so there may be an obvious way to do this that I am
missing.
 
In my charts, my users want to drill down from the month view to the
days of month view by clicking on the month name (categoryAxis,
categoryfield) for the horizontal axis.
 
However, from what I can see CategoryAxis has no mouse events (or any
other events) associated with it.  So my question is specific but may
have broad application.
 
1.  How do I add events to an item that does not have any?
2.  How do I associate this event with a layout on the screen where the
object seemingly keeps no reference to position?
 
The only thing I can think of is pursuing looking at the fully rendered
chart, figuring out x and y coordinates of the items (from an eyes on
view),  and then making areas of the screen clickable (and able to
generate events).   This does not seem very generic though and seems
heavily dependent up on eyes on the screen (which seems fraught with
peril to me).
 
Suggestions? 
 
Since I'm new to flex, it would really help me if the answer could be
tied specifically to the categoryAxis issue thats stumping me.
 
brad


RE: [flexcoders] Re: Need IF Logic for Chart Data Provider

2008-02-04 Thread Brad Bueche
Thanks your reply/time.
 
The issue with the @attribute=="blah"  syntax was that I have month_name
as an element instead of an attribute.
 
Just learned about attributes.  I'm creating the xml myself in php
(which is querying oracle).  So I can put the attribute in there.  It
looks like it gives you much more powerful search capabilities (as well
as more readable code).  
 
 
brad
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abyss Knight
Sent: Monday, February 04, 2008 9:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider



I think you just need to change the "" to '' like so:

dataProvider="{chartXML.lastResult.month.(@month_name=='01').day}"

However, you might be better off doing:

dataProvider="{chartXML.lastResult..month.(@month_name=='01').day}"

Here's a good quick reference too: 
http://www.sephirot
<http://www.sephiroth.it/tutorials/flashPHP/E4X/page002.php>
h.it/tutorials/flashPHP/E4X/page002.php

As a disclaimer, I have very little e4x experience but I presume that
it will get you where you need to go.

-- William

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> Ok, I have Sas Jacobs' book, "Foundation Flex for Developers: Data
> Driven Applications with PHP, ASP.NET, ColdFusion, and LCDS". She has
a
> chapter on working with XML using E4X.
> 
> What works, for me in this case, is this:
> 
> dataProvider="{chartXML.lastResult.month[0].day}"
> 
> In fact just to see if it would work I declared 
> 
> public const JANUARY:int = 0;
> 
> and then did 
> 
> dataProvider="{chartXML.lastResult.month[JANUARY].day}"
> 
> This worked too.
> 
> HOWEVER, I have been told that using brackets is too hard to debug.
> and that I should use a result handler to wrap the xmllist in an
> XMLListCollection instance variable and bind to that. Sas also covers
> that. I'll read up on that and let you know. OK, read it. I'm using
> the  and, as far as I can tell from Sas' book, the
> HTTPService tag apparently takes care of creating an XMLListCollection
> for you.or maybe it just creats an XMLList. Can anybody shed some
> light on this?
> 
> I also learned (from the book) that the following should work:
> 
> dataProvider="{chartXML.lastResult.month.(@month_name=="01").day}"
> 
> However, it doesnt as I get the following error:
> 
> Element Type "mx:LineChart" must be followed by either attribute
> specifications, ">" or "/>".
> 
> 
> brad
> 
> brad
> 
> 
> -Original Message-
> From: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com [mailto:[EMAIL PROTECTED]
<mailto:flexcoders%40yahoogroups.com> ups.com] On
> Behalf Of Abyss Knight
> Sent: Friday, February 01, 2008 3:11 PM
> To: [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com> ups.com
> Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider
> 
> 
> 
> One option would be to change the chart's viewable area, as in modify
> the start of the axes to only show the data you want to show. This
> would obviously put a strain on the client if there was far too much
> data loaded into an ArrayCollection though.
> 
> The other option is to query the XML using e4x and use the result as
> the data provider:
> http://www.onflex. <http://www.onflex.
<http://www.onflex.org/ted/2006/12/xmle4x-vs-amf.php>
org/ted/2006/12/xmle4x-vs-amf.php>
> org/ted/2006/12/xmle4x-vs-amf.php
> 
> Hope that helps,
> -- William
> 
> --- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
> ups.com, "Brad Bueche"  wrote:
> >
> > The problem (in short):
> > I need to be able to hook up my charts to dataproviders where
> >  equals "January". And only pull that. I dont need it to
> > read every month in the hierarchy. Or month_name is January and
> day_name
> > is '14'. In order to do this I need to do IF logic with the
> dataprovider
> > it seems to me. My other post occurred because in leiu of being able
> > to do "IF month_name='January'. I have just gone in and changed the
> > xml so that instead of   [...] it now says 
> >  etc. That sort of defeats the data
> > description aspect of XML (it seems to me). 
> > 
> > 
> > The background (if you are interested):
> > This problem has to do with me NOT wanting to write 100+ reports to
> > generate 100+ separate xml files to access.
> > 
> >

RE: [flexcoders] Re: Need IF Logic for Chart Data Provider

2008-02-02 Thread Brad Bueche
Ok, I have Sas Jacobs' book,  "Foundation Flex for Developers: Data
Driven Applications with PHP, ASP.NET, ColdFusion, and LCDS".  She has a
chapter on working with XML using E4X.
 
What works, for me in this case, is this:
 
dataProvider="{chartXML.lastResult.month[0].day}"
 
In fact just to see if it would work I declared 
 
public const JANUARY:int = 0;
 
and then did 
 
dataProvider="{chartXML.lastResult.month[JANUARY].day}"
 
This worked too.
 
  HOWEVER, I have been told that using brackets is too hard to debug.
and that I should use a result handler to wrap the xmllist in an
XMLListCollection instance variable and bind to that. Sas also covers
that.  I'll read up on that and let you know.  OK, read it. I'm using
the  and, as far as I can tell from Sas' book, the
HTTPService tag apparently takes care of creating an XMLListCollection
for you.or maybe it just creats an XMLList.  Can anybody shed some
light on this?
 
I also learned (from the book) that the following should work:
 
dataProvider="{chartXML.lastResult.month.(@month_name=="01").day}"
 
However, it doesnt as I get the following error:
 
Element Type "mx:LineChart" must be followed by either attribute
specifications, ">" or "/>".
 
 
brad
 
brad


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abyss Knight
Sent: Friday, February 01, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider



One option would be to change the chart's viewable area, as in modify
the start of the axes to only show the data you want to show. This
would obviously put a strain on the client if there was far too much
data loaded into an ArrayCollection though.

The other option is to query the XML using e4x and use the result as
the data provider:
http://www.onflex. <http://www.onflex.org/ted/2006/12/xmle4x-vs-amf.php>
org/ted/2006/12/xmle4x-vs-amf.php

Hope that helps,
-- William

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> The problem (in short):
> I need to be able to hook up my charts to dataproviders where
>  equals "January". And only pull that. I dont need it to
> read every month in the hierarchy. Or month_name is January and
day_name
> is '14'. In order to do this I need to do IF logic with the
dataprovider
> it seems to me. My other post occurred because in leiu of being able
> to do "IF month_name='January'. I have just gone in and changed the
> xml so that instead of   [...] it now says 
>  etc. That sort of defeats the data
> description aspect of XML (it seems to me). 
> 
> 
> The background (if you are interested):
> This problem has to do with me NOT wanting to write 100+ reports to
> generate 100+ separate xml files to access.
> 
> I need to track the metrics of several internal groups over the year
via
> charting. I want to drill down into individual months (by day) and --
> maybe, days by hour. I also want to track into the sub groups per
> month and per day-in-month for each of these groups as well.
> 
> The data is network event traffic and doing the queries live will just
> not work. Users wont use the slicing and dicing visualization affords
if
> they have to wait every time the click an item.
> 
> So, I know I can save myself a lot of reports by putting all the data
> into about 10 - 20 reports or so by using the XML as its supposed to
be
> used (i.e. describing the data). I need to be able to hook the data
> provider to only a sub-node in the xml hierarchy and not have it read
> everything at that level. I need it to read only has long as
> month_name=January or month_name=January AND day_name='15'.
>



 



RE: [flexcoders] Re: Embedding String Variable in dataprovider name

2008-02-01 Thread Brad Bueche
That worked!
 
I still get the following warning:
 
Data binding will not be able to detect changes when using square
bracket operator. For Array, please use ArrraCollection.getItemAt()
instead.
 
But it still works. 
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jer_ela
Sent: Friday, February 01, 2008 3:01 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Embedding String Variable in dataprovider name



If you use the square brackets then you don't use the dot so it should
be:

dataProvider="{chartXML2.lastResult[month].day}"

--- In [EMAIL PROTECTED] 
ups.com, Maciek Sakrejda <[EMAIL PROTECTED]> wrote:
>
> I'm no e4xpert, but
> 
> dataProvider="{chartXML2.lastResult.[month].day}"
> 
> should do it.
> 
> -- 
> Maciek Sakrejda
> Truviso, Inc.
> http://www.truviso.  com
> 
> -Original Message-
> From: brad.bueche <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED] 
ups.com
> To: [EMAIL PROTECTED]  ups.com
> Subject: [flexcoders] Embedding String Variable in dataprovider name
> Date: Fri, 01 Feb 2008 15:40:25 -
> 
> Really what I need to be able to do is insert the variable name in
this:
> 
> dataProvider="{chartXML2.lastResult.month.day}"
> 
> I need to replace the "month" with a string variable name (i.e public
> var monthName = "January";)
> 
> I also need to do the same for the categoryfield as it will not let me
> do categoryfield=$String.
> 
> In PHP this is incredibly easy to do. You just say blah=$string . In
> fact, in PHP you can embed variable names everywhere. Its very
> powerful. For instance, in php, for the dataprovider issue above, i'd
> just do
> 
> dataProvider="{chartXML2.lastResult.$StringName.day}"
> 
> and it'd work just fine. Whats the syntax for doing this in Flex?
>



 



RE: [flexcoders] Re: Need IF Logic for Chart Data Provider

2008-02-01 Thread Brad Bueche
Abyss,
 
I forgot to mention, that I am using e4x. 
 
I see ted's mention of that "@" syntax not sure what that is. I'll have
play around with it. 
 
Do you know where there is a good practical (cheat sheet) approach (as
opposed to a comp sci approach) to using E4X?
 
I've looked at amfphp but I dont understand any of the examples.  
 
Right now, I think xml via e4x is kind of cool. This is an internal app
on 100Mb connections, and I'm creating all the xml before hand so
performance is not bad.  
 
thanks for your time!
 
brad
 
-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Abyss Knight
Sent: Friday, February 01, 2008 3:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Need IF Logic for Chart Data Provider



One option would be to change the chart's viewable area, as in modify
the start of the axes to only show the data you want to show. This
would obviously put a strain on the client if there was far too much
data loaded into an ArrayCollection though.

The other option is to query the XML using e4x and use the result as
the data provider:
http://www.onflex. <http://www.onflex.org/ted/2006/12/xmle4x-vs-amf.php>
org/ted/2006/12/xmle4x-vs-amf.php

Hope that helps,
-- William

--- In [EMAIL PROTECTED] <mailto:flexcoders%40yahoogroups.com>
ups.com, "Brad Bueche" <[EMAIL PROTECTED]> wrote:
>
> The problem (in short):
> I need to be able to hook up my charts to dataproviders where
>  equals "January". And only pull that. I dont need it to
> read every month in the hierarchy. Or month_name is January and
day_name
> is '14'. In order to do this I need to do IF logic with the
dataprovider
> it seems to me. My other post occurred because in leiu of being able
> to do "IF month_name='January'. I have just gone in and changed the
> xml so that instead of   [...] it now says 
>  etc. That sort of defeats the data
> description aspect of XML (it seems to me). 
> 
> 
> The background (if you are interested):
> This problem has to do with me NOT wanting to write 100+ reports to
> generate 100+ separate xml files to access.
> 
> I need to track the metrics of several internal groups over the year
via
> charting. I want to drill down into individual months (by day) and --
> maybe, days by hour. I also want to track into the sub groups per
> month and per day-in-month for each of these groups as well.
> 
> The data is network event traffic and doing the queries live will just
> not work. Users wont use the slicing and dicing visualization affords
if
> they have to wait every time the click an item.
> 
> So, I know I can save myself a lot of reports by putting all the data
> into about 10 - 20 reports or so by using the XML as its supposed to
be
> used (i.e. describing the data). I need to be able to hook the data
> provider to only a sub-node in the xml hierarchy and not have it read
> everything at that level. I need it to read only has long as
> month_name=January or month_name=January AND day_name='15'.
>



 



[flexcoders] Need IF Logic for Chart Data Provider

2008-02-01 Thread Brad Bueche
The problem (in short):
I need to be able to hook up my charts to dataproviders where
 equals "January". And only pull that.  I dont need it to
read every month in the hierarchy. Or month_name is January and day_name
is '14'. In order to do this I need to do IF logic with the dataprovider
it seems to me.   My other post occurred because in leiu of being able
to do  "IF month_name='January'.  I have just gone in and changed the
xml so that instead of   [...]  it now says 
 etc. That sort of defeats the data
description aspect of XML (it seems to me).  
 
 
The background (if you are interested):
This problem has to do with me NOT wanting to write 100+ reports to
generate 100+ separate xml files to access.
 
I need to track the metrics of several internal groups over the year via
charting.  I want to drill down into individual months (by day) and --
maybe, days by hour.   I also want to track into the sub groups per
month and per day-in-month for each of these groups as well.
 
The data is network event traffic and doing the queries live will just
not work. Users wont use the slicing and dicing visualization affords if
they have to wait every time the click an item.
 
So, I know I can save myself a lot of reports by putting all the data
into about 10 - 20 reports or so by using the XML as its supposed to be
used (i.e. describing the data).  I need to be able to hook the data
provider to only a sub-node in the xml hierarchy and not have it read
everything at that level. I need it to read only has long as
month_name=January or month_name=January AND day_name='15'.


RE: [flexcoders] Embedding String Variable in dataprovider name

2008-02-01 Thread Brad Bueche
Maciek,
 
Thanks for the quick reply.
 
That generates the following errors:
 
Syntax error: expecting rightparen before rightbrace. [Generated code
(use -keep to save):
1084: Syntax error: expecting identifier before leftbracket
1084: Syntax error: expecting rightparen before destination
 
I put a right paren before it just to see what would happen.  It got rid
of the errors! but it still didnt work :(
 
I was able to get categoryfield and title to accept the  ="{StringName}"
syntax though.   I even tried to replace the entire  dataprovider entry
with a stringname, like so:
 
dataprovider="{stringName]"
 
but that did not work either. 
 
There is a larger problem that led me down this path.  But I'll open
that in another thread as it would still be really cool to figure if I
could do what we are talking about in this thread.
 
brad

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Maciek Sakrejda
Sent: Friday, February 01, 2008 12:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Embedding String Variable in dataprovider name



I'm no e4xpert, but

dataProvider="{chartXML2.lastResult.[month].day}"

should do it.

-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.  com

-Original Message-
From: brad.bueche <[EMAIL PROTECTED]  com>
Reply-To: [EMAIL PROTECTED] 
ups.com
To: [EMAIL PROTECTED]  ups.com
Subject: [flexcoders] Embedding String Variable in dataprovider name
Date: Fri, 01 Feb 2008 15:40:25 -

Really what I need to be able to do is insert the variable name in this:

dataProvider="{chartXML2.lastResult.month.day}"

I need to replace the "month" with a string variable name (i.e public
var monthName = "January";)

I also need to do the same for the categoryfield as it will not let me
do categoryfield=$String.

In PHP this is incredibly easy to do. You just say blah=$string . In
fact, in PHP you can embed variable names everywhere. Its very
powerful. For instance, in php, for the dataprovider issue above, i'd
just do

dataProvider="{chartXML2.lastResult.$StringName.day}"

and it'd work just fine. Whats the syntax for doing this in Flex?