Re: [flexcoders] Memory leaks

2007-08-27 Thread André Rodrigues Pena
Alex, I appreciate your reply but I still think there's something wrong
regarding memory. I'm sending you an application that reproduces the
situation I started my earlier post with. Flex does not releases all the
memory  it takes, even inducing garbage collection as I show in the demo
application. If you repeat the experience over and over you will see that
the memory lost is not likely to get back.

So what is this? What can I do about it?

On 8/25/07, Alex Harui <[EMAIL PROTECTED]> wrote:
>
>There are two major memory usage scenarios in Flex.  One involves
> creating a new instance of a component, displaying, and later destroying
> it.  The other involves bringing in one or more classes of components in a
> module and trying to get rid of that module later when its classes are no
> longer needed.
>
> Honestly, I don't know of any issues of the first kind at this point.  A
> major problem with ViewStack related components was addressed in Hotfix2,
> and a DateField issue was either addressed in the same hotfix, or a
> workaround was provided and the issue fixed for Moxie.  A recent issue with
> Menus was fixed for Moxie and a workaround was provided.  I'm sure there are
> still issues out there, and they should be filed as bugs so we can
> investigate and fix them.  I also encourage you to try to isolate problems
> of this nature and post examples on this forum as often there can be a
> misunderstanding of how memory management works in Flash/Flex.
>
> The second kind of issues is sort of a fact-of-life for Flex.  The first
> module to introduce shared code via Styles or Managers must remain in memory
> to serve all other code.  This has been explained on my 
> blog.http://blogs.adobe.com/aharui/2007/03/modules.html.
> The blog article includes an example of a way to deal with this situation,
> although often the easiest way is just to include all managers in the main
> app, and bring in styles via runtime CSS.
>
> As you'll see in the article, browser memory management has little to do
> with it.  It simply has to do with how GC works (described further elsewhere
> on my blog) and how styles and singleton managers are shared.  Any memory
> changes when minimizing is probably due to IE releasing its own browser
> resources, although the player may release some at that time as well.
>
> If you have further questions, this forum should be able to help you out.
> In the future, please ask sooner before you spend time creating eloborate
> infrastructures.
>
> -Alex
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *André Rodrigues Pena
> *Sent:* Saturday, August 25, 2007 10:44 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Memory leaks
>
>  Hi all,
>
> It might be a well-known that Flex has several memory issues. It doesn't
> completely free the memory of the components you add runtime, when you
> remove them from their containers, and when it comes to large-scale
> applications, this is a huge concern. The way my co-workers found to pass by
> it was to create a Javascript/Flex framework to allow Flex to load modules
> in separate HTML frames and provide communication between them. So, when a
> module gets out of scene, the browser frees the entire SWF. But this
> approach limits the user interaction like drag-n-drop support between
> modules. It's not natural.
>
> It seems that the browser may have a great part of the blame. They
> realized, for instance, that Internet Explorer releases the memory when the
> window is minimized and FireFox doesn't.
>
> I'm here to ask what else can be done regarding memory issues. And how you
> professionals have dealt with it.
>
> Thanks
>
> --
> André Rodrigues Pena
>
>  
>



-- 
André Rodrigues Pena


[flexcoders] Memory leaks

2007-08-25 Thread André Rodrigues Pena
Hi all,

It might be a well-known that Flex has several memory issues. It doesn't
completely free the memory of the components you add runtime, when you
remove them from their containers, and when it comes to large-scale
applications, this is a huge concern. The way my co-workers found to pass by
it was to create a Javascript/Flex framework to allow Flex to load modules
in separate HTML frames and provide communication between them. So, when a
module gets out of scene, the browser frees the entire SWF. But this
approach limits the user interaction like drag-n-drop support between
modules. It's not natural.

It seems that the browser may have a great part of the blame. They realized,
for instance, that Internet Explorer releases the memory when the window is
minimized and FireFox doesn't.

I'm here to ask what else can be done regarding memory issues. And how you
professionals have dealt with it.

Thanks

-- 
André Rodrigues Pena


Re: [flexcoders] Datagrid itemRenderer

2007-06-14 Thread André Rodrigues Pena

Hi Joan, thanks for your reply.
It works pretty fine.
I noticed something I didnt know. It seems that when you set the dataField
property of a DataGridColumn, only that particular data is passed to the
itemRenderer. But with your example, I realized the the ENTIRE value object
is passed to each DataGridColumn's itemRenderer, what allows you to create a
cell that combines more than one data field and so on.
Thanks again =)

On 6/13/07, Joan Lafferty <[EMAIL PROTECTED]> wrote:


   You will need to use a custom itemRenderer that overrides the set data
function for the columns that you want to change. Here is an example of one
that looks at the column "qty" to determine what the color of the text in
the cell is:



package {



import mx.controls.Label;



public class CustomComp extends Label {



 override public function set data(value:Object):void

 {

if(value != null)

{

   super.data = value;

   if(value.qty < 10) {

  setStyle("color", 0xFF);

 }

 else {

 setStyle("color", 0x00);

 }

}

 }

  }



}



Here is a DataGrid that might use this:



http://www.adobe.com/2006/mxml"; width="600"
height="600" xmlns="*" >













 



  

  



 

   



 



Good luck.

Joan


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *André Rodrigues Pena
*Sent:* Wednesday, June 13, 2007 7:39 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Datagrid itemRenderer



Hi all,
I want the color of the text in a particular cell of a Datagrid, modify
depending on the value of another cell, in the same record. I thought of
some function like labelFunction but it only applies to the text. I need to
modify the properties of the Label, that I think is the default
itemRenderer. I could create a custom itemRenderer too but I thought there
could be an easier way to do that.
any tips are welcome.

--
André Rodrigues Pena

 





--
André Rodrigues Pena


Re: [flexcoders] Re: Flash/Flex and EXE

2007-06-10 Thread André Rodrigues Pena

It's interesting that when I click the "Preview" button inside ZINC the
generated EXE reads HTTPService fine, when I compile and run it, it does not
=(

On 6/10/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:


MUZAK,
I've got the testing SWF I sent as an attach.
The Projector EXE file works fine
The ZINC 2.5 EXE file does not

Any tip?

On 6/10/07, Muzak <[EMAIL PROTECTED]> wrote:
>
>
> ----- Original Message -
> From: "André Rodrigues Pena" <[EMAIL PROTECTED]>
> To: 
> Sent: Sunday, June 10, 2007 12:56 AM
> Subject: Re: [flexcoders] Re: Flash/Flex and EXE
>
>
> > Muzak, are you sure of that? I just created a simple RSS reader and
> compiled
> > it under ZINC and the request is not retrieving
>
> 200%.. I have a Zinc RSS reader and a whole bunch of other apps.
>
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Standalone Flash Player

2007-06-09 Thread André Rodrigues Pena

I had one right before my eyes and didnt see! lol
thanks Doug

On 6/9/07, Doug Lowder <[EMAIL PROTECTED]> wrote:


  I used the one in the Flex2 SDK install:
SDK/Player/debug/SAFlashPlayer.exe

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"

<[EMAIL PROTECTED]> wrote:
>
> Hi guys,
> I'm trying to download the standalone player for Flash 9 so that I can
> create Projector files but I simply can't find the page to download it
> help me please
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Flash/Flex and EXE

2007-06-09 Thread André Rodrigues Pena

Muzak, are you sure of that? I just created a simple RSS reader and compiled
it under ZINC and the request is not retrieving

On 6/9/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:


So I can access web resources via HTTPService in the Projector? that's
fine! =)

I think Apollo is an interesting technology but I'd be happier if Adobe
had provided us with an "Application Publisher" able to generate platform
specific binaries (Windows and MacOS) and inst./uninst. setups from existing
Flash/Flex applications.

I like the "Once Built Run Everywhere" philosophy but I still think my
final users, those who will download the application from my website, won't
feel comfortably with the Virtual Machine.

What do you guys think about it?



On 6/9/07, Doug Lowder <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
> Interesting... The projector exe I created from my Flex 1.5/AS2 app
>  runs fine up until I try to access a feature that makes a remote
>  object call, and then the calls never return.  I thought it was
>  because Flex 1.5 required a server.  Is that a distinction between
>  Flex 1.5 as opposed to just AS2?
>
>  --- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
>  >
>  > >I know with AS2, the browser was required for remoting calls using
>  > >HTTPService and the like
>  >
>  > That is not correct.
>  > You can make remote calls/access resources on the web just fine
>  from a standalone projector or an .exe created with a 3rd party
>  > wrapper (like Zinc).
>  >
>  > regards,
>  > Muzak
>  >
>  > - Original Message -
>
>  > From: "Doug Lowder" <[EMAIL PROTECTED]>
>  > To: 
>  > Sent: Saturday, June 09, 2007 5:04 PM
>  > Subject: [flexcoders] Re: Flash/Flex and EXE
>  >
>  >
>  > I don't think the Projector approach will work for your case.  I
>  know
>  > with AS2, the browser was required for remoting calls using
>  > HTTPService and the like, and I haven't heard of anything changing
>  > with AS3.  It should be simple enough to test if you want to be
>  > absolutely sure.
>  >
>  > --- In flexcoders@yahoogroups.com, "Andr Rodrigues Pena"
>  >  wrote:
>  > >
>  > > Hi, thanks for your reply Doug and Brendan.
>  > >
>  > > what about the sandbox? I need to access resources in the web. Is
>  it
>  > > possible to build an EXE application capable of that? I know I can
>  > do it
>  > > with Apollo, but I'm thinking of a compiled approach
>  > >
>  > > On 6/8/07, Brendan Meutzner  wrote:
>  > > >
>  > > >   And then there are more powerful tools like Zinc :
>  > > > http://www.multidmedia.com/software/zinc/
>  > > >
>  > > >
>  > > > Brendan
>  > > >
>  > > >
>  > > > On 6/8/07, Doug Lowder  wrote:
>  > > > >
>  > > > >   From the standalone Flash Player, you can select File-
>  >Create
>  > > > > Projector... to create a .exe.
>  > > > >
>  > > > > --- In flexcoders@yahoogroups.com   > 40yahoogroups.com>, "Andr
>  > > > > Rodrigues Pena"
>  > > > >  wrote:
>  > > > > >
>  > > > > > Hello all,
>  > > > > > I remember that when I programmed in Flash 8/AS2 there was a
>  > way I
>  > > > > > could compile the movie into an EXE file.
>  > > > > > My question is: Can I convert AS3 applications
>  > (Flex/Flash/Apollo)
>  > > > > > into an EXE file?
>  > > > > > thanks
>  > > > > >
>  > > > > > --
>  > > > > > Andr Rodrigues Pena
>  > > > > >
>  > > > > > LOCUS
>  > > > > > www.locus.com.br
>  >
>
>
>
>
>  




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Standalone Flash Player

2007-06-09 Thread André Rodrigues Pena

Hi guys,
I'm trying to download the standalone player for Flash 9 so that I can
create Projector files but I simply can't find the page to download it
help me please

--
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Re: Flash/Flex and EXE

2007-06-09 Thread André Rodrigues Pena

So I can access web resources via HTTPService in the Projector? that's fine!
=)

I think Apollo is an interesting technology but I'd be happier if Adobe had
provided us with an "Application Publisher" able to generate platform
specific binaries (Windows and MacOS) and inst./uninst. setups from existing
Flash/Flex applications.

I like the "Once Built Run Everywhere" philosophy but I still think my final
users, those who will download the application from my website, won't feel
comfortably with the Virtual Machine.

What do you guys think about it?



On 6/9/07, Doug Lowder <[EMAIL PROTECTED]> wrote:







Interesting... The projector exe I created from my Flex 1.5/AS2 app
 runs fine up until I try to access a feature that makes a remote
 object call, and then the calls never return.  I thought it was
 because Flex 1.5 required a server.  Is that a distinction between
 Flex 1.5 as opposed to just AS2?

 --- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
 >
 > >I know with AS2, the browser was required for remoting calls using
 > >HTTPService and the like
 >
 > That is not correct.
 > You can make remote calls/access resources on the web just fine
 from a standalone projector or an .exe created with a 3rd party
 > wrapper (like Zinc).
 >
 > regards,
 > Muzak
 >
 > - Original Message -

 > From: "Doug Lowder" <[EMAIL PROTECTED]>
 > To: 
 > Sent: Saturday, June 09, 2007 5:04 PM
 > Subject: [flexcoders] Re: Flash/Flex and EXE
 >
 >
 > I don't think the Projector approach will work for your case.  I
 know
 > with AS2, the browser was required for remoting calls using
 > HTTPService and the like, and I haven't heard of anything changing
 > with AS3.  It should be simple enough to test if you want to be
 > absolutely sure.
 >
 > --- In flexcoders@yahoogroups.com, "Andr Rodrigues Pena"
 >  wrote:
 > >
 > > Hi, thanks for your reply Doug and Brendan.
 > >
 > > what about the sandbox? I need to access resources in the web. Is
 it
 > > possible to build an EXE application capable of that? I know I can
 > do it
 > > with Apollo, but I'm thinking of a compiled approach
 > >
 > > On 6/8/07, Brendan Meutzner  wrote:
 > > >
 > > >   And then there are more powerful tools like Zinc :
 > > > http://www.multidmedia.com/software/zinc/
 > > >
 > > >
 > > > Brendan
 > > >
 > > >
 > > > On 6/8/07, Doug Lowder  wrote:
 > > > >
 > > > >   From the standalone Flash Player, you can select File-
 >Create
 > > > > Projector... to create a .exe.
 > > > >
 > > > > --- In flexcoders@yahoogroups.com  40yahoogroups.com>, "Andr
 > > > > Rodrigues Pena"
 > > > >  wrote:
 > > > > >
 > > > > > Hello all,
 > > > > > I remember that when I programmed in Flash 8/AS2 there was a
 > way I
 > > > > > could compile the movie into an EXE file.
 > > > > > My question is: Can I convert AS3 applications
 > (Flex/Flash/Apollo)
 > > > > > into an EXE file?
 > > > > > thanks
 > > > > >
 > > > > > --
 > > > > > Andr Rodrigues Pena
 > > > > >
 > > > > > LOCUS
 > > > > > www.locus.com.br
 >




 




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Flash/Flex and EXE

