Re: [flexcoders] Re: Calling mxmlc/fcsh from PHP script

2010-05-04 Thread Pedro Sena
Take a look at Granite Data Services. It contains a swf compiler

On Tue, May 4, 2010 at 10:50 AM, kanu kukreja kanukukr...@gmail.com wrote:



 Don't want to go in to FDS or LCDS, need to generate swf file using FLex
 SDK and PHP on run time.


 On Tue, May 4, 2010 at 7:17 PM, Gregor Kiddie 
 gregor.kid...@channeladvisor.com wrote:



  There was part of FDS (before it became LCDS) that had a web-compiler.
 You called for the swf and if it hadn’t been generated, it compiled it
 before delivering it, later requests just used the compiled one).



 I don’t know if it made its way into LCDS, but it’s worth a look!



 Gk.


  




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


Re: [flexcoders] Java and Flex

2009-11-28 Thread Pedro Sena
Take a look at GraniteDS also.

If you are using Jboss Seam or Spring, granite will help you a lot.

Regards,

PS

On Sat, Nov 28, 2009 at 8:40 PM, Fotis Chatzinikos 
fotis.chatzini...@gmail.com wrote:



 Google BlazeDS


 On Sat, Nov 28, 2009 at 2:36 AM, The Tiger adamlee2...@yahoo.com wrote:



 I'm java developer and i like adobe flex , so i need to make app with flex
 depend on java programming , how can i do that and what is the best id to
 make that .

 Thanks
 M.Adam
 Java Developer




 --
 Fotis Chatzinikos, Ph.D.
 Founder,
 LivinData Technologies
 www.styledropper.com
 fotis.chatzini...@gmail.com,
  




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


Re: [flexcoders] Potomac - Flex Modularity Framework (like OSGi / Eclipse RCP)

2009-09-24 Thread Pedro Sena
Interesting,

I was looking for something like that for a while.

@primo411:

Take a look at
http://www.potomacframework.org/documentation/getting-started/

Regards

On Thu, Sep 24, 2009 at 8:18 AM, primo411 primo...@gmail.com wrote:



 Is there a sample application with sources anywhere ?

 Regards

 2009/9/23 schtoo2 sch...@schtoo.com



 Hi flexcoders,

 I wanted to drop by and announce our new Flex framework. I've seen a few
 messages here over time where people are looking for a framework like the
 Eclipse RCP that includes a deep modular approach. We've just released on
 thats just for those applications.

 Potomac brings OSGI-like modularity to Flex.

 Check it out:

 http://www.potomacframework.org

 thanks,
 -Chris

 p.s. I know - not another Flex framework. But this one is different...
 really... I promise :)


  




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


Re: [flexcoders] google earth in a flex app

2009-09-09 Thread Pedro Sena
Hi Darrin,.

Did you use IFrame ?

I tried to integrate GE in my flex app w/o luck, except using IFrame.

Would appreciate more info.

Thanks in advance,

Pedro Sena

On Wed, Sep 9, 2009 at 7:13 AM, Darrin Kay dar...@stop-ing.com wrote:

 [Attachment(s) #1239e4ccc410b0ce_TopText from Darrin Kay included
 below]

 I have Google Earth working as a flex app, but was wondering if anyone has
 added to a existing app?  So in just on section / page you would see Google
 Earth, and then in the others you would not

 Thanks,
  Darrin
  




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


Re: [flexcoders] google earth in a flex app

2009-09-09 Thread Pedro Sena
Nothing happens when I try to download it.

I'll make a try from yahoo mail.

Regards

On Wed, Sep 9, 2009 at 8:20 AM, Darrin Kay dar...@stop-ing.com wrote:



 I included the source code in my original email


 On Wed, Sep 9, 2009 at 11:21 AM, Pedro Sena sena.pe...@gmail.com wrote:



 Hi Darrin,.

 Did you use IFrame ?

 I tried to integrate GE in my flex app w/o luck, except using IFrame.

 Would appreciate more info.

 Thanks in advance,

 Pedro Sena

 On Wed, Sep 9, 2009 at 7:13 AM, Darrin Kay dar...@stop-ing.com wrote:

 
 [Attachment(s)#1239e90e2d2e522e_1239e52d581e7e0a_1239e4ccc410b0ce_TopTextfrom
  Darrin Kay included below]

 I have Google Earth working as a flex app, but was wondering if anyone
 has added to a existing app?  So in just on section / page you would see
 Google Earth, and then in the others you would not

 Thanks,
  Darrin




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


  




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


Re: [flexcoders] Protection in a SaaS application

2009-08-12 Thread Pedro Sena
The better way is to protect your app from make multiple logins with the
same credentials.

If the user wanna share his credentials, no problem, but he cannot use it
while someone else is doing it.

Other alternatives(like restriction per IP) are not very good.

AFAIK, the is no 'tech' way to do it, so do it in the 'business' way.

HTH

On Wed, Aug 12, 2009 at 9:27 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 I have a Flex application that runs with the Saas model.

 I rent the application for 1 month. They pay for a login and a password.

 How to protect the application if someone put the login and password on an
 internet forum ?

 Thank you,
 Christophe,

  




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


Re: [flexcoders] cairngorm convention: vo or model?

2009-08-07 Thread Pedro Sena
Take a look at David Tucker's tutorials about Cairngorm, they will give you
some background.

HTH

On Fri, Aug 7, 2009 at 7:39 AM, Jorge Maiquez jmaiq...@yahoo.com wrote:



 I'm also ending up with my own MVC thing... but as a result of
 mis-interpreting and incorrectly implementing Cairngorm rather than
 consciously deciding to do so :)

 Thanks for the help!


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of
 Muzak
 Sent: 07 August 2009 11:12
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: Re: [flexcoders] cairngorm convention: vo or model?

 I don't have a ModelLocator, just one or more Models :) but yes, that's
 what goes in the model package.
 I have my own MVC framework, based on Cairngorm and ARP.

 ARP is what I started out with in AS2 (Flash) and Cairngorm is what most
 people moved over to when AS3 and/or Flex 2 came out.
 As already mentioned, I find Cairngorm has a few things backwards, so I
 threw together my own MVC thing.

 regards,
 Muzak

 - Original Message -
 From: Jorge Maiquez jmaiq...@yahoo.com jmaiquez%40yahoo.com
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Sent: Friday, August 07, 2009 7:21 AM
 Subject: RE: [flexcoders] cairngorm convention: vo or model?

  bindable, typed data object (which may or may not get sent across the
 wire).
 
  Cool, that definition would take care of all 3 points I originally
 mentioned.
 
  So, what do you actually put into the model package? Is it just the
 ModelLocator?
 
  cheers,
  -Jorge
 

 

 --
 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

  




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


Re: [flexcoders] Month-calendar control (with MATE test-app and Degrafa skins)

2009-08-05 Thread Pedro Sena
Nice,

A double-click in date to add new event would be cool.

Regards,

PS

On Wed, Aug 5, 2009 at 1:51 PM, max.nachlinger max.nachlin...@gmail.comwrote:



 If you can use this in a project, great! If you think the code sucks, drop
 me a line and let me know why (view-source is enabled on the build).

 http://home.comcast.net/~max.nachlinger/monthCalendar/http://home.comcast.net/%7Emax.nachlinger/monthCalendar/

 --Max

  




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


Re: [flexcoders] Distortion Effects?

2009-08-04 Thread Pedro Sena
I don't have the link here but I'm using in my actual project.

I'm sending it to your personal mail.

I will not attach it here to avoid problems with zipped files.

Regards

On Tue, Aug 4, 2009 at 4:56 PM, malik_robinson malik_robin...@yahoo.comwrote:



 Hi,



 I am trying to use the following example from Tour De Flex but it's
 missing some of the files needed to run the example.  Here is a link to the
 demo that shows the functionality I'm trying to use:


 http://www.adobe.com/devnet/flex/tourdeflex/web/#sampleId=19260;illustIndex=0;docIndex=0

 The problem is when you download the files, the mxeffects package is
 missing.  So when I do:

 import com.adobe.ac.mxeffects.Distortion;
 import com.adobe.ac.mxeffects.DistortionConstants;

 it doesn't work.

 Does anyone have a link to these files?

 The original link from Alex Uhlmann doesn't work:
 http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip

 Any help highly appreciated.

 Thanks,

 :)
  




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


Re: [flexcoders] Re: Distortion Effects?

2009-08-04 Thread Pedro Sena
Did it

On Tue, Aug 4, 2009 at 7:55 PM, malik_robinson malik_robin...@yahoo.comwrote:



 Hi,

 Thanks for the reply, that would be great. You can send it to
 malik_robin...@yahoo

 Thanks,

 m

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  I don't have the link here but I'm using in my actual project.
 
  I'm sending it to your personal mail.
 
  I will not attach it here to avoid problems with zipped files.
 
  Regards
 
  On Tue, Aug 4, 2009 at 4:56 PM, malik_robinson Malik_Robinson@
 ...wrote:
 
  
  
   Hi,
  
  
  
   I am trying to use the following example from Tour De Flex but it's
   missing some of the files needed to run the example. Here is a link to
 the
   demo that shows the functionality I'm trying to use:
  
  
  
 http://www.adobe.com/devnet/flex/tourdeflex/web/#sampleId=19260;illustIndex=0;docIndex=0
  
   The problem is when you download the files, the mxeffects package is
   missing. So when I do:
  
   import com.adobe.ac.mxeffects.Distortion;
   import com.adobe.ac.mxeffects.DistortionConstants;
  
   it doesn't work.
  
   Does anyone have a link to these files?
  
   The original link from Alex Uhlmann doesn't work:
   http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip
  
   Any help highly appreciated.
  
   Thanks,
  
   :)
  
  
 
 
 
  --
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer
  * Sun Certified Web Component Developer
  */
 

  




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


Re: [flexcoders] this group isn't very good

2009-08-03 Thread Pedro Sena
I agree with you.

Sometimes the same search that I make in Yahoo does not return what I
expect, but when I search it in my gmail, it does.

Google Groups is really better than Yahoo. =/

Regards

On Mon, Aug 3, 2009 at 9:14 AM, mitchgrrt mitch_g...@hotmail.com wrote:



 Sorry for the provocative message title. The contents of the group, and the
 people who are exchanging information, are fine.

 Yahoo Groups aren't very good. Information is organized poorly, and Search
 doesn't work. I searched for a message I sent last week and it wasn't found.
 Searching for my name turns up some messages I sent several months ago but
 no recent ones.

 Google Groups work much better than Yahoo Groups. Information is easier to
 find, and search works. I wish this group were hosted on Google instead of
 Yahoo.

  




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


Re: [flexcoders] event propagation in FLex

2009-07-30 Thread Pedro Sena
http://livedocs.adobe.com/flex/3/html/16_Event_handling_6.html

On Thu, Jul 30, 2009 at 1:05 PM, veena_kris2003 v.kri...@gmail.com wrote:



 I have one class that generates the event. I want another class to consume
 the event. How do I do this?

  




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


[flexcoders] Doubt with Tree Control

2009-07-28 Thread Pedro Sena
Hi Guys,

I have a little doubt about Tree Control:

Supposing I'm having the following xml:

root
   plant name=Plant 1
  machine name=Machine 1
 item name=Item 1 /
  /machine
   /plant
/root

I wanna display just Plant and Machine inside it. I don't wanna display the
Item node at all.

I know the labelFunction where I can choose which parameter should I use to
give the name of my tree component, but I don't know how to skip a specific
node of my XML structure.

Can someone help me with that?

Thanks in advance,

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


Re: [flexcoders] AIR app, need MouseMove events NOT bounded by screen

2009-07-28 Thread Pedro Sena
Hi Tracy,

The joystick will not trigger events like the keyboard arrows? I would
expect it from a joystick

Regards

On Tue, Jul 28, 2009 at 7:16 PM, Tracy Spratt tr...@nts3rd.com wrote:



 This AIR app is to be embedded in a consumer electronics product. It is a
 transparent UI that indirectly controls an underlying map application by
 sending messages via sockets.

 The product actually has a joystick and not a mouse and one requirement is
 that moving the joystick will cause the map to pan.

 In development, using a real mouse, when the mouse pointer hits a screen
 boundary, MouseMove events are no longer dispatched in that direction. In a
 corner, all events cease. This is causing me problems with continuing to
 send messages to the application to continue panning.

 I am hoping the joystick will behave differently, but am also looking for
 any other suggestions. I have considered using a timer to send repeated
 increments (the back-end app only needs position deltas), but I haven't
 figured out how to stop that.

 As far as I can tell, there is no way to set the position of the system
 cursor. If I could reset the mouse x,y to some positive values when it
 approached an edge, that would work as well.

 Is there anyway I can get deeper into the mouse event? If I could get a
 generic moving event, that would also suffice.

 Any thoughts?

 Tracy Spratt

  




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


[flexcoders] Re: Doubt with Tree Control

2009-07-28 Thread Pedro Sena
Did the trick with dataDescriptor atribute from Tree Control.

Hope this helps someone else in future references.

Regards,

PS

On Tue, Jul 28, 2009 at 7:03 PM, Pedro Sena sena.pe...@gmail.com wrote:

 Hi Guys,

 I have a little doubt about Tree Control:

 Supposing I'm having the following xml:

 root
plant name=Plant 1
   machine name=Machine 1
  item name=Item 1 /
   /machine
/plant
 /root

 I wanna display just Plant and Machine inside it. I don't wanna display the
 Item node at all.

 I know the labelFunction where I can choose which parameter should I use to
 give the name of my tree component, but I don't know how to skip a specific
 node of my XML structure.

 Can someone help me with that?

 Thanks in advance,

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




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


Re: [flexcoders] Thermometer Component

2009-07-27 Thread Pedro Sena
Hi Dan,

Have you found what you was looking for?

Regards

On Sun, Sep 28, 2008 at 1:12 PM, Sajid Hussain enchanter_...@yahoo.comwrote:

   maybe this could help

 http://samples.degrafa.com/ThermometerSkin/Thermometer.html

 http://samples.degrafa.com/

 Sajid




 - Original Message 
 From: Dan Pride danielpr...@yahoo.com
 To: flexcoders@yahoogroups.com
 Sent: Sunday, September 28, 2008 6:06:35 PM
 Subject: [flexcoders] Thermometer Component

  Thermometer Component
 I am looking for a component which will reflect a single value like a
 thermometer. Simple feed in the value and display it with updates.
 Any idea where to look or if anyone has one for sale this is for a
 commercial product.
 Thanks
 Dan


  




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


[flexcoders] Re: Fishbone Chart/Ishikawa Chart

