Re: [flexcoders] Database Viewer

2009-03-24 Thread Paresh M More
Try out TOAD s/w

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Wed, Mar 25, 2009 at 10:59 AM, akn_carnage  wrote:

>   Hi everyone,
>
> Can someone please suggest any database viewer application either
> commercial or open-source made in Flex?
>
> I need to able to see the relationships, columns etc of the tables and the
> data as well.
>
> Thanks,
> Anil
>
>  
>


Fwd: [flexcoders] Tree View Issue

2009-03-24 Thread p...@vin Uttarwar
Hi,

Just add these lines inside showtree function.

for (i = 0; i < tree.dataProvider.length; i ++){
tree.expandChildrenOf(tree.dataProvider[i], true)
}

Hope this helps...

Regards,
Pravin Uttarwar


-- Forwarded message --
From: lehaianh1986 
Date: 2009/3/25
Subject: [flexcoders] Tree View Issue
To: flexcoders@yahoogroups.com


  I use mx:Tree to view my data in XMLList. I want to show Tree in default
with expand all item. I use method tree.expandItem() but it does not run.
Here is my code

http://www.adobe.com/2006/mxml";
layout="vertical"
applicationComplete="init()">




















Anyone can show me where is false?

 


[flexcoders] Database Viewer

2009-03-24 Thread akn_carnage
Hi everyone,

Can someone please suggest any database viewer application either commercial or 
open-source made in Flex?

I need to able to see the relationships, columns etc of the tables and the data 
as well.

Thanks,
Anil





[flexcoders] Tree View Issue

2009-03-24 Thread lehaianh1986
I use mx:Tree to view my data in XMLList. I want to show Tree in default with 
expand all item. I use method tree.expandItem() but it does not run.
Here is my code

http://www.adobe.com/2006/mxml";
layout="vertical"
applicationComplete="init()">



  

   
   
   
   
   
 

   
   



  


Anyone can show me where is false?



[flexcoders] Ruben's FlexBook component question

2009-03-24 Thread Igor Costa
Hi there Guy's

So, hard to ask something before hard searching across web. My question is
simple, how many of you guys there tried and extended the Ruben's FlexBook
Component since the releases source code?

I found a guy who added a couple of public methods but no one that made the
size of book re sizable when the screen gets bigger or less.

I'm fighing agaist this little bug book component. And added some exra
methods, doesnt any guys there who want to change your experience with this
component with me?

Regards

-- 

Igor Costa
www.igorcosta.com
www.igorcosta.org


[flexcoders] Re: Weborb

2009-03-24 Thread Mark Piller
Hi Scott,

Were you looking into WebORB for your Flex to CF connectivity?

Regards,
Mark

--- In flexcoders@yahoogroups.com, "Scott"  wrote:
>
> I briefly looked at Weborb last fall but decided against doing anything
> with it since it was fairly expensive.  I do remoteobject on a
> coldfusion backend.  With Flex builder I get some code generation if I
> so desire (and the code doesn't look too bad either) and I understand
> that is in Weborb as well.
> 
>  
> 
> The sales person I talked to didn't seem really that technical.  Can
> someone tell me the real benefits in using weborb if there are any?
> 
>  
> 
>  Thanks
> 
>Scott
>




[flexcoders] Re: framework RSL deployment problem

2009-03-24 Thread Darrell Loverin
What are the RSL URLs you are using? Flex Builder will copy the RSLs it finds 
in your {sdk}/frameworks/rsls directory to the bin-debug directory. The rsls 
will be renamed to match the RSL URLs in your project settings.


-Darrell

--- In flexcoders@yahoogroups.com, "Dana"  wrote:
>
> Hi guys.
> 
> I have a weird RSL deployment problem on JBoss 4.0.5GA.
> 
> I'm using framework 3.2.0.3958 as a signed RSL for one of my apps.
> If I build the app using FlexBuilder, it runs beautifully.
> If I compile it from the command line (my build server) using the swz/swf 
> RSLs from my FlexBuilder output, firstly the .swz file fails to load, I then 
> get a digest mismatch error when the swf failover is loaded.
> 
> However, if I then download the flex.war from my server, unzip it, overwrite 
> the swz/swf in the war file with the FlexBuilder swz/swf files (these are the 
> SAME files as I packaged up in the flex.war file!) zip it back up and push it 
> back to the server, it runs fine.
> 
> I'm at a complete loss to explain this since I've been ultra careful to 
> ensure that the same swf/swz/framework.swc files have been used to compile 
> both the FlexBuilder and the build server apps.
> I even compared the digests generated by each build using the -keep option. 
> They're identical.
> 
> Can anyone shed some light on this?
>




[flexcoders] Re: Variable SampleDataEvent is not defined.

2009-03-24 Thread flexcoder99
Check the Flex SDK used.

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Maybe clean the project?
> 
> 
> --- In flexcoders@yahoogroups.com, Aaron Hardy  wrote:
> >
> > Hey everyone.  A couple months ago I worked on an AIR project where we made
> > use of the SampleDataEvent class to generate dynamic audio.  Today I came
> > back to the project and ran it and am getting the following run-time error:
> > 
> > ReferenceError: Error #1065: Variable SampleDataEvent is not defined.
> > 
> > It is thrown in the first instance where we are referencing the
> > SampleDataEvent class:
> > 
> > addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataRequestHandler);
> > 
> > I get no compile-time error.  I have an import statement of import
> > flash.events.SampleDataEvent;  The project does reference other libraries
> > and I have made sure they are all using the same SDK (I've tried both 3.2
> > and 3.3), however they do have SWCs in them that may have been built using
> > an older SDK.  My co-worker is able to run the project without any error
> > being thrown and I have actually copied the SDKs from his machine to my
> > machine and it hasn't made any difference.  I HAVE re-installed Flex Builder
> > since the last time the project worked for me.
> > 
> > I've tried everything I can think of to no avail.  Does anyone have any
> > ideas of what might be going on?
> > 
> > Thanks!
> > 
> > Aaron
> >
>




[flexcoders] Re: Issue with Modules unloading...

2009-03-24 Thread cuttenv
Thanks Alex,
The bug was closed on the jira and marked as resolved. I had to upload more 
information to have the bug reopened. Just wondering if anyone else had this 
issue. It has been scheduled to be fixed several times.
http://bugs.adobe.com/jira/browse/SDK-16613
-Vito

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> It is scheduled for Flex 3.4
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of cuttenv
> Sent: Tuesday, March 24, 2009 2:51 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Issue with Modules unloading...
> 
> 
> Hello,
> I had an issue with Modules unloading, especially ones that had embedded 
> images or animations playing in them. I am still convinced that ANY Module 
> has a hard time being unloaded from memory. I was wondering if anyone had a 
> sound solution to fixing this issue or ran into it before. I also wanted to 
> encourage you guys to vote on this issue because it has been open since last 
> August. I am pretty disappointed with the current state of Modules in Flex, 
> but I hope it can be fixed soon.
> http://bugs.adobe.com/jira/browse/SDK-16613
> -Vito
>