2007-06-08 Thread André Rodrigues Pena

Hi, thanks for your reply Doug and Brendan.

what about the sandbox? I need to access resources in the web. Is it
possible to build an EXE application capable of that? I know I can do it
with Apollo, but I'm thinking of a compiled approach

On 6/8/07, Brendan Meutzner <[EMAIL PROTECTED]> wrote:


  And then there are more powerful tools like Zinc :
http://www.multidmedia.com/software/zinc/


Brendan


On 6/8/07, Doug Lowder <[EMAIL PROTECTED]> wrote:
>
>   From the standalone Flash Player, you can select File->Create
> Projector... to create a .exe.
>
> --- In flexcoders@yahoogroups.com , "André
> Rodrigues Pena"
> <[EMAIL PROTECTED]> wrote:
> >
> > Hello all,
> > I remember that when I programmed in Flash 8/AS2 there was a way I
> > could compile the movie into an EXE file.
> > My question is: Can I convert AS3 applications (Flex/Flash/Apollo)
> > into an EXE file?
> > thanks
> >
> > --
> > André Rodrigues Pena
> >
> > LOCUS
> > www.locus.com.br
> >
>
>


--
Brendan Meutzner
Stretch Media - RIA Adobe Flex Development
[EMAIL PROTECTED]
http://www.stretchmedia.ca
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Flex Component Kit for Flash

2007-06-08 Thread André Rodrigues Pena

Weber, I don't understand about exchanging SWC between Flash and Flex, but
for this code to work, the namespace myComps must be defined.
myComps

On 5/24/07, myronschabe <[EMAIL PROTECTED]> wrote:


  Hi,

I am just starting to play around with FCKF (scary looking acronym)
and am trying to use a simple swc that I created in Flash in Flex.
But in Flex builder I am getting:

An internal build error has occurred.
unable to load SWC colorbar4.swc

The steps I took:

In Flash I did "Export SWC File" on a movie clip object. In flex
builder my code is:


http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:myComps="*">




I have updated the library path with the swc - no problems occur
when doing so.

I updated Flexbuilder with the patch, though I don't see this 'so
called" Make Flex Component command in Flash, so something may not
be right on that end - though I am not a Flash person so am not
quite certain where that should be showing up (library/right click?).

Any ideas?

Many Thanks!

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Flash/Flex and EXE

2007-06-08 Thread André Rodrigues Pena
Hello all,
I remember that when I programmed in Flash 8/AS2 there was a way I
could compile the movie into an EXE file.
My question is: Can I convert AS3 applications (Flex/Flash/Apollo)
into an EXE file?
thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Flex "Reflection"

2007-06-06 Thread André Rodrigues Pena
Thank you Tom, Gordon, Mark and David
I got what I wanted. I can get the properties names via Introspection and use:
objectName[propertyName] to set the properties retrieved via introspection.
I was looking for a way to create an Adaptor to pack data received
through HTTPService into strict typed objects that can be used in
Cairngorm

On 6/6/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Tuesday 05 Jun 2007, Gordon Smith wrote:
> > > Everything is a child of Object
> > You mean "Everything is a subclass of Object".
>
> Sorry, yes :-)
> Everything is a child of Stage (or Application) ?
>
> --
> Tom Chiverton
> Helping to simultaneously disintermediate high-yield e-services
> on: http://thefalken.livejournal.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Flex "Reflection"

2007-06-05 Thread André Rodrigues Pena
Thanks Tom. I thought it would only work for objects of type Object

On 6/5/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Tuesday 05 Jun 2007, André Rodrigues Pena wrote:
> > method or the property at compile time. Something like Java
> > Reflection.
>
> anObject[aString] gets you the property of anObject who's name is in the
> string aString
>
> --
> Tom Chiverton
> Helping to appropriately harvest B2C e-business
> on: http://thefalken.livejournal.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Flex "Reflection"

2007-06-05 Thread André Rodrigues Pena
Hi all,
I'm wondering if Flex has some mechanism for dynamically calling
methods and setting properties. I mean, I don't know the name of the
method or the property at compile time. Something like Java
Reflection.

Thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Question about delete

2007-05-30 Thread André Rodrigues Pena

Olsen,
var tmpPod:Podz;
you have already created a pointer. But in order to destroy it, you set it
as null.

On 5/30/07, Alex Harui <[EMAIL PROTECTED]> wrote:


   No pointers in AS3, just references.  As soon as you set tmpPod=null,
the instance of Podz is eligible for garbage collection.


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Christopher Olsen
*Sent:* Wednesday, May 30, 2007 11:02 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Question about delete



Hello,

Quick question.. The following doesn't work says it must be dynamically
defined... how do we make something a pointer?

var tmpPod:Podz = new Podz();
delete(tmpPod);

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] FlexBuilder compiler performance

2007-05-30 Thread André Rodrigues Pena

This also happens to me, and I realized that when I use the FDS server
compiler it is even faster than shell mxmlc. I'd like to know why.

On 5/30/07, manish_shah_2010 <[EMAIL PROTECTED]> wrote:


  Hi there,

We have been using FlexBuilder 2.0.1 for a couple of months. One
problem we have is the compiler performance. We have around 9000
lines of action script code (including unit tests) and 2500 lines of
mxml code.

Compiling the application in Eclipse takes 20-30 seconds (depending on
the machine spec). Specifying different options doesn't seem to make
any difference (Build Automatically, incremental).

We've tried the Flex Compiler Shell from Adobe and this can do an
incremental compile of our code in around 4 seconds. So there must be
something wrong with our Eclipse FlexBuilder configuration.

Has anyone experienced this problem or has any suggestions on things
we can try?

Thanks,
Manish

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] DataGrid and complex types

2007-05-29 Thread André Rodrigues Pena

Of course this helped Andrea. Thanks.
I think Adobe should think of allowing the dataField attribute to work with
properties of Objects

On 5/27/07, Andrea Santambrogio <[EMAIL PROTECTED]> wrote:



On 27/05/2007, at 21:57, André Rodrigues Pena wrote:


Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property "name" within the property
"product" from the data provider. The code is the following:









Only the simple attribute "id" is properly displayed in the DataGrid

Why? What can I do?
.


The way I solved it was by using a custom label function for each column.
Instead of specifying a dataField, you define the following function inside
a script tag:

function myCustomDataLabelFunction(item:Object,
column:DataGridColumn):String
{
return item.product.name;
}

Then you declare the column like this:



Basically, your label function gets invoked on each item, when the column
needs to know what to display on that row. And you have to return the value
you want to be displayed.

I hope this helped,
Andrea.

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: How do you format your code?

2007-05-29 Thread André Rodrigues Pena

Adobe, please implement the famous Eclipse's CTRL+SHIFT+F on Flex Builder

On 5/29/07, reude <[EMAIL PROTECTED]> wrote:


  I found a trick which, though not perfect, helps quite a lot for the
mxml formatting.

In Eclipse, Go to 'Window | Preferences | General | File Associations'

Make sure that the *.mxml file type is selected, then to the bottom
of "Associated editors", click "Add"
Select "Ant Editor" and click "OK"

Then in the file explorer, right-click on the file and say open with
ant editor, then format and it looks much better.
The AS is not touch... that where it could be improved.. with jalopy
probably.

Romain.

--- In flexcoders@yahoogroups.com ,
"maunger" <[EMAIL PROTECTED]> wrote:
>
> Gee - and here i was thinking i was the only one who did it that way!
> Funny
>
> I always thought it was easier to read (tho certainly makes the files
> longer) when you put each entry on its own line like your sample.
>
> Mitch
>
> --- In flexcoders@yahoogroups.com , "Pan
Troglodytes"
>  wrote:
> >
> > I just wanted to throw this topic out there to share how I format my
> flex
> > code and see what other people think. We all know how Flex does it by
> > default. But I find those long lines hard to read as code. They are
> > especially problematic for version control, as a change to any part
> of the
> > line looks like a change to the whole line in a difference viewer.
> >
> > So, here's a fragment of my code. If you are using an email
reader that
> > changes this email to plain text, you may lose a bit of the point
of it.
> >
> >  > label="Activity"
> > width="100%"
> > height="100%"
> > styleName="tabBox"
> > >
> >  > height="100%"
> > minWidth="240"
> > width="240"
> > >
> >  > height="100%"
> > width="100%"
> > change="usersViewTabChange()"
> > >
> >  > label="Teams"
> > width="100%"
> > height="100%"
> > >
> >  > dataProvider="{WAT.teams}"
> > height="20%"
> > width="100%"
> > minHeight="100"
> > verticalGridLines="false"
> > change="detailUserListTeamSelectionChange()"
> > >
> >  > label="Edit Teams"
> > click="editTeamClick()"
> > />
> >
> > I leave the id on the same line as the component declaration because
> that
> > way it shows up in the Outline view (why it doesn't always put the
> id on the
> > Outline view no matter what the formatting is, I have no idea).
> >
> > Otherwise, I put each attribute on a single line. This means any
change
> > shows up quite nicely in a difference viewer. I put the closing >
> or /> on
> > a line of its own for the same reason.
> >
> > Unfortunately, Flex doesn't really respect this style and when
> working with
> > the property editor it can tend to rearrange it. I then have to go
> back in
> > and fix the formatting.
> >
> > What I really wish is that I could somehow make Flex/Eclipse aware
> of how I
> > like to format things so that it would help me out. I also wish I
> could do
> > something like alphabetically sort the attributes (leaving the id
at the
> > top) with a keystroke (kind of like the Organize Imports command).
> Would be
> > great to have a command that would pretty-print all the source code
> in the
> > open file.
> >
> > --
> > Jason
> >
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] RemoteClass

2007-05-29 Thread André Rodrigues Pena

Michael, thanks for your reply.
Actually I have already realized that the applications with strong reference
map correctly. But it's so weird that I thought there could be something
like this:
DataService.mapClass(Sale);
Adobe should take a look at this.

On 5/29/07, Michael Herron <[EMAIL PROTECTED]> wrote:


   Have you strongly reference the *com.beans.Sale* class in your
Application? Your RemoteClass meta-data looks fine, but if you've not got a
hard reference to the class inside your flex app, it won't be compiled in to
the SWF and won't be mapped correctly at runtime. You can get round this by
just adding an unused variable somewhere of type com.beans.Sale. (there
maybe a more elegant way to get round this).


 --

*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *André Rodrigues Pena
*Sent:* 28 May 2007 12:48
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] RemoteClass



Hi all,

I have a Java service that returns an ArrayList of type Sale.
At the Flex application I also have the type Sale, the simplifyed
version is this:

package beans
{
[Managed]
[RemoteClass(alias="com.beans.Sale")]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Although, when I trigger the RemoteObject to retrieve the ArrayList of
Sales (ICollectionView at client), Flex seems to be treating it as a
collection of Object, not Sale.

Is this conversion (Object -> Sale) to be done automatically? What's
wrong?
thanks

--
André Rodrigues Pena

LOCUS
www.locus.com.br

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Re: DataGrid and complex types

2007-05-28 Thread André Rodrigues Pena

Palmer,
Thanks, that really solves the problem! :)

On 5/27/07, simonjpalmer <[EMAIL PROTECTED]> wrote:


  write a method on your Customer and Product classes as follows:

public function toString():String
{
return this.;
}

If you want more than that you can write a custom renderer for your
classes and associate it with the datagrid columns.

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"

<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'm using a DataGrid to the result of a RemoteObject. Each record is
> an Object of type Sale that has this simplified definition:
>
> package beans
> {
> [Managed]
> [RemoteClass(alias="com.beans.Sale")]
> public class Sale {
> public var id:int;
> public var customer:Customer;
> public var product:Product;
> }
> }
>
> Notice that customer and product are complex types, that also have
> correspondent back-end classes.
>
> I manage to retrieve data successfully from the server. For instance,
> if I handle the RO result like this:
>
> public function handleResult(event:Object):void {
> sales = ICollectionView(event.result);
> var a:Sale = sales[0];
> Alert.show(String(a.product.name));
> }
>
> the product "name" is displayed properly, what proves that the data
> was retrieved.
>
> Although when I try to populate de DataGrid, I can't set a
> DataGridColumn to display the property "name" within the property
> "product" from the data provider. The code is the following:
>
> 
> 
> 
> 
> 
> 
> 
>
> Only the simple attribute "id" is properly displayed in the DataGrid
>
> Why? What can I do?
>
> Thanks!
>
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] RemoteClass

2007-05-28 Thread André Rodrigues Pena
Hi all,

I have a Java service that returns an ArrayList of type Sale.
At the Flex application I also have the type Sale, the simplifyed
version is this:

package beans
{
[Managed]
[RemoteClass(alias="com.beans.Sale")]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Although, when I trigger the RemoteObject to retrieve the ArrayList of
Sales (ICollectionView at client), Flex seems to be treating it as a
collection of Object, not Sale.

Is this conversion (Object -> Sale) to be done automatically? What's wrong?
thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] DataGrid and complex types

2007-05-27 Thread André Rodrigues Pena
Hi all,

I'm using a DataGrid to the result of a RemoteObject. Each record is
an Object of type Sale that has this simplified definition:

package beans
{
[Managed]
[RemoteClass(alias="com.beans.Sale")]
public class Sale {
public var id:int;
public var customer:Customer;
public var product:Product;
}
}

Notice that customer and product are complex types, that also have
correspondent back-end classes.

I manage to retrieve data successfully from the server. For instance,
if I handle the RO result like this:

public function handleResult(event:Object):void {
sales = ICollectionView(event.result);
var a:Sale = sales[0];
Alert.show(String(a.product.name));
}

the product "name" is displayed properly, what proves that the data
was retrieved.

Although when I try to populate de DataGrid, I can't set a
DataGridColumn to display the property "name" within the property
"product" from the data provider. The code is the following:









Only the simple attribute "id" is properly displayed in the DataGrid

Why? What can I do?

Thanks!


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] RemoteObject security

2007-05-26 Thread André Rodrigues Pena
hi all,
I'd be glad with any tips on how to secure a RemoteObject in a Tomcat
server. Thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Loggin best method

2007-05-24 Thread André Rodrigues Pena

I show a modal login TitleWindow

On 5/24/07, Derrick Anderson <[EMAIL PROTECTED]> wrote:


  i do it with a viewstack with 2 panels, the first item in the viewstack
is the login panel- if login succeeds then i switch them to the main
application panel (which has a viewstack of it's own)

- Original Message 
From: Giro <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, May 24, 2007 2:59:13 AM
Subject: [flexcoders] Loggin best method

  I need to develop an application with an initial login form. What is
best method?



One possible solution is:  I create two views, one for login, and other
the application, if login is okay, I change to application view.



Any other idea.



Thk.

Giro.




--
Ready for the edge of your seat? Check out tonight's top 
picks<http://us.rd.yahoo.com/evt=48220/*http://tv.yahoo.com/>on Yahoo! TV.

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Flex beginner cannot run ....

2007-05-22 Thread André Rodrigues Pena

that's because you didnt specify the "mx" namespace at the Application tag
properly

On 5/22/07, henryaydin <[EMAIL PROTECTED]> wrote:


  When I try to run my first actionscript application in flex, I get an
error:

Could not resolve  to a component implementation

message. I've been trying many ways to pass this error but I couldn't
success yet. Pls help me who knows this error. Thanks

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Highlighting

2007-05-22 Thread André Rodrigues Pena
Hi all,
does someone know about any highlight-ready text component? I'm
looking for something to help me build a rich text area for code
entrance.

Any tips will be appreciated

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Printing from Flex

2007-05-18 Thread André Rodrigues Pena

http://examples.adobe.com/flex2/inproduct/sdk/explorer/explorer.html
take a look at Print Controls

On 5/18/07, simonjpalmer <[EMAIL PROTECTED]> wrote:


  Anyone tried to do much printing from Flex? Any words of wisdom
before I dive headlong into the docs and scour the message boards?
Any good examples? How about Charts, anyone managed to print them
successfully? And PDF generation? Anyone found a good way of doing
that containing charts?

Thanks in advance for any help.

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Problems with xmlns

2007-05-13 Thread André Rodrigues Pena

thank you Tom and Nel.. that was it =)

On 5/10/07, Johannes Nel <[EMAIL PROTECTED]> wrote:


  its in the swc with the namespace declared in your own manifest file.
add the cairngorm swc to your project library

On 5/10/07, André Rodrigues Pena < [EMAIL PROTECTED]> wrote:
>
>   Hi there,
>
> I downloaded the CairngormStore 2.1 and tried to compile it with
> mxmlc. I got the following error at the file Services.mxml :
>
> Could not resolve: 
>
> I think that this is because the compiler is not able to resolve this
> namespace:
>
> xmlns:cairngorm="http://www.adobe.com/2006/cairngorm";
>
> I have a doubt. When you define a namespace as an url pointing to the
> web, how does the compiler work with this? It's not actually searching
> for the namespace at the web because you may be disconnected. How does
> it work? How can I solve my compilation problem?
>
> thanks in advance
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>



--
j:pn
http://www.lennel.org







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: Re : [flexcoders] Re: Building flex apps with Maven 2?

2007-05-10 Thread André Rodrigues Pena

What does Maven offer to a Flex 2 developer? does it have a IDE with a
publishing tool?

On 5/10/07, Christian Gruber <[EMAIL PROTECTED]> wrote:


  Oh and thanks! But we haven't collaborated much yet. ;) We're just
checking it all out at this point. Thank us when it's all shipping
with the latest.

Christian.

> On May 10, 2007, at 3:02 PM, Sterling, Brian wrote:
>
>> You guys are awesome!
>>
>>
>>
>> I feel little tears of joy coming to my eyes when I think about
>> this beautiful collaboration!
>>
>>

christian gruber + [EMAIL PROTECTED]  + bus
905.640.1119 + mob
416.998.6023
process coach and architect + ISRÁFÍL CONSULTING SERVICES

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Problems with xmlns

2007-05-10 Thread André Rodrigues Pena
Hi there,

I downloaded the CairngormStore 2.1 and tried to compile it with
mxmlc. I got the following error at the file Services.mxml :

Could not resolve: 

I think that this is because the compiler is not able to resolve this namespace:

xmlns:cairngorm="http://www.adobe.com/2006/cairngorm";

I have a doubt. When you define a namespace as an url pointing to the
web, how does the compiler work with this? It's not actually searching
for the namespace at the web because you may be disconnected. How does
it work? How can I solve my compilation problem?

thanks in advance

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] How to learn Caringorm

2007-05-10 Thread André Rodrigues Pena

http://bie.no/blog/computers/software-engineering/actionscript/2007/01/getting-started-with-cairngorm/

On 5/10/07, Dimitrios Gianninas <[EMAIL PROTECTED]>
wrote:


  First make sure u have build simple Flex apps and understand the little
things about Flex.

Secondly, read the 6 page article by Stephen to understand what Cairngorm
is and how it works. Dont worry about version numbers, v0.99 and v2.1 and
almost identical. It is a micro-architecture, it is so small and simple.
Then start a small Flex app that will use Cairngorm, create a View, a Model,
a Command, a Delegate put it all together, run it and then watch it all
work. If you keep it simple you should get the hang of it pretty fast.

Enjoy!

Dimitrios Gianninas
Optimal Payments Inc.

-Original Message-
From: flexcoders@yahoogroups.com  on behalf
of Nate Pearson
Sent: Wed 5/9/2007 2:28 PM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] How to learn Caringorm

IN SHORT:
What is the best way to learn Caringorm?

IN LONG:
I want to learn Caringorm. I only make flex apps internally for my
company. My "problem" is that everyone loves flex; I would call it
scope creep but it's more like scope run. The bigger the apps get,
the more visible they are and the more people want them.

I am sold on the Caringorm method of separating things out and making
it very modular. I am excited about learning it and I think it will
make my more productive.

Now my problem is the learning curve. I have visited
caringormdocs.org. The first thing on the list is the six-part
article from adobe consulting. I've read the first part and it raises
my concerns when it talks about the upcoming release of flex 2 and it
references Caringorm .99 (it's on 2.1 now!). I have 0 experience with
Flex before version 2 and I'm afraid that learning an older version of
the framework might hinder my development.

The other two learning tools that they list are the Caringorm Diagram
and the Caringorm Diagram Explorer. Now in theory I understand what
is going on. In practice these diagrams don't help me implement the
Caringorm framework. I feel they are geared more towards people who
already have a good foundation.

My third option is the examples. This is my next plan of attack, I'm
going to go after the basic example and try to duplicate it in a
project that I'm working on.

So community; what do you guys think is the best way to learn Caringorm?

--
WARNING
---
This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use
of the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If
you are not the intended recipient of this message, or if you have received
it in error, you should immediately stop reading this message and delete it
and all attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients is
unauthorized and may be unlawful. If you have received this e-mail in error,
please notify the sender.

AVIS IMPORTANT
--
Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés
au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous
n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
que toutes ses pièces jointes, de votre système. La lecture, la
distribution, la copie ou tout autre usage du présent message ou de ses
pièces jointes par des personnes autres que le destinataire visé ne sont pas
autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
électronique par erreur, veuillez en aviser l'expéditeur.

 






--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] What happened to amfphp.org?

2007-05-09 Thread André Rodrigues Pena

I asked the same question

On 5/9/07, Stefan Schmalhaus <[EMAIL PROTECTED]> wrote:


  I know that Patrick is about to retire from the AMFPHP project. But
I'm a little worried now that the domain and the website amfphp.org
are no longer active. Does anybody know what's going on?

Stefan

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] what's going on with AMFPHP home?

2007-05-09 Thread André Rodrigues Pena
what's happening? www.amfphp.org

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] creating components

2007-05-09 Thread André Rodrigues Pena

hum thanks.. I didnt know the source was available :)


On 5/9/07, Manish Jethani <[EMAIL PROTECTED] > wrote:


  On 5/9/07, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:

> I'd like to know WHERE I can find information about details of the
> composition of a flex component. I mean, what components form a
> DataGrid for instance?

I always look at the source. The framework source is in
${FLEX_SDK}/framework/source
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] creating components

2007-05-08 Thread André Rodrigues Pena
Hey all,
this is a little off-topic because I know that there's a
flex-components list. But as I'm just starting, I think you can help
me.

I'm having my first experiences in creating extended flex components
and I realized that a complex component (like a TitleWindow) is
composed of internal simple components (taking the TitleWindow
example, we have a titlebar)

I'd like to know WHERE I can find information about details of the
composition of a flex component. I mean, what components form a
DataGrid for instance?

With the examples I menaged to get, I already know how to manipulate
internal components to generate an extended one.

Thanks in advance

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Alpha not fading lable.

2007-05-08 Thread André Rodrigues Pena

can you give me an example of how to embed a font?


On 5/8/07, Michael Schmalle <[EMAIL PROTECTED]> wrote:


  Did you embed the font?

Non embedded fonts will not respond to alphas.

The only work around is using a dissolve with the parents background
color.

Peace, Mike

On 5/8/07, Ian Skinner <[EMAIL PROTECTED]> wrote:
>
>   Am I attempting to use the alpha property incorrectly?
>
>  text="{draws.currentItem.R_MOB_MNAME}"
>
> toolTip="{draws.currentItem.R_MDL_MOBLID}
{
> draws.currentItem.R_MOB_MNAME}
AM:
> {draws.currentItem.R_RCT_NAME}"
> width="100%" minWidth="0"
> truncateToFit="true"/>
>
> I expected this to produce an almost invisible text. Nothing changed.
>
>


--
Teoti Graphix
http://www.teotigraphix.com

Blog - Flex2Components
http://www.flex2components.com

You can find more by solving the problem then by 'asking the question'.
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] youtube

2007-05-04 Thread André Rodrigues Pena

loading an external FLV wont be prevented by sandbox?

On 5/4/07, Mark Kornfilt <[EMAIL PROTECTED]> wrote:


  I don't think you can embed the Youtube player itself (SWF) directly
because of security crossdomain issues, and because there is no way to
control the behavior of the player, i.e stopping and closing the stream
when you are done with it.

Mark

On 5/4/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:
>
>   but loading from youtube server?
>
> On 5/4/07, Manish Jethani < [EMAIL PROTECTED]> wrote:
> >
> >   On 5/5/07, André Rodrigues Pena <[EMAIL 
PROTECTED]>
> > wrote:
> > > is there a way to embed a youtube video inside a flex 2 application?
> >
> > You could either embed the YouTube video player itself (SWF) using
> > SWFLoader, or you could play the FLV directly using VideoDisplay.
> >
>
>
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Application close event

2007-05-04 Thread André Rodrigues Pena

ok Manish! thanks for your tips! :)

On 5/4/07, Manish Jethani <[EMAIL PROTECTED]> wrote:


  On 5/4/07, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:

> Is it possible to make a flex application to throw a HTTPService at
> close event?. I mean, when the user closes de browser?

As far as I know, when the user closes the browser, the Flash Player
instance is dead, so is the Flex app -- can't do anything here. What
you could do maybe is ping the server from your app at a regular
interval (say 30 secs.); if there's no ping from the app for more than
30 seconds (add some grace period), it means the app has been closed.

Or you could just maintain a TCP socket connection and the server will
know as soon as it's disconnected.
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] youtube

2007-05-04 Thread André Rodrigues Pena

but loading from youtube server?

On 5/4/07, Manish Jethani <[EMAIL PROTECTED]> wrote:


  On 5/5/07, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:
> is there a way to embed a youtube video inside a flex 2 application?

You could either embed the YouTube video player itself (SWF) using
SWFLoader, or you could play the FLV directly using VideoDisplay.
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] youtube

2007-05-04 Thread André Rodrigues Pena
is there a way to embed a youtube video inside a flex 2 application?

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] Application close event

2007-05-04 Thread André Rodrigues Pena
Hi all,
Is it possible to make a flex application to throw a HTTPService at
close event?. I mean, when the user closes de browser?

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


Re: [flexcoders] Re: Multiuser Applications (Games)

2007-04-28 Thread André Rodrigues Pena

Yes it's the best :)

On 4/28/07, lowdown976 <[EMAIL PROTECTED]> wrote:


  --- In flexcoders@yahoogroups.com , "Andr�
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Joel, I don't think AMFPHP would fit for this purpose. You'd better
use a
> Java server with Smartfox for instance. You would than connect to it
through

Smartfox is awesome. Thanks for the heads up.







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Mapping SOAP response onto a DataGrid

2007-04-28 Thread André Rodrigues Pena

Man I had a bad time time trying to fit the SOAP response of a SQL
SERVER 2005 WEBMETHOD in a DataGrid. I gave up!