2009-07-08 Thread Pedro Sena
Someone? :(

On Mon, Jul 6, 2009 at 5:37 PM, Pedro Sena sena.pe...@gmail.com wrote:

 Hi Guys,

 I need to develop a fishbone(Ishikawa) chart .

 I would like to know if someone already did it and can point me some
 resource/link, even paid softwares I'm accepting.

 I could generate it in PHP also, if it's not available in flex.

 Create 'by hand' such a chart would be very complicated, I suppose.

 Thanks for your time,

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




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


Re: [flexcoders] Re: Fishbone Chart/Ishikawa Chart

2009-07-08 Thread Pedro Sena
I will take a look at Degrafa.

The link is very interesting.

Thanks for the feedback.

PS

On Wed, Jul 8, 2009 at 1:30 PM, Richard Rodseth rrods...@gmail.com wrote:



 Also take a look at Degrafa. And I recently saw this:

 http://www.insideria.com/2009/07/axiis---an-introduction-and-tu.html


 On Wed, Jul 8, 2009 at 8:55 AM, valdhor valdhorli...@embarqmail.comwrote:



 I don't know of anything available at this time.

 You may like to make a suggestion to ILOG (
 http://www.ilog.com/products/ilogelixir/) and/or Fusion (
 http://www.fusioncharts.com/flex/) to add this type of chart.

 Best Regards

 Steve


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  Someone? :(
 
  On Mon, Jul 6, 2009 at 5:37 PM, Pedro Sena sena.pe...@... wrote:
 
   Hi Guys,
  
   I need to develop a fishbone(Ishikawa) chart .
  
   I would like to know if someone already did it and can point me some
   resource/link, even paid softwares I'm accepting.
  
   I could generate it in PHP also, if it's not available in flex.
  
   Create 'by hand' such a chart would be very complicated, I suppose.
  
   Thanks for your time,
  
   --
   /**
   * Pedro Sena
   * Systems Architect
   * Sun Certified Java Programmer
   * Sun Certified Web Component Developer
   */
  
 
 
 
  --
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer
  * Sun Certified Web Component Developer
  */
 


  




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


[flexcoders] Fishbone Chart/Ishikawa Chart

2009-07-06 Thread Pedro Sena
Hi Guys,

I need to develop a fishbone(Ishikawa) chart .

I would like to know if someone already did it and can point me some
resource/link, even paid softwares I'm accepting.

I could generate it in PHP also, if it's not available in flex.

Create 'by hand' such a chart would be very complicated, I suppose.

Thanks for your time,

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


Re: [flexcoders] Updating WITHOUT human intervention

2009-06-23 Thread Pedro Sena
A little old, but may help you.

http://blog.everythingflex.com/2007/03/20/apollo-self-updating-applications/

HTH

On Mon, Jun 22, 2009 at 10:50 PM, Raymond Brown silenttr...@yahoo.comwrote:



 Say your school has a remote system collecting data miles away and you need
 to update it with no one there to help click through the dialog.  Is there a
 way to do an update in adobe air without human intervention?  Meaning we
 post a new update on the server and the next time the remote app comes
 online it sees the new update and self updates without a human clicking a
 button.

 A small tutorial, blog pointer or even small sample idea would be helpful.
  Every time I try it on my own I seem to be missing something.

 -ray

  




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


Re: [flexcoders] domain problem in remoteobject application

2009-06-22 Thread Pedro Sena
You can configure in amfphp where your 'services' would be.

Take a look at documentation, I think that your idea is to have just one
amfphp directory for every project, if so, You can reference external
directories in a way that amfphp would search for them.

HTH

On Mon, Jun 22, 2009 at 9:07 AM, Vikram Singh vikisingh...@yahoo.in wrote:



 Hello friends,
 I have a query regarding domain problem.
 My database is at primarydomain 
 (www.primarydomain.comhttp://www..primarydomain.com
 )
 I also have subdomain and place all at subdomain directory. like this..

 scenario 1:
 Current file arrangement is:

 Exported release build flex project at :
 www.subdomain.com/flexApplication/
 amfphp code placed at : www.subdomain.com/flexApplication/amfphpcode/

 this is perfectly working.
 but now...

 scenario 2:
 need to arrange like this

 Exported release build flex project at :
 www.subdomain.com/flexApplication/
 amfphp code placed at : www.subdomain.com/amfphpcode/

 amfphpcode is placed outside of flex application directory.

 to run perfectly flex application in scenario-2, what changes I have to
 make with flex application code OR any other.
 OR any other possible idea to implement it in scenario-2.
 Please help me...

 Regards,
 Vikram.

 --
 ICC World Twenty20 England '09 exclusively on YAHOO! 
 CRICKEThttp://in.rd.yahoo.com/tagline_cricket_3/*http://cricket.yahoo.com
 




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


Re: [flexcoders] Livecycle CommunicationsException: Communications link failure

2009-06-18 Thread Pedro Sena
)
 at com.mysql.jdbc.MysqlIO.readFully(MysqlIO.java:2452)
 at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2906)
 ... 36 more

 Thanks in advance!
 Ward Loockx
  




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


Re: [flexcoders] Livecycle CommunicationsException: Communications link failure

2009-06-18 Thread Pedro Sena
1) Try to increase your connection timeout
2) Double check if you are releasing the connections correctly.
3) Use a connection pooling mechanism :) C3P0 is a good one and easy to use

If you are using hibernate, it will be very easy to configure it.

HTH

On Thu, Jun 18, 2009 at 2:11 PM, Ward Loockx w...@loockx.be wrote:



 Hello Pedro,


 Thanks for your reply!


 Here are the answers


 1) What is your connection timeout?
 - connect timeout 5
 2) Are your application and database in the same machine?
 - No (the DAO's make multiple connections to mysql servers and non of them
 are installed on the localhost)
 3) Are you using some kind of connection pool mechanism? If so, what are
 you
 using?
 - Don't think so
 4) Is it ocurring when your execute some specific query or it occurs
 anytime?
 - No, it just occurs after 20minutes. (every connection). So I get
 multiple errors in my application
 5) What engine are you using(MyISAM, InnoDB, ...) ?
 - MyISAM


 Thanks,
 Ward



 On Thursday 18 June 2009 06:28:26 pm Pedro Sena wrote:
  I had this problem before.
 
  It's related to mysql(obviously) not to flex, but I'll try to help you.
 
  To do that, please answer some questions:
 
  1) What is your connection timeout?
  2) Are your application and database in the same machine?
  3) Are you using some kind of connection pool mechanism? If so, what are
  you using?
  4) Is it ocurring when your execute some specific query or it occurs
  anytime?
  5) What engine are you using(MyISAM, InnoDB, ...) ?
 
  PS
 
  On Thu, Jun 18, 2009 at 1:04 PM, Ward Loockx w...@loockx.be wrote:
   Hello,
  
   I'm having a problem with my connections to the mysql server that are
   timing out(and get the communicationsException). We use
   autoreconnect=true when creating the connections, the problem is that
   whole application is crashing at this point because the connection has
   been lost. The Dao's just create one connection at startup for all
   clients (that should stay open). Does somebody has experience with this
   problem or any advice how to keep the connections open?
  
   Here is the stacktrace
  
   com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications
   link failure
   Last packet sent to the server was 19 ms ago.
   at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
   Method)
   at
  
  
 sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
  cessorImpl.java:39) at
  
  
 sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
  ructorAccessorImpl.java:27) at
   java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
   com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
   at
  
 com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3009)
   at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:2895)
   at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3438)
   at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1951)
   at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:2101)
   at com.mysql.jdbc.ConnectionImpl.execSQL(ConnectionImpl.java:2554)
   at
  
  
 com.mysql.jdbc.PreparedStatement.executeInternal(PreparedStatement.java:1
  761) at
  
 com.mysql.jdbc.PreparedStatement.executeQuery(PreparedStatement.java:1912
  ) at
  
  
 com.dnxlive.cammer.remoting.CammerService.getShortcuts(CammerService.java
  :86) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at
  
  
 sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java
  :39) at
  
  
 sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorI
  mpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597)
   at
  
  
 flex.messaging.services.remoting.adapters.JavaAdapter.invoke(JavaAdapter.
  java:421) at
  
  
 flex.messaging.services.RemotingService.serviceMessage(RemotingService.ja
  va:183) at
  
 flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:150
  3) at
  
  
 flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint
  .java:884) at
  
  
 flex.messaging.endpoints.amf.MessageBrokerFilter.invoke(MessageBrokerFilt
  er.java:121) at
   flex.messaging.endpoints.amf.LegacyFilter.invoke(LegacyFilter.java:158)
   at
  
 flex.messaging.endpoints.amf.SessionFilter.invoke(SessionFilter.java:44)
   at
  
  
 flex.messaging.endpoints.amf.BatchProcessFilter.invoke(BatchProcessFilter
  .java:67) at
  
  
 flex.messaging.endpoints.amf.SerializationFilter.invoke(SerializationFilt
  er.java:146) at
  
  
 flex.messaging.endpoints.BaseHTTPEndpoint.service(BaseHTTPEndpoint.java:2
  78) at
  
 flex.messaging.MessageBrokerServlet.service(MessageBrokerServlet.java:322
  ) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
   at
  
  
 org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Applicat
  ionFilterChain.java:290

Re: [flexcoders] DataGrid not releasing memory on removeAll()

2009-06-06 Thread Pedro Sena
The memory is not necessarily released just after you remove the items from
datagrid.

Removing them, you make them eligible by the garbage collector, but this
does not necessarily means that it will be collected.

HTH,

PS

On Sat, Jun 6, 2009 at 3:02 PM, Dharmendra Chauhan
chauhan_i...@yahoo.comwrote:



 Hi All,
 My DataGrid based application running into a Memory issue.The issue is
 dataGrid does not release the memory even after emptying it.
 Initially I thought Its my code which is causing the issue, but later I
 crated a sample application with just a dataGrid and a ArraCollection (no
 eventListener) and found the same issue.

 Memory should come down at least some MB when I remove all item from data
 provider.

 Memory usage with 10k row - 220 MB

 Memory usage after removing all item - STILL 220 MB

 Is this the standard behavior of datGird or do i need to apply some
 workaround to get rid of this ?

 Regards,
 Dharmendra

  




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


Re: [flexcoders] Delaying Component Load

2009-06-04 Thread Pedro Sena
Check if this link can help you.

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

Regards,

PS

On Thu, Jun 4, 2009 at 10:51 AM, Jonathan Ackerman 
jacker...@latenitelabs.com wrote:




 I have a small issue that I am sure that is solved relatively easily by
 all the pros here.

 I have been running into a IUIComponent issue on a component that is
 loading and I have determined that I need to delay the loading of this
 component a second or so.

 The component sits on a canvas with a tab navigator and I want to delay
 the load of this component until the specific tab is clicked on. I was
 thinking that I need to set the show event of the tab to run a function
 that would launch the component but I don't the syntax for doing this.

 Something like this?

 public function loadItem(event:Event):void{
 mycomponent.load()
 }

 Thanks!
  




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


Re: [flexcoders] How to invoke mxml file or transfer control to mxml file after setting the request object in Java

2009-06-04 Thread Pedro Sena
Hi,

mxml and as files are all converted in .swf files when compiled.

You cannot call a mxml file from java, but you can exchange objects
between then, but not that way you are thinking.

Take a look at graniteds project:

http://www.graniteds.org/

Read the documentation, I believe that it will clarify how you can make the
communication between java and flex.

HTH,

PS

On Thu, Jun 4, 2009 at 10:21 AM, kotha poornima poorniag...@gmail.comwrote:



 Hi All,
 I am new to flex. And i learned how to call java servlets or jsp's from
 flex. But now a question arises in my mind if in a project having all the
 jsps and java servlets. If suppose they want to replace jsps with flex mxml
 files how java servlets will
 invoke mxml files as they(servlets) invoke jsps.
 From java servlets we can invoke jsps and transfer the control to jsp by
 using RequestDispatcher. how can we call mxml files
 from java servlets.
 And if there are any request objects set in the java servlets, how can flex
 mxml files access those objects.
 Hope you all got my question.
 Awaiting for all your replies. Thanks in Advance!

 Poornima
  




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


Re: [flexcoders] Variables to reference variables/ids (not variable variables)

2009-06-04 Thread Pedro Sena
What do you think about a collection?

for each ( var chart:BaseChart in chartGroup.getCharts() ) {
   chart.doSomething();
}

Better, isn't it ? :)

Regards,

PS

On Thu, Jun 4, 2009 at 7:49 PM, Trefalgar Bain trefal...@yahoo.com wrote:



 Might be a newbie question, but I'm failing to find this subject in my book
 or on the web.

 While you can do variable variables, to create all sorts of fun things, I'm
 looking to create a variable to reference an object already created.

 For example ... I have 10 charts on a reporting interface, each with their
 own id and tab. Right now, if I want to make identical buttons affect
 individual charts, I'd have to create 10 buttons, each programed to update
 each individual chart. What I'd like to do is be able to pass the tab name /
 chart id to the function call, so it will know which chart to update.

 This way, I only have to create one function to update any chart, instead
 of 10 functions, one to handle each button/chart.

 Does that make sense? Is it possible?

 chart = 'linechart0';
 {chart}.series = currentSeries;

 Tref

  




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


Re: [flexcoders] Newbie questions

2009-06-04 Thread Pedro Sena
Take a look at data binding

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

Regards,

PS

On Thu, Jun 4, 2009 at 6:33 PM, markfu...@rocketmail.com 
markfu...@rocketmail.com wrote:



 I have been trying to wrap my head around flex/actionscript for several
 weeks now...I'm a little slow. I'm using Coldfusion as an application server
 with Flash Remoting.

 So far, I've been able to get info from the database to a datagrid and
 after pulling several hundred hairs out of my head, figured out how to get a
 new record into the database from flex...with one small caveat...in the code
 below, I cannot un-comment the last line
 (//dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;)as it causes an
 error...trying to put text into a numeric field (the value is a number)...Do
 I have to cast it as a number or something?

 private function addEditItemInsertHandler():void
 {
 var dataEstimateFixedItem:EstimatesFixedItems = new EstimatesFixedItems();



 dataEstimateFixedItem.ConstructionPhase =
 ConstructionPh.selectedItem.ConstructionPhaseId;
 dataEstimateFixedItem.JobEstimateType =
 JobEstimateType.selectedItem.JobTypeId;
 dataEstimateFixedItem.ItemType = ItemType.selectedItem.ItemTypeId;
 dataEstimateFixedItem.DefaultUnitType =
 DefaultUnitType.selectedItem.DefaultUnitTypeId;
 dataEstimateFixedItem.ItemName = ItemName.text;
 dataEstimateFixedItem.ItemDescription= ItemDescription.text;

 //dataEstimateFixedItem.PricePerUnit = PricePerUnit.text;


 EstimatesFixedItemsGateway.save(dataEstimateFixedItem);
 AddForm.height = 5;


 }

 uh...the code looks a little butt ugly...is there a better way to attach
 code?

 Thanks,

 Mark Fuqua

  




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


Re: [flexcoders] general tips: port javascript to as3

2009-06-02 Thread Pedro Sena
Very interesting lib btw.

I believe that you already now that google provided a library for flex too,
don't you?

If you can, please share it in google code, I'm very interested on it.

I could even give you some help on weekends.

Regards,

PS

On Tue, Jun 2, 2009 at 7:22 PM, arocheking rochek...@gmail.com wrote:



 Hi, I'm considering porting a library over to as3

 You don't have to look at this, but if you want to the javascript is here:
 http://googlegeodevelopers.blogspot.com/2009/04/markerclusterer-solution-to-too-many.html

 I haven't done this before. I was hoping to get the main general steps to
 convert javascript to as3. I'm thinking, 1) declare data type for the
 variables, 2) define public/private/protected on the methods etc. 3)
 consider breaking some parts into their own classes as needed.
 Thanks.

  




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


