Re: [flexcoders] Error in code

2010-02-05 Thread Alex Harui
Try resultFormat=”e4x”


On 2/5/10 6:58 AM, "benandbeckyhoffman"  wrote:






I am trying to create a catalog request form and there is an error some where 
because it won't work.


http://www.adobe.com/2006/mxml"; layout="vertical">







STATE LIST REMOVE TO SAVE SPACE






































AND HERE IS THE PHP CODE

mailto:ben%40biacare.com> ";
$subject = "BiaCare Catalog Request"


$recipient = "$sendToEmail";

$headers = "From: $senderEmail ";
$message = "From: $senderName, \nCompany: $senderCompany\nName: 
$senderName\nEmail Address: $senderEmail\nAddress: $senderAddress\nCity: 
$senderCity\nState: $senderState\n\nZip: $senderZip";

mail($recipient, $subject, $message, $headers)
?>

Any help will be greatly appreciated.

God Bless!

Ben Hoffman






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] Re: Canvas and SimpleButton

2010-02-05 Thread Alex Harui
Many folks have been quite successful with Flex UIComponent and Button instead 
of Shape and SimpleButton.  You’d have to have tons of them to really suffer 
from the difference.


On 2/5/10 1:55 AM, "trzewiczek"  wrote:






Thanks for the answer. My additional questions would be:

1. Is the size&speed difference really big?

2. I understand that instead of Shape i could use Canvas, right? What is the 
alternative for the SimpleButton in Flex then. I'm really new to Flex.

Best from sunny nut cold Poland,
trzewiczek

--- In flexcoders@yahoogroups.com  , Alex 
Harui  wrote:
>
> In Flex, Navigator children must be Containers or INavigatorContent
> Container children must be IUIComponents
> UIComponent children can be anything.
>
> Shape and SimpleButton are smaller and faster, but they cannot cooperate with 
> the other features of the framework like focus, styles and skinning.  
> Frameworks have a cost.  They are less efficient because they are packed with 
> features you might need in order to save you time.
>
>
> On 2/4/10 11:28 AM, "trzewiczek"  wrote:
>
>
>
>
>
>
> Hi everyone,
>
> I'm very new to AS3/Flex. I started to work in a bigger AS3/Flex project and 
> after some work done in pure AS3 with a lot of Shape, SimpleButton and Sprite 
> classes use, it turned out the main visual part is being written as a 
> subclass of mx.containers.Canvas. I can't just addChild my stuff to that 
> Canvas.
>
> Is it some kind of restriction that you can't addChild any flash.display.* 
> class into the mx.containers.* classes?
>
> If that it true, what about efficiency of mx.* packages. As far as I know 
> Shape and SimpleButton are the most efficient way to handle vector and 
> interactive vector stuff. What about mx.* classes? Should I use Canvas and 
> Button instead or what?
>
> Thanks for any help!!
>
> trace("Best from Poland");
> trzewiczek
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread wrhinfl
IF the CF returns a query, it should be an ArrayCollection in AS.  If you are 
passing a CF Array it will be an Array in AS.  At least according to Flex 3 
Bible:
CF AS
String String
Array  Array
Query  ArrayCollection
Struct Object
CFC instance   Strongly type value object
Date   Date
NumericNumber
XML Object XML Object

Is your CFC currently returning an Array?  And can you change it to return a 
Query?