[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread timgerr
Thanks all for the response, I am not sure what I am doing wrong.  

I tried the example from valdhor and I get errors when I run it.  I decided to 
create a small example and run it.  When I do, the single vbox that I created 
is repeated until I close my browser. Can someone tell me what I am doing 
wrong???  Thanks for the help all:


http://www.adobe.com/2006/mxml"; layout="vertical"
creationComplete="Testing()">





Tim 

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> You may be making this hard. I do dynamic Accordions using repeater, works
> great.  If you really are insistent on AS only, then use addChild().
> Accordion is just a navigation container.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
> 



RE: [flexcoders] Issue with Modules unloading...

2009-03-24 Thread Battershall, Jeff
Alex, 
 
I have a question - the bugbase entry referred to by Vito focuses on
animation - what about plain jane embeded images?  Also, is there a
general timeframe for Flex 3.4?
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Alex Harui
Sent: Tuesday, March 24, 2009 2:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Issue with Modules unloading...



It is scheduled for Flex 3.4

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc.  

Blog: http://blogs.adobe.com/aharui
 

 

From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of cuttenv
Sent: Tuesday, March 24, 2009 2:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issue with Modules unloading...

 

Hello,
I had an issue with Modules unloading, especially ones that had
embedded images or animations playing in them. I am still convinced that
ANY Module has a hard time being unloaded from memory. I was wondering
if anyone had a sound solution to fixing this issue or ran into it
before. I also wanted to encourage you guys to vote on this issue
because it has been open since last August. I am pretty disappointed
with the current state of Modules in Flex, but I hope it can be fixed
soon.
http://bugs.adobe.com/jira/browse/SDK-16613
-Vito









Re: [flexcoders] Weborb

2009-03-24 Thread Jeffry Houser


WebORB is caught somewhere between what is built into BlazeDS and the 
Full LiveCycle if I understand correctly.  It is


I have had very good experiences the NET version.  I'm not sure if I 
would consider it for ColdFusion use; however it does not look like 
their CF version has been released yet.  I thought that the CF version 
would work w/ BlueDragon.  Perhaps in the future they'll make it work w/ 
Railo and other alternatives.


W/ the .NET version we licensed it OEM to bundle with an AIR 
application and it was significantly cheaper to do that than to use CF.


Code Generation in WebORB is much different than the CF Extensions in 
Flex Builder if memory serves me.  It supports Framework specific code 
generations.


Also supports push functionality; can CF do that? 


If you just need AMF, I don't think WebORB offers you anything.

Scott wrote:


I briefly looked at Weborb last fall but decided against doing 
anything with it since it was fairly expensive.  I do remoteobject on 
a coldfusion backend.  With Flex builder I get some code generation if 
I so desire (and the code doesn't look too bad either) and I 
understand that is in Weborb as well.


 

The sales person I talked to didn't seem really that technical.  Can 
someone tell me the real benefits in using weborb if there are any?


 


 Thanks

   Scott





--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: framework RSL deployment problem

2009-03-24 Thread Darrell Loverin
What are the RSL URLs you are using? Flex Builder will copy the RSLs it finds 
in your {sdk}/frameworks/rsls directory to the bin-debug directory. The rsls 
will be renamed to match the RSL URLs in your project settings.


-Darrell

--- In flexcoders@yahoogroups.com, "Dana"  wrote:
>
> Hi guys.
> 
> I have a weird RSL deployment problem on JBoss 4.0.5GA.
> 
> I'm using framework 3.2.0.3958 as a signed RSL for one of my apps.
> If I build the app using FlexBuilder, it runs beautifully.
> If I compile it from the command line (my build server) using the swz/swf 
> RSLs from my FlexBuilder output, firstly the .swz file fails to load, I then 
> get a digest mismatch error when the swf failover is loaded.
> 
> However, if I then download the flex.war from my server, unzip it, overwrite 
> the swz/swf in the war file with the FlexBuilder swz/swf files (these are the 
> SAME files as I packaged up in the flex.war file!) zip it back up and push it 
> back to the server, it runs fine.
> 
> I'm at a complete loss to explain this since I've been ultra careful to 
> ensure that the same swf/swz/framework.swc files have been used to compile 
> both the FlexBuilder and the build server apps.
> I even compared the digests generated by each build using the -keep option. 
> They're identical.
> 
> Can anyone shed some light on this?
>




Re: [flexcoders] Change DataGrid Columns

2009-03-24 Thread Wesley Acheson
Okay well the reason I thought it may be the case was each column added
takes just that little bit longer. After 20 or so columns it can take maybe
1.5 seconds.

The DG has a horizontal scroll policy of on.  If thats what you mean by
columns have to shift.  Also I noticed that columns are shifting because
they were ordered by column name and my add column button was naming the
columns data filed. col1 col2 etc so after 10 there was switching occuring.

Also the way I set the columns array is as follows.

dg.columns = [];
dg.columns = myColumnArrayVariable.

This is because changes to the columns array don't seem to be picked up
unless set to a different array first.

Regards,

Wes

On Tue, Mar 24, 2009 at 6:57 PM, Alex Harui  wrote:

>  I don’t think it is column invalidation that is the problem.  The
> fundamental DG update mechanism is row-based.  If you add a column other
> columns’ sizes will likely be affected.  How are you adding a column such
> that the DG wouldn’t get wider or columns have to shift?
>
>
>
> I’d make sure the expensive renderer is optimized as much as possible.
> Make sure you don’t do updates if values don’t change.
>
>
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui
>
>
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *Wesley Acheson
> *Sent:* Tuesday, March 24, 2009 8:55 AM
> *To:* flexcoders
> *Subject:* [flexcoders] Change DataGrid Columns
>
>
>
> I'm hoping that someone would be able to help me with this.
>
> Is it possible in theory to subclass DataGrid to add and remove columns in
> such a way that not all the columns are invalidated?  Basically I've got an
> ItemRenderer which is quite expensive, Changing all the item renderers
> doesn't make sense.
>
> I'm guessing that the add column would need to add something to columnMap
> and freeItemRenderersTable although as far as I can see neither of these
> seem to be used within the DataGridClass, and I would have to stop the
> columnRendererChanged property from changing for existing columns.
>
> Anyone able to help or point me in the correct direction?
>
> Regards,
>
> Wes
>
>
>
> 
>


RE: [flexcoders] resizable list item

2009-03-24 Thread Tracy Spratt
Copy ListItemrenderer, and look at its functionality, especially the measure
function.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of hworke
Sent: Tuesday, March 24, 2009 2:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] resizable list item

 


Hi devs,

I am trying to use itemrenderer in a list with
variable height. This is how it will work: if
the there is only one item in the list then
the height of the item will be 100% of list height, 
if there are 2 items then 50% height  if 4 then 25%.

So the height of the list item should be 
(height of the list component)/(the length of the dataprovider).

How can I do that?

Regards... 





[flexcoders] Re: Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Bjorn Schultheiss
Here's my ignorant statement for the week.

Having a module that is built using Cairngorm unload cleanly is not worth the 
effort required to make it work.




--- In flexcoders@yahoogroups.com, claudiu ursica  wrote:
>
> I'm loading module via a command, so that it can be loaded form various 
> places... So far I have used a Module Loader... And I use interfaces foe 
> communicating with the modules and the shell. I don't know how you work with 
> module but you can inject your pieces of data from the mx:app in the loader 
> and into module when the as soon as the ready event fires. U can also use 
> BindingUtils to set bindings which in turn returns a change watcher. use that 
> to call unwatch upon when module unloads and so you make sure you performed 
> celanup and unbinding before unload ...
> 
> Claudiu
> 
> 
> 
> 
> 
> From: "Battershall, Jeff" 
> To: flexcoders@yahoogroups.com
> Sent: Tuesday, March 24, 2009 10:47:22 PM
> Subject: RE: [flexcoders] Modules, Cairngorm and Garbage Collection
> 
> 
> Thanks 
> Pedro,
>  
> As I 
> said in my previous post, I'm also wondering about the effect of a module's 
> component consuming a dataprovider via binding to a singleton object and 
> the possibility of that preventing GC.  I guess this touches on the whole 
> issue of best practices of using ModelLocator with modules.  PureMVC has 
> it's 'Pipes' utility to inject data objects into a module, but I'm using 
> Cairngorm and I'm wondering how something similar could be achieved with that 
> framework. 
>  
> Jeff
> -Original Message-
> From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
> Behalf Of Pedro Sena
> Sent: Tuesday, March 24, 2009 3:06 PM
> To: flexcod...@yahoogro ups.com
> Subject: Re: [flexcoders] Modules,  Cairngorm and Garbage Collection
> 
> The GC is not called when  the component is remove from the screen.
> 
> Most people think this occurs,  but it's not truth.
> 
> The GC is called when its required, but WHEN it is  required is another point.
> 
> If you are using just a small piece of your  available mamory, don't expect 
> the GC to be  called.
> 
> Regards,
> 
> PS
> 
> 
> On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica  
> wrote:
> 
> Hi, why do you bind module to the model locator?
> 
> If by any  chance you have embedded CSS in the module it won't garbage 
> collect  ...
> 
> Claudiu
> 
> 
> 
> 
> 
>  From: "Battershall, Jeff"  
> To: flexcod...@yahoogro ups.com
> Sent: Tuesday, March 24, 2009 5:37:58  PM
> Subject: [flexcoders]  Modules, Cairngorm and Garbage Collection
>  
> 
> 
> I've been working on optimizing an AIR application I'm currently  working
> on that utilizes modules. In the modules there are controls bound  to
> ModelLocator data items.
> 
> What I'm seeing during profiling that  removing a module from the display
> list doesn't seem to result in the  module being GC'ed. I'm suspecting
> binding between the ModelLocator and  the module's controls are causing
> the behavior. 
> 
> Has anyone seen  this and can suggest approaches to address this?
> 
> Jeff  Battershall
> Application Architect
> Dow Jones Indexes
> jeff.battershall@ dowjones. com
> (609) 520-5637  (p)
> (484) 477-9900 (c)
> 
> 
> 
> 
> -- 
> /**
> * Pedro Sena
> * Systems Architect
> * Sun Certified Java  Programmer 
> * Sun Certified Web Component Developer
> */
>




[flexcoders] allow user to upload files (maybe to Amazon S3)

2009-03-24 Thread tom s
I'm planning to add 'file upload' functionality to my flex app, which will
let users upload files from their machines to a server.
I have a rough plan (below) which I'd like to sanity check before I
implement it, and ask "is there a better way"...?

Requirements
===
1. Any signed-in user can upload a file
2. All uploaded files cannot be read nor deleted by any user (read and
delete only by admin)
3. Needs to be able to handle fairly big files (1-100 MB)
4. Doesn't expose my storage server to anonymous uploads

I currently use Google App Engine as the backend for the rest of my app, but
it is not friendly towards big files, so that is a no go for this.
So I'm thinking of using Amazon S3, as follows:

a. user selects file
b. construct request string
c. send request string to GAE server, which returns my signature for that
request (means that my secret key must reside on GAE, but not in the SWF)
d. send signed request to Amazon S3.

Questions


1. Is there a better way / better service?
2. Am i right to be paranoid about no putting my secret key in the SWF?
3. Does this sounds like a sensible solution? Anyone tried such a thing?

thanks

tom


[flexcoders] Weborb

2009-03-24 Thread Scott
I briefly looked at Weborb last fall but decided against doing anything
with it since it was fairly expensive.  I do remoteobject on a
coldfusion backend.  With Flex builder I get some code generation if I
so desire (and the code doesn't look too bad either) and I understand
that is in Weborb as well.

 

The sales person I talked to didn't seem really that technical.  Can
someone tell me the real benefits in using weborb if there are any?

 

 Thanks

   Scott



Re: [flexcoders] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread claudiu ursica
I'm loading module via a command, so that it can be loaded form various 
places... So far I have used a Module Loader... And I use interfaces foe 
communicating with the modules and the shell. I don't know how you work with 
module but you can inject your pieces of data from the mx:app in the loader and 
into module when the as soon as the ready event fires. U can also use 
BindingUtils to set bindings which in turn returns a change watcher. use that 
to call unwatch upon when module unloads and so you make sure you performed 
celanup and unbinding before unload ...

Claudiu





From: "Battershall, Jeff" 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 10:47:22 PM
Subject: RE: [flexcoders] Modules, Cairngorm and Garbage Collection


Thanks 
Pedro,
 
As I 
said in my previous post, I'm also wondering about the effect of a module's 
component consuming a dataprovider via binding to a singleton object and 
the possibility of that preventing GC.  I guess this touches on the whole 
issue of best practices of using ModelLocator with modules.  PureMVC has 
it's 'Pipes' utility to inject data objects into a module, but I'm using 
Cairngorm and I'm wondering how something similar could be achieved with that 
framework. 
 
Jeff
-Original Message-
From: flexcod...@yahoogro ups.com [mailto:flexcoders@ yahoogroups. com] On 
Behalf Of Pedro Sena
Sent: Tuesday, March 24, 2009 3:06 PM
To: flexcod...@yahoogro ups.com
Subject: Re: [flexcoders] Modules,  Cairngorm and Garbage Collection

The GC is not called when  the component is remove from the screen.

Most people think this occurs,  but it's not truth.

The GC is called when its required, but WHEN it is  required is another point.

If you are using just a small piece of your  available mamory, don't expect the 
GC to be  called.

Regards,

PS


On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica  wrote:

Hi, why do you bind module to the model locator?

If by any  chance you have embedded CSS in the module it won't garbage collect  
...

Claudiu





 From: "Battershall, Jeff"  
To: flexcod...@yahoogro ups.com
Sent: Tuesday, March 24, 2009 5:37:58  PM
Subject: [flexcoders]  Modules, Cairngorm and Garbage Collection
 


I've been working on optimizing an AIR application I'm currently  working
on that utilizes modules. In the modules there are controls bound  to
ModelLocator data items.

What I'm seeing during profiling that  removing a module from the display
list doesn't seem to result in the  module being GC'ed. I'm suspecting
binding between the ModelLocator and  the module's controls are causing
the behavior. 

Has anyone seen  this and can suggest approaches to address this?

Jeff  Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. com
(609) 520-5637  (p)
(484) 477-9900 (c)




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java  Programmer 
* Sun Certified Web Component Developer
*/

   


  

[flexcoders] resizable list item

2009-03-24 Thread hworke

   Hi devs,

   I am trying to use itemrenderer in a list with
   variable height. This is how it will work: if
   the there is only one item in the list then
   the height of the item will be 100% of list height, 
   if there are 2 items then 50% height  if 4 then 25%.

   So the height of the list item should be 
   (height of the list component)/(the length of the dataprovider).

   How can I do that?

   Regards... 



[flexcoders] XML Editor component using Tree control?

2009-03-24 Thread douglas_mccarroll
Hi All,

As you know, the Tree control can use an XML object as its
dataProvider. I'd like to be able to drag and drop items in my Tree to
rearrange the nodes in my source XML. The Tree doesn't natively do
this - it acts as a view and leaves its XML model untouched - which
makes sense in the vast majority of applications.

But in my case I want to modify the model. The requirements are fairly
simple - reordering of XML nodes only - no other editing of content.

I don't think that it will be hard to write this, but I'm wondering if
it's out there, already written.

Have any of you heard of such a component?

Thanks,

Douglas 



[flexcoders] Changelog. - upgrading flex.

2009-03-24 Thread Wesley Acheson
Is there a change log regaring the changes between 3.0, 3.2, 3.3 etc.

I haven't upgraded to 3.3. Should it just be fine to go up a minor version
number?

Is it true that gumbo doesn't have scroll bars?  Our apps have extensive
scrolling but mostly in datagrids and vboxes and the ilk.

Regards,

Wes


RE: [flexcoders] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Battershall, Jeff
Thanks Pedro,
 
As I said in my previous post, I'm also wondering about the effect of a
module's component consuming a dataprovider via binding to a singleton
object and the possibility of that preventing GC.  I guess this touches
on the whole issue of best practices of using ModelLocator with modules.
PureMVC has it's 'Pipes' utility to inject data objects into a module,
but I'm using Cairngorm and I'm wondering how something similar could be
achieved with that framework. 
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of Pedro Sena
Sent: Tuesday, March 24, 2009 3:06 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules, Cairngorm and Garbage
Collection


The GC is not called when the component is remove from the
screen.

Most people think this occurs, but it's not truth.

The GC is called when its required, but WHEN it is required is
another point.

If you are using just a small piece of your available mamory,
don't expect the GC to be called.

Regards,

PS


On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica
 wrote:




Hi, why do you bind module to the model locator?

If by any chance you have embedded CSS in the module it
won't garbage collect ...

Claudiu





From: "Battershall, Jeff"

To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 5:37:58 PM
Subject: [flexcoders] Modules, Cairngorm and Garbage
Collection



I've been working on optimizing an AIR application I'm
currently working
on that utilizes modules. In the modules there are
controls bound to
ModelLocator data items.

What I'm seeing during profiling that removing a module
from the display
list doesn't seem to result in the module being GC'ed.
I'm suspecting
binding between the ModelLocator and the module's
controls are causing
the behavior. 

Has anyone seen this and can suggest approaches to
address this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. com
 
(609) 520-5637 (p)
(484) 477-9900 (c)






-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer 
* Sun Certified Web Component Developer
*/







Re: [flexcoders] ADG to .csv - Not finding any solutions out there

2009-03-24 Thread Marco Catunda
At Flash Player 10 you could do it.

http://blog.everythingflex.com/2008/10/01/filereferencesave-in-flash-player-10/

But I've never used.
--
Marco Catunda


On Tue, Mar 24, 2009 at 11:24 AM, Scott  wrote:
> I tried to do this a while back from the client but ran into an issue where
> flex doesn't have direct access to the file system. This talks about it
> here:
> http://livedocs.adobe.com/flex/3/html/help.html?content=security_6.html
> However, you can do this with Air. I started working on a similar thing for
> something I was playing with. All I did was loop through the datagrid
> objects and parse out the information I wanted then manually wrote the
> variables in the order I wanted with a "," (comma) between each one.
>
> If you can find a way around the standard flex app being able to write to
> the drive then let me know!
>
> Scott
>
> 
>
> From: flexcoders@yahoogroups.com on behalf of Tom Chiverton
> Sent: Tue 3/24/2009 9:45 AM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] ADG to .csv - Not finding any solutions out there
>
> On Tuesday 24 Mar 2009, Adrian Williams wrote:
>> several solutions for doing this with a standard DataGrid, but nothing
>> for the Advanced, including searching thru the flexcoders archive.
>
> I'd expect the same approach to work - at a guess it grabs dg.dataProvider
> and
> loops over it ?
>
> --
> Tom Chiverton
> Helping to authoritatively mesh synergistic sticky seamless clusters as part
> of the IT team of the year, '09 and '08
>
> 
>
> 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
>  .
>
> --
> This message has been scanned for viruses and
> dangerous content by MailScanner  , and is
> believed to be clean.
>
> 


RE: [flexcoders] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Battershall, Jeff
Thanks Claudiu,
 
I'm using the ModelLocator as a storehouse for data providers, etc.
required by the Module.  But as the ModelLocator is a singleton, and
would 'survive' the life of the module, that references to the module's
components from the data provider might prevent GC.  
 
The scenario I observed was when the user logs out, all active modules
are unloaded, but when they log back in again, the memory consumption
just jumps right up.  But you are right - I have embedded CSS in the
module! - That could be my smoking gun!
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:flexcod...@yahoogroups.com] On Behalf Of claudiu ursica
Sent: Tuesday, March 24, 2009 1:10 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Modules, Cairngorm and Garbage
Collection


Hi, why do you bind module to the model locator?

If by any chance you have embedded CSS in the module it won't
garbage collect ...

Claudiu





From: "Battershall, Jeff" 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 5:37:58 PM
Subject: [flexcoders] Modules, Cairngorm and Garbage Collection



I've been working on optimizing an AIR application I'm currently
working
on that utilizes modules. In the modules there are controls
bound to
ModelLocator data items.

What I'm seeing during profiling that removing a module from the
display
list doesn't seem to result in the module being GC'ed. I'm
suspecting
binding between the ModelLocator and the module's controls are
causing
the behavior. 

Has anyone seen this and can suggest approaches to address this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. com
 
(609) 520-5637 (p)
(484) 477-9900 (c)









[flexcoders] Linecharts and dataproviders

2009-03-24 Thread flexaustin
Its been way to long since I have used Flex Charting. I have this XML data, 
which I need to display in a lineChart, but I seem to be having issues with 
getting it output 5 lines (one for each device#) based on the data.  I end up 
with one line? 

TIA, J

Here is my linechart:
 
 

Here is my series:



   



Here is my data:

private var _myXML:XML = 


























RE: [flexcoders] HTML in the List Component?

2009-03-24 Thread Alex Harui
If you start with ListItemRenderer, you definitely have to kill the code that 
will set the textfield's text property during the handshake with the List via 
the data/listData properties.  But once you do that, it should measure 
correctly.  I'd probably make a copy of ListItemRenderer instead of 
subclassing, and replace setting .text with setting .htmlText

The issue is not labelFunction, it just returns a string.  It is what the 
renderer does with that string.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Brandon Krakowsky
Sent: Tuesday, March 24, 2009 9:21 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] HTML in the List Component?

Yeah, I'm having a hard time with this.  I'm trying to display auto-sized html 
in a list component.  It just never looks right.  Sometimes there is too much 
padding on the bottom, sometimes, not enough and the text is cut-off.  And one 
I start scrolling, forget it.  It keeps changing.  I must be missing something. 
 If the labelFunction supported HTML I'd be set, as the sizing on this seems 
fine.

I'm rolling my own "list", based on a VBox.

Thanks,
Brandon


From: Jeffry Houser 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 11:07:53 AM
Subject: Re: [flexcoders] HTML in the List Component?

 Based on my recent experience w/ this; I gave up trying to display HTML Text 