Re: [flexcoders] Pushing the Framework RSL to Site Visitors in advance.

2009-06-02 Thread Pedro Sena
Hi,

I had the same idea a time ago.

The invisible swf that would preload the RSL while a html page show some
content that the user would read, that way the swf would be 'transparently'
loaded.

Appears to be a good idea, I didn't have time to implement it, but I really
don't see any problem with it.

If you gonna try it, please keep us informed, at least I'm very interested
on it =)

I don't know if is your case, but in a controlled environment(intranet for
example) I believe that exist some way to manually put the RSL inside the
dir that the browser lookup for cached content. It's just an idea, I don't
know if its achievable.

Regards,

PS

On Tue, Jun 2, 2009 at 10:49 AM, pedr.browne pedr.bro...@gmail.com wrote:




 Hi,

 I'm currently considering persuading a client to move a highly-trafficked
 site's widgets over to Flex. The big hurdle is of course the increased
 download that comes with Flex.

 Having weighed up the options, I certainly want to use Flex, and have no
 doubt that through the use of the Framework RSL, any initially increased
 downloads would soon reconcile themselves. However, my client is going to
 take some serious convincing that it is worthwile taking the initial hit
 from the framework RSL (vs AS3 only widgets).

 So I was wondering about starting to push the Framework RSL out to the
 site's users (Mostly repeat users who use the site regularly), in advance of
 implimenting the Flex widgets/components. I envisage this being done on
 heavilly-trafficked, but lightweight pages which do not use any streamed
 content. I would imagine using a hidden swf set to use the Framework RSL,
 possibly delaying its initialisation to ensure anything else necessary for
 the page to display propperly has loaded. I have the luxury of time on this,
 with potentially 3 - 4 months before deployment, so I think over this
 timeframe a significant number of visitors could be seeded with the
 Framework RSL.

 I was wondering whether anyone has tried anything like this, and whether
 anyone saw any potential problems with this approach.

 Thanks.

  




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


Re: [flexcoders] HTTPService.send(params) and nothing happens?

2009-05-31 Thread Pedro Sena
Your URL should point to http://www.postgradmed.com/index.php?page=login
instead of http://www.translunardesigns.com/postgradmed/testlogin.html

You need to point to the same page/script that the html does.

HTH

On Sun, May 31, 2009 at 10:53 AM, ciminop cimi...@yahoo.com wrote:



 Not exactly nothing, I get the contents of the URL that I'm trying to send
 the data to, and have it submit a form.

 I created a simple login form which logs into a remote site. If you submit
 it, wven with no data or incorrect data it will take you to the remote site.
 Here's the form:
 http://www.translunardesigns.com/postgradmed/testlogin.html

 Next, I have a Flex app that uses the HTTPService to call my test HTML.
 Whether I submit this with data, no data, incorrect data, the result is the
 same: response code 200 (OK), and the results, which i expect to have the
 html of the remote site, instead contain the html of the testlogin.html.

 The application is here, source viewable with right-click:
 http://www.translunardesigns.com/postgradmed/PostGradMed.html

 So my question(s) is(are): Why is this not redirecting to the remote site
 and how can I get this to actually get the response form the submitted form?

  




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


Re: [flexcoders] best practice to handle overloading in AS3?

2009-05-28 Thread Pedro Sena
If you want the same method name in a subclass, we are talking about
override, not overload.

Flex 'deals with overload' making the arguments optionals, example:

public function test(obj:Object = null):void

then you can invoke it using test() or test(object).

Appears that you are trying to override parent's function but changing it
signature, that is not possible.

If you want to have in the same class, in the same function, receive two
different parameters, you can:

public function set dataProviderr(v:Object = null, a:Array = null):void

Then you can put the argument that you want, leaving the another one as null

or you can

public function set dataProviderr(v:*):void

This way you can pass anything you like.

Both solutions are ugly, IMHO, but is the way flex works.

HTH,

PS

On Thu, May 28, 2009 at 6:58 PM, gwangdesign gwangdes...@yahoo.com wrote:



 Hi,

 I am trying to overload a method (same name and different signatures)in a
 subclass. In the inherited class, the method looks like this:

 public function set dataProvider(value:Array):void

 In my subclass I want the method to look like this:

 public function set dataProviderr(v:Object):void

 So that I can handle different types.

 I understand AS3 doesn't support overloading. What would be the smart
 way(s) to handle this?

 Thanks.

 geng

  




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


Re: [flexcoders] simple array?

2009-05-21 Thread Pedro Sena
records[0].addresschange

You are putting an object inside your array

Using records[0] you retrieve your object
using records[0].addresschange you access its property called addresschange

On Thu, May 21, 2009 at 11:14 AM, Jason B nos...@advancedonsite.com wrote:



 var records:Array = new Array({
 addresschange: Remember to reset the station address.,
 etc.
 });


 Alert.show(records['addresschange']);
 Alert.show(records[0]);
 Alert.show(records.addresschange);

 how the heck can i access the item directly by index name?

  




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


Re: [flexcoders] Re: simple array?

2009-05-21 Thread Pedro Sena
I didn't get it.

records[i],addresschange would do what I'm thinking, but I don't know if I
understood correctly


On Thu, May 21, 2009 at 11:46 AM, Jason B nos...@advancedonsite.com wrote:



 Thanks but i dont know how to do a compare based on your example show?

 for(var i:uint = 0; i  records.length; i++) {
 //If array matchs show text if(payment_grid.selectedItem.PAYMENT_TYPE_CODE
 == records.valueof ){
 Alert.show(records[0].addresschange);

 }

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  records[0].addresschange
 
  You are putting an object inside your array
 
  Using records[0] you retrieve your object
  using records[0].addresschange you access its property called
 addresschange
 
  On Thu, May 21, 2009 at 11:14 AM, Jason B nos...@... wrote:
 
  
  
   var records:Array = new Array({
   addresschange: Remember to reset the station address.,
   etc.
   });
  
  
   Alert.show(records['addresschange']);
   Alert.show(records[0]);
   Alert.show(records.addresschange);
  
   how the heck can i access the item directly by index name?
  
  
  
 
 
 
  --
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer
  * Sun Certified Web Component Developer
  */
 

  




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


Re: [flexcoders] Re: one to one chat

2009-05-21 Thread Pedro Sena
On the other hand

I would recommend you GraniteDS

IMHO its easier than BlazeDS

Make your try

On Thu, May 21, 2009 at 4:20 PM, valdhor valdhorli...@embarqmail.comwrote:



 Depends on your back end.

 Here is one I got with a quick Google search...


 http://learn.adobe.com/wiki/display/Flex/Creating+a+BlazeDS+messaging+application+in+Flex+Builder

 Also, WebORB has a sample chat application. Check them out at
 http://www.themidnightcoders.com

 HTH

 Steve


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 dev.achiever dev.achie...@... wrote:
 
  Please help me one to one chat application develop by using flex
 

  




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


Re: [flexcoders] code hinting for FP 10 functions/classes in FB 3?

2009-05-05 Thread Pedro Sena
Search for Flex compiler in your project properties.

There you will see that you can change your sdk, but you will need to
manually download and install it in you machine (not a big problem at all)

HTH

On Tue, May 5, 2009 at 1:12 PM, gwangdesign gwangdes...@yahoo.com wrote:



 Does Flex Builder 3 hint code for Flash Player 10 (new) classes such as
 Vector? If so (in case), how to get it work?

 Thanks.

  




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


Re: [flexcoders] Re: Outputting a variable into htmlText

2009-04-30 Thread Pedro Sena
try

[Bindable]
private var msgString:String = bThe account  + this.acctName +  has
been created /b.

content.htmlText = {msgString}

and make sure your acctName is not blank.

On Thu, Apr 30, 2009 at 9:55 AM, valdhor valdhorli...@embarqmail.comwrote:



 What do you mean by That didn't work?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 fumeng5 fume...@... wrote:
 
  Hi --
 
  I want to output a variable and hardcoded text in the htmlText property
 of a Text component.
 
  Here's what I tried first:
 
  content.htmlText = bThe account  + this.acctName +  has been created
 /b.
 
  ('acctName' is a private var that has accessor methods to get/set it.)
 
  That didn't work, so I read thru the archives and found a solution that
 didn't work either.
 
  [Bindable]
  private var msgString:String = bThe account  + {acctName} +  has
 been created /b.
 
  content.htmlText = {msgString}
 
  What am I missing here? Can anyone offer any helpful pointers?
 

  




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


Re: [flexcoders] Re: blazeds mapping issue with SetLong

2009-04-30 Thread Pedro Sena
Another workaround is use GraniteDS instead of BlazeDS.

:D

On Thu, Apr 30, 2009 at 11:45 AM, aglosband aglos...@adobe.com wrote:



 Hi Max. There was another bug logged to add support for Java 5.0 syntax
 (which I take to mean Generics) to RemoteObjects.

 https://bugs.adobe.com/jira/browse/BLZ-115

 That bug has unfortunately been deferred for the time being but I'd suggest
 that you view the bug report and vote on it which will help the issue get
 some visibility and hopefully get it fixed faster.

 There is a workaround for this issue which is outlined by wichan in this
 bug report.

 https://bugs.adobe.com/jira/browse/BLZ-305

 The workaround is to write a wrapper class for Long which then using a
 BeanProxy will get mapped back to java.lang.Long before the remoting service
 is called.

 Using this approach you would send a MyLong type across the wire from your
 Flex application to the server. The MyLong type would get deserialized to
 the MyLong java class which would then get passed through the BeanProxy (in
 the example in the bug it's called MyLongProxy) and come out the other end
 as a Long. This would then get passed to the remoting service.

 If you are passing an array collection of MyLong objects this would get
 turned into a Set of Long objects so your RemoteObject code would not have
 to change.

 Hope that helps.

 -Alex

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 max.bruchmann max.bruchm...@... wrote:
 
  Hi,
  I am having some problems with blazeds and how it maps a collection
 contains long elements.
 
  Let's assume I have a class
 
  public class MyClass {
 
  ..
 
  private SetLong myLongs;
 
  public void setMyLongs(SetLong myLongs){
  this.myLongs = myLongs;
  }
  public SetLong getMyLongs(){
  return myLongs;
  }
  }
  and I have a mapped class in flex and a instance of this class containing
 an arraycollection with for example [1, 4]
 
  Now I'm sending this instance to my remoteobject
 
  ..
  public void receiveStuff(MyClass m){
 
  
  }
  The problem I'm having now, is that blazeds actually mapped the 1 and 4
 not as a Long into myLongs but as a Integer.
  Sofar this is not a big issue, but I'm passing it forward to hibernate
 and there it leads to some errors:
 
 
  org.hibernate.type.LongType - could not bind value ... to parameter: ...
  java.lang.Integer cannot be cast to java.lang.Long
 
  I found already some bug reports on that in
 https://bugs.adobe.com/jira/browse/BLZ-79 but it's marked as resolve with
 the solution don't use java syntax 1.5 which is not very helpful. So if
 someone has a solution/workarround/idea please let me know.
 
  Thanks in advance
  Max
 

  




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


Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Pedro Sena
Are you using modules?

On Thu, Apr 30, 2009 at 2:17 PM, valdhor valdhorli...@embarqmail.comwrote:



 Hmmm. Looks like I misspoke. now I get...

 Type coercion failed. Cannot convert
 Model.ValueObjects::detaild...@11c0a941 to Model.ValueObjects.DetailData.

 What is the difference between a

 Model.ValueObjects::DetailData

 and a

 Model.ValueObjects.DetailData

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui aha...@... wrote:
 
  Could be a compiler bug. If you look at the generated code you might get
 a clue (or the actual SWF bytes)
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of
 valdhor
  Sent: Thursday, April 30, 2009 9:18 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Why would as keyword not work

 
 
 
 
 
  I have a bit of a perplexing problem (With a workaround).
 
  In a datagrid I have an itemRenderer that sets one column to a
 linkButton. In the constructor I have...
 
  addEventListener(MouseEvent.CLICK, handleLinkClicked);
 
  I also have a valueObject imported...
 
  import Model.ValueObjects.DetailData;
 
  Now, in my eventListener I try to coerce the event.target.data to a
 detailData object like so...
 
  var currentItem:DetailData = event.target.data as DetailData;
 
  I have confirmed that event.target.data is an object of type
 Model.ValueObjects.DetailData.
 
  If I set a breakpoint here, then currentItem is null.
 
  If I try...
 
  var currentItem:* = event.target.data;
 
  then currentItem is properly populated as a Model.ValueObjects.DetailData
 object.
 
  The only way to get it to work properly is to do...
 
  var currentItem:DetailData = event.target.data as
 Model.ValueObjects.DetailData;
 
  Also, there is only one class file named DetailData.
 
  So, why is it that I import the correct class but it fails to coerce
 unless I set the full path to the class file?
 

  




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


Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Pedro Sena
Are you transfering data from one module to another(or to its parent) ?

On Thu, Apr 30, 2009 at 2:41 PM, valdhor valdhorli...@embarqmail.comwrote:



 Also, I now have it working if I change from trying to coerce to a
 valueObject and just use a generic Object instead.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  Are you using modules?
 
  On Thu, Apr 30, 2009 at 2:17 PM, valdhor valdhorli...@...wrote:
 
  
  
   Hmmm. Looks like I misspoke. now I get...
  
   Type coercion failed. Cannot convert
   Model.ValueObjects::detaild...@11c0a941 to
 Model.ValueObjects.DetailData.
  
   What is the difference between a
  
   Model.ValueObjects::DetailData
  
   and a
  
   Model.ValueObjects.DetailData
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Alex
   Harui aharui@ wrote:
   
Could be a compiler bug. If you look at the generated code you might
 get
   a clue (or the actual SWF bytes)
   
Alex Harui
Flex SDK Developer
Adobe Systems Inc.http://www.adobe.com/
Blog: http://blogs.adobe.com/aharui
   
From: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com [mailto:
   flexcoders@yahoogroups.com flexcoders%40yahoogroups.com flexcoders%
 40yahoogroups.com] On Behalf Of
   valdhor
Sent: Thursday, April 30, 2009 9:18 AM
To: flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com
Subject: [flexcoders] Why would as keyword not work
  
   
   
   
   
   
I have a bit of a perplexing problem (With a workaround).
   
In a datagrid I have an itemRenderer that sets one column to a
   linkButton. In the constructor I have...
   
addEventListener(MouseEvent.CLICK, handleLinkClicked);
   
I also have a valueObject imported...
   
import Model.ValueObjects.DetailData;
   
Now, in my eventListener I try to coerce the event.target.data to a
   detailData object like so...
   
var currentItem:DetailData = event.target.data as DetailData;
   
I have confirmed that event.target.data is an object of type
   Model.ValueObjects.DetailData.
   
If I set a breakpoint here, then currentItem is null.
   
If I try...
   
var currentItem:* = event.target.data;
   
then currentItem is properly populated as a
 Model.ValueObjects.DetailData
   object.
   
The only way to get it to work properly is to do...
   
var currentItem:DetailData = event.target.data as
   Model.ValueObjects.DetailData;
   
Also, there is only one class file named DetailData.
   
So, why is it that I import the correct class but it fails to coerce
   unless I set the full path to the class file?
   
  
  
  
 
 
 
  --
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer
  * Sun Certified Web Component Developer
  */
 

  




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


Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Pedro Sena
Hmmm

Appears to be the most common problem...

Please make a test:

Create a dummy variable in the same class that you are using your VO,
something like

var dummy:DetailData = null;

Keep the rest of the code and tell me the results.

Regards

On Thu, Apr 30, 2009 at 2:58 PM, valdhor valdhorli...@embarqmail.comwrote:



 Yes, I have an interface which I am implementing in the modules. It has a
 single set method that populates a single object with data.

 The data transfer is from application to modules only.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  Are you transfering data from one module to another(or to its parent) ?
 
  On Thu, Apr 30, 2009 at 2:41 PM, valdhor valdhorli...@...wrote:
 
  
  
   Also, I now have it working if I change from trying to coerce to a
   valueObject and just use a generic Object instead.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Pedro
   Sena sena.pedro@ wrote:
   
Are you using modules?
   
On Thu, Apr 30, 2009 at 2:17 PM, valdhor valdhorlists@wrote:
   


 Hmmm. Looks like I misspoke. now I get...

 Type coercion failed. Cannot convert
 Model.ValueObjects::detaild...@11c0a941 to
   Model.ValueObjects.DetailData.

 What is the difference between a

 Model.ValueObjects::DetailData

 and a

 Model.ValueObjects.DetailData

 --- In flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%
   40yahoogroups.com, Alex
 Harui aharui@ wrote:
 
  Could be a compiler bug. If you look at the generated code you
 might
   get
 a clue (or the actual SWF bytes)
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com 
  flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%
   40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com flexcoders%
   40yahoogroups.com] On Behalf Of
 valdhor
  Sent: Thursday, April 30, 2009 9:18 AM
  To: flexcoders@yahoogroups.com 
  flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%

   40yahoogroups.com
  Subject: [flexcoders] Why would as keyword not work

 
 
 
 
 
  I have a bit of a perplexing problem (With a workaround).
 
  In a datagrid I have an itemRenderer that sets one column to a
 linkButton. In the constructor I have...
 
  addEventListener(MouseEvent.CLICK, handleLinkClicked);
 
  I also have a valueObject imported...
 
  import Model.ValueObjects.DetailData;
 
  Now, in my eventListener I try to coerce the event.target.data to
 a
 detailData object like so...
 
  var currentItem:DetailData = event.target.data as DetailData;
 
  I have confirmed that event.target.data is an object of type
 Model.ValueObjects.DetailData.
 
  If I set a breakpoint here, then currentItem is null.
 
  If I try...
 
  var currentItem:* = event.target.data;
 
  then currentItem is properly populated as a
   Model.ValueObjects.DetailData
 object.
 
  The only way to get it to work properly is to do...
 
  var currentItem:DetailData = event.target.data as
 Model.ValueObjects.DetailData;
 
  Also, there is only one class file named DetailData.
 
  So, why is it that I import the correct class but it fails to
 coerce
 unless I set the full path to the class file?
 



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

  




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


Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Pedro Sena
Forgot to say:

In the same class(in your module) that is receiving the parameter from your
app.

Another thing, make sure your main app and your module are in the same
application domain, if you have some doubt about it, please post here the
code that you are using to load your module.

Regards

On Thu, Apr 30, 2009 at 3:29 PM, Pedro Sena sena.pe...@gmail.com wrote:

 Hmmm

 Appears to be the most common problem...

 Please make a test:

 Create a dummy variable in the same class that you are using your VO,
 something like

 var dummy:DetailData = null;

 Keep the rest of the code and tell me the results.

 Regards


 On Thu, Apr 30, 2009 at 2:58 PM, valdhor valdhorli...@embarqmail.comwrote:



 Yes, I have an interface which I am implementing in the modules. It has a
 single set method that populates a single object with data.

 The data transfer is from application to modules only.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  Are you transfering data from one module to another(or to its parent) ?
 
  On Thu, Apr 30, 2009 at 2:41 PM, valdhor valdhorli...@...wrote:
 
  
  
   Also, I now have it working if I change from trying to coerce to a
   valueObject and just use a generic Object instead.
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com, Pedro
   Sena sena.pedro@ wrote:
   
Are you using modules?
   
On Thu, Apr 30, 2009 at 2:17 PM, valdhor valdhorlists@wrote:
   


 Hmmm. Looks like I misspoke. now I get...

 Type coercion failed. Cannot convert
 Model.ValueObjects::detaild...@11c0a941 to
   Model.ValueObjects.DetailData.

 What is the difference between a

 Model.ValueObjects::DetailData

 and a

 Model.ValueObjects.DetailData

 --- In flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%
   40yahoogroups.com, Alex
 Harui aharui@ wrote:
 
  Could be a compiler bug. If you look at the generated code you
 might
   get
 a clue (or the actual SWF bytes)
 
  Alex Harui
  Flex SDK Developer
  Adobe Systems Inc.http://www.adobe.com/
  Blog: http://blogs.adobe.com/aharui
 
  From: flexcoders@yahoogroups.com 
  flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%
   40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com flexcoders%
   40yahoogroups.com] On Behalf Of
 valdhor
  Sent: Thursday, April 30, 2009 9:18 AM
  To: flexcoders@yahoogroups.com 
  flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.comflexcoders%

   40yahoogroups.com
  Subject: [flexcoders] Why would as keyword not work

 
 
 
 
 
  I have a bit of a perplexing problem (With a workaround).
 
  In a datagrid I have an itemRenderer that sets one column to a
 linkButton. In the constructor I have...
 
  addEventListener(MouseEvent.CLICK, handleLinkClicked);
 
  I also have a valueObject imported...
 
  import Model.ValueObjects.DetailData;
 
  Now, in my eventListener I try to coerce the event.target.data
 to a
 detailData object like so...
 
  var currentItem:DetailData = event.target.data as DetailData;
 
  I have confirmed that event.target.data is an object of type
 Model.ValueObjects.DetailData.
 
  If I set a breakpoint here, then currentItem is null.
 
  If I try...
 
  var currentItem:* = event.target.data;
 
  then currentItem is properly populated as a
   Model.ValueObjects.DetailData
 object.
 
  The only way to get it to work properly is to do...
 
  var currentItem:DetailData = event.target.data as
 Model.ValueObjects.DetailData;
 
  Also, there is only one class file named DetailData.
 
  So, why is it that I import the correct class but it fails to
 coerce
 unless I set the full path to the class file?
 



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

  




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




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


Re: [flexcoders] Eclipse Crashing

2009-04-30 Thread Pedro Sena
Do you REALLY need all those projects?

If they are not different modules (and even if they are) you should try to
divide them in packages instead of Projects.

If this is REALLY necessary, I suggest you to build your project using maven
instead of using your IDE to do it.

Even to manage this caothic scenario it will help you.

If you want to try maven, take a look at m2eclipse and flex-mojos

Regards

On Thu, Apr 30, 2009 at 4:52 PM, Peter Farland pfarl...@adobe.com wrote:




 Are you mixing AIR and Flex library projects in the same workspace?

 Have you tried excluding all of the Flex SDK swcs from the project library
 path that are not needed by each project?


 -Original Message-
 From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On Behalf Of
 Geoffrey
 Sent: Thursday, April 30, 2009 2:30 PM
 To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 Subject: [flexcoders] Eclipse Crashing

 Recently, FB(Eclipse) keeps crashing on me. I've looked all over the place
 for solutions, have tried many, but none seem to do the trick.

 My current setup is:
 Eclipse 3.4.2 (M20090211-1700)
 FB 3.0.2.214193
 Flex SDK 3.3
 JDK 1.6.0_13

 My eclipse.ini is:
 -showsplash
 org.eclipse.platform
 -framework
 plugins\org.eclipse.osgi_3.4.3.R34x_v20081215-1030.jar
 -vm
 C:\Program Files (x86)\Java\jdk1.6.0_13\bin\javaw.exe
 -vmargs
 -Xms1024M
 -Xmx1024M
 -XX:PermSize=256M
 -XX:MaxPermSize=512M
 -XX:+UseParallelGC
 -Dosgi.requiredJavaVersion=1.5
 -Djava.net.preferIPv4Stack=true
 -Dcom.sun.management.jmxremote

 Our Flex application is a collection of 30 projects (one main one and 29
 flex library projects). All have to be open at the same time or else you get
 build(dependency) errors.

 There's a few projects that are linked to many of the other projects. For
 example, we have a project that holds all of the VOs. Making changes to that
 project always took a long time to build (several minutes), but now it
 crashes with OutOfMemory errors.

 I've run jconsole to watch the JVM performance statistics. I don't fully
 understand all the numbers, but I can see that my PS Old Gen pool gets 100%
 full, and that's when I usually expect a crash to happen soon.

 My machine has 8GB of RAM, although I can only allocate 1GB to Eclipse it
 seems. If I raise -Xmx higher than 1024M, Eclipse won't even start.

 Anyone have any suggestions?

 Thanks,
 ~Geoff

 

 --
 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

  




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


Re: [flexcoders] Re: Why would as keyword not work

2009-04-30 Thread Pedro Sena
Pedro - The ValueObject is only being used by this particular module - not
by the application (Or any other module).

If the VO is not being used, why are you trying to cast to it?

I think I didn't understand.

BTW, Have you done the test that I suggest ?

Regards,

On Thu, Apr 30, 2009 at 5:11 PM, valdhor valdhorli...@embarqmail.comwrote:



 Alex - I have read your Modules presentation about twenty times so far as
 well as any other documentation I could find on Modules and Application
 Domains. I'm pretty sure I understand everything so far.

 Pedro - The ValueObject is only being used by this particular module - not
 by the application (Or any other module).

 Ian - All other modules work fine with the exchange data. Note that the
 exchange data and this value object are two different things. I am NOT
 passing this value object as part of the exchange data. The VO gets created
 from a remoteObject call.

 All the above being said, I think I have found my problem. The click event
 was handled in the renderer. This works fine in an application but does not
 seem to in a module. By moving the click handler to the datagrid component,
 the error disappears.

 This problem crept in whilst I was moving my monolithic app to a series of
 modules.

 Thanks for taking the time to push me in the right direction.

 Steve

 If anyone can enlighten me as to why click events in item renderers work
 differently in modules than applications, please do.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Ian
 Thomas i...@... wrote:
 
  As Pedro says - my guess would be that you are passing a DetailData
  object from one module to the other when you haven't loaded the
  modules in the same ApplicationDomain (or from one compiled .swf to
  another, if you're not using modules).
 
  Take a look at the documentation for ApplicationDomain.
 
  HTH,
  Ian
 
  On Thu, Apr 30, 2009 at 6:18 PM, Pedro Sena sena.pe...@... wrote:
  
  
   Are you using modules?
  
   On Thu, Apr 30, 2009 at 2:17 PM, valdhor valdhorli...@...
   wrote:
  
  
   Hmmm. Looks like I misspoke. now I get...
  
   Type coercion failed. Cannot convert
   Model.ValueObjects::detaild...@11c0a941 to
 Model.ValueObjects.DetailData.
  
   What is the difference between a
  
   Model.ValueObjects::DetailData
  
   and a
  
   Model.ValueObjects.DetailData
  
 

  




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


Re: [flexcoders] Re: best ftp client

2009-04-29 Thread Pedro Sena
Me too. :)

Sometimes it gets a little slow, but I think that it's more related to
network problems...

On Wed, Apr 29, 2009 at 9:30 AM, valdhor valdhorli...@embarqmail.comwrote:



 I'm a big fan of FileZilla (http://filezilla-project.org/)


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 stinasius stinas...@... wrote:
 
  what is the best free ftp client to use to upload flex app to remote
 server?
 

  




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


Re: [flexcoders] Autofilter Datagrid

2009-04-29 Thread Pedro Sena
I would not recommend to the things this way.

I'm thinking that you want to filter the data as user types, like:

Pe (typed)

Results:

Pedro
Peterson
...

If you want to do this, think twice, each typed letter will trigger an event
that will iterate over a collection containing 'thousands'(like you said) of
records. This is a VERY bad idea.

I would recomend you to implement some pagination mechanism AND the filter
mechanism, that way your first load will be faster and your filter will not
iterate over the entire collection.

Just my 2 cents,

On Wed, Apr 29, 2009 at 5:51 PM, Nick nick...@gmail.com wrote:



 Hello all.

 I have a DataGrid that is loading thousands of records. I would like to be
 able to add some filter controls to the top of the screen enabling users to
 filter the data. I would like the filtering to happen in real time as the
 user types their query.

 I know this has been accomplished before I just can't seem to find the best
 solution.

 Any thoughts on the best way to approach this?

 Thanks.

 Nick

  




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


Re: [flexcoders] Flex Menu Basic Question

2009-04-26 Thread Pedro Sena
 the processing.



 A side note, the top-level menu items do not dispatch itemClick events.  If
 you want to take action from a top-level menu item, you also need to listen
 to the plain click event, and conditionally process only the correct clicks.



 Tracy Spratt,

 Lariat Services, development services available
   --

 *From:* flexcod...@yahoogro ups.com [mailto: flexcod...@yahoogro ups.com ]
 *On Behalf Of *myworld100us
 *Sent:* Saturday, April 25, 2009 11:02 PM
 *To:* flexcod...@yahoogro ups.com
 *Subject:* [flexcoders] Flex Menu Basic Question





 I am posting a very basic question . I am trying to use Flex menus on my
 web page . I have built the menu but I am not sure how to do navigation .
 All i could do is if set Data for menu item i could do an alert to get Data
 .
 What I want is if user click on Menu A it should redirect or load a SWF
 file , similarly if user clicks on Menu B it should redirect or load a
 separate file. It similar to something link View Stack . But problem with
 View Stack is I cant define children for MX: View Stack .





  




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