--- In flexcoders@yahoogroups.com, "Laurence"  wrote:
>
> Well, hmmm...  I can't rewrite it so data.course_fees is an ArrayCollection 
> -- when I change the 'EventVO.as' such that course_fees is an ArrayCollection 
> instead of an Array, it comes back from the database as null...  Perhaps 
> that's a problem with my CF code (EventVO.cfc and EventDAO.cfc)?  How do you 
> get CF to send data back as an ArrayCollection instead of an Array?  I'm 
> thinking that's not possible...
> 
> If I leave the EventVO.as alone, and course_fees is an Array, then I still 
> have the same problem in my ItemRenderer -- doesn't seem to matter if I make 
> listOfFees an Array or ArrayCollection...
> 
> 
> --- In flexcoders@yahoogroups.com, "Laurence"  wrote:
> >
> > Hmmm...  That's an idea...  data.course_fees is coming out of the database 
> > as an Array -- perhaps I should rewrite that so it comes out as an 
> > ArrayCollection from the very beginning...  I'll give that a shot...  (Yes, 
> > I know I can put an Array into an ArrayCollection, but if Array isn't 
> > behaving properly, I shouldn't use it at all, right?)
> > 
> > If I were to do something like:
> > listOfFees:ArrayCollection = new ArrayCollection(data.course_fees);
> > would that pass a reference to the ArrayCollection, or will that be making 
> > a copy?
> > 
> > --- In flexcoders@yahoogroups.com, "wrhinfl"  wrote:
> > >
> > > I thought array does not broadcast updates "nicely" (uniformly/as 
> > > expected), can you change the declaration of listOfFees from:
> > > [Bindable]private var listOfFees:Array;
> > > to:[Bindable]private var listOfFees:ArrayCollection;
> > >
> >
>




[flexcoders] Re: Custom GridLines

2010-02-05 Thread turbo_vb
Or to put the lines in back, use backgroundElements. -TH

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Your best bet is to NOT show any default horizontal lines and then use 
> annotationElements to draw your 2 custom lines.
>  
> -TH
> 
> --- In flexcoders@yahoogroups.com, "lauraff_mu"  wrote:
> >
> > Hello!
> > 
> > I'm trying to make a chart (in Flex 3). I only want to show two horizontal 
> > gird lines instead of all the lines the chart displays. Is there any way to 
> > do that? I have already try with "horizontalChangeCount" but it doesn't 
> > work ok.
> > 
> > (Sorry about my English...)
> > Thanks in advance!
> >
>




[flexcoders] Re: Custom GridLines

2010-02-05 Thread turbo_vb
Your best bet is to NOT show any default horizontal lines and then use 
annotationElements to draw your 2 custom lines.
 
-TH

--- In flexcoders@yahoogroups.com, "lauraff_mu"  wrote:
>
> Hello!
> 
> I'm trying to make a chart (in Flex 3). I only want to show two horizontal 
> gird lines instead of all the lines the chart displays. Is there any way to 
> do that? I have already try with "horizontalChangeCount" but it doesn't work 
> ok.
> 
> (Sorry about my English...)
> Thanks in advance!
>




[flexcoders] Hi guys i have one problem while configuring target runtime for apcahe tomcat...

2010-02-05 Thread naveenm_006
Hi guys i have one problem while configuring target runtime for apcahe tomcat v 
6.0 in Flex Builder 3.0.2 Professional Eclipse Plugin.Also unable to find 
tomcat v6.0 in that list.Can anybody resolve my problem?

Regards,
Naveen.



[flexcoders] Re: Canvas and SimpleButton

2010-02-05 Thread trzewiczek
Thanks for the answer. My additional questions would be:

1. Is the size&speed difference really big? 

2. I understand that instead of Shape i could use Canvas, right? What is the 
alternative for the SimpleButton in Flex then. I'm really new to Flex.


Best from sunny nut cold Poland,
trzewiczek

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> In Flex, Navigator children must be Containers or INavigatorContent
> Container children must be IUIComponents
> UIComponent children can be anything.
> 
> Shape and SimpleButton are smaller and faster, but they cannot cooperate with 
> the other features of the framework like focus, styles and skinning.  
> Frameworks have a cost.  They are less efficient because they are packed with 
> features you might need in order to save you time.
> 
> 
> On 2/4/10 11:28 AM, "trzewiczek"  wrote:
> 
> 
> 
> 
> 
> 
> Hi everyone,
> 
> I'm very new to AS3/Flex. I started to work in a bigger AS3/Flex project and 
> after some work done in pure AS3 with a lot of Shape, SimpleButton and Sprite 
> classes use, it turned out the main visual part is being written as a 
> subclass of mx.containers.Canvas. I can't just addChild my stuff to that 
> Canvas.
> 
> Is it some kind of restriction that you can't addChild any flash.display.* 
> class into the mx.containers.* classes?
> 
> If that it true, what about efficiency of mx.* packages. As far as I know 
> Shape and SimpleButton are the most efficient way to handle vector and 
> interactive vector stuff. What about mx.* classes? Should I use Canvas and 
> Button instead or what?
> 
> Thanks for any help!!
> 
> trace("Best from Poland");
> trzewiczek
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Sub: Flex -Weborb chat with database