in a list using the default itemRenderer ( ListItemRenderer if memory serves me 
).

 In theory, setting ListItemRenderer. label.htmlText should work  In practice, 
it always reverted to 'normal' text when displayed in the context of a list.  I 
built my own itemRenderer using a label and that addressed my issue.

 I ran into this issue while building the Flextras AutoCompleteComboBo x.  The 
ComboBox drop down is just a list, for those that haven't cracked open the 
code.  The AutoComplete will support highlighting in the drop down, based on 
the filter text.  All baked right in. I'll be sending the next beta to beta 
testers in a few hours.

Brandon Krakowsky wrote:
I have a List component with both variableRowHeight and wordWrap set to true.  
Is there anyway to leverage the labelField or labelFunction to render html 
text?  Is the only way to create a custom itemRenderer?  I tried it but find it 
very difficult to set the height of a UITextField, added to a Canvas.

Thanks,
Brandon



--

Jeffry Houser, Technical Entrepreneur

Adobe Community Expert: http://tinyurl. com/684b5h

http://www.twitter. com/reboog711  | Phone: 
203-379-0773

--

Easy to use Interface Components for Flex Developers

http://www.flextras.com?c=104

--

http://www.theflexshow.com

http://www.jeffryhouser.com

--

Part of the DotComIt Brain Trust




[flexcoders] Re: Context Menu Bug in FlashPlayer ?

2009-03-24 Thread jmfillman
Any suggestions? Am I doing something wrong?

JF
--- In flexcoders@yahoogroups.com, "jmfillman"  wrote:
>
> The code below causes both IE and Firefox to crash (haven't tried others). 
> The problem seems to occure when removing an item from a custom context menu. 
> It doesn't even debug, just crashes the browser.
> 
> If I add this one line:
> 
> menu.customItems.pop();
> 
> then the browser crashes. If I remove it, if functions as expected.
> 
> Please help.
> 
> Sample code below:
> 
> 
> http://www.adobe.com/2006/mxml"; layout="absolute">
>   
>   
>   
>id="myButton" mouseOver="mouseOvr(event)" mouseOut="mouseOt(event)"/>
> 
>




Re: [flexcoders] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Pedro Sena
The GC is not called when the component is remove from the screen.

Most people think this occurs, but it's not truth.

The GC is called when its required, but WHEN it is required is another
point.

If you are using just a small piece of your available mamory, don't expect
the GC to be called.

Regards,

PS

On Tue, Mar 24, 2009 at 2:09 PM, claudiu ursica wrote:

>   Hi, why do you bind module to the model locator?
>
> If by any chance you have embedded CSS in the module it won't garbage
> collect ...
>
> Claudiu
>
> --
> *From:* "Battershall, Jeff" 
> *To:* flexcoders@yahoogroups.com
> *Sent:* Tuesday, March 24, 2009 5:37:58 PM
> *Subject:* [flexcoders] Modules, Cairngorm and Garbage Collection
>
>  I've been working on optimizing an AIR application I'm currently working
> on that utilizes modules. In the modules there are controls bound to
> ModelLocator data items.
>
> What I'm seeing during profiling that removing a module from the display
> list doesn't seem to result in the module being GC'ed. I'm suspecting
> binding between the ModelLocator and the module's controls are causing
> the behavior.
>
> Has anyone seen this and can suggest approaches to address this?
>
> Jeff Battershall
> Application Architect
> Dow Jones Indexes
> jeff.battershall@ dowjones. com 
> (609) 520-5637 (p)
> (484) 477-9900 (c)
>
>  
>



-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*/


Re: [flexcoders] Using cairngorm for "push" events

2009-03-24 Thread claudiu ursica
First thing first it depends how fast you want to poll your server for data. As 
you probably know the browser only allows you to have 2 connections ... You 
might run into issues if your polling again and again in seconds. We have 
something similar and decided to make our own ServiceManager class which uses 2 
HTTPService instances and manages  the concurrency for the 2 connections. So 
when you make a request the service manager schedules that request and when it 
has the service avalable is doing the request ... We are still using commands, 
but not delegates anymore. The HTTPService handles the results and parses the 
data through some unmarshaller classes into the model ... It is not the 
greatest separtion of concerns but since we are polling the hell out of the 
server we hit serveral tomeouts due to bad request schedulling ...

Traditionaly with cairngorm after you get the data dreom the server you 
populate the model and update the view through bindings. You can hav an message 
mechanism and trigger it directly form the model, or dispatching events handled 
by commands. As far as the indicator goes the same thing ... use a preloader 
with alternate set to true inside the message view or somewhere  show when 
make request, hide when result or fault ...

The topic is 2 large to tackle in 2 paragraphs but if you need further info 
senf a private msg ...

Cheers,
Claudiu



From: Osman Ullah 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 4:03:22 PM
Subject: [flexcoders] Using cairngorm for "push" events


I am using cairngorm on my current project and I have run into a couple issues 
which I am having trouble dealing with through Cairngorm. Hopefully someone can 
help.

1) I have an event loop which is polling my web service for events. Where would 
be the best place to run this event loop and what would be a good way of 
notifying the view to "do something"? There might be very little data, so it 
might be something like popping an alert or popping a toast notification. 
..it's not something I can do through databinding and cairngorm seems to throw 
out the whole concept of the model notifying the view through events (this 
design decision is something I don't really understand). 

2) I want to make a request, and show a loading indicator while the request is 
pending, and then show a confirmation with the result of hte request. Similar 
requests are being made in different parts of the application, but they all 
consist of making the request, showing a wait indicator, and then showing a 
confirmation. Again, some suggestions on how to handle this would be 
appreciated.

Thanks


   


  

[flexcoders] Re: remoteobject and parameters

2009-03-24 Thread valdhor
Although I work for an enterprise company I don't subscribe to WebORB's support 
model (But it's nice to know it's there if my company decides to go that way).

The learning curve is not that difficult and I have not needed any support (So 
far). Just follow the two threads I mentioned before and you should be away 
laughing ;-}.There is also a Yahoo group if you do need help.

Another possibility if you don't want to use WebORB is Zend_AMF.



Steve


--- In flexcoders@yahoogroups.com, "Scott"  wrote:
>
> Is any small developer even using Weborb?  When I called them they were slow 
> to get back to me and they don't even have documentation of their products 
> they're "working on it".  That's a huge red flag to me...  What kind of 
> support would I get for their products if I were to buy in.  Also, the price 
> seemed really high and it was a yearly fee.
>  
> I would agree, I only use httpservice when I need to attach to a server that 
> I have no control over.
> 
> 
> 
> From: flexcoders@yahoogroups.com on behalf of valdhor
> Sent: Tue 3/24/2009 10:14 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: remoteobject and parameters
> 
> 
> 
> You need to decide whether you want to use AMF with objects or HTTPService 
> with POST/GET parameters. I recommend using the former.
> 
> These two threads should get you going using RemoteObjects and WebORB:
> 
> http://tech.groups.yahoo.com/group/flexcoders/message/134254 
>  
> http://tech.groups.yahoo.com/group/flexcoders/message/126803 
>  
> 
> HTH.
> 
> Steve
> 
> --- In flexcoders@yahoogroups.com  , 
> "shrike6_7"  wrote:
> >
> > Hello,
> > with a remoteobject how can I send parameters?
> > If I use:
> > 
> > 
> > 
> > {text1.text}
> > {text2.text}
> > 
> > 
> > 
> > at serverside (php with amf) I have a function setData($arg1,$arg2)
> > 
> > but can I send this parameters in POST and receive it in the $_POST 
> > variable?
> > 
> > Thanks
> >
> 
> 
> 
> 
> 
> -- 
> This message has been scanned for viruses and 
> dangerous content by MailScanner  , and is 
> believed to be clean.
>




Re: [flexcoders] Re: Variable SampleDataEvent is not defined.

2009-03-24 Thread Aaron Hardy
Tried that many a time.  Other suggestions?  Also, I for sure have AIR 1.5.1
installed on my computer.

Aaron

On Tue, Mar 24, 2009 at 11:40 AM, valdhor wrote:

>   Maybe clean the project?
>
>
> --- In flexcoders@yahoogroups.com , Aaron
> Hardy  wrote:
> >
> > Hey everyone. A couple months ago I worked on an AIR project where we
> made
> > use of the SampleDataEvent class to generate dynamic audio. Today I came
> > back to the project and ran it and am getting the following run-time
> error:
> >
> > ReferenceError: Error #1065: Variable SampleDataEvent is not defined.
> >
> > It is thrown in the first instance where we are referencing the
> > SampleDataEvent class:
> >
> > addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataRequestHandler);
> >
> > I get no compile-time error. I have an import statement of import
> > flash.events.SampleDataEvent; The project does reference other libraries
> > and I have made sure they are all using the same SDK (I've tried both 3.2
> > and 3.3), however they do have SWCs in them that may have been built
> using
> > an older SDK. My co-worker is able to run the project without any error
> > being thrown and I have actually copied the SDKs from his machine to my
> > machine and it hasn't made any difference. I HAVE re-installed Flex
> Builder
> > since the last time the project worked for me.
> >
> > I've tried everything I can think of to no avail. Does anyone have any
> > ideas of what might be going on?
> >
> > Thanks!
> >
> > Aaron
> >
>
>  
>


Re: [flexcoders] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread claudiu ursica
Hi, why do you bind module to the model locator?

If by any chance you have embedded CSS in the module it won't garbage collect 
...

Claudiu





From: "Battershall, Jeff" 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 5:37:58 PM
Subject: [flexcoders] Modules, Cairngorm and Garbage Collection


I've been working on optimizing an AIR application I'm currently working
on that utilizes modules. In the modules there are controls bound to
ModelLocator data items.

What I'm seeing during profiling that removing a module from the display
list doesn't seem to result in the module being GC'ed. I'm suspecting
binding between the ModelLocator and the module's controls are causing
the behavior. 

Has anyone seen this and can suggest approaches to address this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battershall@ dowjones. com
(609) 520-5637 (p)
(484) 477-9900 (c)

   


  

RE: [flexcoders] Issue with Modules unloading...

2009-03-24 Thread Alex Harui
It is scheduled for Flex 3.4

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of cuttenv
Sent: Tuesday, March 24, 2009 2:51 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issue with Modules unloading...


Hello,
I had an issue with Modules unloading, especially ones that had embedded images 
or animations playing in them. I am still convinced that ANY Module has a hard 
time being unloaded from memory. I was wondering if anyone had a sound solution 
to fixing this issue or ran into it before. I also wanted to encourage you guys 
to vote on this issue because it has been open since last August. I am pretty 
disappointed with the current state of Modules in Flex, but I hope it can be 
fixed soon.
http://bugs.adobe.com/jira/browse/SDK-16613
-Vito



RE: [flexcoders] bug with remoteObject and ToolTip with loaded flex application

2009-03-24 Thread Alex Harui
That's not an officially supported configuration.  Some folks get it to work, 
but no guarantees.  Try moving the data objects used by RO into the Flash SWF.  
 Also, don't use Flex 3.2.  It has bugs related to this configuration.  Use 3.3 
or 3.1

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of carloscarvalhar
Sent: Tuesday, March 24, 2009 4:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] bug with remoteObject and ToolTip with loaded flex 
application


Hi,

I have a flex application working fine, but i need to load it into a flash swf 
and it is giving me a lot of trouble.

I get a really strange behavior: my mouse doesn't shows anymore (although i'm 
not changing cursors), remote object's calls doesn't load anymore and tooltips 
don't show.

I think it is happening because, once my flex app is loaded in flash, the 
"root" isn't anymore Application.application.

But i don't have any idea of how to fix it, actually, i wonder if the fix would 
it be in flash or flex...i tried to fix in both, but so far i couldn't reach a 
solution.

Is there a solution for it? Can you point me where to try?

You can check the "normal call" to flex app here:
http://carvalhar.com [working fine]

And here is the problem, where i try to load in flash swf::
http://carvalhar.com/swf/preloader.swf

PS:
my flash loader is pretty simple:
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var loader:Loader = new Loader();
loader.load(new URLRequest(Stage.path ? Stage.path : '/swf/meusite.swf'));
this.addChild(loader);
stop();

And this is one of the errors (in flex, after loaded):
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método de 
uma referência de objeto nula.
at 
mx.managers::CursorManagerImpl/showCurrentCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:627]
at 
mx.managers::CursorManagerImpl/setCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:422]
at 
mx.managers::CursorManagerImpl/setBusyCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:526]
at 
mx.managers::CursorManager$/setBusyCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManager.as:303]
at 
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:194]
at 
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:285]
at modules::home/init()[C:\Documents and Settings\User\Meus 
documentos\Design\flex\meusite\src\modules\home.mxml:76]
at modules::home/___home_Module1_creationComplete()[C:\Documents and 
Settings\User\Meus documentos\Design\flex\meusite\src\modules\home.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set 
initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at 
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]



RE: [flexcoders] Change DataGrid Columns

2009-03-24 Thread Alex Harui
I don't think it is column invalidation that is the problem.  The fundamental 
DG update mechanism is row-based.  If you add a column other columns' sizes 
will likely be affected.  How are you adding a column such that the DG wouldn't 
get wider or columns have to shift?

I'd make sure the expensive renderer is optimized as much as possible.  Make 
sure you don't do updates if values don't change.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Wesley Acheson
Sent: Tuesday, March 24, 2009 8:55 AM
To: flexcoders
Subject: [flexcoders] Change DataGrid Columns


I'm hoping that someone would be able to help me with this.

Is it possible in theory to subclass DataGrid to add and remove columns in such 
a way that not all the columns are invalidated?  Basically I've got an 
ItemRenderer which is quite expensive, Changing all the item renderers doesn't 
make sense.

I'm guessing that the add column would need to add something to columnMap and 
freeItemRenderersTable although as far as I can see neither of these seem to be 
used within the DataGridClass, and I would have to stop the 
columnRendererChanged property from changing for existing columns.

Anyone able to help or point me in the correct direction?

Regards,

Wes




[flexcoders] framework RSL deployment problem

2009-03-24 Thread Dana
Hi guys.

I have a weird RSL deployment problem on JBoss 4.0.5GA.

I'm using framework 3.2.0.3958 as a signed RSL for one of my apps.
If I build the app using FlexBuilder, it runs beautifully.
If I compile it from the command line (my build server) using the swz/swf RSLs 
from my FlexBuilder output, firstly the .swz file fails to load, I then get a 
digest mismatch error when the swf failover is loaded.

