Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Sam Lai
I think the issue here is that if Adobe/MS used SVG as a base instead
of their proprietary XML dialects, then they won't be able to innovate
and implement new features as quickly.

If they added proprietary extensions to SVG, there'll be a massive
backlash as seen with IE and its CSS, JS and HTML extensions.

If they try to get it into the standard, it will take ages to get it
through the committee, and they will lose the competitive advantage of
developing that feature in the first place.

Unfortunately the standards process just does not keep up with
innovation. But personally, I don't think it should - details should
be thrashed out, and issues should be resolved in standards,
particularly those that could not be foreseen during the initial
implementation.

I'm a believer of what Sebastian said - "Competition is what drives
technology forward, standards come after the war to clean up the mess,
but they don't innovate."

What would be nice would be a SVG container for Flex/SL, and one that
can reach out into the app and allow the app to reach in.

2009/1/27 Guy Morton :
> Both Adobe and MS could have used SVG as the basis for Flex and Silverlight,
> but both prefer to lock people into proprietary approaches. Just because SVG
> doesn't do everything Flash/Flex can do is no reason to use all the things
> it DOES do (it has styling and scripting support for a start...).
> Having used both SVG and Flex, I can tell you the fundamentals are the same.
> Sure Flex has a much better component library and the flash player has
> better penetration, but most of the things I currently do in Flex are doable
> in SVG.
> Making the Flex SDK open source is a strategic decision to capture more
> market share. It has nothing to do with supporting W3C standards. It is only
> about funneling more developers into delivering for the Flash platform in
> the face of MS and Silverlight.
> I think you are seriously misguided about the role of standards. HTML seems
> to have worked pretty well. I don't see MS or Adobe trying to do their own
> versions of that (though they may screw up their support for it at times,
> yes IE is dreadful)...
> Guy
>
>
> On 27/01/2009, at 9:30 AM, Sebastien ARBOGAST wrote:
>
> Like all W3C standards, SVG is just one tiny little piece of the puzzle. The
> Flash platform or silverlight offer much more than that of course. Component
> libraries, styling, scripting support, system integration, remoting support,
> IDEs, and all the accessories that, like it or not, only a big company can
> produce.
>
> Competition is what drives technology forward, standards come after the war
> to clean up the mess, but they don't innovate.
> With the iPhone being so closed, at least Android and Palm have a big card
> to play on openness to compete.
> But wishing for one silver bullet technology is not a dream, it is not even
> a utopia, it's like wishing for hell on earth.
> Oh, and by the way, the Flex SDK is totally Open Source, but this has
> already been repeated thousands of times so I guess you know.
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>
>
> 2009/1/26 Guy Morton 
>>
>> Mm..yes, but then again Apple is supporting SVG on the iPhone...Adobe
>> hasn't exactly covered itself in glory with its support for SVG. Of course
>> since they bought Macromedia they no longer have any strategic use for it.
>> And now we have Silverlight from MS we have THREE technologies that are
>> essentially the same - two proprietory and one a W3C standard.
>>
>> Sigh. It's the usual mess we get when corporations exercise their
>> competitive impulses.
>> Wouldn't it have been nice to have an open vector animation standard (SVG)
>> that would play in a commonly deployed runtime (Flash)? Then we could all
>> develop once and have native playback in browsers that support SVG, player
>> support for those that don't and we'd be able to target the iPhone.
>> That of course will never happen. :-)
>> Guy
>>
>>
>> On 27/01/2009, at 12:23 AM, Wally Kolcz wrote:
>>
>> Could not have put it any better myself.
>>
>> 
>> From: "Paul Andrews" 
>> Sent: Monday, January 26, 2009 4:07 AM
>> To: flexcoders@yahoogroups.com
>> Subject: Re: [flexcoders] Flex. AIR and IPhone
>>
>>
>> LOL, yes - the iphone only supports two gestures for flex, flash and air
>> and they involve the use of one or two fingers..
>>
>> - Original Message -
>> From:Sebastien ARBOGAST
>> To:flexcoders@yahoogroups.com
>> Sent: Monday, January 26, 2009 11:28 AM
>> Subject: Re: [flexcoders] Flex. AIR and IPhone
>> You can start by a prayer, because the Flash runtime is not available on
>> the iPhone in any form, including AIR.
>> And it will probably never be because of commercial and strategic reasons:
>> the day people can deploy Flex applications to the iPhone, the App Store is
>> as good as dead... sort of.
>> Sébastien Arbogast
>>
>> http://sebastien-arbogast.com
>>
>>
>> 2009/1/26 thelordsince1984 
>>>
>>> Hi,
>>>
>>> i would cre

[flexcoders] Running Unit tests on build server

2009-01-26 Thread Errol Thompson
I am looking for a way of being able to run unit tests on a build server
that is not running a GUI environment. Is there an option on the Flash
player that will cause it to run without attempting to open a window. The
build server is a Linux based box.

Thanks for your help

-
Errol Thompson
Kiwi-ET Computing Education Research
Wellington, New Zealand
Phone: +64 21 210 1662
E-Mail: kiwiet (at) acm.org
kiwiet (at) computer.org
Web: www.teach.thompsonz.net
-




[flexcoders] RE: PHP Remoting and value objects

2009-01-26 Thread SJF
Try:

var testVO:TestVO = e.result.serverInfo.initialData as TestVO;
(depending on how you've constructed your data for return from php)

Also, throw a breakpoint into your app where the remote comes back - then
take a look inside the *result* object.

You'll have the *result.serverInfo* object, which itself contains *
initialData*, *serviceName*, *columnNames* among others.

Cheers.


RE: [flexcoders] ComboBox selectedIndex revisited

2009-01-26 Thread Tracy Spratt
You have a lot of stuff happening in there.  Did you debug it to see why
it was not working? Particularly the "computeSelectedDateRangeIndex()"
function?  Was it being called when you expected?  

 

Tracy Spratt 
Lariat Services 

Flex development bandwidth available 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Richard Rodseth
Sent: Monday, January 26, 2009 4:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] ComboBox selectedIndex revisited

 

I see there was another long thread about this problematic component
back in October (Dan Pride)

I don't see why this shouldn't work:

  

where selectedDateRangeIndex() scans the available ranges, and
this.selectedDateRangePreset and this.availableRanges are bindable. But
it doesn't. When the component is first created, the combobox appears
with the first item selected (sometimes).

I believe Dan's workaround involved callLater(). I just had some success
with the following: 



where on onComboBoxCreation() calls computeSelectedIndex() and sets
dateRangePresetCombo.selectedIndex.

Doing it  on creationComplete rather than "added" results in flicker as
the item changes from item1, but using the added event seems to do the
trick.

I'm pretty sure there's a bug in ComboBox. Probably not invalidating
properties or the display list when it should.

Hope this helps someone, and please set me straight if I'm wrong.

 



[flexcoders] Re: How to plot Standard Deviation and Mean value on Flex Line Chart

2009-01-26 Thread nyadav_ait
Hi Amy,

Thanks for your quick reply. Data for MEAN and STANDARD DEVIATION i
have but my problem is i do not want these two as Series of graph for
plotting them. They should be just straight horizontal lines just for
benchmarking with real series in graph.

Does Flex Line Chart support such kind of plotting if i provide such
data to chart ??

--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, "nyadav_ait"  wrote:
> >
> > Hi all,
> > 
> > I had googled a lot but didn't found any information for displaying a
> > line of MEAN and STANDARD DEVIATION in a line chart using ActionScript
> > 3.0..please help me..i need it urgently
> 
> Look in the documentation for the database where your data is stored.  
> It should have functions for calculating this, then just do whatever 
> you normally do to return the data back to Flex.
> 
> HTH;
> 
> Amy
>




[flexcoders] html editor componrt need?

2009-01-26 Thread markflex2007
I hope the component can switch between source and view mode.

we can see html result with view mode
we can see html souce code with source mode

Do you know if a flex component can do this?and URL.

Thanks

Mark



[flexcoders] Re: How to get data from many rows in DataGrid?

2009-01-26 Thread markflex2007

public function get selectedItems():Array

what the Array look like?

I have not see a demo



[flexcoders] Re: Locale for jp_JP added to compiler arguments

2009-01-26 Thread lampei
I guess I'll answer my own question on this one as I found the
solution.  If you go to
C:\Program Files\Adobe\Flex Builder 3
Plug-in\eclipse\plugins\com.adobe.flexbuilder.flex_3.0.214193\config.xml
(or whatever your most recent update of Flex Builder is)
There should be a line in there with ja_JP
If you change that to en_US
it will change the locale to en_US each time instead of ja_JP

I'm still not completely sure what happened, but I'm wondering if one
of the builds for the plugin update that got pushed to Adobe's server
still had the ja_JP reference in the en_US build.

--- In flexcoders@yahoogroups.com, "lampei"  wrote:
>
> I'm not sure what happened, but ever since I installed (I think
> anyway) the update for Flex Builder to 3.0.2, in my compiler
> arguments, I get -locale ja_JP added instead of en_US  Anyone know
> where I can set this to something else (it keeps throwing an error
> when I initially load the project until I change it to en_US)?
>




Re: [flexcoders] asdoc

2009-01-26 Thread Rich Tretola
Thanks Stephen, that did the trick

On Mon, Jan 26, 2009 at 4:33 PM, Stephen Gilson  wrote:

>Are you using -doc-sources to reference your source code? Try compiling
> it with -doc-classes or doc-namespaces instead, along with setting your
> source path.
>
>
>
> Stephen
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Rich Tretola
> *Sent:* Monday, January 26, 2009 3:13 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* Re: [flexcoders] asdoc
>
>
>
> col: 1 Error: The public attribute can only be used inside a package.
>
>
>  On Mon, Jan 26, 2009 at 3:06 PM, Stephen Gilson 
> wrote:
>
> We use that technique with ASDoc builds all the time.
>
>
>
> What is the error that you are getting from ASDoc?
>
>
>
> Stephen
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Rich Tretola
> *Sent:* Monday, January 26, 2009 2:08 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] asdoc
>
>
>
> I have a bunch of classes that are extending from base flex components.
> They also all share 5 properties and a few methods. So, rather that adding
> the shared properties and methods to each file. I used the old include
> "SharedInclude.as"; statement within each class to include an ActionScript
> file (not a class). All is happy and all compiles nicely. However, asdoc
> doesn't like this approach and pukes on the included properties when trying
> to create documentation. Anyone else ever tried something like this?
>
>
> Rich
>
>
>
>   
>


[flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread markgoldin_2000
Yes, I can create it in the same common component library.
--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> - Original Message - 
> From: "markgoldin_2000" 
> To: 
> Sent: Monday, January 26, 2009 5:35 PM
> Subject: [flexcoders] Re: Base one mxml component on another from 
Library
> 
> 
> > here is my simplified component definition:
> > 
> >  > xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute" width="400" height="300"
> > xmlns:modulecode="/UFDCommonLib/src/modulecode">
> > 
> >
> > But that does not work.
> 
> Are you sure the path is correct - can you create popupTileWindow 
elsewhere? 
> What is the error?
> 
> Paul
> 
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> - Original Message - 
> >> From: "markgoldin_2000" 
> >> To: 
> >> Sent: Monday, January 26, 2009 5:26 PM
> >> Subject: [flexcoders] Base one mxml component on another from
> > Library
> >>
> >>
> >> >I have a project with a common component library added to it as
> > SWC.
> >> > I am trying to create a mxml component in my project that 
would be
> >> > based on a component from the library. How do I do that?
> >>
> >> Components are based on the component that's used at the top 
level
> > in the
> >> component definition. I would assume it's just a case of using 
the
> > component
> >> in the swc as the top component of your new component.
> >>
> >> Paul
> >>
> >> >
> >> > Thanks
>




[flexcoders] Locale for jp_JP added to compiler arguments

2009-01-26 Thread lampei
I'm not sure what happened, but ever since I installed (I think
anyway) the update for Flex Builder to 3.0.2, in my compiler
arguments, I get -locale ja_JP added instead of en_US  Anyone know
where I can set this to something else (it keeps throwing an error
when I initially load the project until I change it to en_US)?



[flexcoders] Re: Explain "override public function"

2009-01-26 Thread Amy
--- In flexcoders@yahoogroups.com, Fotis Chatzinikos 
 wrote:
>
> Amy is right,
> 
> the code was:
> 
> override public function set data(value:Object):void
> {
>super.data = value;
> }
> 
> maybe its preferable to have :
> 
> override public function set data(value:Object):void
> {
>if (value != null)
>{
>   super.data = value;
>}
> }
> 
> 
> What i usually do is check for null and then if not do any custom 
logic:
> 
> override public function set data(value:Object):void
> {
>if (value != null)
>{
>   super.data = value;
> 
>   //pseudo
>   if (value is supposed to be shown in red)
>   {
>  make the background red
>   }
>   else
>   {
>   //reset component to solve renderer re-use issues
>   reset color to Grey
>   }
>}
> }

This makes it impossible to set the data property to null.  There 
might be some cases where you might actually want to do that (for 
instance if you wanted to have something that visually matched your 
renderers, but wasn't included in a List-based component.  So you 
could potentially use a component that could be used as a renderer or 
not and reuse the data property to populate it.

It seems to me that you're probably checking for null to account for 
the occasions when set data is called before createChildren(), which 
sometimes, but not always, coincides with null data.  It seems like 
it's safer to either check for the child to be null or to call 
invalidateProperties() and put your logic in commitProperties, which 
always happens after createChildren.

JMO;

Amy



Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Guy Morton

Yes, wouldn't it be nice if we all learned to live together...

Any collection of humans is bound to be generate conflict. "Delivering  
shareholder value" is the biggest progenitor of evil in the world  
today, however, and causes far more damage to the world than a few  
geeks ever could.


Anyway...I'm not suggesting that private companies shouldn't develop  
cool stuff that's not based on a standard. I'm just suggesting where a  
standard *does* exist, and is worth supporting it ought to be  
supported. SVG could have formed the core of both flex and  
sliverlight, but the desire to dominate the market with a proprietary  
solution is a powerful motivator.


Which is not to say I don't like Flex and the cool dudes at Adobe and  
Macromedia who made it possible. I'm just not starry-eyed about  
corporate motivations, and while I'm disappointed I can't leverage the  
flash player on the iphone, I'm somewhat more positive towards Apple  
because they are supporting SVG on there instead.


Anyway, I'll shut up now. :-)

Guy


On 27/01/2009, at 11:46 AM, Doug McCune wrote:

> I think you are seriously misguided about the role of standards.  
HTML seems to have worked pretty well. I don't see MS or Adobe  
trying to do their own versions of that (though they may screw up  
their support for it at times, yes IE is dreadful)...


And ECMAScript 4 worked out just grand didn't it? If Adobe waits for
all the standards zealot children to stop their infighting and crying
just to improve ActionScript or Flash, that's the day I learn a new
technology.

Doug






RE: [flexcoders] LCDS : Managed associations - creating new Items

2009-01-26 Thread Jeff Vroom
Just adding an item to a managed collection will implicitly queue up a "create" 
for the child item.If you call "createItem" it also adds a new client 
reference just for that specific item.   So usually you want to avoid calling 
createItem unless that item lives all by itself.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Monday, January 26, 2009 3:16 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS : Managed associations - creating new Items


Hello,
Another Livecycle question..

I have a managed collection of Companies. Eeach company contains a list
of employees.
The Company-object and Employee-object are Managed objects, tagged with
the [Managed] metadata tag. They each have
an associated destination on the server (configured in the
data-management-config.xml). There exists a one-to-many managed
association between
these two objects.

When I add a new Employee to the managed arraycollection "companies"
like this :

Employee newEmployee = new Employee("John Smith", "Engineer");
companies.addItem(newEployee);
companyDS.commit();

Should this result in a createItem() in the EmployeeAssembler ?
Or should I explicitly call employeeDS.createItem(newEployee); ?

Thanks for your help..
Bart

<><>

RE: [flexcoders] LCDS : Number of clients limitation

2009-01-26 Thread Jeff Vroom
In terms of memory alone, these objects seem pretty small so I don't think 
you'd hit any memory limitations even with 1000 concurrent users using the same 
server. You'd have at most 1000 rooms and 1000 users - each of which is 
relatively small.You just won't end up with that much memory per server.   
And this memory gets split between servers when you cluster which would let it 
scale at least in terms of memory usage.

The other factor is to estimate the total number of messages per second.
Each server can process hundreds of messages/second so unless the activity of 
each user was pretty high, I'd expect you'd be fine with 1000 users.This 
does not scale quite as well in a cluster when using the LCDS "autoSync" mode 
but you can support in the small 1000s of messages/second cluster wide.

Of course sizing is a difficult thing to predict as one slow-code path on your 
server can introduce a bottleneck.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Monday, January 26, 2009 2:02 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS : Number of clients limitation


A question for Jeff Vroom;

Hi Jeff,

In an article of yours, you say about Data Management Services : "Data
Management Services keeps the list of client IDs that are listening for
changes for a given data set in memory so as the number of clients
grows, the amount of memory required to hold this in the server
increases. As changes are made, the server pushes these changes to all
clients, which can become slow as the number of clients that need to
receive this data increases. Thus, there will be limitations to the
size of the data sets and number of clients that you can manage in a
Flex application that uses this feature."

Suppose you have a managed object Room with 20 primitive type properties
and a managed association to a User-object that has 10 primitive type
properties.
Each Flex client has a managed arraycollection of 2 or 3 rooms.

How much clients will my server be able to manage ? hundreds, thousands ?

Kind regards
Bart Ronsyn

<><>

Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Doug McCune
> I think you are seriously misguided about the role of standards. HTML seems 
> to have worked pretty well. I don't see MS or Adobe trying to do their own 
> versions of that (though they may screw up their support for it at times, yes 
> IE is dreadful)...

And ECMAScript 4 worked out just grand didn't it? If Adobe waits for
all the standards zealot children to stop their infighting and crying
just to improve ActionScript or Flash, that's the day I learn a new
technology.

Doug


[flexcoders] Re: Flex. AIR and IPhone

2009-01-26 Thread Pete Appleby
Guy, I agree with your comments. I've been in computing for 30 years,
and it is unfortunate, but in my opinion you hit the nail on the head. 

The old "Not Invented Here" syndrome is at work. Microsoft can keep
SilverFish and IE. 

I am sticking with Flex and AIR. The day the Microsoft buys Adobe is
the day that I retire.

Sorry for the rant!


Pete



Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Guy Morton
Both Adobe and MS could have used SVG as the basis for Flex and  
Silverlight, but both prefer to lock people into proprietary  
approaches. Just because SVG doesn't do everything Flash/Flex can do  
is no reason to use all the things it DOES do (it has styling and  
scripting support for a start...).


Having used both SVG and Flex, I can tell you the fundamentals are the  
same. Sure Flex has a much better component library and the flash  
player has better penetration, but most of the things I currently do  
in Flex are doable in SVG.


Making the Flex SDK open source is a strategic decision to capture  
more market share. It has nothing to do with supporting W3C standards.  
It is only about funneling more developers into delivering for the  
Flash platform in the face of MS and Silverlight.


I think you are seriously misguided about the role of standards. HTML  
seems to have worked pretty well. I don't see MS or Adobe trying to do  
their own versions of that (though they may screw up their support for  
it at times, yes IE is dreadful)...


Guy


On 27/01/2009, at 9:30 AM, Sebastien ARBOGAST wrote:

Like all W3C standards, SVG is just one tiny little piece of the  
puzzle. The Flash platform or silverlight offer much more than that  
of course. Component libraries, styling, scripting support, system  
integration, remoting support, IDEs, and all the accessories that,  
like it or not, only a big company can produce.


Competition is what drives technology forward, standards come after  
the war to clean up the mess, but they don't innovate.
With the iPhone being so closed, at least Android and Palm have a  
big card to play on openness to compete.
But wishing for one silver bullet technology is not a dream, it is  
not even a utopia, it's like wishing for hell on earth.


Oh, and by the way, the Flex SDK is totally Open Source, but this  
has already been repeated thousands of times so I guess you know.


Sébastien Arbogast

http://sebastien-arbogast.com


2009/1/26 Guy Morton 
Mm..yes, but then again Apple is supporting SVG on the  
iPhone...Adobe hasn't exactly covered itself in glory with its  
support for SVG. Of course since they bought Macromedia they no  
longer have any strategic use for it. And now we have Silverlight  
from MS we have THREE technologies that are essentially the same -  
two proprietory and one a W3C standard.



Sigh. It's the usual mess we get when corporations exercise their  
competitive impulses.


Wouldn't it have been nice to have an open vector animation standard  
(SVG) that would play in a commonly deployed runtime (Flash)? Then  
we could all develop once and have native playback in browsers that  
support SVG, player support for those that don't and we'd be able to  
target the iPhone.


That of course will never happen. :-)

Guy



On 27/01/2009, at 12:23 AM, Wally Kolcz wrote:


Could not have put it any better myself.

From: "Paul Andrews" 
Sent: Monday, January 26, 2009 4:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex. AIR and IPhone



LOL, yes - the iphone only supports two gestures for flex, flash  
and air and they involve the use of one or two fingers..

- Original Message -
From:Sebastien ARBOGAST
To:flexcoders@yahoogroups.com
Sent: Monday, January 26, 2009 11:28 AM
Subject: Re: [flexcoders] Flex. AIR and IPhone