2010-02-05 Thread vikranth reddy
i am developing a chat application  in flex with weborb, using message queuing
In that time  how can i track the chat messages and where we can use the 
database interaction to store the chat messages,  
Please  help me regarding this issue



  The INTERNET now has a personality. YOURS! See your Yahoo! Homepage. 
http://in.yahoo.com/

Re: [flexcoders] Flex Builder 3 - A little to be desired

2010-02-05 Thread Lee Jenkins
Clark Stevenson wrote:
>  
> 
> 
> Ugh i can totally appreciate your email.
> 
> I have struggled pretty much constantly over the last 2 years with all 
> kinds of problems.
> 

The more I work with this product, the more I'm convinced that it is a very 
buggy piece product in very core areas.  All kinds of mysterious compiler 
issues 
with fragments of code not getting linked in all the time, having to perform a 
clean every few changes of code ,which itself takes forever if there is more 
than one project involved.


--
Warm Regards,

Lee



[flexcoders] Error in code

2010-02-05 Thread benandbeckyhoffman
I am trying to create a catalog request form and there is an error some where 
because it won't work.


http://www.adobe.com/2006/mxml"; layout="vertical">







STATE LIST REMOVE TO SAVE SPACE






































AND HERE IS THE PHP CODE



Any help will be greatly appreciated.

God Bless!

Ben Hoffman



[flexcoders] Flex -Weborb(.net) chat with database

2010-02-05 Thread vikranth4u
i am developing a chat application  in flex with weborb, using message queuing

In that time  how can i track the chat messages and where we can use the 
database interaction to store the chat messages,  

Please  help me regarding this issue



[flexcoders] Custom GridLines

2010-02-05 Thread lauraff_mu
Hello!

I'm trying to make a chart (in Flex 3). I only want to show two horizontal gird 
lines instead of all the lines the chart displays. Is there any way to do that? 
I have already try with "horizontalChangeCount" but it doesn't work ok.

(Sorry about my English...)
Thanks in advance!



RE: [flexcoders] Is there a way to enumerate all of the available styles in CSSStyleDeclaration?

2010-02-05 Thread Gordon Smith
[Bindable] metdata gets retained, and so should appear in describeType()'s 
output, but [Style], [Event], and [Effect] do not. You could, however, 
recompile the framework to keep them. Look at the  tags in 
the Ant build.xml file for frameworks/projects/framework, for example.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Dmitry
Sent: Friday, February 05, 2010 11:01 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a way to enumerate all of the available styles 
in CSSStyleDeclaration?



the way to get Style,Event, Effect and Bindable metadata from UIComponent when 
calling describeType

However, the above does not work since subclasses of CSSStyleDeclaration, 
DataGridColumn for instance, in Flex do not have [Style] metadata defined. Yet, 
FlexBuilder somehow knows about all of the available styles for DataGridColumn. 
Is there a programmatic way to retrieve these?

Thanks in advance

--- Dmitry



