Re: [flexcoders] Variable Typecasting

2008-07-17 Thread Peter Witham
Have you tried

strEMail = String(GlobalVars.instance.acUser.getItemAt(0));


Do not have my machine in front of me to test but pretty sure you can cast
something that way. I know that's the way I do it to cast MovieClip names.


Regards,
Peter

On 7/17/08, Scott <[EMAIL PROTECTED]> wrote:
>
>I'm trying to pull a variable from an arrayCollection which I know is
> type String.
>
>
>
> Here's the code:
>
>
>
>   *public* *var* strEMail:String;
>
> …
>
> Private function …
>
> {
>
> strEMail = GlobalVars.instance.acUser.getItemAt(0);
>
> }
>
>
>
> That above line of course throws an error because it's not sure that the
> variable at (0) is actually a string even though I know it is.  In C++ I
> would just tell it using a typecast that it is a string.
>
>
>
> How can I copy that element into a variable?
>
>
>
> Thanks!
>
>  
>



-- 
Peter Witham
http://www.evolutiondata.com
Internet and Multimedia developer
Certified Flash Designer.


Re: [flexcoders] Dynamic change edit status of TextImput

2008-07-17 Thread Josh McDonald
You can loop through looking for the child with ID "x", or keep a reference
to it like you would any other variable.

var createdChildren : Object = {};

private function Test():void
{
 for(var i:int = 0; i wrote:

> Hello all,
> Yes it is me back asking more questions about dynamic ActionScript.
> Here is my problem, I have this  object that I populate a textimput box
> Here us some of the code:
> [Bindable]
> public var sArray:Object = [{Name:"Jane Doe",Age:"26",ID:"5"}];
>
> private function Test():void
> {
>  for(var i:int = 0; ivar ti1:TextInput = new TextInput();
>ti1.editable = false;
>ti1.id = "Name__" + sArray[i].ID;
>addChild(ti1);
>  }
> }
> So now I have this TextInput with the id of Name__5, I would like to
> create a function to set the editable to true, so I create somting
> like this
>
> private function Enable():void
> {
>  for(var i:int = 0; i ti1.id = "Name__" + sArray[i].ID.editable = true;
>  }
> }
>
> at the code:
>  ti1.id = "Name__" + sArray[i].ID.editable = true;
> I am getting a "1050: Cannot assign to a non-reference value" error.
> How can I create a id to do somting when it has not been created yet?
>
> Thanks for the help,
> timgerr
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Variable Typecasting

2008-07-17 Thread Scott
I'm trying to pull a variable from an arrayCollection which I know is
type String.

 

Here's the code:

 

  public var strEMail:String;

...

Private function ... 

{

strEMail = GlobalVars.instance.acUser.getItemAt(0);

}

 

That above line of course throws an error because it's not sure that the
variable at (0) is actually a string even though I know it is.  In C++ I
would just tell it using a typecast that it is a string.

 

How can I copy that element into a variable?

 

Thanks!



[flexcoders] Dynamic change edit status of TextImput

2008-07-17 Thread timgerr
Hello all,
Yes it is me back asking more questions about dynamic ActionScript. 
Here is my problem, I have this  object that I populate a textimput box
Here us some of the code:
[Bindable]
public var sArray:Object = [{Name:"Jane Doe",Age:"26",ID:"5"}];

private function Test():void
{
  for(var i:int = 0; i

[flexcoders] Re: Problem with showing dynamic combobox

2008-07-17 Thread timgerr
Thanks all for the help.

Timgerr


--- In flexcoders@yahoogroups.com, "timgerr" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I an running into a problem, when I create a Actionscript ComboBox
> like this:
> 
> [Bindable]
> public var respArray: Array = [
> {label:""},{label:"Yes"},{label:"No"},{label:"N/A"},{label:"No
> Responce"}];
> 
> var cb1:ComboBox = new ComboBox();
> cb1.id = 'cb1me';
> cb1.dataProvider = respArray;
> addChild(cb1);
> 
> All is displayed correctly
> 
> But when I add the labelField like this
> var cb1:ComboBox = new ComboBox();
> cb1.id = 'cb1me';
> cb1.dataProvider = respArray;
> cb1.labelField  = 'Please Select';
> addChild(cb1);
> 
> When this is displayed the ComboBox displays:
> [Object Object]
> [Object Object]
> [Object Object]
> [Object Object]
> 
> 
> Why is the labelField  messing up my array?
> 
> Thanks,
> timgerr
>




[flexcoders] Why one should use states ? OR why not ?

2008-07-17 Thread Manu Dhanda

My query is, as above, 

Why should we use the states ? OR Why we should not use the states ?

Are there any scenarios where states come to your rescue ?

Having Cairngorm (ModelLocator/view) in picture, does it has any relation
with using states OR not using states ?

Is it a good practice to use states heavily to represent different views to
the end user ?

Appreciate your time to answer these queries.

Thanks,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Why-one-should-use-states---OR-why-not---tp18521818p18521818.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Container is not resizing when parent resizes

2008-07-17 Thread Josh McDonald
As a guess, you're probably setting width and height somewhere instead of
calling setActualSize(width, height);

-Josh

On Fri, Jul 18, 2008 at 9:12 AM, wwwpl <[EMAIL PROTECTED]> wrote:

> I created a custom component that extends Container.  I have set the
> width and height to 100%.  When my component first comes up it resizes
> as the parent resizes, but after the user uses the application, my
> component gets into a state where it doesn't get sent measure events
> any more.  Any ideas?
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] dynamic variables query

2008-07-17 Thread Josh McDonald
You can still do that, but only on dynamic objects :)

anything that is defined as:

public dynamic class MyDynamicClass

var dynamicObject = new MyDynamicClass();
var dynamicObject2 = new Object();
var dynamicObject3 = {};

-Josh

On Fri, Jul 18, 2008 at 10:05 AM, andrewedwards39 <[EMAIL PROTECTED]>
wrote:

> Hello all,
>
> I'm migrating from as2 to as3 and had a question regarding dynamic
> variables.
>
> A very powerful feature of as2 was the ability to access variables
> dynamically like:
>
> for(var i:uint = 0; i< 10; i++){
>this['item_'+i] = i * 20;
> }
>
> I cant seem to replicate this type of functionality in as3 - any pointers?
>
> Cheers
>
> andrew
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Container is not resizing when parent resizes

2008-07-17 Thread wwwpl
I created a custom component that extends Container.  I have set the 
width and height to 100%.  When my component first comes up it resizes 
as the parent resizes, but after the user uses the application, my 
component gets into a state where it doesn't get sent measure events 
any more.  Any ideas?



[flexcoders] dynamic variables query

2008-07-17 Thread andrewedwards39
Hello all,

I'm migrating from as2 to as3 and had a question regarding dynamic
variables.

A very powerful feature of as2 was the ability to access variables
dynamically like:

for(var i:uint = 0; i< 10; i++){
this['item_'+i] = i * 20;
}

I cant seem to replicate this type of functionality in as3 - any pointers?

Cheers

andrew




[flexcoders] Does Flex offer personalized configuration on the UI end?

2008-07-17 Thread R H.
Hello Flexcoders,
Does Flex offer to save personalized configuration on the UI? Every user has
different preference about how the result can be viewed on UI. It's not
about the preference on the browser. It's about how to save the view of the
result retrieved by Flex from the server end.

Any idea?

Thanks
Ryan

-- 
Laurence J. Peter  - "Originality is the fine art of remembering what you
hear but forgetting where you heard it."


Re: [flexcoders] CFC/VO match not recognized

2008-07-17 Thread Douglas Knudsen
your first getEstimate() shoudl do it, the second will only return to
Object in Flex.  Now, that said, I believe you need setters/getters on
all vars in your CFC, this might be the case for sending from Flex to
CF, but not sure, its been a whole year since I messed with CF that
much :)  Also note two things about CFCs and arrays.  To return a
array of foo.cfc you use returntype="com.meridien.foo[]" to specify a
array of foo.  Secondly, arrays in CFCs do not map to arraycollections
in Flex.  you can see my post here
http://www.cubicleman.com/2007/02/13/coldfusion-and-flex-composite-cfcs-and-arrays/
on how to get around that if you really need a arraycollection in your
Flex UI.

HTH!

DK
On Thu, Jul 17, 2008 at 12:25 PM, Tom McNeer <[EMAIL PROTECTED]> wrote:
> I'm trying to solve an issue I posted about earlier, where a call to a
> method of a ColdFusion CFC resulted in an error saying that the required
> parameter - Estimate - was missing, even though I could see through
> ServiceCapture that the object was, in fact, being sent.
>
> I'm working on the theory that it's an object translation problem. So I'm
> testing by calling a getEstimate() method on the CFC as the Flex app starts
> up, which should return an empty instance of an Estimate. However, the
> incoming result is being identified as an ObjectProxy, rather than being
> matched to the Estimate.as VO. And for the life of me, I can't figure out
> why. I have many other VO/CFC combinations in the application, all being
> matched up correctly. But the Estimate object just won't fly.
>
> I'm hoping someone here can help me figure it out.
>
> For reference, here's Estimate.as:
> 
> package model
> {
> [RemoteClass(alias="meridien.model.estimate")]
>
>
> [Bindable]
> public class Estimate
> {
> public var estimateID:int = 0;
> public var order:Order = new Order;
> public var customer:Customer = new Customer;
> public var configAC:ArrayCollection = new ArrayCollection;
>
> public function Estimate(data:Object = null)
> {
> }
> }
>
> }
> }
> =
>
> Here's estimate.cfc
> =
> 
> 
> 
> 
> 
> 
> =
>
> In my getEstimate() method, I have tried creating the object which I sent to
> Flex in two ways:
> =
>  returntype="any">
>  createObject("component","meridien.model.estimate")>
> 
> 
>
> ... and
>
>  returntype="any">
> 
> 
> 
>  createObject("component","meridien.model.products.order") />
>  createObject("component","meridien.model.customer.customer") />
> 
> 
> 
> =
>
> Neither work. The nested objects -- Customer and Order -- are recognized and
> translated in Flex. But the outer Estimate object isn't.
>
> Can anyone see what I'm doing wrong here? (All paths are correct, by the
> way.)
>
> --
> Thanks,
>
> Tom
>
> Tom McNeer
> MediumCool
> http://www.mediumcool.com
> 1735 Johnson Road NE
> Atlanta, GA 30306
> 404.589.0560
> 



-- 
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


Re: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Josh McDonald
I'd create a util class listens to CollectionChangeEvents from your
collection and keeps a list of what's added, a list of what's dirty, and a
list of what's removed. It'd probably take 2 hours to write and be a pretty
useful util class.

-Josh

On Fri, Jul 18, 2008 at 10:26 AM, Gordon Smith <[EMAIL PROTECTED]> wrote:

>  Please note that you can implement toString() on the item class to do
> anything you want. But that doesn't imply it's a good way to compare two
> collections.
>
>
>
> Perhaps you should reconsider whether you really need two collections that
> may or may not be exactly the same. Or consider keeping a 'dirty' flag that
> you set to true when you add, remove, or edit an item.
>
>
>
> Gordon Smith
>
> Adobe Flex SDK Team
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Gordon Smith
Please note that you can implement toString() on the item class to do
anything you want. But that doesn't imply it's a good way to compare two
collections.

 

Perhaps you should reconsider whether you really need two collections
that may or may not be exactly the same. Or consider keeping a 'dirty'
flag that you set to true when you add, remove, or edit an item.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sid Maskit
Sent: Thursday, July 17, 2008 4:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Comparing two array collections

 

Maybe somebody else will have one, but I am not seeing a simple way to
do this in a more sophisticated manner. This leads me to the following
question: Are you experiencing performance problems? If not, I would
suggest coding what works, and not worrying about the overhead involved
in a somewhat brute force approach. If you start encountering
performance problems, and identify this part of the code as where the
problem lies, then it might be worth putting in the additional work to
develop a more subtle solution.

 

- Original Message 
From: tchredeemed <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 17, 2008 1:13:48 PM
Subject: [flexcoders] Re: Comparing two array collections

Just an update, I know I can pass both into a function that does the
following:

checkForEquality( a:AC, b:AC ):Boolean {
if( a.length != b.length ) return false;

loop through each item
if an item differs, return false;

return true;
}

however, I was hoping for a solution with less overhead.

--- In [EMAIL PROTECTED] ups.com 
, "tchredeemed" <[EMAIL PROTECTED] > wrote:
>
> How would you go about comparing two array collections?
> 
> Each array collection is populated with items of an ADT ("Order", to
> be exact).
> 
> If I do .toString() comparisons, it only appears as different if I add
> or remove an "Order", because the .toString() shows up as "[object
> Order], [object Order], etc.."
> 
> I need to know if I add or remove an order, as well as if an order
> changes...
> 
> Just wondering if there is an easy solution.
>

 

 



RE: [flexcoders] Re: Flex Efficiency

2008-07-17 Thread Alex Harui
File a bug with a test case

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jamie S
Sent: Thursday, July 17, 2008 4:47 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Flex Efficiency

 

I have found that the mx.effects classes are very CPU intensive. I
have a project in which I had to replace all of the Move and Fade
effects with my own because they wew causing the CPU ( especially on
Windows ) to choke.

Jamie

On Thu, Jul 17, 2008 at 7:46 AM, Alex Harui <[EMAIL PROTECTED]
 > wrote:
> Yes. A SWF will always have more overhead than a simple JPG or GIF
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of stldvd
> Sent: Thursday, July 17, 2008 7:11 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Re: Flex Efficiency
>
>
>
> Is this true regardless of whether you're loading the swfs as swfs
> (swfloader) or just as the source for image controls?
>
> --- In flexcoders@yahoogroups.com
 , "Alex Harui" <[EMAIL PROTECTED]> wrote:
>>
>> SWFs have the potential to do timeline animations and thus require
> more
>> player overhead that static images or event animated GIFs. I don't
> know
>> the limits off-hand even if there are any, but if you pile up 100 of
>> them on top of each other, I wouldn't expect it to render that well.
>> You want to add instances of classes, not whole SWFs. Look into how
>> modules work.
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com
 
> [mailto:flexcoders@yahoogroups.com
 ] On
>> Behalf Of Alen Balja
>> Sent: Saturday, June 21, 2008 9:13 PM
>> To: flexcoders@yahoogroups.com  
>> Subject: Re: [flexcoders] Flex Efficiency
>>
>>
>>
>> Thanks, Alex. Unfortunately that is the main problem as I let users
> add
>> graphics on the fly to create their artwork. And graphics are small
> swf
>> animations, really simple ones. How is adding swf's different in
> this
>> regard than adding jpegs, gifs or png's on the fly? Also is there a
>> limit set? Because after adding lots of them, some of them just
> start to
>> disappear and all I do is stack them with addChild(). Can we expect
> same
>> performance issues when adding lots of visual objects such as
> buttons,
>> canvases, etc...? If I add 100 simple swfs and 100 button controls,
> will
>> it behave the same?
>>
>>
>>
>>
>>
>> On Sun, Jun 22, 2008 at 3:37 AM, Alex Harui <[EMAIL PROTECTED]
>>  > wrote:
>>
>> There are no workarounds. Good design for Flash minimizes use of
>> resources. The profiler can help you tune things, but if you use
> lots
>> of SWFs you're going to pay a price. However, that may not be your
> main
>> problem, and the profiler can help you determine that.
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com


>
>> [mailto:flexcoders@yahoogroups.com
 
>  > ]
>> On Behalf Of Alen Balja
>> Sent: Saturday, June 21, 2008 3:57 AM
>> To: flexcoders@yahoogroups.com 

>
>> Subject: Re: [flexcoders] Flex Efficiency
>>
>>
>>
>> Alex, do you have any more info on the subject, especially what are
> the
>> workarounds? I too am using lots of really tiny and simple
> external swf
>> animations and performance is really really bad. If I remember
> correctly
>> it's much worse than Flash Player 7.
>>
>>
>>
>> The profiler will help you find inefficiencies in your app.
>>
>>
>>
>> Loading lots of SWFs is, of course, going to eat resources.
>>
>
> 

 



Re: [flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-17 Thread Josh McDonald
The .net Date stuff will work sensibly and probably just like Flash's, so
I'd start with copying their code and work from there :)

-Josh

On Thu, Jul 17, 2008 at 10:37 PM, Mark <[EMAIL PROTECTED]> wrote:

> I agree with you 100% Josh but the better ones want the all might $$
> and my company isn't willing to pay for it, it's just nice to have.
> So I need to find a free one or give it up.  But I'm not willing to
> do that just yet...  soon, but not yet.  :-)
>
> They do have have some pseudocode on the site but it really shows it
> using the DateTime in .Net.  And my understanding of that is that's
> built in so there's no convesions (although I could be wrong).
>
> -M
>
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]>
> wrote:
> >
> > Switch to a different web service, or call whoever provides it and
> get some
> > documentation :)
> >
> > What the hell is 1AD? We haven't been keeping nice records since
> like 200AD
> > or something.
> >
> > And do they count all the various leap seconds? What about that
> time when
> > some pope rejigged the calendar and we disappeared like 13 days or
> > something?
> >
> > Anybody proving information of such a monstrously non-standard
> fashion
> > should also be providing some serious documentation and/or
> pseudocode.
> >
> > -Josh
> >
> > --
> > "Therefore, send not to know For whom the bell tolls. It tolls for
> thee."
> >
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Dates Display Wrong on Random Clients?

2008-07-17 Thread Josh McDonald
OK no worries. That's what we do here (setting times to 12 on the way in and
out of the service). There's a SOAP date type (as opposed to dateTime), but
we try not to use it because Xfire produces them incorrectly, and Flex's
parser isn't robust enough to handle the rubbish data we get from Xfire :)

The reason I was asking about which versions is just because Flex 2 had a
bug and couldn't parse timezones.

What you have is bascially a business problem unfortunately, the computers
are doing what they do: recording time in an accurate way. I'd suggest the
"clean" fix is that when you need a client in timezone X to see a time as it
is in timezone Y (the server / business), you can either include the
server's timezone offset in your response (nicer), or parse the date
yourself ignoring the timezone info (seems kludgey to me).

-Josh

On Fri, Jul 18, 2008 at 2:56 AM, javadmanx <[EMAIL PROTECTED]> wrote:

> I'm using version 3 of Flex SDK. I did find a fix, not sure if it's
> the right one. I found that the some clients had enough time offset
> that it would change there date back on day. This was due to the fact
> I'm using a date object, but not using the time part. So I had times
> set to 0. I simple moved all times to 12 and that's it. It's not an
> unwanted feature, just one I'm not using because of the local nature
> of this application. Let me know if you have suggestions on better
> handling this. I'm new with Flex. Thanks.
>
> --- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
> >
> > What version of Flex are you using, what format is the date when it goes
> > into text, and how are you getting the results back? Have you
> checked the
> > text results coming from the server using something like Charles?
> >
> > I don't have any experience with Blaze, but plenty with Flex's
> (occasionally
> > dodgey) Date parsing code so I can probably help you out.
> >
> >
> > :: 0437 221 380 :: [EMAIL PROTECTED]
> >
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> Links
>
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


RE: [flexcoders] Display XML in DataGrid

2008-07-17 Thread Tracy Spratt
WebService XML tends to have namespace issues.

 

Try adding this at the instance scope level:

default xml namespace = "http://simpaq.com/service";; 

 

Tracy



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gabsaga
Sent: Thursday, July 17, 2008 4:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Display XML in DataGrid

 


I have the following XML being returned to my Flex application. How can
parse
it so that it displays in a DataGrid?

I was able to get the XML to display in a textarea by using the
following
code:



http://simpaq.com/service
 "
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
 "
xmlns:xsd="http://www.w3.org/2001/XMLSchema
 "
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance
 ">

http://dto.simpaq.com 
">
http://dto.simpaq.com 
">[EMAIL PROTECTED] 

http://dto.simpaq.com 
">Freddy
http://dto.simpaq.com 
">Colmbs
http://dto.simpaq.com 
">555-897-9855


http://dto.simpaq.com 
">
http://dto.simpaq.com 
">[EMAIL PROTECTED] 

http://dto.simpaq.com 
">John
http://dto.simpaq.com 
">Doe
http://dto.simpaq.com 
">555-611-0081


http://dto.simpaq.com
 ">
http://dto.simpaq.com 
">[EMAIL PROTECTED] 

http://dto.simpaq.com
 ">Mary
http://dto.simpaq.com 
">Jane
http://dto.simpaq.com 
">555-209-4389


http://dto.simpaq.com
 ">
http://dto.simpaq.com 
">[EMAIL PROTECTED] 

http://dto.simpaq.com
 ">Cow
http://dto.simpaq.com 
">Boy
http://dto.simpaq.com 
">555-298-9455



I tried the following to get it to display in a DataGrid but it didn't
work.







 
 


Any help will be greatly appreciated. 

Thanks.

Gabsaga
-- 
View this message in context:
http://www.nabble.com/Display-XML-in-DataGrid-tp18517227p18517227.html


Sent from the FlexCoders mailing list archive at Nabble.com.

 



Re: [flexcoders] Re: Comparing two array collections

2008-07-17 Thread Sid Maskit
Maybe somebody else will have one, but I am not seeing a simple way to do this 
in a more sophisticated manner. This leads me to the following question: Are 
you experiencing performance problems? If not, I would suggest coding what 
works, and not worrying about the overhead involved in a somewhat brute force 
approach. If you start encountering performance problems, and identify this 
part of the code as where the problem lies, then it might be worth putting in 
the additional work to develop a more subtle solution.




- Original Message 
From: tchredeemed <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 17, 2008 1:13:48 PM
Subject: [flexcoders] Re: Comparing two array collections


Just an update, I know I can pass both into a function that does the
following:

checkForEquality( a:AC, b:AC ):Boolean {
if( a.length != b.length ) return false;

loop through each item
if an item differs, return false;

return true;
}

however, I was hoping for a solution with less overhead.

--- In [EMAIL PROTECTED] ups.com, "tchredeemed" <[EMAIL PROTECTED] > wrote:
>
> How would you go about comparing two array collections?
> 
> Each array collection is populated with items of an ADT ("Order", to
> be exact).
> 
> If I do .toString() comparisons, it only appears as different if I add
> or remove an "Order", because the .toString() shows up as "[object
> Order], [object Order], etc.."
> 
> I need to know if I add or remove an order, as well as if an order
> changes...
> 
> Just wondering if there is an easy solution.
>




  

Re: [flexcoders] Re: Flex Efficiency

2008-07-17 Thread Jamie S
I have found that the mx.effects classes are very CPU intensive. I
have a project in which I had to replace all of the Move and Fade
effects with my own because they wew causing the CPU ( especially on
Windows ) to choke.

Jamie

On Thu, Jul 17, 2008 at 7:46 AM, Alex Harui <[EMAIL PROTECTED]> wrote:
> Yes.  A SWF will always have more overhead than a simple JPG or GIF
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of stldvd
> Sent: Thursday, July 17, 2008 7:11 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex Efficiency
>
>
>
> Is this true regardless of whether you're loading the swfs as swfs
> (swfloader) or just as the source for image controls?
>
> --- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>>
>> SWFs have the potential to do timeline animations and thus require
> more
>> player overhead that static images or event animated GIFs. I don't
> know
>> the limits off-hand even if there are any, but if you pile up 100 of
>> them on top of each other, I wouldn't expect it to render that well.
>> You want to add instances of classes, not whole SWFs. Look into how
>> modules work.
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
>> Behalf Of Alen Balja
>> Sent: Saturday, June 21, 2008 9:13 PM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Flex Efficiency
>>
>>
>>
>> Thanks, Alex. Unfortunately that is the main problem as I let users
> add
>> graphics on the fly to create their artwork. And graphics are small
> swf
>> animations, really simple ones. How is adding swf's different in
> this
>> regard than adding jpegs, gifs or png's on the fly? Also is there a
>> limit set? Because after adding lots of them, some of them just
> start to
>> disappear and all I do is stack them with addChild(). Can we expect
> same
>> performance issues when adding lots of visual objects such as
> buttons,
>> canvases, etc...? If I add 100 simple swfs and 100 button controls,
> will
>> it behave the same?
>>
>>
>>
>>
>>
>> On Sun, Jun 22, 2008 at 3:37 AM, Alex Harui <[EMAIL PROTECTED]
>>  > wrote:
>>
>> There are no workarounds. Good design for Flash minimizes use of
>> resources. The profiler can help you tune things, but if you use
> lots
>> of SWFs you're going to pay a price. However, that may not be your
> main
>> problem, and the profiler can help you determine that.
>>
>>
>>
>> 
>>
>> From: flexcoders@yahoogroups.com 
>> [mailto:flexcoders@yahoogroups.com
>  ]
>> On Behalf Of Alen Balja
>> Sent: Saturday, June 21, 2008 3:57 AM
>> To: flexcoders@yahoogroups.com 
>> Subject: Re: [flexcoders] Flex Efficiency
>>
>>
>>
>> Alex, do you have any more info on the subject, especially what are
> the
>> workarounds? I too am using lots of really tiny and simple
> external swf
>> animations and performance is really really bad. If I remember
> correctly
>> it's much worse than Flash Player 7.
>>
>>
>>
>> The profiler will help you find inefficiencies in your app.
>>
>>
>>
>> Loading lots of SWFs is, of course, going to eat resources.
>>
>
> 


Re: [flexcoders] Re: HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-17 Thread Josh McDonald
The problem with getting no data through is because you're using a
non-dynamic object. Use:

var params : Object =
{
   paramName: paramValue,
   param2Name: param2Value
};

The reason is that the service code uses something like:

for(var key:* in params)
{
  request.addParam(key, params[key]);
}

And doesn't use reflection.

Fixed fields (those defined in non-dynamic classes) don't show up in for-in
loops.

More info:

http://livedocs.adobe.com/flex/3/langref/statements.html#for..in
http://livedocs.adobe.com/flex/3/langref/statements.html#for_each..in

-Josh

On Fri, Jul 18, 2008 at 5:00 AM, Tracy Spratt <[EMAIL PROTECTED]> wrote:

>  To repeat, sending data to the server using the default contentType with
> name=value pairs in a standard Object is easy.  Do you have a reason to look
> for a different way?  The UI and bindings should not be relevant to this
> issue.
>
> Tracy
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *pbrendanc
> *Sent:* Thursday, July 17, 2008 2:17 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Re: HTTP Service Send Requests with Parameter
> Object - 405 Errors?
>
>
>
> Since I'm not binding the data to any visible fields i want to handle
> this in as - so I'd like to understand what does/doesn't work using as -
> I like to use code behind as much as possible.
>
> BTW - I did resolve my 405 error as an IIS issue - however I'm not
> seeing the data defined in my parameter object in the http request (on
> the server side). (I'll post a separate message on this)
>
> Patrick
>
> --- In flexcoders@yahoogroups.com , "Tracy
> Spratt" <[EMAIL PROTECTED]> wrote:
> >
> > This is trivial with a normal mx:Object. Are you committed to sending
> a
> > custom object?
> >
> >
> >
> > Tracy
> >
> >
> >
> > 
> >
> > From: flexcoders@yahoogroups.com  [mailto:
> flexcoders@yahoogroups.com ]
> On
> > Behalf Of pbrendanc
> > Sent: Wednesday, July 16, 2008 5:44 PM
> > To: flexcoders@yahoogroups.com 
> > Subject: [flexcoders] HTTP Service Send Requests with Parameter Object
> -
> > 405 Errors?
> >
> >
> >
> > The Flex docs specify that the send object can contain either
> Name/Value
> > pairs of an XML object but I keep getting errors.
> > Is it possible to pass a (non null) parameter object in the HTTP
> service
> > send request - I keep getting HTTP405 (Method not allowed) errors. (If
> > I include these args as part of the query string everything works as
> > expected).
> >
> > (BTW - I'm using IIS - so is it possible that I need to change some
> IIS
> > settings?)
> >
> > // Define test object
> >
> > public class dummyobj
> > {
> > public var f1:String;
> > public var f2:String;
> > }
> >
> > public function useHttpService(parameters:Object):void {
> >
> > var httpSvc = new HTTPService();
> > httpSvc.url= "http://localhost:8080  ";
> > httpSvc.method = "POST";
> > httpSvc.contentType = "application/x-www-form-urlencoded";
> > httpSvc.addEventListener("result", httpResult);
> > httpSvc.addEventListener("fault", httpFault);
> >
> > // Load request parameters into an object
> > // to send with the request
> > var testVO:dummyobj = new dummyobj();
> > testVO.f1 = "aaa";
> > testVO.f2 = "bbb";
> > httpSvc.send(testVO); // gets 405
> > error
> >
> > TIA,
> > Patrick
> >
>
> 
>



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Custom DateChooser component.

2008-07-17 Thread Josh McDonald
Then I'd use a custom component instead of  itself, rather
than trying to shoehorn stuff into the existing DateField impl. It just
seems like you're setting yourself up for way more work than you need to is
all.

The order I'd try is:

1. Custom component instead of DateField, that contains in a hbhox both a
DateField and a (today) button. It doesn't *need* to be in the popup does
it?
2. Subclass DateField, intercept popup creation, attempt to add your button
to popup after its CreationComplete
3. Subclass DateChooser and override CreateChildren. Probably not too hard,
but I haven't poked into the source so don't quote me, and I've no idea what
effect it'll have on the skin.

-Josh

On Fri, Jul 18, 2008 at 4:36 AM, duncan_coutts <[EMAIL PROTECTED]>
wrote:

> Hi, thanks for the reply. The reason for not simply using the VBox
> solution is because the extended DateChooser must act as the date
> chooser which pops up when the user clicks the icon next to the text
> input field of a date field. The date field has a dropDownFactory
> property which can point to a factory which creates instances of the
> derived version of the DateChooser. However, the dropDownFactory must
> return a DateChooser (or Derived DateChooser). Therefore, I can see
> that I will need to create the derived dateChooser as an action script
> component.
>
>
>


-- 
"Therefore, send not to know For whom the bell tolls. It tolls for thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] how do I read a hexadecimal number value correctly?

2008-07-17 Thread Sid Maskit
I haven't worked with the Google API's, so this is a guess, but I suspect that 
Google is returning XML, and that you are doing some sort of parsing to convert 
some of the XML into the hexadecimal number. If that is correct, you ought to 
be able to use e4x to extract a string from the XML.



- Original Message 
From: ivo <[EMAIL PROTECTED]>
To: FlexCoders 
Sent: Thursday, July 17, 2008 2:47:09 PM
Subject: [flexcoders] how do I read a hexadecimal number value correctly?


Hello all,

I am using the Google APIs and am finding the IDs of the objects in Google are 
not getting translated correctly. When I request for a list of GData objects
I get back objects that in the debugger look like this:

id = mx.collections. ArrayCollection (@10781ec1) 
[0] = 5189229149115242496 [0x4803d86adb1dd800 ] 
dispatchResetEvent = true 
filterFunction = null 
length = 1 
list = mx.collections. ArrayList (@1048bb51) 
sort = null 
source = Array (@106e75b9) 

When I read the value of id[0] I get "518922914911524200 0"   .

What would be the correct way of handling this value? I am attempting to covert 
it into a string so I can build a different URL.

Thanks,

- Ivo



  

[flexcoders] Re: HTTPService receiving an array as parameter

2008-07-17 Thread pbrendanc
FYI - I'm seeing the same thing as you with my tests - it looks like
only the first array element is available on the server side
(There may be a Flex/HTTP limitation here - not sure ).

 var  ipArray:Array = [];
 var rowdata:String = '';
 rowdata ='1234';
  for (var j:int=0 ; j<3;j++) {  // populate
array -  adding  3  array elements
 ipArray.push(rowdata);
 }
 // Prepare to send
 testVO.ipArray= ipArray;
 httpSvc.send(testVO);//Am only only
seeing the first array element server side
 }

 public class testVO
 {
 public var ipArray:Array;
 }


--- In flexcoders@yahoogroups.com, "Guilherme Blanco"
<[EMAIL PROTECTED]> wrote:
>
> There's one thing you missed here
>
> I have this:
>
> var params:Object = new Object();
> params.viewId = _viewId;
>
> itemService.send(params);
>
>
> And it works ok...
>
>
> But If I try this:
>
> var params:Object = new Object();
>
> params.viewId = _viewId;
>
> params.foo = new Array();
> params.foo.push(1);
> params.foo.push(2);
> params.foo.push(3);
>
> service.send(params);
>
>
> It doesn't work.
> Currently I do like this:
>
> var params:Object = new Object();
>
> params.viewId = _viewId;
>
> params.foo_0 = 1;
> params.foo_1 = 2;
> params.foo_2 = 3;
>
> service.send(params);
>
>
> To be able to get it working... so... my question is if it's possible
> to send an array through service.
>
>
> []s,
>
>
> On Thu, Jul 17, 2008 at 3:36 PM, pbrendanc [EMAIL PROTECTED] wrote:
> > Guilherme,
> > I'm also testing this and have passed a parameter object as part of
my
> > HTTP request as follows:
> >
> > httpSvc.send(testVO);
> >
> > However I'm not seeing the parameter values in the HTTP request when
I
> > debug on the server side. However they do show up when I look at the
> > request using the Web development helper tool (very useful
tool/plugin
> > to monitor request/responses - here's a link):
> >
> > http://projects.nikhilk.net/WebDevHelper/
> >
> > I'm not even sure if this is supposed to work (the docs here might
be
> > wrong/misleading as they show that a parameter arg for send method -
> > however the Flex examples I've seen never populate the parameter
object
> > ). Like you I also want to pass an array via HTTP (my data is not
bound
> > to a form field so I don't want to use mxml).
> >
> > I may be missing something really obvious here - can't think what .
> > Perhaps it depends on the server side implementation of the
httpRequest
> > Object but i thought that was pretty standard.
> >
> > If anyone can jump in here with sample working code that would
really
> > help.
> >
> > Patrick
> >
> > --- In flexcoders@yahoogroups.com, "Guilherme Blanco"
> >
> > guilhermeblanco@ wrote:
> >>
> >> Hi guys,
> >>
> >>
> >> I'm interested if it's possible to send an array as a parameter
when
> >> doing an HTTP request.
> >> Curretly, we can directly do it:
> >>
> >> foo[]=1&foo[]=2&foo[]=3
> >>
> >> Most server side languages understand this as
> >>
> >> foo = Array(
> >> [0] = 1,
> >> [1] = 2,
> >> [2] = 3
> >> )
> >>
> >> I tried the same in Flex:
> >>
> >> var params:Object = new Object();
> >>
> >> params.foo = new Array();
> >> params.foo.push(1);
> >> params.foo.push(2);
> >> params.foo.push(3);
> >>
> >> service.send(params);
> >>
> >> But it doesn't work... I'm curious how can this be achieved in Flex
> >>
> >>
> >> Thanks in advance,
> >>
> >>
> >> Regards,
> >>
> >> --
> >> Guilherme Blanco - Web Developer
> >> CBC - Certified Bindows Consultant
> >> Cell Phone: +55 (16) 9166-6902
> >> MSN: guilhermeblanco@
> >> URL: http://blog.bisna.com
> >> Rio de Janeiro - RJ/Brazil
> >>
> >
> >
>
>
>
> --
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]
> URL: http://blog.bisna.com
> Rio de Janeiro - RJ/Brazil
>




[flexcoders] Re: flex3 swc bizness

2008-07-17 Thread [p e r c e p t i c o n]
nevermind...solved it...


On Thu, Jul 17, 2008 at 3:03 PM, [p e r c e p t i c o n] <
[EMAIL PROTECTED]> wrote:

> Hi Folks,
> what's the deal with swcs in flex3...in flex2 i simply add it to my lib
> path and type  and it works...
> how does this work in flexbuilder3 ???
> thanks
> percy
>


Re: [flexcoders] Re: flex testing

2008-07-17 Thread artur
how does Selenium differ from RIATest : http://riatest.com/

?

*artur :.*

- *www.artur.com*
- [EMAIL PROTECTED]
- *ph:646.797.3320*



Jarek Szczepanski wrote:
>
> --- In flexcoders@yahoogroups.com 
> , "phil swenson" <[EMAIL PROTECTED]>
> wrote:
> >
> > Any thoughts on testing the Flex UI? I tried FunFX, but it crashed
> > immediately after lanching safari (I'm on a mac).
> >
> > After looking at FlexSPY, it seems to me that it should be possible
> to do
> > flex testing without native code.
> >
> > any thoughts?
> >
>
> http://seleniumflexapi.sourceforge.net/ 
> 
> it's in early stage of development but it's very promising...
>
> Jarek
>
>  


[flexcoders] Re: Is there a way to set the starting index of a DataGrid

2008-07-17 Thread jlopes151
That's what I was looking for thanks.

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> 
wrote:
>
> You can use an e4x expression to leave off the first "row".  
*Something*
> like:
> 
> var xlData:XMLList = xmlData.children().(childIndex()>0);
> 
>  
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Alex Harui
> Sent: Thursday, July 17, 2008 10:50 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Is there a way to set the starting index 
of a
> DataGrid
> 
>  
> 
> You might be able to customize a custom collection from my blog
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of jlopes151
> Sent: Thursday, July 17, 2008 5:51 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Is there a way to set the starting index of a
> DataGrid
> 
>  
> 
> What I want is to load data from an xml file, skipping over the 
first 
> node. I want to use the first node of the xml data as header info, 
> were the rest of the file contians the data grid data.
> 
> Thanks for any help
>




[flexcoders] Display XML in DataGrid

2008-07-17 Thread gabsaga

I have the following XML being returned to my Flex application. How can parse
it so that it displays in a DataGrid?

I was able to get the XML to display in a textarea by using the following
code:



http://simpaq.com/service";
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
  
http://dto.simpaq.com";>
http://dto.simpaq.com";>[EMAIL PROTECTED]
http://dto.simpaq.com";>Freddy
http://dto.simpaq.com";>Colmbs
http://dto.simpaq.com";>555-897-9855
  
  
http://dto.simpaq.com";>
http://dto.simpaq.com";>[EMAIL PROTECTED]
http://dto.simpaq.com";>John
http://dto.simpaq.com";>Doe
http://dto.simpaq.com";>555-611-0081
  
  
http://dto.simpaq.com";>
http://dto.simpaq.com";>[EMAIL PROTECTED]
http://dto.simpaq.com";>Mary
http://dto.simpaq.com";>Jane
http://dto.simpaq.com";>555-209-4389
  
  
http://dto.simpaq.com";>
http://dto.simpaq.com";>[EMAIL PROTECTED]
http://dto.simpaq.com";>Cow
http://dto.simpaq.com";>Boy
http://dto.simpaq.com";>555-298-9455
  



I tried the following to get it to display in a DataGrid but it didn't work.







   
   



Any help will be greatly appreciated. 

Thanks.

Gabsaga
-- 
View this message in context: 
http://www.nabble.com/Display-XML-in-DataGrid-tp18517227p18517227.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] Problem with showing dynamic combobox

2008-07-17 Thread Guilherme Blanco
try the labelField as label
and put the "please select" as prompt.

Cheers,

On Thu, Jul 17, 2008 at 5:07 PM, timgerr <[EMAIL PROTECTED]> wrote:
> Hello all,
> I an running into a problem, when I create a Actionscript ComboBox
> like this:
>
> [Bindable]
> public var respArray: Array = [
> {label:""},{label:"Yes"},{label:"No"},{label:"N/A"},{label:"No
> Responce"}];
>
> var cb1:ComboBox = new ComboBox();
> cb1.id = 'cb1me';
> cb1.dataProvider = respArray;
> addChild(cb1);
>
> All is displayed correctly
>
> But when I add the labelField like this
> var cb1:ComboBox = new ComboBox();
> cb1.id = 'cb1me';
> cb1.dataProvider = respArray;
> cb1.labelField = 'Please Select';
> addChild(cb1);
>
> When this is displayed the ComboBox displays:
> [Object Object]
> [Object Object]
> [Object Object]
> [Object Object]
>
> Why is the labelField messing up my array?
>
> Thanks,
> timgerr
>
> 



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


Re: [flexcoders] Re: HTTPService receiving an array as parameter

2008-07-17 Thread Guilherme Blanco
There's one thing you missed here

I have this:

var params:Object = new Object();
params.viewId = _viewId;

itemService.send(params);


And it works ok...


But If I try this:

var params:Object = new Object();

params.viewId = _viewId;

params.foo = new Array();
params.foo.push(1);
params.foo.push(2);
params.foo.push(3);

service.send(params);


It doesn't work.
Currently I do like this:

var params:Object = new Object();

params.viewId = _viewId;

params.foo_0 = 1;
params.foo_1 = 2;
params.foo_2 = 3;

service.send(params);


To be able to get it working... so... my question is if it's possible
to send an array through service.


[]s,


On Thu, Jul 17, 2008 at 3:36 PM, pbrendanc <[EMAIL PROTECTED]> wrote:
> Guilherme,
> I'm also testing this and have passed a parameter object as part of my
> HTTP request as follows:
>
> httpSvc.send(testVO);
>
> However I'm not seeing the parameter values in the HTTP request when I
> debug on the server side. However they do show up when I look at the
> request using the Web development helper tool (very useful tool/plugin
> to monitor request/responses - here's a link):
>
> http://projects.nikhilk.net/WebDevHelper/
>
> I'm not even sure if this is supposed to work (the docs here might be
> wrong/misleading as they show that a parameter arg for send method -
> however the Flex examples I've seen never populate the parameter object
> ). Like you I also want to pass an array via HTTP (my data is not bound
> to a form field so I don't want to use mxml).
>
> I may be missing something really obvious here - can't think what .
> Perhaps it depends on the server side implementation of the httpRequest
> Object but i thought that was pretty standard.
>
> If anyone can jump in here with sample working code that would really
> help.
>
> Patrick
>
> --- In flexcoders@yahoogroups.com, "Guilherme Blanco"
>
> <[EMAIL PROTECTED]> wrote:
>>
>> Hi guys,
>>
>>
>> I'm interested if it's possible to send an array as a parameter when
>> doing an HTTP request.
>> Curretly, we can directly do it:
>>
>> foo[]=1&foo[]=2&foo[]=3
>>
>> Most server side languages understand this as
>>
>> foo = Array(
>> [0] = 1,
>> [1] = 2,
>> [2] = 3
>> )
>>
>> I tried the same in Flex:
>>
>> var params:Object = new Object();
>>
>> params.foo = new Array();
>> params.foo.push(1);
>> params.foo.push(2);
>> params.foo.push(3);
>>
>> service.send(params);
>>
>> But it doesn't work... I'm curious how can this be achieved in Flex
>>
>>
>> Thanks in advance,
>>
>>
>> Regards,
>>
>> --
>> Guilherme Blanco - Web Developer
>> CBC - Certified Bindows Consultant
>> Cell Phone: +55 (16) 9166-6902
>> MSN: [EMAIL PROTECTED]
>> URL: http://blog.bisna.com
>> Rio de Janeiro - RJ/Brazil
>>
>
> 



-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


[flexcoders] Re: Custom DateChooser component.

2008-07-17 Thread duncan_coutts
Hi, thanks for the reply. The reason for not simply using the VBox
solution is because the extended DateChooser must act as the date
chooser which pops up when the user clicks the icon next to the text
input field of a date field. The date field has a dropDownFactory
property which can point to a factory which creates instances of the
derived version of the DateChooser. However, the dropDownFactory must
return a DateChooser (or Derived DateChooser). Therefore, I can see
that I will need to create the derived dateChooser as an action script
component.

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Why bother extending it? Why not just build an MXML component
consisting of
> a DateChooser and a "Today" button in a vbox? Then either create
methods in
> your component that set values that the DateChooser binds to, or use
> "customComponentInstance.dateChooser.selectedDate" or something
similar to
> access it? That's what I did when I wanted to add a "null this
field" button
> to DateField.
> 
> -Josh
> 
> On Wed, Jul 16, 2008 at 1:12 AM, duncan_coutts <[EMAIL PROTECTED]> wrote:
> 
> > Hi there. I am required to build a extended version of the DateChooser
> > component in Flex 3. The main focus of this extended version of the
> > control is that it have a "Today" button placed underneath the
> > calender but still within the bounds of the date chooser component. My
> > efforts so far consist of adding a button inside a VBox using the
> > create children method. However, the button encroches the calander
> > space on the datechooser component. Does anyone have any idea how I
> > can do this?
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




Re: [flexcoders] Re: DataTip targets

2008-07-17 Thread Richard Rodseth
Oops. I think you're right. What I suggested won't work for a column,
where the item renderer is the thing drawing the column. I don't have
an answer for you off the top of my head, I'm afraid.

On Thu, Jul 17, 2008 at 2:57 PM, shafram <[EMAIL PROTECTED]> wrote:
>
> Hi thanks, yes I've set showDataTipTargets="true", but this will only
> cause the targets to appear when the user mouses over the graph. Is
> there a way to always have it appear? And is it possible to have it
> appear for bars that don't render in the graph?
>
> I'm trying to find the tip renderer for the ColumnSeries but I don't
> see it. Can you give an example?
>
> Thanks.
>
> --- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> 
> wrote:
>>
>> Have you tried showDataTipTargets="true" ?
>>
>> At the series level, you can also customize the tip renderer:
>>
>> stroke="{tipStroke}"
>> fill="{tipFill}"
>> radius="4" itemRenderer="mx.charts.renderers.CircleItemRenderer"
>>
>>
>> On Thu, Jul 17, 2008 at 2:19 PM, shafram <[EMAIL PROTECTED]> wrote:
>> > Hi, I've been searching around for any example to do this but I
>> > haven't found anything so far
>> >
>> > I have a Cartesian chart with a column series. Some of the bars don't
>> > render on the chart because their values are very small. However
>> > showing the datatips for these bars is still useful. The only problem
>> > is that there is no indication that there's a datatip unless the user
>> > rolls their mouse over the graph where they may see a datatip for one
>> > of the very small bars.
>> >
>> > My question is, is it possible to always show just the data tip target
>> > for the bars that don't render on the graph?
>> >
>> > Thanks
>> >
>> >
>>
>
> 


Re: [flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Scott
Let me correct that last statement...

 

I do -not- see the acUser in the control-space selection items.  I see
the original named variable and other functions but I also see some
functions that no longer exist.  Why isn't Flex updating that list?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Scott
Sent: Thursday, July 17, 2008 5:24 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] arrayCollection event
COLLECTION_CHANGE issues?

 

When I do that I get an error that the property is not defined.  I can
do the control space and see that FB is seeing all of the items along
the path of GlobalVars.instance.acUser.source but the instant I save it
the error "access of possibly undefined property accuser through a
reference with static type com.cfgenerated.models.GlobalVars.

 

This is my .as singleton class:

  public class GlobalVars

  {

private static var classInstance:GlobalVars = null;

private static var constructorLocked:Boolean = true;



public var objUser:Object = new Object();



public function GlobalVars()

{

  if( constructorLocked )

  {

throw new Error( "Cannot open another instance
of GVs" );

  }

}

public static function get instance():GlobalVars

{

  if( classInstance == null )

  {

constructorLocked = false;

classInstance = new GlobalVars();

constructorLocked = true;

  }

  return classInstance;

}

}

 

And this is my call to create the singleton instance:

[Bindable] public var acUser:ArrayCollection = new ArrayCollection();

 

Any ideas?

 

 Thanks

  sj

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Gold
Sent: Thursday, July 17, 2008 8:45 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] arrayCollection event
COLLECTION_CHANGE issues?

 

You're initializing the acUser collection when the singleton is created
and adding a listener, which is fine. However, when you're getting the
results back, you're changing the acUser collection reference to a
different ArrayCollection

GlobalVars.instance.acUser = event.result as ArrayCollection;

So your singleton still has a listener registered on the original
ArrayCollection, but your singleton model now contains a reference to
the new ArrayCollection returned from the service. To keep your
references pointing to the same ArrayCollection and still get the
COLLECTION_CHANGE, you could play games like this:

GlobalVars.instance.acUser.source =
ArrayCollection(event.result).source;
GlobalVars.instance.acUser.refresh();

In that you're swapping out the underlying Array the collection is
wrapped around, and then calling refresh will dispatch teh
COLLECTION_CHANGE, firing any bindings and calling your listener code.

On Thu, Jul 17, 2008 at 8:43 AM, Scott <[EMAIL PROTECTED]
 > wrote:

First thanks for all your help guys.  I'm making nice strides learning
this language quickly.

 

I'm working with events now.  I created an arrayCollection to capture a
query from coldfusion.  I have the data being dumped into this variable
just fine (I can do a combobox on it and see all of it).  Now what I
want to do is set some variables based on these items.  I created an
event to watch the arrayCollection which would run a function to reset
the variables automatically.  Here's what I did:

 

 

This is all within a singleton class...

 

Created the [Bindable]acUser array collection

[Bindable] public var acUser:ArrayCollection = new ArrayCollection();

 

Created an init() function to set up the event handler:

  private function init():void

  { 

  acUser.addEventListener(CollectionEvent.COLLECTION_CHANGE,
acUser_collectionChange);

  }

 

Created a function to set the variables if the event hit:

  private function
acUser_collectionChange(event:CollectionEvent):void

  { 

strEMail =
ObjectUtil.toString(acUser.getItemAt(0).strEMail);   (not sure if this
call is correct -yet-)

trace(strEMail);

  }

 

Modified the header for the page to run the init() function

http://www.adobe.com/2006/mxml
 "

  creationComplete="init()"

  xmlns="*"

  xmlns:controllers="com.cfgenerated.controllers.*"

xmlns:login="com.cfgenerated.views.login.*"

  layout="absolute"

  currentState="NotLoggedIn">

 

 

This should be all I need to do, right?

 

When I push the data into the singleton:

 

GlobalVars.instance.acUser = event.result as ArrayCollection;

 

The event does not fire.  Any ideas?

 

 

TIA!

 


-- 
This

[flexcoders] flex3 swc bizness

2008-07-17 Thread [p e r c e p t i c o n]
Hi Folks,
what's the deal with swcs in flex3...in flex2 i simply add it to my lib path
and type  and it works...
how does this work in flexbuilder3 ???
thanks
percy


[flexcoders] Re: Google CodeJam

2008-07-17 Thread nathanpdaniel
http://code.google.com/codejam - although it's too late to get into it 
this year... :(

--- In flexcoders@yahoogroups.com, "pbrendanc" <[EMAIL PROTECTED]> wrote:
>
> Interested in more info on this - do you have a link?
> 
> 
> --- In flexcoders@yahoogroups.com, "nathanpdaniel"  wrote:
> >
> > Any other coders in Google CodeJam using Flex? :D  I passed the
> > qualifying round last night.  I only ran one test (all I need to do 
to
> > move on) - after which I realized we can run all 3 available.  
Ooops!
> > But back to the question - anyone else out there participating in 
the
> > event using Flex? :D
> >
>




Re: [flexcoders] arrayCollection event COLLECTION_CHANGE issues?

2008-07-17 Thread Scott
When I do that I get an error that the property is not defined.  I can
do the control space and see that FB is seeing all of the items along
the path of GlobalVars.instance.acUser.source but the instant I save it
the error "access of possibly undefined property accuser through a
reference with static type com.cfgenerated.models.GlobalVars.

 

This is my .as singleton class:

  public class GlobalVars

  {

private static var classInstance:GlobalVars = null;

private static var constructorLocked:Boolean = true;



public var objUser:Object = new Object();



public function GlobalVars()

{

  if( constructorLocked )

  {

throw new Error( "Cannot open another instance
of GVs" );

  }

}

public static function get instance():GlobalVars

{

  if( classInstance == null )

  {

constructorLocked = false;

classInstance = new GlobalVars();

constructorLocked = true;

  }

  return classInstance;

}

}

 

And this is my call to create the singleton instance:

[Bindable] public var acUser:ArrayCollection = new ArrayCollection();

 

Any ideas?

 

 Thanks

  sj

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Gold
Sent: Thursday, July 17, 2008 8:45 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] arrayCollection event
COLLECTION_CHANGE issues?

 

You're initializing the acUser collection when the singleton is created
and adding a listener, which is fine. However, when you're getting the
results back, you're changing the acUser collection reference to a
different ArrayCollection

GlobalVars.instance.acUser = event.result as ArrayCollection;

So your singleton still has a listener registered on the original
ArrayCollection, but your singleton model now contains a reference to
the new ArrayCollection returned from the service. To keep your
references pointing to the same ArrayCollection and still get the
COLLECTION_CHANGE, you could play games like this:

GlobalVars.instance.acUser.source =
ArrayCollection(event.result).source;
GlobalVars.instance.acUser.refresh();

In that you're swapping out the underlying Array the collection is
wrapped around, and then calling refresh will dispatch teh
COLLECTION_CHANGE, firing any bindings and calling your listener code.

On Thu, Jul 17, 2008 at 8:43 AM, Scott <[EMAIL PROTECTED]
 > wrote:

First thanks for all your help guys.  I'm making nice strides learning
this language quickly.

 

I'm working with events now.  I created an arrayCollection to capture a
query from coldfusion.  I have the data being dumped into this variable
just fine (I can do a combobox on it and see all of it).  Now what I
want to do is set some variables based on these items.  I created an
event to watch the arrayCollection which would run a function to reset
the variables automatically.  Here's what I did:

 

 

This is all within a singleton class...

 

Created the [Bindable]acUser array collection

[Bindable] public var acUser:ArrayCollection = new ArrayCollection();

 

Created an init() function to set up the event handler:

  private function init():void

  { 

  acUser.addEventListener(CollectionEvent.COLLECTION_CHANGE,
acUser_collectionChange);

  }

 

Created a function to set the variables if the event hit:

  private function
acUser_collectionChange(event:CollectionEvent):void

  { 

strEMail =
ObjectUtil.toString(acUser.getItemAt(0).strEMail);   (not sure if this
call is correct -yet-)

trace(strEMail);

  }

 

Modified the header for the page to run the init() function

http://www.adobe.com/2006/mxml
 "

  creationComplete="init()"

  xmlns="*"

  xmlns:controllers="com.cfgenerated.controllers.*"

xmlns:login="com.cfgenerated.views.login.*"

  layout="absolute"

  currentState="NotLoggedIn">

 

 

This should be all I need to do, right?

 

When I push the data into the singleton:

 

GlobalVars.instance.acUser = event.result as ArrayCollection;

 

The event does not fire.  Any ideas?

 

 

TIA!

 

 


-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is

believed to be clean. 


[flexcoders] Re: DataTip targets

2008-07-17 Thread shafram

Hi thanks, yes I've set showDataTipTargets="true", but this will only
cause the targets to appear when the user mouses over the graph. Is
there a way to always have it appear? And is it possible to have it
appear for bars that don't render in the graph?

I'm trying to find the tip renderer for the ColumnSeries but I don't
see it. Can you give an example?

Thanks.


--- In flexcoders@yahoogroups.com, "Richard Rodseth" <[EMAIL PROTECTED]> wrote:
>
> Have you tried showDataTipTargets="true" ?
> 
> At the series level, you can also customize the tip renderer:
> 
> stroke="{tipStroke}"
> fill="{tipFill}"
> radius="4"  itemRenderer="mx.charts.renderers.CircleItemRenderer"
> 
> 
> On Thu, Jul 17, 2008 at 2:19 PM, shafram <[EMAIL PROTECTED]> wrote:
> > Hi, I've been searching around for any example to do this but I
> > haven't found anything so far
> >
> > I have a Cartesian chart with a column series. Some of the bars don't
> > render on the chart because their values are very small. However
> > showing the datatips for these bars is still useful. The only problem
> > is that there is no indication that there's a datatip unless the user
> > rolls their mouse over the graph where they may see a datatip for one
> > of the very small bars.
> >
> > My question is, is it possible to always show just the data tip target
> > for the bars that don't render on the graph?
> >
> > Thanks
> >
> >
>




RE: [flexcoders] Array reference vs values

2008-07-17 Thread Gordon Smith
I think this has been explained several times already in this thread,
but you don't seem to have understood so I'll try explaining with some
ASCII art. Before assigning timeArr[2] = null you have

 

person.lunch > 

  ^

  |

timeArr[2] ---

 

After assigning timeArr[2] = null you have

 

person.lunch > 

 

timeArr[2] --> 

 

You are not nulling the Date instance. (I don't even know what that
would mean.) You are nulling the 2nd element in the timeArr Array which
referred to the Date instance.

 

Basically, AS reference are like C++ pointers, not like C++ references.

 

If you are trying to represent a sequence of times, don't use five vars
in Person named wakeup, breakfast, lunch, dinner, and bedtime. Use a
single Array with five elements

 

var times:Array /* of Date /;

 

and use the constants

 

static const WAKEUP:int = 0;

static const BREAKFAST:int = 1;

static const LUNCH:int = 2;

static const DINNER:int = 3;

static const BEDTIME:int = 4;

 

to access them as times[LUNCH], etc.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Darren Houle
Sent: Wednesday, July 16, 2008 6:56 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Array reference vs values

 

Josh
 
Yes, what you're describing is exactly what I described and is, in fact,
what it happening... but to say I don't ever need to do this?  Well...
yes... I need to do this... and it has nothing to do with the garbage
collector.
 
Here, let me explain in another way
 
I have a custom object... lets say it's a Person object.  It has various
properties, but several are Date types.  These are all consecutive, like
a workflow, and I want to be able to address them in order via an
array... like this...
 
var person : Person = new Person();
 
person.wakeup = new Date();
person.breakfast = new Date();
person.lunch = new Date();
person.dinner = null;
person.bedtime = null;
 
var timeArr : Array = new Array();
 
timeArr[0] = person.wakeup;
timeArr[1] = person.breakfast;
timeArr[2] = person.lunch;
timeArr[3] = person.dinner;
timeArr[4] = person.bedtime;
 
 
Then some other code figures out where we are in the flow of the day's
events...
 
var status : int;
if (some criteria)
  {  event = 2;  }
 
But I determine lunch hasn't actually happened yet, so it shouldn't have
a Date yet.  I need to blank out this value that was previously set in
the Person object...
 
if (some criteria)
 {  timeArr[event] = null;  }
 
But since these references don't seem to propogate backwards, nulling
one of the array elements doesn't affect the original property.  That's
the *whole purpose* of reference vs value... a reference is a pointer to
memory space... so if I null that memory space it should affect all the
vars pointing to that memory space.
 
Does that make more sense?

Darren







To: flexcoders@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Thu, 17 Jul 2008 11:30:29 +1000
Subject: Re: [flexcoders] Array reference vs values



When you do this:

  var date:Date = new Date();

You're creating an instance of Date and a reference to it named "date".

When you do this:

  var ref:Date = arr[0] as Date;

You're creating another reference to the same instance, this time your
reference is named "ref". So when you set ref = null, you're making
"ref" point to nothing. "date" and "arr[0]" remain unchanged. You don't
need to, nor can you remove the date instance created above. That's the
job of the garbage collector.

-Josh

On Thu, Jul 17, 2008 at 11:25 AM, Darren Houle <[EMAIL PROTECTED]
 > wrote:

This might be a basic AS question, but I encountered it building a
Flex app, so...

I create a Date

   var date:Date = new Date();

I create an Array

   var arr:Array = new Array();

I set the first element of the array equal to the date

   arr[0] = date;

I create another date variable that refers to the first array element

   var ref:Date = arr[0] as Date;

if I trace("date="+date+", arr[0]="+arr[0]+", ref="+ref) I get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16 21:04:45
GMT-0400 2008, ref=Wed Jul 16 21:04:45 GMT-0400 2008

Now I null out the ref variable

   ref=null;

Since AS uses references instead of values I would expect to null out
the original date, but no...

If I trace("date="+date+", arr[0]="+arr[0]+", ref="+ref) I now get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16 21:04:45
GMT-0400 2008, ref=null

I thought everything was a reference in AS?  Shouldn't nulling ref
also null arr[0] which would null out date?

Ultimately... I have a custom object that has several fields each
containing a Date.  I create an array and make each element in the
array = each Date in the custom obj.  I need to be able to null an
array element and have it carry backwar

[flexcoders] how do I read a hexadecimal number value correctly?

2008-07-17 Thread ivo
Hello all,

I am using the Google APIs and am finding the IDs of the objects in Google are 
not getting translated correctly. When I request for a list of GData objects
I get back objects that in the debugger look like this:

id = mx.collections.ArrayCollection (@10781ec1)   
[0] = 5189229149115242496 [0x4803d86adb1dd800]
dispatchResetEvent = true
filterFunction = null
length = 1 
list = mx.collections.ArrayList (@1048bb51)
sort = null
source = Array (@106e75b9)

When I read the value of id[0] I get "5189229149115242000"   .

What would be the correct way of handling this value? I am attempting to covert 
it into a string so I can build a different URL.

Thanks,

- Ivo


RE: [flexcoders] Re: Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Tracy Spratt
I ask because you haven't posted enough code to see what might be wrong.
I have two ideas, but there is no point in just guessing.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Tracy Spratt
Sent: Thursday, July 17, 2008 5:44 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Expanding Tree Node Based On Attribute
Match

 

Did you look at my example?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Thursday, July 17, 2008 5:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Expanding Tree Node Based On Attribute Match

 

--- In flexcoders@yahoogroups.com 
, "Jason" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy, that got me really close to wrapping this up. I was 
> able to find the node and isolate it, however the tree is not 
> expanding that node.
> 
> var topic:String = "Add Skill";
> var xmlListSearch:XMLList = xml.menuTree..folder.(attribute
("topic") 
> == topic);
> var foundNode:XML = xmlListSearch[0];
> 
> trace("xml: " + foundNode.toXMLString()); //traces the node I want: 
> 
> 
> navTree.expandItem(foundNode, true, true);//does not expand the 
node 
> found above
> 
> The id of the tree is indeed navTree. Not sure what's happening 
here.
> 
> Thanks in advance,
> 
> Jason
>

Any ideas anyone? I'm stumped! Thanks.

 



RE: [flexcoders] Array reference vs values

2008-07-17 Thread Gordon Smith
If you're trying to say that Array is passed by value, that's incorrect.
Array is passed by reference, just like Object.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Sherif Abdou
Sent: Wednesday, July 16, 2008 7:03 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Array reference vs values

 

I think you may be able to do what you are doing by using the ByteArray
class but I would wait for someone that knows more than me. The only
things that get passed by reference is any class that inherits from an
Object and Array is a native Flash player class in C++. 

 

- Original Message 
From: Sherif Abdou <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Wednesday, July 16, 2008 8:59:54 PM
Subject: Re: [flexcoders] Array reference vs values

If i remember correctly since I am mixing too much C++,ActionScript,
Coldfusion and learning them all the same time. Any of the primitive
stuff in Actionscript get passed only by value and not by reference so
you can't do what you are doing. 

 

- Original Message 
From: Darren Houle <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, July 16, 2008 8:55:33 PM
Subject: RE: [flexcoders] Array reference vs values

Josh
 
Yes, what you're describing is exactly what I described and is, in fact,
what it happening... but to say I don't ever need to do this?  Well...
yes... I need to do this... and it has nothing to do with the garbage
collector.
 
Here, let me explain in another way
 
I have a custom object... lets say it's a Person object.  It has various
properties, but several are Date types.  These are all consecutive, like
a workflow, and I want to be able to address them in order via an
array... like this...
 
var person : Person = new Person();
 
person.wakeup = new Date();
person.breakfast = new Date();
person.lunch = new Date();
person.dinner = null;
person.bedtime = null;
 
var timeArr : Array = new Array();
 
timeArr[0] = person.wakeup;
timeArr[1] = person.breakfast;
timeArr[2] = person.lunch;
timeArr[3] = person.dinner;
timeArr[4] = person.bedtime;
 
 
Then some other code figures out where we are in the flow of the day's
events...
 
var status : int;
if (some criteria)
  {  event = 2;  }
 
But I determine lunch hasn't actually happened yet, so it shouldn't have
a Date yet.  I need to blank out this value that was previously set in
the Person object...
 
if (some criteria)
 {  timeArr[event] = null;  }
 
But since these references don't seem to propogate backwards, nulling
one of the array elements doesn't affect the original property.  That's
the *whole purpose* of reference vs value... a reference is a pointer to
memory space... so if I null that memory space it should affect all the
vars pointing to that memory space.
 
Does that make more sense?

Darren







To: [EMAIL PROTECTED] ups.com
From: [EMAIL PROTECTED] com
Date: Thu, 17 Jul 2008 11:30:29 +1000
Subject: Re: [flexcoders] Array reference vs values



When you do this:

  var date:Date = new Date();

You're creating an instance of Date and a reference to it named "date".

When you do this:

  var ref:Date = arr[0] as Date;

You're creating another reference to the same instance, this time your
reference is named "ref". So when you set ref = null, you're making
"ref" point to nothing. "date" and "arr[0]" remain unchanged. You don't
need to, nor can you remove the date instance created above. That's the
job of the garbage collector.

-Josh

On Thu, Jul 17, 2008 at 11:25 AM, Darren Houle <[EMAIL PROTECTED] com
 > wrote:

This might be a basic AS question, but I encountered it building a
Flex app, so...

I create a Date

   var date:Date = new Date();

I create an Array

   var arr:Array = new Array();

I set the first element of the array equal to the date

   arr[0] = date;

I create another date variable that refers to the first array element

   var ref:Date = arr[0] as Date;

if I trace("date= "+date+", arr[0]="+arr[ 0]+", ref="+ref) I get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16 21:04:45
GMT-0400 2008, ref=Wed Jul 16 21:04:45 GMT-0400 2008

Now I null out the ref variable

   ref=null;

Since AS uses references instead of values I would expect to null out
the original date, but no...

If I trace("date= "+date+", arr[0]="+arr[ 0]+", ref="+ref) I now get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16 21:04:45
GMT-0400 2008, ref=null

I thought everything was a reference in AS?  Shouldn't nulling ref
also null arr[0] which would null out date?

Ultimately.. . I have a custom object that has several fields each
containing a Date.  I create an array and make each element in the
array = each Date in the custom obj.  I need to be able to null an
array element and have it carry backwards into the object and null
out the original Date.  Any idea

RE: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-17 Thread Gordon Smith
> you can't have one function to catch events for one type of component

> and another to catch a different component's events

 

You just do

 

if (target is Button)

   ...

else if (target is ComboBox)

   ...

 

BTW, dispatchEventHook is mx_internal, so use it at your own risk. It
could go away or behave differently in a future version of Flex.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Wednesday, July 16, 2008 10:26 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Is it possible to listen to *all* events
without hacking the SDK?

 

Oh snap! I learn something new everyday. Thanks for that tidbit.

I just looked up that function and it's actually a static function on
UIComponent, so you only get to set that once (ie you can't have one
function to catch events for one type of component and another to
catch a different component's events). Interesting stuff.

Doug

On Wed, Jul 16, 2008 at 9:10 PM, reflexactions <[EMAIL PROTECTED]
 > wrote:
> Well you can at least catch all events dispatched on a particular
> component, and without subclassing or patching.
>
> You assign a callback function to the dispatchEventHook property.
> It takes two params the event and the target and is called
> immediately prior to the actual dispatch.
>
> --- In flexcoders@yahoogroups.com
 , "Josh McDonald" <[EMAIL PROTECTED]>
wrote:
>>
>> Thanks Doug, I figured that'd be the answer. Not against monkey
> patching by
>> any means (we use a few atm to fix bugs in SOAP code), just wanted
> to check
>> first to see if there was a secret way to do it that I didn't know
> about
>> before I go and mess about with FlexSprite :)
>>
>> -Josh
>>
>> On Thu, Jul 17, 2008 at 1:41 PM, Doug McCune <[EMAIL PROTECTED]> wrote:
>>
>> > Is this your custom component or just any component you don't
> control?
>> > If it's yours you could override dispatchEvent to know whenever
> the
>> > component dispatches any event. Or you could override
> addEventListener
>> > to know whenever something adds an event listener.
>> >
>> > If it's not your custom component (ie you can't override anything)
>> > then you might be out of luck (other than going through and
> manually
>> > adding listeners for all possible strings you think the component
>> > might dispatch). But I don't think there is any way to know all
> the
>> > events that a component might dispatch in its lifetime. ALthough
> you
>> > could probably do a search on the FLex SDK for "dispatchEvent("
> and
>> > compile a full list of all events that all Flex SDK components
> will
>> > ever dispatch. I wonder how long that list is...
>> >
>> > The other thing to try (although this probably violates
> your "without
>> > hacking" clause) is this monkey patched version of FlexSprite I
>> > blogged about:
>> > http://dougmccune.com/blog/2008/02/21/monkey-patching-flexsprite-
 
> to-list-all-event-listeners-on-any-flex-component/
>> >
>> > What that does is gives you an array of all the event listeners
> that
>> > have been registered on a certain component. That's not the same
> as a
>> > list of all events that the component might ever dispatch (since
> the
>> > component may very well dispatch events that nobody listens to).
> The
>> > other thing I would suggest is you could use the same approach to
>> > monkey patch FlexSprite and add some special code into the
> override
>> > for dispatchEvent and then you could be notified about anytime the
>> > component dispatches any event at all. Again, that probably goes
>> > against the not hacking condition of the question :)
>> >
>> > Doug
>> >
>> > On Wed, Jul 16, 2008 at 8:11 PM, Josh McDonald <[EMAIL PROTECTED]> wrote:
>> > > Hey guys,
>> > >
>> > > Is it possible to listen to all events that bubble to / are
> dispatched
>> > from
>> > > a certain component?
>> > >
>> > > Don't worry, I don't actually plan on using this in any actual
> code! I'm
>> > > just interested in doing some extremely verbose logging to
> gather
>> > > information for a blog post I have in mind ;-)
>> > >
>> > > -Josh
>> > >
>> > > --
>> > > "Therefore, send not to know For whom the bell tolls. It tolls
> for thee."
>> > >
>> > > :: Josh 'G-Funk' McDonald
>> > > :: 0437 221 380 :: [EMAIL PROTECTED]
>> > >
>> >
>> > 
>> >
>> > --
>> > Flexcoders Mailing List
>> > FAQ:
> http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
>> > Search Archives:
>> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 !
> Groups
>> > Links
>> >
>> >
>> >
>> >
>>
>>
>> --
>> "Therefore, send not to know For whom the bell tolls. It tolls for
> 

Re: [flexcoders] DataTip targets

2008-07-17 Thread Richard Rodseth
Have you tried showDataTipTargets="true" ?

At the series level, you can also customize the tip renderer:

stroke="{tipStroke}"
fill="{tipFill}"
radius="4"  itemRenderer="mx.charts.renderers.CircleItemRenderer"


On Thu, Jul 17, 2008 at 2:19 PM, shafram <[EMAIL PROTECTED]> wrote:
> Hi, I've been searching around for any example to do this but I
> haven't found anything so far
>
> I have a Cartesian chart with a column series. Some of the bars don't
> render on the chart because their values are very small. However
> showing the datatips for these bars is still useful. The only problem
> is that there is no indication that there's a datatip unless the user
> rolls their mouse over the graph where they may see a datatip for one
> of the very small bars.
>
> My question is, is it possible to always show just the data tip target
> for the bars that don't render on the graph?
>
> Thanks
>
> 


[flexcoders] TitleWindow

2008-07-17 Thread markgoldin_2000
New TitleWindow comes with a white area inside. Is it possible to get 
rid of it completely?

Thanks



RE: [flexcoders] Is source available? for flash.utils.ByteArray.uncompress

2008-07-17 Thread Gordon Smith
> Is source available for flash.utils.ByteArray.uncompress?

 

No. flash.* classes are part of the Flash Player and typically
implemented in C++. The source for the Flash Player is not available.
Source is available for the mx.* classes of the Flex framework.

 

> uncompress is only available for AIR, not available for FLEX.

 

I think you meant to say that it is available in AIR but not in the
Flash Player. (The Flex framework can run on either Flash Player or
AIR.) AIR 1 was released after Flash Player 9, and added APIs that
aren't in Flash Player 9. I think uncompress will be available in Flash
Player 10.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of luvfotography
Sent: Thursday, July 17, 2008 12:44 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is source available? for
flash.utils.ByteArray.uncompress

 

where do I find it? I've got FLEX 3 installed (on mac)
uncompress is only available for AIR, not available for FLEX. Why?
I don't need to go to a file, a BYTEARRAY would be sufficent.
thanks,

 



RE: [flexcoders] Re: Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Tracy Spratt
Did you look at my example?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Thursday, July 17, 2008 5:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Expanding Tree Node Based On Attribute Match

 

--- In flexcoders@yahoogroups.com 
, "Jason" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy, that got me really close to wrapping this up. I was 
> able to find the node and isolate it, however the tree is not 
> expanding that node.
> 
> var topic:String = "Add Skill";
> var xmlListSearch:XMLList = xml.menuTree..folder.(attribute
("topic") 
> == topic);
> var foundNode:XML = xmlListSearch[0];
> 
> trace("xml: " + foundNode.toXMLString()); //traces the node I want: 
> 
> 
> navTree.expandItem(foundNode, true, true);//does not expand the 
node 
> found above
> 
> The id of the tree is indeed navTree. Not sure what's happening 
here.
> 
> Thanks in advance,
> 
> Jason
>

Any ideas anyone? I'm stumped! Thanks.

 



[flexcoders] DataTip targets

2008-07-17 Thread shafram
Hi, I've been searching around for any example to do this but I
haven't found anything so far

I have a Cartesian chart with a column series. Some of the bars don't
render on the chart because their values are very small. However
showing the datatips for these bars is still useful. The only problem
is that there is no indication that there's a datatip unless the user
rolls their mouse over the graph where they may see a datatip for one
of the very small bars. 

My question is, is it possible to always show just the data tip target
for the bars that don't render on the graph?

Thanks



[flexcoders] remoteObject questions (just to understand it better)

2008-07-17 Thread dnk
Hi there, just a few quick questions regarding remoteObject (trying to  
understand it better now that I have it running)


1) What is the purpose of the destination parameter? I have a working  
remoteObject (with AMFPHP) and I just put anything in the destination  
parameter, and it always works. Now obviously if i remove it, the  
remoteObject stops working. In my examples, I did it without a  
"services-config.xml" file.

IE -

http://www.domain.com:80/amfphp/gateway.php"/>

2) With imports, what is the difference between:

mx.rpc.remoting.mxml.RemoteObject

and

mx.rpc.remoting.RemoteObject

3) In my services.mxml file I have:


http://www.adobe.com/2006/mxml";
xmlns:cairngorm="com.adobe.cairngorm.business.*">   

http://apps.bajamining.com:80/gw/gateway.php"/>




Which one of those RemoteObjects is it using? (SInce there are no  
imports)?

4) Does it default to AMF3?

Thanks!

Dustin



[flexcoders] Re: Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Jason
--- In flexcoders@yahoogroups.com, "Jason" <[EMAIL PROTECTED]> wrote:
>
> Thanks Tracy, that got me really close to wrapping this up.  I was 
> able to find the node and isolate it, however the tree is not 
> expanding that node.
> 
> var topic:String = "Add Skill";
> var xmlListSearch:XMLList = xml.menuTree..folder.(attribute
("topic") 
> == topic);
> var foundNode:XML = xmlListSearch[0];
> 
> trace("xml: " + foundNode.toXMLString()); //traces the node I want: 
> 
> 
> navTree.expandItem(foundNode, true, true);//does not expand the 
node 
> found above
> 
> The id of the tree is indeed navTree.  Not sure what's happening 
here.
> 
> Thanks in advance,
> 
> Jason
>

Any ideas anyone?  I'm stumped!  Thanks.




RE: [flexcoders] Problem with showing dynamic combobox

2008-07-17 Thread Alex Harui
You probably meant to use "prompt" instead of "labelField"

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of timgerr
Sent: Thursday, July 17, 2008 1:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem with showing dynamic combobox

 

Hello all,
I an running into a problem, when I create a Actionscript ComboBox
like this:

[Bindable]
public var respArray: Array = [
{label:""},{label:"Yes"},{label:"No"},{label:"N/A"},{label:"No
Responce"}];

var cb1:ComboBox = new ComboBox();
cb1.id = 'cb1me';
cb1.dataProvider = respArray;
addChild(cb1);

All is displayed correctly

But when I add the labelField like this
var cb1:ComboBox = new ComboBox();
cb1.id = 'cb1me';
cb1.dataProvider = respArray;
cb1.labelField = 'Please Select';
addChild(cb1);

When this is displayed the ComboBox displays:
[Object Object]
[Object Object]
[Object Object]
[Object Object]

Why is the labelField messing up my array?

Thanks,
timgerr

 



RE: [flexcoders] Flex Errors and SWCs

2008-07-17 Thread Eric Fickes
If there truly are no errors, I'd bounce Eclipse and clean project when
it opens back up.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of inboxsf
Sent: Thursday, July 17, 2008 5:44 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Errors and SWCs



Anyone know if it's possible to stop errors being displayed in 
the "Problems" view when you're using a swc in a flex project.

There are no problems when compiling, but anyway to stop the errors 
showing?

Thanks.



 


[flexcoders] Re: Comparing two array collections

2008-07-17 Thread tchredeemed
Just an update, I know I can pass both into a function that does the
following:

checkForEquality( a:AC, b:AC ):Boolean {
 if( a.length != b.length ) return false;

 loop through each item
 if an item differs, return false;

 return true;
}

however, I was hoping for a solution with less overhead.

--- In flexcoders@yahoogroups.com, "tchredeemed" <[EMAIL PROTECTED]> wrote:
>
> How would you go about comparing two array collections?
> 
> Each array collection is populated with items of an ADT ("Order", to
> be exact).
> 
> If I do .toString() comparisons, it only appears as different if I add
> or remove an "Order", because the .toString() shows up as "[object
> Order], [object Order], etc.."
> 
> I need to know if I add or remove an order, as well as if an order
> changes...
>  
> Just wondering if there is an easy solution.
>




[flexcoders] Problem with showing dynamic combobox

2008-07-17 Thread timgerr
Hello all,
I an running into a problem, when I create a Actionscript ComboBox
like this:

[Bindable]
public var respArray: Array = [
{label:""},{label:"Yes"},{label:"No"},{label:"N/A"},{label:"No
Responce"}];

var cb1:ComboBox = new ComboBox();
cb1.id = 'cb1me';
cb1.dataProvider = respArray;
addChild(cb1);

All is displayed correctly

But when I add the labelField like this
var cb1:ComboBox = new ComboBox();
cb1.id = 'cb1me';
cb1.dataProvider = respArray;
cb1.labelField  = 'Please Select';
addChild(cb1);

When this is displayed the ComboBox displays:
[Object Object]
[Object Object]
[Object Object]
[Object Object]


Why is the labelField  messing up my array?

Thanks,
timgerr




[flexcoders] Comparing two array collections

2008-07-17 Thread tchredeemed
How would you go about comparing two array collections?

Each array collection is populated with items of an ADT ("Order", to
be exact).

If I do .toString() comparisons, it only appears as different if I add
or remove an "Order", because the .toString() shows up as "[object
Order], [object Order], etc.."

I need to know if I add or remove an order, as well as if an order
changes...
 
Just wondering if there is an easy solution.



RE: [flexcoders] Re: Is it possible to listen to *all* events without hacking the SDK?

2008-07-17 Thread Gordon Smith
The dispatchEventHook will only catch events dispatched by UIComponents.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Wednesday, July 16, 2008 9:34 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Is it possible to listen to *all* events
without hacking the SDK?

 

Cool, I didn't know about that, cheers :)

On Thu, Jul 17, 2008 at 2:10 PM, reflexactions <[EMAIL PROTECTED]
 > wrote:

Well you can at least catch all events dispatched on a particular
component, and without subclassing or patching.

You assign a callback function to the dispatchEventHook property.
It takes two params the event and the target and is called
immediately prior to the actual dispatch.



-- 
"Therefore, send not to know For whom the bell tolls. It tolls for
thee."

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]   

 



[flexcoders] Is source available? for flash.utils.ByteArray.uncompress

2008-07-17 Thread luvfotography
where do I find it? I've got FLEX 3 installed (on mac)
uncompress is only available for AIR, not available for FLEX. Why?
I don't need to go to a file, a BYTEARRAY would be sufficent.
thanks,



Re: [flexcoders] Re: Google CodeJam

2008-07-17 Thread Aaron Miller
I am! Woot woot!

~Aaron

On Thu, Jul 17, 2008 at 11:18 AM, pbrendanc <[EMAIL PROTECTED]> wrote:

>   Interested in more info on this - do you have a link?
>
>
> --- In flexcoders@yahoogroups.com ,
> "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
> >
> > Any other coders in Google CodeJam using Flex? :D I passed the
> > qualifying round last night. I only ran one test (all I need to do to
> > move on) - after which I realized we can run all 3 available. Ooops!
> > But back to the question - anyone else out there participating in the
> > event using Flex? :D
> >
>
>  
>


[flexcoders] cairngorm/remoteObject/VO - my first crack

2008-07-17 Thread dnk
Good day listers.

I got this crazy idea I should have a crack at learning cairngorm/ 
remoteObject (amfphp) /VO all at once

I had previously been using netconnections for my amfphp stuff.

At any rate, I was wondering if someone could look over my code to see  
any blaring "no no's" in it.

The app really does nothing, and is just a test to learn it all.

I have a few small issues in my LoadVoDataCommand file.

I have comments in there stating what the issues are (even though  
there are no compile errors).

The link is:

http://apps.bajamining.com/flexcoders

For some reason in the source view, the PHP files come up as blank.  
However they are in the zip file download (I checked).

But they are also so short, I will just add them into here for those  
who do not want to download the zip to just look at 2 php files.

-
SERVICE
-



-
VO
-



Thanks in advance to anyone willing to have a look.

Dustin




RE: [flexcoders] Re: HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-17 Thread Tracy Spratt
To repeat, sending data to the server using the default contentType with
name=value pairs in a standard Object is easy.  Do you have a reason to
look for a different way?  The UI and bindings should not be relevant to
this issue.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pbrendanc
Sent: Thursday, July 17, 2008 2:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: HTTP Service Send Requests with Parameter
Object - 405 Errors?

 

Since I'm not binding the data to any visible fields i want to handle
this in as - so I'd like to understand what does/doesn't work using as -
I like to use code behind as much as possible.

BTW - I did resolve my 405 error as an IIS issue - however I'm not
seeing the data defined in my parameter object in the http request (on
the server side). (I'll post a separate message on this)

Patrick

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This is trivial with a normal mx:Object. Are you committed to sending
a
> custom object?
>
>
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
]
On
> Behalf Of pbrendanc
> Sent: Wednesday, July 16, 2008 5:44 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] HTTP Service Send Requests with Parameter Object
-
> 405 Errors?
>
>
>
> The Flex docs specify that the send object can contain either
Name/Value
> pairs of an XML object but I keep getting errors.
> Is it possible to pass a (non null) parameter object in the HTTP
service
> send request - I keep getting HTTP405 (Method not allowed) errors. (If
> I include these args as part of the query string everything works as
> expected).
>
> (BTW - I'm using IIS - so is it possible that I need to change some
IIS
> settings?)
>
> // Define test object
>
> public class dummyobj
> {
> public var f1:String;
> public var f2:String;
> }
>
> public function useHttpService(parameters:Object):void {
>
> var httpSvc = new HTTPService();
> httpSvc.url= "http://localhost:8080 
 > ";
> httpSvc.method = "POST";
> httpSvc.contentType = "application/x-www-form-urlencoded";
> httpSvc.addEventListener("result", httpResult);
> httpSvc.addEventListener("fault", httpFault);
>
> // Load request parameters into an object
> // to send with the request
> var testVO:dummyobj = new dummyobj();
> testVO.f1 = "aaa";
> testVO.f2 = "bbb";
> httpSvc.send(testVO); // gets 405
> error
>
> TIA,
> Patrick
>

 



RE: [flexcoders] SQlite database and Vista User Account

2008-07-17 Thread Jim Hayes
As far as I recall, there is some advice in the documentation to copy any 
database files to one of the users directories (such as application preference 
directory, for instance) if you are going to be writing to them.
The reason being that certain operating systems (e.g. Vista) won't allow write 
access to files in the application directory.

I'd hazard a guess that this is the cause of the problem in your application.

You should be ok if you're just retrieving values I should think, I use a 
database in the app directory for read only access just fine.

However, I do specifically open it read only, it's possible that opening it for 
read/write just fails and you don't see any errors in the release player.

I guess you could do a try/catch on it and alert an error message (or just 
package and install a debug version for testing, perhaps)


-Original Message-
From: flexcoders@yahoogroups.com on behalf of * Khairunnisa' *
Sent: Thu 17/07/2008 14:41
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] SQlite database and Vista User Account
 

Both yes.
 
The database is in the application directory - Once installed in Windows, it 
will be under Program Files >App Folder - together with the application.
The application performs normal database actions such as retrieving and writing 
to the database.
Retrieval returns blank while writing to database looks as if it's not 
performing anything.
 
Does it got to do relative path to the database? but it be absolute? or is it 
really because of User Account Control present in Vista?
 
 
 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 17 Jul 2008 14:04:52 
+0100Subject: RE: [flexcoders] SQlite database and Vista User Account




Is your database file in the application directory, and is the application 
writing to it?-Original Message-From: flexcoders@yahoogroups.com on 
behalf of KhairunnisaSent: Thu 17/07/2008 11:37To: [EMAIL PROTECTED]: 
[flexcoders] SQlite database and Vista User AccountI managed to run my AIR 
Desktop Application on Windows Vista Businesssuccessfully but not my client 
(who is running on the same platform).Even though he managed to run the 
application, dynamic data fromSQLite embedded in the application does not 
appear.ie, no dynamic dataappeared in the list or forms.I checked for his 
settings and realized that his User Account Controlis on while mine is turned 
off.When I turned on my User Account, the same thing happened to me -dynamic 
data doesn't appear.Is there any way to solve this problem without turning off 
the UserAccount Control in Vista?Yours, 
Nisa__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.__ 






__
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] Resetting/Clearing Project Server Properties

2008-07-17 Thread pbrendanc
Is there a way to clear the project server properties once they have
been created - I was unable to do this so my work around was to create a
new project and copy my components to it , then setting the project
server property to 'none'.

This seems a bit redundant and I wondered if there is an easier way.

Patrick




[flexcoders] Re: HTTPService receiving an array as parameter

2008-07-17 Thread pbrendanc
Guilherme,
I'm also testing this and have passed a parameter object as part of my
HTTP request as follows:

 httpSvc.send(testVO);

However I'm not seeing the parameter values in the HTTP request when I
debug on the server side.  However they do show up when I look at the
request using the Web development helper tool (very useful tool/plugin
to monitor request/responses - here's a link):

 http://projects.nikhilk.net/WebDevHelper/

I'm not even sure if this is supposed to work (the docs here might be
wrong/misleading as they show that a parameter arg for send method -
however the Flex examples I've seen never populate the parameter object
).  Like you I also want to pass an array via HTTP (my data is not bound
to a form field so I don't want to use mxml).

I may be missing something really obvious here - can't think what . 
Perhaps it depends on the server side implementation of the httpRequest
Object but i thought that was pretty standard.

If anyone can jump in here with sample working code that would really
help.

Patrick

--- In flexcoders@yahoogroups.com, "Guilherme Blanco"
<[EMAIL PROTECTED]> wrote:
>
> Hi guys,
>
>
> I'm interested if it's possible to send an array as a parameter when
> doing an HTTP request.
> Curretly, we can directly do it:
>
> foo[]=1&foo[]=2&foo[]=3
>
> Most server side languages understand this as
>
> foo = Array(
>   [0] = 1,
>   [1] = 2,
>   [2] = 3
> )
>
> I tried the same in Flex:
>
> var params:Object = new Object();
>
> params.foo = new Array();
> params.foo.push(1);
> params.foo.push(2);
> params.foo.push(3);
>
> service.send(params);
>
> But it doesn't work... I'm curious how can this be achieved in Flex
>
>
> Thanks in advance,
>
>
> Regards,
>
> --
> Guilherme Blanco - Web Developer
> CBC - Certified Bindows Consultant
> Cell Phone: +55 (16) 9166-6902
> MSN: [EMAIL PROTECTED]
> URL: http://blog.bisna.com
> Rio de Janeiro - RJ/Brazil
>




[flexcoders] Re: Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Jason
Thanks Tracy, that got me really close to wrapping this up.  I was 
able to find the node and isolate it, however the tree is not 
expanding that node.

var topic:String = "Add Skill";
var xmlListSearch:XMLList = xml.menuTree..folder.(attribute("topic") 
== topic);
var foundNode:XML = xmlListSearch[0];

trace("xml: " + foundNode.toXMLString()); //traces the node I want: 


navTree.expandItem(foundNode, true, true);//does not expand the node 
found above

The id of the tree is indeed navTree.  Not sure what's happening here.

Thanks in advance,

Jason




[flexcoders] Re: Google CodeJam

2008-07-17 Thread pbrendanc
Interested in more info on this - do you have a link?


--- In flexcoders@yahoogroups.com, "nathanpdaniel" <[EMAIL PROTECTED]> wrote:
>
> Any other coders in Google CodeJam using Flex? :D  I passed the
> qualifying round last night.  I only ran one test (all I need to do to
> move on) - after which I realized we can run all 3 available.  Ooops!
> But back to the question - anyone else out there participating in the
> event using Flex? :D
>




[flexcoders] Re: HTTP Service Send Requests with Parameter Object - 405 Errors?

2008-07-17 Thread pbrendanc
Since I'm not binding the data to any visible fields i want to handle
this in as - so I'd like to understand what does/doesn't work using as -
I like to use code behind as much as possible.

BTW - I did resolve my 405 error as an IIS issue - however I'm not
seeing the data defined in my parameter object in the http request (on
the server side). (I'll post a separate message on this)

Patrick

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> This is trivial with a normal mx:Object.  Are you committed to sending
a
> custom object?
>
>
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On
> Behalf Of pbrendanc
> Sent: Wednesday, July 16, 2008 5:44 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] HTTP Service Send Requests with Parameter Object
-
> 405 Errors?
>
>
>
> The Flex docs specify that the send object can contain either
Name/Value
> pairs of an XML object but I keep getting errors.
> Is it possible to pass a (non null) parameter object in the HTTP
service
> send request - I keep getting HTTP405 (Method not allowed) errors. (If
> I include these args as part of the query string everything works as
> expected).
>
> (BTW - I'm using IIS - so is it possible that I need to change some
IIS
> settings?)
>
> // Define test object
>
> public class dummyobj
> {
> public var f1:String;
> public var f2:String;
> }
>
> public function useHttpService(parameters:Object):void {
>
> var httpSvc = new HTTPService();
> httpSvc.url= "http://localhost:8080  ";
> httpSvc.method = "POST";
> httpSvc.contentType = "application/x-www-form-urlencoded";
> httpSvc.addEventListener("result", httpResult);
> httpSvc.addEventListener("fault", httpFault);
>
> // Load request parameters into an object
> // to send with the request
> var testVO:dummyobj = new dummyobj();
> testVO.f1 = "aaa";
> testVO.f2 = "bbb";
> httpSvc.send(testVO); // gets 405
> error
>
> TIA,
> Patrick
>




Re: [flexcoders] flex component kit

2008-07-17 Thread [p e r c e p t i c o n]
thank you sir

On 7/17/08, Matt Chotin <[EMAIL PROTECTED]> wrote:
>
>   http://www.adobe.com/go/flex3_skinning
>
> Matt
>
> On 7/17/08 11:01 AM, "[p e r c e p t i c o n]" <[EMAIL 
> PROTECTED]>
> wrote:
>
> i saw that...but i have FB3 which comes with the sdk..
> what am i missing?
>
> On Thu, Jul 17, 2008 at 10:57 AM, dnk <[EMAIL 
> PROTECTED]>
> wrote:
>
> On 17-Jul-08, at 10:52 AM, [p e r c e p t i c o n] wrote:
>
> >
> > Hi experts...
> > can anyone tell me where i can download the flex component kit for
> > flash cs3...
> > adome exchange seems to be down...and i don't need the whole sdk...i
> > have FB3
> >
> > thanks
> >
> > percy
> >
>
> According to labs, it seems to only be available from the Flex 3 SDK.
>
> I could be wrong though.
>
> d
>
> 
>
> Flex Component Kit for Flash CS3From Adobe Labs
> Flex Component Kit for Flash CS3 for Flex 2.0.1 shipped on Septemper
> 18, 2007 and is available from the Adobe Exchange. The version that
> supports Flex 3 is included within theFlex 3 SDK.
>
> 
>


Re: [flexcoders] flex component kit

2008-07-17 Thread Matt Chotin
http://www.adobe.com/go/flex3_skinning

Matt


On 7/17/08 11:01 AM, "[p e r c e p t i c o n]" <[EMAIL PROTECTED]> wrote:




i saw that...but i have FB3 which comes with the sdk..
what am i missing?


On Thu, Jul 17, 2008 at 10:57 AM, dnk <[EMAIL PROTECTED]> wrote:




On 17-Jul-08, at 10:52 AM, [p e r c e p t i c o n] wrote:

>
> Hi experts...
> can anyone tell me where i can download the flex component kit for
> flash cs3...
> adome exchange seems to be down...and i don't need the whole sdk...i
> have FB3
>
> thanks
>
> percy
>

According to labs, it seems to only be available from the Flex 3 SDK.

I could be wrong though.

d



Flex Component Kit for Flash CS3From Adobe Labs
Flex Component Kit for Flash CS3 for Flex 2.0.1 shipped on Septemper
18, 2007 and is available from the Adobe Exchange. The version that
supports Flex 3 is included within theFlex 3 SDK.







Re: [flexcoders] flex component kit

2008-07-17 Thread [p e r c e p t i c o n]
i saw that...but i have FB3 which comes with the sdk..
what am i missing?


On Thu, Jul 17, 2008 at 10:57 AM, dnk <[EMAIL PROTECTED]> wrote:

>
> On 17-Jul-08, at 10:52 AM, [p e r c e p t i c o n] wrote:
>
> >
> > Hi experts...
> > can anyone tell me where i can download the flex component kit for
> > flash cs3...
> > adome exchange seems to be down...and i don't need the whole sdk...i
> > have FB3
> >
> > thanks
> >
> > percy
> >
>
> According to labs, it seems to only be available from the Flex 3 SDK.
>
> I could be wrong though.
>
> d
>
> 
>
> Flex Component Kit for Flash CS3From Adobe Labs
> Flex Component Kit for Flash CS3 for Flex 2.0.1 shipped on Septemper
> 18, 2007 and is available from the Adobe Exchange. The version that
> supports Flex 3 is included within theFlex 3 SDK.
>  
>


Re: [flexcoders] flex component kit

2008-07-17 Thread dnk

On 17-Jul-08, at 10:52 AM, [p e r c e p t i c o n] wrote:

>
> Hi experts...
> can anyone tell me where i can download the flex component kit for  
> flash cs3...
> adome exchange seems to be down...and i don't need the whole sdk...i  
> have FB3
>
> thanks
>
> percy
>


According to labs, it seems to only be available from the Flex 3 SDK.

I could be wrong though.

d




Flex Component Kit for Flash CS3From Adobe Labs
Flex Component Kit for Flash CS3 for Flex 2.0.1 shipped on Septemper  
18, 2007 and is available from the Adobe Exchange. The version that  
supports Flex 3 is included within theFlex 3 SDK.


[flexcoders] flex component kit

2008-07-17 Thread [p e r c e p t i c o n]
Hi experts...
can anyone tell me where i can download the flex component kit for flash
cs3...
adome exchange seems to be down...and i don't need the whole sdk...i have
FB3

thanks

percy


RE: [flexcoders] Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Tracy Spratt
Here is a full example:

http://www.cflex.net/showFileDetails.cfm?ObjectID=554

 

When doing e4x expressions, do them one step at a time:

var xlSearch:XMLList = xml..folder; //.. means same as descendants, all
in tree

trace(xlSearch.toXMLString())

xlSearch = xml..folder.(attribute("label")=="Getting Started");
//hardcode to simplify. attribute() method is safer than @

trace(xlSearch.toXMLString()); //right node?

xlSearch = xml..folder.(attribute("label")==topicString);

var xmlSearch:XML = xlSearch[0];  //Get an XML node from the XMLList

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jason
Sent: Thursday, July 17, 2008 1:16 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Expanding Tree Node Based On Attribute Match

 

Pretty simple question I think, I'm just stuck, it's probably more of 
an E4X XML question. I'm trying to write a method that will expand 
the node of a tree based on a string match. The xml has an attribute 
label, so where that matches the string, open that node of the tree. 
The main bulk of my question I think lies in how I am returning the 
node where the label attribute matches the string. 

First, this doesn't seem to work, this is my lame attempt to find the 
matching node: xml.menuTree.*.(@label == topicString), meaning, look 
for any of the sub nodes where the label attribute matches the string.

Here is my actionscript and xml dataprovider for the tree:

navTree.expandItem(xml.menuTree.*.(@label == topicString), true, 
true); 

var xml:XML = 






























 



[flexcoders] Expanding Tree Node Based On Attribute Match

2008-07-17 Thread Jason
Pretty simple question I think, I'm just stuck, it's probably more of 
an E4X XML question. I'm trying to write a method that will expand 
the node of a tree based on a string match.  The xml has an attribute 
label, so where that matches the string, open that node of the tree.  
The main bulk of my question I think lies in how I am returning the 
node where the label attribute matches the string. 

First, this doesn't seem to work, this is my lame attempt to find the 
matching node:  xml.menuTree.*.(@label == topicString), meaning, look 
for any of the sub nodes where the label attribute matches the string.

Here is my actionscript and xml dataprovider for the tree:

navTree.expandItem(xml.menuTree.*.(@label == topicString), true, 
true);  

var xml:XML = 
































[flexcoders] Re: Flex 3 Migration shoots up Filesize by 400K

2008-07-17 Thread Hyder
Ahh... that's right, charting's included in data vis. too.

And I didn't know you could load .swc's at runtime... how do i do
that... moduleloader?

I don't need it for my current project since the dg is my primary
component but it's always good to know for future reference.

Also, how can i know what classes have been compiled in other .swcs.
For example, if I'm using only a single class in, lets say, rpc.swc.
Then I can probably find an alternative to that class and not include
that class in my application at all. That'd cut down on the
application size.

Thanks Tom!

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Wednesday 16 Jul 2008, Hyder wrote:
> > So I removed all references to the advanced datagrid and switch back
> > to the original datagrid and now it's down to 450K again... the ADG is
> > amazingly big !!!
> 
> You're not compiling in just the ADG, but the whole of what used to be 
> Charting (now called Data Visualisation).
> You can reduce your users pain by using RSL to load the .swc's at
runtime, 
> from the users cache.
> 
> -- 
> Tom Chiverton
> 
> 
> 
> 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] HTTPService receiving an array as parameter

2008-07-17 Thread Guilherme Blanco
Hi guys,


I'm interested if it's possible to send an array as a parameter when
doing an HTTP request.
Curretly, we can directly do it:

foo[]=1&foo[]=2&foo[]=3

Most server side languages understand this as

foo = Array(
  [0] = 1,
  [1] = 2,
  [2] = 3
)

I tried the same in Flex:

var params:Object = new Object();

params.foo = new Array();
params.foo.push(1);
params.foo.push(2);
params.foo.push(3);

service.send(params);

But it doesn't work... I'm curious how can this be achieved in Flex


Thanks in advance,


Regards,

-- 
Guilherme Blanco - Web Developer
CBC - Certified Bindows Consultant
Cell Phone: +55 (16) 9166-6902
MSN: [EMAIL PROTECTED]
URL: http://blog.bisna.com
Rio de Janeiro - RJ/Brazil


[flexcoders] Re: Dates Display Wrong on Random Clients?

2008-07-17 Thread javadmanx
I'm using version 3 of Flex SDK. I did find a fix, not sure if it's
the right one. I found that the some clients had enough time offset
that it would change there date back on day. This was due to the fact
I'm using a date object, but not using the time part. So I had times
set to 0. I simple moved all times to 12 and that's it. It's not an
unwanted feature, just one I'm not using because of the local nature
of this application. Let me know if you have suggestions on better
handling this. I'm new with Flex. Thanks.

--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> What version of Flex are you using, what format is the date when it goes
> into text, and how are you getting the results back? Have you
checked the
> text results coming from the server using something like Charles?
> 
> I don't have any experience with Blaze, but plenty with Flex's
(occasionally
> dodgey) Date parsing code so I can probably help you out.
> 
>
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




RE: [flexcoders] Is there a way to set the starting index of a DataGrid

2008-07-17 Thread Tracy Spratt
You can use an e4x expression to leave off the first "row".  *Something*
like:

var xlData:XMLList = xmlData.children().(childIndex()>0);

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Alex Harui
Sent: Thursday, July 17, 2008 10:50 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Is there a way to set the starting index of a
DataGrid

 

You might be able to customize a custom collection from my blog

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jlopes151
Sent: Thursday, July 17, 2008 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a way to set the starting index of a
DataGrid

 

What I want is to load data from an xml file, skipping over the first 
node. I want to use the first node of the xml data as header info, 
were the rest of the file contians the data grid data.

Thanks for any help

 



Re: [flexcoders] Titlewindow resize problem

2008-07-17 Thread ibo
Alex,

It gets clipped but I know its expanding because I have used 
resize effect to observe it in slow mo. Its like the renderer is having problem 
drawing part of the window region. Tried using the latest SDK/Flash Plugin. 
same thing.

Screenshot of it looks like exactly :
http://www. geocities.com/poweribo/clipped.png
Should be like this:
http://www. geocities.com/poweribo/clipped2.png

It turns out that the problem was more of PopupButton issue.
It behaves as expected if TitleWindow is not a child of popup.


On a somewhat related note, there is another serious prob with PopUpButton
when used with ViewStack. The value of popup attribute of PopUpButton
mysteriously gets set to null when you navigating thru the view stack.
I'm actually surprised the issue was "closed" in Adobe Bugbase bec
they cant replicate it.


- Original Message 
From: Alex Harui <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, July 17, 2008 1:41:53 AM
Subject: RE: [flexcoders] Titlewindow resize problem


I don’t have time to set this up
right now.  Did it clip or did you get scrollbars?  Should it clip or just
layout differently?
 


 
From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of ibo
Sent: Wednesday, July 16, 2008
1:23 PM
To: [EMAIL PROTECTED] ups.com
Subject: [flexcoders] Titlewindow
resize problem
 
Guys need help, I've spent a day trying to figure out whats the problem
with
with this app. Its about programmatically resizing a Titlewindow. 

When I'm assigning the TitleWindow a new value for width, a portion of the
window
seems to be clipped for no reason. Is this a bug? Is there a workaround for
this?
Or am I just doing it wrong? If you will check the demo, it works as expected
bec
I have set the viewStackDialogInde x to 2 (as initial value). But if you
close the dialog box
and press the popup window again, clicking on "medium" and
"large" item wont expand the 
window anymore.

The compiled app demo:
http://www.geocitie s.com/poweribo/ TitleWindowTest. swf

The code in question:--- - - - --




   




  



  

   


   
   



   

   
   

   
   
   

   

  &nbs! p;

   

   

   

   
  ! ;  
   

   
   

   
   

   
   
   
   

   

   
   
   
   
 
   

   

   

   
   

   
   
   

   

   

   

   
   

   
   





 - - - - ---

Regards,
Stephen

RE: [flexcoders] Array reference vs values

2008-07-17 Thread Maciek Sakrejda
Darren,

Josh seems to have resolved your problem, but if you're interested,
here's a brief discussion of how references are working here:

>But since these references don't seem to propogate backwards, nulling
>one of the array elements doesn't affect the original property.  That's
>the *whole purpose* of reference vs value... a reference is a pointer
>to memory space... so if I null that memory space it should affect all
>the vars pointing to that memory space.

The way references work in ActionScript (and in Java, C#, and most
others I'm familiar with), if you assign null to a reference, you are
not "null[ing] that memory space". You are nulling that *reference*.
It's your *reference* that now points to nothing--you're not actually
changing the contents of that memory location.

The behavior you're expecting could probably be achieved by another
level of indirection in references, but I'm not aware of any language
that actually does things this way. You could even achieve this in your
own code, by providing a wrapper class for Dates that exposes the
functions setDate(), getDate(), but Josh's suggestions is a better
solution.

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

-Original Message-
From: Darren Houle <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Array reference vs values
Date: Wed, 16 Jul 2008 21:55:33 -0400

Josh
 
Yes, what you're describing is exactly what I described and is, in fact,
what it happening... but to say I don't ever need to do this?  Well...
yes... I need to do this... and it has nothing to do with the garbage
collector.
 
Here, let me explain in another way
 
I have a custom object... lets say it's a Person object.  It has various
properties, but several are Date types.  These are all consecutive, like
a workflow, and I want to be able to address them in order via an
array... like this...
 
var person : Person = new Person();
 
person.wakeup = new Date();
person.breakfast = new Date();
person.lunch = new Date();
person.dinner = null;
person.bedtime = null;
 
var timeArr : Array = new Array();
 
timeArr[0] = person.wakeup;
timeArr[1] = person.breakfast;
timeArr[2] = person.lunch;
timeArr[3] = person.dinner;
timeArr[4] = person.bedtime;
 
 
Then some other code figures out where we are in the flow of the day's
events...
 
var status : int;
if (some criteria)
  {  event = 2;  }
 
But I determine lunch hasn't actually happened yet, so it shouldn't have
a Date yet.  I need to blank out this value that was previously set in
the Person object...
 
if (some criteria)
 {  timeArr[event] = null;  }
 
But since these references don't seem to propogate backwards, nulling
one of the array elements doesn't affect the original property.  That's
the *whole purpose* of reference vs value... a reference is a pointer to
memory space... so if I null that memory space it should affect all the
vars pointing to that memory space.
 
Does that make more sense?

Darren








To: flexcoders@yahoogroups.com
From: [EMAIL PROTECTED]
Date: Thu, 17 Jul 2008 11:30:29 +1000
Subject: Re: [flexcoders] Array reference vs values


When you do this:

  var date:Date = new Date();

You're creating an instance of Date and a reference to it named "date".

When you do this:

  var ref:Date = arr[0] as Date;

You're creating another reference to the same instance, this time your
reference is named "ref". So when you set ref = null, you're making
"ref" point to nothing. "date" and "arr[0]" remain unchanged. You don't
need to, nor can you remove the date instance created above. That's the
job of the garbage collector.

-Josh

On Thu, Jul 17, 2008 at 11:25 AM, Darren Houle <[EMAIL PROTECTED]>
wrote:
This might be a basic AS question, but I encountered it building
a
Flex app, so...

I create a Date

   var date:Date = new Date();

I create an Array

   var arr:Array = new Array();

I set the first element of the array equal to the date

   arr[0] = date;

I create another date variable that refers to the first array
element

   var ref:Date = arr[0] as Date;

if I trace("date="+date+", arr[0]="+arr[0]+", ref="+ref) I get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16
21:04:45
GMT-0400 2008, ref=Wed Jul 16 21:04:45 GMT-0400 2008

Now I null out the ref variable

   ref=null;

Since AS uses references instead of values I would expect to
null out
the original date, but no...

If I trace("date="+date+", arr[0]="+arr[0]+", ref="+ref) I now
get

date=Wed Jul 16 21:04:45 GMT-0400 2008, arr[0]=Wed Jul 16
21:04:45
   

[flexcoders] Google CodeJam

2008-07-17 Thread nathanpdaniel
Any other coders in Google CodeJam using Flex? :D  I passed the 
qualifying round last night.  I only ran one test (all I need to do to 
move on) - after which I realized we can run all 3 available.  Ooops!  
But back to the question - anyone else out there participating in the 
event using Flex? :D



[flexcoders] Adding a progressBar to an itemRenderer

2008-07-17 Thread djhatrick
Anybody done this successfully, accounting for the itemRenderer being
destroyed and re-used again, (perhaps when a scroll takes place).  

Here's what i thought adding a progressBar and manually setting it by
looking for a property in the data setter for the progressBar
position, and then updating the value by resetting the data over and
over again...

Am I nuts?  Is this doable?  I can't think of another way to add a
progressbar to an itemRenderer and make it work, since the
itemRenderer display Object is  re-used for different data, I know of
no other way.  

Suggestions gladly accepted.

Thanks,
Patrick  



[flexcoders] CFC/VO match not recognized

2008-07-17 Thread Tom McNeer
I'm trying to solve an issue I posted about earlier, where a call to a
method of a ColdFusion CFC resulted in an error saying that the required
parameter - Estimate - was missing, even though I could see through
ServiceCapture that the object was, in fact, being sent.

I'm working on the theory that it's an object translation problem. So I'm
testing by calling a getEstimate() method on the CFC as the Flex app starts
up, which should return an empty instance of an Estimate. However, the
incoming result is being identified as an ObjectProxy, rather than being
matched to the Estimate.as VO. And for the life of me, I can't figure out
why. I have many other VO/CFC combinations in the application, all being
matched up correctly. But the Estimate object just won't fly.

I'm hoping someone here can help me figure it out.

For reference, here's Estimate.as:

package model
{
[RemoteClass(alias="meridien.model.estimate")]


[Bindable]
public class Estimate
{
public var estimateID:int = 0;
public var order:Order = new Order;
public var customer:Customer = new Customer;
public var configAC:ArrayCollection = new ArrayCollection;

public function Estimate(data:Object = null)
{
}
}

}
}
=

Here's estimate.cfc
=






=

In my getEstimate() method, I have tried creating the object which I sent to
Flex in two ways:
=





... and










=

Neither work. The nested objects -- Customer and Order -- are recognized and
translated in Flex. But the outer Estimate object isn't.

Can anyone see what I'm doing wrong here? (All paths are correct, by the
way.)

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Re: selecting a cell in an advanced data grid

2008-07-17 Thread Amy
--- In flexcoders@yahoogroups.com, "fb6668" <[EMAIL PROTECTED]> wrote:
>
> Hi, I have an advanced data grid with hierarchical data, displayed 
in
> tree view.
> Selecting a cell updates a pie chart to show the breakdown for the
> node, by passing to a modelLocator value:
> model.expenditure.selectedItem = e.itemRenderer.data as 
CategoryObject;
> which the pie is bound to.
> 
> This is straightforward enough, but I also need it to work in the
> other direction, so that if the pie segment is drilled-down into, 
the
> selected cell in the ADG is changed. (The pie click updates the
> model.expenditure.selectedItem). However, I don't know how to go 
about
> finding this cell!
> How can I loop through the ADG's elements to find the co-ordinates 
for
> the cell to select??
> 
> I really hope you can help, this is driving me crazy!
> 
>designViewDataType="tree" 
>   dataProvider="{new HierarchicalData
(rptAccordions.currentItem.children)}"
>   showHeaders="false" width="100%" selectable="true"
> selectionMode="singleCell"
>   variableRowHeight="true"
>   creationComplete="addToDisplayItemArray(event)" 
>   itemOpening="openTreeItem(event)" itemClose="closeTreeItem
(event)" 
>   change="selectItem(event)" >
>   
>   
>width="108" />
>width="108" />
>   
>   
>   
> 
>

If your ADG had an ID, you could do it something like:

yourADG.selectedItem=yourPie.selectedItem;

Not sure how that fits in with the Framework you're using.  Maybe you 
could bind it to the modelLocator as well.

HTH;

Amy



Re: [flexcoders] Re: Who is using FlexReport?

2008-07-17 Thread Paul Andrews
- Original Message - 
From: "ansury2001" <[EMAIL PROTECTED]>
To: 
Sent: Thursday, July 17, 2008 2:55 PM
Subject: [flexcoders] Re: Who is using FlexReport?


> Well you're right that I *could* probably meet my basic requirements
> simply using pdf generation (although it'd be server side/java),
> although custom reporting options would still take some work. But
> actually showing the user a print preview of what they're going to
> see, within the running swf, would be so much better.

Yes, I agree - I want to generate the PDF on the client, not the server!

It's still possible to generate a client-side preview using  server side PDF 
generation - it just needs a new window.

Paul


snip 



[flexcoders] Upcoming release of Gumbo

2008-07-17 Thread djhatrick
I am probably the only person that does this, I use a few different
kind of tween engines in flex.  I got into TweenLite, and for most of
my needs, I find TweenLite works great with Flex and it's simple to
use.  I know some people like to code tweening in MXML, which
personally I think is obtuse and, difficult to use than actionscript,
especially for really complicated tween needs.

In future releases, has adobe thought about making other tween engines
more adaptable to Flex, I've written wrappers to dispatch Flex
tweenEvents for tweenLite to Flex, and it works like a charm.

Just a suggestion, here is why I use tweenLite for most of my tweening
needs in flex

http://blog.greensock.com/tweening-speed-test/

Anybody else, doing non-conventional stuff like me?  I know that the
adobe tween stuff is being rewritten.  I think tweenlite is great
because it allows you to tween any property of any object.  So, for
instance if it's a style, here's an example of what I do with
tweenLite, so I can tween a style of an object, just create a setter
for the action.

public function set backgroundAlpha(n:Number):void
{
   this.setStyle("backgroundAlpha",n);
}

var tween:TweenLite = new
TeeenLite(this,.5,{alpha:1,onComplete:onCompleteTween};

(the constructor takes the object you are performing a tween on, the
duration of the tween, and an object with name/values of the property
and the conclusion value of the tween.

This works like a charm for me.

Food for thought,
Patrick




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

<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

<*> Your email settings:
Individual Email | Traditional

<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

<*> To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/



[flexcoders] Re: creating a World Clock and need a little help with the time and date

2008-07-17 Thread Doug Lowder
Verify that you get midnight Jan 1, 1 AD from the following and 
you'll have the epoch adjustment value:

new Date( -6213559680 ).toUTCString()

Converting from timeticks returned by your webservice:

var epochAdjustment: Number = -6213559680;
var d: Date = new Date ( CurrentTimeTicks / 1 + epochAdjustment );
trace( d.toString() ); // client's local time


--- In flexcoders@yahoogroups.com, "Mark" <[EMAIL PROTECTED]> 
wrote:
>
> I agree with you 100% Josh but the better ones want the all might 
$$ 
> and my company isn't willing to pay for it, it's just nice to 
have.  
> So I need to find a free one or give it up.  But I'm not willing to 
> do that just yet...  soon, but not yet.  :-)
> 
> They do have have some pseudocode on the site but it really shows 
it 
> using the DateTime in .Net.  And my understanding of that is that's 
> built in so there's no convesions (although I could be wrong).
> 
> -M
> 
> 
> --- In flexcoders@yahoogroups.com, "Josh McDonald"  
> wrote:
> >
> > Switch to a different web service, or call whoever provides it 
and 
> get some
> > documentation :)
> > 
> > What the hell is 1AD? We haven't been keeping nice records since 
> like 200AD
> > or something.
> > 
> > And do they count all the various leap seconds? What about that 
> time when
> > some pope rejigged the calendar and we disappeared like 13 days or
> > something?
> > 
> > Anybody proving information of such a monstrously non-standard 
> fashion
> > should also be providing some serious documentation and/or 
> pseudocode.
> > 
> > -Josh
> > 
> > -- 
> > "Therefore, send not to know For whom the bell tolls. It tolls 
for 
> thee."
> > 
> > :: Josh 'G-Funk' McDonald
> > :: 0437 221 380 :: josh@
> >
>




[flexcoders] Re: Who is using FlexReport?

2008-07-17 Thread ansury2001
Actually that sounds pretty good, and I would prefer an open source 
solution as well.  

Regarding the strict setup requirements: using a ClearBI trial I 
found it extremely difficult adapting a copy of our already existing 
Flex 2 application's environment to meet the needed requirements. 
Almost everything other than the version of the Flex SDK we were 
using had to change, and a lack of internet connectivity made 
installing it even more difficult, especially when I discovered that 
the downloadable Eclipse "local site install zip" for the tool was 
outdated compared to the "remote site install" version.

But I will definitely be looking into this again after the 19th.

--- In flexcoders@yahoogroups.com, "Anatole Tartakovsky" 
<[EMAIL PROTECTED]> wrote:
>
> The version without plugins (pure AIR application with UI editor, 
but you
> can use Flex or vi to edit reports in source ) is coming this 
summer. I will
> be showing the final release on 8/19 in NYC (
> http://www.eventbrite.com/event/126384018) among other reporting 
goodies
> like generating complete reporting PDF on the client side ( fully 
dynamic ).
> 
> 
>  There were editions of clearBI that were under $1,000 or even 
free -
> producing minuscule report SWFs (<20K) with powerful runtime short 
of just
> end-user editing. Even 1000$ versions were selling slow - with
> people actually saying they would consider only free, open source 
ones with
> 24/7 support.
> 
> The "restrictive setup" (identical to what Flex 3 now ships for J2EE
> integration / DataServices) are "J2EE best practices" one and was
> targeting Enterprise market/reducing support calls from unsupported
> PHP community,
> 
> However, after 3 years working in Flex BI area and seeing all kind 
of
> requirements/setups I am sceptical about "out of the box" 
simplicity or
> dozen of unpaid product related calls a day. If you estimate 
realistic
> number of people buying $1000 version at 100-200 people per year 
there is no
> way you can recover even support cost. If on contrary you consider
> integration effort in 15K+ it makes more sense as there is money 
for setup,
> some training and integration - while in fact you still get product 
for
> free. You can easily handle quite a few projects with guaranteed 
results.
> 
> We are making all the tooling and runtimes, just do not expect it 
to be $299
> or even $999 unless enterprises will start paying for software and 
not the
> services and it becomes economically viable.
> 
> Sincerely,
> Anatole Tartakovsky
> Farata Systems
> On Wed, Jul 16, 2008 at 2:29 PM, ansury2001 <[EMAIL PROTECTED]> wrote:
> 
> >   Well, I know we'd be willing to purchase a reporting tool for a 
cost
> > on par with the cost of Flex Builder. And it wouldn't need to be
> > a "catch all, generate all" sophisticated solution like ClearBI.
> >
> > I'd be happy with just an SWC reporting library. Just add some
> > component(s) from the SWC, setup some configuration and 
customization
> > options somewhere, and point it to a RemoteObject--done! Eclipse
> > plugins and integration with other tools become an issue when you
> > don't need to use those tools, or (for example) you're using
> > FlexBuilder standalone instead of the Eclipse plugin version.
> >
> > That's one good thing about FlexReport - it's just an SWC library-
-so
> > it's easily plugged into any application, both new or old.
> >
> > --- In flexcoders@yahoogroups.com , "Anatole
> > Tartakovsky"
> >  wrote:
> > >
> > > Report Wirter is a delicate topic. We wrote reporting solution 
in
> > 2006 -
> > > complete stack from database to end-user UI designer to the
> > optimized client
> > > to the PDF. However, the current mind set in the enterprises - 
if
> > it is
> > > third party product it has to be open source and free. So 
instead
> > of pushing
> > > it as a product, we are packaging it as a service.
> > > After all, building low cost solution for mass market requires 
mass
> > market
> > > and enterprises with flex reporting are not mass market yet.
> > > I believe most of reporting solutions I have seen are just tip 
of
> > the
> > > iceberg, with services beneath to recover develpoment costs.
> > >
> > > Sincerely,
> > > Anatole Tartakovsky
> > > Farata Systems
> > >
> > >
> > > On Wed, Jul 16, 2008 at 11:34 AM, Derrick Anderson <
> > > no.way.this.is.in.use@> wrote:
> > >
> > > > amen brother, to be honest I like FlexReport- but it's not
> > ready for an
> > > > enterprise app. it's a good starting point, but I really need
> > something
> > > > much more robust.
> > > >
> > > > i'm in the same boat, would love to provide all the great
> > reportability and
> > > > UI that has been touted but more and more i see 
people 'hacking'
> > out flex
> > > > reports in anything other than 'flex'.
> > > >
> > > > Adobe, where is the flex report builder???
> > > >
> > > > d.
> > > >
> > > >
> >  > > On Wed, Jul 16, 2008 at 11:10 AM, ansury2001  wrote:
> > > >
> > > >> I need some advice on whether FlexRep

Re: [flexcoders] More DateFormatter Shinanagans

2008-07-17 Thread Ramnish Kalsi
Last time when I tried, this was working for me. It *may* give you an idea.
See the labelFunction...



private function formatDate(item:Object, column:DataGridColumn):String {
var dateFormatted:DateFormatter = new DateFormatter();
dateFormatted.formatString = "DD-MM-";
var rawDate:Date = new Date(item[column.dataField]);
return dateFormatted.format(rawDate) as String;
}


Thanks.

2008/7/17 Dominic Pazula <[EMAIL PROTECTED]>:

>   I cannot seem to get the proper year out of a DateFormatter.
>
> Can someone tell me what I am doing wrong:
>
> I have a component:
> http://www.adobe.com/2006/mxml"; width="100%"
> height="100%" creationComplete="init()">
> 
> 
> 
>
> 
>  width="100%">
> 
>  formatter="{fmtDate}"/>
> 
> 
> 
>
> 
>
> The Date column resolves to "07-16-400". The Datetime column to "Wed
> Jul 16 19:08:39 GMT-0400 2008".
>
> Why does my year show up as 400???
>
>  
>


RE: [flexcoders] SQlite database and Vista User Account

2008-07-17 Thread * Khairunnisa' *

Both yes.
 
The database is in the application directory - Once installed in Windows, it 
will be under Program Files >App Folder - together with the application.
The application performs normal database actions such as retrieving and writing 
to the database.
Retrieval returns blank while writing to database looks as if it's not 
performing anything.
 
Does it got to do relative path to the database? but it be absolute? or is it 
really because of User Account Control present in Vista?
 
 
 


To: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Thu, 17 Jul 2008 14:04:52 
+0100Subject: RE: [flexcoders] SQlite database and Vista User Account




Is your database file in the application directory, and is the application 
writing to it?-Original Message-From: flexcoders@yahoogroups.com on 
behalf of KhairunnisaSent: Thu 17/07/2008 11:37To: [EMAIL PROTECTED]: 
[flexcoders] SQlite database and Vista User AccountI managed to run my AIR 
Desktop Application on Windows Vista Businesssuccessfully but not my client 
(who is running on the same platform).Even though he managed to run the 
application, dynamic data fromSQLite embedded in the application does not 
appear.ie, no dynamic dataappeared in the list or forms.I checked for his 
settings and realized that his User Account Controlis on while mine is turned 
off.When I turned on my User Account, the same thing happened to me -dynamic 
data doesn't appear.Is there any way to solve this problem without turning off 
the UserAccount Control in Vista?Yours, 
Nisa__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] Re: Who is using FlexReport?

2008-07-17 Thread ansury2001
Actually for now I'll probably be resorting to PDF generation only 
and *maybe* direct printing using a regular PrintDataGrid. FlexReport 
just seems to have too many issues and I'm tired of addressing them. 
Probably best to use a Java pdf generator, I don't see the use in 
sending all data over the wires three times when it could be once 
using Java. Anyway half the links on Alivepdf's site seem broken.

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Yes and No.
> 
> I've built loads of reports using very expensive reporting software 
such as Business Objects and other dedicated reporting solutions that 
are often oriented towards reporting from data sources such as SQL 
databases. The cost megabucks.
> 
> Their main advantage is having a graphical report builder with 
sophisticated behaviour for data breaks and conditional layout 
changes. In general the client reporting requirements are usually 
fairly conservative in terms of look and feel - laying out lines of 
text with minimal graphics support.
> 
> In practice I suspect that 3/4 of the developers on Flexcoders 
could roll their own reports given a simplified  PDF generation SDK 
(that didn't involve a server round-trip).
> 
> Paul
>   - Original Message - 
>   From: Rick Winscot 
>   To: flexcoders@yahoogroups.com 
>   Sent: Thursday, July 17, 2008 6:07 AM
>   Subject: RE: [flexcoders] Who is using FlexReport?
> 
> 
>   I agree whole-heartedly with Anatole. Reporting requirements are 
commonly very specific - and as I hear about what people want in a 
reporting toolkit. they describe 'the' solution as being generally 
purposeable which doesn't make any sense. If you want a flexible 
solution you are going to have to sacrifice some of the concreteness 
of the report - if you want a rock solid report you are going to have 
to get your hands dirty to make it happen. If you would rather buy a 
reporting solution. expect to cough up dough commensurate with the 
quality of the product. The big problem, as Anatole already surmised, 
is that people's eyes are typically much larger than their pocket-
book.
> 
>
> 
>   Rick Winscot
> 
>
> 
>
> 
>   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Anatole Tartakovsky
>   Sent: Wednesday, July 16, 2008 12:35 PM
>   To: flexcoders@yahoogroups.com
>   Subject: Re: [flexcoders] Who is using FlexReport?
> 
>
> 
>   Report Wirter is a delicate topic. We wrote reporting solution in 
2006 - complete stack from database to end-user UI designer to the 
optimized client to the PDF. However, the current mind set in the 
enterprises - if it is third party product it has to be open source 
and free. So instead of pushing it as a product, we are packaging it 
as a service.
> 
>   After all, building low cost solution for mass market requires 
mass market and enterprises with flex reporting are not mass market 
yet.
> 
>   I believe most of reporting solutions I have seen are just tip of 
the iceberg, with services beneath to recover develpoment costs.
> 
>
> 
>   Sincerely,
> 
>   Anatole Tartakovsky
>   Farata Systems
> 
> 
>
> 
>   On Wed, Jul 16, 2008 at 11:34 AM, Derrick Anderson 
<[EMAIL PROTECTED]> wrote:
> 
>   amen brother, to be honest I like FlexReport- but it's not ready 
for an enterprise app.  it's a good starting point, but I really need 
something much more robust.
> 
>   i'm in the same boat, would love to provide all the great 
reportability and UI that has been touted but more and more i see 
people 'hacking' out flex reports in anything other than 'flex'.
> 
>   Adobe, where is the flex report builder???
> 
>   d. 
> 
>
> 
>   On Wed, Jul 16, 2008 at 11:10 AM, ansury2001 <[EMAIL PROTECTED]> wrote:
> 
>   I need some advice on whether FlexReport is ready for "real" use.
> 
>   I've already taken a look at it some, and other than it being a 
pain 
>   to setup and rather slow, I think it may work well enough. But I 
want 
>   to get some 3rd party opinions on others who have used it-- or, 
what 
>   other solutions have you come up with? Are most people just using 
3rd 
>   party tools like Oracle BI Publisher or Crystal Reports, 
resorting to 
>   that primitive "HTML round-trip" stuff? ^_^
> 
>   I also would like to provide users with report building 
capabilities. 
>   I know reporting is complex, but has anyone done anything 
similiar or 
>   had any experience creating a report builder in Flex? Something 
like 
>   ClearBI would be great. (Unfortunately ClearBI has no user base, 
no 
>   support, no community, extremely restrictive setup requirements, 
is 
>   almost impossible to setup and get working, isn't cheap 
(considering 
>   what you're getting), and seems like a VERY risky choice for 
>   reporting.)
> 
>   As a side rant...
>   Flex is not going to take off in an "enterprise environment" as 
Adobe 
>   seems to be claiming it is ready for until we can do reporting 
>   natively in the swf app, wit

[flexcoders] Re: Who is using FlexReport?

2008-07-17 Thread ansury2001
I understand that a "ready to go" solution, that requires minimal 
configuration/customization, will only meet a small number of 
developer's needs. I would imagine that most people, after getting 
such a ready to use solution working, would then start extending, 
overriding, and adding their own custom behaviors as needed (possible 
if it's a simple SWC library). It wouldn't work for everyone, but 
probably no single tool ever will.

If we had something in the form of a component library with 
fundamental and extendable functionality, I (not sure how many 
others) could probably get along fine with that. And while it still 
wouldn't meet needs for the most complex requirements, it's a hell of 
alot better than zilch.swc or null.swc, which is what we have now! ^_^

Of course this is all just wishful thinking, so for now I'll have to 
go back to determining how tough it would be to implement needed 
report customization functions using FlexReport for a preview (of the 
first few pages). But honestly unless something else emerges soon, 
we'll probably get stuck using Oracle BI Publisher. Boo

--- In flexcoders@yahoogroups.com, "Rick Winscot" <[EMAIL PROTECTED]> 
wrote:
>
> I agree whole-heartedly with Anatole. Reporting requirements are 
commonly
> very specific - and as I hear about what people want in a reporting 
toolkit.
> they describe 'the' solution as being generally purposeable which 
doesn't
> make any sense. If you want a flexible solution you are going to 
have to
> sacrifice some of the concreteness of the report - if you want a 
rock solid
> report you are going to have to get your hands dirty to make it 
happen. If
> you would rather buy a reporting solution. expect to cough up dough
> commensurate with the quality of the product. The big problem, as 
Anatole
> already surmised, is that people's eyes are typically much larger 
than their
> pocket-book.
> 
>  
> 
> Rick Winscot
> 
>  
> 
>  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Anatole Tartakovsky
> Sent: Wednesday, July 16, 2008 12:35 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Who is using FlexReport?
> 
>  
> 
> Report Wirter is a delicate topic. We wrote reporting solution in 
2006 -
> complete stack from database to end-user UI designer to the 
optimized client
> to the PDF. However, the current mind set in the enterprises - if 
it is
> third party product it has to be open source and free. So instead 
of pushing
> it as a product, we are packaging it as a service.
> 
> After all, building low cost solution for mass market requires mass 
market
> and enterprises with flex reporting are not mass market yet.
> 
> I believe most of reporting solutions I have seen are just tip of 
the
> iceberg, with services beneath to recover develpoment costs.
> 
>  
> 
> Sincerely,
> 
> Anatole Tartakovsky
> Farata Systems
> 
> 
>  
> 
> On Wed, Jul 16, 2008 at 11:34 AM, Derrick Anderson
> <[EMAIL PROTECTED]> wrote:
> 
> amen brother, to be honest I like FlexReport- but it's not ready 
for an
> enterprise app.  it's a good starting point, but I really need 
something
> much more robust.
> 
> i'm in the same boat, would love to provide all the great 
reportability and
> UI that has been touted but more and more i see people 'hacking' 
out flex
> reports in anything other than 'flex'.
> 
> Adobe, where is the flex report builder???
> 
> d. 
> 
>  
> 
> On Wed, Jul 16, 2008 at 11:10 AM, ansury2001 <[EMAIL PROTECTED]> wrote:
> 
> I need some advice on whether FlexReport is ready for "real" use.
> 
> I've already taken a look at it some, and other than it being a 
pain 
> to setup and rather slow, I think it may work well enough. But I 
want 
> to get some 3rd party opinions on others who have used it-- or, 
what 
> other solutions have you come up with? Are most people just using 
3rd 
> party tools like Oracle BI Publisher or Crystal Reports, resorting 
to 
> that primitive "HTML round-trip" stuff? ^_^
> 
> I also would like to provide users with report building 
capabilities. 
> I know reporting is complex, but has anyone done anything similiar 
or 
> had any experience creating a report builder in Flex? Something 
like 
> ClearBI would be great. (Unfortunately ClearBI has no user base, no 
> support, no community, extremely restrictive setup requirements, is 
> almost impossible to setup and get working, isn't cheap 
(considering 
> what you're getting), and seems like a VERY risky choice for 
> reporting.)
> 
> As a side rant...
> Flex is not going to take off in an "enterprise environment" as 
Adobe 
> seems to be claiming it is ready for until we can do reporting 
> natively in the swf app, without a ton of issues and work to do. I 
> don't care whether it's built into Flex, created separately by 
Adobe, 
> or built by a third party, but a real solution is going to be 
needed 
> very soon, before something like Silverlight exploits this 
weakness. 
> FlexReport won't be this solution no matter

[flexcoders] Re: Who is using FlexReport?

2008-07-17 Thread ansury2001
Well you're right that I *could* probably meet my basic requirements 
simply using pdf generation (although it'd be server side/java), 
although custom reporting options would still take some work. But 
actually showing the user a print preview of what they're going to 
see, within the running swf, would be so much better.

--- In flexcoders@yahoogroups.com, "Paul Andrews" <[EMAIL PROTECTED]> wrote:
>
> Yes and No.
> 
> I've built loads of reports using very expensive reporting software 
such as Business Objects and other dedicated reporting solutions that 
are often oriented towards reporting from data sources such as SQL 
databases. The cost megabucks.
> 
> Their main advantage is having a graphical report builder with 
sophisticated behaviour for data breaks and conditional layout 
changes. In general the client reporting requirements are usually 
fairly conservative in terms of look and feel - laying out lines of 
text with minimal graphics support.
> 
> In practice I suspect that 3/4 of the developers on Flexcoders 
could roll their own reports given a simplified  PDF generation SDK 
(that didn't involve a server round-trip).
> 
> Paul
>   - Original Message - 
>   From: Rick Winscot 
>   To: flexcoders@yahoogroups.com 
>   Sent: Thursday, July 17, 2008 6:07 AM
>   Subject: RE: [flexcoders] Who is using FlexReport?
> 
> 
>   I agree whole-heartedly with Anatole. Reporting requirements are 
commonly very specific - and as I hear about what people want in a 
reporting toolkit. they describe 'the' solution as being generally 
purposeable which doesn't make any sense. If you want a flexible 
solution you are going to have to sacrifice some of the concreteness 
of the report - if you want a rock solid report you are going to have 
to get your hands dirty to make it happen. If you would rather buy a 
reporting solution. expect to cough up dough commensurate with the 
quality of the product. The big problem, as Anatole already surmised, 
is that people's eyes are typically much larger than their pocket-
book.
> 
>
> 
>   Rick Winscot
> 
>
> 
>
> 
>   From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of Anatole Tartakovsky
>   Sent: Wednesday, July 16, 2008 12:35 PM
>   To: flexcoders@yahoogroups.com
>   Subject: Re: [flexcoders] Who is using FlexReport?
> 
>
> 
>   Report Wirter is a delicate topic. We wrote reporting solution in 
2006 - complete stack from database to end-user UI designer to the 
optimized client to the PDF. However, the current mind set in the 
enterprises - if it is third party product it has to be open source 
and free. So instead of pushing it as a product, we are packaging it 
as a service.
> 
>   After all, building low cost solution for mass market requires 
mass market and enterprises with flex reporting are not mass market 
yet.
> 
>   I believe most of reporting solutions I have seen are just tip of 
the iceberg, with services beneath to recover develpoment costs.
> 
>
> 
>   Sincerely,
> 
>   Anatole Tartakovsky
>   Farata Systems
> 
> 
>
> 
>   On Wed, Jul 16, 2008 at 11:34 AM, Derrick Anderson 
<[EMAIL PROTECTED]> wrote:
> 
>   amen brother, to be honest I like FlexReport- but it's not ready 
for an enterprise app.  it's a good starting point, but I really need 
something much more robust.
> 
>   i'm in the same boat, would love to provide all the great 
reportability and UI that has been touted but more and more i see 
people 'hacking' out flex reports in anything other than 'flex'.
> 
>   Adobe, where is the flex report builder???
> 
>   d. 
> 
>
> 
>   On Wed, Jul 16, 2008 at 11:10 AM, ansury2001 <[EMAIL PROTECTED]> wrote:
> 
>   I need some advice on whether FlexReport is ready for "real" use.
> 
>   I've already taken a look at it some, and other than it being a 
pain 
>   to setup and rather slow, I think it may work well enough. But I 
want 
>   to get some 3rd party opinions on others who have used it-- or, 
what 
>   other solutions have you come up with? Are most people just using 
3rd 
>   party tools like Oracle BI Publisher or Crystal Reports, 
resorting to 
>   that primitive "HTML round-trip" stuff? ^_^
> 
>   I also would like to provide users with report building 
capabilities. 
>   I know reporting is complex, but has anyone done anything 
similiar or 
>   had any experience creating a report builder in Flex? Something 
like 
>   ClearBI would be great. (Unfortunately ClearBI has no user base, 
no 
>   support, no community, extremely restrictive setup requirements, 
is 
>   almost impossible to setup and get working, isn't cheap 
(considering 
>   what you're getting), and seems like a VERY risky choice for 
>   reporting.)
> 
>   As a side rant...
>   Flex is not going to take off in an "enterprise environment" as 
Adobe 
>   seems to be claiming it is ready for until we can do reporting 
>   natively in the swf app, without a ton of issues and work to do. 
I 
>   don't care whether it's built into Flex

Re: [flexcoders] Help with ActionScript class in Flex 3

2008-07-17 Thread Maciek Sakrejda
How are you instantiating this class, Bruce? And what do you do with it
afterward? I believe that unless you add it to the stage, the object
will not dispatch the ENTER_FRAME event, so you won't see anything. The
easiest way to add it to the  stage in Flex (because FlexContainers
restrict their children to IUIComponent instances) is to create a
FlexSprite, add your component as a child of the FlexSprite, and add the
FlexSprite as a child of Application.application.

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

-Original Message-
From: brucewhealton <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Help with ActionScript class in Flex 3
Date: Thu, 17 Jul 2008 00:09:50 -

Hello all,
I'm not sure why this particular class is not working for me.
It's part of a tutorial. I'll include the AS below. I've been
pulling my hair out trying to figure this out. When I select debug,
it should display in the console repeatedly the text "enter frame." 
It prints what is above that but stops before calling the event
handler function called onEnterFrame. 
I don't know if I'm having a problem with the way I am setting
this up or using something in relation to the event handler. It is
part of a training on AS 3.0 with Flex, but the instructor is using
Flex 2.0 and I have Flex 3. Please help me figure this out. The file
is saved as ProgrammingBasics.as which matches the class name. 
Thanks so much in advance,
Bruce 

The code is as follows:
package {
import flash.display.MovieClip;
import com.lynda.as3et.programmingbasics.InventoryItem;
import flash.events.Event;

public class ProgrammingBasics extends MovieClip {

public function ProgrammingBasics() {
var item:InventoryItem = new InventoryItem("ActionScript 3.0
Essential Training", 1000);
trace(item.getProductName());
trace(item.getQuantity()); 
item.addItems(1000);
trace(item.getQuantity());
item.quantity = 100;
trace(item.quantity);
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}

private function onEnterFrame(event:Event):void {
trace('enter frame');
}

}
}

Below this we have the Inventory.as Actionscript class. I don't think
this would be needed because it seems that everything up to
addEventListener works but here it is anyway. Please ignore what is
below if it is not necessary.

package com.lynda.as3et.programmingbasics {

public class InventoryItem {

private var _productName:String;
private var _quantity:Number;

public function get quantity():Number {
return _quantity;
}

public function set quantity(value:Number):void {
if(value < 0) {
value = 0;
}
_quantity = value;
}

public function InventoryItem(productName:String, quantity:Number) {
_productName = productName;
_quantity = quantity;
}

public function getProductName():String {
return _productName;
}

public function getQuantity():Number {
return _quantity;
}

public function addItems(quantity:Number):void {
_quantity += quantity;
}
}
}




 




[flexcoders] Re: Array reference vs values

2008-07-17 Thread Amy
--- In flexcoders@yahoogroups.com, Darren Houle <[EMAIL PROTECTED]> wrote:
>
> Josh
>  
> Okay, so here's what I did... var person : Person = new Person(); 
person.wakeup = new Date();person.breakfast = new Date();person.lunch 
= new Date();person.dinner = null;person.bedtime = null; var wfArr : 
Array = new Array(); timeArr[0] = "wakeup";timeArr[1] 
= "breakfast";timeArr[2] = "lunch";timeArr[3] = "dinner";timeArr[4] 
= "bedtime"; var event : int;if (some criteria)  {  event = 2;  } 
if (some criteria) {  person[timeArr[event]] = null;  }and it 
works... person.lunch... aka person["lunch"]... was set to null... 
thanks, you rock!! Darren

You could also add some code in your setters that changes the related 
variables to the correct value when the property is set.

public function set wakeup(d:Date):void{
_wakeup = d;

if (setAllFlag){
  _breakfast=_lunch=_dinner=_bedtime=d;
}
}

for instance...

HTH;

Amy

HTH;

Amy



[flexcoders] Vertical Slider on clicking a down arrow

2008-07-17 Thread saatreddy
Hi,


I want to show a vertical slider when the user clicks an downward arrow 
symbol(for example as seen in flex builder properties window to change 
size of the window).Can you point to some examples or ideas?

Thanks



[flexcoders] Duplicate items in AdvancedDataGrid with GroupingCollection

2008-07-17 Thread berenger_kc
Hi,

For display a treeview, I use an AdvancedDataCollection with
GroupingCollection to display my ArrayCollection custom data.
But, I have fields with multiple data (i.e. : a list with one item or
more).

For now, a cell with a list is displayed like a string.



Example :

Source :
Column 1
Column 2
Column 3
Line 1
data 1
item 1, item 2, item 3
Line 2
data 2
item 2
Line 3
data 3
item 1, item 3


My actual result :
Column 3 + 1
Column 2
+ item 1, item 2, item 3

Line 1
data 1
  + item 2

Line 2
data 2
+ item 1, item 3

Line 3
data 3


I want:
Column 3 + 1
Column 2
+ item 1

Line 1
data 1
Line 3
data 3
  + item 2

Line 1
data 1
Line 2
data 2
  + item 3

Line 1
data 1
Line 3
data 3





Do you know how to duplicate item and select data to display ?



[flexcoders] LineChart display bug

2008-07-17 Thread netdeep

I wanted to create a bar across the top of my App and since I wanted it across 
the whole 
thing, I set the width to 100%.  This worked fine until I added charts to my 
App via 
actionscript.  When I add one chart, it's still ok, but when I add 2 or more 
charts.  The top 
bar shifts left about 10 pixels and creates a gap on the left.  Furthermore, a 
horizontal 
scrollbar appears which will not go away. 


Try this short, easy application code out to reproduce the problem.  It seems 
like this is a 
BUG in flex, but if you can figure out a way around it, please let me know.



http://www.adobe.com/2006/mxml"; 
  xmlns:custom="components.*" paddingLeft="0" paddingRight="0" 
  horizontalAlign="center" layout="vertical">
  

  
  


  





[flexcoders] What does this mean Warning: 3D DisplayObject will not render.

2008-07-17 Thread Sherif Abdou
 Warning: 3D DisplayObject will not render.  Its dimensions (2647, 8584) are 
too large to be drawn.
I am using the Latest Build of Flex 4, Now I keep getting this in the Console 
Panel and that is it. Everything works and compiles and my 3D object appears on 
the screen. However, There are two copies of the object. I have no idea what to 
change or where to find the error. It did work with Flex 3(Latest Build).


http://www.adobe.com/2006/mxml";  layout="absolute"
 width="500" height="500" backgroundColor="0x00" color="0x00" >






  

RE: [flexcoders] Is there a way to set the starting index of a DataGrid

2008-07-17 Thread Alex Harui
You might be able to customize a custom collection from my blog

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jlopes151
Sent: Thursday, July 17, 2008 5:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Is there a way to set the starting index of a
DataGrid

 

What I want is to load data from an xml file, skipping over the first 
node. I want to use the first node of the xml data as header info, 
were the rest of the file contians the data grid data.

Thanks for any help

 



RE: [flexcoders] Huge File Size w/ Embedded Font

2008-07-17 Thread Alex Harui
Folks in China try to embed their entire char set and have the same
complaint.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Daniel Freiman
Sent: Thursday, July 17, 2008 7:01 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Huge File Size w/ Embedded Font

 

Unfortunately, I'm already doing both of those.  Since you're response
didn't start of with "that's weird" I'm assuming this type of behavior
is a known edge case and I shouldn't be looking for a bug somewhere.
Does anyone else have any creative/outside the box solutions (a way to
smooth font instructions to simplify a font, etc)?

- Daniel Freiman

On Thu, Jul 17, 2008 at 1:42 AM, Alex Harui <[EMAIL PROTECTED]
 > wrote:

Trimming out characters you don't need is your only hope, or loading the
font "later" if you don't need it right away

 



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com  ]
On Behalf Of Daniel Freiman
Sent: Wednesday, July 16, 2008 12:47 PM
To: flexcoders
Subject: [flexcoders] Huge File Size w/ Embedded Font

 

I have a a 300k true type font that I want to load into my app via a
RSL.  When I do the embedding in Flash 8 or 9 to create the RSL, the
movie size jumps 1.2 megs.  I think the reason for this is that it is a
handwriting font and the font characters are incredibly complicated (the
"I" takes 280 instructions to render).  I've trimmed the included
characters down as much as I can.  Does anyone else have any suggestions
of how to get this size down?  Or is there an improvement on the
instructions in the docs? Or are there any Flash resources that may be
better able to answer this question? 

- Daniel Freiman

 

 



RE: [flexcoders] Re: Flex Efficiency

2008-07-17 Thread Alex Harui
Yes.  A SWF will always have more overhead than a simple JPG or GIF

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stldvd
Sent: Thursday, July 17, 2008 7:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex Efficiency

 

Is this true regardless of whether you're loading the swfs as swfs 
(swfloader) or just as the source for image controls?

--- In flexcoders@yahoogroups.com 
, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> SWFs have the potential to do timeline animations and thus require 
more
> player overhead that static images or event animated GIFs. I don't 
know
> the limits off-hand even if there are any, but if you pile up 100 of
> them on top of each other, I wouldn't expect it to render that well.
> You want to add instances of classes, not whole SWFs. Look into how
> modules work.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Alen Balja
> Sent: Saturday, June 21, 2008 9:13 PM
> To: flexcoders@yahoogroups.com  
> Subject: Re: [flexcoders] Flex Efficiency
> 
> 
> 
> Thanks, Alex. Unfortunately that is the main problem as I let users 
add
> graphics on the fly to create their artwork. And graphics are small 
swf
> animations, really simple ones. How is adding swf's different in 
this
> regard than adding jpegs, gifs or png's on the fly? Also is there a
> limit set? Because after adding lots of them, some of them just 
start to
> disappear and all I do is stack them with addChild(). Can we expect 
same
> performance issues when adding lots of visual objects such as 
buttons,
> canvases, etc...? If I add 100 simple swfs and 100 button controls, 
will
> it behave the same?
> 
> 
> 
> 
> 
> On Sun, Jun 22, 2008 at 3:37 AM, Alex Harui <[EMAIL PROTECTED]
>  > wrote:
> 
> There are no workarounds. Good design for Flash minimizes use of
> resources. The profiler can help you tune things, but if you use 
lots
> of SWFs you're going to pay a price. However, that may not be your 
main
> problem, and the profiler can help you determine that.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 

>
> [mailto:flexcoders@yahoogroups.com
  

> ]
> On Behalf Of Alen Balja
> Sent: Saturday, June 21, 2008 3:57 AM
> To: flexcoders@yahoogroups.com 

> 
> Subject: Re: [flexcoders] Flex Efficiency
> 
> 
> 
> Alex, do you have any more info on the subject, especially what are 
the
> workarounds? I too am using lots of really tiny and simple 
external swf
> animations and performance is really really bad. If I remember 
correctly
> it's much worse than Flash Player 7. 
> 
> 
> 
> The profiler will help you find inefficiencies in your app.
> 
> 
> 
> Loading lots of SWFs is, of course, going to eat resources.
>

 



  1   2   >