On 4/28/07, Mickael RUELLAN <[EMAIL PROTECTED]> wrote:


  What's going on if you replace your dataProvider by :

dataProvider="{
basementIssues.getAllIssues.lastResult.getAllIssuesReturn.issueListItem}

Mika

sebastien_arbogast a écrit :
>
> After reading the "Use Webservices" lesson, I tried to prototype an
> application with a DataGrid to display items retrieved from a
> webservice of my own.
> Here is my Flex application:
>
> 
> http://www.adobe.com/2006/mxml";
> layout="absolute" creationComplete="basementIssues.getAllIssues.send()">
> 
> wsdl="http://localhost:8080/basement-ws/services/IssuesService?wsdl";
> useProxy="false">
> 
> 
> 
> 
> 
> 
> {issueDescription.text}
> {issueTitle.text}
> 
> 
> 
>  bottom="10" title="Basement Issues">
>  dataProvider="{basementIssues.getAllIssues.lastResult.issueListItem}">
> 
> 
>  dataField="creationDate"/>
>  dataField="status"/>
> 
> 
>  click="basementIssues.createIssue.send();
> basementIssues.getAllIssues.send();" bottom="10" right="10"/>
>  bottom="40" top="303" left="91">
> 
> 
> 
> 
> 
> 
>
> The creation works great (which I can see in my server log), meaning
> that the service is correctly accessible, with a crossdomain.xml set
> up and everything.
> And it seems I have a problem mapping the results of getAllIssues
> call. Here is the SOAP response I typically get from the webservice.
>
>  xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";
> xmlns:xsd="http://www.w3.org/2001/XMLSchema";
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
> 
>  xmlns="http://org.epseelon.basement.issues.business";>
> 
> 
> vendredi 27 avril 2007 18 h 46
> CEST
> 1
> Nouvelle
> Issue 1
> 
> 
> 
> 
> 
>
> There must be something wrong in my dataProvider because nothing is
> displayed.
>
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Multiuser Applications (Games)

2007-04-27 Thread André Rodrigues Pena

Joel, I don't think AMFPHP would fit for this purpose. You'd better use a
Java server with Smartfox for instance. You would than connect to it through
socket. I have already acomplished that using my home-made Java server for
games. :)



On 4/27/07, lowdown976 <[EMAIL PROTECTED]> wrote:


  I am working on a little No Limit Hold 'em game in Flex. I am going to
use Cairngorm, because I love the basic structure, and I would like to
use PHP with AMFPHP 1.9 to handle my services. Both are more familiar
to me thatn anything else, but I love to learn new things so I am open
to suggestion.

Now here is where the tricky bit comes in. I can't for the life of me
find a method for allowing real-time multiplayer capabilities. Will I
need to use the LDS? Coldfusion?

I just need some direction. I've searched in vane. Once I have a
general area to focus my learning energies, I think I can get this
thing finished.

Cheers,

Joel







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Games in Flex / Apollo?

2007-04-27 Thread André Rodrigues Pena

I have developed a Java Game Server and was thinking of creating an AS3
client side framework to work on it

On 4/27/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:


I already blogged your idea Troy!
Just kidding..
I also have interesting on it.. it would be great


 On 4/27/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:

>Huh... well, I thought I was replying to Andrew off-list... so,
> everyone be very quiet... don't tell anyone!
>
> Troy.
>
>
>
>  On 4/27/07, Troy Gilbert <[EMAIL PROTECTED] > wrote:
>
> > Well, more like this:
> >
> > 
> >> tickRate="30">
> > 
> > 
> >   
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> >   
> > 
> >   
> > 
> > 
> >   
> > 
> >   
> >> frameWidth="32" frameHeight="32" />
> > 
> >
> > A quick toy example, but that's the basic look-n-feel of the XML right
> > now. We're also developing an equivalent to the Flex Form Designer geared
> > specifically toward "level editing" for lack of a better word.
> >
> > Oh, and while it's all built on Flex/Flash, it's not dependent on them
> > (it's not literally MXML)... its a generic "HTML" for 2D games that can be
> > served to any game "browser".
> >
> > Just think of the mash-ups! ;-)
> >
> > Troy.
> >
> >
> >  On 4/27/07, Andrew < [EMAIL PROTECTED] > wrote:
> >
> > >Yeah any examples, links or other descriptions would be great.
> > > Can't
> > > wait to see what you are working on.
> > >
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> > > :)
> > >
> > > -Andrew
> > >
> > > --- In flexcoders@yahoogroups.com ,
> > > "Troy Gilbert" <[EMAIL PROTECTED]>
> > > wrote:
> > > >
> > > > (There is a nice little categories thing on the side that lists
> > > "Flash", but
> > > > what the heck, I'm feeling generous... ;-)):
> > > >
> > > > General commentary on the wonders of Flex:
> > > > http://troygilbert.com/2007/01/18/flex-rhymes-with/
> > > >
> > > > Creating a better game development framework (or what games can
> > > learn from
> > > > web 2.0):
> > > > http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/
> > >
> > > >
> > > > Okay, so not that much Flex-specific stuff... most of my work was
> > > originally
> > > > in Flash, but have since moved it to Flex after drinking the
> > > kool-aid. But
> > > > the conceptual stuff about GameDev 2.0, while not saying it
> > > directly, is all
> > > > in Flex.
> > > >
> > > > So, I guess I should probably start posting some more, huh? But to
> > > whet your
> > > > appetite, just think how easy it is to make RIA's with MXML,
> > > wouldn't it be
> > > > nice if there was a whole set of MXML tags dedicated to games? (Or
> > > before I
> > > > knew about MXML, what I referred to as using XAML for games.)
> > > >
> > > > Troy.
> > > >
> > > >
> > > >
> > > > On 4/27/07, Scott Hoff <[EMAIL PROTECTED]> wrote:
> > > > >
> > > > > How about a direct link to something for those of us who are too
> > > > > lazy to search through your blog?
> > > > >
> > > > > --- In flexcoders@yahoogroups.com 
,
> > >
> > > "Troy
> > > > > Gilbert" 
> > > > > wrote:
> > > > > >
> > > > > > Check out my blog, http://troygilbert.com/. I'm doing some
> > > *big*
> > > > > stuff with
> > > > > > games and Flex.
> > > > > >
> > > > > > Troy.
> > > > > >
> > > > > >
> > > > > > On 4/27/07, Erik Price  wrote:
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > On 4/27/07, André Rodrigues Pena  wrote:
> > > > > > > >
> > > > > > > > I was also considering to develop something for flex-based
> > >
> > > > > games. But I
> > > > > > > > think that, the only reason that could lead someone to do
> > > this
> > > > > would be the
> > > > > > > > AS3 capabilities but now Flash CS3 has come up with this
> > > > > technology, and it
> > > > > > > > has a bunch of other functionalities to help with gaming.
> > > > > > > >
> > > > > > >
> > > > > > >
> > > > > > > (True, but Flash CS3 is $699 more than the cost of the Flex
> > > SDK.)
> > > > > > >
> > > > > > > e
> > > > > > >
> > > > > > >
> > > > > > >
> > > > > >
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > >
> >
>   
>




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Games in Flex / Apollo?

2007-04-27 Thread André Rodrigues Pena

I already blogged your idea Troy!
Just kidding..
I also have interesting on it.. it would be great


On 4/27/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:


  Huh... well, I thought I was replying to Andrew off-list... so, everyone
be very quiet... don't tell anyone!

Troy.


On 4/27/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
>
> Well, more like this:
>
> 
>tickRate="30">
> 
> 
>   
>   
>   
> 
>   
>   
> 
>   
>   
> 
>   
> 
> 
>   
> 
>   
>frameWidth="32" frameHeight="32" />
> 
>
> A quick toy example, but that's the basic look-n-feel of the XML right
> now. We're also developing an equivalent to the Flex Form Designer geared
> specifically toward "level editing" for lack of a better word.
>
> Oh, and while it's all built on Flex/Flash, it's not dependent on them
> (it's not literally MXML)... its a generic "HTML" for 2D games that can be
> served to any game "browser".
>
> Just think of the mash-ups! ;-)
>
> Troy.
>
>
> On 4/27/07, Andrew < [EMAIL PROTECTED]> wrote:
> >
> >   Yeah any examples, links or other descriptions would be great. Can't
> > wait to see what you are working on.
> >
> > 
> > 
> > 
> > 
> > 
> > 
> >
> > :)
> >
> > -Andrew
> >
> > --- In flexcoders@yahoogroups.com ,
> > "Troy Gilbert" <[EMAIL PROTECTED]>
> > wrote:
> > >
> > > (There is a nice little categories thing on the side that lists
> > "Flash", but
> > > what the heck, I'm feeling generous... ;-)):
> > >
> > > General commentary on the wonders of Flex:
> > > http://troygilbert.com/2007/01/18/flex-rhymes-with/
> > >
> > > Creating a better game development framework (or what games can
> > learn from
> > > web 2.0):
> > > http://troygilbert.com/2006/03/01/what-games-can-learn-from-web-20/
> > >
> > > Okay, so not that much Flex-specific stuff... most of my work was
> > originally
> > > in Flash, but have since moved it to Flex after drinking the
> > kool-aid. But
> > > the conceptual stuff about GameDev 2.0, while not saying it
> > directly, is all
> > > in Flex.
> > >
> > > So, I guess I should probably start posting some more, huh? But to
> > whet your
> > > appetite, just think how easy it is to make RIA's with MXML,
> > wouldn't it be
> > > nice if there was a whole set of MXML tags dedicated to games? (Or
> > before I
> > > knew about MXML, what I referred to as using XAML for games.)
> > >
> > > Troy.
> > >
> > >
> > >
> > > On 4/27/07, Scott Hoff <[EMAIL PROTECTED]> wrote:
> > > >
> > > > How about a direct link to something for those of us who are too
> > > > lazy to search through your blog?
> > > >
> > > > --- In flexcoders@yahoogroups.com 
 > roups.com>,
> > "Troy
> > > > Gilbert" 
> > > > wrote:
> > > > >
> > > > > Check out my blog, http://troygilbert.com/. I'm doing some *big*
> > > > stuff with
> > > > > games and Flex.
> > > > >
> > > > > Troy.
> > > > >
> > > > >
> > > > > On 4/27/07, Erik Price  wrote:
> > > > > >
> > > > > >
> > > > > >
> > > > > > On 4/27/07, André Rodrigues Pena  wrote:
> > > > > > >
> > > > > > > I was also considering to develop something for flex-based
> > > > games. But I
> > > > > > > think that, the only reason that could lead someone to do
> > this
> > > > would be the
> > > > > > > AS3 capabilities but now Flash CS3 has come up with this
> > > > technology, and it
> > > > > > > has a bunch of other functionalities to help with gaming.
> > > > > > >
> > > > > >
> > > > > >
> > > > > > (True, but Flash CS3 is $699 more than the cost of the Flex
> > SDK.)
> > > > > >
> > > > > > e
> > > > > >
> > > > > >
> > > > > >
> > > > >
> > > >
> > > >
> > > >
> > >
> >
> >
>
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Error -1

2007-04-27 Thread André Rodrigues Pena

Michael.. you were right. That was an encoding problem. I was using Primal
Script 4 to edit the files.

Thaaanks!


On 4/25/07, Michael Wills <[EMAIL PROTECTED]> wrote:


  I haven't found out just yet but in the process I did find these lists:

http://editthis.info/flexerrorcodes/Main_Page

André Rodrigues Pena wrote:

 this error occur at compile time.. I dont actually come to validate
anything. Do you know what does mean the -1 error?

On 4/25/07, Michael Wills < [EMAIL PROTECTED]> wrote:
>
>   I popped into FlexBuilder briefly and didn't have any trouble with it
> compiling. I instantiated it but I didn't use it to actually validate a
> number. Is the MXML file you are using UTF-8 encoded? I don't know what
> mxmlc would do with the accented text if it is not, unless there are some
> compiler commands to help it handle those correctly. That is just a wild
> guess though...
>
> Michael
>
> André Rodrigues Pena wrote:
>
>  Hi all, I extended a mx:NumberValidator this way
>
> FILE ExtNumberValidator.mxml
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> allowNegative="false"
> decimalPointCountError="Só pode haver um separador decimal"
> decimalSeparator="."
> domain="real"
> exceedsMaxError="O número é muito grande"
> integerError="O número tem que ser inteiro"
> invalidCharError="O campo possúi caracteres inválidos"
> invalidFormatCharsError="Um dos parâmetros de formatação é inválido"
> lowerThanMinError="O número é muito pequeno"
> maxValue="NaN"
> minValue="NaN"
> negativeError="O número não pode ser negativo"
> precision="-1"
> precisionError="O número tem muitos dígitos além do separador decimal"
> separationError="O separador do milhar (,) precisa ser seguido por
> três dígitos"
> thousandsSeparator=","
> />
>
> So I use this extended component inside the application. When I try to
> compile in mxmlc. It only shows the filename above and says Error -1.
> Any idea?
>
> --
> André Rodrigues Pena
>
>


--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Games in Flex / Apollo?

2007-04-27 Thread André Rodrigues Pena

I was also considering to develop something for flex-based games. But I
think that, the only reason that could lead someone to do this would be the
AS3 capabilities but now Flash CS3 has come up with this technology, and it
has a bunch of other functionalities to help with gaming.

On 4/27/07, Andrew <[EMAIL PROTECTED]> wrote:


  I'm working on a new blog that will center around game creation using
Flex and Apollo. So far it seems that everyone has focused on
"traditional" applications using Flex. I'm hoping to shake that up a
bit with not only blogging about Flex-based games but helping to
create some game libraries for Flex.

I was wondering if anyone here is contemplating doing any game
building using Flex/Apollo.

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Error -1

2007-04-25 Thread André Rodrigues Pena

this error occur at compile time.. I dont actually come to validate
anything. Do you know what does mean the -1 error?

On 4/25/07, Michael Wills <[EMAIL PROTECTED]> wrote:


   I popped into FlexBuilder briefly and didn't have any trouble with it
compiling. I instantiated it but I didn't use it to actually validate a
number. Is the MXML file you are using UTF-8 encoded? I don't know what
mxmlc would do with the accented text if it is not, unless there are some
compiler commands to help it handle those correctly. That is just a wild
guess though...

Michael

André Rodrigues Pena wrote:

 Hi all, I extended a mx:NumberValidator this way

FILE ExtNumberValidator.mxml


http://www.adobe.com/2006/mxml";
allowNegative="false"
decimalPointCountError="Só pode haver um separador decimal"
decimalSeparator="."
domain="real"
exceedsMaxError="O número é muito grande"
integerError="O número tem que ser inteiro"
invalidCharError="O campo possúi caracteres inválidos"
invalidFormatCharsError="Um dos parâmetros de formatação é inválido"
lowerThanMinError="O número é muito pequeno"
maxValue="NaN"
minValue="NaN"
negativeError="O número não pode ser negativo"
precision="-1"
precisionError="O número tem muitos dígitos além do separador decimal"
separationError="O separador do milhar (,) precisa ser seguido por
três dígitos"
thousandsSeparator=","
/>

So I use this extended component inside the application. When I try to
compile in mxmlc. It only shows the filename above and says Error -1.
Any idea?

--
André Rodrigues Pena

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Error -1

2007-04-25 Thread André Rodrigues Pena
Hi all, I extended a mx:NumberValidator this way

FILE ExtNumberValidator.mxml


http://www.adobe.com/2006/mxml";
allowNegative="false"
decimalPointCountError="Só pode haver um separador decimal"
decimalSeparator="."
domain="real"
exceedsMaxError="O número é muito grande"
integerError="O número tem que ser inteiro"
invalidCharError="O campo possúi caracteres inválidos"
invalidFormatCharsError="Um dos parâmetros de formatação é inválido"
lowerThanMinError="O número é muito pequeno"
maxValue="NaN"
minValue="NaN"
negativeError="O número não pode ser negativo"
precision="-1"
precisionError="O número tem muitos dígitos além do separador decimal"
separationError="O separador do milhar (,) precisa ser seguido por
três dígitos"
thousandsSeparator=","
/>

So I use this extended component inside the application. When I try to
compile in mxmlc. It only shows the filename above and says Error -1.
Any idea?

-- 
André Rodrigues Pena


Re: [flexcoders] Preventing IE to cache Flex

2007-04-25 Thread André Rodrigues Pena

Thanks matt.. Are you sure that there's not a solution a little bit more...
clean? lol thanks again

On 4/25/07, Matt Wicks <[EMAIL PROTECTED]> wrote:


  add a random number to the end of the url

http://blah,cm/flexhtml?id=89


??
 On 25 Apr 2007, at 19:19, André Rodrigues Pena wrote:

  Hi all,

My customers browsers are caching flex and preventing them to see my
last updated applications. The HTML they are accessing is the one
generated by default by Flex Builder.

Can you give me some glance on it?

--
André Rodrigues Pena









--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Preventing IE to cache Flex

2007-04-25 Thread André Rodrigues Pena
Hi all,

My customers browsers are caching flex and preventing them to see my
last updated applications. The HTML they are accessing is the one
generated by default by Flex Builder.

Can you give me some glance on it?

-- 
André Rodrigues Pena


Re: [flexcoders] Re: Extending a component

2007-04-25 Thread André Rodrigues Pena

yes! exaclty! thank you Doug

On 4/25/07, Doug Lowder <[EMAIL PROTECTED]> wrote:


  All you need to do is have your MXML component reference the class
you want to extend and set the XML namespace to the extended class's
location. For example, if your resizable title window class
is ./mycomponents/ResizableTitleWindow.as, you could have:


...


OR:




If ResizableTitleWindow.as is in the same directory as your
application, then the namespace location to use is simply "*".

BTW, this is the same thing that happens when you declare something
like . TitleWindow.as is an AS3 file in the mx
namespace that extends Panel (defined in Panel.as <http://panel.as/>).
Also, I don't
think it matters if the class you are extending is defined in AS or
MXML; either should be fine.

HTH,
Doug

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> My problem is:
>
> I have a MXML component (already implemented) that extendeds
TitleWindow
>
> its code was something like
>
> ListOperations.mxml
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical"
> width="700"
> height="400"
> title="List Operations"
> showCloseButton="true"
> initialize="init()"
> >
> MY CODE HERE
> 
>
> OK, but I needed a resizable TitleWindow, so I took a look in google
> and I found an actionscript implementation of TitleWindow that
allows
> resizing, so I made some modifications and finally I got exactly
what
> I was looking for.
>
> Although I still have a problem. I have my own TitleWindow
> implementation but now I need my MXML component above to extend MY
> TITLEWINDOW, which is in AS3 shape, not the standard TitleWindow.
>
> Is there a way to do this? Or will I be forced to re-implement my
> component extending my own TitleWindow?
>
> Thanksss
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Extending a component

2007-04-25 Thread André Rodrigues Pena

Thanks for your reply Manish.. but how would it look like? Can you give me
an example?

On 4/25/07, Manish Jethani <[EMAIL PROTECTED]> wrote:


  The root tag of your MXML component should be referring to your AS3
class. There are examples in the docs/samples.

On 4/25/07, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:
> Hi all,
>
> My problem is:
>
> I have a MXML component (already implemented) that extendeds TitleWindow
>
> its code was something like
>
> ListOperations.mxml
>
> 
>  xmlns:mx="http://www.adobe.com/2006/mxml";
> layout="vertical"
> width="700"
> height="400"
> title="List Operations"
> showCloseButton="true"
> initialize="init()"
> >
> MY CODE HERE
> 
>
> OK, but I needed a resizable TitleWindow, so I took a look in google
> and I found an actionscript implementation of TitleWindow that allows
> resizing, so I made some modifications and finally I got exactly what
> I was looking for.
>
> Although I still have a problem. I have my own TitleWindow
> implementation but now I need my MXML component above to extend MY
> TITLEWINDOW, which is in AS3 shape, not the standard TitleWindow.
>
> Is there a way to do this? Or will I be forced to re-implement my
> component extending my own TitleWindow?
>
> Thanksss
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Extending a component

2007-04-25 Thread André Rodrigues Pena
Hi all,

My problem is:

I have a MXML component (already implemented) that extendeds TitleWindow

its code was something like

ListOperations.mxml


http://www.adobe.com/2006/mxml";
layout="vertical"
width="700"
height="400"
title="List Operations"
showCloseButton="true"
initialize="init()"
>
MY CODE HERE


OK, but I needed a resizable TitleWindow, so I took a look in google
and I found an actionscript implementation of TitleWindow that allows
resizing, so I made some modifications and finally I got exactly what
I was looking for.

Although I still have a problem. I have my own TitleWindow
implementation but now I need my MXML component above to extend MY
TITLEWINDOW, which is in AS3 shape, not the standard TitleWindow.

Is there a way to do this? Or will I be forced to re-implement my
component extending my own TitleWindow?

Thanksss

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] AS3 encryption

2007-04-07 Thread André Rodrigues Pena
Hi all,

I'm looking for someway to encrypt the information I'm sending through
HTTPService via POST.

I need this information to be decrypted inside a JSP script at the
back-end. So I need a encryption method that has a corresponding
decryption method at server-side (Java)

I'm not experienced with cryptography. If you already solved some
problem like that. Please help.

-- 
André Rodrigues Pena


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Thanks again for your help Ray and Peter..

I am actually a little lost. All I want is to guarantee that the user name
and password that will go from Flex HTTPService to my JSP web-service will
not be intercepted. And I'm also lost about how will I maintain the session
with the HTTPService. Cookies dont seem to be possible, URL rewriting is
possible mas I'll have to see how will I do that. At the moment of the
login, my service will have to pass me a key or something like that. (as
someone already mentioned) That I will use along with the other services...
I'm lost. lol




On 05 Apr 2007 14:23:58 -0700, Peter Farland <[EMAIL PROTECTED]> wrote:



HTTPService has a url property so if you start your URL with https:// then
that tells the Flash Player that you want to use SSL to communicate with the
web server. Note that to make an HTTPS connection you must load your SWF via
a secure URL too.

If you're even asking the question "what are the chances of my data being
intercepted" then I think you've just made the decision to use SSL. If
you're building a commercial application that has personalized data then you
will want to use a secure protocol like HTTPS.

For a quick and simple explanation of how SSL works see Richard E. Smith's
book "Authentication - From Passwords to Public Keys" - Chapter 13.6.




From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On Behalf Of
André Rodrigues Pena
Sent: Thursday, April 05, 2007 4:55 PM
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Re: User authentication

Guys.. I appreciate all your help. I could realize how many possibilities
there are regarding authentication.
My question now is:
How can I secure my HTTPService? Is there some HTTPSService? What do I do
to work with SSL?
Or even.. if I send user name and password through an unprotected
HTTPService. What are the chances of my data to be intercepted?






--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Guys.. I appreciate all your help. I could realize how many possibilities
there are regarding authentication.
My question now is:
How can I secure my HTTPService? Is there some HTTPSService? What do I do to
work with SSL?
Or even.. if I send user name and password through an unprotected
HTTPService. What are the chances of my data to be intercepted?


On 05 Apr 2007 13:10:28 -0700, Ray Horn <[EMAIL PROTECTED]> wrote:


   Yes, but there is an advantage to working with HTTPService destinations
that are Session-Less as well as Connection-less.

Reliance upon a server-side Session only works to weaken the usefulness of
web based service providers.


- Original Message 
From: Samuel R. Neff <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Thursday, April 5, 2007 12:20:37 PM
Subject: RE: [flexcoders] Re: User authentication

 You don't need to bother with HTTPS or encryption if you use a
challenge-response methodology. For that simple Hashing will do (AS3
corelib has a SHA256 implementation among others). Servers sends random
text challenge to client. Client responds back with hashed combo of random
text and the password, along with username. Server confirms both know the
same thing by comparing hashes without ever sending the password over the
wire. Pretty simple to implement.

Also depending on the application server you may not need to bother with
generating a session token and storing/passing it. For example with
ASP.NET <http://asp.net/>
all HTTPService and RemoteObject calls are within the context of a user
session so on the server side we can use the built-in Session support with
no custom coding.

Sam

 - - - 
We're Hiring! Seeking a passionate developer to join our team building
Flex
based products. Position is in the Washington D.C. metro area. If
interested
contact [EMAIL PROTECTED] l.com 











--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Thanks Josh.. I knew about couldfusion and AMF I just didn't mentioned it :)
In my case I have to use HTTP based XML-RPC using JSP/Tomcat back-end. HTTP
is slow in fact, but is a standard.




On 05 Apr 2007 09:28:55 -0700, gotjosh819i <[EMAIL PROTECTED]>
wrote:


  Pretty sure you dont need to use FDS to use AMF (Remoting).

This would of course be cake if you were using Coldfusion :)

No idea how to do it though for JSPs, maybe someone can shed some
light on that for us. HTTP is so slow and well slow. :)

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Stembert, thanks for your reply. But I'm not using FDS and there
will not be
> a destination. My services are JSP based triggered by HTTPService
>
> On 05 Apr 2007 06:50:08 -0700, Stembert Olivier (BIL) <
> [EMAIL PROTECTED]> wrote:
> >
> > You can secure your destination and send the credentials to
your remote
> > objects (j2ee security model).
> >
> > --
> > *From:* flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com ] *On
> > Behalf Of *André Rodrigues Pena
> > *Sent:* Thursday, April 05, 2007 3:14 PM
> > *To:* flexcoders@yahoogroups.com 
> > *Subject:* [flexcoders] User authentication
> >
> >
> >
> > Hi all,
> >
> > I'd like to know whats the pattern regarding user authentication
in
> > Flex application.
> > In my case. I need my HTTPService to send login information (user
name
> > and password). How can I encrypt it? How is the process?
> >
> > --
> > André Rodrigues Pena
> >
> > LOCUS
> > www.locus.com.br
> >
> > Blog
> > www.techbreak.org
> >
> > -
> >
> > An electronic message is not binding on its sender.
> >
> > Any message referring to a binding engagement must be confirmed
in writing
> > and duly signed.
> >
> > -----
> >
> >
> >
> > -
> >
> > An electronic message is not binding on its sender.
> >
> > Any message referring to a binding engagement must be confirmed
in writing
> > and duly signed.
> >
> > -
> >
> >
> >
> >
> >
>
>
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Paul, thanks for you reply

I didn't quite understand what you mean by embeding authentication wihin the
Flex program. There's no way I can escape from some kind of web-service.
Unless I agree to recompile the application every-time some user information
changes (see that this topic is all about how to allow the user to get
authenticated inside the application using a HTTPService). Am I right?

About Acegi, I was looking for some kind of standard solution. I know that
application servers (Tomcat in my case) have authentication handling by
default. I'm just not used to it yet

On 05 Apr 2007 07:40:28 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Authentication is a very tricky topic in my mind. I have found that
it's better to put you authentication step right in the RIA app itself
and not have it a separate login page.

If you insist that your login page is outside of the app then I would
suggest using a token or perhaps Acegi. The advantage of acegi is
that it handles the authentication to many different sources and has
many checks in place to ensure that the credentials are not misused on
the server side. Acegi can be difficult to set up however. If you
use a token you can have the token associated with a valid credential
and remote ip which will help limit unauthorized access if the token
is compromised.