However, if I then download the flex.war from my server, unzip it, overwrite 
the swz/swf in the war file with the FlexBuilder swz/swf files (these are the 
SAME files as I packaged up in the flex.war file!) zip it back up and push it 
back to the server, it runs fine.

I'm at a complete loss to explain this since I've been ultra careful to ensure 
that the same swf/swz/framework.swc files have been used to compile both the 
FlexBuilder and the build server apps.
I even compared the digests generated by each build using the -keep option. 
They're identical.

Can anyone shed some light on this?



RE: [flexcoders] Re: which one is better to use?

2009-03-24 Thread Tracy Spratt
To get the client side performance benefit, *strongly typed objects* are
critical.  An arrayCollection of dynamic objects will not be ideal.

Of course there are a lot of variable in performance questions.  In my
experience, data transport and in-memory processing are far smaller factors
in the user experience than UI rendering.

Certainly the ideal data transport architecture is RemoteObject, using amf
to pass strongly typed objects.  But that is significantly more difficult
than passing around XML.  

If you choose to use XML, then you can derive the client-side performance
benefits by using the XML to build an ArrayCollection of strongly typed VOs.

If performance is a consideration, never use resultFormat="object" (the
default)

Tracy Spratt,
Lariat Services, development services available

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Scott
Sent: Tuesday, March 24, 2009 10:07 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: which one is better to use?

I would agree 100%.  In my tests XML is a lot slower to use and is
especially seen when there are a large amount of rows being returned.  If
this is over the Internet then I would for sure use arrayCollection.  XML is
a very "wordy" structure and probably increases the amount of data being
transfered by 30-50%.
 
 Scott



From: flexcoders@yahoogroups.com on behalf of valdhor
Sent: Tue 3/24/2009 9:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: which one is better to use?



I have found that using an arrayCollection of typed objects is much faster
for me. I don't have the overhead of the XML parser. It tends to depend on
the amount of data being returned. In some of my cases I am returning 5,000+
rows of data. With typed objects this is around 175KB over the pipe. With
XML it was over 5MB.

HTH.

Steve

--- In flexcoders@yahoogroups.com  ,
Vikram Singh  wrote:
>
> hello friends...
> i am passing data request to php using RemoteObject from flex.
> and php send back processed data to Flex. 
> which one is better in performance for flex application operation??
> 1. ArrayCollection
> OR
> 2. XML
> which one is easy and fast accesable??
> all the data are storing in ArrayCollection and used it to displaying in
flex components.
> I feel that Array object is little bit slow.
> Please suggest me the right option.
> 
> Thanks.
> 
> 
> Add more friends to your messenger and enjoy! Go to
http://messenger.yahoo.com/invite/  
>





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is 
believed to be clean. 



RE: [flexcoders] measure() not fired after calling invalidateSize()?

2009-03-24 Thread Alex Harui
If you've set width/height or explicitWidth/Height, measure will not be called.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of TJ Downes
Sent: Tuesday, March 24, 2009 8:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] measure() not fired after calling invalidateSize()?


Hi all,

I am creating a custom component and I need to know the size of the component 
after the properties have changed. To my knowledge the best way to handle this 
is to fire invalidateProperties() and and invalidateSize() after I set the data 
of the component.

My code below outlines my strategy thus far for attempting this. However, 
measure() never gets fired, so I am unsure what I am missing here.

Also, to be clear, I have attempted to override commitProperties() and 
updateDisplayList() with the same results. To be clear, the setter is running 
and stops at my break point. Examining the data object indicates the data is 
being set properly.

[Bindable]
override public function set data(obj:Object):void {
super.data = obj;
invalidateProperties();
invalidateSize();
invalidateDisplayList();
}

override protected function measure():void {
super.measure();
dispatchEvent(new 
PropertyInfoWindowCustomContentEvent(PropertyInfoWindowCustomContentEvent.PROPERTY_TILE_LOADED,
 data.ccProperty, true));
}

Thanks!
TJ Downes



Re: [flexcoders] ADG to .csv - Not finding any solutions out there

2009-03-24 Thread Alan K
When I did this, I just looped though the dataprovider, concatenating values
to a string, then save it as a file with a .csv extension.

No problem with that.  It doesn¹t even matter what kind of component you are
using. - you could do it from a combobox.

Alan
>I've seen several solutions for doing this with a standard DataGrid,


[flexcoders] Re: Variable SampleDataEvent is not defined.

2009-03-24 Thread valdhor
Maybe clean the project?


--- In flexcoders@yahoogroups.com, Aaron Hardy  wrote:
>
> Hey everyone.  A couple months ago I worked on an AIR project where we made
> use of the SampleDataEvent class to generate dynamic audio.  Today I came
> back to the project and ran it and am getting the following run-time error:
> 
> ReferenceError: Error #1065: Variable SampleDataEvent is not defined.
> 
> It is thrown in the first instance where we are referencing the
> SampleDataEvent class:
> 
> addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataRequestHandler);
> 
> I get no compile-time error.  I have an import statement of import
> flash.events.SampleDataEvent;  The project does reference other libraries
> and I have made sure they are all using the same SDK (I've tried both 3.2
> and 3.3), however they do have SWCs in them that may have been built using
> an older SDK.  My co-worker is able to run the project without any error
> being thrown and I have actually copied the SDKs from his machine to my
> machine and it hasn't made any difference.  I HAVE re-installed Flex Builder
> since the last time the project worked for me.
> 
> I've tried everything I can think of to no avail.  Does anyone have any
> ideas of what might be going on?
> 
> Thanks!
> 
> Aaron
>




RE: [flexcoders] how to get parameter into .SWF file in AIR application...

2009-03-24 Thread Tracy Spratt
I do not work much with air, but that (flashvars) should work.  Where is it
failing?

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Jigar Kapadia
Sent: Tuesday, March 24, 2009 9:12 AM
To: flexcoders@yahoogroups.com
Cc: rsp...@yahoo.com
Subject: [flexcoders] how to get parameter into .SWF file in AIR
application...

 

Hello,

 

I am using a .SWF buit in FLEX 2 and have to use it in AIR application.

 

I need to pass a parameter to that .swf file.

 

I am using swfloader to load the .swf file and passing parameter like

swf.load("/assets/Sample.swf?ptID="+ Patient.ID);

 

As this .Swf file is built in another project.

How can .SWF file get parameter ptID into it in AIR application?

 

 

Thanks,

Jigar

 





[flexcoders] Re: measure() not fired after calling invalidateSize()?

2009-03-24 Thread TJ Downes
Discovered my issue. I was instantiating the class but not creating it in the 
display list. doh



RE: [flexcoders] bug with remoteObject and ToolTip with loaded flex application

2009-03-24 Thread Tracy Spratt
This is too complex an issue for me to help directly, but here are a few
suggestions.

*   Use swfLoader
*   Be aware of the lifecycle, event and datatype issues with working
with loaded swf’s.  Here is a link to an example:
http://www.cflex.net/showFileDetails.cfm?ObjectID=690

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of carloscarvalhar
Sent: Tuesday, March 24, 2009 7:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] bug with remoteObject and ToolTip with loaded flex
application

 

Hi,

I have a flex application working fine, but i need to load it into a flash
swf and it is giving me a lot of trouble.

I get a really strange behavior: my mouse doesn't shows anymore (although
i'm not changing cursors), remote object's calls doesn't load anymore and
tooltips don't show.

I think it is happening because, once my flex app is loaded in flash, the
"root" isn't anymore Application.application.

But i don't have any idea of how to fix it, actually, i wonder if the fix
would it be in flash or flex...i tried to fix in both, but so far i couldn't
reach a solution.

Is there a solution for it? Can you point me where to try?

You can check the "normal call" to flex app here:
http://carvalhar.  com [working fine]

And here is the problem, where i try to load in flash swf::
http://carvalhar. 
com/swf/preloader.swf

PS:
my flash loader is pretty simple:
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var loader:Loader = new Loader();
loader.load(new URLRequest(Stage.path ? Stage.path : '/swf/meusite.swf'));
this.addChild(loader);
stop();

And this is one of the errors (in flex, after loaded):
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método
de uma referência de objeto nula.
at
mx.managers::CursorManagerImpl/showCurrentCursor()[C:\autobuild\3.2.0\framew
orks\projects\framework\src\mx\managers\CursorManagerImpl.as:627]
at
mx.managers::CursorManagerImpl/setCursor()[C:\autobuild\3.2.0\frameworks\pro
jects\framework\src\mx\managers\CursorManagerImpl.as:422]
at
mx.managers::CursorManagerImpl/setBusyCursor()[C:\autobuild\3.2.0\frameworks
\projects\framework\src\mx\managers\CursorManagerImpl.as:526]
at
mx.managers::CursorManager$/setBusyCursor()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\managers\CursorManager.as:303]
at mx.rpc.remoting.mxml::Operation/http://www.adobe.

com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src
\mx\rpc\remoting\mxml\Operation.as:194]
at
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\m
x\rpc\remoting\Operation.as:113]
at Function/http://adobe. 
com/AS3/2006/builtin::apply()
at
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\
src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe. 
com/AS3/2006/builtin::apply()
at mx.rpc::AbstractService/http://www.adobe.

com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks\pr
ojects\rpc\src\mx\rpc\AbstractService.as:285]
at modules::home/init()[C:\Documents and Settings\User\Meus
documentos\Design\flex\meusite\src\modules\home.mxml:76]
at modules::home/___home_Module1_creationComplete()[C:\Documents and
Settings\User\Meus documentos\Design\flex\meusite\src\modules\home.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\
framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set
initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\U
IComponent.as:1169]
at
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\framew
orks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe. 
com/AS3/2006/builtin::apply()
at
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\core\UIComponent.as:8628]
at
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\pro
jects\framework\src\mx\core\UIComponent.as:8568]





RE: [flexcoders] Custom Classes and Custom Events

2009-03-24 Thread Tracy Spratt
Understand that "custom event" has two different meanings.  You can create a
true custom event, a class of your own that extends Event, as you have
posted.  You would do that if you need to package up some data in the event
object itself.

 

But you can also apply a custom type name to a standard Event object:

dispatchEvent(new Event("myCustomTypeName"));

 

myCustomComp.addEventListener("myCustomTypeName", myCustomTypeHandler)

 

If you need data in the event handler, you can access any public property in
the dispatching object by using the reference returned by target or
currentTarget.  This second approach is much simpler that creating a custom
event class.

Private function myCustomTypeHandler(event:Event):void

 Var someData:String = event.currentTarget.myPublicProperty;

.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of secrit.service
Sent: Tuesday, March 24, 2009 9:24 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Classes and Custom Events

 

Hi all,

The last couple of weeks I wrote my first application in Flex. Today I want
to refactor it, meaning : using custom classes and custom events.

I have following :

I created an application with a couple of buttons and with a custom
component (myCustomComp)  in it. This custom component is based on a Vbox an
contains :
 - an HBox (mySearchbar) with a textfield and button
 - a datagrid which contains data from a database
 - an HBox (myToolbar) with a button and a label 

The buttons are used for adding, modifying and deleteing records of the
database. SO I was thinking of creating a custom event (myCustomEvent).

The code I have so far is following :

package events {
 
 import flash.events.Event;
 
 public class myCustomEvent extends Event {
   
public function SpellEvent(type:String) {
 super(type);
}
  
   override public function clone():Event{
var evt:myCustomEvent = new myCustomEvent(type);
return evt;
}
  
 }
 
}

I was thinking of adding event listners to my buttons. For example my button
to add a new record will have a addRecordEventListener. In this listener I
create a new instance of myCustEvent and pass my new record as a parameter.
The same I will do with my button to delete a record.

My question is where and how I should make the difference between the 2
operations.
I suppose I have to create a new instance of my event and besides my new
record I also need to pass the type of operation : something like new
myCustomEvent(newRecord, "addRecord") or new myCustomEvent(newRecord,
"deleteRecord"). But in this case, how do I process the different
operations?

I'm lost and hoping for a clear answer.

Thanks





RE: [flexcoders] Re: Dynamic Accordion

2009-03-24 Thread Tracy Spratt
You may be making this hard. I do dynamic Accordions using repeater, works
great.  If you really are insistent on AS only, then use addChild().
Accordion is just a navigation container.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of timgerr
Sent: Tuesday, March 24, 2009 11:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Dynamic Accordion

 

So I have been reading actionscript on how to do this and I am running into
some troubles, I seem to have to use createSegment but I dont see it in
flex, here is what I mean:
var a:Accordion = new Accordion();
a.createSegment("Some Parameters");

I dont get a.createSegment in my list of things I can add to a. What am I
doing wrong?

Thanks,
timgerr

--- In flexcod...@yahoogro  ups.com,
"timgerr"  wrote:
>
> Can some one point me to an example of an accordion done in actionscript?
I want to create a menu with an accordion in it in actionscript but cannot
find any examples on how to do the accordion.
> 
> Thanks,
> 
> timgerr
>





Re: [flexcoders] HTML in the List Component?

2009-03-24 Thread Brandon Krakowsky
Yeah, I'm having a hard time with this.  I'm trying to display auto-sized html 
in a list component.  It just never looks right.  Sometimes there is too much 
padding on the bottom, sometimes, not enough and the text is cut-off.  And one 
I start scrolling, forget it.  It keeps changing.  I must be missing something. 
 If the labelFunction supported HTML I'd be set, as the sizing on this seems 
fine.

I'm rolling my own "list", based on a VBox.

Thanks,
Brandon





From: Jeffry Houser 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 11:07:53 AM
Subject: Re: [flexcoders] HTML in the List Component?



 Based on my recent experience w/ this; I gave up trying to display
HTML Text in a list using the default itemRenderer ( ListItemRenderer
if memory serves me ).  

 In theory, setting ListItemRenderer. label.htmlText should work  In
practice, it always reverted to 'normal' text when displayed in the
context of a list.  I built my own itemRenderer using a label and that
addressed my issue.  

 I ran into this issue while building the Flextras
AutoCompleteComboBo x.  The ComboBox drop down is just a list, for those
that haven't cracked open the code.  The AutoComplete will support
highlighting in the drop down, based on the filter text.  All baked
right in. I'll be sending the next beta to beta testers in a few
hours.  

Brandon Krakowsky wrote: 
I have a List component with both variableRowHeight and wordWrap
set to true.  Is there anyway to leverage the labelField or
labelFunction to render html text?  Is the only way to create a custom
itemRenderer?  I tried it but find it very difficult to set the height
of a UITextField, added to a Canvas.