Re: [flexcoders] IE8 problem

2009-04-24 Thread Pedro Sena
What do you mean by 'does not work on IE8' ?

The swf is not loaded? Some specific error in IE ? Tell us more about the
problem, w/o information is impossible to help you.

PS

On Fri, Apr 24, 2009 at 6:55 AM, senthilkumarirtt 
senthilkumari...@yahoo.co.in wrote:



 hi all ,i develop dashboard using Flex3...But ouput is working in all
 browsers other than Internet Explorer 8...
 i cant understand What is the problem...Give some suggestion...

  




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


Re: [flexcoders] Unloading Modules - Binding is the Enemy?

2009-04-23 Thread Pedro Sena
Hi Jeff,

The fact that you unload a module does not mean that it will be garbage
collected(the memory won't be released as soon as you unload your module).
Unload the module makes it available for garbage collection.

As far as I know, the module 'garbage' will be collected by the GC when
necessary, so don't think that unload a module means free memory in the
exactly same moment.

I'm supposing that you are testing in your development machine(probably a
good machine) so I suggest you to test it in a limited machine to see if
this memory is released when it is *necessary* , that is the point.

HTH,

Pedro Sena

On Thu, Apr 23, 2009 at 9:09 AM, Battershall, Jeff 
jeff.battersh...@dowjones.com wrote:



 In testing via the Profiler, binding UI objects in a module to a model
 (even if local to the module) appears to be causing a module's failure
 to unload. This happens as soon as the UI component becomes active. In
 fact, even if the source object (data provider) is set to null, the
 binding persists and will prevent a module from unloading. Does this
 issue have to be such a PITA? It appears that using curly braces for
 binding in MXML can create Modules that won't unload.

 In FP 10, the Loader class has the new unloadAndStop() method. Would be
 extremely handy to have something similar for Modules. Basically you
 want to remove all listeners to a model and then unload the module.

 Seeking enlightenment - anyone got any?

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




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


Re: [flexcoders] Unloading Modules - Binding is the Enemy?

2009-04-23 Thread Pedro Sena
Jeff,

Calling GC programmatically does not mean that it will be executed.

Like java, the GC in flex is not under programmer's control. You may call
it, but it won't be executed if it is not necessary.

Clicking the Run Garbage Collector button does not guarantee that all
objects that are eligible for garbage collection will be garbage collected.
Garbage collection is typically triggered by the allocation of memory for
new resources.

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

Regards,

Pedro Sena

On Thu, Apr 23, 2009 at 9:34 AM, Battershall, Jeff 
jeff.battersh...@dowjones.com wrote:



  Pedro,

 I've been running the GC immediately after unload - programmatically.  The
 module instance is released immediately if binding is inactive.  The moment
 binding becomes active to a UI element of the Module, the instance will not
 be released.  I was thinking that having the model object I'm binding to be
 local to the module would address the behavior, but sadly it does not appear
 to work.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Pedro Sena
 *Sent:* Thursday, April 23, 2009 8:26 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Unloading Modules - Binding is the Enemy?

 Hi Jeff,

 The fact that you unload a module does not mean that it will be garbage
 collected(the memory won't be released as soon as you unload your module).
 Unload the module makes it available for garbage collection.

 As far as I know, the module 'garbage' will be collected by the GC when
 necessary, so don't think that unload a module means free memory in the
 exactly same moment.

 I'm supposing that you are testing in your development machine(probably a
 good machine) so I suggest you to test it in a limited machine to see if
 this memory is released when it is *necessary* , that is the point.

 HTH,

 Pedro Sena

 On Thu, Apr 23, 2009 at 9:09 AM, Battershall, Jeff 
 jeff.battersh...@dowjones.com wrote:



 In testing via the Profiler, binding UI objects in a module to a model
 (even if local to the module) appears to be causing a module's failure
 to unload. This happens as soon as the UI component becomes active. In
 fact, even if the source object (data provider) is set to null, the
 binding persists and will prevent a module from unloading. Does this
 issue have to be such a PITA? It appears that using curly braces for
 binding in MXML can create Modules that won't unload.

 In FP 10, the Loader class has the new unloadAndStop() method. Would be
 extremely handy to have something similar for Modules. Basically you
 want to remove all listeners to a model and then unload the module.

 Seeking enlightenment - anyone got any?

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




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

  




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


Re: [flexcoders] DataGrid Children Prevent Module Unload?

2009-04-22 Thread Pedro Sena
Hi Jeff,

Do your renderers have some reference to module data?

How are your grid and your module related?

I think we need more info to help you.

Regards,

Pedro Sena

On Wed, Apr 22, 2009 at 9:03 AM, Battershall, Jeff 
jeff.battersh...@dowjones.com wrote:



 I'm using the profiler to get handle on what's causing a given module to
 fail to unload and it appears that the datagrid is the culprit.
 Specifically when the data grid is unpopulated, I can successfully
 unload the module. When it is populated, it won't. I have the datagrid
 bound to a local model object. It appears that as soon as the datagrid
 has children, the module won't unload completely.

 There must be some reference that the datagrid has that is causing this
 - I am using some custom item renderers/editors. Any advice greatly
 appreciated.

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




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


Re: [flexcoders] DataGrid Children Prevent Module Unload?

2009-04-22 Thread Pedro Sena
Hmmm,

If you are using Cairngorm + Modules take a look at Modular

http://lab.arc90.com/2007/10/modular_1.php

This problem is not the only one that you will face when working with
Cairngorm + Modules, trust me

HTH,

Pedro Sena

On Wed, Apr 22, 2009 at 10:32 AM, Battershall, Jeff 
jeff.battersh...@dowjones.com wrote:



  I've done a bit more research.  At this point it doesn't appear to be the
 renderers - I took them out for testing and it looks like that the way I'm
 injecting model objects into Module that might be at fault.  Right now, I've
 defined a model interface that I'm passing back to the Commands inside of
 the Cairngorm events.  I'm kind of hacking my way through this.

 Driving me crazy, though.  Shouldn't be rocket science to unload a freakin'
 module.

 Jeff

  -Original Message-
 *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] *On
 Behalf Of *Pedro Sena
 *Sent:* Wednesday, April 22, 2009 9:04 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] DataGrid Children Prevent Module Unload?

 Hi Jeff,

 Do your renderers have some reference to module data?

 How are your grid and your module related?

 I think we need more info to help you.

 Regards,

 Pedro Sena

 On Wed, Apr 22, 2009 at 9:03 AM, Battershall, Jeff 
 jeff.battersh...@dowjones.com wrote:



 I'm using the profiler to get handle on what's causing a given module to
 fail to unload and it appears that the datagrid is the culprit.
 Specifically when the data grid is unpopulated, I can successfully
 unload the module. When it is populated, it won't. I have the datagrid
 bound to a local model object. It appears that as soon as the datagrid
 has children, the module won't unload completely.

 There must be some reference that the datagrid has that is causing this
 - I am using some custom item renderers/editors. Any advice greatly
 appreciated.

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




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

  




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


Re: [flexcoders] Making the loaded swf editable.

2009-04-21 Thread Pedro Sena
Hi,

What do you mean by 'editable' ?

What exactly you wanna do ?

PS

On Tue, Apr 21, 2009 at 2:31 AM, shubhra smdk_ind...@yahoo.com wrote:



 I have loaded an swf file dynamically into FLEX using SWFLoader.

 How can i make this file editable..or I hav to make it editable before
 embedding as swf..

 Suggest me please..

  




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


Re: [flexcoders] how to add product to shipping cart??

2009-04-21 Thread Pedro Sena
Appears that your dataprovider is productList.items