For our Web Services we actually send login credentials with most
requests. Some of our services use a token approach. IN all cases
use use Acegi for authentication. We use the token in some cases
because of limitations in the framework, or flash player really. File
uploads don't share the session with the rest of the app in all
browsers. So we use a generated token on the uploads. Our tokens
expire after a short period as well.

I think you will find that there is no standard way to do auth in RIA
because there is no standard way to do auth on the WEB, except maybe
BASIC, but that is hardly secure and not available in Flex.

Paul
--- In flexcoders@yahoogroups.com , "Peter
Farland" <[EMAIL PROTECTED]> wrote:
>
>
> 1) Is Base64 secure?
>
> [Pete] No. You need to use HTTPS for the actual transmission in order
> for it to be secure. Base64 is merely a way to obfuscate strings to make
> them not immediately human readable, i.e. in server logs etc.
>
>
> 2) What's the standard model of authentication in RIA? I mean.. I figure
> out that the process works this way: I create a JSP login.jsp file that
> receives username and password (HTTPService) enconded through Base64 and

> decode it. Ok. After that my JSP file put in the session that there's an
> user logged.
>
> [Pete] Close, but not quite. You really should be authenticating into
> the J2EE web application container itself so that you're not responsible

> for managing sessions or authenticating credentials. Just lock down
> resources with a security constraint in /WEB-INF/web.xml with
> auth-method set to "FORM" so that you can POST the username and password

> on login via HTTPService.
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Pete, thanks for your reply

Good to know about Base64. I'm gonna take a look now at how to lock the
resources configuring the web.xml


On 05 Apr 2007 07:22:51 -0700, Peter Farland <[EMAIL PROTECTED]> wrote:



1) Is Base64 secure?

[Pete] No. You need to use HTTPS for the actual transmission in order
for it to be secure. Base64 is merely a way to obfuscate strings to make
them not immediately human readable, i.e. in server logs etc.

2) What's the standard model of authentication in RIA? I mean.. I figure
out that the process works this way: I create a JSP login.jsp file that
receives username and password (HTTPService) enconded through Base64 and
decode it. Ok. After that my JSP file put in the session that there's an
user logged.

[Pete] Close, but not quite. You really should be authenticating into
the J2EE web application container itself so that you're not responsible
for managing sessions or authenticating credentials. Just lock down
resources with a security constraint in /WEB-INF/web.xml with
auth-method set to "FORM" so that you can POST the username and password
on login via HTTPService.






--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] User authentication

2007-04-05 Thread André Rodrigues Pena

Stembert, thanks for your reply. But I'm not using FDS and there will not be
a destination. My services are JSP based triggered by HTTPService

On 05 Apr 2007 06:50:08 -0700, Stembert Olivier (BIL) <
[EMAIL PROTECTED]> wrote:


   You can secure your destination and send the credentials to your remote
objects (j2ee security model).

 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *André Rodrigues Pena
*Sent:* Thursday, April 05, 2007 3:14 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] User authentication



Hi all,

I'd like to know whats the pattern regarding user authentication in
Flex application.
In my case. I need my HTTPService to send login information (user name
and password). How can I encrypt it? How is the process?

--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org

-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-



-

An electronic message is not binding on its sender.

Any message referring to a binding engagement must be confirmed in writing
and duly signed.

-----









--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: User authentication

2007-04-05 Thread André Rodrigues Pena

Nathan, thanks for the reply

I've found in Google that AS3 is able to encode data through Base64. It's
good because my JSP web-service can easily decode it.
But somethings are still obscure to me.

1) Is Base64 secure?
2) What's the standard model of authentication in RIA? I mean.. I figure out
that the process works this way: I create a JSP login.jsp file that receives
username and password (HTTPService) enconded through Base64 and decode it.
Ok. After that my JSP file put in the session that there's an user logged.
Now I can trigger a variety of web-services and the JSP will ALLOW the
services to run since THERE'S  A USER LOGGED. My question is: Tomcat will be
able to restore a session started by the HTTPService? I mean.. is the some
complication or configuration in this process?


On 05 Apr 2007 06:48:19 -0700, nathanpdaniel <[EMAIL PROTECTED]> wrote:


  You can use the Base64Encoder class to encrypt your passwords within
flex then pass via your HTTPService. If you don't have flex
builder, I can help with the API of that class. Otherwise there's
also the corelib.swc - I don't know where I got it from though,
probably google it to find it... it has a lot more encryption stuff
(MD5 for instance). Hope this helps!

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I'd like to know whats the pattern regarding user authentication in
> Flex application.
> In my case. I need my HTTPService to send login information (user
name
> and password). How can I encrypt it? How is the process?
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Loading animated gifs

2007-04-05 Thread André Rodrigues Pena

Yes.. the Image component does not animate the gif. I'll take a look at this
component so

Thank you guys!


On 02 Apr 2007 07:28:08 -0700, Robert Chyko <[EMAIL PROTECTED]> wrote:


  I don't believe the Image component will actually animate the animated
gif.

The only thing I've seen is a component (not free) written by Doug McCune
- 
http://dougmccune.com/blog/2007/01/17/animatedgifloader/.<http://dougmccune.com/blog/2007/01/17/animatedgifloader/>

-Original Message-
From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On Behalf Of
Tom Chiverton
Sent: Monday, April 02, 2007 7:52 AM
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Loading animated gifs

On Saturday 31 Mar 2007, André Rodrigues Pena wrote:
> How can I load an animated gif within my application? I searched
> google and the reference and didn't find a free solution.

Have you seen the Image component ?

--
Tom Chiverton
Helping to enormously network B2C experiences
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF. A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents. If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

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







--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] User authentication

2007-04-05 Thread André Rodrigues Pena
Hi all,

I'd like to know whats the pattern regarding user authentication in
Flex application.
In my case. I need my HTTPService to send login information (user name
and password). How can I encrypt it? How is the process?

Thanks!
-- 
André Rodrigues Pena


[flexcoders] User authentication

2007-04-05 Thread André Rodrigues Pena
Hi all,

I'd like to know whats the pattern regarding user authentication in
Flex application.
In my case. I need my HTTPService to send login information (user name
and password). How can I encrypt it? How is the process?

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Loading animated gifs

2007-03-31 Thread André Rodrigues Pena
Hey all,

How can I load an animated gif within my application? I searched
google and the reference and didn't find a free solution.

thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Warning/Error Hints

2007-03-31 Thread André Rodrigues Pena

A status bar would be good for me too :)

On 30 Mar 2007 10:40:29 -0700, Tracy Spratt <[EMAIL PROTECTED]> wrote:


  I created a "status bar" for one app.
Tracy

-Original Message-
From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On Behalf Of
Tom Chiverton
Sent: Friday, March 30, 2007 10:08 AM
To: flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Warning/Error Hints

On Friday 30 Mar 2007, André Rodrigues Pena wrote:
> decreases the need of interaction and the use of the boring
> Alert.show() method.
> Thanks! :)

's what we did- started out using Alert's to display form errors, moved to

Validators as we got the hang of it.

--
Tom Chiverton
Helping to interactively participate eye-catching relationships
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England
and Wales under registered number OC307980 whose registered office address
is at St James's Court Brown Street Manchester M2 2JF. A list of members is
available for inspection at the registered office. Any reference to a
partner in relation to Halliwells LLP means a member of Halliwells LLP.
Regulated by the Law Society.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and
may be confidential or legally privileged. If you are not the addressee you
must not read it and must not use any information contained in nor copy it
nor inform any person other than Halliwells LLP or the addressee of its
existence or contents. If you have received this email in error please
delete it and notify Halliwells LLP IT Department on 0870 365 8008.

For more information about Halliwells LLP visit www.halliwells.com.

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

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Warning/Error Hints

2007-03-30 Thread André Rodrigues Pena
I was thinking of something like the "found new hardware" or "low disk
space" balloons of Windows XP. But thinking twice, they are no
necessary. I can use validators (as you said) and disable all
functionalities I don't want users to use in some states.. That
decreases the need of interaction and the use of the boring
Alert.show() method.

Thanks! :)

On 30 Mar 2007 07:29:34 -0700, Tom Chiverton
<[EMAIL PROTECTED]> wrote:
> On Friday 30 Mar 2007, André Rodrigues Pena wrote:
> > something like a balloon to let the user know something in a more
> > slightly way.
>
> Like the Validator one you mean ?
>
> --
> Tom Chiverton
> Helping to paradigmatically transition impactful technologies
> on: http://thefalken.livejournal.com
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Warning/Error Hints

2007-03-30 Thread André Rodrigues Pena
Hi all,
I'm developing an application for 1 month and already get bored with
the Alert.show() dialog box.
I don't think it's ideal to show error and warning messages to the
user when he/she is interacting with a form or a button (I think it's
interesting but not in these situations). I'd like to know if there's
something like a balloon to let the user know something in a more
slightly way.

Any help is appreciated


-- 
André Rodrigues Pena


Re: [flexcoders] Global access in AS3

2007-03-28 Thread André Rodrigues Pena

Shaun, Troy saved me though. I was thinking how could I do that without
private constructors :)

On 3/27/07, shaun etherton <[EMAIL PROTECTED]> wrote:


  Troy Gilbert wrote:

[snip]

> That works for me. There's also a technique where you use an internal
class
> (visible only within the AS source file) as a parameter to the
constructor,
> thus causing the compiler to complain if anyone calls the constructor
from
> outside that source file, but I find that throwing the error is enough.
>

[snip]

Ahhh.. nice one. Its just what I've been looking for (compile time check
to ensure noone is calling the constructor directly) swt!

Thanks for the tip.

regards,
shaun
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Global access in AS3

2007-03-27 Thread André Rodrigues Pena

Troy, thanks for the help. My Singleton works fine now, I'm gonna see how
does Monostate work.

And Petro. I don't see how your sugestion may help me.


On 27 Mar 2007 15:45:50 -0700, Troy Gilbert <[EMAIL PROTECTED]> wrote:


  public class MySingleton
{
private static var _instance:MySingleton;
public static function get instance():MySingleton
{
if (!_instance) _instance = new MySingleton();
return _instance;
}

public function MySingleton()
{
if (_instance) throw new Error("MySingleton is a singleton but has
been constructed twice!");
}
}

That works for me. There's also a technique where you use an internal
class (visible only within the AS source file) as a parameter to the
constructor, thus causing the compiler to complain if anyone calls the
constructor from outside that source file, but I find that throwing the
error is enough.

Another option is to go with a Monostate, which doesn't require any
trickery in ActionScript. In a Monostate, you can create as many instances
of the class as you want but they're all basically just facades onto a
single instance (usually implemented as just having private static members).
In some cases I like the Monostate better because, depending on the
application, its easier to switch to not being an "oop global" if need be.

Troy.




On 3/27/07, Petro Bochan <[EMAIL PROTECTED]> wrote:
>
>Hi,
>
>
>
> As a side note, you might try to place your .AS file in the root
> directory (along with your main .MXML application file) and define all the
> necessary methods there. The methods should be all public though but the
> advantage is that you are not even required to define a package. Methods
> shouldn't be even static.
>
>
>
> Cheers,
>
> Petro
>
>
>   --
>
> *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
> *On Behalf Of *Andre Rodrigues Pena
> *Sent:* Monday, March 26, 2007 11:50 PM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Global access in AS3
>
>
>
> Hi all,
>
> My problem is: I need some data classes to be global so that I can
> access them without to have to establish unnecessary references.
>
> I tried to create a Singleton class the way we're used to do in Java,
> and I got 2 problems:
>
> 1) It's not possible to define a private constructor
> 2) The instance created in the getInstance() method is not keeping the
> data, I don't know why
>
> What do I do to have globally accessible structures in AS3?
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>
>
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Global access in AS3

2007-03-26 Thread André Rodrigues Pena

I appreciate your help Dan. Gotta try again now.. If I don't get it, I'll
let you know.
thanks

On 3/26/07, Daniel Freiman <[EMAIL PROTECTED]> wrote:


  Singleton's should work.  Some of the mx components even use this method
so it has to be possible.  Without looking at your code there's not really a
good way to guess why the values are being reset.

As for the private constructor, most singleton classes that come with docs
simply state not to call the constructor directly and if the programmer does
then he/she is either very smart or very stupid.  I've never tried, but you
could try to hack your way around it by setting a private static variable in
the getInstance() function, having the constructor check that variable,
throwing an error if it's not set, and then setting the variable back at the
end of getInstance().

Bottom line is that I wouldn't give up on the singleton idea.  It's
probably just one of those bugs that hides in plain sight.  Post the code or
take a break and try again later.

- Dan


On 26 Mar 2007 13:49:53 -0700, André Rodrigues Pena <[EMAIL PROTECTED]>
wrote:
>
>   Hi all,
>
> My problem is: I need some data classes to be global so that I can
> access them without to have to establish unnecessary references.
>
> I tried to create a Singleton class the way we're used to do in Java,
> and I got 2 problems:
>
> 1) It's not possible to define a private constructor
> 2) The instance created in the getInstance() method is not keeping the
> data, I don't know why
>
> What do I do to have globally accessible structures in AS3?
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Global access in AS3

2007-03-26 Thread André Rodrigues Pena
Hi all,

My problem is: I need some data classes to be global so that I can
access them without to have to establish unnecessary references.

I tried to create a Singleton class the way we're used to do in Java,
and I got 2 problems:

1) It's not possible to define a private constructor
2) The instance created in the getInstance() method is not keeping the
data, I don't know why

What do I do to have globally accessible structures in AS3?

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Simple design question