Thanks,
Brandon



-- 
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl. com/684b5h http://www.twitter. 
com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust
   


  

[flexcoders] Variable SampleDataEvent is not defined.

2009-03-24 Thread Aaron Hardy
Hey everyone.  A couple months ago I worked on an AIR project where we made
use of the SampleDataEvent class to generate dynamic audio.  Today I came
back to the project and ran it and am getting the following run-time error:

ReferenceError: Error #1065: Variable SampleDataEvent is not defined.

It is thrown in the first instance where we are referencing the
SampleDataEvent class:

addEventListener(SampleDataEvent.SAMPLE_DATA, sampleDataRequestHandler);

I get no compile-time error.  I have an import statement of import
flash.events.SampleDataEvent;  The project does reference other libraries
and I have made sure they are all using the same SDK (I've tried both 3.2
and 3.3), however they do have SWCs in them that may have been built using
an older SDK.  My co-worker is able to run the project without any error
being thrown and I have actually copied the SDKs from his machine to my
machine and it hasn't made any difference.  I HAVE re-installed Flex Builder
since the last time the project worked for me.

I've tried everything I can think of to no avail.  Does anyone have any
ideas of what might be going on?

Thanks!

Aaron


[flexcoders] Re: Custom Classes and Custom Events

2009-03-24 Thread valdhor
For a start you are going to need a constructor. You will also need
member properties for the items you want to add to the event..

package events
{
  import flash.events.Event;

  public class recordEvent extends Event
{
 public static const RECORD_EVENT:String = "recordEvent";
 public var record:myRecordObject;
 public var action:String;

  public function recordEvent(type:String, record:myRecordObject,
action:String, bubbles:Boolean=true, cancelable:Boolean=true)
//Constructor
 {
super(type);
this.record = record;
this.action = action;
 }

 override public function clone():Event
 {
   return new recordEvent(type, record, action, bubbles,
cancelable);
 }
   }
}

For a new event of your type...

dispatchEvent(new recordEvent(recordEvent.RECORD_EVENT, myRecord,
"delete"));

And for an eventListener you can use...

addEventListener(recordEvent.RECORD_EVENT, onRecordEvent);

private function onRecordEvent(event:recordEvent):void
{
 var action:String = event.action;
 var record:myRecordObject = event.record;
}

NB: Typed off the top of my head so may have mistakes. Generally, I
would use private member variables with getters and setters but this
should give you a starting point.

HTH



Steve
--- In flexcoders@yahoogroups.com, "secrit.service" 
wrote:
>
>
> Hi all,
>
> The last couple of weeks I wrote my first application in Flex. Today I
> want to refactor it, meaning : using custom classes and custom events.
>
> I have following :
>
> I created an application with a couple of buttons and with a custom
> component (myCustomComp)  in it. This custom component is based on a
> Vbox an contains :
>   - an HBox (mySearchbar) with a textfield and button
>   - a datagrid which contains data from a database
>   - an HBox (myToolbar) with a button and a label
>
> The buttons are used for adding, modifying and deleteing records of
the
> database. SO I was thinking of creating a custom event
(myCustomEvent).
>
> The code I have so far is following :
>
> package events {
>
>   import flash.events.Event;
>
>   public class myCustomEvent extends Event {
>
>  public function SpellEvent(type:String) {
>   super(type);
>  }
>
> override public function clone():Event{
>  var evt:myCustomEvent = new
myCustomEvent(type);
>  return evt;
>  }
>
>   }
>
> }
>
> I was thinking of adding event listners to my buttons. For example my
> button to add a new record will have a addRecordEventListener. In this
> listener I create a new instance of myCustEvent and pass my new record
> as a parameter.
> The same I will do with my button to delete a record.
>
> My question is where and how I should make the difference between the
2
> operations.
> I suppose I have to create a new instance of my event and besides my
new
> record I also need to pass the type of operation : something like new
> myCustomEvent(newRecord, "addRecord") or new myCustomEvent(newRecord,
> "deleteRecord"). But in this case, how do I process the different
> operations?
>
> I'm lost and hoping for a clear answer.
>
> Thanks
>



Re: [flexcoders] Where I can download Flex 4 Builder trial version?

2009-03-24 Thread Nick Collins
You can't. They did distribute an early preview release at MAX on the
DVD, but it's not available for download yet.

http://labs.adobe.com/technologies/gumbo/

On Tue, Mar 24, 2009 at 11:02 AM, markflex2007  wrote:
> Thanks
>
> Mark
>
> 


[flexcoders] Using cairngorm for "push" events

2009-03-24 Thread Osman Ullah
I am using cairngorm on my current project and I have run into a couple issues 
which I am having trouble dealing with through Cairngorm. Hopefully someone can 
help.

1) I have an event loop which is polling my web service for events. Where would 
be the best place to run this event loop and what would be a good way of 
notifying the view to "do something"? There might be very little data, so it 
might be something like popping an alert or popping a toast notification...it's 
not something I can do through databinding and cairngorm seems to throw out the 
whole concept of the model notifying the view through events (this design 
decision is something I don't really understand). 

2) I want to make a request, and show a loading indicator while the request is 
pending, and then show a confirmation with the result of hte request. Similar 
requests are being made in different parts of the application, but they all 
consist of making the request, showing a wait indicator, and then showing a 
confirmation. Again, some suggestions on how to handle this would be 
appreciated.

Thanks



[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread valdhor
Quick and dirty using the example code at
http://livedocs.adobe.com/flex/3/langref/mx/containers/Accordion.html#in\
cludeExamplesSummary...


http://www.adobe.com/2006/mxml";
layout="vertical"
 creationComplete="onCreationComplete()">
 
 
 





--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> So I have been reading actionscript on how to do this and I am running
into some troubles, I seem to have to use createSegment but I dont see
it in flex, here is what I mean:
> var a:Accordion = new Accordion();
> a.createSegment("Some Parameters");
>
> I dont get a.createSegment in my list of things I can add to a.  What
am I doing wrong?
>
> Thanks,
> timgerr
>
>
> --- In flexcoders@yahoogroups.com, "timgerr" tgallagher@ wrote:
> >
> > Can some one point me to an example of an accordion done in
actionscript?  I want to create a menu with an accordion in it in
actionscript but cannot find any examples on how to do the accordion.
> >
> > Thanks,
> >
> > timgerr
> >
>



Re: [flexcoders] Where I can download Flex 4 Builder trial version?

2009-03-24 Thread Matt Chotin
It's not yet available publically.  We're hoping to beta in June.

Matt


On 3/24/09 9:02 AM, "markflex2007"  wrote:




Thanks

Mark







Re: [flexcoders] Re: Dynamic Accordion

2009-03-24 Thread Tom Chiverton
On Tuesday 24 Mar 2009, timgerr wrote:
> flex, here is what I mean: var a:Accordion = new Accordion();
> a.createSegment("Some Parameters");

That method isn't listed in the LiveDocs. What makes you think it should 
work ?

Why not create your Accordian using MXML ?
If you insist on using AS though, you'll need to create each child element, 
and then call
a.addChild( childElement );
for each one.

-- 
Tom Chiverton
Helping to enormously pursue frictionless innovative sticky environments as 
part of the IT team of the year, '09 and '08



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: Dynamic Accordion

2009-03-24 Thread Wesley Acheson
Okay just knocked this together very quickly.  There may be errors but it
should be enough to get you started.


http://www.adobe.com/2006/mxml"; layout="absolute"
creationComplete="doCreationComplete()">






On Tue, Mar 24, 2009 at 4:08 PM, timgerr  wrote:

> So I have been reading actionscript on how to do this and I am running into
> some troubles, I seem to have to use createSegment but I dont see it in
> flex, here is what I mean:
> var a:Accordion = new Accordion();
> a.createSegment("Some Parameters");
>
> I dont get a.createSegment in my list of things I can add to a.  What am I
> doing wrong?
>
> Thanks,
> timgerr
>
>
> --- In flexcoders@yahoogroups.com, "timgerr"  wrote:
> >
> > Can some one point me to an example of an accordion done in actionscript?
>  I want to create a menu with an accordion in it in actionscript but cannot
> find any examples on how to do the accordion.
> >
> > Thanks,
> >
> > timgerr
> >
>
>
>
>
> 
>
> --
> 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] Modules, Cairngorm and Garbage Collection

2009-03-24 Thread Battershall, Jeff
I've been working on optimizing an AIR application I'm currently working
on that utilizes modules. In the modules there are controls bound to
ModelLocator data items.

What I'm seeing during profiling that removing a module from the display
list doesn't seem to result in the module being GC'ed. I'm suspecting
binding between the ModelLocator and the module's controls are causing
the behavior.  

Has anyone seen this and can suggest approaches to address this?

Jeff Battershall
Application Architect
Dow Jones Indexes
jeff.battersh...@dowjones.com
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] Re: How to add more context menu???

2009-03-24 Thread lehaianh1986
Thank Steve very much. I find out the link but I don't know how to follow it. 
Now I can add more context menu :) 

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Is there any reason you can't use the workaround they suggest in Jira?
> 
> Main Application:
> 
> http://www.adobe.com/2006/mxml";
> creationComplete="init()" xmlns:custom="*">
>  
> 
> 
> 
> myTextArea.as:
> package
> {
>  import flash.events.ContextMenuEvent;
>  import flash.text.TextField;
>  import flash.ui.ContextMenu;
>  import flash.ui.ContextMenuItem;
>  import mx.controls.Alert;
>  import mx.controls.TextArea;
> 
>  public class myTextArea extends TextArea
>  {
>  private var cm:ContextMenu;
>  private var cmi:ContextMenuItem;
> 
>  public function myTextArea()
>  {
>  super();
>  callLater(addCTMenu);
>  }
> 
>  private function addCTMenu():void
>  {
>  cmi = new ContextMenuItem("View item...", true);
>  cmi.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT,
> contextMenuItem_menuItemSelect);
>  cm = new ContextMenu();
>  cm.hideBuiltInItems();
>  cm.customItems = [cmi];
>  (textField as TextField).contextMenu = cm;
>  }
> 
>  private function
> contextMenuItem_menuItemSelect(evt:ContextMenuEvent):void
>  {
>  Alert.show("You just used a custom context menu on a
> TextArea.");
>  }
>  }
> }
> 
> NB: The reason I used callLater was that the textField was not
> instanciated when the textArea was first created.
> 
> 
> HTH.
> 
> 
> Steve




RE: [flexcoders] Re: remoteobject and parameters

2009-03-24 Thread Scott
Is any small developer even using Weborb?  When I called them they were slow to 
get back to me and they don't even have documentation of their products they're 
"working on it".  That's a huge red flag to me...  What kind of support would I 
get for their products if I were to buy in.  Also, the price seemed really high 
and it was a yearly fee.
 
I would agree, I only use httpservice when I need to attach to a server that I 
have no control over.



From: flexcoders@yahoogroups.com on behalf of valdhor
Sent: Tue 3/24/2009 10:14 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: remoteobject and parameters



You need to decide whether you want to use AMF with objects or HTTPService with 
POST/GET parameters. I recommend using the former.

These two threads should get you going using RemoteObjects and WebORB:

http://tech.groups.yahoo.com/group/flexcoders/message/134254 
 
http://tech.groups.yahoo.com/group/flexcoders/message/126803 
 

HTH.

Steve

--- In flexcoders@yahoogroups.com  , 
"shrike6_7"  wrote:
>
> Hello,
> with a remoteobject how can I send parameters?
> If I use:
> 
> 
> 
> {text1.text}
> {text2.text}
> 
> 
> 
> at serverside (php with amf) I have a function setData($arg1,$arg2)
> 
> but can I send this parameters in POST and receive it in the $_POST variable?
> 
> Thanks
>





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is 
believed to be clean. 
<>

[flexcoders] measure() not fired after calling invalidateSize()?

2009-03-24 Thread TJ Downes
Hi all,

I am creating a custom component and I need to know the size of the component 
after the properties have changed. To my knowledge the best way to handle this 
is to fire invalidateProperties() and and invalidateSize() after I set the data 
of the component. 

My code below outlines my strategy thus far for attempting this. However, 
measure() never gets fired, so I am unsure what I am missing here. 

Also, to be clear, I have attempted to override commitProperties() and 
updateDisplayList() with the same results. To be clear, the setter is running 
and stops at my break point. Examining the data object indicates the data is 
being set properly.


[Bindable]
override public function set data(obj:Object):void {
super.data = obj;
invalidateProperties();
invalidateSize();
invalidateDisplayList();
}

override protected function measure():void {
super.measure();
dispatchEvent(new 
PropertyInfoWindowCustomContentEvent(PropertyInfoWindowCustomContentEvent.PROPERTY_TILE_LOADED,
 data.ccProperty, true));
}


Thanks!
TJ Downes



[flexcoders] Change DataGrid Columns

2009-03-24 Thread Wesley Acheson
I'm hoping that someone would be able to help me with this.

Is it possible in theory to subclass DataGrid to add and remove columns in
such a way that not all the columns are invalidated?  Basically I've got an
ItemRenderer which is quite expensive, Changing all the item renderers
doesn't make sense.

I'm guessing that the add column would need to add something to columnMap
and freeItemRenderersTable although as far as I can see neither of these
seem to be used within the DataGridClass, and I would have to stop the
columnRendererChanged property from changing for existing columns.

Anyone able to help or point me in the correct direction?

Regards,

Wes


[flexcoders] Where I can download Flex 4 Builder trial version?

2009-03-24 Thread markflex2007
Thanks

Mark



Re: [flexcoders] Custom Classes and Custom Events

2009-03-24 Thread Ken Dunnington
Take a look at some of the classes in the mx.events.* package. Generally,
your custom events will have static constants to enumerate the possible
values for 'type', i.e.
public static const ADD_RECORD:String = "addRecordEvent";
public static const DELETE_RECORD:String = "deleteRecordEvent";

To attach data to an event, for example the record to delete, you would have
a property on the event.

public var record:RecordVO;

Then, in your button's click handler, you would create a new instance of
your custom event, attach the record you want to act on to it, and dispatch
it. If you want to keep your components more loosely coupled (and you
should) you would have your buttons announce an event simply stating "Delete
the currently selected record" and have your business logic located
elsewhere that would figure out what record to delete (ex. the currently
selected item in the datagrid.)