So try to add some item to it, if it is a simple array, probably(someone
correct me if I'm wrong plz) you won't see the change in your layout, so
double check if it is a ArrayCollection.

HTH

On Tue, Apr 21, 2009 at 5:01 AM, karn.anand karn.an...@yahoo.com wrote:



 hi,
 everyone there,
 i meed some help.
 actually i am building a shopping cart bt i dont know what function or
 script should define to button for adding products to cart.I am calling
 product from a external xml file.Cart is defined here.

 ?xml version=1.0 encoding=utf-8?

 mx:VBox xmlns:mx=http://www.adobe.com/2006/mxml;
 xmlns:productsView=productsView.*
 horizontalAlign=right
 paddingTop=8
 paddingBottom=8
 paddingRight=4
 paddingLeft=4
 horizontalScrollPolicy=off
 verticalScrollPolicy=off

 mx:Script
 ![CDATA[

 import mx.controls.Alert;

 import samples.flexstore.Product;
 import samples.flexstore.ProductListEvent;

 [Bindable]
 public var numProducts:int=0;

 [Bindable]
 private var total:Number = 0;

 private const SHIPPING:Number = 1.99;

 private function productListEventHandler(event:ProductListEvent):void
 {
 switch (event.type)
 {
 case ProductListEvent.ADD_PRODUCT:
 event.product.qty = 0;

 case ProductListEvent.DUPLICATE_PRODUCT:
 event.product.qty++;
 total += event.product.price;
 numProducts++;
 break;
 case ProductListEvent.PRODUCT_QTY_CHANGE:
 case ProductListEvent.REMOVE_PRODUCT:
 var items:Array = productList.items;
 total = 0;
 numProducts = 0;
 for (var i:int=0; i  items.length; i++)
 {
 var product:Product = items[i].product;
 total += product.qty * product.price;
 numProducts += product.qty;
 }
 break;
 default:
 break;
 }
 }

 ]]
 /mx:Script

 mx:CurrencyFormatter currencySymbol=$ id=cf precision=2/

 mx:Label width=100% text=Your Shopping Cart
 styleName=sectionHeader/

 productsView:ProductList id=productList height=100% width=100%
 newItemStartX=-100 newItemStartY=-100
 addProduct=productListEventHandler(event)
 duplicateProduct=productListEventHandler(event)
 productQtyChange=productListEventHandler(event)
 removeProduct=productListEventHandler(event)
 showQuantity=true
 /

 mx:Form verticalGap=0 paddingRight=0

 mx:FormItem label=Total:

 mx:Label width=70 text={cf.format(total)} textAlign=right/

 /mx:FormItem

 mx:FormItem label=Shipping:

 mx:Label width=70 text={cf.format(numProducts * SHIPPING)}
 textAlign=right/

 /mx:FormItem

 mx:FormItem label=Grand Total: fontWeight=bold

 mx:Label width=70 text={cf.format(total + (numProducts * SHIPPING))}
 textAlign=right/

 /mx:FormItem

 /mx:Form

 mx:Button label=Submit Order click=Alert.show('This feature is not
 implemented in this sample', 'Submit Order')/

 /mx:VBox

  




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


Re: [flexcoders] building a dataprovider in Java

2009-04-15 Thread Pedro Sena
In my opinion,

You should use a List of some object defined by you.

Then you create a correspondent object in ActionScript , put it in
ArrayCollection and use its attributes in your chart as you wish.

If you want to build something more generic I believe that you will have
more trouble, but if you have available time...

It's all up to you.

HTH,

PS


On Wed, Apr 15, 2009 at 10:03 AM, netdeep deep...@chartertn.net wrote:




 I posted a few weeks back about how to create a chart dataprovider in Java
 to pass to Flex and the response I got back was to use Maps. I got
 sidetracked with other aspects of the code and now that I'm trying to code
 it, I am really drawing a blank. How would you create the following
 dataprovider in Java without using a custom object (i.e., the next data
 structure may have more or less elements than this one and I would need to
 use generic names for each data pair)?

 public var expenses:ArrayCollection = new ArrayCollection([
 {Month:Jan, Profit:2000, Expenses:1500},
 {Month:Feb, Profit:1000, Expenses:200},
 {Month:Mar, Profit:1500, Expenses:500}
 ]);

  




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


Re: [flexcoders] Sub-applications and service calls

2009-04-15 Thread Pedro Sena
Hi,

In my opinion you should try to change your small application to a flex
module.

You could develop a very small shell that load this module, to use it
standalone, and when using it from your big app, you simply loads this
module.

Just take care when you use this together: Cairngorm and Modules.

PS

On Wed, Apr 15, 2009 at 3:53 PM, Erich Cervantez f...@noofusion.com wrote:



 I have a large Flex 3.3 application configured to use LCDS within a JBOSS
 war. I've setup RemoteObject declarations using Cairngorm's ServiceLocator
 pattern. The application works great and is able to send and receive data on
 it's own just perfectly.

 I also have a separate smaller Flex 3.3 application in a different war
 configured similarly.

 Although both applications can be used individually, I'd like to load the
 smaller application into the first, larger application using SWFLoader (and
 setting the LoaderContext to use a new ApplicationDomain).

 Unfortunately, the sub-application cannot make any service calls now and
 I'm at a loss. I figure it might be some sort of sandbox issue but I'm not
 sure.

 The exception thrown via JBOSS looks like this:

 No destination with id 'null' is registered with any service.

 and the runtime exception in the browser looks like this:

 TypeError: Error #1034: Type Coercion failed: cannot convert
 obj...@1b434ad9 to mx.messaging.messages.ErrorMessage.

 Has anyone else run into this same situation?

  




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


Re: [flexcoders] Search for a component.

2009-04-09 Thread Pedro Sena
mx:ViewStack

On Thu, Apr 9, 2009 at 3:31 PM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:



 Hello,

 I am seaching which Flex component to use to switch several screen.
 The user should watch the first screen, then he can go to the second, and
 so on.

 Thank you,
 Christophe,

  




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


Re: [flexcoders] Re: 3D Cube interface

2009-04-09 Thread Pedro Sena
Are the source files available?

Tnx

On Thu, Apr 9, 2009 at 5:18 PM, foobone9 foobo...@yahoo.com wrote:



 http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 christophe_jacquelin christophe_jacque...@... wrote:
 
  Hello,
 
  I am seaching a example of 3D Cube for an interface in Flex.
 
  Thank you,
  Christophe,
 

  




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


Re: [flexcoders] Re: 3D Cube interface

2009-04-09 Thread Pedro Sena
Found it.

http://weblogs.macromedia.com/auhlmann/archives/DistortionEffects.zip

Thanks

On Thu, Apr 9, 2009 at 5:46 PM, foobone9 foobo...@yahoo.com wrote:



 Check the blog for details:
 http://weblogs.macromedia.com/auhlmann/


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pedro
 Sena sena.pe...@... wrote:
 
  Are the source files available?
 
  Tnx
 
  On Thu, Apr 9, 2009 at 5:18 PM, foobone9 foobo...@... wrote:
 
  
  
  
 http://www.alex-uhlmann.de/flash/adobe/blog/distortionEffects/effectCube/
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   christophe_jacquelin christophe_jacquelin@ wrote:
   
Hello,
   
I am seaching a example of 3D Cube for an interface in Flex.
   
Thank you,
Christophe,
   
  
  
  
 
 
 
  --
  /**
  * Pedro Sena
  * Systems Architect
  * Sun Certified Java Programmer
  * Sun Certified Web Component Developer
  */
 

  




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


Re: [flexcoders] Embed image from flex library (SWC)

2009-04-03 Thread Pedro Sena
Have you tried /assets/something ?

Regards,

PS

On Fri, Apr 3, 2009 at 3:07 PM, Charles Galpin yahoogro...@lhsw.com wrote:

   I have built a common flex library which I use from other projects. If
 I put images under src/assets/images and add those images under
 Assets in the Flex Library Build Path I get mixed results. It
 appears that if the image was embeded in the common library, then it
 can be used in the other projects otherwise not.

 I also tried makeing a src/common_assets/images directory in the
 common library to make sure there were no conflicts with the project
 specific assets, but that has not helped.

 In short, how can I add commonly used images to a common flex library
 for use by other projects? I want to do the same with css (I think
 this is working right now)

 thanks,
 charles

  




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


Re: [flexcoders] Application with parameters

2009-03-30 Thread Pedro Sena
Flashvars is the keyword.

http://www.permadi.com/tutorial/flashVars/

HTH

On Mon, Mar 30, 2009 at 7:15 PM, markgoldin_2000
markgoldin_2...@yahoo.comwrote:

   Is there a way of sending parameters to my Flex application?

 Thanks

  




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


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 the_bran...@yahoo.comwrote:

   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 jeff.battersh...@dowjones.com
 *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 jeff.battershall%40dowjones.com
 (609) 520-5637 (p)
 (484) 477-9900 (c)

  




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


Re: [flexcoders] Java beans to AS class with ANT integration

2009-03-22 Thread Pedro Sena
http://www.graniteds.org/

Regards

On Sun, Mar 22, 2009 at 5:26 AM, Ivan Bojer ibo...@gmail.com wrote:

   Is anyone using any Java bean to action script class converter,
 preferably with ANT integration? There are few out there but they are
 either not being maintained or do not have ANT integration.
  




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


Re: [flexcoders] Re: Flex error (URLRequest) using Ruby on Rails

2009-03-19 Thread Pedro Sena
You did not receive many answers, so I'll propose a test.

Try to make a javascript function that do the request for you and call it
from AS3.

Appears to be some very specific os-dependent problem.

Maybe the JS approach do the trick.

HTH,

PS

On Thu, Mar 19, 2009 at 10:32 AM, tchredeemed apth...@liberty.edu wrote:

   still looking for a clue!


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tchredeemed apth...@... wrote:
 
  bump!
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 tchredeemed apthorp@ wrote:
  
   Basically, I have an action upload_attachment in a controller
 handle_data
  
   In flex I call navigateToURL( new URLRequest(
 serverURL+'handle_data/upload_attachment/?profile_id=46' ) );
  
   This seems to work fine in the following browsers:
  
   IE, safari
  
   It does not work in:
  
   Firefox( mac and pc), google chrome
  
   I am not sure why, but if I watch the production.log files from rails,
 firefox/chrome are never actually requesting this action, and giving me a
 2038 Error, but IE/safari do request the action, and work fine.
  
   Why I think it might be a rails problem:
  
   This error does not occur if I boot the server up via localhost, but
 when I move the app to a different server with SSL installed, it does not
 work.
  
   Any help would be greatly appreciated!
  
 

  




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


Re: [flexcoders] Flex Certification

2009-03-10 Thread Pedro Sena
I'm very interested in this topic too.

I'm starting to study to it. I'm using Training from the Source for flex
3.

But I don't know if this is the best book for this objective.

Regards,

PS

On Tue, Mar 10, 2009 at 8:25 AM, kotha poornima poorni_ag...@yahoo.comwrote:

   Hi All,
 Iam interesting to do flex3 certification(9A0-082). Can anyone give me some
 suggestion to me about this certification. And what are the books needed?

 Thanks in Advance,
 Poornima

  




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


Re: [flexcoders] Define repeaters at runtime

2009-02-26 Thread Pedro Sena
If you don't want to use mxml, why don't you use a simple loop instead of
repeater?

The idea of the repeater is to make a loop in mxml adding UI components.

But if you don't want to use mxml, you can easilly do this in AS3 with a
loop + addChild method.

Just my 2 cents,

Pedro Sena

On Thu, Feb 26, 2009 at 11:21 PM, smitade smit...@yahoo.com wrote:

   Is it possible to define repeaters at runtime? I've scanned the web
 and didn't find anything. I would like an Image array defined within a
 repeater but WITHOUT using the mxml
 mx:Repeater id=myRepeater dataProvider=...
 mx:Image id=myImage/
 /mx:Repeater
 .
 .
 .
 .
 so that I can access it later in the code: myImage[10].source=...

 Thanks

  




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


Re: [flexcoders] Best database for Flex

2009-02-20 Thread Pedro Sena
There is no silver bullet

The database choice need to be done knowing the requirements, without that,
you will get just personal preferences.

Regards,

PS

On Fri, Feb 20, 2009 at 10:06 AM, christophe_jacquelin 
christophe_jacque...@yahoo.fr wrote:

   Hello,

 What is the best database for Flex: mySql or SQLServer ?

 Is it possible to use an Microsoft Access database with Flex ?

 Thank you,
 Christophe,

  




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


Re: [flexcoders] Flex server language

2009-02-18 Thread Pedro Sena
Are you a student or are you trying to evaluate the language that best fits
in some specific scenario?



On Wed, Feb 18, 2009 at 9:31 PM, bsyyu ben.s...@gmail.com wrote:

   currently, I am using PHP as server language. In fact I would like to
 learn other server language in combination using Flex. Any suggestion
 such as .NET, coldfusion or JSP.

  




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


Re: [flexcoders] What can be display in PopupManager??

2009-02-11 Thread Pedro Sena
IFlexObject is a very high level interface.

It has other interfaces that implement it, like IUIComponent.

That is the interface implemented by UIComponent

That is the superclass of Component.

That is superclass of Box

That is superclass of VBox.

And finally I can say:

You should be able to use your VBox, because it inherits from
IFlexDisplayObject.

Please post here your code.

Regards,

Pedro Sena

On Wed, Feb 11, 2009 at 9:21 AM, Tahniyat Kazmi tahniyat.ka...@yahoo.comwrote:

   Hi,

 Can any one please tell me that what we can display in popUpManager except
 IFlexDisplayObject??
 Is it possible to pass Vbox, Hbox or any other type container into
 PopUpManager.addPopUp() as parameter to show? or only component and
 IFlexDisplayObject can be use???

 I wana show a Vbox through popUpmanager. So kindly help me out

 Thankx.

  




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


Re: [flexcoders] how to scale an entire flex application including text and images

2008-12-30 Thread Pedro Sena
I believe that this link can help you.

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

Regards,

Pedro Sena

On Tue, Dec 30, 2008 at 10:18 AM, johndoematrix johndoemat...@yahoo.comwrote:

   hello guys... i thought by using % width and height would help scale a
 flex application depending on different screen sizes but i realized
 that the controls such as text are not scaled which leads to scroll
 bars being created. this makes the application ugly. is there a way to
 scale the entire application so that it the screen is smaller then the
 text and other controls are scaled to fit the flex UI.

  




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


Re: [flexcoders] Selecting multiple rows in a grid using only mouse (using click and drag )

2008-12-22 Thread Pedro Sena
I don't think that there is another way.

BUT what you could do is use checkboxes, so the user may specify the lines
that he wants.

Hope this helps,

Pedro Sena

On Mon, Dec 22, 2008 at 3:41 PM, vivekanandraju vivekanandr...@yahoo.comwrote:

   Hi,

 I am trying to find a way in which multiples rows of a grid can be
 selected using only the mouse.

 I referred the material on flex documentation, and found that we have
 use either the Shift or the CTRL key to select multiple rows.

 Is there any way in which the users can click  drag their mouse on
 the grid and select multiple rows?

 Please advise.

 thanks,
 vivek.

  




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


Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Pedro Sena
I'm running Eclipse 3.4 + FB 3.0.2 w/o problems.

Regards,

Pedro Sena

On Fri, Dec 12, 2008 at 4:33 PM, Dave Kong davek...@gmail.com wrote:

   From here:

 http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html#install_plugin_win
 Install Flex Builder Plug-in on Windows

 *NOTE*: Flex Builder is only supported on Eclipse 3.2.2 or Eclipse 3.3.

 where as:

 *Install Flex Builder Plug-in on Mac OS X*

 *NOTE*: Builder is only supported on Eclipse 3.2.2, Eclipse 3.3 and
 Eclipse 3.4.

 So, the plugin supports 3.4 on Mac ONLY? Is this a doc error?
  




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


Re: [flexcoders] Does Flex builder 3.0.2 eclipse plug-in work in Eclipse 3.4?

2008-12-12 Thread Pedro Sena
Ops,

I forgot to say:

In windows XP.

Regards,

Pedro Sena

On Fri, Dec 12, 2008 at 4:46 PM, Pedro Sena sena.pe...@gmail.com wrote:

 I'm running Eclipse 3.4 + FB 3.0.2 w/o problems.

 Regards,

 Pedro Sena


 On Fri, Dec 12, 2008 at 4:33 PM, Dave Kong davek...@gmail.com wrote:

   From here:

 http://www.adobe.com/support/documentation/en/flex/3/releasenotes_flex3_fb.html#install_plugin_win
 Install Flex Builder Plug-in on Windows

 *NOTE*: Flex Builder is only supported on Eclipse 3.2.2 or Eclipse 3.3.

 where as:

 *Install Flex Builder Plug-in on Mac OS X*

 *NOTE*: Builder is only supported on Eclipse 3.2.2, Eclipse 3.3 and
 Eclipse 3.4.

 So, the plugin supports 3.4 on Mac ONLY? Is this a doc error?
  




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




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


Re: [flexcoders] Cairngorm for AS3 projects?

2008-11-13 Thread Pedro Sena
You could take a look at PureMVC.

PS

On Thu, Nov 13, 2008 at 11:03 AM, Rick Schmitty [EMAIL PROTECTED] wrote:

   Is there any reason not to use cairngorm for AS3 projects. I know
 cairngorm uses classes in the mx.* range so its using some flex
 framework code (and I assume that means adding the 126kb framework
 code at least..)

 is there a framework AS3 projects use instead?

 thanks
  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Flex 3 Style Explorer is available

2008-10-24 Thread Pedro Sena
Wow,

Very nice.

But the page's title remains Flex 2, :D

Regards,

PS

On Fri, Oct 24, 2008 at 6:41 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

In case you missed it.

 *
 http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html#
 *http://examples.adobe.com/flex3/consulting/styleexplorer/Flex3StyleExplorer.html

 Tracy
  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Flex 3 Layout of long form

2008-10-10 Thread Pedro Sena
Hi,

I think that the best way to make a long form is structure it like a wizard.

Like was said, divide it into logical groups and make it sequential, using
tabs to group the logical groups would be nice too.

Just my 2 cents.

Regards,

PS

On Fri, Oct 10, 2008 at 8:54 AM, Howard Fore [EMAIL PROTECTED] wrote:

   On Thu, Oct 9, 2008 at 11:46 PM, brucewhealton 
 [EMAIL PROTECTED] wrote:

 So, I'm wondering about some other ways of wrapping and presenting all
 of this.
 1) The form tag is required, is it not? And the FormItem tag? I know
 there are other layout options but there must be these tags, or am I
 mistaken?


 Um, required for what? The form/formitem/formheading elements are AFAIK
 just there to give you some easy graphical structure for a form type screen.
 That's it.



 2) Assuming that is true, then all the fields, labels, form elements
 and the submit button must be inside the same Form tag, correct?


 I think FormItem and FormHeading have to be in a Form but that's it.


 3) If the form is long, how would I use either Accordion features, or
 view states or something else to allow easier presentation of
 different segments of the form? In other words, I don't want this
 going on for 20+ items, including TextAreas, as that could be long.


 Break the questions into logical groups, then put then in different
 sections of the accordion.


 Lastly, would ColdFusion work better with this than PHP?


 While I'm a ColdFusion programmer professionally, I'm certain that you can
 do what you want with PHP. I'm unclear of the methods available to PHP to
 pipe data back and forth (other than HTTPService, which would treat your PHP
 page as a webservice I think). There are some neat things that you can do
 with CF and the Flash Remoting capabilities that Adobe has built for it but
 I don't see that those would be requirements for what you've set out here.




 --
 Howard Fore, [EMAIL PROTECTED]
 The universe tends toward maximum irony. Don't push it. - Jeff Atwood
  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Type Coercion error in a Popup module

2008-10-07 Thread Pedro Sena
Hi,

Cairngorm does not work well with modules.