2007-03-16 Thread André Rodrigues Pena
Thanks for the answer Spratt

I'd like to create a service layer wrapping more than onde HTTPService
components into a single MXML file.

Can you explain this phrase another way:

"I use an Application tag to implement my functionality, then use that
component as the root tag of the application.  Some folks call this
the "code behind" technique."

I didn't got it

On 3/16/07, Tracy Spratt <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
>
> I wish we had a "faceless" mxml component specifically for this kind of use.
>
>
>
> I use an Application tag to implement my functionality, then use that 
> component as the root tag of the application.  Some folks call this the "code 
> behind" technique.
>
>
>
> You could also use a canvas, which is the lightest container I know, and set 
> height and width to 0 and visibility=false.
>
>
>
> Also, there are a few faceless mxml components.  Would it make sense in your 
> case to extend one of them?
>
>
>
> Tracy
>
>
>
>   

>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of André 
> Rodrigues Pena
>  Sent: Friday, March 16, 2007 1:32 PM
>  To: flexcoders@yahoogroups.com
>  Subject: [flexcoders] Simple design question
>
>
>
>
>
>
>
> Hi all,
>
>  I know how to create visual components as MXML files. My question is,
>  can I create a non-visual component using MXML files? Let's put an
>  example: I want to create a non-visual component to wrap my
>  web-services and handlers. I know I could do it with AS3. But can I do
>  it with MXML?
>
>  thanks
>
>  --
>  André Rodrigues Pena
>
>  LOCUS
>  www.locus.com.br
>
>  Blog
>  www.techbreak.org
>
>
>
>   



-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Simple design question

2007-03-16 Thread André Rodrigues Pena
Hi all,

I know how to create visual components as MXML files. My question is,
can I create a non-visual component using MXML files? Let's put an
example: I want to create a non-visual component to wrap my
web-services and handlers. I know I could do it with AS3. But can I do
it with MXML?

thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Security error accessing url

2007-03-13 Thread André Rodrigues Pena

I understand your point Paul.. it makes sense

On 13 Mar 2007 19:38:40 -0700, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Proxy is your solution. counterfeiting a corssdomain file is
inadvisable difficult and probably impossible to do on a large scale
deployment. The only ways I can think do it would require great effort
and would need other software to be installed on the client machine to
pull it off. Plus that kind of hackery just isn't cool. Also I'm not
sure anyone is really against the proxy solution, it would just be
faster to go direct to the source.

Another idea if you don't want or can't do the proxy server, you could
be bold and do an ajax proxy. I'm not sure how much data can be passed
via the External Interface, but you certainly could pass xml back and
forth that way. Given enough motivation I could come up with a
working example.

p

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"
<[EMAIL PROTECTED]> wrote:
>
> If people are against the proxy application.. what's the better
solution?
> (since I can't see how can I counterfeit a crossdomain file in a
external
> and not-accessible server)
>
> On 3/12/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:
> >
> > Ahh, yes, but if all of your clients go through your proxy
server then
> > on to the eventual non-crossdomain.xml server, then that server
admin sees
> > that there are a huge amount of requests originating from your
proxy server
> > and he can throttle it as appropriate. If the requests come
directly from
> > the clients, then he has potentially thousands of different points
of entry
> > to throttle.
> >
> > But I do agree with your point... in general, I'd like to see
Flash *at a
> > minimum* have all of the read-only access that the web browser has. It
> > infuriating when some AJAX code can access stuff more easily than
Flash...
> > that just *feels* backwards to me, and I think it ultimately hurts
Flash's
> > use for some cases.
> >
> > Troy.
> >
> >
> > On 3/12/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
> > >
> > > --- In flexcoders@yahoogroups.com 
,

> > > "Alex Harui"  wrote:
> > > >
> > > > It doesn't provide any benefit to you, it provides benefit to the
> > > server
> > > > owner. Once all of your clients are hammering your server to
get to
> > > the
> > > > proxy to the remote-server, then you have the first chokepoint for
> > > > traffic instead of the remote-server owner who may or may not have
> > > > intended to allow that much extra traffic.
> > > >
> > >
> > > I understand the thinking, but if I can easily create a proxy around
> > > the crossdomain file then they've lost that avenue. It's easier to
> > > throttle access using firewalls or acls, which they will end up
having
> > > to do anyway.
> > >
> > > >
> > > >
> > > > The security rules are also intended to make sure we don't
become the
> > > > ultimate spyware and virus development platform. If we did,
everyone
> > > > would be afraid to download the player and/or run these
applications.
> > > >
> > > >
> > > >
> > > > If you can find a way to spoof the crossdomain.xml from a remote
> > > server,
> > > > please let us know.
> > > >
> > >
> > > I don't think I'll put any effort to finding out how to do it
since I
> > > don't ever plan on using crossdomain files since I already have a
> > > working proxy solution.
> > >
> > > >
> > > >
> > > > -Alex
> > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Security error accessing url

2007-03-13 Thread André Rodrigues Pena

If people are against the proxy application.. what's the better solution?
(since I can't see how can I counterfeit a crossdomain file in a external
and not-accessible server)

On 3/12/07, Troy Gilbert <[EMAIL PROTECTED]> wrote:


  Ahh, yes, but if all of your clients go through your proxy server then
on to the eventual non-crossdomain.xml server, then that server admin sees
that there are a huge amount of requests originating from your proxy server
and he can throttle it as appropriate. If the requests come directly from
the clients, then he has potentially thousands of different points of entry
to throttle.

But I do agree with your point... in general, I'd like to see Flash *at a
minimum* have all of the read-only access that the web browser has. It
infuriating when some AJAX code can access stuff more easily than Flash...
that just *feels* backwards to me, and I think it ultimately hurts Flash's
use for some cases.

Troy.


On 3/12/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:
>
>   --- In flexcoders@yahoogroups.com ,
> "Alex Harui" <[EMAIL PROTECTED]> wrote:
> >
> > It doesn't provide any benefit to you, it provides benefit to the
> server
> > owner. Once all of your clients are hammering your server to get to
> the
> > proxy to the remote-server, then you have the first chokepoint for
> > traffic instead of the remote-server owner who may or may not have
> > intended to allow that much extra traffic.
> >
>
> I understand the thinking, but if I can easily create a proxy around
> the crossdomain file then they've lost that avenue. It's easier to
> throttle access using firewalls or acls, which they will end up having
> to do anyway.
>
> >
> >
> > The security rules are also intended to make sure we don't become the
> > ultimate spyware and virus development platform. If we did, everyone
> > would be afraid to download the player and/or run these applications.
> >
> >
> >
> > If you can find a way to spoof the crossdomain.xml from a remote
> server,
> > please let us know.
> >
>
> I don't think I'll put any effort to finding out how to do it since I
> don't ever plan on using crossdomain files since I already have a
> working proxy solution.
>
> >
> >
> > -Alex
> >
> >
> >
>
>
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Security error accessing url

2007-03-11 Thread André Rodrigues Pena

Roman,

You will have to write a proxy, this is a PHP example for yahoo services
http://developer.yahoo.com/javascript/samples/proxy/php_proxy_simple.txt


On 3/9/07, Paul DeCoursey <[EMAIL PROTECTED]> wrote:


  Maybe I've been misinformed but doesn't the cross domain file need to
be one the server that serves the swf file?

--- In flexcoders@yahoogroups.com ,
"rzilist" <[EMAIL PROTECTED]> wrote:
>
> How to get around this error? I've written small Flex application to
> retrieve stock info in exchange for company symbol. I've used
> Eclipse with Flex plugin. Inside the app, I'm calling webservice on
> quote.yahoo.com website. I can load the html page which references
> the swf file (by either running it from within Eclipse, or by
> opening it in both IE and Firefox). This works fine, and I get some
> stock data back. However, if I try serving the page from one of my
> local servers, or even copying it (along with other supporting
> files) to other location on my hard drive, loading the same page
> results in an "Security error accessing url" from my Adobe Flash
> Player 9. I've even tried to use a straight HTTP post instead of a
> webservice call, but to no avail.
>
> Now, I know that in order to access the data on the domain other
> than the one my app is running on, Adobe Flash Player requires
> crossdomain.xml file to be on the data server root. Yahoo indeed
> hosts this file at http://quote.yahoo.com/crossdomain.xml, but it
> only has a few entries. I simply want to read company stock info
> from publicly exposed service, but I see no way of adding the domain
> name to their crossdomain file each time someone wants to read a
> stock info.
>
> Any help is appreciated.
>
> Roman
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Right-Click -> View Source

2007-03-05 Thread André Rodrigues Pena

Thanks Jim and Muzak. It works :)

On 3/5/07, Jim Cheng <[EMAIL PROTECTED]> wrote:


  André Rodrigues Pena wrote:

> Allow you to view the source by Right-Click -> View Source. As I saw
> this trick in several applications I guess it is a flex native
> support.. isnt it? How do I do it?

Yup. From Flex Builder 2, select Project...Publish Application Source
from the main menu bar. It outputs the source in HTML format and adds
in the link as an attribute to your main MXML's application element.

Jim Cheng
effectiveUI
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Right-Click -> View Source

2007-03-05 Thread André Rodrigues Pena
Hi all,
Some applications like this:
http://www.brucephillips.name/flex/tilelistuserQty/bin/TileListUserQty.html

Allow you to view the source by Right-Click -> View Source. As I saw
this trick in several applications I guess it is a flex native
support.. isnt it? How do I do it?

Thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Storing / retrieving rich text

2007-02-27 Thread André Rodrigues Pena

I don't know how you are reading and writing data. If it's HTTPService (more
likely) you may need to set the resultFormat to "text".

On 2/27/07, pdflibpilot <[EMAIL PROTECTED]> wrote:


  I am trying to develop a method to allow web administrators to be able
to edit text in their Flex application directly in the UI (without
Flex). This text gets saved to mySQL when they close the rich text
editor.

The data is stored correctly in mySQL however when its retrieved it
gets formated as an XML object when extracted from the event.result.

While this makes it easy to populate the various labels and text
objects with the rich text data. The problem is that the rich text
data gets formatted as XML with new lines and indents. Like in this
dmup





This is 


live content







How can I force it to treat it as raw text just like its stored in
mySQL without the formatting ?

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Creating a Video Player in Flex

2007-02-27 Thread André Rodrigues Pena

I'd like to know how to embed youtube videos to Flex

On 2/26/07, Alan Rother <[EMAIL PROTECTED]> wrote:


  Awesome

Thank you. I had searched the archives but didn't find this one.

=]
--
Alan Rother
Adobe Certified Advanced ColdFusion MX 7 Developer
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Can anyone help on getting data from a grid cell .. I know the row/column index

2007-02-26 Thread André Rodrigues Pena

It's not usual to access data from the grid, you access data from it's
dataprovider that is normally either a ArrayCollection or a XML object.

Imagine your grid has the following data provider:

var xml:XML =



;

So you can access data this way:

[EMAIL PROTECTED] will return Roger.
[EMAIL PROTECTED] will return 0







On 2/26/07, helihobby <[EMAIL PROTECTED]> wrote:


  Is it possible ?

Sean.

--- In flexcoders@yahoogroups.com ,
"helihobby" <[EMAIL PROTECTED]> wrote:
>
>
> Hello,
>
> Can anyone help out ...
> I know the Data Grid Cell's Row and Colum Index.
>
> How can I retrieve the data in that cell if I know these two values ?
>
> Thank you,
>
> Sean.
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] URL Link in Flex Application

2007-02-26 Thread André Rodrigues Pena


   navigateToURL(new URLRequest('
http://techbreak.org'),'_blank');


On 2/24/07, Lisa Lee <[EMAIL PROTECTED]> wrote:


  Can you tell me how to be able to have a user click on a link (button,
whatever) from within a Flex application and have it take the user to a
non-Flex, regular web page within their browser? It's probably a
simple answer but I'm still getting up to speed with Flex. Thanks!

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Re: Using a downloaded theme in an application

2007-02-26 Thread André Rodrigues Pena

Hey Tom and Juan

Your tips worked out, thanks :)

On 2/23/07, potentialunfounded <[EMAIL PROTECTED]> wrote:


  André,

There should be a "style" folder in the downloaded source. Drop that
into the top level of your Flex project. Then, in your Applications
MXML, specify the path to the CSS file as the source in your mx:Style tag.

If you need more in depth details you can email me at juan [at]
scalenine.com.

Sorry about the bad link. I'm creating my own set of instructions.

Juan
scalenine.com

--- In flexcoders@yahoogroups.com , "André
Rodrigues Pena"

<[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> the site http://www.scalenine.com/ has great themes I'd like to use.
> But the "how to install" link doesn't explain how to actually add it
> to your application.
>
> Can anyone explain me or indicate a site that explains?
>
> thanks in advance
>
> --
> André Rodrigues Pena
>
> LOCUS
> www.locus.com.br
>
> Blog
> www.techbreak.org
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] The simplest way to allow Flex to read RSS feeds

2007-02-25 Thread André Rodrigues Pena
Last week I saw a thread here regarding RSS feed access through Flex.
I think this post will help beginners to do that really easily.

http://www.techbreak.org/?p=46

-- 
André Rodrigues Pena


[flexcoders] HTTPService security problem

2007-02-24 Thread André Rodrigues Pena
Hi all,

Some time ago someone complained about a "channel security error"
triggered during the attempt to open a RSS feed at an external domain
using HTTPService.

We all know about the crossdomain file, but actually we do not have
control over the server from where the feeds are being downloaded

Someone in the discussion pointed that you need to add a
-use-network=false in your project preferences. As the discussion
stopped It seems that it solved the problem.

I just tried this solution and didn't work. Actually I don't
understand why would this work since i DO need use network.

My question is. Is it possible to make my SWF file able to make a
request at other domains? Or do I need to use proxy?

Thanks a lot

-- 
André Rodrigues Pena


Re: [flexcoders] Two simple List questions

2007-02-23 Thread André Rodrigues Pena

Karl
using your first tip I got to solve the second now

just added this to the List : click="Alert.show([EMAIL PROTECTED])"

thanks! :)