You can start by a prayer, because the Flash runtime is not  
available on the iPhone in any form, including AIR.
And it will probably never be because of commercial and strategic  
reasons: the day people can deploy Flex applications to the iPhone,  
the App Store is as good as dead... sort of.


Sébastien Arbogast

http://sebastien-arbogast.com


2009/1/26 thelordsince1984 
Hi,

i would create an air application and deploy it into iphone
environment and allow touchscreen gestures.
How can i start?

Thanks a lot

Regards

Lorenzo















RE: [flexcoders] LCDS : Managed Associations - Null identity map for destination

2009-01-26 Thread Jeff Vroom
That error should definitely not be happening in this situation. Can you 
send the client and server debug logs for this case? You might try a 
different mode for your association (i.e. the room.users many-to-many tag)... 
if it is load-on-demand=true or using paging, try turning that off.  If it does 
not have lazy=true, you might try adding that attribute.

Jeff

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Besite - Bart
Sent: Monday, January 26, 2009 1:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] LCDS : Managed Associations - Null identity map for 
destination


Hello,

I have a managed assocation between two objects.  I have rooms and users. There 
is a one-to-many relationship between rooms and users.

When a user wants to join a Room, he first requests the Room-object using 
getItem() :

public function joinRoom(roomId:int):void
{
var responder:mx.rpc.Responder = new 
mx.rpc.Responder(resultHandler, faultHandler)
itemRef = ds.getItem({roomId:roomId});
itemRef.addResponder(responder);
}

Then in the responder method, I add a new User-object to the the 
arrayCollection users within the Room-object.
I don't give this new user an id, because the id is generated on the server :

private function resultHandler(event:ResultEvent):void
{
var room:Room = event.result as Room;

var user:User = new User();
user.roomId = room.id;
user.name = this.nickName;

room.users.addItem(user);
ds.commit();
 }

This results in the following error server side :

Null identity map for destination: user:java.lang.Throwable
at flex.data.ItemIdentity.toItemIdentity(ItemIdentity.java:128)
at flex.data.SequenceManager.toItemIdentity(SequenceManager.java:3916)
at flex.data.SequenceManager.toItemIdentities(SequenceManager.java:3930)
at flex.data.SequenceManager.getDSidsHeader(SequenceManager.java:1088)
at 
flex.data.SequenceManager.getSequencedMessage(SequenceManager.java:1663)
at 
flex.data.SequenceManager.getPageFromSequence(SequenceManager.java:1028)
at flex.data.DataService.serviceMessage(DataService.java:458)
at 
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:1495)
at 
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:882)
at 
flex.messaging.endpoints.RTMPConnection.handleTCCommand(RTMPConnection.java:722)
at 
flex.messaging.endpoints.RTMPConnection.serviceTCMessage(RTMPConnection.java:1021)
at 
flex.messaging.endpoints.RTMPConnection.doRead(RTMPConnection.java:514)
at 
flex.messaging.endpoints.RTMPProtocolHandler.doRead(RTMPProtocolHandler.java:123)
at 
flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:778)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:665)
at 
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:690)
at java.lang.Thread.run(Thread.java:619)

How can I prevent this error ? In the data-management-config.xml the 
user-destination has the following identity property : 

PS. Earlier in my application I added a new user-object to a newly created Room 
and I didn't get this error

Kind regards,
Bart





<><>

[flexcoders] Dynamically loading image from URL

2009-01-26 Thread pratikshah83
Hi Guys, 

I want to have a custom image as the itemrenderer for plot chart...
just like the butterfly image here
http://livedocs.adobe.com/flex/3/html/help.html?content=charts_formatting_12.html.


But I want to load image dynamically from an URL, and not embed it in. 

Can any one help me with this. I tried using loader but loader.content
is null. 

Thanks in advance.

-Pratik 



Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Sebastien ARBOGAST
Like all W3C standards, SVG is just one tiny little piece of the puzzle. The
Flash platform or silverlight offer much more than that of course. Component
libraries, styling, scripting support, system integration, remoting support,
IDEs, and all the accessories that, like it or not, only a big company can
produce.Competition is what drives technology forward, standards come after
the war to clean up the mess, but they don't innovate.
With the iPhone being so closed, at least Android and Palm have a big card
to play on openness to compete.
But wishing for one silver bullet technology is not a dream, it is not even
a utopia, it's like wishing for hell on earth.

Oh, and by the way, the Flex SDK is totally Open Source, but this has
already been repeated thousands of times so I guess you know.

Sébastien Arbogast

http://sebastien-arbogast.com


2009/1/26 Guy Morton 

>   Mm..yes, but then again Apple is supporting SVG on the iPhone...Adobe
> hasn't exactly covered itself in glory with its support for SVG. Of course
> since they bought Macromedia they no longer have any strategic use for it.
> And now we have Silverlight from MS we have THREE technologies that are
> essentially the same - two proprietory and one a W3C standard.
>
> Sigh. It's the usual mess we get when corporations exercise their
> competitive impulses.
>
> Wouldn't it have been nice to have an open vector animation standard (SVG)
> that would play in a commonly deployed runtime (Flash)? Then we could all
> develop once and have native playback in browsers that support SVG, player
> support for those that don't and we'd be able to target the iPhone.
> That of course will never happen. :-)
>
> Guy
>
>
> On 27/01/2009, at 12:23 AM, Wally Kolcz wrote:
>
> Could not have put it any better myself.
>
> --
> *From*: "Paul Andrews" 
> *Sent*: Monday, January 26, 2009 4:07 AM
> *To*: flexcoders@yahoogroups.com
> *Subject*: Re: [flexcoders] Flex. AIR and IPhone
>
>
> LOL, yes - the iphone only supports two gestures for flex, flash and air
> and they involve the use of one or two fingers..
>
> - Original Message -
> *From:*Sebastien ARBOGAST 
> *To:*flexcod...@yahoogroups.com
> *Sent:* Monday, January 26, 2009 11:28 AM
> *Subject:* Re: [flexcoders] Flex. AIR and IPhone
>
> You can start by a prayer, because the Flash runtime is not available on
> the iPhone in any form, including AIR.And it will probably never be
> because of commercial and strategic reasons: the day people can deploy Flex
> applications to the iPhone, the App Store is as good as dead... sort of.
>
> Sébastien Arbogast
>
> http://sebastien-arbogast.com
>
>
> 2009/1/26 thelordsince1984 
>
>> Hi,
>>
>> i would create an air application and deploy it into iphone
>> environment and allow touchscreen gestures.
>> How can i start?
>>
>> Thanks a lot
>>
>> Regards
>>
>> Lorenzo
>>
>>
>
>
>
>  


[flexcoders] PHP Remoting and value objects

2009-01-26 Thread Sceneshift

Hey guys,

I'm a little confused over how to get myself from WebOrb PHP into a VO in my
Flex application. I am getting my result sent to me from my php script which
is returned as an object, and I'm trying to set this result as a value
object like so:

var testVO:TestVO = e.result as TestVO;

This isn't working, which confuses me. Do I have to run through each result
in order to type it accordingly? I thought one of the benefits of remoting
was that we didn't need to type our results?

Any help would be appreciated!
-- 
View this message in context: 
http://www.nabble.com/PHP-Remoting-and-value-objects-tp21674002p21674002.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] writing a unit test to read a DataGrid

2009-01-26 Thread mitchgrrt
I want to write a unit test that does the following:

- put some data into the model that will be used by a DataGrid
- read the information back from the DataGrid
- compare the expected and actual results

I'm using FLUINT but am having a hard time because there doesn't seem 
to be any API to read the information from a DataGrid.  Has anybody 
succeeded in doing this, either with FLUINT or with FlexUnit?  Thanks.



[flexcoders] ComboBox selectedIndex revisited

2009-01-26 Thread Richard Rodseth
I see there was another long thread about this problematic component back in
October (Dan Pride)

I don't see why this shouldn't work:

  

where selectedDateRangeIndex() scans the available ranges, and
this.selectedDateRangePreset and this.availableRanges are bindable. But it
doesn't. When the component is first created, the combobox appears with the
first item selected (sometimes).

I believe Dan's workaround involved callLater(). I just had some success
with the following:

  

where on onComboBoxCreation() calls computeSelectedIndex() and sets
dateRangePresetCombo.selectedIndex.

Doing it  on creationComplete rather than "added" results in flicker as the
item changes from item1, but using the added event seems to do the trick.

I'm pretty sure there's a bug in ComboBox. Probably not invalidating
properties or the display list when it should.

Hope this helps someone, and please set me straight if I'm wrong.


RE: [flexcoders] asdoc

2009-01-26 Thread Stephen Gilson
Are you using -doc-sources to reference your source code? Try compiling it with 
-doc-classes or doc-namespaces instead, along with setting your source path.

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Rich Tretola
Sent: Monday, January 26, 2009 3:13 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] asdoc


col: 1 Error: The public attribute can only be used inside a package.


On Mon, Jan 26, 2009 at 3:06 PM, Stephen Gilson 
mailto:smgil...@adobe.com>> wrote:

We use that technique with ASDoc builds all the time.



What is the error that you are getting from ASDoc?



Stephen



From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com] On 
Behalf Of Rich Tretola
Sent: Monday, January 26, 2009 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] asdoc



I have a bunch of classes that are extending from base flex components. They 
also all share 5 properties and a few methods. So, rather that adding the 
shared properties and methods to each file. I used the old include 
"SharedInclude.as"; statement within each class to include an ActionScript file 
(not a class). All is happy and all compiles nicely. However, asdoc doesn't 
like this approach and pukes on the included properties when trying to create 
documentation. Anyone else ever tried something like this?


Rich


<><>

Re: [flexcoders] Flex 3.3

2009-01-26 Thread Matt Chotin
It's all bug fixes, and not a huge number of them.  We're not going to have an 
associated Flex Builder release either, just the SDK (though we'll get the 
charts updated).

Matt


On 1/26/09 1:18 PM, "tntomek"  wrote:




Looks like we finally have official 3.3 SDK builds out.

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

This seems to have been a relabeling as changes between last 3.2 build
and 3.3 build are very minor.

Does anyone know what features or changes 3.3 will bring us?





[flexcoders] Flex 3.3

2009-01-26 Thread tntomek
Looks like we finally have official 3.3 SDK builds out.

http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+3

This seems to have been a relabeling as changes between last 3.2 build
and 3.3 build are very minor.

Does anyone know what features or changes 3.3 will bring us?



[flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread markgoldin_2000
Ok, here is my modified code:

http://www.adobe.com/2006/mxml"; 
layout="absolute" width="400" height="300" 
xmlns:modulecode="UFDCommonLib.src.modulecode.*">


and the message is:
Unable to locate specified base 
class 'UFDCommonLib.src.modulecode.popupTitleWindow' for component 
class 'saveAsPriceList'.UFDPortal/src   saveAsPriceList.mxml
Unknown 1233004480341   1143



--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> - Original Message - 
> From: "markgoldin_2000" 
> To: 
> Sent: Monday, January 26, 2009 5:43 PM
> Subject: [flexcoders] Re: Base one mxml component on another from 
Library
> 
> 
> >  > UFDCommonLib - is my common library name, src/modulecode is 
location
> > of  a mxml component.
> >
> > I have tried differnt variations of
> >  >
> > but all I am getting is:
> > Could not resolve  to a component
> > implementation.
> 
> I think we both have a Doh moment. Swap the "/" characters for "." .
> 
> Paul
> >
> >
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> - Original Message - 
> >> From: "markgoldin_2000" 
> >> To: 
> >> Sent: Monday, January 26, 2009 5:35 PM
> >> Subject: [flexcoders] Re: Base one mxml component on another from
> > Library
> >>
> >>
> >> > here is my simplified component definition:
> >> > 
> >> >  >> > xmlns:mx="http://www.adobe.com/2006/mxml";
> >> > layout="absolute" width="400" height="300"
> >> > xmlns:modulecode="/UFDCommonLib/src/modulecode">
> >> > 
> >> >
> >> > But that does not work.
> >>
> >> Are you sure the path is correct - can you create popupTileWindow
> > elsewhere?
> >> What is the error?
> >>
> >> Paul
> >>
> >> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  
wrote:
> >> >>
> >> >> - Original Message - 
> >> >> From: "markgoldin_2000" 
> >> >> To: 
> >> >> Sent: Monday, January 26, 2009 5:26 PM
> >> >> Subject: [flexcoders] Base one mxml component on another from
> >> > Library
> >> >>
> >> >>
> >> >> >I have a project with a common component library added to it 
as
> >> > SWC.
> >> >> > I am trying to create a mxml component in my project that
> > would be
> >> >> > based on a component from the library. How do I do that?
> >> >>
> >> >> Components are based on the component that's used at the top
> > level
> >> > in the
> >> >> component definition. I would assume it's just a case of using
> > the
> >> > component
> >> >> in the swc as the top component of your new component.
> >> >>
> >> >> Paul
> >> >>
> >> >> >
> >> >> > Thanks
> >>
> >
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
> > https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-
446f-b4cf-1e62079f6847
> > Search Archives: 
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups 
> > Links
> >
> >
> >
>




[flexcoders] localconnection data encrypted?

2009-01-26 Thread Pete Appleby
I am using localconnections to pass information from one AIR
application to another. All of this is working fine.

I understand that AMF0 is being used behind the scenes to pass the
information through the localconnection send() method.

Is the data encrypted? If not, I assume that I must encrypt sensitive
information myself. 

Hope someone can help with this.

Pete




Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Guy Morton
Mm..yes, but then again Apple is supporting SVG on the iPhone...Adobe  
hasn't exactly covered itself in glory with its support for SVG. Of  
course since they bought Macromedia they no longer have any strategic  
use for it. And now we have Silverlight from MS we have THREE  
technologies that are essentially the same - two proprietory and one a  
W3C standard.


Sigh. It's the usual mess we get when corporations exercise their  
competitive impulses.


Wouldn't it have been nice to have an open vector animation standard  
(SVG) that would play in a commonly deployed runtime (Flash)? Then we  
could all develop once and have native playback in browsers that  
support SVG, player support for those that don't and we'd be able to  
target the iPhone.


That of course will never happen. :-)

Guy


On 27/01/2009, at 12:23 AM, Wally Kolcz wrote:


Could not have put it any better myself.

From: "Paul Andrews" 
Sent: Monday, January 26, 2009 4:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex. AIR and IPhone



LOL, yes - the iphone only supports two gestures for flex, flash and  
air and they involve the use of one or two fingers..

- Original Message -
From:Sebastien ARBOGAST
To:flexcoders@yahoogroups.com
Sent: Monday, January 26, 2009 11:28 AM
Subject: Re: [flexcoders] Flex. AIR and IPhone

You can start by a prayer, because the Flash runtime is not  
available on the iPhone in any form, including AIR.
And it will probably never be because of commercial and strategic  
reasons: the day people can deploy Flex applications to the iPhone,  
the App Store is as good as dead... sort of.


Sébastien Arbogast

http://sebastien-arbogast.com


2009/1/26 thelordsince1984 
Hi,

i would create an air application and deploy it into iphone
environment and allow touchscreen gestures.
How can i start?

Thanks a lot

Regards

Lorenzo










RE: [flexcoders] Re: Explain "override public function"

2009-01-26 Thread Alex Harui
Your understanding is correct.  In the email description it didn't assign the 
value to super.data.

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Amy
Sent: Monday, January 26, 2009 5:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Explain "override public function"


--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> If your override is exactly as you posted:
> override public function set data(value:Object):void { }
>
> then the override never passed the value to the base class
implementation so the value wasn't stored and the debugger will read
from the "get data()" function and show you a null.
>
> In the base class the setter does this:
>
> _data = value;
>
> And the getter does this:
>
> return _data;
>
> where _data is defined as:
>
> private var _data:Object;

I'm pretty sure the function he posted included
super.data=value;

Wouldn't that pass the value to the base class implementation?

Just making sure I'm not confused and he doesn't get unnecessarily
confused on this.

Thanks;

Amy



[flexcoders] Re: Develop Flex application for 1024x768 Resolution

2009-01-26 Thread nathanpdaniel
If you use Flex Builder 3, you can switch to design view, then in the 
Design area dropdown, select custom size and input the dimensions.  
It's still "eyeballing" it but, at least the design area will be the 
size you're wanting... 
Then, follow Haykel Ben Jemia's instructions... 
Hope this helps a little!
-Nate

--- In flexcoders@yahoogroups.com, Haykel BEN JEMIA  
wrote:
>
> Use percent sizes for the main container and set minWidth and 
minHeight for
> 1024x768. For inner containers/controls, use percent sizes and the
> left/right/top/bottom properties for the positions.
> 
> Haykel Ben Jemia
> 
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
> 
> 
> 
> 
> On Mon, Jan 26, 2009 at 4:30 PM, liltyga  wrote:
> 
> >   Hello,
> >
> > I am trying to figure out the best way to create a Flex 
application so
> > that it accommodates a 1024 x 768 Resolution, but will expand to 
fill
> > a screen that has a higher resolution than that. In other words I 
want
> > to dynamically set 1024 x 768 as the default but scale to 100% if 
need
> > be without manually defining the pixel height and width of the
> > application. Has anyone dealt with this before, and if so, are 
there
> > any intuitive ways to deal with it, other than just eyeballing the
> > output in the resolution size of choice?
> >
> > Thanks in advance for your help!
> >
> >  
> >
>




Re: [flexcoders] How to get data from many rows in DataGrid?

2009-01-26 Thread Howard Fore
1) dgUserList.selectedItems should return an array
2) dgUserList.allowMultipleSelection does...well, just what it says.

Both of these are clearlyy listed in the documentation for the
mx.controls.DataGrid class in Livedocs.

On Mon, Jan 26, 2009 at 2:53 PM, markflex2007 wrote:

> How to get the many ids if I select many DataGrid rows? How to enable
> DataGrid can be selected many rows?
>



-- 
Howard Fore, howard.f...@hofo.com
"The universe tends toward maximum irony. Don't push it." - Jeff Atwood


Re: [flexcoders] asdoc

2009-01-26 Thread Rich Tretola
col: 1 Error: The public attribute can only be used inside a package.



On Mon, Jan 26, 2009 at 3:06 PM, Stephen Gilson  wrote:

>We use that technique with ASDoc builds all the time.
>
>
>
> What is the error that you are getting from ASDoc?
>
>
>
> Stephen
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Rich Tretola
> *Sent:* Monday, January 26, 2009 2:08 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] asdoc
>
>
>
> I have a bunch of classes that are extending from base flex components.
> They also all share 5 properties and a few methods. So, rather that adding
> the shared properties and methods to each file. I used the old include
> "SharedInclude.as"; statement within each class to include an ActionScript
> file (not a class). All is happy and all compiles nicely. However, asdoc
> doesn't like this approach and pukes on the included properties when trying
> to create documentation. Anyone else ever tried something like this?
>
>
> Rich
>
>   
>


RE: [flexcoders] asdoc

2009-01-26 Thread Stephen Gilson
We use that technique with ASDoc builds all the time.

What is the error that you are getting from ASDoc?

Stephen

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Rich Tretola
Sent: Monday, January 26, 2009 2:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] asdoc


I have a bunch of classes that are extending from base flex components. They 
also all share 5 properties and a few methods. So, rather that adding the 
shared properties and methods to each file. I used the old include 
"SharedInclude.as"; statement within each class to include an ActionScript file 
(not a class). All is happy and all compiles nicely. However, asdoc doesn't 
like this approach and pukes on the included properties when trying to create 
documentation. Anyone else ever tried something like this?


Rich

<><>

[flexcoders] How to get data from many rows in DataGrid?

2009-01-26 Thread markflex2007
Hi,

I get one value from a selected row like this.(DataGrid Name is
dgUserList).

dgUserList.selectedItem.id

My question is the following:

How to get the many ids if I select many DataGrid rows? How to enable
DataGrid can be selected many rows?

Thanks for help

Mark



RE: [flexcoders] Flex Builder hangs and I have to end the process when opening app in design view

2009-01-26 Thread Grant Davies
I had this problem when I upgraded my version of SVN client (tortoise)
but did not upgrade the SVN plugin for eclipse, do you use SVN at all ?

 

Cheers,

Grant

 

 

...

> b l u e t u b e i n t e r a c t i v e.

.: Development solutions for creatives :.

.: grant davies

.: 404.428.6839 (c)

.: 404.921.9550 (F)

> gr...@bluetubeinteractive.com

http://www.bluetubeinteractive.com

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of programmer_offsite
Sent: Monday, January 26, 2009 2:03 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder hangs and I have to end the process
when opening app in design view

 

I am using latest Flex Builder 3.0.2 on Windows XP Sp2.
I have created a custom component in ActionScript. Then I create
another mxml component based on my ActionScript component. Finally,
when I place this component and open design view, the Builder hangs
and I have to kill it.
I tried a number of things:
1. Changing VM parameters in order to increase memory available to FB
2. Defragmenting my disc
3. Erasing eclipse history
4. Creating new workspaces
If I try to open my workspace on another machine, it will suffer
similar problems, but never did the other programmer have the similar
situation although creating application in similar manner (mxml
component based on custom as component placed on application).
Anyone had similar problems? Found some advice to upgrade machine but
my PC is dual processor and 3 GB ram with enough disc space..

 

Messages in this topic
 (1) Reply (via web post)
 | Start a new topic
 

Messages
  

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.com 

MARKETPLACE



<>

[flexcoders] Flex Builder hangs and I have to end the process when opening app in design view