You should take a look at modular (
http://lab.arc90.com/2007/10/modular_1.php).

It solve most of the cairngorm problems with modules.

I made something similar, but in my case, every module was a TitleWindow. I
achieve this with this metatag:

[Frame(factoryClass=mx.core.FlexModuleFactory)]

Example:

[Frame(factoryClass=mx.core.FlexModuleFactory)]
public class ReservaWebBaseModule extends TitleWindow implements
NetSarChildModule

In my specific case, I would like to work with my modules as common
TitleWindows, without loosing its module capabilities (load, unload, etc)

Hope this helps,

Regards,

PS

On Mon, Oct 6, 2008 at 6:28 PM, hr1ny [EMAIL PROTECTED] wrote:

   Hi,
 I have a module that runs inside a popup window. It runs fine the 1st
 time I run it, but after it runs successfully (and I unload the
 module), after I create and use a 2nd popup using the same module, it
 fails with this error:

 TypeError: Error #1034: Type Coercion failed: cannot convert
 com.adobe.createmeeting.events::[EMAIL PROTECTED] to
 com.adobe.createmeeting.events.CreateMeetingEvent.

 The error occurs while executing a piece of typical Cairngorm-style
 code:

 override public function doExecute(event:CairngormEvent):void {
 var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);

 If I define the class CreateMeetingEvent and instantiate it in the
 parent application, then this error does not occur, but I do not want
 to define it in the parent application, since it does not belong
 there.

 My guess is that this has to do with the issue of ApplicationDomains
 and class loading. Somehow, when I create the 2nd popup with the same
 module, it is looking for the class definition that belonged to the
 now-defunct class module.

 Can anyone suggest what is the best way to fix this?
 Thanks,
 Henry

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Re: Styling AdvancedDataGrid's header

2008-09-16 Thread Pedro Sena
Probably because that are a few protected attributes that become private
when you subclass StandardTreeGrid instead of direct subclassing ADG.

I´m not sure if this is the case, but you should take a look at this.

Hope this helps

On Tue, Sep 16, 2008 at 5:24 PM, whatabrain [EMAIL PROTECTED] wrote:

   While trying to answer your question, I found out what was causing the
 problem, but I'm still not sure why.

 I have a class called StandardTreeGrid, which subclasses ADG. It's in
 StandardTreeGrid that I override things like verticalGridLines. Now if
 I override headerSeparatorSkin in StandardTreeGrid, everything works
 fine. But if I subclass StandardTreeGrid and override
 headerSeparatorSkin there, I lose a bunch of ADG attributes.

 Any idea how I can fix this?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Pan
 Troglodytes [EMAIL PROTECTED]
 wrote:
 
  Did you override just the headerSeparatorSkin, or go farther?
 
  On Tue, Sep 16, 2008 at 2:29 PM, whatabrain [EMAIL PROTECTED] wrote:
 
   Thanks. That's exactly what I was looking for, and it fixed my
   problem.
  
   However, overriding the skin also overrode lots of ADG settings,
 like
   verticalGridLines, alternatingItemColors and sortExpertMode. Is
 there
   any way to avoid that?

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Creating a class by name

2008-09-02 Thread Pedro Sena
Or you could specify in a separate XML the classes you want to include in
the compilation.

On Tue, Sep 2, 2008 at 5:30 PM, Richard Rodseth [EMAIL PROTECTED] wrote:

   Or perhaps a special kind of module could register classes with the
 player and the class factory could throw an exception or return null if an
 unregistered class was requested?

 On Tue, Sep 2, 2008 at 1:24 PM, Alex Harui [EMAIL PROTECTED] wrote:

One could certainly build a much fancier system  where, if
 hasDefinition fails, you make a server request for a module with that class,
 wait for it to get installed and then go back and use getDefinition.  Some
 system on the server would have to keep track of which classes are in which
 modules, or bake the class into a module on the fly.  Network latency and
 asynch server i/o would make this a  slow process, but that gives you
 maximum flexibility.



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Richard Rodseth
 *Sent:* Tuesday, September 02, 2008 1:12 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Creating a class by name



 Gordon,

 I don't think I have anything useful to add, but I did include that second
 link for the readers.

 I was just observing that if you have to include class references in a
 dummy array, doing the creation with a switch statement is not that ugly. I
 wasn't saying getDefinitionByName has no place.

 In practice, I suppose I might build a separate swc with all my
 extensibility classes compiled into it using those compiler options, in
 which case I would of course use getDefinitionByName() for the actual
 instantiation.

 - Richard

 On Tue, Sep 2, 2008 at 12:56 PM, Gordon Smith [EMAIL PROTECTED] wrote:

  The requirement that the classes in question be referenced in the SWF
 detracts somewhat from this recipe



 How do you think it should work?



 Gordon Smith

 Adobe Flex SDK Team



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Richard Rodseth
 *Sent:* Friday, August 29, 2008 9:19 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Creating a class by name



 Someone was asking the other day about creating a component by name. An
 example was just posted:


 http://blog.flexexamples.com/2008/08/28/creating-a-component-instance-by-class-name-in-actionscript-30/

 The requirement that the classes in question be referenced in the SWF
 detracts somewhat from this recipe (i.e. as presented it's not much better
 than a switch statement, in my view).

 However, it appears there are some additional techniques, as discussed
 here:

 http://jwopitz.wordpress.com/2008/02/21/getdefinitionbyname-trick/




  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Using view stack to link to mxml

2008-09-02 Thread Pedro Sena
Well Pankaj,

If you want to do this as modules, here is a piece of code to load modules:

var info:IModuleInfo = ModuleManager.getModule(modulePath);
info.addEventListener(ModuleEvent.ERROR, errorLoadModuleHandler);
info.addEventListener(ModuleEvent.READY, displayModule);
info.load();

Then in displayModule I have:

var module:TitleWindow = event.module.factory.create() as TitleWindow;

In my specific case this works fine because every module that I have is a
TitleWindow. Here how I make this:

[Frame(factoryClass=mx.core.FlexModuleFactory)]
public class MyCustomModuleBase extends TitleWindow

This metatag Frame with this factoryClass is making my class available to
manipulate like a module, in my specific case that was VERY helpful that all
my modules were subclasses of TitleWindow, it helped me a lot.

But you can simply make your class subclass of Module that the way to
load/unload it will work fine too.

If you have some doubts you can search in the list too.

Hope this helps,

PS

On Tue, Sep 2, 2008 at 5:35 PM, Derrick Anderson 
[EMAIL PROTECTED] wrote:

   I agree with Nate and Tracy, that doesn't sound like a good use for
 modules.  Everything you mention can be done very easily in 1 swf.

 Consider your 'pages' as 'views' instead, I know this sounds nitpicky but
 the sooner I got away from the 'page refresh' mentality the sooner the rest
 made sense.  use a viewstack to hold the different forms (or states to
 hide/show them).

 Unless you have many very large forms to fill out I'd stay away from
 modules.

 Another thing that helped me learn is the docs

 http://livedocs.adobe.com/flex/3/html/

 read the first couple chapters, and you'll know how to handle this.

 D.


 On Tue, Sep 2, 2008 at 4:18 PM, Pankaj Arora [EMAIL PROTECTED] wrote:

The example I gave you is what I wish to achieve. I am not sure how to
 handle this in single application. I am new to flex.

 Business reason:

 I have one page where I have one form. User fills this information and
 press one button (button1). He is taken to another page (Page1) where he
 fills another form. Some information from first page is used in the next
 page- Page 1. If user had pressed button2 then he would have been taken to
 page2. All the pages currently are separate applications. As suggested by
 you guys I am trying to make modules out of it and then load/unload modules
 as the button is clicked. Problem is that the pages are not part of main
 application so I made main application as module too and loaded it as
 default. Now on clicking button 1 I want to unload main module and load
 another module which is another page.



 Thanks,

 Pankaj Arora


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Nate Beck
 *Sent:* Tuesday, September 02, 2008 12:41 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Using view stack to link to mxml



 I agree.. I'm trying to understand exactly why you need separate swfs.
 What you're trying to achieve, as far as I can tell, sounds like it can all
 be handled in one single application.

 Cheers,
 Nate

 On Tue, Sep 2, 2008 at 12:50 PM, Tracy Spratt [EMAIL PROTECTED]
 wrote:

 Do you have a compelling business reason to avoid a straight-forward
 component architecture?



 Such reasons exist, but be sure you have not missed the best solution by
 jumping to a more complex one.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Pankaj Arora
 *Sent:* Tuesday, September 02, 2008 3:05 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* RE: [flexcoders] Using view stack to link to mxml



 Yes I do have control and can make all of them modules.

 But I am not able to understand how to load/unload various modules.



 To put it in perspective: My main application has a button which when
 pressed takes me to another application which has another button which
 pressed takes me to 3rd application.

 If I make all of them modules and load the main application and on
 pressing the button I should be able to load the second swf file and unload
 the main application. And so forth..



 Can you please give some examples to how to do this? I am attaching my 2
 application which I attached before and my requirement is when I add text on
 the text box in Hello1.mxml and click the click me button Hello2.mxml is
 shown and the text box in Hello2 contains the text from the Hello1.mxml text
 box. I don't need Hello1 to be shown so I guess I need to unload it. I am
 not sure.



 Thanks,

 Pankaj Arora


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Pedro Sena
 *Sent:* Saturday, August 30, 2008 3:17 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Using view stack to link to mxml



 Pankaj,

 Do you have control (can alter the source) of all those swfs? I would
 recomend you to manipulate those swf

Re: [flexcoders] Communication between custom preloader and the application

2008-09-01 Thread Pedro Sena
Hi João,

Why are you trying to do this? Just for curiosity...

Regards

On Mon, Sep 1, 2008 at 9:33 AM, João [EMAIL PROTECTED] wrote:

   Hello,

 I have created a custom application preloader as described here:

 http://www.onflex.org/ted/2006/07/flex-2-preloaders-swf-png-gif-examples.php

 I need my preloader to communicate with the application, by
 dispatching an event or calling a method on the appliaction where it
 resides, but I'm not being able to make them communicate.

 Any suggestions?

 Thanks,

 João Saleiro

  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Using view stack to link to mxml

2008-08-30 Thread Pedro Sena
Pankaj,

Do you have control (can alter the source) of all those swfs? I would
recomend you to manipulate those swf files as flex modules instead of put
all of them in yout html. That way you can easily send/receive data between
them AND have the advantage to load them just when you need it, what does
not happens when you put all together in your html file.

Hope this helps

On Fri, Aug 29, 2008 at 8:29 PM, Pankaj Arora [EMAIL PROTECTED] wrote:

Yes they are completely different swf files( there are 4 of them in
 total). One of them is main.swf which has few text boxes and buttons. On
 clicking button 1 hello2. swf is loaded and it access all the information
 from main.swf and similarly on clicking button2 another swf file hello2.swf
 is loadead and so forth.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Nate Beck
 *Sent:* Friday, August 29, 2008 3:58 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Using view stack to link to mxml



 Okay, so just to clarify. You're wanting to communicate from one
 application to another application?  They are completely different swf
 files?



 Like this?



 Example HTML page:

 html

 headtitleTesting Flex/title/head

 body

 object id=Hello1 width=300 height=200

 param name=movie value=Hello1.swf
 /

 param name=allowScriptAccess
 value=sameDomain /

 embed src=Hello1.swf

 width=300 height=200
 name=Hello1


 allowScriptAccess=sameDomain


 type=application/x-shockwave-flash

 /embed

 /object



 object id=Hello2 width=300 height=200

 param name=movie value=Hello2.swf
 /

 param name=allowScriptAccess
 value=sameDomain /

 embed src=Hello2.swf

 width=300 height=200
 name=Hello2


 allowScriptAccess=sameDomain


 type=application/x-shockwave-flash

 /embed

 /object

 /body

 /html



 On Fri, Aug 29, 2008 at 3:43 PM, Pankaj Arora [EMAIL PROTECTED] wrote:

 I am sorry I dint explain it well. Let me give you one example.



 Two files attached are 2 mxml applications I have in my project. I load
 each independently in an .xhtml file.



 My requirement is when I add text on the text box in Hello1.mxml and click
 the click me button Hello2.mxml is shown and the text box in Hello2
 contains the text from the Hello1.mxml text box.





 Do tell me if you need any more information.



 Thanks,

 Pankaj Arora
  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Nate Beck
 *Sent:* Friday, August 29, 2008 3:15 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Using view stack to link to mxml



 I'm a bit confused on how you mean load another application.  You could
 either load a Component (compiled into your swf) or a Module
 (compiled separate from your application).



 From how I read it, this sounds like you're trying to load one MXML swf
 inside of another application. One of the easiest ways to do this would be
 through using Flex Modules (mx:Module).



 More information would we useful.



 Cheers,

 Nate



 On Fri, Aug 29, 2008 at 2:10 PM, pankajarora_in [EMAIL PROTECTED]
 wrote:

 I have a appplication abc.mxml
 and there are 2 buttons but1 and but2 in it.
 WHen I press but1 I need to call to anothe application 1.mxml
 and when I press button 2 I need to call 3rd application 3.xml. Note
 that pressing any button pass on data from abc.mxml to 1.mxml and
 2.mxml. Any ideas how it can be done. I think viewstack can be one way
 but any examples will be appreciated.





  




-- 
/**
* Pedro Sena
* Systems Architect
* Sun Certified Java Programmer
* Sun Certified Web Component Developer
*
* Net Sar
* www.netsar.com.br
*/


Re: [flexcoders] Help, Random module load issues.

2008-08-26 Thread Pedro Sena
Hi,

Post the at Login/switchModule() code please.

PS

On Tue, Aug 26, 2008 at 1:48 PM, mthielman11 [EMAIL PROTECTED] wrote:

   Hey everyone. We are experiencing a ton of issues with our app with
 regards to module loading. Our main app at this point has 4 main sub
 modules. Until now only a couple users tended to switch between them
 but now it is becoming more common. We have noticed a completely
 random but troublesome bug. Many times when switching from one module
 to the next we get either history manager errors or the module loads
 100% then is just blank, so it never really fully loads. You then need
 to exit the app and try again. Sometimes it will work, often times it
 does not. We are not even using history manager and i have even
 disabled it in the compiler settings and still get the issue. Here are
 some sample errors:

 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
 at mx.managers::HistoryManager$/get impl()
 at mx.managers::HistoryManager$/unregister()
 at mx.containers::ViewStack/removedFromStageHandler()
 at flash.display::DisplayObjectContainer/addChild()
 at
 mx.core::Container/
 http://www.adobe.com/2006/flex/mx/internal::createContentPane()
 at mx.core::Container/createOrDestroyScrollbars()
 at mx.core::Container/createScrollbarsIfNeeded()
 at mx.core::Container/createContentPaneAndScrollbarsIfNeeded()
 at mx.core::Container/validateDisplayList()
 at mx.managers::LayoutManager/validateDisplayList()
 at mx.managers::LayoutManager/doPhasedInstantiation()
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at mx.core::UIComponent/callLaterDispatcher2()
 at mx.core::UIComponent/callLaterDispatcher()

 TypeError: Error #1034: Type Coercion failed: cannot convert
 mx.managers::[EMAIL PROTECTED] to mx.managers.IHistoryManager.
 at mx.managers::HistoryManager$/get impl()
 at mx.managers::HistoryManager$/unregister()
 at mx.containers::ViewStack/removedFromStageHandler()
 at flash.display::DisplayObjectContainer/removeChild()
 at
 mx.core::UIComponent/
 http://www.adobe.com/2006/flex/mx/internal::$removeChild()
 at mx.core::Container/removeChild()
 at mx.modules::ModuleLoader/set url()
 at Login/switchModule()
 at com.zebramenubar::app_code/menuHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.controls::MenuBar/eventHandler()
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at mx.core::UIComponent/dispatchEvent()
 at mx.controls::Menu/dispatchEvent()
 at mx.controls::Menu/mouseUpHandler()

 We have not idea where to begin, one of our devs can never ever even
 get this to happen! Any suggestions are greatly appreciated. Thanks.

  




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


[flexcoders] Problems with Cairngorm + Modules

2008-08-23 Thread Pedro Sena
Hi guys,

I need some help with Cairngorm + Modules:

All my modules are subclass of ReservaWebBaseModule , so I'm using:

[Frame(factoryClass=mx.core.FlexModuleFactory)]
public class ReservaWebBaseModule extends TitleWindow

So far so good, no problem to load it neither to manage my modules. The
problem comes when I try to use the cairngorm in my modules (my shell is
very simple and does not need cairngorm).

I created a event do unload my modules, that event it dispatched from
my*ReservaWebBaseModule class, that is the parent class of all my
modules
*. Even using Modular classes, that was supposed to solve the problem (
http://blog.arc90.com/2007/10/introducing_modular.php), my event is
catched(by FrontController) more than once.

*I have a frontController for each module*(each frontController is subclass
of ModuleFrontController) and my UnloadModuleEvent is subclass of
AbstractModuleEvent

Another important point that I noticed is:

Part of the solution proposed is to create a single instance of
CairngormEventDispatcher for each module, instead of create just one for
entire application, here a snnipet of the code:

var instance:Object = ModuleManager.getAssociatedFactory(obj);

Based on instance.name a class creates a single instance for each module.
I did a trace in my instance.name and noticed that both modules that I'm
using (different classes, but subclass of ReservaWebBaseModule) are with the
same instance.name.

I tried to put this metatag in each subclass of my main module class but the
problem persists. Do I need to create my own subclass of
mx.core.FlexModuleFactory to make what I want ?

Suggestions are welcome

Thanks in advance


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


Re: [flexcoders] flex taglibs

2008-08-20 Thread Pedro Sena
Hi,

When talking about Flex, you need to compare it more with SWING than JSP.

Thinking that way you can work with flex without problems.

The best way to structure your code is following the main patterns, I
recommend you a framework, like Cairngorm or PureMVC, they can help you to
adopt good patterns that you help you to structurate your code.

Hope this helps

On Wed, Aug 20, 2008 at 4:37 AM, vidhuparthi [EMAIL PROTECTED]wrote:


 In J2EE project we use taglibs for custom actions during the execution
 of JSP pages, In flex is there any way to use taglibs or is there
 anyother way to control the flow instead of hard coding it in all places.

 can anyone help me please???

 Thanks in advance

  




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


Re: [flexcoders] How to check all children have been loaded?

2008-07-23 Thread Pedro Sena
Hi,

You could archieve want u want with creationPolicy, have u tried it ?

Pedro Sena

On Wed, Jul 23, 2008 at 2:56 PM, flexawesome [EMAIL PROTECTED] wrote:

   Hey there,

 I have a UIcomponent which contents 5 more image components inside. I would
 like to show
 the UIcomponent after all images have loaded successfully.

 If any image is still loading, the UIcomponent will not be displayed.

 Is there a easy way to add a event listener on the UIcomponent rather than
 add them for each
 of image component?

 any suggestions?

  




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


Re: [flexcoders] Re: new Component() ?

2008-07-23 Thread Pedro Sena
Hi Rafael,

What do u think of put some getters in your object instead of create various
item renderers that just have little funcionality ?

Just my 2 cents

On Wed, Jul 23, 2008 at 8:54 PM, Josh McDonald [EMAIL PROTECTED] wrote:

   I don't see why you don't just use mx:component like in your first
 example? You don't need to make any extra files. Or are you building your
 entire datagrid programatically?

 -Josh

 On Thu, Jul 24, 2008 at 9:16 AM, Rafael Faria 
 [EMAIL PROTECTED] wrote:

 Hi Johannes,

 Thanks for your reply but my question isn't really about how to put
 the columns into the datagrid. It's actually how to create dynamically
 components to put inside the columns.

 See i don't want to create 4,5,6,7 different itemrenderes files so i
 can insert into the columns i would create them on the fly,
 programmatically  .  Does it make sense?

 Anyone have some idea about it?!

 Thanks
 Raf


 --- In flexcoders@yahoogroups.com, Johannes Nel [EMAIL PROTECTED]
 wrote:
 
  wiht the datagrid you put the datagridcolumns into an array and then
 set the
  datagrid.columns property
 
  On Wed, Jul 23, 2008 at 8:47 AM, Rafael Faria [EMAIL PROTECTED]
  wrote:
 
 Is there anyway to create components on the fly?
  
   Let me explain what i mean.
  
   I have a datagrid that has like 5 columns. Each one of them use a
   different itemrenderer.
  
   I understand that i can create each itemrenderer on a different file
   but what if i don't want to create files?
  
   is there anyway to transform the following code in a dynamically code
   without create any files?
  
   mx:DataGridColumn headerText=Name
   mx:itemRenderer
   mx:Component
   mx:Text text={data.lname + ', ' + data.fname} /
   /mx:Component
   /mx:itemRenderer
   /mx:DataGridColumn
  
   ??
   How can i do that without creating any other files? i would imagine
   something like
  
   var dgc:DataGridColumn = new DataGridColumn();
   var mycomponent:Component = new Component();
   var txt:Text = new Text();
   txt.text = Somthing here;
   mycomponent.addChild(txt);
  
   var render:ClassFactory = new ClassFactory(mycomponent);
   dcg.itemRender = render;
  
   i know that this code doesnt work but it's just to have an idea of
   what i was thinking.
  
   Is there anyway to do that?
  
   Thanks
   Rafael
  
  
  
 
 
 
  --
  j:pn
  \\no comment
 



 

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






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

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




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


Re: [flexcoders] Re: Flex Appointment Calendar Component

2008-07-15 Thread Pedro Sena
404

On Tue, Jul 15, 2008 at 1:47 PM, javadmanx [EMAIL PROTECTED] wrote:

   Looks good.


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 jmfillman [EMAIL PROTECTED] wrote:
 
  We have completed our initial work on a Flex Appointment Calendar. The
  calendar features day, week, and month views. All views are fully drag
   drop enabled. The day and week view also are drag re-size enabled.
  You have complete control over all styles, colors, and icons.
 
  To try out the component, please visit
  http://www.imbizzi.com/imbizzi.html.
 
  For more information, including tutorials, styling guide, and technical
  details, please visit http://www.imbizzi.com.
 
  For technical questions, please e-mail support [at] imbizzi dot com.
 
  JF
 

  




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


Re: [flexcoders] Advanced Data grid question

2008-07-14 Thread Pedro Sena
Hi Pratima,

Are you overriding the function set data ?

I did something similar just checking what was my object type(Im supposing
that u r using different object for projects and orchestrations).

I used a subclass of LinkButton as my renderer.

Hope this helps.

Pedro Sena

On Mon, Jul 14, 2008 at 3:06 PM, Pratima Rao [EMAIL PROTECTED] wrote:

Hi,



 I have an advanced DG that contains projects and orchestrations. Each
 project is a parent node and the children are the orchestrations. I'd like
 to display them as link buttons. When you click on the project the user goes
 to the project page and when you click the orchestration the user goes to
 the orchestration page. I've defined an item renderer for this purpose. When
 I use the itemrenderer I can get the orchestrations to be links and not the
 projects. Initially this component was a datagrid on 2.0 and I upgraded to
 3.0 and I moved to the advanced datagrid and I reused most of the renderers
 and got them to work with some minor tweaks.



 Any ideas on how to make the parent node a link in advanced DG?



 Thanks,

 Pratima
  




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


Re: [flexcoders] Extending RemoteObject

2008-07-04 Thread Pedro Sena
Hi,

Be sure you are extending the mx.rpc.remoting.mxml.RemoteObject instead of
extending the
mx.rpc.remoting.RemoteObject.

Hope this helps,

Pedro Sena

On Fri, Jul 4, 2008 at 1:20 PM, mbhoisie [EMAIL PROTECTED] wrote:

   I'd like to have a custom remoteobject for specific error handling
 and logging. However, if I try to extend remoteobject:

 public dynamic class CustomRemoteObject extends RemoteObject
 {
 ...
 }

 It is completely unusable in an mxml file. If I try to declare any
 mx:methods inside of it, I get a could not resolve mx:method to
 a component implemenation:

 components:CustomRemoteObject
 mx:method ... !-- compiler error
 /components:CustomRemoteObject

 I know that mx:method is special-cased by the compiler because it
 doesn't have a component implementation. Is there a way to use custom
 remote objects in mxml with the mx:method tag? If not, is there a way
 to use custom remote objects in mxml and have callbacks at the method-
 level? Is remoteobject not supposed to be extended this way?

  




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


Re: [flexcoders] Error in Adobe class MultiTopicConsumer

2008-06-02 Thread Pedro Sena
Hi Andrew,

Can't you subclass MultiTopicConsumer and override this method to use your
instead of use this one?



On Mon, Jun 2, 2008 at 12:43 PM, bbloggs96 [EMAIL PROTECTED] wrote:

   I am using the MultiTopicConsumer with Blaze.

 I have had problems with removeSubscription, it gives me an error when
 I remove the last subtopic in the array of subscriptions. It works OK
 if any other subtopic is removed.

 I tracked down the problem to the actual Adobe Class
 MultiTopicConsumer and method removeSubscription.

 The code removes the subtopic, but then does a check afterwards to see
 if it is ttrying to remove a subtopic that does not exist. But when it
 is the last subtopic, it always fails.

 Does anybody have a work around?

 This is the method from Adobe Class MultiTopicConsumer:

 public function removeSubscription(subtopic:String = null,
 selector:String = null):void
 {
 for (var i:int = 0; i  subscriptions.length; i++)
 {
 var si:SubscriptionInfo =
 SubscriptionInfo(subscriptions.getItemAt(i));
 if (si.subtopic == subtopic  si.selector == selector)
 {
 subscriptions.removeItemAt(i);
 break;
 }
 }
 if (i == subscriptions.length)
 throw new MessagingError(Attempt to remove a subscription
 with subtopic:  +
 subtopic +  and selector:  + selector +  that this
 consumer does not have);
 }

 The problem is the if (i == subscriptions.length), which always is
 true because it has just been removed.

 Andrew

  




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


Re: [flexcoders] Binding Model to selectedItem property not updating

2008-05-16 Thread Pedro Sena
Hi Ken,

Do you know the Cairngorm framework ?

It does what you want, and in this link you will find some intersting
tutorials:

http://www.davidtucker.net/category/cairngorm/

C ya

On Fri, May 16, 2008 at 3:54 PM, Ken Dunnington [EMAIL PROTECTED]
wrote:

   Thanks Alex, I realized continuously setting the value to ageList[5] was
 pointless since it didn't change, and I made my form state model extend
 EventDispatcher, which made it possible to listen for propertyChange events
 being fired.

 But I am still trying to find information on the best way to handle binding
 a form's state in a more MVC style. Do I need to attach listeners to each of
 my form controls to manually update the state in my model each time the form
 changes? If my form control's selectedItem is bound to that same state
 model, will that cause an infinite loop of bindings firing one after the
 other? I've been unable to find examples of binding a form to a model beyond
 the very simple (and tightly coupled) examples in the Flex docs, or of
 two-way binding in general.

 On Fri, May 16, 2008 at 2:14 PM, Alex Harui [EMAIL PROTECTED] wrote:

If the value of model.ageList[5] does not change, no change event will
 be fired, and if quotingFormState doesn't dispatch change events for changes
 to the age property binding won't work then either.

  --
 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Ken Dunnington
 *Sent:* Friday, May 16, 2008 8:19 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Binding Model to selectedItem property not
 updating

  I'm currently refactoring a small application to be more MVC and am
 running into a few binding issues.

 In my Model, I store all my dataProviders, which are Arrays (because they
 will not change) and I also have a typed object that stores my form state as
 individual objects. In my View, which is mostly a bunch of ComboBoxes, I
 have set the dataProvider to bind to the arrays in the Model, and set the
 selectedItem to bind to the form state properties. I added a button which
 will update the form state for one of the properties when clicked, which
 works (the ComboBox updates to the expected value) the first time, but not
 on subsequent clicks. I've attached a listener to the valueCommit event on
 the ComboBox, and it does fire the first time.

 I've tried changing the Model to use ArrayCollections instead, and used
 the Collection API to try and update the selectedItem (by setting the form
 state model to the value of a getItem() call) but that isn't working either.

 Is there a better way to handle storing and binding form state in a well
 designed Flex app? I'm not using a framework, and don't really want to at
 this point in time (the app is fairly small, and the deadline is approaching
 quickly.)

 Any help or insight is greatly appreciated!
  - Ken

 Code snippets:

 The ComboBox:

 mx:FormItem label=Age

 mx:ComboBox id=age dataProvider={model.ageList} rowCount=10

 selectedItem={model.quotingFormState.age} /

 /mx:FormItem


 The function called to update the ComboBox (works on first click only):

  private function updateAge():void {

 model.quotingFormState.age = model.ageList[5];

 }




 --
 The American Republic will endure until the day Congress discovers that it
 can bribe the public with the public's money.
 -- Alexis de Tocqueville
  




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


Re: [flexcoders] SQL Lite syntax issue, need something cleared up regarding SELECT

2008-05-16 Thread Pedro Sena
Bread:

I think you should use:

sqlText = SELECT * FROM Up18Technicians WHERE TechName = ' + userName
+ ' AND Password = ' + pass + ';

Look that I put some (') around your values

C ya
On Fri, May 16, 2008 at 4:18 PM, bredwards358 [EMAIL PROTECTED]
wrote:

   While working on the login functionality of the application I'm
 developing, I noticed that SQL seems to be interpereted differently
 than what I'm used to. Here's my current select statement that I'm
 using for validation:

 sqlText = SELECT * FROM Up18Technicians WHERE TechName =  + userName
 +  AND Password =  + pass;

 Which translates to:

 SELECT * FROM Up18Technicians WHERE TechName = Ross AND Password = 358029

 Now, when the application gets to the execute portion, it throws this
 error:

 SQLError: 'Error #3115: SQL Error.', details:'no such column: Ross',
 operation:'execute'
 at flash.data::SQLStatement/internalExecute()
 at flash.data::SQLStatement/execute()
 at

 MatMgr::DataManager/techLogin()[C:\Tech_Connect\MatMgr_Proto\src\MatMgr\DataManager.as:453]
 at

 MatMgr_Proto/login()[C:\Tech_Connect\MatMgr_Proto\src\MatMgrProtoSource.as:210]
 at

 MatMgr_Proto/__btnLogin_click()[C:\Tech_Connect\MatMgr_Proto\src\MatMgr_Proto.mxml:18]

 This indicates that it is trying to find columns by the name of what
 was entered instead of trying to find values in those columns matching
 what I entered. I looked up SQL as its understood by SQL lite, but it
 seems a bit confusing and I'm unsure if it's even the problem. If it
 is, then I'm just wondering if it may have something to with perhaps
 the AND keyword isn't understood or maybe there's something up with
 how I'm using the WHERE clause.

 Here's the function I'm using to perform this in case it helps:

 public function techLogin(userName:String, pass:String):void
 { //This loads information needed to login technicians
 sqlText = SELECT * FROM Up18Technicians WHERE TechName =  +
 userName +  AND Password =  + pass;
 trace(sqlText);
 selectStatement = new SQLStatement();
 conn = new SQLConnection();
 selectStatement.sqlConnection = conn;
 conn.open(dbFile);
 selectStatement.addEventListener(SQLEvent.RESULT, selectTechLoginResult);
 selectStatement.addEventListener(SQLErrorEvent.ERROR, errorHandler);
 selectStatement.text = sqlText;
 selectStatement.execute(); //Error happens here, doesn't go any further
 }

  




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