For a simple app, and since you're just getting started, you could place the
listeners in your top-level Application MXML file. Have it subscribe to the
DELETE_RECORD etc. events on the buttons, and act accordingly. Again, when
you get further along, you'll want to move this business logic elsewhere,
but I'll leave that up to you :)

HTH,
 - Ken

On Tue, Mar 24, 2009 at 9:23 AM, secrit.service
wrote:

>   Hi all,
>
> The last couple of weeks I wrote my first application in Flex. Today I want
> to refactor it, meaning : using custom classes and custom events.
>
> I have following :
>
> I created an application with a couple of buttons and with a custom
> component (myCustomComp)  in it. This custom component is based on a Vbox an
> contains :
>  - an HBox (mySearchbar) with a textfield and button
>  - a datagrid which contains data from a database
>  - an HBox (myToolbar) with a button and a label
>
> The buttons are used for adding, modifying and deleteing records of
> the database. SO I was thinking of creating a custom event (myCustomEvent).
>
> The code I have so far is following :
>
> *package events {
>
>  import flash.events.Event;
>
>  public class myCustomEvent extends Event {
>
> public function SpellEvent(type:String) {
>  super(type);
> }
>
>override public function clone():Event{
> var evt:myCustomEvent = new myCustomEvent(type);
> return evt;
> }
>
>  }
>
> }
> *
> I was thinking of adding event listners to my buttons. For example my
> button to add a new record will have a addRecordEventListener. In this
> listener I create a new instance of myCustEvent and pass my new record as a
> parameter.
> The same I will do with my button to delete a record.
>
> My question is where and how I should make the difference between the 2
> operations.
> I suppose I have to create a new instance of my event and besides my new
> record I also need to pass the type of operation : something like *new
> myCustomEvent(newRecord, "addRecord") *or *new myCustomEvent(newRecord,
> "deleteRecord")*. But in this case, how do I process the different
> operations?
>
> I'm lost and hoping for a clear answer.
>
> Thanks
>
>  
>


RE: [flexcoders] Custom Classes and Custom Events

2009-03-24 Thread Scott
I'm not exactly sure what you are trying to do but I would create two different 
events for those functions if events are truly needed.
 