2009-01-26 Thread programmer_offsite
I am using latest Flex Builder 3.0.2 on Windows XP Sp2.
I have created a custom component in ActionScript. Then I create
another mxml component based on my ActionScript component. Finally,
when I place this component and open design view, the Builder hangs
and I have to kill it.
I tried a number of things:
1.  Changing VM parameters in order to increase memory available to FB
2.  Defragmenting my disc
3.  Erasing eclipse history
4.  Creating new workspaces
If I try to open my workspace on another machine, it will suffer
similar problems, but never did the other programmer have the similar
situation although creating application in similar manner (mxml
component based on custom as component placed on application).
Anyone had similar problems? Found some advice to upgrade machine but
my PC is dual processor and 3 GB ram with enough disc space..




[flexcoders] asdoc

2009-01-26 Thread Rich Tretola
I have a bunch of classes that are extending from base flex components. They
also all share 5 properties and a few methods. So, rather that adding the
shared properties and methods to each file. I used the old include
"SharedInclude.as"; statement within each class to include an ActionScript
file (not a class). All is happy and all compiles nicely. However, asdoc
doesn't like this approach and pukes on the included properties when trying
to create documentation. Anyone else ever tried something like this?


Rich


Re: [flexcoders] Datagrid

2009-01-26 Thread Marco Catunda
Nilson,

Essa lista de flex é internacional, Se você escrever em Inglês, as pessoas nessa
lista irão entende-lo melhor. Mas se vc quiser escrever em portugues, existem
as seguintes listas que eu conheço:

flexdev - Google Groups
flex-brasil - Yahoo Groups


It's an international flex list. If you write your question in
English, the guys of this list
could be understand you better. But, if you want to discuss in
portuguese language
there are the following list that I know:

flexdev - Google Groups
flex-brasil - Yahoo Groups



Answering your question:

What do you realy intend to do?
I asked it because, until I know, there is no easy solution to get
line when you
click on it. I guess there is other nice solution in flex to deal with
your problem.
I've never needed it.

--
Marco Catunda



On Mon, Jan 26, 2009 at 12:44 PM, nilsonmalmeida
 wrote:
> Como faço para pagar os valores de uma linha em um datagrid, quando
> clicar nela ?
> Obrigado.
>
> 


Re: [flexcoders] Re: Explain "override public function"

2009-01-26 Thread Fotis Chatzinikos
Amy is right,

the code was:

override public function set data(value:Object):void
{
   super.data = value;
}

maybe its preferable to have :

override public function set data(value:Object):void
{
   if (value != null)
   {
  super.data = value;
   }
}


What i usually do is check for null and then if not do any custom logic:

override public function set data(value:Object):void
{
   if (value != null)
   {
  super.data = value;

  //pseudo
  if (value is supposed to be shown in red)
  {
 make the background red
  }
  else
  {
  //reset component to solve renderer re-use issues
  reset color to Grey
  }
   }
}


On Mon, Jan 26, 2009 at 3:03 PM, Amy  wrote:

>   --- In flexcoders@yahoogroups.com , Alex
> Harui  wrote:
> >
> > If your override is exactly as you posted:
> > override public function set data(value:Object):void { }
> >
> > then the override never passed the value to the base class
> implementation so the value wasn't stored and the debugger will read
> from the "get data()" function and show you a null.
> >
> > In the base class the setter does this:
> >
> > _data = value;
> >
> > And the getter does this:
> >
> > return _data;
> >
> > where _data is defined as:
> >
> > private var _data:Object;
>
> I'm pretty sure the function he posted included
> super.data=value;
>
> Wouldn't that pass the value to the base class implementation?
>
> Just making sure I'm not confused and he doesn't get unnecessarily
> confused on this.
>
> Thanks;
>
> Amy
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


Re: [flexcoders] work with map

2009-01-26 Thread Fotis Chatzinikos
I simple use an object:

var map:Object = event.result as Object  ; //This is the map coming from a
remote call

Now you can get the map keys, and then their value/content

In this case the key is String and the value an ArrayList (Java) /
ArrayCollection in Flex
:

for (var key:String in map)
{
var valueAC:ArrayCollection = map[key] ;
}

PS: Make sure that your keys are Strings and not any other objects, else you
can try your luck with the Dictionary class whicj is supposed to support non
String keys, but i have never tested it...

Good luck ;-)

On Mon, Jan 26, 2009 at 3:08 PM, markus.muerbe <
markus.mue...@htwg-konstanz.de> wrote:

>   Hello!
>
> I have the following method, which delivers a map as return value.
> -
> -
> public Map getTopLevelCategories() {
> HibernateDAOFactory factory = null;
> try {
> factory = new HibernateDAOFactory();
> factory.beginTransaction();
> Collection topLevelCategories =
> factory.getDAOCategory().loadTopLevelCategories();
> Map topLevelCategoriesMap = new HashMap();
> for (DOCategory category : topLevelCategories) {
> topLevelCategoriesMap.put(category.getId(), category.getName());
> }
> factory.commitTransaction();
> return topLevelCategoriesMap;
> } catch (HibernateException e) {
> factory.rollback();
> e.printStackTrace();
> return null;
> } finally {
> if (factory != null) {
> factory.closeSession();
> }
> }
> }
> -
> -
>
> How is it possible to work with this return value in FLEX?
>
> Thank you
> regards
> markus
>
>  
>



-- 
Fotis Chatzinikos, Ph.D.
Founder,
Phinnovation
fotis.chatzini...@gmail.com,


[flexcoders] Actionscript library needed for parsing HTML

2009-01-26 Thread luvfotography
Hi, does anyone have a library for parsing html?
for example, I need to pull out a div block? Which may or may not
be embedded in another div block.
thaanks,




Re: [flexcoders] Guidance Needed about the organization of flex project and MXML Componenets

2009-01-26 Thread anuj sharma
Hi Haykel
Thanks for the info, This might help to get started for the reorganization
Anuj

On Fri, Jan 23, 2009 at 11:35 PM, Haykel BEN JEMIA wrote:

>   ViewStacks, like most containers, uses deferred instantiation (if the
> creationPolicy property is set to 'auto', which is the default), which means
> it only creates the descendants of a child when it's selected the first
> time. So for startup optimization, I think it's ok to use ViewStacks.
>
> Now you could probably use modules to further reduce swf size, but this
> would also mean that the user will have to wait longer when a page is
> selected until the module is downloaded. But it's ok if the modules are
> small.
>
> Haykel Ben Jemia
>
> Allmas
> Web & RIA Development
> http://www.allmas-tn.com
>
>
>
>
> On Fri, Jan 23, 2009 at 7:43 PM, anuj181  wrote:
>
>>   Hi Flex Coders,
>> I have been taken over one project started by some other programmer,
>> The project asks user to login and after user logs in , different custom
>> MXML Components are loaded. Thats the bigger picture what the project needs
>> to do.
>>  The way this project was organized that the developer created the login
>> component , and other custom MXML Component and put them in different
>> canvases and then put login in one ViewStack and the other MXML Componenets
>> in another stack, By default on the load of the application, ViewStack with
>> login Canvas is set to true and if user enter right password then the
>> visibility of other stack having different custom components are set to true
>> and login was set to false.
>> The ToggleButtonBar was used whose data provider is second view stack
>> having 3 other custom MXML component, and depending upon the button of the
>> toggle bar selected the components are being loaded. All the viewstacks with
>> the canvases are being loaded on the main app on the load of the
>> application.
>>
>>  I am  not sure thats the right way.* In ideal world I like whenever user
>> loads the page, only the login page will be loaded and once the correct
>> credentials are entered, only the default MXML Component will be added with
>> the ToggleButtonBar's default selection, I have to reorganize the structure
>> of the project, I was thinking of adding and removing child depending upon
>> the tab changed,* Is there any better way to organize this project,
>> Ideally I like to refresh the page while loading different MXML components
>> on the tab selection so that we might get the component totally in
>> synchronization with the server, Anyone has nice and better way of
>> organizing Project without setting the visibility true and false and also
>> fulfilling my requirement.
>> Any Help and guidance will be appreciated
>> Thanks
>> Anuj
>>
>
>  
>


[flexcoders] sorting data on non-grouped field in an advanceddatagrid

2009-01-26 Thread Maciek Sakrejda
I have an ADG (simplified example that reproduces the issue follows). I
want the data broken down by category, but sorted by value (which is
*not* grouped) within each category. I thought the way to do this would
be to set up a ListCollectionView to sort my data, then put a grouping
collection on top. The GroupingCollection, however, seems to undo the
ListCollectionView sorting.

Is there a way to achieve this with the AdvancedDataGrid? If I bind
sortedData to a plain DataGrid (with no grouping), this works as
expected.

Code follows: (note that within each group, things are *not* sorted by
value).


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


















   


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




Re: [flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread Haykel BEN JEMIA
If you have UFDCommonLib.swc, then add it to the libs folder. Now you must
know in which package popupTitleWindow is defined. From your last mail, I
guess it could be 'modulecode', so try this:

xmlns:modulecode="modulecode"

Otherwise ask the developer who gave you the swc.


Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 26, 2009 at 6:43 PM, markgoldin_2000
wrote:

>UFDCommonLib - is my common library name, src/modulecode is location
> of a mxml component.
>
> I have tried differnt variations of
> 
> but all I am getting is:
> Could not resolve  to a component
> implementation.
>
>
> --- In flexcoders@yahoogroups.com , "Paul
> Andrews"  wrote:
> >
> > - Original Message -
> > From: "markgoldin_2000" 
> > To: >
> > Sent: Monday, January 26, 2009 5:35 PM
> > Subject: [flexcoders] Re: Base one mxml component on another from
> Library
> >
> >
> > > here is my simplified component definition:
> > > 
> > >  > > xmlns:mx="http://www.adobe.com/2006/mxml";
> > > layout="absolute" width="400" height="300"
> > > xmlns:modulecode="/UFDCommonLib/src/modulecode">
> > > 
> > >
> > > But that does not work.
> >
> > Are you sure the path is correct - can you create popupTileWindow
> elsewhere?
> > What is the error?
> >
> > Paul
> >
> > > --- In flexcoders@yahoogroups.com ,
> "Paul Andrews"  wrote:
> > >>
> > >> - Original Message -
> > >> From: "markgoldin_2000" 
> > >> To: >
> > >> Sent: Monday, January 26, 2009 5:26 PM
> > >> Subject: [flexcoders] Base one mxml component on another from
> > > Library
> > >>
> > >>
> > >> >I have a project with a common component library added to it as
> > > SWC.
> > >> > I am trying to create a mxml component in my project that
> would be
> > >> > based on a component from the library. How do I do that?
> > >>
> > >> Components are based on the component that's used at the top
> level
> > > in the
> > >> component definition. I would assume it's just a case of using
> the
> > > component
> > >> in the swc as the top component of your new component.
> > >>
> > >> Paul
> > >>
> > >> >
> > >> > Thanks
> >
>
>  
>


[flexcoders] Which version of flex do I have?

2009-01-26 Thread reflexactions
We have a bit of confusion in the office with apparently different 
version of Flex installed on different machines and we are wondering 
what is the offical latest version of FlexBuilder.

In Help/About I have 3.0.1.205647

In ProductDetails/FeatureDetails/Core it shows 3.0.205647

Is this the latest official release of FlexBuilder (StandAlone) and is 
this the same as FlexBuilder 3.2 ?

Help, confused!!

:)
tks