On 2/23/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:


Thank you Karl,
number 1 worked! thanks! :)

about number 2




considering the code:



   
   
   
   




I want the click event of the "siteList" to show an Alert with the value
of the "url" attribute of the selected "site" item

can you help me?

thanks in advance

On 2/23/07, Karl Johnson <[EMAIL PROTECTED]> wrote:
>
>Hi André,
>
> Change your labelField property to be labelField="@name" Because you are
> pulling the value from an XML attribute you need to designate it as such
> using @ before the property name.
>
> What do you mean you want to return the URL attribute? You want to
> display it? Please be more specific about number 2.
>
> Karl
>
> Cynergy
>
> --
> *From:* flexcoders@yahoogroups.com on behalf of André Rodrigues Pena
> *Sent:* Fri 2/23/2007 10:01 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Two simple List questions
>
>   Hi all,
>
> I got 2 doubts.
>
> 1) I want to populate a List control
>
> so I did
>
> 
> 
> 
> 
> 
> 
>
>  labelField="name"/>
>
> That's what I understood from the documentation. But it doens't work
>
> Can anybody tell me why?
>
> 2) I want to return the "url" attribute from the "site" item. I'm
> trying but I'm not getting to do this
>
> THANKS
>
> --
> André Rodrigues Pena
>
>  
>




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Two simple List questions

2007-02-23 Thread André Rodrigues Pena

Thank you Karl,
number 1 worked! thanks! :)

about number 2

considering the code:


  
  
  
  




I want the click event of the "siteList" to show an Alert with the value of
the "url" attribute of the selected "site" item

can you help me?

thanks in advance

On 2/23/07, Karl Johnson <[EMAIL PROTECTED]> wrote:


   Hi André,

Change your labelField property to be labelField="@name" Because you are
pulling the value from an XML attribute you need to designate it as such
using @ before the property name.

What do you mean you want to return the URL attribute? You want to display
it? Please be more specific about number 2.

Karl

Cynergy

--
*From:* flexcoders@yahoogroups.com on behalf of André Rodrigues Pena
*Sent:* Fri 2/23/2007 10:01 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Two simple List questions

  Hi all,

I got 2 doubts.

1) I want to populate a List control

so I did










That's what I understood from the documentation. But it doens't work

Can anybody tell me why?

2) I want to return the "url" attribute from the "site" item. I'm
trying but I'm not getting to do this

THANKS

--
André Rodrigues Pena

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Two simple List questions

2007-02-23 Thread André Rodrigues Pena
Hi all,

I got 2 doubts.

1) I want to populate a List control

so I did










That's what I understood from the documentation. But it doens't work

Can anybody tell me why?

2) I want to return the "url" attribute from the "site" item. I'm
trying but I'm not getting to do this

THANKS


-- 
André Rodrigues Pena


[flexcoders] Using a downloaded theme in an application

2007-02-22 Thread André Rodrigues Pena
Hi all,

the site http://www.scalenine.com/ has great themes I'd like to use.
But the "how to install" link doesn't explain how to actually add it
to your application.

Can anyone explain me or indicate a site that explains?

thanks in advance

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] An open-source to Flex Data Services

2007-02-15 Thread André Rodrigues Pena

Wow! good.. I just linked to your blog :)

On 2/15/07, Igor Costa <[EMAIL PROTECTED]> wrote:


  Hey guys

Maybe you see this as very instresting tool

http://www.igorcosta.org/?p=22


Regards.

--

Igor Costa
www.igorcosta.org
www.igorcosta.com
skype: igorpcosta
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Text component that allows tabbing

2007-02-13 Thread André Rodrigues Pena

Thank you Freiman.. I'll study about your tips and call you back.

Cheers

On 2/13/07, Daniel Freiman <[EMAIL PROTECTED]> wrote:


  The TextFormat object has a property call tabStops.  Unfortunately I
don't think any component implements them as a property or style so you
might have to override a component and manually set the textformat of the
UITextField inside it.

 - Dan


On 2/13/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:
>
>   Hi all
>
> I need a multi-line text component that keeps the function of TAB
> button, just like windows notepad.
>
> How can I do it?
>
> thanks! :)
>
> --
> André Rodrigues Pena
>

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] duplicate function definition

2007-02-13 Thread André Rodrigues Pena

Hey guys...

In the function mentioned above, the "set" modifier was used but I couldn't
find it's reference at the official Actionscript 3.0 manual
http://livedocs.macromedia.com/specs/actionscript/3/wwhelp/wwhimpl/js/html/wwhelp.htm

I searched google with no return either.

Is it really allowed at Actionscript 3.0? If yes, where can I find it's
reference?

On 2/13/07, learner <[EMAIL PROTECTED]> wrote:


  Thanks I got that :)

On 2/13/07, Stembert Olivier (BIL) <[EMAIL PROTECTED]>
wrote:
>
>Hi Mayur,
>
> When you define a member variable, a setter method is internally
> created.
>
> You have to rename your variable vbox and define it as private.
>
> private var _vbox:VBox;
>
> public function set vbox(val:VBox):void
> {
> _vbox = val;
> }
>
> Rgds,
>
> Olivier
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED]
> *On Behalf Of *learner
> *Sent:* Tuesday, February 13, 2007 7:54 AM
> *To:* [EMAIL PROTECTED] ups.com
> *Subject:* [flexcoders] duplicate function definition
>
>
>
> Hello all,
> When I am doing this :
>
>  public var vbox:VBox;
>
>  public function set vbox(val):void{
>vbox = val
>}
>
>
> Why am i getting a error like *Duplicate function definition *when i am
> defining my set vbox function.
>
> Regards
> Mayur
>
>  -
>
> An electronic message is not binding on its sender.
>
> Any message referring to a binding engagement must be confirmed in
> writing and duly signed.
>
> -
>
>
>
> -----
>
> An electronic message is not binding on its sender.
>
> Any message referring to a binding engagement must be confirmed in
> writing and duly signed.
>
> -
>
>
>
>
 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


[flexcoders] Text component that allows tabbing

2007-02-13 Thread André Rodrigues Pena
Hi all

I need a multi-line text component that keeps the function of TAB
button, just like windows notepad.

How can I do it?

thanks! :)

-- 
André Rodrigues Pena


Re: [flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread André Rodrigues Pena

Man.. Just remove the throws of your getList() method. Never use throws at a
service method. (specially in this example where the throws is USELESS
because you are already treating the exception with the try clause) The
throws clause passes the exception treatment to a higher scope, this scope
may not import de DAOException needed to process it properly. Simply never
do this.

On 2/12/07, ytseshred <[EMAIL PROTECTED]> wrote:


  I'm using RemoteObjects to connect to my backend. In one of my calls
I'm trying to return a List of VO's I create after hitting my database.

On the Flex side, my result event is firing properly, but when I try
to convert the result to an ArrayCollection, instead of getting a
proper ArrayCollection I get single element that displays the
following when I output it in an alert: "obj is: '[object TestVO],
[object TestVO], ... [object TestVO]'".

If I return a single TestVO object directly instead of a List, I can
properly cast the result to my ActionScript TestVO object and view the
data properly. It's just returning the List that's giving me problems.

Can anyone offer any suggestions please?

My Flex result code is:

public function result(evt:Object):void {
if(evt.type && evt.type == ResultEvent.RESULT) {
var re:ResultEvent = evt as ResultEvent;
var col:ArrayCollection = new
ArrayCollection(ArrayUtil.toArray(re.result));
if(col) {
Alert.show("obj is: '" + col.getItemAt(0) + "'");
}
else Alert.show("Didn't cast properly!");
}
}

My Java DAO code that returns the list is:

public List getList() throws DAOException {
List list = new ArrayList();
Connection c = null;

try {
c = ConnectionHelper.getConnection();
Statement s = c.createStatement();
ResultSet rs = s.executeQuery("SELECT * FROM test");
while(rs.next()) {
TestVO vo = new TestVO();
vo.id = rs.getInt("id");
vo.data = rs.getString("data");
list.add(vo);
}
} catch(Exception e) {
e.printStackTrace();
throw new DAOException(e);
} finally {
ConnectionHelper.close(c);
}
return list;
}

 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Trouble Converting java List to ArrayCollection

2007-02-12 Thread André Rodrigues Pena

And the cast method shown by doug is the recommended

On 2/12/07, André Rodrigues Pena <[EMAIL PROTECTED]> wrote:


Man.. Just remove the throws of your getList() method. Never use throws at
a service method. (specially in this example where the throws is USELESS
because you are already treating the exception with the try clause) The
throws clause passes the exception treatment to a higher scope, this scope
may not import de DAOException needed to process it properly. Simply never
do this.

On 2/12/07, ytseshred <[EMAIL PROTECTED]> wrote:
>
>   I'm using RemoteObjects to connect to my backend. In one of my calls
> I'm trying to return a List of VO's I create after hitting my database.
>
> On the Flex side, my result event is firing properly, but when I try
> to convert the result to an ArrayCollection, instead of getting a
> proper ArrayCollection I get single element that displays the
> following when I output it in an alert: "obj is: '[object TestVO],
> [object TestVO], ... [object TestVO]'".
>
> If I return a single TestVO object directly instead of a List, I can
> properly cast the result to my ActionScript TestVO object and view the
> data properly. It's just returning the List that's giving me problems.
>
> Can anyone offer any suggestions please?
>
> My Flex result code is:
>
> public function result(evt:Object):void {
> if(evt.type && evt.type == ResultEvent.RESULT) {
> var re:ResultEvent = evt as ResultEvent;
> var col:ArrayCollection = new
> ArrayCollection(ArrayUtil.toArray(re.result));
> if(col) {
> Alert.show("obj is: '" + col.getItemAt(0) + "'");
> }
> else Alert.show("Didn't cast properly!");
> }
> }
>
> My Java DAO code that returns the list is:
>
> public List getList() throws DAOException {
> List list = new ArrayList();
> Connection c = null;
>
> try {
> c = ConnectionHelper.getConnection();
> Statement s = c.createStatement();
> ResultSet rs = s.executeQuery("SELECT * FROM test");
> while(rs.next()) {
> TestVO vo = new TestVO();
> vo.id = rs.getInt("id");
> vo.data = rs.getString("data");
> list.add(vo);
> }
> } catch(Exception e) {
> e.printStackTrace();
> throw new DAOException(e);
> } finally {
> ConnectionHelper.close(c);
> }
> return list;
> }
>
>  
>




--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Change distance between items on a HorizontalList

2007-02-12 Thread André Rodrigues Pena
just use PaddingLeft and PaddingRight properties.. or use Style Sheets

On 2/12/07, Tom Chiverton <[EMAIL PROTECTED]> wrote:
> On Thursday 08 Feb 2007, João wrote:
> > is there a way to change the distance between items on a HorizontalList?
>
> I expect there is a style to do it, yes, have you looked at the reference and
> tried a few ?
>
> --
> Tom Chiverton
> Helping to augmentatively harvest best-of-breed bandwidth
>
> 
>
> This email is sent for and on behalf of Halliwells LLP.
>
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> St James's Court Brown Street Manchester M2 2JF.  A list of members is 
> available for inspection at the registered office. Any reference to a partner 
> in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by 
> the Law Society.
>
> CONFIDENTIALITY
>
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 8008.
>
> For more information about Halliwells LLP visit www.halliwells.com.
>
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>


-- 
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


Re: [flexcoders] Cross domain confusion

2007-02-12 Thread André Rodrigues Pena

John..

Your flex application cannot access no URL unless it has the same domain as
your application was loaded. To go through this, the domain should configure
a crossdomain file allowing you to access it, but, as you said, you have no
control over this.

I'm not a Flex expertise, so there could be a better solution. But there's a
solution that would entirely solve your RSS problem. Program a simple PHP
file that actually takes the feed entries you need. Than you use a
HTTPService to call this file at your service.

That is, your PHP file would act as a proxy. The RSS information would pass
by this file before reaching your Flex application.

On 2/10/07, John buono <[EMAIL PROTECTED]> wrote:


  I have written an application using Flex 2 builder, and on my local
machine it works fine.  The application goes out and reads various RSS feeds
on demand, displays them and allows you to pick one you want to read.

but when I deploy the .swf file I get this message

RPC Fault faultString="Security error accessing url" faultCode="
Channel.Security.Error" faultDetail="Destination: DefaultHTTP"]
at mx.rpc::AbstractInvoker/
http://www.adobe.com/2006/flex/mx/internal::faultHandler(<http://www.adobe.com/2006/flex/mx/internal::faultHandler%28>
)
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at ::DirectHTTPMessageResponder/securityErrorHandler()
at
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction
()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/flash.net:URLLoader::redirectEvent()


I believe the problem is a cross domain security issue, but when I read
the documentation on the cross domain xml file, it says it has to be
deployed on the server where the data resides, which I have NO control
over.  How do I do something as simple as read an rss sml file, something
that is supposed to be allowed.

Why does it work on my local machine but not when deployed that is not
making any sense to me.

Until I can demonstrate that we can in fact deploy .swf files using flash
my company is refusing to allows it use, so this is rather critical..

thank

john


 





--
André Rodrigues Pena

LOCUS
www.locus.com.br

Blog
www.techbreak.org


  1   2   >