[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread Laurence
Well, I installed FlashBuilder 4 Premium Beta 2, imported the project into 
there, and ran the code.

It is EXACTLY THE SAME in FB3 and FB4 -- the exact same problem appears.  I 
scroll down in the DataGrid, and the numbers in the ItemRenderer's drop down 
change (but not the selected number being displayed.)  If I select one of the 
incorrect numbers, the drop-down immedately changes to the correct numbers, and 
the number I would've selected (had it been displayed correctly) shows as the 
selected item in the combo box.  It's just SO WEIRD!

So...  What is that problem, exactly?  Anyone able to figure it out?  I'm 
totally confused...  It should be working!  (See my earlier post for the code 
-- I beg you, PLEASE help me figure this out!)

Thanks,
Laurence MacNeill
Mableton, Georgia, USA



--- In flexcoders@yahoogroups.com, "Laurence"  wrote:
>
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > I didn't take the time to debug your code, just looked for the usual 
> > suspects and didn't see any.  It was supposed to be fixed in 3.5 but 
> > somehow got busted so now will be in 3.6 but not sure when that ships.
> > 
> > I didn't really want you to port the whole project, just write a test case 
> > with Flex 4 to see if you are hitting that same problem, then we can figure 
> > out what to do from there.
> 
> I will try that if the Array vs. ArrayCollection idea doesn't pan out...  
> Hate to go through all the trouble of installing Flex 4 Beta just for this, 
> though...  Or can I just install the 4.0 SDK in my existing FlexBuilder Pro?
>




[flexcoders] Re: LineSeries

2010-02-05 Thread flexlingie



Great example! I was looking for something like this, and this is perfect. 
Thank you for posting!!

Anna

--- In flexcoders@yahoogroups.com, "turbo_vb"  wrote:
>
> Thanks Vivian,
> For the plot chart, you can do the same type of thing, except with more
> images, with an itemRenderer.  Just like the way you can change icons,
> or images, in a List itemRenderer, the same can be done with a chart. 
> In the last sample, you can see how to inspect the data; to determine
> which image class to display.  This next Sample
>  eledRendererSample.html>  shows how you can use an itemRenderer that
> extends UIComponent.  This is a little different than creating an
> itemRenderer that extends ProgrammaticSkin, as it gives you a lot more
> flexibility.  Between the two samples, you might be able to come up with
> a solution.  If you get stuck, please feel free to reach out. -TH
> --- In flexcoders@yahoogroups.com, Vivian Richard  wrote:
> >
> >Liked your example. Sleek!!! By the way I am trying to write an
> > itemrenderer
> >for plot chart. Depending on the value of the plot item I want to
> show
> > different
> >icons in the plotted spot. These is an example of plot chart where
> you
> > can
> >embed an image but in that way you can only put same image in one
> series.
> >Here is the link:
> >
> >
> >
> http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formattin\
> g_12.html
> >
> > The butterfly example - I am talking about.
> >
> >
> >
> > On Mon, Nov 16, 2009 at 3:02 PM, turbo_vb TimHoff@ wrote:
> >
> > >
> > >
> > > Cool, yeah I should have said custom lineSegmentRenderer.
> > >
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com ,
> Jake
> > > Churchill reynacho@ wrote:
> > > >
> > > > THANK YOU. I have seen this before and I've been looking for it
> forever.
> > > > The stinking chart components are all in the dataviz SWC and I
> couldn't
> > > get
> > > > past a null error I was getting.
> > > >
> > > > On Mon, Nov 16, 2009 at 4:43 PM, turbo_vb TimHoff@ wrote:
> > > >
> > > > >
> > > > >
> > > > > Sorry bout that, let's try it again: Sample<
> > >
> http://www.timothyhoff.com/projects/LineRendererSample/LineRendererSampl\
> e.html
> > > >
> > >
> > > > >
> > > > >
> > > > > -TH
> > > > >
> > > > > --- In flexcoders@yahoogroups.com
> , Jake
> > > Churchill  wrote:
> > > > > >
> > > > > > I've been trying something like this but item renders and
> actual
> > > segments
> > > > > of
> > > > > > the line seem to be drawn separately. By the way, your link
> doesn't
> > > work.
> > > > > >
> > > > > > On Mon, Nov 16, 2009 at 3:35 PM, turbo_vb TimHoff@ wrote:
> > > > > >
> > > > > > >
> > > > > > >
> > > > > > > Hi Jake,
> > > > > > >
> > > > > > > You could do it with a custom itemRenderer and control the
> alpha or
> > > > > actual
> > > > > > > drawing; based on a data property. Here's a custom renderer
> sample
> > > to
> > > > > get
> > > > > > > you started:
> > > > > > >
> > > > > > > Colored Line Chart Sample<
> > > > >
> http://www.flashcomguru.com/index.cfm/2009/11/11/pdf-for-flex-devs>
> > > > >
> > > > > > >
> > > > > > >
> > > > > > > -TH
> > > > > > >
> > > > > > > --- In flexcoders@yahoogroups.com
> ,
> > > Jake Churchill reynacho@ wrote:
> > > > > > > >
> > > > > > > > I'm struggling with how to hide a section of a LineSeries.
> Does
> > > > > anyone
> > > > > > > have
> > > > > > > > any pointers or links to point me in the right direction?
> > > > > > > >
> > > > > > > > Thanks!
> > > > > > > >
> > > > > > > > -Jake
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> > >
> >
>




[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread Laurence
Well, hmmm...  I can't rewrite it so data.course_fees is an ArrayCollection -- 
when I change the 'EventVO.as' such that course_fees is an ArrayCollection 
instead of an Array, it comes back from the database as null...  Perhaps that's 
a problem with my CF code (EventVO.cfc and EventDAO.cfc)?  How do you get CF to 
send data back as an ArrayCollection instead of an Array?  I'm thinking that's 
not possible...

If I leave the EventVO.as alone, and course_fees is an Array, then I still have 
the same problem in my ItemRenderer -- doesn't seem to matter if I make 
listOfFees an Array or ArrayCollection...


--- In flexcoders@yahoogroups.com, "Laurence"  wrote:
>
> Hmmm...  That's an idea...  data.course_fees is coming out of the database as 
> an Array -- perhaps I should rewrite that so it comes out as an 
> ArrayCollection from the very beginning...  I'll give that a shot...  (Yes, I 
> know I can put an Array into an ArrayCollection, but if Array isn't behaving 
> properly, I shouldn't use it at all, right?)
> 
> If I were to do something like:
> listOfFees:ArrayCollection = new ArrayCollection(data.course_fees);
> would that pass a reference to the ArrayCollection, or will that be making a 
> copy?
> 
> --- In flexcoders@yahoogroups.com, "wrhinfl"  wrote:
> >
> > I thought array does not broadcast updates "nicely" (uniformly/as 
> > expected), can you change the declaration of listOfFees from:
> > [Bindable]private var listOfFees:Array;
> > to:[Bindable]private var listOfFees:ArrayCollection;
> >
>




[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread Laurence


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I didn't take the time to debug your code, just looked for the usual suspects 
> and didn't see any.  It was supposed to be fixed in 3.5 but somehow got 
> busted so now will be in 3.6 but not sure when that ships.
> 
> I didn't really want you to port the whole project, just write a test case 
> with Flex 4 to see if you are hitting that same problem, then we can figure 
> out what to do from there.

I will try that if the Array vs. ArrayCollection idea doesn't pan out...  Hate 
to go through all the trouble of installing Flex 4 Beta just for this, 
though...  Or can I just install the 4.0 SDK in my existing FlexBuilder Pro?





[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread Laurence
Hmmm...  That's an idea...  data.course_fees is coming out of the database as 
an Array -- perhaps I should rewrite that so it comes out as an ArrayCollection 
from the very beginning...  I'll give that a shot...  (Yes, I know I can put an 
Array into an ArrayCollection, but if Array isn't behaving properly, I 
shouldn't use it at all, right?)

If I were to do something like:
listOfFees:ArrayCollection = new ArrayCollection(data.course_fees);
would that pass a reference to the ArrayCollection, or will that be making a 
copy?

--- In flexcoders@yahoogroups.com, "wrhinfl"  wrote:
>
> I thought array does not broadcast updates "nicely" (uniformly/as expected), 
> can you change the declaration of listOfFees from:
> [Bindable]private var listOfFees:Array;
> to:[Bindable]private var listOfFees:ArrayCollection;
> 



Re: [flexcoders] new Flex 4 includeIn property/style

2010-02-05 Thread Alex Harui
Yes it does.


On 2/5/10 8:06 AM, "arielj...@yahoo.com"  wrote:






I can't seem to find it in the docs or source. Anyone know if it supports comma 
delimited lists of states?






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Is there a way to enumerate all of the available styles in CSSStyleDeclaration?

2010-02-05 Thread Dmitry
the way to get Style,Event, Effect and Bindable metadata from UIComponent when 
calling describeType 

However, the above does not work since subclasses of CSSStyleDeclaration, 
DataGridColumn for instance, in Flex do not have [Style] metadata defined. Yet, 
FlexBuilder somehow knows about all of the available styles for DataGridColumn. 
Is there a programmatic way to retrieve these?

Thanks in advance

--- Dmitry



[flexcoders] FLEX SDK Release Notes

2010-02-05 Thread alexeoscar
Are there release notes or change log documents at Adobe web site to list the 
changes for different SDK releases, for example what has been changed from 3.4 
to 3.5?

My site navigation and googling skills seems failing me today, sorry If I am 
not finding something just out there. 

-alex



[flexcoders] fullscreen video issue

2010-02-05 Thread m_koks
Hi All,

In my application I have a video display component placed at 100,100 with 
height n width as 400,300.

I wanted to fullscreen the video on click of a button. So I wrote the following 
code.

var p:Point=videoDisplayComp.localToGlobal(new Point(0,0));
this.stage.fullScreenSourceRect = new Rectangle (p.x, p.y, 
videoDisplayComp.width, videoDisplayComp.height);
this.stage.displayState=StageDisplayState.FULL_SCREEN;

I was expecting that the complete screen will be occupied by the video (like 
youTube fullscreen video).
But in actual, it was zooming the application but it was not occupying the 
whole screen. instead a square of 400,300 is visible on the screen with 
SCROLLBARS to it. I can scroll and view the complete application in the 
viewable area. In other words, the viewable area on the screen is only of the 
size specified above with scrollbars. Rest of the screen is grayed out.

Any idea, what could be the problem?

Thanks




[flexcoders] Re: Issue in TabNavigator component

2010-02-05 Thread valdhor
I have no idea (I don't use TabNavigators). You could try checking out 
SuperTabNavigator (Part of flexlib). I have never used it but it may have the 
functionality you want.

--- In flexcoders@yahoogroups.com, Pradeep Chaudhary  
wrote:
>
> Has anybody ran into similar behavior ? I am still not able to resolve it.
> 
> Please help.
> 
> On Thu, Feb 4, 2010 at 11:26 PM, Pradeep Chaudhary <
> pradeep.chaudh...@...> wrote:
> 
> > I am trying to dynamically add tabs to a TabNavigator. Tabs are removed on
> > certain event on the client and I need to add it again. Problem is that even
> > though tabs are added correctly, the selected tab header is not correct.
> >
> > For example, If I have two tabs and the second tab is selected when they
> > are removed. On adding the tabs again, first tab should be the selected one.
> > But instead the second tab header is shown as selected but the content is of
> > first tab.
> >
> > I have attached sample example for reference. Please suggest what do I need
> > to do to fix the problem.
> >
> > Thanks in advance.
> >
> > Pradeep
> >
>




[flexcoders] Re: Encoding XML Character Entity References *properly*

2010-02-05 Thread valdhor
Try this:

private function htmlEscape(str:String):String
{
 return XML(new XMLNode(XMLNodeType.TEXT_NODE, str)).toXMLString();
}

It uses the legacy ActionScript 2 object. I don't know how long this
will stay around but it is included in the latest 3.5SDK (Not sure about
4).

HTH



Steve

--- In flexcoders@yahoogroups.com, Peter Valdemar Mørch 
wrote:
>
> Hi, I didn't get any replies, so here is a polite bump...
>
> My question is basically this: How do I create an XML node with a
> toXMLString() value of:
>
> a string/&
>
> from a value of
>
> var value:String = "a string/&";
>
> Is this really something one is expected to code by hand using RegExp
> or split&join? Isn't this something everybody who needs to send /
> recieve XML needs to be safe? I just can't find it anywhere.
>
> Also, I wrote:
> > P.S.: Please don't tell me about escape() because it URL-encodes,
> > which is not the same thing. (For "a&b" I want "a&b", not
> > "a%26b).
>
> Sorry if this offended anyone. I didn't mean to be rude.
>
> Peter
> --
> Peter Valdemar Mørch
> http://www.morch.com
>




[flexcoders] Re: Issue in TabNavigator component

2010-02-05 Thread Pradeep Chaudhary
Has anybody ran into similar behavior ? I am still not able to resolve it.

Please help.

On Thu, Feb 4, 2010 at 11:26 PM, Pradeep Chaudhary <
pradeep.chaudh...@gmail.com> wrote:

> I am trying to dynamically add tabs to a TabNavigator. Tabs are removed on
> certain event on the client and I need to add it again. Problem is that even
> though tabs are added correctly, the selected tab header is not correct.
>
> For example, If I have two tabs and the second tab is selected when they
> are removed. On adding the tabs again, first tab should be the selected one.
> But instead the second tab header is shown as selected but the content is of
> first tab.
>
> I have attached sample example for reference. Please suggest what do I need
> to do to fix the problem.
>
> Thanks in advance.
>
> Pradeep
>


[flexcoders] new Flex 4 includeIn property/style

2010-02-05 Thread Ariel J
I can't seem to find it in the docs or source. Anyone know if it supports comma 
delimited lists of states?



Re: [flexcoders] Encoding XML Character Entity References *properly*

2010-02-05 Thread Peter Valdemar Mørch
Hi, I didn't get any replies, so here is a polite bump...

My question is basically this: How do I create an XML node with a
toXMLString() value of:

a string/&

from a value of

var value:String = "a string/&";

Is this really something one is expected to code by hand using RegExp
or split&join? Isn't this something everybody who needs to send /
recieve XML needs to be safe? I just can't find it anywhere.

Also, I wrote:
> P.S.: Please don't tell me about escape() because it URL-encodes,
> which is not the same thing. (For "a&b" I want "a&b", not
> "a%26b).

Sorry if this offended anyone. I didn't mean to be rude.

Peter
-- 
Peter Valdemar Mørch
http://www.morch.com


[flexcoders] showDataEffect bug?

2010-02-05 Thread pullzmag
I have line and column charts with dynamically added series. Each time I select 
the data the charts are correctly updated but on every third selection the 
showDataEffect effect is not triggered. Do you have a clue why?



Re: [flexcoders] Re: Bitmap with Scale9 in custom border

2010-02-05 Thread Steffen Beyer
On Thu, 04 Feb 2010 14:08:52 -, Amy wrote:
> Set the scale9 grid on the graphic asset so it does what it was (i.e. 
> set the top or bottom grid piece to be all the way at the top or bottom).

That would not be a problem. The point is, scaling is not applied at all.

>> border.width = w;

...has no effect!

Kind regards,
-- 
Steffen Beyer 

GnuPG key fingerprint: CA00 1611 242B 89D4 E643  E235 05F3 7689 DD3E EB26
Public key available upon request or at http://wwwkeys.de.pgp.net


[flexcoders] Re: Custom ItemRenderer still not working...

2010-02-05 Thread wrhinfl
I thought array does not broadcast updates "nicely" (uniformly/as expected), 
can you change the declaration of listOfFees from:
[Bindable]private var listOfFees:Array;
to:[Bindable]private var listOfFees:ArrayCollection;

--- In flexcoders@yahoogroups.com, "Laurence"  wrote:
>
> I thought I had this figured out...  But apparently I don't...
> 
> Can someone please tell me why this won't work as a custom ItemRenderer?  I 
> scroll up and down, and the selected value in the ComboBox does NOT change, 
> but the values in the drop-down DO change.  I'm at a loss as to why...
> 
> BEGIN CODE:
> 
> http://www.adobe.com/2006/mxml";  height="100%" 
> width="100%"
>dataProvider="{listOfFees}" 
> labelFunction="formatLabel" change="changeHandler(event)" 
>openDuration="0" closeDuration="0">
>   
>   
>   
>   
>   
> 
> 
>




[flexcoders] Re: Assigning arrays...

2010-02-05 Thread creativepragmatic
I think using com.adobe.utils.ArrayUtil in as3corelib might also work.


--- In flexcoders@yahoogroups.com, "Laurence"  wrote:
>
> Well, it appears they both work...
> 
> But my ItemRenderer (see my other post) is still not working correctly.  I 
> had assumed it wasn't working because I was passing it a reference to the 
> array that's used to populate the ComboBox, rather than passing it a new 
> array...  But no matter what I do, I can't get the comboBox drop-down to 
> render properly after a scroll...
> 
> Very frustrating...
> 
> 
> --- In flexcoders@yahoogroups.com, Fotis Chatzinikos  
> wrote:
> >
> > ObjectUtil.copy() ?
> > 
> > On Thu, Feb 4, 2010 at 6:10 PM, claudiu ursica wrote:
> > 
> > >
> > >
> > > Array.splice method (Array.concat or Array.join) check the docs I don;t
> > > know them by heart.
> > > C
> > >
> > > --
> > > *From:* Laurence 
> > > *To:* flexcoders@yahoogroups.com
> > > *Sent:* Thu, February 4, 2010 6:02:46 PM
> > > *Subject:* [flexcoders] Assigning arrays...
> > >
> > >
> > >
> > > I need to copy one array to another -- NOT copy a reference to the 
> > > array...
> > >
> > >
> > > For example:
> > > array1 = array2 will simply copy a reference to array2 into array1.
> > >
> > > I want to do something like this:
> > > array1 = new Array(array2) .
> > >
> > > Of course, that doesn't work... It simply creates a blank array that's
> > > pre-allocated to be the length of whatever array2's length was... (At 
> > > least
> > > that's what I think is going on...)
> > >
> > > Anyway -- how do I copy one array to another, without looping through the
> > > entire array?
> > >
> > >
> > >  
> > >
> > 
> > 
> > 
> > -- 
> > Fotis Chatzinikos, Ph.D.
> > Founder,
> > LivinData Technologies
> > www.styledropper.com
> > Fotis.Chatzinikos@,
> >
>




[flexcoders] Re: auto close popups

2010-02-05 Thread markdemich
I'm not sure that you need to worry about the FocusManager given you want it to 
go away on a click.

One way I would handle it would be to add an event listener to the stage and 
listen for MouseEvent.MOUSE_DOWN.  Check the target and if the target is not 
anything in your popup, then close the popup.  You can use the "contains" 
method for this.

You may also consider adding a small close button to your popup just in case 
the user doesn't realize they just have to click somewhere else to hide it.

Remember to remove the event listener when you're done.

--- In flexcoders@yahoogroups.com, Glenn Jones  wrote:
>
> I have a popup that's opened in the usual way with the popup manager.  It's
> not modal.
> Sometimes the controls within the popup are enabled so that the user can
> interact with them,
> and sometimes the controls are disabled because the contents are read-only.
> 
> As soon as the user clicks anywhere else in the application, I'd like to
> close the popup.
> 
> Is there an easy way to do that?
> 
> Based on what I've read, the popup should have it's own instance of
> FocusManager, and that
> FocusManager should receive a deactive() call if the user clicks somewhere
> else. So I thought
> about extending the FocusManager with some new class designed to close the
> parent form
> on deactivate.  But was hoping there was a better way.
> 
> Thanks,
> Glenn
>




[flexcoders] Eclipse IDE and Windows 7

2010-02-05 Thread Nick Middleweek
Hi guys,

Sorry for the off-topic question but I've moved over from Flex Builder to
Eclipse with the FB plugin. A work friend suggesting working this way as
Eclipse is better and I've noticed I now have brace matching like I used to
have in Aptana :-)

We have also installed WDT, SVN and a few other bits.

I'm currently running Windows Vista Business and every now and again I'm
getting an error when opening a WSDL document. Eventually it resolves itself
but it just seems a bit flakey.


What are other peoples experiences and is it worth upgrading to Windows 7?

I don't have the cash for Mac :)


Cheers,
nick