Re: [flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread Paul Andrews
- Original Message - 
From: "markgoldin_2000" 
To: 
Sent: Monday, January 26, 2009 5:43 PM
Subject: [flexcoders] Re: Base one mxml component on another from Library


>  UFDCommonLib - is my common library name, src/modulecode is location
> of  a mxml component.
>
> I have tried differnt variations of
> 
> but all I am getting is:
> Could not resolve  to a component
> implementation.

I think we both have a Doh moment. Swap the "/" characters for "." .

Paul
>
>
> --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>>
>> - Original Message - 
>> From: "markgoldin_2000" 
>> To: 
>> Sent: Monday, January 26, 2009 5:35 PM
>> Subject: [flexcoders] Re: Base one mxml component on another from
> Library
>>
>>
>> > here is my simplified component definition:
>> > 
>> > > > xmlns:mx="http://www.adobe.com/2006/mxml";
>> > layout="absolute" width="400" height="300"
>> > xmlns:modulecode="/UFDCommonLib/src/modulecode">
>> > 
>> >
>> > But that does not work.
>>
>> Are you sure the path is correct - can you create popupTileWindow
> elsewhere?
>> What is the error?
>>
>> Paul
>>
>> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>> >>
>> >> - Original Message - 
>> >> From: "markgoldin_2000" 
>> >> To: 
>> >> Sent: Monday, January 26, 2009 5:26 PM
>> >> Subject: [flexcoders] Base one mxml component on another from
>> > Library
>> >>
>> >>
>> >> >I have a project with a common component library added to it as
>> > SWC.
>> >> > I am trying to create a mxml component in my project that
> would be
>> >> > based on a component from the library. How do I do that?
>> >>
>> >> Components are based on the component that's used at the top
> level
>> > in the
>> >> component definition. I would assume it's just a case of using
> the
>> > component
>> >> in the swc as the top component of your new component.
>> >>
>> >> Paul
>> >>
>> >> >
>> >> > Thanks
>>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups 
> Links
>
>
>



Re: [flexcoders] Develop Flex application for 1024x768 Resolution

2009-01-26 Thread Haykel BEN JEMIA
Use percent sizes for the main container and set minWidth and minHeight for
1024x768. For inner containers/controls, use percent sizes and the
left/right/top/bottom properties for the positions.

Haykel Ben Jemia

Allmas
Web & RIA Development
http://www.allmas-tn.com




On Mon, Jan 26, 2009 at 4:30 PM, liltyga  wrote:

>   Hello,
>
> I am trying to figure out the best way to create a Flex application so
> that it accommodates a 1024 x 768 Resolution, but will expand to fill
> a screen that has a higher resolution than that. In other words I want
> to dynamically set 1024 x 768 as the default but scale to 100% if need
> be without manually defining the pixel height and width of the
> application. Has anyone dealt with this before, and if so, are there
> any intuitive ways to deal with it, other than just eyeballing the
> output in the resolution size of choice?
>
> Thanks in advance for your help!
>
>  
>


[flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread markgoldin_2000
 to a component 
implementation.


--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> - Original Message - 
> From: "markgoldin_2000" 
> To: 
> Sent: Monday, January 26, 2009 5:35 PM
> Subject: [flexcoders] Re: Base one mxml component on another from 
Library
> 
> 
> > here is my simplified component definition:
> > 
> >  > xmlns:mx="http://www.adobe.com/2006/mxml";
> > layout="absolute" width="400" height="300"
> > xmlns:modulecode="/UFDCommonLib/src/modulecode">
> > 
> >
> > But that does not work.
> 
> Are you sure the path is correct - can you create popupTileWindow 
elsewhere? 
> What is the error?
> 
> Paul
> 
> > --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
> >>
> >> - Original Message - 
> >> From: "markgoldin_2000" 
> >> To: 
> >> Sent: Monday, January 26, 2009 5:26 PM
> >> Subject: [flexcoders] Base one mxml component on another from
> > Library
> >>
> >>
> >> >I have a project with a common component library added to it as
> > SWC.
> >> > I am trying to create a mxml component in my project that 
would be
> >> > based on a component from the library. How do I do that?
> >>
> >> Components are based on the component that's used at the top 
level
> > in the
> >> component definition. I would assume it's just a case of using 
the
> > component
> >> in the swc as the top component of your new component.
> >>
> >> Paul
> >>
> >> >
> >> > Thanks
>




Re: [flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread Maciek Sakrejda
How does it not work (i.e., error message please)? That is the way to do
it. The FlexMonkey testing tool does exactly this.

At first glance, it looks like your namespace declaration for the
modulecode is wrong: I think it should be the package name of the module
(e.g., something like "com.truviso.module.*"), but without the error
message, it's hard to tell.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: markgoldin_2000 
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Base one mxml component on another from
Library
Date: Mon, 26 Jan 2009 17:35:00 -

here is my simplified component definition:

http://www.adobe.com/2006/mxml"; 
layout="absolute" width="400" height="300" 
xmlns:modulecode="/UFDCommonLib/src/modulecode">


But that does not work.

--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> - Original Message - 
> From: "markgoldin_2000" 
> To: 
> Sent: Monday, January 26, 2009 5:26 PM
> Subject: [flexcoders] Base one mxml component on another from 
Library
> 
> 
> >I have a project with a common component library added to it as 
SWC.
> > I am trying to create a mxml component in my project that would be
> > based on a component from the library. How do I do that?
> 
> Components are based on the component that's used at the top level 
in the 
> component definition. I would assume it's just a case of using the 
component 
> in the swc as the top component of your new component.
> 
> Paul
> 
> >
> > Thanks
>




 




Re: [flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread Paul Andrews
- Original Message - 
From: "markgoldin_2000" 
To: 
Sent: Monday, January 26, 2009 5:35 PM
Subject: [flexcoders] Re: Base one mxml component on another from Library


> here is my simplified component definition:
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="absolute" width="400" height="300"
> xmlns:modulecode="/UFDCommonLib/src/modulecode">
> 
>
> But that does not work.

Are you sure the path is correct - can you create popupTileWindow elsewhere? 
What is the error?

Paul

> --- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>>
>> - Original Message - 
>> From: "markgoldin_2000" 
>> To: 
>> Sent: Monday, January 26, 2009 5:26 PM
>> Subject: [flexcoders] Base one mxml component on another from
> Library
>>
>>
>> >I have a project with a common component library added to it as
> SWC.
>> > I am trying to create a mxml component in my project that would be
>> > based on a component from the library. How do I do that?
>>
>> Components are based on the component that's used at the top level
> in the
>> component definition. I would assume it's just a case of using the
> component
>> in the swc as the top component of your new component.
>>
>> Paul
>>
>> >
>> > Thanks



[flexcoders] Re: Base one mxml component on another from Library

2009-01-26 Thread markgoldin_2000
here is my simplified component definition:

http://www.adobe.com/2006/mxml"; 
layout="absolute" width="400" height="300" 
xmlns:modulecode="/UFDCommonLib/src/modulecode">


But that does not work.


--- In flexcoders@yahoogroups.com, "Paul Andrews"  wrote:
>
> - Original Message - 
> From: "markgoldin_2000" 
> To: 
> Sent: Monday, January 26, 2009 5:26 PM
> Subject: [flexcoders] Base one mxml component on another from 
Library
> 
> 
> >I have a project with a common component library added to it as 
SWC.
> > I am trying to create a mxml component in my project that would be
> > based on a component from the library. How do I do that?
> 
> Components are based on the component that's used at the top level 
in the 
> component definition. I would assume it's just a case of using the 
component 
> in the swc as the top component of your new component.
> 
> Paul
> 
> >
> > Thanks
>




Re: [flexcoders] Base one mxml component on another from Library

2009-01-26 Thread Paul Andrews
- Original Message - 
From: "markgoldin_2000" 
To: 
Sent: Monday, January 26, 2009 5:26 PM
Subject: [flexcoders] Base one mxml component on another from Library


>I have a project with a common component library added to it as SWC.
> I am trying to create a mxml component in my project that would be
> based on a component from the library. How do I do that?

Components are based on the component that's used at the top level in the 
component definition. I would assume it's just a case of using the component 
in the swc as the top component of your new component.

Paul

>
> Thanks



[flexcoders] Base one mxml component on another from Library

2009-01-26 Thread markgoldin_2000
I have a project with a common component library added to it as SWC.
I am trying to create a mxml component in my project that would be 
based on a component from the library. How do I do that?

Thanks



[flexcoders] Re: Flex 3 Maven plug-in?

2009-01-26 Thread ghzeiljunior
Hi,
The Flex Plugin of servebox is the first Maven Plugin for Flex. It was
created in 2006, then published as open-source project in 2007. The
current version is 2.1.2. It works very well. I used it in many of my
projects. Try it, you can find it at
http://www.servebox.org/maven-flex-plugin/

Thank you.

--- In flexcoders@yahoogroups.com, "baztheman"  wrote:
>
> Hi,
>
> We are moving from Flex 2 to Flex 3 and currently using an altered
> version of Flex2Mojo (I think from ServerBox).
>
> Is there any Flex 3 Maven plug-in out there? I am only using Flex 3
> SDK and Flex 3 eclipse plug-in.
>
> Thank you.
>
> A.
>



Re: [flexcoders] Announcing a Flex Community Feedback Forum

2009-01-26 Thread Matt Chotin
Yes, we'd like to focus on the Flex framework, compiler (basically the elements 
of the SDK) along with the SDK process itself (how we're doing open source 
governance, etc).  So this won't be a place for complaints about Flash Player 
or AIR :-)

Matt


On 1/26/09 3:42 AM, "Tom Chiverton"  wrote:




 On Friday 23 Jan 2009, Gregor Kiddie wrote:
> This sounds like it could be pretty interesting! But is there any guidance
> on what questions are off limits, area's to focus on, etc, as I think a lot

I've posted a few topic ideas to the thread.


[flexcoders] Develop Flex application for 1024x768 Resolution

2009-01-26 Thread liltyga
Hello,

I am trying to figure out the best way to create a Flex application so
that it accommodates a 1024 x 768 Resolution, but will expand to fill
a screen that has a higher resolution than that. In other words I want
to dynamically set 1024 x 768 as the default but scale to 100% if need
be without manually defining the pixel height and width of the
application. Has anyone dealt with this before, and if so, are there
any intuitive ways to deal with it, other than just eyeballing the
output in the resolution size of choice?

Thanks in advance for your help!



[flexcoders] Re: Pop-up Window issue

2009-01-26 Thread valdhor
At this point, I think we need to see some code.


--- In flexcoders@yahoogroups.com, Eric Dunn  wrote:
>
> I set break points on the method that launches the pop up. The break
point never hits. 
> 
> I delete a schedule, pop up closes. I then try to delete another
schedule and the schedule is deleted, I see the confirmation result
(alert) and the window does not close and the breakpoint never stops
the code. 
> I am seeing that if I select another schedule, the deletion function
is still active... meaning, that once I select another schedule, it is
automatically deleted. Looks like I am not cleaning up, leaving event
listeners active... 




[flexcoders] Re: File download from server

2009-01-26 Thread oneworld95
For whatever reason, setting content-disposition stuff didn't work for
me and was running out of time. What I ended up doing was this,

 - User clicks a button to generate the file on the Java side and save
it to the server.
 - In Flex, when server returns the usual XML response saying all is
OK, I dynamically add a button to the app to handle the download using
a FileReference object. 
 - On successful download (Event.COMPLETE), I delete the button from
the app. 

- Alex

--- In flexcoders@yahoogroups.com, Mika Kiljunen  wrote:
>
> Yep I have the same problem and get the same error. But funny
enough, my app
> works perfectly with Flash Player 9, but fails with Flash Player 10
throwing
> "Error: Error #2176: Certain actions, such as those that display a
pop-up
> window, may only be invoked upon user interaction, for example by a
mouse
> click or button press."
> 
> -Mika
> 
> 
> 
> On Wed, Jan 21, 2009 at 6:51 PM, valdhor wrote:
> 
> >   Once you create the zip file you need to return the correct
headers to
> > the browser so that the browser will pop up the dialog box asking the
> > user what to do.
> >
> > I don't use Java - I use PHP. When the user clicks a button in Flex I
> > create a new URLRequest and then navigateToURL. The PHP script creates
> > the file and when done sends the following headers:
> >
> > Header("Content-type: application/octet-stream");
> > Header("Content-disposition: attachment; filename=zipTest.zip");
> >
> > The script then streams the file to the browser. The headers sent back
> > to the browser cause the browser to pop up the save file window just
> > as if the user clicked a file link on an HTML page.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "oneworld95"  wrote:
> > >
> > > I've run into an interesting situation with Flex: I've got a Java
> > > servlet that will generate a Zip file when the user clicks a
button in
> > > Flex. But the file download dialog after the server action requires
> > > the user to click a button. It throws this error:
> > >
> > > Error: Error #2176: Certain actions, such as those that display a
> > > pop-up window, may only be invoked upon user interaction, for
example
> > > by a mouse click or button press.
> > >
> > > So how do you handle these situations? After the server responds
> > > successfully, do you display a second button to do the actual Flex
> > > file download?
> > >
> > > - Alex
> > >
> >
> >  
> >
>




[flexcoders] Datagrid

2009-01-26 Thread nilsonmalmeida
Como faço para pagar os valores de uma linha em um datagrid, quando 
clicar nela ?
Obrigado.



Re: [flexcoders] Re: Illegal override of WindowedSystemManager in mx.managers.WindowedSystemManager

2009-01-26 Thread Jesse Warden
I changed all of my classes that didn't look unique (ecspecially Message n'
friends) and that seemed to fix it.  Thanks guys!


Re: [flexcoders] Re: File download from server

2009-01-26 Thread Mika Kiljunen
Yep I have the same problem and get the same error. But funny enough, my app
works perfectly with Flash Player 9, but fails with Flash Player 10 throwing
"Error: Error #2176: Certain actions, such as those that display a pop-up
window, may only be invoked upon user interaction, for example by a mouse
click or button press."

-Mika



On Wed, Jan 21, 2009 at 6:51 PM, valdhor wrote:

>   Once you create the zip file you need to return the correct headers to
> the browser so that the browser will pop up the dialog box asking the
> user what to do.
>
> I don't use Java - I use PHP. When the user clicks a button in Flex I
> create a new URLRequest and then navigateToURL. The PHP script creates
> the file and when done sends the following headers:
>
> Header("Content-type: application/octet-stream");
> Header("Content-disposition: attachment; filename=zipTest.zip");
>
> The script then streams the file to the browser. The headers sent back
> to the browser cause the browser to pop up the save file window just
> as if the user clicked a file link on an HTML page.
>
>
> --- In flexcoders@yahoogroups.com ,
> "oneworld95"  wrote:
> >
> > I've run into an interesting situation with Flex: I've got a Java
> > servlet that will generate a Zip file when the user clicks a button in
> > Flex. But the file download dialog after the server action requires
> > the user to click a button. It throws this error:
> >
> > Error: Error #2176: Certain actions, such as those that display a
> > pop-up window, may only be invoked upon user interaction, for example
> > by a mouse click or button press.
> >
> > So how do you handle these situations? After the server responds
> > successfully, do you display a second button to do the actual Flex
> > file download?
> >
> > - Alex
> >
>
>  
>


Re: [flexcoders] Re: AdvancedDataGrid group filtering & openNode

2009-01-26 Thread Adrian Williams

Hi folks,
  
   We actually have the same need and including the things y'all have 
already tried, we even tried to cycle thru the open nodes and write 
their object to an array, then refreshed then tried to do an open nodes 
for each in the array without success
  
   Alex, et al...any input to this one because it seems like a lot of 
folks need it!


Best,
Adrian

Angela wrote:


I am having the same problem and can't find a solution. Has anyone
solved this?

Angela

--- In flexcoders@yahoogroups.com 
, "Eric Jones"  wrote:

>
> Adnan or Nigel,
>
> Did either of you resolve this? Any change you could post a
solution?
>
> jonese
>
> --- In flexcoders@yahoogroups.com 
, "nigelrmtaylor" 

> wrote:
> >
> > Adnan
> >
> > Did you get any further with this? It looks like I'm trying to
solve
> > the same problem as you.
> >
> >
> > Cheers
> >
> > Nigel
> > --- In flexcoders@yahoogroups.com 
, "Adnan Doric" 

> > wrote:
> > >
> > > Hello guys,
> > >
> > > I'm trying to filter my ADG without success :
> > >
> > > I created a GroupingCollection from a flat ArrayCollection.
> > >
> > > ADG's dataProvider is GroupingCollection.
> > >
> > > First issue : refresh
> > > if I filter the underlaying ArrayCollection, the related
> > > groupingCollection doesn't refresh automatically (bug? feature?)
> > >
> > > Actually I menaged to force gc.refresh() with some event( it is
> > > impossible to listen on CollectionEventKind.REFRESH because of
> > > infinite loop ac.refresh => gc.refresh )
> > >
> > > Second issue (more important) : openNodes
> > > Ok now that my gc is refreshed, the Tree in the ADG collapses
> > itself
> > > (ok let say that is normal), and I need it to expand all nodes
that
> > > were opened before.
> > >
> > > I tried to do something like this :
> > >
> > > var openNodes : Object = IHierarchicalCollectionView(
> > > myADG.dataProvider ).openNodes;
> > >
> > > gc.refresh();
> > >
> > > myADG.dataProvider.openNodes = openNodes;
> > >
> > > and it doesn't works.
> > >
> > > next I tried this :
> > > var openNodes : Object = IHierarchicalCollectionView(
> > > myADG.dataProvider ).openNodes;
> > > for each( var node : Object in openNodes )
> > > {
> > > IHierarchicalCollectionView( myADG.dataProvider.openNode( node )
> > > }
> > >
> > > guess what, doesn't work :)
> > >
> > > I'm calling myADG.invalidateList() each time too.
> > >
> > > I don't know what to do to achieve this simple task, I'm a bit
> > > disappointed because I expected lot more from the brand new
> > > AdvancedDataGrid and this basic functionality actually seems too
> > hard
> > > to implement.
> > >
> > > I still hope I'm wrong and someone can show me the correct
> > solution :)
> > >
> > > Thank you all,
> > > Adnan
> > >
> >
>

 


[flexcoders] Re: How to plot Standard Deviation and Mean value on Flex Line Chart

2009-01-26 Thread Amy
--- In flexcoders@yahoogroups.com, "nyadav_ait"  wrote:
>
> Hi all,
> 
> I had googled a lot but didn't found any information for displaying a
> line of MEAN and STANDARD DEVIATION in a line chart using ActionScript
> 3.0..please help me..i need it urgently

Look in the documentation for the database where your data is stored.  
It should have functions for calculating this, then just do whatever 
you normally do to return the data back to Flex.

HTH;

Amy



[flexcoders] Re: AdvancedDataGrid group filtering & openNode

2009-01-26 Thread Angela
I am having the same problem and can't find a solution. Has anyone 
solved this?

Angela

--- In flexcoders@yahoogroups.com, "Eric Jones"  wrote:
>
> Adnan or Nigel,
> 
> Did either of you resolve this? Any change you could post a 
solution?
> 
> jonese
> 
> --- In flexcoders@yahoogroups.com, "nigelrmtaylor"  
> wrote:
> >
> > Adnan
> > 
> > Did you get any further with this? It looks like I'm trying to 
solve 
> > the same problem as you.
> > 
> > 
> > Cheers
> > 
> > Nigel
> > --- In flexcoders@yahoogroups.com, "Adnan Doric"  
> > wrote:
> > >
> > > Hello guys,
> > > 
> > > I'm trying to filter my ADG without success :
> > > 
> > > I created a GroupingCollection from a flat ArrayCollection.
> > > 
> > > ADG's dataProvider is GroupingCollection.
> > > 
> > > First issue : refresh
> > > if I filter the underlaying ArrayCollection, the related
> > > groupingCollection doesn't refresh automatically (bug? feature?)
> > > 
> > > Actually I menaged to force gc.refresh() with some event( it is
> > > impossible to listen on CollectionEventKind.REFRESH because of
> > > infinite loop ac.refresh => gc.refresh )
> > > 
> > > Second issue (more important) : openNodes
> > > Ok now that my gc is refreshed, the Tree in the ADG collapses 
> > itself
> > > (ok let say that is normal), and I need it to expand all nodes 
that
> > > were opened before.
> > > 
> > > I tried to do something like this :
> > > 
> > > var openNodes : Object = IHierarchicalCollectionView(
> > > myADG.dataProvider ).openNodes;
> > > 
> > > gc.refresh();
> > > 
> > > myADG.dataProvider.openNodes = openNodes;
> > > 
> > > and it doesn't works.
> > > 
> > > next I tried this :
> > > var openNodes : Object = IHierarchicalCollectionView(
> > > myADG.dataProvider ).openNodes;
> > > for each( var node : Object in openNodes )
> > > {
> > > IHierarchicalCollectionView( myADG.dataProvider.openNode( node )
> > > }
> > > 
> > > guess what, doesn't work :)
> > > 
> > > I'm calling myADG.invalidateList() each time too.
> > > 
> > > I don't know what to do to achieve this simple task, I'm a bit
> > > disappointed because I expected lot more from the brand new
> > > AdvancedDataGrid and this basic functionality actually seems too 
> > hard
> > > to implement.
> > > 
> > > I still hope I'm wrong and someone can show me the correct 
> > solution :)
> > > 
> > > Thank you all,
> > > Adnan
> > >
> >
>





[flexcoders] File.upload results into File IO Error....

2009-01-26 Thread moyosaned
I'm creating a file locally and then I'm trying to use File.upload to upload it.
But the moment I invoke the upload method of File. it's giving me an error.

For example: 
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.
at flash.filesystem::File/resolveComponents()
at flash.filesystem::File/resolvePath()

it seems it will always give an error on the last preformed File action before 
the .upload

Any ideas on that?



[flexcoders] work with map

2009-01-26 Thread markus.muerbe
Hello!

I have the following method, which delivers a map as return value.
-
-
public Map getTopLevelCategories() {
HibernateDAOFactory factory = null;
try {
factory = new HibernateDAOFactory();
factory.beginTransaction();
Collection topLevelCategories =
factory.getDAOCategory().loadTopLevelCategories();
Map topLevelCategoriesMap = new 
HashMap();
for (DOCategory category : topLevelCategories) {
topLevelCategoriesMap.put(category.getId(), 
category.getName());
}
factory.commitTransaction();
return topLevelCategoriesMap;
} catch (HibernateException e) {
factory.rollback();
e.printStackTrace();
return null;
} finally {
if (factory != null) {
factory.closeSession();
}
}
}
-
-

How is it possible to work with this return value in FLEX?

Thank you
regards
markus



Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Wally Kolcz
Could not have put it any better myself.


From: "Paul Andrews" 
Sent: Monday, January 26, 2009 4:07 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex. AIR and IPhone 

LOL, yes - the iphone only supports two gestures 
for flex, flash and air and they involve the use of one or two 
fingers.. - Original Message - From:Sebastien 
ARBOGASTTo:flexcod...@yahoogroups.comsent: Monday, January 26, 2009 11:28 
  AMSubject: Re: [flexcoders] Flex. AIR and 
  IPhone
You can start by a prayer, because the Flash runtime is not 
  available on the iPhone in any form, including AIR.
  And it will probably never be because of commercial and strategic 
  reasons: the day people can deploy Flex applications to the iPhone, the App 
  Store is as good as dead... sort of.Sébastien Arbogast

http://sebastien-arbogast.com

2009/1/26 thelordsince1984 

Hi,

i would create an air application and deploy it into 
iphone
environment and allow touchscreen gestures.
How can i 
start?

Thanks a lot

Regards 

Lorenzo





[flexcoders] Re: Best way to create a website with login, etc

2009-01-26 Thread Amy
--- In flexcoders@yahoogroups.com, "Alan Sawyer"  wrote:
>
> I am brand new to Flex so please excuse me if this is a dumb 
question,
> but I looked thru 2-3 books and quite a few web articles, etc, and 
I'm
> missing something.
> 
> What I want to do is create a website that has secure pages, so some
> of them will require the user to logon to be able to set them. The
> user will then go to a search page, do a search, and then see the 
list
> (record) of names, addresses that the search retrieved and be able 
to
> navigate First, Last, Previous, Next, etc. In this case, I really
> would like to show one record at a time and move to the 
next/previous
> record.
> 
> It would be nice to create a registration page, forgot password,
> remember me, forget me, and it would really be nice to have a 
dynamic
> horizontal menu driven by data in the database, along with the
> permissions level that the user has once they've logged in.
> 
> This is relatively basic website stuff, and I've found a few Flex
> things that demonstrated a login page, but that's about it.
> 
> I use Linux and Mysql on the server, and xampp on my local dev 
machine
> that has Apache, and Mysql.
> 
> I would be using Flex Builder 3.

Have you ever built such a site without using Flex (i.e. using ASP, 
PHP, or similar)?  If not, you're going to have a steep learning 
curve, because you're going to have to learn both the server side and 
the Flex side--Flex does not eliminate the need for the back end 
technology, it just gives you a prettier/more responsive interface.

I'd suggest you find some tutorials that teach you to build such a 
site in your chosen back-end language, probably PHP, then once you 
have that built replace the interface with Flex.  There are some 
small details that will be different on the server side, such as 
returning typed objects or XML rather than HTML, but by and large 
most of the tasks will be the same.

HTH;

Amy



[flexcoders] Re: Explain "override public function"

2009-01-26 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> If your override is exactly as you posted:
> override public function set data(value:Object):void { }
> 
> then the override never passed the value to the base class 
implementation so the value wasn't stored and the debugger will read 
from the "get data()" function and show you a null.
> 
> In the base class the setter does this:
> 
> _data = value;
> 
> And the getter does this:
> 
> return _data;
> 
> where _data is defined as:
> 
> private var _data:Object;

I'm pretty sure the function he posted included
super.data=value;

Wouldn't that pass the value to the base class implementation?

Just making sure I'm not confused and he doesn't get unnecessarily 
confused on this.

Thanks;

Amy



Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Paul Andrews
LOL, yes - the iphone only supports two gestures for flex, flash and air and 
they involve the use of one or two fingers..
  - Original Message - 
  From: Sebastien ARBOGAST 
  To: flexcoders@yahoogroups.com 
  Sent: Monday, January 26, 2009 11:28 AM
  Subject: Re: [flexcoders] Flex. AIR and IPhone


  You can start by a prayer, because the Flash runtime is not available on the 
iPhone in any form, including AIR.
  And it will probably never be because of commercial and strategic reasons: 
the day people can deploy Flex applications to the iPhone, the App Store is as 
good as dead... sort of.

  Sébastien Arbogast

  http://sebastien-arbogast.com



  2009/1/26 thelordsince1984 

Hi,

i would create an air application and deploy it into iphone
environment and allow touchscreen gestures.
How can i start?

Thanks a lot

Regards 

Lorenzo




Re: [flexcoders] Maintaining Login Data in Flex

2009-01-26 Thread Tom Chiverton
On Monday 26 Jan 2009, stinasius wrote:
> Hi guys i came across a very nice post on "Maintaining Login Data in
> Flex" and since i was working on a project that required

Frameworks like Cairngorm often usr a Singleton model element for the same 
effect.

-- 
Tom Chiverton
Helping to dramatically differentiate B2B technologies



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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.

Re: [flexcoders] Announcing a Flex Community Feedback Forum

2009-01-26 Thread Tom Chiverton
On Friday 23 Jan 2009, Gregor Kiddie wrote:
> This sounds like it could be pretty interesting! But is there any guidance
> on what questions are off limits, area's to focus on, etc, as I think a lot

I've posted a few topic ideas to the thread.

-- 
Tom Chiverton
Helping to challengingly synthesize 24/365 guinine integrated eigth-generation 
clusters



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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.

Re: [flexcoders] Re: flexstore effect

2009-01-26 Thread Tom Chiverton
On Thursday 22 Jan 2009, stinasius wrote:
> > details show up on the left. how can i do this with mxml and states. i
> > have the flexstore example but the code is so complicated.

There are simpler examples in the docs.

-- 
Tom Chiverton
Helping to challengingly market eye-catching attention-grabbing deliverables



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 together with a 
list of those non members who are referred to as partners.  We use the word 
?partner? to refer to a member of the LLP, or an employee or consultant with 
equivalent standing and qualifications. 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.

Re: [flexcoders] CSS to SWF with Maven using Flex-mojos

2009-01-26 Thread Marvin Froeder
I do have a sample file doing that:
http://svn.sonatype.org/flexmojos/branches/flex-mojos-2.0.x/test-harness/projects/concept/runtime-css/

Basically what you need to do is change the sourceFile to use an CSS instead
of a .mxml or .as


VELO

On Mon, Jan 19, 2009 at 11:34 AM, webresponsive wrote:

>   Anyone has a working pom example of compiling a css file into a swf with
> Flex-mojos?
>
>  
>


Re: [flexcoders] Flex. AIR and IPhone

2009-01-26 Thread Sebastien ARBOGAST
You can start by a prayer, because the Flash runtime is not available on the
iPhone in any form, including AIR.And it will probably never be because of
commercial and strategic reasons: the day people can deploy Flex
applications to the iPhone, the App Store is as good as dead... sort of.

Sébastien Arbogast

http://sebastien-arbogast.com


2009/1/26 thelordsince1984 

>   Hi,
>
> i would create an air application and deploy it into iphone
> environment and allow touchscreen gestures.
> How can i start?
>
> Thanks a lot
>
> Regards
>
> Lorenzo
>
>  
>


[flexcoders] LCDS : Managed associations - creating new Items

2009-01-26 Thread Besite - Bart
Hello,
Another Livecycle question..

I have a managed collection of Companies.  Eeach company contains a list 
of employees. 
The Company-object and Employee-object are Managed objects, tagged with 
the [Managed] metadata tag.  They each have
an associated destination on the server (configured in the 
data-management-config.xml).  There exists a one-to-many managed 
association between
these two objects.

When I add a new Employee to the managed arraycollection "companies" 
like this :

Employee newEmployee = new Employee("John Smith", "Engineer");
companies.addItem(newEployee);
companyDS.commit();

Should this result in a createItem() in the EmployeeAssembler ?
Or should I explicitly call employeeDS.createItem(newEployee); ?

Thanks for your help..
Bart


[flexcoders] Flex. AIR and IPhone

2009-01-26 Thread thelordsince1984
Hi,

i would create an air application and deploy it into iphone
environment and allow touchscreen gestures.
How can i start?

Thanks a lot

Regards 

Lorenzo




[flexcoders] LCDS : Number of clients limitation

2009-01-26 Thread Besite - Bart
A question for Jeff Vroom;

Hi Jeff,

In an article of yours, you say about Data Management Services : "Data 
Management Services keeps the list of client IDs that are listening for 
changes for a given data set in memory so as the number of clients 
grows, the amount of memory required to hold this in the server 
increases.  As changes are made, the server pushes these changes to all 
clients, which can become slow as the number of clients that need to 
receive this data increases.  Thus, there will be limitations to the 
size of the data sets and number of clients that you can manage in a 
Flex application that uses this feature."

Suppose you have a managed object Room with 20 primitive type properties 
and a managed association to a User-object that has 10 primitive type 
properties.
Each Flex client has a managed arraycollection of 2 or 3 rooms.

How much clients will my server be able to manage ? hundreds, thousands ?

Kind regards
Bart Ronsyn