Also, I would recommend extending the Validator class for your spellcheck (I 
think I've seen a spellcheck class out there somewhere).
 
Depending on what you are trying to do, it may be overkill to use events to 
process the information.  In my code, I write components/classes around a site 
function or table in a DB.  If it's a table in the DB I have a remote object in 
that class that deals with the different functions like add, modify, and 
delete.  I then assign a button to calling an actionscript function to process 
the DB call using the remoteobject.  The only time I use events is when I need 
to talk to another class (and it has to be a parent or further up the chain.  
Event bubbling does not go to parallel classes.
 
eg.
 

  [!Cdata
 
private function getData( intUserID: number):void
{
  sameasremotequery( intUSerID );
... process data
}
 
private function saveData( intUserID: number):void
{
... call remote object here
}
 

 

  

 

 
There are exceptions to my rule, but for the most part I try to use events 
where they are needed.
 
 Scott



From: flexcoders@yahoogroups.com on behalf of secrit.service
Sent: Tue 3/24/2009 8:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Custom Classes and Custom Events



Hi all,

The last couple of weeks I wrote my first application in Flex. Today I want to 
refactor it, meaning : using custom classes and custom events.

I have following :

I created an application with a couple of buttons and with a custom component 
(myCustomComp)  in it. This custom component is based on a Vbox an contains :
 - an HBox (mySearchbar) with a textfield and button
 - a datagrid which contains data from a database
 - an HBox (myToolbar) with a button and a label 

The buttons are used for adding, modifying and deleteing records of the 
database. SO I was thinking of creating a custom event (myCustomEvent).

The code I have so far is following :

package events {
 
 import flash.events.Event;
 
 public class myCustomEvent extends Event {
   
public function SpellEvent(type:String) {
 super(type);
}
  
   override public function clone():Event{
var evt:myCustomEvent = new myCustomEvent(type);
return evt;
&nb sp;   }
  
 }
 
}

I was thinking of adding event listners to my buttons. For example my button to 
add a new record will have a addRecordEventListener. In this listener I create 
a new instance of myCustEvent and pass my new record as a parameter.
The same I will do with my button to delete a record.

My question is where and how I should make the difference between the 2 
operations.
I suppose I have to create a new instance of my event and besides my new record 
I also need to pass the type of operation : something like new 
myCustomEvent(newRecord, "addRecord") or new myCustomEvent(newRecord, 
"deleteRecord"). But in this case, how do I process the different operations?

I'm lost and hoping for a clear answer.

Thanks



-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is 
believed to be clean. 
<>

RE: [flexcoders] Re: which one is better to use?

2009-03-24 Thread Scott
I would agree 100%.  In my tests XML is a lot slower to use and is especially 
seen when there are a large amount of rows being returned.  If this is over the 
Internet then I would for sure use arrayCollection.  XML is a very "wordy" 
structure and probably increases the amount of data being transfered by 30-50%.
 
 Scott



From: flexcoders@yahoogroups.com on behalf of valdhor
Sent: Tue 3/24/2009 9:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: which one is better to use?



I have found that using an arrayCollection of typed objects is much faster for 
me. I don't have the overhead of the XML parser. It tends to depend on the 
amount of data being returned. In some of my cases I am returning 5,000+ rows 
of data. With typed objects this is around 175KB over the pipe. With XML it was 
over 5MB.

HTH.

Steve

--- In flexcoders@yahoogroups.com  , 
Vikram Singh  wrote:
>
> hello friends...
> i am passing data request to php using RemoteObject from flex.
> and php send back processed data to Flex. 
> which one is better in performance for flex application operation??
> 1. ArrayCollection
> OR
> 2. XML
> which one is easy and fast accesable??
> all the data are storing in ArrayCollection and used it to displaying in flex 
> components.
> I feel that Array object is little bit slow.
> Please suggest me the right option.
> 
> Thanks.
> 
> 
> Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/  
>





-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is 
believed to be clean. 
<>

RE: [flexcoders] ADG to .csv - Not finding any solutions out there

2009-03-24 Thread Scott
I tried to do this a while back from the client but ran into an issue where 
flex doesn't have direct access to the file system.  This talks about it here: 
http://livedocs.adobe.com/flex/3/html/help.html?content=security_6.html 
However, you can do this with Air.  I started working on a similar thing for 
something I was playing with.  All I did was loop through the datagrid objects 
and parse out the information I wanted then manually wrote the variables in the 
order I wanted with a "," (comma) between each one.
 
If you can find a way around the standard flex app being able to write to the 
drive then let me know!
 
 Scott



From: flexcoders@yahoogroups.com on behalf of Tom Chiverton
Sent: Tue 3/24/2009 9:45 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] ADG to .csv - Not finding any solutions out there



On Tuesday 24 Mar 2009, Adrian Williams wrote:
> several solutions for doing this with a standard DataGrid, but nothing
> for the Advanced, including searching thru the flexcoders archive.

I'd expect the same approach to work - at a guess it grabs dg.dataProvider and 
loops over it ?

-- 
Tom Chiverton
Helping to authoritatively mesh synergistic sticky seamless clusters as part 
of the IT team of the year, '09 and '08


 

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 
 .



-- 
This message has been scanned for viruses and 
dangerous content by MailScanner  , and is 
believed to be clean. 
<>

[flexcoders] Coldfusion / Flex wizard

2009-03-24 Thread jeremysavoy
When I try to create a new app using the Coldfusion / Flex Application Wizard, 
I can conntect via RDS (my CF Data Source shows up), but when I go to add a new 
page, I add the page, then select Master/Detail - but when I click on "Edit 
Master Section" or "Edit Detail Section", nothing happens.

You would expect the Master / Detail Page Configuration dialogs to open and 
allow you to configure your page, but nothing happens at all.

This is a fresh install of FB3 + ILOG Elixr, on windows.

Has anyone seen this issue before?



Re: [flexcoders] HTML in the List Component?

2009-03-24 Thread Jeffry Houser


Based on my recent experience w/ this; I gave up trying to display HTML 
Text in a list using the default itemRenderer ( ListItemRenderer if 
memory serves me ). 

In theory, setting ListItemRenderer.label.htmlText should work  In 
practice, it always reverted to 'normal' text when displayed in the 
context of a list.  I built my own itemRenderer using a label and that 
addressed my issue. 

I ran into this issue while building the Flextras 
AutoCompleteComboBox.  The ComboBox drop down is just a list, for those 
that haven't cracked open the code.  The AutoComplete will support 
highlighting in the drop down, based on the filter text.  All baked 
right in. I'll be sending the next beta to beta testers in a few hours. 


Brandon Krakowsky wrote:
I have a List component with both variableRowHeight and wordWrap set 
to true.  Is there anyway to leverage the labelField or labelFunction 
to render html text?  Is the only way to create a custom 
itemRenderer?  I tried it but find it very difficult to set the height 
of a UITextField, added to a Canvas.


Thanks,
Brandon






--
Jeffry Houser, Technical Entrepreneur
Adobe Community Expert: http://tinyurl.com/684b5h
http://www.twitter.com/reboog711  | Phone: 203-379-0773
--
Easy to use Interface Components for Flex Developers
http://www.flextras.com?c=104
--
http://www.theflexshow.com
http://www.jeffryhouser.com
--
Part of the DotComIt Brain Trust



[flexcoders] Re: remoteobject and parameters

2009-03-24 Thread valdhor
You need to decide whether you want to use AMF with objects or HTTPService with 
POST/GET parameters. I recommend using the former.

These two threads should get you going using RemoteObjects and WebORB:

http://tech.groups.yahoo.com/group/flexcoders/message/134254
http://tech.groups.yahoo.com/group/flexcoders/message/126803

HTH.


Steve


--- In flexcoders@yahoogroups.com, "shrike6_7"  wrote:
>
> Hello,
> with a remoteobject how can I send parameters?
> If I use:
> 
> 
> 
> {text1.text}
> {text2.text}
> 
> 
> 
> at serverside (php with amf) I have a function setData($arg1,$arg2)
> 
> but can I send this parameters in POST and receive it in the $_POST variable?
> 
> Thanks
>




[flexcoders] Re: Dynamic Accordion

2009-03-24 Thread timgerr
So I have been reading actionscript on how to do this and I am running into 
some troubles, I seem to have to use createSegment but I dont see it in flex, 
here is what I mean:
var a:Accordion = new Accordion();
a.createSegment("Some Parameters");

I dont get a.createSegment in my list of things I can add to a.  What am I 
doing wrong?

Thanks,
timgerr


--- In flexcoders@yahoogroups.com, "timgerr"  wrote:
>
> Can some one point me to an example of an accordion done in actionscript?  I 
> want to create a menu with an accordion in it in actionscript but cannot find 
> any examples on how to do the accordion.
> 
> Thanks,
> 
> timgerr
>




Re: [flexcoders] ADG to .csv - Not finding any solutions out there

2009-03-24 Thread Tom Chiverton
On Tuesday 24 Mar 2009, Adrian Williams wrote:
> several solutions for doing this with a standard DataGrid, but nothing
> for the Advanced, including searching thru the flexcoders archive.

I'd expect the same approach to work - at a guess it grabs dg.dataProvider and 
loops over it ?

-- 
Tom Chiverton
Helping to authoritatively mesh synergistic sticky seamless clusters as part 
of the IT team of the year, '09 and '08



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: {Disarmed} [flexcoders] remoteobject and parameters

2009-03-24 Thread Vikram Singh
in Flex:










private function btnClick() : void
{
ro.setData(txt1.text , txt2.text);

}
private function setDataResultHandler(event:ResultEvent) : void
{
ans = event.result.toString();

}

in php: (http:\\localhost\amfphpcode\services\DemoClass.php)

class DemoClass
{
function setData($v1,$v2)

{

return ($v1+$v2);

}
}


I hope you will get your solution from this.
If not get, tell me.







From: Scott 
To: flexcoders@yahoogroups.com
Sent: Tuesday, 24 March, 2009 4:14:33 PM
Subject: RE: {Disarmed} [flexcoders] remoteobject and parameters


You need to create a remoteobject in Flex.
 
I use ColdFusion for my backend but it
should be similar.  I’m also not sure if you’re using amfphp
or not but this is the basis to work from:
 

….
private function accessRemote( ):void
{
  phpService.remotePH PFunctionName( variable1,
variable2, variable3 );
}
 
….
 



 

 
 
 


 
From:flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ] On 
Behalf Of shrike6_7
Sent: Tuesday, March 24, 2009 5:40
AM
To: flexcod...@yahoogro ups.com
Subject: {Disarmed} [flexcoders]
remoteobject and parameters
 
Hello,
with a remoteobject how can I send parameters?
If I use:



{text1. text}
{text2. text}



at serverside (php with amf) I have a function setData($arg1, $arg2)

but can I send this parameters in POST and receive it in the $_POST variable?

Thanks
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean. 



  Add more friends to your messenger and enjoy! Go to 
http://messenger.yahoo.com/invite/

Re: [flexcoders] Re: HTML in the List Component?

2009-03-24 Thread Brandon Krakowsky
I see.  getTextField() is returning a null value.  Let me look into it further.

Thanks,
Brandon





From: carloscarvalhar 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 5:35:40 AM
Subject: [flexcoders] Re: HTML in the List Component?


Maybe this gonna help you:
http://www.flexer. info/2009/ 02/06/auto- resizable- text-area- component/

--- In flexcod...@yahoogro ups.com, Brandon Krakowsky  wrote:
>
> I have a List component with both variableRowHeight and wordWrap set to true. 
>  Is there anyway to leverage the labelField or labelFunction to render html 
> text?  Is the only way to create a custom itemRenderer?  I tried it but find 
> it very difficult to set the height of a UITextField, added to a Canvas.
> 
> Thanks,
> Brandon
>


   


  

[flexcoders] Re: strange problem with remote object

2009-03-24 Thread valdhor
Ooops. Sorry about that.

I don't normally send (Or receive) my data like that; I always use value 
objects (Or Data Transfer Objects or whatever they are called nowadays).

Glad to be of some help.


Steve


--- In flexcoders@yahoogroups.com, "johndoematrix"  wrote:
>
> hey, thanks guys for helping i have it working now. i googled passing flex 
> parameters in remoteobject as tracy suggested and the solution was just as 
> valdhor had suggested except valdhor missed the arguments tag otherwise this 
> is how it is in my remote object
> 
>  source="login_example3.cfc.login">
>result="concernOriginalReceived(event)" 
> fault="Alert.show(event.fault.faultString,'Error');">
>   
>   {username.text}
>   {password.text}
>   
>   
>   
> 
> thanks again guys. keep up the good work
>




[flexcoders] Re: which one is better to use?

2009-03-24 Thread valdhor
I have found that using an arrayCollection of typed objects is much faster for 
me. I don't have the overhead of the XML parser. It tends to depend on the 
amount of data being returned. In some of my cases I am returning 5,000+ rows 
of data. With typed objects this is around 175KB over the pipe. With XML it was 
over 5MB.


HTH.


Steve


--- In flexcoders@yahoogroups.com, Vikram Singh  wrote:
>
> hello friends...
> i am passing data request to php using RemoteObject from flex.
> and php send back processed data to Flex. 
> which one is better in performance for flex application operation??
> 1. ArrayCollection
> OR
> 2. XML
> which one is easy and fast accesable??
> all the data are storing in ArrayCollection and used it to displaying in flex 
> components.
> I feel that Array object is little bit slow.
> Please suggest me the right option.
> 
> Thanks.
> 
> 
>   Add more friends to your messenger and enjoy! Go to 
> http://messenger.yahoo.com/invite/
>




Re: [flexcoders] Re: HTML in the List Component?

2009-03-24 Thread Brandon Krakowsky
This is interesting, thanks.  I can't quite get it to work inside an 
itemRenderer.  I tried with MXML and creating it dynamically with AS.  The 
TextArea is still just remains a static height with whitespace or a scrollbar, 
depending on length of String.

Thanks again,
Brandon





From: carloscarvalhar 
To: flexcoders@yahoogroups.com
Sent: Tuesday, March 24, 2009 5:35:40 AM
Subject: [flexcoders] Re: HTML in the List Component?


Maybe this gonna help you:
http://www.flexer. info/2009/ 02/06/auto- resizable- text-area- component/

--- In flexcod...@yahoogro ups.com, Brandon Krakowsky  wrote:
>
> I have a List component with both variableRowHeight and wordWrap set to true. 
>  Is there anyway to leverage the labelField or labelFunction to render html 
> text?  Is the only way to create a custom itemRenderer?  I tried it but find 
> it very difficult to set the height of a UITextField, added to a Canvas.
> 
> Thanks,
> Brandon
>


   


  

[flexcoders] ADG to .csv - Not finding any solutions out there

2009-03-24 Thread Adrian Williams

Hi All,

   I've been searching for a few hours and I'm coming up short...I'm 
not finding much info out there on ways to export the data contained in 
an ADG to a .csv format (for later import into Excel).  I've seen 
several solutions for doing this with a standard DataGrid, but nothing 
for the Advanced, including searching thru the flexcoders archive.


   I've seen mention of doing this server side (though nothing in 
solutions for C#.NET) but we'd MUCH prefer to do this client-side.  I'm 
wondering if anyone out there knows of a solution for this before I go 
thru the trouble of trying to manipulate the DG export classes out there 
to use an ADG?


Best,
Adrian


[flexcoders] Custom Classes and Custom Events

2009-03-24 Thread secrit.service

Hi all,

The last couple of weeks I wrote my first application in Flex. Today I
want to refactor it, meaning : using custom classes and custom events.

I have following :

I created an application with a couple of buttons and with a custom
component (myCustomComp)  in it. This custom component is based on a
Vbox an contains :
  - an HBox (mySearchbar) with a textfield and button
  - a datagrid which contains data from a database
  - an HBox (myToolbar) with a button and a label

The buttons are used for adding, modifying and deleteing records of the
database. SO I was thinking of creating a custom event (myCustomEvent).

The code I have so far is following :

package events {

  import flash.events.Event;

  public class myCustomEvent extends Event {

 public function SpellEvent(type:String) {
  super(type);
 }

override public function clone():Event{
 var evt:myCustomEvent = new myCustomEvent(type);
 return evt;
 }

  }

}

I was thinking of adding event listners to my buttons. For example my
button to add a new record will have a addRecordEventListener. In this
listener I create a new instance of myCustEvent and pass my new record
as a parameter.
The same I will do with my button to delete a record.

My question is where and how I should make the difference between the 2
operations.
I suppose I have to create a new instance of my event and besides my new
record I also need to pass the type of operation : something like new
myCustomEvent(newRecord, "addRecord") or new myCustomEvent(newRecord,
"deleteRecord"). But in this case, how do I process the different
operations?

I'm lost and hoping for a clear answer.

Thanks



[flexcoders] how to get parameter into .SWF file in AIR application...

2009-03-24 Thread Jigar Kapadia
Hello,

I am using a .SWF buit in FLEX 2 and have to use it in AIR application.

I need to pass a parameter to that .swf file.

I am using swfloader to load the .swf file and passing parameter like
swf..load("/assets/Sample.swf?ptID="+ Patient.ID);

As this .Swf file is built in another project.
How can .SWF file get parameter ptID into it in AIR application?


Thanks,
Jigar


  

[flexcoders] Create an email in default email desktop client that is pre-populated with attachment file

2009-03-24 Thread Andriy Panas
Hello all,

Is there any way to fill 'body' attribute in the following URLRequest
with Base64 encoded data that will represent binary file?

var request:URLRequest = new
URLRequest("mailto:n...@gmail.com"+"?subject="+"&body=";);

--
Best regards,
Andriy Panas


[flexcoders] Re: flash cs3 skinning

2009-03-24 Thread quinrou
well I have finally found my answer of why what I trying to do didn't work

http://bugs.adobe.com/jira/browse/SDK-15575

there's a bug when using bitmaps, it only works with vectors.

We got rid of the animation and went for a bitmap approach using css.

thanks Alain for your help.

S




--- In flexcoders@yahoogroups.com, Alain Thibodeau  wrote:
>
> hi there,
> What I meants was: I don't think you can apply scale 9 to a class in css. I 
> think you can only do one or the other..either in flash with classes or in 
> css with bitmaps, but not 100% sure on this, I've never had to do it.
> 
> I wonder why it isn't stretching properly from the flash, and I assume there 
> is a reason you are using flash with bitmaps, perhaps because of an 
> animation?...if there isn't then why not go with all bitmaps only? In that 
> your css would look like something like this:
> 
> .flipButton{upSkin: 
> Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");overSkin:
>  
> Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");downSkin:
>  
> Embed(source="../images/iconCloseImage.png",scaleGridLeft="1",scaleGridTop="1",scaleGridRight="2",scaleGridBottom="2");color:
>  "0xC8C8C8";textRollOverColor: "FF";textSelectedColor: "FF";textAlign
> }: "left";
> 
> 
> 
>  
> 
> 
> 
> 
> From: quinrou 
> To: flexcoders@yahoogroups.com
> Sent: Thursday, March 12, 2009 6:37:33 AM
> Subject: [flexcoders] Re: flash cs3 skinning
> 
> 
> Hi,
> 
> I used the scale9grid which is part of the flash cs3 ide. the button template 
> in flash cs3 already offers the scale9grid guides. All I did is move them to 
> the right place so it wouldn't deform my round bits on my skin.
> 
> here is the css I used to apply the skin
> 
> .flipButton
> {
> skin: ClassReference( "FlipButtonSkin" ); 
> color: "0xC8C8C8";
> textRollOverColor: "0xFF";
> textSelectedColor: "0xFF";
> textAlign: "left";
> }
> 
> how would you apply the scale9grid to the skin in this case?
> 
> many thanks
> S
> 
> --- In flexcod...@yahoogro ups.com, Alain Thibodeau  
> wrote:
> >
> > You mean you did the scale 9 in Flash with the guides or in the flex css? I 
> > haven't had to set it in both before, but sounds like it isn't set 
> > properly. I'd play around with the guides in flash and in the css...
> > 
> > 
> > I've never had issues with it in flash or in css with bitmaps.
> > 
> > http://www.adobe. com/devnet/ flex/articles/ flex_skins_ 08.html
> > 
> > hth
> > 
> > 
> > 
> > 
> > 
> >  _ _ __
> > From: quinrou 
> > To: flexcod...@yahoogro ups.com
> > Sent: Wednesday, March 11, 2009 1:23:14 PM
> > Subject: [flexcoders] flash cs3 skinning
> > 
> > 
> > Hi,
> > 
> > I have skinned a button using the flex skinning template in flash cs3. The 
> > skinned is composed of bitmaps and vertors. The skin has some rounded 
> > corners so I used a scale9grid to make sure they wouldn't be distorted when 
> > used.
> > However when the skin is used in flex the scale9grid doesn't seem to work 
> > on the bipmap, they are distorted. the vector graphics seem to behave as 
> > expected.
> > 
> > Does anyone know what I need to do to get this working properly?
> > 
> > thanks
> > S
> > 
> > 
> > 
> > 
> > 
> >  _ _ _ _ _ _
> > Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your 
> > favourite sites. Download it now at
> > http://ca.toolbar. yahoo.com.
> >
> 
> 
> 
> 
> 
>   __
> Instant Messaging, free SMS, sharing photos and more... Try the new Yahoo! 
> Canada Messenger at http://ca.beta.messenger.yahoo.com/
>




[flexcoders] Re: Profiling Flex applications for Flash player 10

2009-03-24 Thread Dennis van Nooij
I followed the instructions from here:

http://opensource.adobe.com/wiki/display/flexsdk/Targeting+Flash+Player+10

so I changed flex-config.xml. If I understand it correctly that should make all 
my project compile for Flash Player 10. Which appeared to be working as 
FileReference.save() now showed up in the autocomplete (=Flash Player 1- 
feature).

Anyway, I added the "-target-player=10.0.0" to the additional commandline 
parameters for both projects (first tried library project alone). Now I do not 
get the RTE but the application freezes while showing the loading bar (RTE in 
the background ??)




--- In flexcoders@yahoogroups.com, Paresh M More  wrote:
>
> In flex properties, Flex compiler, set Flash player 10.0.0
> i would work
> 
> Regards,
> Paresh M. More
> Software Engineer
> 
> Nashik/Pune, Maharashtra, India.
> Email - pareshm...@...
> 
> 
> On Tue, Mar 24, 2009 at 5:19 PM, Dennis van Nooij wrote:
> 
> >   is anyone able to profile a Flex application that is targetted for Flash
> > player 10 ? Our Air application run, debugs and profiles fine but the web
> > version throws an RTE on startup:
> >
> > ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not
> > defined.
> >
> > to locate the problem I created a sample project which runs fine at first
> > but when adding a library project it falls back to the same error as above ?
> >
> > I'm using SDK version 3.3
> >
> > thanks,
> > Dennis
> >
> >  
> >
>




[flexcoders] Re: How to make "show" event work?

2009-03-24 Thread valdhor
creationComplete and show are two separate events. If you need both to work the 
same, include both event handlers...

http://www.adobe.com/2006/mxml"; width="912" height="444" 
show="Alert.show('test')" creationComplete="Alert.show('test')">


--- In flexcoders@yahoogroups.com, "markflex2007"  wrote:
>
> Hi,
> 
> I have a mxml component and I want it run a function when it is loaded 
> (not only first time),I did the following test for the component and I do not 
> know why the show event never work.
> 
> Please help me.
> 
> Thanks
> 
> Mark
> 
> component code:
> 
> http://www.adobe.com/2006/mxml"; width="912" height="444" 
> show="Alert.show('test')" >
> 
> ...
> 
> 
>




Re: [flexcoders] Barchart

2009-03-24 Thread Paresh M More
This is what u want

http://livedocs.adobe.com/flex/3/html/help.html?content=charts_displayingdata_08.html

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 2:30 PM, ak  wrote:

>   Hi All,
>
> I have a barchart extended from barchart.The dataprovider of the barchart
> conatins three values, importance,satisfaction and satisfactiongap.
> In the barchart there are two series extended from bar series. In one of
> the series xfield is importance and in the other satisfaction.
> How can i access the the third satisfactiongap in the barchart itemrender
> extended from the box item renderer?
>
> Regards
> aK
>
> --
> Add more friends to your messenger and enjoy! Invite them 
> now.
>
>  
>


[flexcoders] Dynamic Accordion

2009-03-24 Thread timgerr
Can some one point me to an example of an accordion done in actionscript?  I 
want to create a menu with an accordion in it in actionscript but cannot find 
any examples on how to do the accordion.

Thanks,

timgerr



[flexcoders] bug with remoteObject and ToolTip with loaded flex application

2009-03-24 Thread carloscarvalhar
Hi,

I have a flex application working fine, but i need to load it into a flash swf 
and it is giving me a lot of trouble.

I get a really strange behavior: my mouse doesn't shows anymore (although i'm 
not changing cursors), remote object's calls doesn't load anymore and tooltips 
don't show.

I think it is happening because, once my flex app is loaded in flash, the 
"root" isn't anymore Application.application.

But i don't have any idea of how to fix it, actually, i wonder if the fix would 
it be in flash or flex...i tried to fix in both, but so far i couldn't reach a 
solution.

Is there a solution for it? Can you point me where to try?


You can check the "normal call" to flex app here:
http://carvalhar.com [working fine]

And here is the problem, where i try to load in flash swf::
http://carvalhar.com/swf/preloader.swf


PS:
my flash loader is pretty simple:
import flash.events.Event;
stage.scaleMode = StageScaleMode.NO_SCALE;
stage.align = StageAlign.TOP_LEFT;
var loader:Loader = new Loader();
loader.load(new URLRequest(Stage.path ? Stage.path : '/swf/meusite.swf'));
this.addChild(loader);
stop();


And this is one of the errors (in flex, after loaded):
TypeError: Error #1009: Não é possível acessar uma propriedade ou um método de 
uma referência de objeto nula.
at 
mx.managers::CursorManagerImpl/showCurrentCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:627]
at 
mx.managers::CursorManagerImpl/setCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:422]
at 
mx.managers::CursorManagerImpl/setBusyCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManagerImpl.as:526]
at 
mx.managers::CursorManager$/setBusyCursor()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\CursorManager.as:303]
at 
mx.rpc.remoting.mxml::Operation/http://www.adobe.com/2006/flex/mx/internal::invoke()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:194]
at 
mx.rpc.remoting::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\Operation.as:113]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc.remoting.mxml::Operation/send()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\remoting\mxml\Operation.as:170]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.rpc::AbstractService/http://www.adobe.com/2006/actionscript/flash/proxy::callProperty()[E:\dev\3.0.x\frameworks\projects\rpc\src\mx\rpc\AbstractService.as:285]
at modules::home/init()[C:\Documents and Settings\User\Meus 
documentos\Design\flex\meusite\src\modules\home.mxml:76]
at modules::home/___home_Module1_creationComplete()[C:\Documents and 
Settings\User\Meus documentos\Design\flex\meusite\src\modules\home.mxml:6]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at 
mx.core::UIComponent/dispatchEvent()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:9298]
at mx.core::UIComponent/set 
initialized()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:1169]
at 
mx.managers::LayoutManager/doPhasedInstantiation()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\managers\LayoutManager.as:718]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at 
mx.core::UIComponent/callLaterDispatcher2()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8628]
at 
mx.core::UIComponent/callLaterDispatcher()[C:\autobuild\3.2.0\frameworks\projects\framework\src\mx\core\UIComponent.as:8568]




[flexcoders] Bifff - Behavior Injection Framework for Flex - v0.3 Released

2009-03-24 Thread Sean Clark Hess
I've just released the next version of Bifff, which provides a way to use
full css selectors to associate behaviors with flex components. For more
information, please read the following.
Release Notes - http://code.seanhess.net/?p=179

Documentation - http://wiki.github.com/seanhess/bifff

For this release, I've written a lot of documentation, have added support
for custom behaviors, and have added a component that can parse a
stylesheet, allowing you to have a much more robust css engine for Flex. For
example, you could use it to set the label of a button, all while using
Bifff's robust css selectors.

Don't forget to join the google group if you're interested in learning more
or trying it out.

~sean


[flexcoders] Re: HTML in the List Component?

2009-03-24 Thread carloscarvalhar
Maybe this gonna help you:
http://www.flexer.info/2009/02/06/auto-resizable-text-area-component/

--- In flexcoders@yahoogroups.com, Brandon Krakowsky  wrote:
>
> I have a List component with both variableRowHeight and wordWrap set to true. 
>  Is there anyway to leverage the labelField or labelFunction to render html 
> text?  Is the only way to create a custom itemRenderer?  I tried it but find 
> it very difficult to set the height of a UITextField, added to a Canvas.
> 
> Thanks,
> Brandon
>




[flexcoders] Barchart

2009-03-24 Thread ak
Hi All,

I have a barchart extended from barchart.The dataprovider of the barchart 
conatins three values, importance,satisfaction and satisfactiongap.
In the barchart there are two series extended from bar series. In one of the 
series xfield is importance and in the other satisfaction. 
How can i access the the third satisfactiongap in the barchart itemrender 
extended from the box item renderer?

Regards
aK


  Check out the all-new Messenger 9.0! Go to http://in.messenger.yahoo.com/

Re: [flexcoders] which one is better to use?

2009-03-24 Thread Paresh M More
Vikram,

XML  Approach is simple, In flex there is a good parser, and less over heads
are required, then arraycollection,

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 11:23 AM, Vikram Singh wrote:

>   hello friends...
> i am passing data request to php using RemoteObject from flex.
> and php send back processed data to Flex.
> which one is better in performance for flex application operation??
> 1. ArrayCollection
> OR
> 2. XML
> which one is easy and fast accesable??
> all the data are storing in ArrayCollection and used it to displaying in
> flex components.
> I feel that Array object is little bit slow.
> Please suggest me the right option.
>
> Thanks.
>
> --
> Add more friends to your messenger and enjoy! Invite them 
> now.
>
>  
>


Re: [flexcoders] Profiling Flex applications for Flash player 10

2009-03-24 Thread Paresh M More
In flex properties, Flex compiler, set Flash player 10.0.0
i would work

Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 5:19 PM, Dennis van Nooij wrote:

>   is anyone able to profile a Flex application that is targetted for Flash
> player 10 ? Our Air application run, debugs and profiles fine but the web
> version throws an RTE on startup:
>
> ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not
> defined.
>
> to locate the problem I created a sample project which runs fine at first
> but when adding a library project it falls back to the same error as above ?
>
> I'm using SDK version 3.3
>
> thanks,
> Dennis
>
>  
>


[flexcoders] Profiling Flex applications for Flash player 10

2009-03-24 Thread Dennis van Nooij
is anyone able to profile a Flex application that is targetted for Flash player 
10 ? Our Air application run, debugs and profiles fine but the web version 
throws an RTE on startup:

ReferenceError: Error #1065: Variable ContextMenuClipboardItems is not defined.

to locate the problem I created a sample project which runs fine at first but 
when adding a library project it falls back to the same error as above ?

I'm using SDK version 3.3

thanks,
Dennis  




RE: {Disarmed} [flexcoders] remoteobject and parameters

2009-03-24 Thread Scott
You need to create a remoteobject in Flex.

 

I use ColdFusion for my backend but it should be similar.  I'm also not
sure if you're using amfphp or not but this is the basis to work from:

 





private function accessRemote():void

{

  phpService.remotePHPFunctionName( variable1, variable2, variable3 );

}

 



 







 



 

 

 



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of shrike6_7
Sent: Tuesday, March 24, 2009 5:40 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] remoteobject and parameters

 

Hello,
with a remoteobject how can I send parameters?
If I use:



{text1.text}
{text2.text}



at serverside (php with amf) I have a function setData($arg1,$arg2)

but can I send this parameters in POST and receive it in the $_POST
variable?

Thanks




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

believed to be clean. 


RE: [flexcoders] Re: Using ItemRenderer with IHierarchicalData DataProvider

2009-03-24 Thread Gregor Kiddie
Sorry man, haven't got enough time to wade through that little lot
properly! Own deadlines :-( There are a fair few peculiarities and
quirks in it to make me wonder if there isn't a better way of doing what
you are attempting. The code you posted is very convoluted in what
should be a relatively simple process.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
http://www.inps.co.uk/> 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact is.helpd...@inps.co.uk



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of yossi.baram
Sent: 23 March 2009 16:12
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Using ItemRenderer with IHierarchicalData
DataProvider

 

Hi Gregor,
Dont want to bother, but I'll do a little :)
Any success with what I sent?






Re: {Disarmed} [flexcoders] How to make "show" event work?

2009-03-24 Thread Paresh M More
Mark,

If the compoent is in memory then there is no way to call this function when
ever it is loaded( expect 1st time)

Now how to resolve this issue, it can be achived by action script

when ever u want this in memory u can use this function

public function onload():void
{
 // Thing u want to do,
  Alert.show('test')
}

in main application u need to attached the child to parent and then call
this onload function

like
MainForm.addChild(can);
can.onload();


http://www.adobe.com/2006/mxml"; width="912"
height="444" show="Alert.show('test')" >
Let me know if this is still a issue for u


Regards,
Paresh M. More
Software Engineer

Nashik/Pune, Maharashtra, India.
Email - pareshm...@gmail.com


On Tue, Mar 24, 2009 at 2:28 AM, Scott  wrote:

>If I’m not mistaken, the component is created and kept in memory once
> you call it.
>
>
>
> I don’t think you can call the “show” the way you are trying to call it in
> the constructor.
>
>
>
> Instead you would have to do a creationComplete=”Alert.show(‘test’)”
>
>
>
> The re-calling the function would be dependent on what you are trying to
> do.  I believe you would have to create a function in your initializer
> function based on a timer.  Or at least that’s what I can think of off the
> top of my head…
>
>
>
>
>
>
>  --
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
> Behalf Of *markflex2007
> *Sent:* Monday, March 23, 2009 3:12 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* {Disarmed} [flexcoders] How to make "show" event work?
>
>
>
> Hi,
>
> I have a mxml component and I want it run a function when it is loaded
> (not only first time),I did the following test for the component and I do
> not know why the show event never work.
>
> Please help me.
>
> Thanks
>
> Mark
>
> component code:
>
> http://www.adobe.com/2006/mxml"; width="912"
> height="444" show="Alert.show('test')" >
>
> ...
>
> 
>
> --
> This message has been scanned for viruses and
> dangerous content by *MailScanner* , and is
> believed to be clean.
>
>  
>


[flexcoders] remoteobject and parameters

2009-03-24 Thread shrike6_7
Hello,
with a remoteobject how can I send parameters?
If I use:



{text1.text}
{text2.text}



at serverside (php with amf) I have a function setData($arg1,$arg2)

but can I send this parameters in POST and receive it in the $_POST variable?

Thanks



RE:[flexcoders] validator.validateall

2009-03-24 Thread Scott
Ok, of all the stupid things =/

 

I figured it out after 14 hours of struggle.  I sometimes wish that the
errors Flex provided were a little better than that.  The error message
doesn't make sense to what the error actually is.

 

I have states configured to show different fields based on user input.
One of the fields I'm checking in the validator doesn't exist unless the
state is active.  I commented out that individual validator and it
works.

 

Hopefully this message will help someone in the future to not go through
what I did. ;)

 

 Scott

 



 

I just created a separate program with this information and the
validator fired without error. The problem is, the rest of my code
appears to be ok as well. I tried going through commenting out areas of
my code that were non-critical and I still got the error on my original
code. Anyone know what that error is telling me?

Thanks!
Scott
---

I've been banging my head on this issue all afternoon/evening...

In all the examples I've seen for this, the Validator.validateall()
seems to be very straight forward.










 










I've tried several different iterations but the Validator.validateAll()
seems to be the problem. (I've tried creating an array and pushing the
objects into the array and I've also tried to manually set the objects
in the call (Validator.validateAll([valid1, valid2, valid3]) but I
always get the following error:

"Error: The source attribute must be specified when the property
attribute is specified.
at
mx.validators::Validator/getValueFromSource()[C:\autobuild\3.2.0\framewo
rks\projects\framework\src\mx\validators\Validator.as:846]
at
mx.validators::Validator/validate()[C:\autobuild\3.2.0\frameworks\projec
ts\framework\src\mx\validators\Validator.as:810]
at
mx.validators::Validator$/validateAll()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\validators\Validator.as:134]
at
com.cfgenerated.views.Contacts::AddContactForm2/__btnAdd_click()[C:\Cold
Fusion8\wwwroot\FT\src\com\cfgenerated\views\Contacts\AddContactForm2.mx
ml:149]"

Anyone know what this error is referring to and/or why I'm getting it?

Thanks.
Scott




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

believed to be clean. 


RE:[flexcoders] validator.validateall

2009-03-24 Thread Scott
I just created a separate program with this information and the validator fired 
without error.  The problem is, the rest of my code appears to be ok as well.  
I tried going through commenting out areas of my code that were non-critical 
and I still got the error on my original code.  Anyone know what that error is 
telling me?

Thanks!
 Scott
---

I've been banging my head on this issue all afternoon/evening...

In all the examples I've seen for this, the Validator.validateall()
seems to be very straight forward.










 










I've tried several different iterations but the Validator.validateAll()
seems to be the problem. (I've tried creating an array and pushing the
objects into the array and I've also tried to manually set the objects
in the call (Validator.validateAll([valid1, valid2, valid3]) but I
always get the following error:

"Error: The source attribute must be specified when the property
attribute is specified.
at
mx.validators::Validator/getValueFromSource()[C:\autobuild\3.2.0\framewo
rks\projects\framework\src\mx\validators\Validator.as:846]
at
mx.validators::Validator/validate()[C:\autobuild\3.2.0\frameworks\projec
ts\framework\src\mx\validators\Validator.as:810]
at
mx.validators::Validator$/validateAll()[C:\autobuild\3.2.0\frameworks\pr
ojects\framework\src\mx\validators\Validator.as:134]
at
com.cfgenerated.views.Contacts::AddContactForm2/__btnAdd_click()[C:\Cold
Fusion8\wwwroot\FT\src\com\cfgenerated\views\Contacts\AddContactForm2.mx
ml:149]"

Anyone know what this error is referring to and/or why I'm getting it?

Thanks.
Scott



[flexcoders] Issue with Modules unloading...

2009-03-24 Thread cuttenv
Hello,
I had an issue with Modules unloading, especially ones that had embedded images 
or animations playing in them. I am still convinced that ANY Module has a hard 
time being unloaded from memory. I was wondering if anyone had a sound solution 
to fixing this issue or ran into it before. I also wanted to encourage you guys 
to vote on this issue because it has been open since last August.  I am pretty 
disappointed with the current state of Modules in Flex, but I hope it can be 
fixed soon.
http://bugs.adobe.com/jira/browse/SDK-16613
-Vito




RE: [flexcoders] RE: mouse events

2009-03-24 Thread Kenneth Sutherland
Cheers, for reference I ended up doing something similar.  I set up
listeners on canvas 2 for all appropriate mouse events (canvas 2
actually covers canvas 1 completely) then I did a hitPointTest to see if
mouse was over the button, if so then I fired the triggering event from
canvas 1.

 

Thanks Kenneth.

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Alex Harui
Sent: 24 March 2009 05:31
To: flexcoders@yahoogroups.com
Subject: [flexcoders] RE: mouse events

 

Canvas1 can listen to mainCanvas and test positions to determine if it
really is over itself

 

Alex Harui

Flex SDK Developer

Adobe Systems Inc.  

Blog: http://blogs.adobe.com/aharui

 

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Kenneth Sutherland
Sent: Monday, March 23, 2009 4:07 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mouse events

 

I'm having what seems to be a very trivial issue (maybe its just a
Monday morning issue), I have 2 canvas containers inside another canvas.
See picture for explanation. Canvas 2 has a alpha value so you can see
canvas 1, but when you mouse over the area where both canvases mix
together canvas 1 will not get mouse/roll events. Any ideas how to
change this? (canvas 1 has a button that needs mouse events and canvas 2
must listen for the roll events).

Thanks.

 

 



realise

.


Kenneth Sutherland

Technical Developer

Realise Ltd
Quay House, 142 Commercial Street, Leith, Edinburgh EH6 6LB
Tel 0131 476 7432
www.realise.com  

Check out some of our recent flex work:
* Focus on funds UK  
* Focus on funds Europe
 
* Fund selector
 

* Video view
 
Realise are sponsors of the Marketing Society Scotland.
Realise Limited is registered in Scotland, SC172507.

 

 



Disclaimer 



This electronic message contains information which may be privileged and
confidential. The information is intended to be for the use of the
individual(s) or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited. If you have received
this electronic message in error, please notify us by telephone on 0131
476 6000 and delete the material from your computer.
Registered in Scotland number: SC 172507.
Registered office address: Quay House 142 Commercial Street Edinburgh
EH6 6LB.

This email message has been scanned for viruses by Mimecast.





Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---<>