[flexcoders] Re: Inserting Flex Container to TLF?

2012-12-04 Thread handitan
Hi Alex,

The content is a math formula where user could do CRUD operation.
Dummy bitmap approach does sound interesting...I believe that's basically the 
state where I am right now with my changes.

Really appreciate it, Alex!
Hope Adobe treats you well!

Handi

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> What is the content of this container?  If it is non-interactive, take a 
> bitmap of it and insert that instead.
> 
> If you are trying to get text to flow around it, Flex text widgets do not 
> support that ,but TLF supposedly does.by setting up a set of TLF containers 
> for the ContainerController to work with.
> 
> Also, you can insert a dummy bitmap in the TextFlow and float a Flex 
> container over that area.
> 
> 
> On 12/4/12 9:10 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex!
> 
> Thanks for the reply!
> Hmmm...I guess that's the only way to do it, huh?
> Any other suggestion?
> 
> Again thank you!
> 
> Handi
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui  wrote:
> >
> > UIComponents must be parented by other UIComponents.
> >
> > Now there is a call that sets a virtual parent that you might be able to 
> > use to jump over all of the TLF parents to rewire the container into the 
> > Flex DOM.  We use it in MX containers for scrolling since we put a 
> > non-UIComponent between the container and its children so we can clip it.  
> > No guarantees that will work though.
> >
> >
> > On 11/29/12 6:05 PM, "handitan"  wrote:
> >
> >
> >
> >
> >
> >
> > Hi all,
> >
> > I am in the process of trying to customize TLF to be able to read my custom 
> > html tag that will be able to render Flex container.
> >
> > I am using TLF code that's related to InlineGraphicElement as my reference 
> > for this customization.
> > I think I got into a good point where the Flex container is added but the 
> > style doesn't get rendered (blue border and red background).
> >
> > I don't know why that is but my best guess is the validation doesn't get 
> > called since TLF is not based on Flex.
> > To verify this I tried another experiment by creating a subclass of  
> > RectangularBorder where the updateDisplayList overridden with code that has 
> > drawRect,and bla bla.
> >
> > I found out that updateDisplayList never gets called at all.
> > Here's the framework that I am using:
> > - Flex 3.6
> > - TLF 3.0
> >
> > Could anyone please point me into the right direction on how to solve this 
> > issue?
> >
> > Thank you,
> >
> > Handi
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: Inserting Flex Container to TLF?

2012-12-04 Thread handitan
Hi Alex!

Thanks for the reply!
Hmmm...I guess that's the only way to do it, huh?
Any other suggestion?

Again thank you!

Handi
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> UIComponents must be parented by other UIComponents.
> 
> Now there is a call that sets a virtual parent that you might be able to use 
> to jump over all of the TLF parents to rewire the container into the Flex 
> DOM.  We use it in MX containers for scrolling since we put a non-UIComponent 
> between the container and its children so we can clip it.  No guarantees that 
> will work though.
> 
> 
> On 11/29/12 6:05 PM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I am in the process of trying to customize TLF to be able to read my custom 
> html tag that will be able to render Flex container.
> 
> I am using TLF code that's related to InlineGraphicElement as my reference 
> for this customization.
> I think I got into a good point where the Flex container is added but the 
> style doesn't get rendered (blue border and red background).
> 
> I don't know why that is but my best guess is the validation doesn't get 
> called since TLF is not based on Flex.
> To verify this I tried another experiment by creating a subclass of  
> RectangularBorder where the updateDisplayList overridden with code that has 
> drawRect,and bla bla.
> 
> I found out that updateDisplayList never gets called at all.
> Here's the framework that I am using:
> - Flex 3.6
> - TLF 3.0
> 
> Could anyone please point me into the right direction on how to solve this 
> issue?
> 
> Thank you,
> 
> Handi
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Inserting Flex Container to TLF?

2012-11-29 Thread handitan
Hi all,

I am in the process of trying to customize TLF to be able to read my custom 
html tag that will be able to render Flex container.

I am using TLF code that's related to InlineGraphicElement as my reference for 
this customization.
I think I got into a good point where the Flex container is added but the style 
doesn't get rendered (blue border and red background).

I don't know why that is but my best guess is the validation doesn't get called 
since TLF is not based on Flex.
To verify this I tried another experiment by creating a subclass of  
RectangularBorder where the updateDisplayList overridden with code that has 
drawRect,and bla bla.

I found out that updateDisplayList never gets called at all.
Here's the framework that I am using:
- Flex 3.6
- TLF 3.0

Could anyone please point me into the right direction on how to solve this 
issue?

Thank you,

Handi



[flexcoders] MathML and or Latex support in Text Layout Framework?

2012-09-07 Thread handitan
Hi all,

I was wondering if there's anyone here have or know a customized TLF to support 
MathML and or Latex?
And I am particularly very interested to know how the rendering MathML and or 
Latex is done in TLF.

I am using Flex SDK 3.6 and TLF 3.0.

Sincerely,

Handi



[flexcoders] TLF 3.0 - How to make focusOut-highlighted text becomes unhighlighted?

2012-08-07 Thread handitan
Hi all,

I am using the latest TLF 3.0 with Flex 3.6 SDK.
To make the text stays highlighted when it's out of focus, I have to do this:
var config:Configuration = TextFlow.defaultConfiguration; 
config.unfocusedSelectionFormat = new SelectionFormat(0xff, 1.0, 
BlendMode.DIFFERENCE, 0xff, 1.0, BlendMode.DIFFERENCE, 0);

There's a time when I want it those highlighted text to become unhighlighted.
I thought it would be simple by just doing this on the textFlow:
_textFlow.unfocusedSelectionFormat = new SelectionFormat(0xff, 0, 
BlendMode.DIFFERENCE, 0xff, 0.0, BlendMode.DIFFERENCE, 0);
But it doesn't work.. It just stays highlighted.

Is it because it's being overridden by the defaultConfiguration all the time?

Thanks!

Handi



[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-27 Thread handitan
Thanks Alex!
Dang...backporting is much tougher than I thought :S

I will be posting some questions later if I am starting to get stuck.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Should be legal.  Those files are under MPL.
> 
> 
> On 6/27/12 11:13 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex,
> 
> Unfortunately, it could be more than one image per cell.
> Is there any licensing issue that I should be aware of if I am backporting 
> Flex 4's RichEditableText component?
> 
> Thanks Alex!
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > I see.  Well, you might start by trying to backport Flex 4's 
> > RichEditableText component.
> >
> > However, I would think that if there is only going to be one image per 
> > cell, you might be able to customize code more quickly than getting the 
> > backport to work.
> >
> >
> > On 6/27/12 7:49 AM, "handitan" handi.tan@ wrote:
> >
> >
> >
> >
> >
> >
> > Hi Alex,
> >
> > Here's one example that's TextArea couldn't do which is center-position an 
> > image in htmlText.
> > With TLF, I can center-position the image with html using  > align='center'>.
> >! ;
> > Thank you,Alex.
> >
> > Handi
> >
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> > Alex Harui aharui@ wrote:
> > >
> > > Can you point me to documentation that states that TLF can do what 
> > > TextField's html cannot?  I just want to make sure you have to use TLF.  
> > > I don't know what it would take to make it work in Flex 3.
> > >
> > >
> > > On 6/26/12 3:26 PM, "handitan" handi.tan@ wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi Alex,
> > >
> > > Basically, I need to have RichTextEditor that's going to exist in X 
> > > number of grid cells.
> > > It's not just for text input but also being able to insert images and 
> > > position them.
> > >
> > > Hope that clears it up.
> > >
> > > Handi
> > >
> > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > > &! lt;mailto:flexcoders%40yahoogroups.com> , Alex Harui  ; 
> > > wrote:
> > > >
> > > > I'm not sure what that means and why TLF can do it.
> > > >
> > > > Is the image position known in the text?  If so, can you have an Image 
> > > > between two Labels?
> > > >
> > > >
> > > > On 6/26/12 11:02 AM, "handitan"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi Alex!
> > > >
> > > > I am glad you're still around ^_^
> > > > One of the requirements is for the user to centered-position the image 
> > > > and also to be able to change the image size so HTML renderer on 
> > > > TextArea wouldn't be suffice.
> > > >
> > > > Waiting for you enlightenment, Alex :)
> > > >
> > > > Handi
> > > >
> > > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> 
> > > >  <mailto:flexcoders%40yahoogro! ups.com>  
> > > > <mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > > > >
> > > > > Why can't you use an HTML renderer and the  tag?  Then you 
> > > > > wouldn't need TLF.
> > > > >
> > > > >
> > > > > On 6/26/12 8:47 AM, "handitan"  wrote:
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > Hi all,
> > > > >
> > > > > I currently have to deal with a feature that needs to allow user to 
> > > > > position the image inline with the text at a grid cell.
> > > > > From what I read, the current best bet would be to use Text Layout 
> > > > > Framework (TLF).
> > > > > From the samples, it seems exactly to do what I need.
> > > > >
> > > > > But when I try to integrate it as itemRenderer in the grid, the T! 
> > > > > extFlow couldn't appear correctly. It's just showing it as a t! iny 
> > > > > pixe l on the top-left corner of the grid cell.
> > > > >
> > > > > I know that the TextArea in Flex 4 does support TLF but I will not be 
> > > > > able to use it since my application is still under Flex 3.6 SDK 
> > > > > (don't bother to tell me to migrate to Flex 4).
> > > > >
> > > > > So I am just wondering if anyone know any open-source TLF-based 
> > > > > TextArea for Flex3 or maybe giving me some guides on how to make it 
> > > > > work as itemRenderer?
> > > > >
> > > > > Thank you!
> > > > >
> > > > > Handi
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Alex Harui
> > > > > Flex SDK Team
> > > > > Adobe Systems, Inc.
> > > > > http://blogs.adobe.com/aharui
> > > > >
> > > >
> > > >
> > > >> > >
> > > >
> > > >
> > > > --
> > > > Alex Harui
> > > > Flex SDK Team
> > > > Adobe Systems, Inc.
> > > > http://blogs.adobe.com/aharui
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe Systems, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-27 Thread handitan
Hi Alex,
Unfortunately, it could be more than one image per cell.Is there any
licensing issue that I should be aware of if I am backporting Flex
4's RichEditableText component?
Thanks Alex!
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I see.  Well, you might start by trying to backport Flex 4's
RichEditableText component.
>
> However, I would think that if there is only going to be one image per
cell, you might be able to customize code more quickly than getting the
backport to work.
>
>
> On 6/27/12 7:49 AM, "handitan" handi.tan@... wrote:
>
>
>
>
>
>
> Hi Alex,
>
> Here's one example that's TextArea couldn't do which is
center-position an image in htmlText.
> With TLF, I can center-position the image with html using .
>
> Thank you,Alex.
>
> Handi
>
> --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> , Alex Harui aharui@ wrote:
> >
> > Can you point me to documentation that states that TLF can do what
TextField's html cannot?  I just want to make sure you have to use TLF. 
I don't know what it would take to make it work in Flex 3.
> >
> >
> > On 6/26/12 3:26 PM, "handitan" handi.tan@ wrote:
> >
> >
> >
> >
> >
> >
> > Hi Alex,
> >
> > Basically, I need to have RichTextEditor that's going to exist in X
number of grid cells.
> > It's not just for text input but also being able to insert images
and position them.
> >
> > Hope that clears it up.
> >
> > Handi
> >
> > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
<mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > >
> > > I'm not sure what that means and why TLF can do it.
> > >
> > > Is the image position known in the text?  If so, can you have an
Image between two Labels?
> > >
> > >
> > > On 6/26/12 11:02 AM, "handitan"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi Alex!
> > >
> > > I am glad you're still around ^_^
> > > One of the requirements is for the user to centered-position the
image and also to be able to change the image size so HTML renderer on
TextArea wouldn't be suffice.
> > >
> > > Waiting for you enlightenment, Alex :)
> > >
> > > Handi
> > >
> > > --- In flexcoders@yahoogroups.com
<mailto:flexcoders%40yahoogroups.com> 
<mailto:flexcoders%40yahoogroups.com> 
<mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > > >
> > > > Why can't you use an HTML renderer and the  tag?  Then you
wouldn't need TLF.
> > > >
> > > >
> > > > On 6/26/12 8:47 AM, "handitan"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > I currently have to deal with a feature that needs to allow user
to position the image inline with the text at a grid cell.
> > > > From what I read, the current best bet would be to use Text
Layout Framework (TLF).
> > > > From the samples, it seems exactly to do what I need.
> > > >
> > > > But when I try to integrate it as itemRenderer in the grid, the
TextFlow couldn't appear correctly. It's just showing it as a tiny pixel
on the top-left corner of the grid cell.
> > > >
> > > > I know that the TextArea in Flex 4 does support TLF but I will
not be able to use it since my application is still under Flex 3.6 SDK
(don't bother to tell me to migrate to Flex 4).
> > > >
> > > > So I am just wondering if anyone know any open-source TLF-based
TextArea for Flex3 or maybe giving me some guides on how to make it work
as itemRenderer?
> > > >
> > > > Thank you!
> > > >
> > > > Handi
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Alex Harui
> > > > Flex SDK Team
> > > > Adobe Systems, Inc.
> > > > http://blogs.adobe.com/aharui
> > > >
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe Systems, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
>
>
>
>
>
>
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-27 Thread handitan
Hi Alex,

Here's one example that's TextArea couldn't do which is center-position an 
image in htmlText.
With TLF, I can center-position the image with html using .

Thank you,Alex.

Handi

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Can you point me to documentation that states that TLF can do what 
> TextField's html cannot?  I just want to make sure you have to use TLF.  I 
> don't know what it would take to make it work in Flex 3.
> 
> 
> On 6/26/12 3:26 PM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex,
> 
> Basically, I need to have RichTextEditor that's going to exist in X number of 
> grid cells.
> It's not just for text input but also being able to insert images and 
> position them.
> 
> Hope that clears it up.
> 
> Handi
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui  wrote:
> >
> > I'm not sure what that means and why TLF can do it.
> >
> > Is the image position known in the text?  If so, can you have an Image 
> > between two Labels?
> >
> >
> > On 6/26/12 11:02 AM, "handitan"  wrote:
> >
> >
> >
> >
> >
> >
> > Hi Alex!
> >
> > I am glad you're still around ^_^
> > One of the requirements is for the user to centered-position the image and 
> > also to be able to change the image size so HTML renderer on TextArea 
> > wouldn't be suffice.
> >
> > Waiting for you enlightenment, Alex :)
> >
> > Handi
> >
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > <mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > >
> > > Why can't you use an HTML renderer and the  tag?  Then you wouldn't 
> > > need TLF.
> > >
> > >
> > > On 6/26/12 8:47 AM, "handitan"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > I currently have to deal with a feature that needs to allow user to 
> > > position the image inline with the text at a grid cell.
> > > From what I read, the current best bet would be to use Text Layout 
> > > Framework (TLF).
> > > From the samples, it seems exactly to do what I need.
> > >
> > > But when I try to integrate it as itemRenderer in the grid, the TextFlow 
> > > couldn't appear correctly. It's just showing it as a tiny pixel on the 
> > > top-left corner of the grid cell.
> > >
> > > I know that the TextArea in Flex 4 does support TLF but I will not be 
> > > able to use it since my application is still under Flex 3.6 SDK (don't 
> > > bother to tell me to migrate to Flex 4).
> > >
> > > So I am just wondering if anyone know any open-source TLF-based TextArea 
> > > for Flex3 or maybe giving me some guides on how to make it work as 
> > > itemRenderer?
> > >
> > > Thank you!
> > >
> > > Handi
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe Systems, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-27 Thread handitan
Hmm.. there's something wrong with the yahoogroups.
My reply didn't get posted.

Here's what I wrote, Alex:

Hi Alex,

Here's one example that's TextArea couldn't do which is center-position an 
image in htmlText.
With TLF, I can center-position the image with html using .

Thank you,Alex.
--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Can you point me to documentation that states that TLF can do what 
> TextField's html cannot?  I just want to make sure you have to use TLF.  I 
> don't know what it would take to make it work in Flex 3.
> 
> 
> On 6/26/12 3:26 PM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex,
> 
> Basically, I need to have RichTextEditor that's going to exist in X number of 
> grid cells.
> It's not just for text input but also being able to insert images and 
> position them.
> 
> Hope that clears it up.
> 
> Handi
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui  wrote:
> >
> > I'm not sure what that means and why TLF can do it.
> >
> > Is the image position known in the text?  If so, can you have an Image 
> > between two Labels?
> >
> >
> > On 6/26/12 11:02 AM, "handitan"  wrote:
> >
> >
> >
> >
> >
> >
> > Hi Alex!
> >
> > I am glad you're still around ^_^
> > One of the requirements is for the user to centered-position the image and 
> > also to be able to change the image size so HTML renderer on TextArea 
> > wouldn't be suffice.
> >
> > Waiting for you enlightenment, Alex :)
> >
> > Handi
> >
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > <mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > >
> > > Why can't you use an HTML renderer and the  tag?  Then you wouldn't 
> > > need TLF.
> > >
> > >
> > > On 6/26/12 8:47 AM, "handitan"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > I currently have to deal with a feature that needs to allow user to 
> > > position the image inline with the text at a grid cell.
> > > From what I read, the current best bet would be to use Text Layout 
> > > Framework (TLF).
> > > From the samples, it seems exactly to do what I need.
> > >
> > > But when I try to integrate it as itemRenderer in the grid, the TextFlow 
> > > couldn't appear correctly. It's just showing it as a tiny pixel on the 
> > > top-left corner of the grid cell.
> > >
> > > I know that the TextArea in Flex 4 does support TLF but I will not be 
> > > able to use it since my application is still under Flex 3.6 SDK (don't 
> > > bother to tell me to migrate to Flex 4).
> > >
> > > So I am just wondering if anyone know any open-source TLF-based TextArea 
> > > for Flex3 or maybe giving me some guides on how to make it work as 
> > > itemRenderer?
> > >
> > > Thank you!
> > >
> > > Handi
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe Systems, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>



[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-26 Thread handitan
Hi Alex,

Basically, I need to have RichTextEditor that's going to exist in X number of 
grid cells.
It's not just for text input but also being able to insert images and position 
them.

Hope that clears it up.

Handi

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'm not sure what that means and why TLF can do it.
> 
> Is the image position known in the text?  If so, can you have an Image 
> between two Labels?
> 
> 
> On 6/26/12 11:02 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex!
> 
> I am glad you're still around ^_^
> One of the requirements is for the user to centered-position the image and 
> also to be able to change the image size so HTML renderer on TextArea 
> wouldn't be suffice.
> 
> Waiting for you enlightenment, Alex :)
> 
> Handi
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui  wrote:
> >
> > Why can't you use an HTML renderer and the  tag?  Then you wouldn't 
> > need TLF.
> >
> >
> > On 6/26/12 8:47 AM, "handitan"  wrote:
> >
> >
> >
> >
> >
> >
> > Hi all,
> >
> > I currently have to deal with a feature that needs to allow user to 
> > position the image inline with the text at a grid cell.
> > From what I read, the current best bet would be to use Text Layout 
> > Framework (TLF).
> > From the samples, it seems exactly to do what I need.
> >
> > But when I try to integrate it as itemRenderer in the grid, the TextFlow 
> > couldn't appear correctly. It's just showing it as a tiny pixel on the 
> > top-left corner of the grid cell.
> >
> > I know that the TextArea in Flex 4 does support TLF but I will not be able 
> > to use it since my application is still under Flex 3.6 SDK (don't bother to 
> > tell me to migrate to Flex 4).
> >
> > So I am just wondering if anyone know any open-source TLF-based TextArea 
> > for Flex3 or maybe giving me some guides on how to make it work as 
> > itemRenderer?
> >
> > Thank you!
> >
> > Handi
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe Systems, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-26 Thread handitan
Hi Alex!

I am glad you're still around ^_^
One of the requirements is for the user to centered-position the image and also 
to be able to change the image size so HTML renderer on TextArea wouldn't be 
suffice.

Waiting for you enlightenment, Alex :)

Handi

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Why can't you use an HTML renderer and the  tag?  Then you wouldn't need 
> TLF.
> 
> 
> On 6/26/12 8:47 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I currently have to deal with a feature that needs to allow user to position 
> the image inline with the text at a grid cell.
> From what I read, the current best bet would be to use Text Layout Framework 
> (TLF).
> From the samples, it seems exactly to do what I need.
> 
> But when I try to integrate it as itemRenderer in the grid, the TextFlow 
> couldn't appear correctly. It's just showing it as a tiny pixel on the 
> top-left corner of the grid cell.
> 
> I know that the TextArea in Flex 4 does support TLF but I will not be able to 
> use it since my application is still under Flex 3.6 SDK (don't bother to tell 
> me to migrate to Flex 4).
> 
> So I am just wondering if anyone know any open-source TLF-based TextArea for 
> Flex3 or maybe giving me some guides on how to make it work as itemRenderer?
> 
> Thank you!
> 
> Handi
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: TLF-based TextArea for Flex 3?

2012-06-26 Thread handitan
Hi Alex,

I am glad that you're still around ^_^
The requirement to position images is very important especially to center it.
The other thing that's important is allowing the user to resize the 
inserted-images.

So Flex 3's TextArea doesn't suffice.

Waiting for your enlighntenment, Alex :)

Thank you!

Handi

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Why can't you use an HTML renderer and the  tag?  Then you wouldn't need 
> TLF.
> 
> 
> On 6/26/12 8:47 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I currently have to deal with a feature that needs to allow user to position 
> the image inline with the text at a grid cell.
> From what I read, the current best bet would be to use Text Layout Framework 
> (TLF).
> From the samples, it seems exactly to do what I need.
> 
> But when I try to integrate it as itemRenderer in the grid, the TextFlow 
> couldn't appear correctly. It's just showing it as a tiny pixel on the 
> top-left corner of the grid cell.
> 
> I know that the TextArea in Flex 4 does support TLF but I will not be able to 
> use it since my application is still under Flex 3.6 SDK (don't bother to tell 
> me to migrate to Flex 4).
> 
> So I am just wondering if anyone know any open-source TLF-based TextArea for 
> Flex3 or maybe giving me some guides on how to make it work as itemRenderer?
> 
> Thank you!
> 
> Handi
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe Systems, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] TLF-based TextArea for Flex 3?

2012-06-26 Thread handitan
Hi all,

I currently have to deal with a feature that needs to allow user to position 
the image inline with the text at a grid cell.
>From what I read, the current best bet would be to use Text Layout Framework 
>(TLF).
>From the samples, it seems exactly to do what I need.

But when I try to integrate it as itemRenderer in the grid, the TextFlow 
couldn't appear correctly. It's just showing it as a tiny pixel on the top-left 
corner of the grid cell.

I know that the TextArea in Flex 4 does support TLF but I will not be able to 
use it since my application is still under Flex 3.6 SDK (don't bother to tell 
me to migrate to Flex 4).

So I am just wondering if anyone know any open-source TLF-based TextArea for 
Flex3 or maybe giving me some guides on how to make it work as itemRenderer?

Thank you!

Handi



[flexcoders] Any recommendation for a commercial Flex 3 WYSIWYG rich text editor?

2012-06-07 Thread handitan
Hi all,

I am looking for a commercial Flex 3 WYSIWYG rich text editor, like for example 
this one:
http://www.atomwrite.com/index.html

And I need it to have the export-to-XHTML ability.

Any recommendation?

Thanks!

PS: If you know a free one, I will take that too :)



[flexcoders] Repost: Adobe AIR 1.5.1: issue on opening encrypted DB

2012-01-04 Thread handitan
Hi all, 

  
I got a sqlite DB that's encrypted with AES256 using sqlite3 command line tool: 

sqlite3.exe -key test123Test test.db 

  
I able to do this encryption because I bought the SEE license. 

  
And I did test that the encryption does work, I could not view the DB content 
directly using the DB Admin Tool I have but I could view the content using the 
sqlite3 command line tool. 

I believe the reason why my DB Admin Tool couldn't work because it doesn't have 
the SEE license. 

  
Anyway, I tried to open this with ADOBE AIR and I did make sure passing the 
encryption key as part of the argument. 

But what I got is an error msg: 


Error message: Error #3125: Unable to open the database file. 

Details: An encryption key cannot be specified when the database is not 
encrypted. 


  
So this brings me to this question: 

- What kind of SQLite encryption does ADOBE AIR really supports? 

- Does ADOBE have SEE license? 

  
Please enlighten me. 

  
Thx! 



[flexcoders] Re: HTTPService DELETE/PUT automatically got changed to GET??

2011-08-23 Thread handitan
Thanks for the insightful info Peter!

--- In flexcoders@yahoogroups.com, Peter Coppens  wrote:
>
> Fwiw...
> 
> As far as I know that is indeed still the case. The doc 
> (http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/rpc/http/mxml/HTTPService.html)
>  says
> 
> You use the  tag to represent an HTTPService object in an 
> MXML file. When you call the HTTPService object's send() method, it makes an 
> HTTP request to the specified URL, and an HTTP response is returned. 
> Optionally, you can pass parameters to the specified URL. When you do not go 
> through the server-based proxy service, you can use only HTTP GET or POST 
> methods. However, when you set the useProxy property to true and you use the 
> server-based proxy service, you can also use the HTTP HEAD, OPTIONS, TRACE, 
> and DELETE methods.
> 
> In general, unless you can get somewhere some server/proxy control, I have 
> found Flex not very useful to talk to a REST like service. Some people have 
> reported success by using http://code.google.com/p/as3httpclientlib/ iso the 
> Flex provided stuff. Personally I have not tried that. As far as I remember 
> it gets tricky as you cannot typically reuse  browser managed http 
> "resources" (cookies, cache, ...). 
> 
> As it might be of interest to you as well.besides the limited HTTP verb 
> support I have lost numerous hours getting HTTP headers across. That is also 
> a non trivial endeavor. 
> 
> What eventually worked out best in my case is to just bite the bullet , shove 
> a "proxy" in between, and use GET and POST to communicate tunneled "real" 
> HTTP requests, that are then transformed and forwarded. That is still not 
> perfect if you care about caching and have a need for custom headers, but at 
> least most of it is working.
> 
> I have always found it a bit ironic that a platform that started it's life as 
> a toolset to develop Rich Internet Applications has such limited support for 
> "the" internet standard as old as HTTP.
> 
> Anyway, hth,
> 
> Peter
> 
> 
> On 20 Aug 2011, at 00:43, handitan wrote:
> 
> > Hi all,
> > 
> > I just would like to get a confirmation.
> > Right now, I have to use 3rd party REST APIs in our Flex app.
> > A bunch of the REST APIs are using DELETE and PUT method.
> > 
> > As the title said, they got changed automatically to GET.
> > And from what I gather from this forum somebody said this in 2008:
> > "It's a limitation of the browser plugin API unfortunately."
> > 
> > Is this still true in Flash Player 10.3?
> > My app is still Flex 3 app with 3.5 SDK.
> > 
> > I appreciate any input.
> > 
> > Handi
> > 
> > @Alex:
> > Yes..yes..I am still using Flex 3.
> > 
> >
>




[flexcoders] HTTPService DELETE/PUT automatically got changed to GET??

2011-08-19 Thread handitan
Hi all,

I just would like to get a confirmation.
Right now, I have to use 3rd party REST APIs in our Flex app.
A bunch of the REST APIs are using DELETE and PUT method.

As the title said, they got changed automatically to GET.
And from what I gather from this forum somebody said this in 2008:
"It's a limitation of the browser plugin API unfortunately."

Is this still true in Flash Player 10.3?
My app is still Flex 3 app with 3.5 SDK.

I appreciate any input.

Handi

@Alex:
Yes..yes..I am still using Flex 3.



[flexcoders] Re: How to clear cached RSL programmatically?

2010-04-26 Thread handitan
Alright cool, thx for clearing up Alex!

Time to modify my ant build scripts :)

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Yes, that's what we're doing so I think that's the only way that is known to 
> work.
> 
> 
> On 4/26/10 8:10 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex,
> 
> Thx for your explanation.
> Based on what you just said, my understanding is that the answer to the 
> question that I put out on the scenario is RSL from Step 1 would be the one 
> that's still got loaded.
> 
> And you mentioned before the solution is publish new ones.
> When you said that, I assume that you meant that the RSL has to use the 
> version-suffix filename i.e. RSL_ver1.2.swf.
> 
> Appreciate the help.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> Alex Harui  wrote:
> >
> > My point is that there may not be a way using the RSL loading mechanism we 
> > provide, because once we roll out RSL.SWF, we never change it so the 
> > framework doesn't support any way of updating it and not having caching 
> > problems.
> >
> >
> > On 4/23/10 12:40 PM, "handitan"  wrote:
> >
> >
> >
> >
> >
> >
> > Hi Alex or anyone,
> >
> > I just want to make sure whether I am clear in explaining the issue that I 
> > am facing.
> > Please let me know if my qs and or my scenario wasn't clear enough.
> >
> > Thx for reading.
> >
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > <mailto:flexcoders%40yahoogroups.com> , "handitan"  wrote:
> > >
> > > Hi Alex!
> > >
> > > Great to hear from you as always.
> > > I don't understand what do you mean by framework never revs RSLs? What's 
> > > revs?
> > >
> > > Proably it would be better for my understanding if I use this scenario:
> > > 1. The following have been deployed:
> > > - Main_ver1.0.swf
> > > - Module_ver1.0.swf
> > > - RSL.swf
> > >
> > > 2. Our clients have loaded and cached thosed in their browser.
> > >
> > > 3. Then all those got update, now it becomes:
> > > - Main_ver1.1.swf
> > > - Module_ver1.1.swf
> > > - RSL.swf <-- this got updated but it's still using the same filename.
> > >
> > > 4. And they all got deployed.
> > >
> > > Now I know for sure our client will get the Main_ver1.1 and Module_ver1.1 
> > > without having them clear the browser-cache manually but which RSL are 
> > > they going to get?
> > > Is it going to be the one from Step 1 or from Step 3?
> > >
> > > Thank you!
> > >
> > >
> > > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>  
> > > <mailto:flexcoders%40yahoogroups.com> , Alex Harui  wrote:
> > > >
> > > > I don't think there is support for that because the framework never 
> > > > revs RSLs.  You can do what we do and publish new ones or use modules 
> > > > and load into the main applicationdomain.
> > > >
> > > >
> > > > On 4/22/10 9:15 AM, "handitan"  wrote:
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi all,
> > > >
> > > > I posted one of this question on a thread that's related to caching but 
> > > > since it got hijacked by a totally different topic, I decided to create 
> > > > a new thread. If you're going to talk different stuff, please make a 
> > > > new thread.
> > > >
> > > > The issue that was raised because client doesn't load the newest and 
> > > > greatest of your deployed app because it loads from the browser cache.
> > > >
> > > > To resolve this issue, please read this stackOverfow thread:
> > > > http://stackoverflow.com/questions/300757/preventing-flex-application-caching-in-browser-multiple-modules
> > > >
> > > > Now that solution works for the main swf and module swfs but what about 
> > > > RSL?
> > > >
> > > > How do you guarantee that the loaded RSL is the latest one?
> > > >
> > > > Thank you.
> > > >
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Alex Harui
> > > > Flex SDK Team
> > > > Adobe System, Inc.
> > > > http://blogs.adobe.com/aharui
> > > >
> > >
> >
> >
> >
> >
> >
> >
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: How to clear cached RSL programmatically?

2010-04-26 Thread handitan
Hi Alex,

Thx for your explanation.
Based on what you just said, my understanding is that the answer to the 
question that I put out on the scenario is RSL from Step 1 would be the one 
that's still got loaded.

And you mentioned before the solution is publish new ones.
When you said that, I assume that you meant that the RSL has to use the 
version-suffix filename i.e. RSL_ver1.2.swf.

Appreciate the help.

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> My point is that there may not be a way using the RSL loading mechanism we 
> provide, because once we roll out RSL.SWF, we never change it so the 
> framework doesn't support any way of updating it and not having caching 
> problems.
> 
> 
> On 4/23/10 12:40 PM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi Alex or anyone,
> 
> I just want to make sure whether I am clear in explaining the issue that I am 
> facing.
> Please let me know if my qs and or my scenario wasn't clear enough.
> 
> Thx for reading.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> "handitan"  wrote:
> >
> > Hi Alex!
> >
> > Great to hear from you as always.
> > I don't understand what do you mean by framework never revs RSLs? What's 
> > revs?
> >
> > Proably it would be better for my understanding if I use this scenario:
> > 1. The following have been deployed:
> > - Main_ver1.0.swf
> > - Module_ver1.0.swf
> > - RSL.swf
> >
> > 2. Our clients have loaded and cached thosed in their browser.
> >
> > 3. Then all those got update, now it becomes:
> > - Main_ver1.1.swf
> > - Module_ver1.1.swf
> > - RSL.swf <-- this got updated but it's still using the same filename.
> >
> > 4. And they all got deployed.
> >
> > Now I know for sure our client will get the Main_ver1.1 and Module_ver1.1 
> > without having them clear the browser-cache manually but which RSL are they 
> > going to get?
> > Is it going to be the one from Step 1 or from Step 3?
> >
> > Thank you!
> >
> >
> > --- In flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com> , 
> > Alex Harui  wrote:
> > >
> > > I don't think there is support for that because the framework never revs 
> > > RSLs.  You can do what we do and publish new ones or use modules and load 
> > > into the main applicationdomain.
> > >
> > >
> > > On 4/22/10 9:15 AM, "handitan"  wrote:
> > >
> > >
> > >
> > >
> > >
> > >
> > > Hi all,
> > >
> > > I posted one of this question on a thread that's related to caching but 
> > > since it got hijacked by a totally different topic, I decided to create a 
> > > new thread. If you're going to talk different stuff, please make a new 
> > > thread.
> > >
> > > The issue that was raised because client doesn't load the newest and 
> > > greatest of your deployed app because it loads from the browser cache.
> > >
> > > To resolve this issue, please read this stackOverfow thread:
> > > http://stackoverflow.com/questions/300757/preventing-flex-application-caching-in-browser-multiple-modules
> > >
> > > Now that solution works for the main swf and module swfs but what about 
> > > RSL?
> > >
> > > How do you guarantee that the loaded RSL is the latest one?
> > >
> > > Thank you.
> > >
> > >
> > >
> > >
> > >
> > >
> > > --
> > > Alex Harui
> > > Flex SDK Team
> > > Adobe System, Inc.
> > > http://blogs.adobe.com/aharui
> > >
> >
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] Re: How to clear cached RSL programmatically?

2010-04-23 Thread handitan
Hi Alex or anyone,

I just want to make sure whether I am clear in explaining the issue that I am 
facing.
Please let me know if my qs and or my scenario wasn't clear enough.

Thx for reading.

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Hi Alex!
> 
> Great to hear from you as always.
> I don't understand what do you mean by framework never revs RSLs? What's revs?
> 
> Proably it would be better for my understanding if I use this scenario:
> 1. The following have been deployed:
> - Main_ver1.0.swf
> - Module_ver1.0.swf
> - RSL.swf
> 
> 2. Our clients have loaded and cached thosed in their browser. 
>  
> 3. Then all those got update, now it becomes:
> - Main_ver1.1.swf
> - Module_ver1.1.swf
> - RSL.swf <-- this got updated but it's still using the same filename.
> 
> 4. And they all got deployed.
> 
> Now I know for sure our client will get the Main_ver1.1 and Module_ver1.1 
> without having them clear the browser-cache manually but which RSL are they 
> going to get?
> Is it going to be the one from Step 1 or from Step 3?
> 
> Thank you!
> 
> 
> --- In flexcoders@yahoogroups.com, Alex Harui  wrote:
> >
> > I don't think there is support for that because the framework never revs 
> > RSLs.  You can do what we do and publish new ones or use modules and load 
> > into the main applicationdomain.
> > 
> > 
> > On 4/22/10 9:15 AM, "handitan"  wrote:
> > 
> > 
> > 
> > 
> > 
> > 
> > Hi all,
> > 
> > I posted one of this question on a thread that's related to caching but 
> > since it got hijacked by a totally different topic, I decided to create a 
> > new thread. If you're going to talk different stuff, please make a new 
> > thread.
> > 
> > The issue that was raised because client doesn't load the newest and 
> > greatest of your deployed app because it loads from the browser cache.
> > 
> > To resolve this issue, please read this stackOverfow thread:
> > http://stackoverflow.com/questions/300757/preventing-flex-application-caching-in-browser-multiple-modules
> > 
> > Now that solution works for the main swf and module swfs but what about RSL?
> > 
> > How do you guarantee that the loaded RSL is the latest one?
> > 
> > Thank you.
> > 
> > 
> > 
> > 
> > 
> > 
> > --
> > Alex Harui
> > Flex SDK Team
> > Adobe System, Inc.
> > http://blogs.adobe.com/aharui
> >
>




[flexcoders] Re: Is there a tool to detect whether the loaded swf is from browser's cache?

2010-04-23 Thread handitan
Hi ouaqa,

Yeah, I know what you're talking about.
The index.template has to be updated and if you're using modules, your code has 
to be updated too. I actually posted a link that shows you how to do that. 
Search for "RSL" on this forum under my name. The subject should say something 
like "How to clear RSL cache"

The reason why I need to know if there's a tool to detect this is because I am 
confused on the "Response Duration" from Charles between 1st time the swf is 
loaded and the later.
The diff is like ranging between 20 - 30 ms.

I was expecting the "Response Duration" on the later to be almost hitting 0 ms 
since it's loaded from the browser-cache.




--- In flexcoders@yahoogroups.com, "ouaqa"  wrote:
>
> Hello,
> 
> As far as I know, there is no way to know this. But again, I'm not an expert.
> 
> When changing our version of the swf, we append it's new version number. This 
> way, we're sure the user is using "ourApp-vLastVersion.swf" and not 
> "ourApp-vOldAndBuggedVersion.swf", the versions being based on the 
> corresponding svn revision number . 
> Unfortunately, I don't remember how to do that.
> 
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Hi all,
> > 
> > I am just wondering if there's a tool to detect whether the loaded swf is 
> > from browser's cache or not?
> > 
> > Appreciate it.
> > 
> > Thx!
> >
>




[flexcoders] Is there a tool to detect whether the loaded swf is from browser's cache?

2010-04-22 Thread handitan
Hi all,

I am just wondering if there's a tool to detect whether the loaded swf is from 
browser's cache or not?

Appreciate it.

Thx!



[flexcoders] Re: How to clear cached RSL programmatically?

2010-04-22 Thread handitan
Hi Alex!

Great to hear from you as always.
I don't understand what do you mean by framework never revs RSLs? What's revs?

Proably it would be better for my understanding if I use this scenario:
1. The following have been deployed:
- Main_ver1.0.swf
- Module_ver1.0.swf
- RSL.swf

2. Our clients have loaded and cached thosed in their browser. 
 
3. Then all those got update, now it becomes:
- Main_ver1.1.swf
- Module_ver1.1.swf
- RSL.swf <-- this got updated but it's still using the same filename.

4. And they all got deployed.

Now I know for sure our client will get the Main_ver1.1 and Module_ver1.1 
without having them clear the browser-cache manually but which RSL are they 
going to get?
Is it going to be the one from Step 1 or from Step 3?

Thank you!


--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I don't think there is support for that because the framework never revs 
> RSLs.  You can do what we do and publish new ones or use modules and load 
> into the main applicationdomain.
> 
> 
> On 4/22/10 9:15 AM, "handitan"  wrote:
> 
> 
> 
> 
> 
> 
> Hi all,
> 
> I posted one of this question on a thread that's related to caching but since 
> it got hijacked by a totally different topic, I decided to create a new 
> thread. If you're going to talk different stuff, please make a new thread.
> 
> The issue that was raised because client doesn't load the newest and greatest 
> of your deployed app because it loads from the browser cache.
> 
> To resolve this issue, please read this stackOverfow thread:
> http://stackoverflow.com/questions/300757/preventing-flex-application-caching-in-browser-multiple-modules
> 
> Now that solution works for the main swf and module swfs but what about RSL?
> 
> How do you guarantee that the loaded RSL is the latest one?
> 
> Thank you.
> 
> 
> 
> 
> 
> 
> --
> Alex Harui
> Flex SDK Team
> Adobe System, Inc.
> http://blogs.adobe.com/aharui
>




[flexcoders] How to clear cached RSL programmatically?

2010-04-22 Thread handitan
Hi all,

I posted one of this question on a thread that's related to caching but since 
it got hijacked by a totally different topic, I decided to create a new thread. 
If you're going to talk different stuff, please make a new thread.

The issue that was raised because client doesn't load the newest and greatest 
of your deployed app because it loads from the browser cache.

To resolve this issue, please read this stackOverfow thread:
http://stackoverflow.com/questions/300757/preventing-flex-application-caching-in-browser-multiple-modules

Now that solution works for the main swf and module swfs but what about RSL?

How do you guarantee that the loaded RSL is the latest one?

Thank you.



[flexcoders] Re: How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)

2010-04-21 Thread handitan
You're not reading the qs correctly.

I am reposting my qs here:
I have a diff question relating to this caching issue.
My app is composed with a main-swf, a library-swf (RSL), and several 
module-swfs.

To my understanding, this incrementing-build-version solution only 
applies to the main-swf.
So that means the library-swf and module-swfs that I updated would 
be loaded from the browser-cache instead of from the server.
Is my understanding correct?

Thx!

--- In flexcoders@yahoogroups.com, Wally Kolcz  wrote:
>
> Firefox = Tools >> Clear Recent History >> Today
> 
> On 4/21/2010 11:04 AM, handitan wrote:
> >
> > Bump this thread up to see if other people has any opinion on this.
> >
> > Thx for reading!
> >
> > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>, "handitan"  wrote:
> > >
> > > Thx Tracy!
> > >
> > > I have a diff question relating to this caching issue.
> > > My app is composed with a main-swf, a library-swf, and several 
> > module-swfs.
> > >
> > > To my understanding, this incrementing-build-version solution only 
> > applies to the main-swf.
> > > So that means the library-swf and module-swfs that I updated would 
> > be loaded from the browser-cache instead of from the server.
> > > Is my understanding correct?
> > >
> > > Thx!
> > >
> > >
> > > --- In flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>, "Tracy Spratt"  wrote:
> > > >
> > > > Yes. Manually incrementing the version at each build will be more 
> > work for
> > > > you, but will be a better experience for your users.
> > > >
> > > >
> > > >
> > > > Tracy Spratt,
> > > >
> > > > Lariat Services, development services available
> > > >
> > > > _
> > > >
> > > > From: flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com> 
> > [mailto:flexcoders@yahoogroups.com 
> > <mailto:flexcoders%40yahoogroups.com>] On
> > > > Behalf Of handitan
> > > > Sent: Monday, April 19, 2010 8:17 PM
> > > > To: flexcoders@yahoogroups.com <mailto:flexcoders%40yahoogroups.com>
> > > > Subject: [flexcoders] Re: How to clear cache for all major 
> > browsers (IE,
> > > > Mozilla, Safari and Chrome)
> > > >
> > > >
> > > >
> > > >
> > > >
> > > > Hi Cato or anyone,
> > > >
> > > > Where do you put that change?
> > > > Is it on this part of index.template.html?
> > > >
> > > > else if (hasRequestedVersion) {
> > > > // if we've detected an acceptable version
> > > > // embed the Flash Content SWF when all tests are passed
> > > > AC_FL_RunContent(
> > > > "src", "${swf}?version=1.0",
> > > > "width", "${width}",
> > > > "height", "${height}",
> > > >
> > > > Thanks for the help!
> > > >
> > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> 
> > ups.com,
> > > > "Cato Paus"  wrote:
> > > > >
> > > > > Or just do this
> > > > >
> > > > > "src", "${swf}?version=1.0",
> > > > >
> > > > > and increment it each time you crate a new build, I have filed a 
> > request
> > > > to adobe about this issue
> > > > > https://bugs. <https://bugs.adobe.com/jira/browse/FB-16764 
> > <https://bugs.adobe.com/jira/browse/FB-16764>>
> > > > adobe.com/jira/browse/FB-16764
> > > > > go and vote for it :)
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> 
> > ups.com,
> > > > "Tracy Spratt"  wrote:
> > > > > >
> > > > > > The only reliable, cross platform/browser solution I have seen 
> > is to
> > > > append
> > > > > > a unique string to the swf url. Modify the index.template like 
> > this:
> > > > > >
> > > > > > AC_FL_RunContent(
> > > > > >
> > > > > > "src", "${swf}?nocache="+(new
> > > > > > D

[flexcoders] Re: How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)

2010-04-21 Thread handitan
Bump this thread up to see if other people has any opinion on this.

Thx for reading!

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Thx Tracy!
> 
> I have a diff question relating to this caching issue.
> My app is composed with a main-swf, a library-swf, and several module-swfs.
> 
> To my understanding, this incrementing-build-version solution only applies to 
> the main-swf.
> So that means the library-swf and module-swfs that I updated would be loaded 
> from the browser-cache instead of from the server.
> Is my understanding correct?
> 
> Thx! 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > Yes.  Manually incrementing the version at each build will be more work for
> > you, but will be a better experience for your users.
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of handitan
> > Sent: Monday, April 19, 2010 8:17 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: How to clear cache for all major browsers (IE,
> > Mozilla, Safari and Chrome)
> > 
> >  
> > 
> >   
> > 
> > Hi Cato or anyone,
> > 
> > Where do you put that change?
> > Is it on this part of index.template.html?
> > 
> > else if (hasRequestedVersion) {
> > // if we've detected an acceptable version
> > // embed the Flash Content SWF when all tests are passed
> > AC_FL_RunContent(
> > "src", "${swf}?version=1.0",
> > "width", "${width}",
> > "height", "${height}",
> > 
> > Thanks for the help!
> > 
> > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> > "Cato Paus"  wrote:
> > >
> > > Or just do this 
> > > 
> > > "src", "${swf}?version=1.0",
> > > 
> > > and increment it each time you crate a new build, I have filed a request
> > to adobe about this issue
> > > https://bugs. <https://bugs.adobe.com/jira/browse/FB-16764>
> > adobe.com/jira/browse/FB-16764 
> > > go and vote for it :)
> > > 
> > > 
> > > 
> > > 
> > > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> > "Tracy Spratt"  wrote:
> > > >
> > > > The only reliable, cross platform/browser solution I have seen is to
> > append
> > > > a unique string to the swf url. Modify the index.template like this:
> > > > 
> > > > AC_FL_RunContent(
> > > > 
> > > > "src", "${swf}?nocache="+(new
> > > > Date()).getTime(),
> > > > 
> > > > 
> > > > 
> > > > It does make that app slow to load every time.
> > > > 
> > > > 
> > > > 
> > > > Tracy Spratt,
> > > > 
> > > > Lariat Services, development services available
> > > > 
> > > > _ 
> > > > 
> > > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> > [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
> > On
> > > > Behalf Of anuj181
> > > > Sent: Tuesday, March 17, 2009 7:32 PM
> > > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> > > > Subject: [flexcoders] How to clear cache for all major browsers (IE,
> > > > Mozilla, Safari and Chrome)
> > > > 
> > > > 
> > > > 
> > > > Hi Guys
> > > > Anyone has any idea which is the best way to clear the cache for my web
> > > > application (which is made in Flex and PHP), For some reason it keeps on
> > > > pulling old entries from cache and is confusing user and me with the
> > > > inconsistent results, I guess that it is pulling values from the cache
> > as
> > > > everything works fine when I manually clear the cache.I did little
> > research
> > > > and tried following tags in the index.template.html but somehow it is
> > not
> > > > working efficiently , Whats the best way to clear the cache for all the
> > > > major browsers (IE, Mozilla, Safari and Chrome) for my web application?
> > > > Anyone has any idea?
> > > > Thanks in advance for your help,
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > > 
> > > >
> > >
> >
>




[flexcoders] Re: How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)

2010-04-20 Thread handitan
Thx Tracy!

I have a diff question relating to this caching issue.
My app is composed with a main-swf, a library-swf, and several module-swfs.

To my understanding, this incrementing-build-version solution only applies to 
the main-swf.
So that means the library-swf and module-swfs that I updated would be loaded 
from the browser-cache instead of from the server.
Is my understanding correct?

Thx! 


--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> Yes.  Manually incrementing the version at each build will be more work for
> you, but will be a better experience for your users.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of handitan
> Sent: Monday, April 19, 2010 8:17 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: How to clear cache for all major browsers (IE,
> Mozilla, Safari and Chrome)
> 
>  
> 
>   
> 
> Hi Cato or anyone,
> 
> Where do you put that change?
> Is it on this part of index.template.html?
> 
> else if (hasRequestedVersion) {
> // if we've detected an acceptable version
> // embed the Flash Content SWF when all tests are passed
> AC_FL_RunContent(
> "src", "${swf}?version=1.0",
> "width", "${width}",
> "height", "${height}",
> 
> Thanks for the help!
> 
> --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> "Cato Paus"  wrote:
> >
> > Or just do this 
> > 
> > "src", "${swf}?version=1.0",
> > 
> > and increment it each time you crate a new build, I have filed a request
> to adobe about this issue
> > https://bugs. <https://bugs.adobe.com/jira/browse/FB-16764>
> adobe.com/jira/browse/FB-16764 
> > go and vote for it :)
> > 
> > 
> > 
> > 
> > --- In flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com,
> "Tracy Spratt"  wrote:
> > >
> > > The only reliable, cross platform/browser solution I have seen is to
> append
> > > a unique string to the swf url. Modify the index.template like this:
> > > 
> > > AC_FL_RunContent(
> > > 
> > > "src", "${swf}?nocache="+(new
> > > Date()).getTime(),
> > > 
> > > 
> > > 
> > > It does make that app slow to load every time.
> > > 
> > > 
> > > 
> > > Tracy Spratt,
> > > 
> > > Lariat Services, development services available
> > > 
> > > _ 
> > > 
> > > From: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> [mailto:flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com]
> On
> > > Behalf Of anuj181
> > > Sent: Tuesday, March 17, 2009 7:32 PM
> > > To: flexcod...@yahoogro <mailto:flexcoders%40yahoogroups.com> ups.com
> > > Subject: [flexcoders] How to clear cache for all major browsers (IE,
> > > Mozilla, Safari and Chrome)
> > > 
> > > 
> > > 
> > > Hi Guys
> > > Anyone has any idea which is the best way to clear the cache for my web
> > > application (which is made in Flex and PHP), For some reason it keeps on
> > > pulling old entries from cache and is confusing user and me with the
> > > inconsistent results, I guess that it is pulling values from the cache
> as
> > > everything works fine when I manually clear the cache.I did little
> research
> > > and tried following tags in the index.template.html but somehow it is
> not
> > > working efficiently , Whats the best way to clear the cache for all the
> > > major browsers (IE, Mozilla, Safari and Chrome) for my web application?
> > > Anyone has any idea?
> > > Thanks in advance for your help,
> > > 
> > > 
> > > 
> > > 
> > > 
> > > 
> > >
> >
>




[flexcoders] Re: How to clear cache for all major browsers (IE, Mozilla, Safari and Chrome)

2010-04-19 Thread handitan
Hi Cato or anyone,


Where do you put that change?
Is it on this part of index.template.html?

else if (hasRequestedVersion) {
// if we've detected an acceptable version
// embed the Flash Content SWF when all tests are passed
AC_FL_RunContent(
"src", "${swf}?version=1.0",
"width", "${width}",
"height", "${height}",

Thanks for the help!

--- In flexcoders@yahoogroups.com, "Cato Paus"  wrote:
>
> Or just do this 
> 
> "src", "${swf}?version=1.0",
> 
> and increment it each time you crate a new build, I have filed a request to 
> adobe about this issue
> https://bugs.adobe.com/jira/browse/FB-16764 
> go and vote for it :)
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
> >
> > The only reliable, cross platform/browser solution I have seen is to append
> > a unique string to the swf url.  Modify the index.template like this:
> > 
> > AC_FL_RunContent(
> > 
> > "src", "${swf}?nocache="+(new
> > Date()).getTime(),
> > 
> >  
> > 
> > It does make that app slow to load every time.
> > 
> >  
> > 
> > Tracy Spratt,
> > 
> > Lariat Services, development services available
> > 
> >   _  
> > 
> > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> > Behalf Of anuj181
> > Sent: Tuesday, March 17, 2009 7:32 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] How to clear cache for all major browsers (IE,
> > Mozilla, Safari and Chrome)
> > 
> >  
> > 
> > Hi Guys
> > Anyone has any idea which is the best way to clear the cache for my web
> > application (which is made in Flex and PHP), For some reason it keeps on
> > pulling old entries from cache and is confusing user and me with the
> > inconsistent results, I guess that it is pulling values from the cache as
> > everything works fine when I manually clear the cache.I did little research
> > and tried following tags in the index.template.html but somehow it is not
> > working efficiently , Whats the best way to clear the cache for all the
> > major browsers (IE, Mozilla, Safari and Chrome) for my web application?
> > Anyone has any idea?
> > Thanks in advance for your help,
> > 
> > 
> > 
> > 
> > 
> > 
> >
>




[flexcoders] Re: Best way to implement WebService Resend functionality?

2010-03-02 Thread handitan
@Peeyush:
Thanks for the suggestion, Peeyush.
That's an interesting design. Hmmm...definitely will consider that one.

--- In flexcoders@yahoogroups.com, Peeyush Tuli  wrote:
>
> An elegant design pattern would be to implement a request queue. All the
> requests that your webservice needs to send should be put in a queue. This
> queue can be a collection.Each item of this collection should have the
> following properties -
> -Request data
> -Operation/Webmethod Name
> -Function pointer to call in case of successful call(this is optional
> depending upon where you process your results)
> -unique identifier like an incremented counter
> - flag which says response awaited
> In the singleton class you can implement a timer based functionality which
> will poll the queue at regular intervals and pick up the item from this
> queue and call the  required operation. You can attach the unique id to an
> asynctoken returned from the send operation. Once the result is received,
> you can remove it from the queue. If its a fault,you can either place it
> last or send it again depending on how you intend to implement it.
> Hope this helps...
> 
> On Sat, Feb 20, 2010 at 4:48 AM, handitan  wrote:
> 
> >
> >
> > Hi all,
> >
> > I need some advices on how-to solve the issue that I am having.
> > On my Flex application, I have a singleton class that contains 1 WebService
> > instance which serves every services.
> >
> > It has been working fine but I miss-out a very important issue that I
> > should have think of beforehand which is being able to resend the service
> > again that was failed either due to a TimeOut or the infamous "2032"
> >
> > On the web, I found an example that I think it put me on the right track:
> >
> > http://flexmonkeypatches.com/flex-webservice-with-auto-repeat-and-increasing-timeout/
> >
> > It's a good solution but I just need to investigate more on how-to
> > incorporate this to my singleton class because:
> > 1) On each service call, I save lots of infos on the AsyncToken such as
> > resultHandler, faultHandler, etc.
> > 2) On that example, resending the service call by doing "op.send(args)." I
> > don't know yet on how-to copy over all saved infos from the previous
> > service-call's token into this new one.
> >
> > That's the approach that I am taking right now.
> > But I am open to any suggestion.
> >
> > Thanks!
> >
> >  
> >
>




[flexcoders] Re: Best way to implement WebService Resend functionality?

2010-03-02 Thread handitan
@Amy:
I sort of found out why I was having issue in assigning the token.
For some reasons that I still don't know, the ws resend is always failing due 
to "Parameter-fault" message, which is weird because I put all the same 
arguments that I passed in on the 1st ws call.

Hmmm
--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> 
> 
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Hi all,
> > 
> > I need some advices on how-to solve the issue that I am having.
> > On my Flex application, I have a singleton class that contains 1 WebService 
> > instance which serves every services.
> > 
> > It has been working fine but I miss-out a very important issue that I 
> > should have think of beforehand which is being able to resend the service 
> > again that was failed either due to a TimeOut or the infamous "2032"
> > 
> > On the web, I found an example that I think it put me on the right track:
> > http://flexmonkeypatches.com/flex-webservice-with-auto-repeat-and-increasing-timeout/
> > 
> > It's a good solution but I just need to investigate more on how-to 
> > incorporate this to my singleton class because:
> > 1) On each service call, I save lots of infos on the AsyncToken such as 
> > resultHandler, faultHandler, etc.
> > 2) On that example, resending the service call by doing "op.send(args)." I 
> > don't know yet on how-to copy over all saved infos from the previous 
> > service-call's token into this new one.
> > 
> 
> The token should have the Responder still attached.  I think you can probably 
> just grab it and put it into the new token.
> 
> HTH;
> 
> Amy
>




[flexcoders] AIR update for non-admin users?

2010-02-19 Thread handitan
Hi all,

I am too late to realize that AIR automatic-updater could only be done by users 
with admin rights.
>From my reading so far, there's no indication that it's going to change.

So I hope there're people out there would be willing to share some alternative 
ways to update AIR app other than using AIR automatic-updater.

While I am waiting, I am going to politely answering my clients who are asking 
"Why I couldn't update??" questions.

Thank you for reading.



[flexcoders] Best way to implement WebService Resend functionality?

2010-02-19 Thread handitan
Hi all,

I need some advices on how-to solve the issue that I am having.
On my Flex application, I have a singleton class that contains 1 WebService 
instance which serves every services.

It has been working fine but I miss-out a very important issue that I should 
have think of beforehand which is being able to resend the service again that 
was failed either due to a TimeOut or the infamous "2032"

On the web, I found an example that I think it put me on the right track:
http://flexmonkeypatches.com/flex-webservice-with-auto-repeat-and-increasing-timeout/

It's a good solution but I just need to investigate more on how-to incorporate 
this to my singleton class because:
1) On each service call, I save lots of infos on the AsyncToken such as 
resultHandler, faultHandler, etc.
2) On that example, resending the service call by doing "op.send(args)." I 
don't know yet on how-to copy over all saved infos from the previous 
service-call's token into this new one.

That's the approach that I am taking right now.
But I am open to any suggestion.

Thanks!



[flexcoders] Adobe AIR 1.5.1: issue on opening encrypted DB

2009-11-09 Thread handitan
Hi all,

 
I got a sqlite DB that's encrypted with AES256 using sqlite3 command line tool:

sqlite3.exe -key test123Test test.db

 
I able to do this encryption because I bought the SEE license.

 
And I did test that the encryption does work, I could not view the DB content 
directly using the DB Admin Tool I have but I could view the content using the 
sqlite3 command line tool.

I believe the reason why my DB Admin Tool couldn't work because it doesn't have 
the SEE license.

 
Anyway, I tried to open this with ADOBE AIR and I did make sure passing the 
encryption key as part of the argument.

But what I got is an error msg:


Error message: Error #3125: Unable to open the database file.

Details: An encryption key cannot be specified when the database is not 
encrypted.


 
So this brings me to this question:

- What kind of SQLite encryption does ADOBE AIR really supports?

- Does ADOBE have SEE license?

 
Please enlighten me.

 
Thx! 



[flexcoders] Re: AIR 1.5.1 Transaction issue: when begin() is called, it doesn't do anything.

2009-11-02 Thread handitan
Hi Sean,

Thx for the suggestions.
I believe that I am kind of have an idea on what causing the issue of this 
transaction to suddently stop working.
Since I thought it might be 1.5.1 SDK issue, so I build it using 1.5.2 SDK but 
the result is the same. 
All I can tell right now is this issue seems to only appear on Windows but not 
on Mac. Both have AIR runtime version 1.5.2.

So be warn for those of you who are using transaction heavily (my app needs to 
do at least lots of transaction where each transaction process 10 - 200 
inserts).

I am still building this app through FlexBuilder. Will migrate to Ant pretty 
soon.

--- In flexcoders@yahoogroups.com, "seanmcmonahan"  wrote:
>
> I can recommend three things as I've been doing a fair amount of debugging 
> lately:
> 
> 1) Check out MonsterDebugger for debugging from your release build
> 
> 2) Try opening your SQLConnection before calling begin().  I think begin 
> opens a connection but I'm not entirely sure.  Also try adding an event 
> listener for the open event to ensure your connection is being opened as well.
> 
> 3) How are you building the release build?  Recently I'd experienced some 
> issues related to an Ant build script that targeted Flash Player 10 while the 
> Flex Debugger targeted 9.0.28.  Setting the Ant script to target 9.0.28 
> cleared up my problems.  Check this article for details: 
> http://kb2.adobe.com/cps/404/kb404341.html 
> 
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Hi all,
> > 
> > I have this weird issue that I am having.
> > I am using transaction on this function call functA(). And functA() has 
> > been called many times, the transaction worked perfect.
> > 
> > BUT...for a reason that I still don't know, the transaction sometimes will 
> > not work.
> > And it seems that this phenomenon only happens on the release build because 
> > I couldn't reproduce it at all when I am debugging it.
> > 
> > How do I find out that the issue was the transaction on release build?
> > I log the before I call transaction begin, and its result and fault 
> > handler. I notice that the begin got called but it never got to neither 
> > result nor fault handler, which just baffled me.
> > And I did make sure my transaction listener are NOT using weak references.
> > 
> > Here's a snip of the code if you are curious:
> > 
> > public class AsyncTransactionClass extends EventDispatcher
> > {
> >public function functA():void
> >{
> >  sqlStatement = new SQLStatement;
> >  sqlStatement.text = "some query";
> >  sqlStatement.sqlConnection = ;
> > 
> > sqlStatement.sqlConnection.addEventListener(SQLEvent.BEGIN,transactionSetupResultHandler);
> >   
> > sqlStatement.sqlConnection.addEventListener(SQLErrorEvent.ERROR,transactionSetupFaultHandler);
> >   
> > 
> >  sqlStatement.sqlConnection.begin();
> >}
> > 
> >private function transactionSetupResultHandler(pEvent:SQLEvent):void
> >{
> >  trace("I AM AT RESULT");
> >}
> > 
> >private function transactionSetupFaultHandler(pEvent:SQLErrorEvent):void
> >{
> >  trace("I AM AT FAULT");
> >}
> > }
> > 
> > Does anyone else have this problem?
> > I am really out of ideas now on how to solve this.
> > 
> > Thank you.
> >
>




[flexcoders] AIR 1.5.1 Transaction issue: when begin() is called, it doesn't do anything.

2009-11-01 Thread handitan
Hi all,

I have this weird issue that I am having.
I am using transaction on this function call functA(). And functA() has been 
called many times, the transaction worked perfect.

BUT...for a reason that I still don't know, the transaction sometimes will not 
work.
And it seems that this phenomenon only happens on the release build because I 
couldn't reproduce it at all when I am debugging it.

How do I find out that the issue was the transaction on release build?
I log the before I call transaction begin, and its result and fault handler. I 
notice that the begin got called but it never got to neither result nor fault 
handler, which just baffled me.
And I did make sure my transaction listener are NOT using weak references.

Here's a snip of the code if you are curious:

public class AsyncTransactionClass extends EventDispatcher
{
   public function functA():void
   {
 sqlStatement = new SQLStatement;
 sqlStatement.text = "some query";
 sqlStatement.sqlConnection = ;

sqlStatement.sqlConnection.addEventListener(SQLEvent.BEGIN,transactionSetupResultHandler);
  
sqlStatement.sqlConnection.addEventListener(SQLErrorEvent.ERROR,transactionSetupFaultHandler);
  

 sqlStatement.sqlConnection.begin();
   }

   private function transactionSetupResultHandler(pEvent:SQLEvent):void
   {
 trace("I AM AT RESULT");
   }

   private function transactionSetupFaultHandler(pEvent:SQLErrorEvent):void
   {
 trace("I AM AT FAULT");
   }
}

Does anyone else have this problem?
I am really out of ideas now on how to solve this.

Thank you.






[flexcoders] AIR 1.5.2 issue: Error creating AIR file.

2009-10-15 Thread handitan
Hi all,

I just downloaded AIR 1.5.2 SDK.
I had made sure to change my application descriptor file to the 1.5.2 namespace.

When I do an export release build, this is the error msg that I got:
"Error creating AIR file: 102: ERROR, http://ns.adobe.com/air/application/1.5.2";

Does anyone else getting this issue as well?

Thx.



[flexcoders] Re: ADOBE AIR: Is it possible to move some files to appStorage during installati

2009-10-13 Thread handitan
Hi Sean,

Thx for the solution.
Appreciate it.

Handi

--- In flexcoders@yahoogroups.com, "seanmcmonahan"  wrote:
>
> Just had to deal with this myself recently.  There is no way to do this 
> during install which leaves you with a couple of options:
> 
> 1) Do a test to see if it's the first time the application has been run and 
> copy the files to app storage
> 
> 2) Test for the existence of the files in app storage, if they don't exist, 
> copy them from the app directory.
> 
> #1 is basically a more complicated version of #2 so I'll just give you the 
> quick and dirty #2 version:
> 
> This code is in my SQLService class.  This is just the class I use to handle 
> all my SQL stuff.
> 
> _dbFile = File.applicationStorageDirectory.resolvePath(_dbPath);
> _dbTemplateFile = File.applicationDirectory.resolvePath(_dbPath);
> // If the file does not exists in storage or the one in the application 
> directory is newer, copy it from the applciation directory
> if(!_dbFile.exists || (_dbTemplateFile.modificationDate > 
> _dbFile.modificationDate && updateDbFile)) 
> {
>   _dbTemplateFile.copyTo(_dbFile, true);
> }
> 
> This post should help you with the first run part: 
> http://www.mikechambers.com/blog/2007/11/07/detecting-whether-an-air-application-has-run-before/
> 
> Adobe has a resource about this as well (that's what I used) but I cannot 
> find it at the moment and my bookmark is on my work computer.
> 
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Ugh, I just tried moving file programmatically from app to appStorage. It 
> > gave me security error.
> > 
> > Please enlighten me.
> > 
> > --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> > >
> > > Hi all,
> > > 
> > > To my knowledge, it's not possible unless it's being done through 
> > > programmatically.
> > > 
> > > I have some sqlite DBs as part of my AIR package. I would like to have 
> > > those DBs completely moved to the application storage when the package is 
> > > installed on my client computer.
> > > 
> > > Any ideas?
> > > 
> > > Thx!
> > >
> >
>




[flexcoders] Re: ADOBE AIR: Is it possible to move some files to appStorage during installati

2009-10-10 Thread handitan
Ugh, I just tried moving file programmatically from app to appStorage. It gave 
me security error.

Please enlighten me.

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Hi all,
> 
> To my knowledge, it's not possible unless it's being done through 
> programmatically.
> 
> I have some sqlite DBs as part of my AIR package. I would like to have those 
> DBs completely moved to the application storage when the package is installed 
> on my client computer.
> 
> Any ideas?
> 
> Thx!
>




[flexcoders] ADOBE AIR: Is it possible to move some files to appStorage during installation?

2009-10-10 Thread handitan
Hi all,

To my knowledge, it's not possible unless it's being done through 
programmatically.

I have some sqlite DBs as part of my AIR package. I would like to have those 
DBs completely moved to the application storage when the package is installed 
on my client computer.

Any ideas?

Thx!



[flexcoders] Re: SQLite:Simultaneous multiple-insert in async mode with a single DB connectio

2009-10-10 Thread handitan
Ugh, I forgot that I wrote this thread.

Amy, thx for the reply.
Sorry, I have been busy with other projects. I really appreciate your reply.

>From what I remember, this is having to do with different tables.
If you do insertion to table A, B, C, etc simultaneously, your app will hung-up.

I made a queue system to handle multiple insertion op. It works great!


--- In flexcoders@yahoogroups.com, "Amy"  wrote:
>
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Alright fellas,
> > 
> > Spill out the secret.
> > When I do the multiple-insertion simultaneously, those operations just 
> > stopped and any new transaction-transaction op request is ignored.
> > 
> > My idea so far is to put any new transaction-request in a queue if a 
> > transaction is currently in the process, and then after that transaction is 
> > finished then do the next transaction-request from the queue.
> 
> Doesn't SQLLite have any syntax like
> 
> INSERT INTO MyTable (Field1, Field2)
> VALUES (Obj1Field1, Obj1Field2),
> (Obj2Field1, Obj2Field2),
> (Obj3Field1, Obj3Field2)
> 
> ?
> 
> This would actually make the multiple inserts simultaneously, rather than 
> trying to multiple sql statements all intependently trying to be simultaneous.
> 
> -Amy
>




[flexcoders] Re: ADOBE AIR Qs: How do you load modules from "app-storage" domain?

2009-10-09 Thread handitan
Hi Alex!

Good to hear from you.
And yes, you're right! I got it to work but there's so much code involved just 
to get this module loaded.
Gosh...I wonder if I am in the right direction or not...

This code is basically based on "Hai Nguyen" example from eSoftHead with little 
modification (Thx Hai!).
Here's the code if anyone is interested:


private function loadSwf():void
{
var dir:File = File.applicationStorageDirectory
dir = dir.resolvePath("SimpleSwf.swf");//SimpleSwf is the
module

var myURLRequest:URLRequest = new URLRequest(dir.url);
var myURLLoader:URLLoader = new URLLoader();
myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
myURLLoader.load(myURLRequest);

myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
}

private function loadModuleCompleteHandler(pEvent:Event):void
{
var context:LoaderContext = new LoaderContext();
context.allowLoadBytesCodeExecution = true;
context.applicationDomain = ApplicationDomain.currentDomain;

var moduleLoader:Loader = new Loader();
var loader:URLLoader = URLLoader(pEvent.target);
moduleLoader.loadBytes(loader.data,context);
moduleLoader.contentLoaderInfo.addEventListener(Event.COMPLETE, completeLoader);
}

private function completeLoader(e:Event): void {
var moduleLoader:LoaderInfo = LoaderInfo(e.target);
moduleLoader.content.addEventListener("ready", readyHandler);
}



private function readyHandler(e:Event): void {
var factory:IFlexModuleFactory = IFlexModuleFactory(e.target);
var module:Module = factory.create() as Module;
container.addChild(module);

}









--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> I'm not sure what moduleLoader is.  You should be using IModuleInfo.load().
> 
> Then, a UIComponent makes a poor container.  It doesn't know how to measure 
> or layout the child so the child might have 0 size.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.<http://www.adobe.com/>
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of handitan
> Sent: Thursday, October 08, 2009 8:03 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ADOBE AIR Qs: How do you load modules from 
> "app-storage" domain?
> 
> 
> 
> Hi all,
> 
> I am using AIR 1.5 SDK.
> I am trying to find a way to build patching mechanism for my AIR app, which 
> consists modules, sqlite DBs, and other files, by updating ONLY files that 
> need to be updated.
> 
> I know that this is not possible using AIR Update Framework because the way I 
> understand it works is that any update that you have both minor and major, 
> you will have to reinstall everything. This is a pain if you have a huge size 
> AIR app.
> 
> I have sort of an idea to build my own update mechanism but in order for this 
> to work, I will need to be able to do update operation on my AIR app files.
> 
> Since "app" domain doesn't allow us to do that, I have to find a place where 
> updates can take place and my app could still work. I read that "app-storage" 
> allows you to do all of that.
> 
> Okay... so I build a really simple AIR app that the sole purpose is to load 
> swf module from "app-storage" to prove my theory.
> 
> So here's my AIR app code the short version:
> 
> 
> 
> private function loadSwf():void
> {
> var dir:File = File.applicationStorageDirectory
> dir = dir.resolvePath("SimpleSwf.swf");//SimpleSwf is the module
> 
> var myURLRequest:URLRequest = new URLRequest(dir.url);
> var myURLLoader:URLLoader = new URLLoader();
> myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
> myURLLoader.load(myURLRequest);
> myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
> }
> 
> private function loadModuleCompleteHandler(pEvent:Event):void
> {
> var context:LoaderContext = new LoaderContext();
> context.allowLoadBytesCodeExecution = true;
> context.applicationDomain = ApplicationDomain.currentDomain;
> 
> var moduleLoader:Loader = new Loader();
> var loader:URLLoader = URLLoader(pEvent.target);
> moduleLoader.loadBytes(loader.data,context);
> 
> container.addChild(moduleLoader);
> }
> 
> 
> 
> 
> 
> 
> 
> 
> The result is:
> When I click the button "Load SWF", I could see that the loader loads the SWF 
> correctly (it got the right size, etc) but I didn't see the module shows up 
> on the screen at all.
> I didn't know what I do wrong.
> 
> Please enlighten me.
>




[flexcoders] ADOBE AIR Qs: How do you load modules from "app-storage" domain?

2009-10-08 Thread handitan
Hi all,

I am using AIR 1.5 SDK.
I am trying to find a way to build patching mechanism for my AIR app, which 
consists modules, sqlite DBs, and other files, by updating ONLY files that need 
to be updated.

I know that this is not possible using AIR Update Framework because the way I 
understand it works is that any update that you have both minor and major, you 
will have to reinstall everything. This is a pain if you have a huge size AIR 
app.

I have sort of an idea to build my own update mechanism but in order for this 
to work, I will need to be able to do update operation on my AIR app files.

Since "app" domain doesn't allow us to do that, I have to find a place where 
updates can take place and my app could still work. I read that "app-storage" 
allows you to do all of that.

Okay... so I build a really simple AIR app that the sole purpose is to load swf 
module from "app-storage" to prove my theory.

So here's my AIR app code the short version:


   
private function loadSwf():void
{
  var dir:File = File.applicationStorageDirectory
  dir = dir.resolvePath("SimpleSwf.swf");//SimpleSwf is the 
module
 
  var myURLRequest:URLRequest = new URLRequest(dir.url);
  var myURLLoader:URLLoader = new URLLoader();
  myURLLoader.dataFormat = URLLoaderDataFormat.BINARY;
  myURLLoader.load(myURLRequest);
  
myURLLoader.addEventListener(Event.COMPLETE,loadModuleCompleteHandler);
}

 private function loadModuleCompleteHandler(pEvent:Event):void
{
  var context:LoaderContext = new LoaderContext();
  context.allowLoadBytesCodeExecution = true;
  context.applicationDomain = ApplicationDomain.currentDomain;
 
  var moduleLoader:Loader = new Loader();
  var loader:URLLoader = URLLoader(pEvent.target);
  moduleLoader.loadBytes(loader.data,context);
   
  container.addChild(moduleLoader);
} 


   


   


The result is:
When I click the button "Load SWF", I could see that the loader loads the SWF 
correctly (it got the right size, etc) but I didn't see the module shows up on 
the screen at all.
I didn't know what I do wrong.

Please enlighten me.



[flexcoders] SQLite:Simultaneous multiple-insert in async mode with a single DB connection?

2009-04-09 Thread handitan
Alright fellas,

Spill out the secret.
When I do the multiple-insertion simultaneously, those operations just stopped 
and any new transaction-transaction op request is ignored.

My idea so far is to put any new transaction-request in a queue if a 
transaction is currently in the process, and then after that transaction is 
finished then do the next transaction-request from the queue.

Thx!


 



[flexcoders] Re: Any working example on SQlite transaction in Async mode

2009-04-09 Thread handitan
Yes, you can use transaction in Async mode but it will not be as easy as sync.

On Async, this is what you need to do:
- Before you call begin(), your sqlStatement needs to listen for SQLEvent.BEGIN.
- When SQLEvent.BEGIN is thrown, your sqlStatement needs to listen for 
SQLEvent.RESULT for your insertion query. Your insertion query can only be 
executed one at a time, meaning after a SQLEvent.Result is thrown.
- Finally, your sqlStatement needs to listen for SQLEvent.COMMIT before you 
call commit().

And that's your transaction in Async mode.
Btw, I didn't add "listening to SQLEventError" on the instruction because I am 
just too lazy to type it :)

Since it's a pain to do this big-Async-code everytime you are going to do a 
transaction, my suggestion is make a class that dedicates for transaction 
operation.

That's the easy part.
Right now, I am in the middle of confusion on how to handle 
multiple-transaction for insertion. The insertion just failed on that scenario. 
I will write this on another thread :)

--- In flexcoders@yahoogroups.com, George  wrote:
>
> Hi there,
> 
> I check lots of documents and google examples on SQLite transaction, 
> most of them in sync mode that not fit what we need exactly.
> 
> What I need is during the transaction, I want to insert a list of items 
> into a table. I reuse a single insert statement prepared. So what I did:
> 
> connection.begin(SQLTransactionLockType.IMMEDIATE);
> for(var i:int=0; i {
>   // execute an insert statement instance with item parameters
>   ...
> }
> connection.commit();
> 
> The problem I found, in async mode, after the statement instance is 
> executed, it didn't finish its own task, so its status is 'executing', 
> that means next item is not possible to be continue.
> 
> I guess in this case I cannot use transaction?
> 
> Thanks,
> George
>




[flexcoders] Re: AIR SQLite:Does anyone have this issue with DB connected asynchronously?

2009-03-31 Thread handitan
Well, I wrote a small test app and do a bit of my own stress-testing. It seems 
to be working as it should.
Every call that I did got throw the SQL event as it should.

Yeah, It was definitely something with what I did before.

--- In flexcoders@yahoogroups.com, "jason_williams_mm"  wrote:
>
> Have you logged a bug?  Intermittent issues are very hard to track down.  
> What platform are you using (windows, OS X, Linux)? What version of the 
> runtime?
> 
> Thanks,
> jw
> 
> 
> --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> >
> > Hi all,
> > 
> > I posted this question quite a while ago but I just want to bump this 
> > thread up to see if anyone has any idea of the issue that I am facing.
> > Please read below.
> > 
> > Thx!
> > 
> > --- In flexcoders@yahoogroups.com, "handitan"  wrote:
> > >
> > > Hi all,
> > > 
> > > Before I present the issue, I am listing my FB and SDK versions:
> > > - FlexBuilder 3.0.2
> > > - AIR SDK 1.5
> > > - Flex SDK 3.3 milestone build.
> > > All the latest good stuffs.
> > > 
> > > Now, I have an issue with DB that's connected asynchronously doesn't 
> > > ALWAYS firing SQLEvent.RESULT or SQLErrorEVENT.ERROR whenever a SQL 
> > > statement is executed.
> > > 
> > > For example:
> > > I got a login screen with login textInput, password textInput, and login 
> > > button. When the login button is clicked, it does a query to check 
> > > whether the login and password exist in the DB.
> > > And events will be fired accordingly if it's a success or not.
> > > 
> > > HOWEVER, the events don't always fired! Sometimes it fires but sometimes 
> > > it's not. It's happening intermittently.
> > > 
> > > Does anyone else have this issue??
> > > 
> > > Btw, I don't have this issue at all when I have my DB opened 
> > > synchronously. Unfortunately, working with it has some big challenges as 
> > > well. So if I can get the DB-async to work properly, it will save a lot 
> > > of time.
> > > 
> > > Thx!
> > >
> >
>




[flexcoders] Re: AIR SQLite:Does anyone have this issue with DB connected asynchronously?

2009-03-31 Thread handitan
Hi all,

I posted this question quite a while ago but I just want to bump this thread up 
to see if anyone has any idea of the issue that I am facing.
Please read below.

Thx!

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Hi all,
> 
> Before I present the issue, I am listing my FB and SDK versions:
> - FlexBuilder 3.0.2
> - AIR SDK 1.5
> - Flex SDK 3.3 milestone build.
> All the latest good stuffs.
> 
> Now, I have an issue with DB that's connected asynchronously doesn't ALWAYS 
> firing SQLEvent.RESULT or SQLErrorEVENT.ERROR whenever a SQL statement is 
> executed.
> 
> For example:
> I got a login screen with login textInput, password textInput, and login 
> button. When the login button is clicked, it does a query to check whether 
> the login and password exist in the DB.
> And events will be fired accordingly if it's a success or not.
> 
> HOWEVER, the events don't always fired! Sometimes it fires but sometimes it's 
> not. It's happening intermittently.
> 
> Does anyone else have this issue??
> 
> Btw, I don't have this issue at all when I have my DB opened synchronously. 
> Unfortunately, working with it has some big challenges as well. So if I can 
> get the DB-async to work properly, it will save a lot of time.
> 
> Thx!
>




[flexcoders] Warning message when trying to install AIR app on Mac

2009-03-19 Thread handitan
Hi all,

I build the AIR package on Windows and then when I tried to install it on a 
Mac, I got the following msg:
'You are opening the application "Adobe AIR Application Installer.exe Windows 
XP" for the first time. Are you sure you want to open this application?'

What does this mean?
My guess is AIR package build on Windows cannot be installed on Mac.

Please enlighten me.






[flexcoders] AIR SQLite:Does anyone have this issue with DB connected asynchronously?

2009-03-06 Thread handitan
Hi all,

Before I present the issue, I am listing my FB and SDK versions:
- FlexBuilder 3.0.2
- AIR SDK 1.5
- Flex SDK 3.3 milestone build.
All the latest good stuffs.

Now, I have an issue with DB that's connected asynchronously doesn't ALWAYS 
firing SQLEvent.RESULT or SQLErrorEVENT.ERROR whenever a SQL statement is 
executed.

For example:
I got a login screen with login textInput, password textInput, and login 
button. When the login button is clicked, it does a query to check whether the 
login and password exist in the DB.
And events will be fired accordingly if it's a success or not.

HOWEVER, the events don't always fired! Sometimes it fires but sometimes it's 
not. It's happening intermittently.

Does anyone else have this issue??

Btw, I don't have this issue at all when I have my DB opened synchronously. 
Unfortunately, working with it has some big challenges as well. So if I can get 
the DB-async to work properly, it will save a lot of time.

Thx! 







[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-03-04 Thread handitan
Alright, I got it to work. It's my fault.
The issue was due to my FB which was in version 3.0.0.
After I upgraded to 3.0.2, everything works fine.

I have posted some steps on the ADOBE FLEX SDK FORUM that I need to take in 
order for my previous AIR app to work with the debugger.
Here's the link:
http://www.adobeforums.com/webx/.59b80d28/4

Thanks FlexSDK devs for your support!

--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> @Tom:
> It happens to me, man. I even tried by switching workspace. It just didn't 
> exist at all.
> 
> -
> Well, I just downloaded SDK 3.3 milestone build.
> And I still have the same issue.
> 
> I have posted a message on the SDK Adobe forum regarding this issue:
> http://www.adobeforums.com/webx/.59b80d28/2
> 
> The only package that is existed in 'flash' is 'errors' package 
> (flash.errors).
> 
> 
> --- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
> >
> > On Thursday 26 Feb 2009, handitan wrote:
> > > Yikes!!!
> > > Man, I really hope that this is just a mistake and it will be fixed
> > > soon.
> > 
> > I don't see any evidence it's broken.
> > Simple test case code, example mxmlc invocation and version dump, etc.
> > 
> > -- 
> > Tom Chiverton
> > Helping to autoschediastically expedite best-of-breed bleeding-edge 
> > m-commerce
> > 
> > 
> > 
> > This email is sent for and on behalf of Halliwells LLP.
> > 
> > Halliwells LLP is a limited liability partnership registered in England and 
> > Wales under registered number OC307980 whose registered office address is 
> > at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A 
> > list of members is available for inspection at the registered office 
> > together with a list of those non members who are referred to as partners.  
> > We use the word ?partner? to refer to a member of the LLP, or an employee 
> > or consultant with equivalent standing and qualifications. Regulated by the 
> > Solicitors Regulation Authority.
> > 
> > CONFIDENTIALITY
> > 
> > This email is intended only for the use of the addressee named above and 
> > may be confidential or legally privileged.  If you are not the addressee 
> > you must not read it and must not use any information contained in nor copy 
> > it nor inform any person other than Halliwells LLP or the addressee of its 
> > existence or contents.  If you have received this email in error please 
> > delete it and notify Halliwells LLP IT Department on 0870 365 2500.
> > 
> > For more information about Halliwells LLP visit www.halliwells.com.
> >
>




[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-03-04 Thread handitan
@Tom:
It happens to me, man. I even tried by switching workspace. It just didn't 
exist at all.

-
Well, I just downloaded SDK 3.3 milestone build.
And I still have the same issue.

I have posted a message on the SDK Adobe forum regarding this issue:
http://www.adobeforums.com/webx/.59b80d28/2

The only package that is existed in 'flash' is 'errors' package (flash.errors).


--- In flexcoders@yahoogroups.com, Tom Chiverton  wrote:
>
> On Thursday 26 Feb 2009, handitan wrote:
> > Yikes!!!
> > Man, I really hope that this is just a mistake and it will be fixed
> > soon.
> 
> I don't see any evidence it's broken.
> Simple test case code, example mxmlc invocation and version dump, etc.
> 
> -- 
> Tom Chiverton
> Helping to autoschediastically expedite best-of-breed bleeding-edge m-commerce
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in England and 
> Wales under registered number OC307980 whose registered office address is at 
> Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
> of members is available for inspection at the registered office together with 
> a list of those non members who are referred to as partners.  We use the word 
> ?partner? to refer to a member of the LLP, or an employee or consultant with 
> equivalent standing and qualifications. Regulated by the Solicitors 
> Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above and may 
> be confidential or legally privileged.  If you are not the addressee you must 
> not read it and must not use any information contained in nor copy it nor 
> inform any person other than Halliwells LLP or the addressee of its existence 
> or contents.  If you have received this email in error please delete it and 
> notify Halliwells LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-02-26 Thread handitan
Yikes!!!
Man, I really hope that this is just a mistake and it will be fixed 
soon.

Well, I also post this question on "Flex SDK" forum.
http://www.adobeforums.com/webx/.59b80d28

Still waiting for the reply...





[flexcoders] flash.events and flash.net library don't exist in Flex SDK 3.3.0.4852 ??

2009-02-25 Thread handitan
This is strange...

Flex SDK 3.3.0.4852 is the latest stable build but it doesn't have 
these 2 packages:
- flash.events
- flash.net

I checked my SDK 3.0 (milestone build) and it does have those 
packages.

However those packages do appear when I enable the "Include ADOBE AIR 
libraries" option.

Are these packages accidentally got removed from Flex SDK 3.3.0.4852?? 
Or are they actually permanently got removed?

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




[flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-17 Thread handitan
Thx Johannes!

--- In flexcoders@yahoogroups.com, Johannes Nel  wrote:
>
> you have to write it to the file system. if security is your concern
encrypt
> it. we do this a lot, but we do not send it over web services, just
using
> https get.
> 
> On Mon, Feb 16, 2009 at 5:58 PM, handitan  wrote:
> 
> >   I would like to clear one thing:
> > - The .Net webservice returns the bytearray-conversion of a SQLite
> > file from the server.
> >
> >
> > --- In flexcoders@yahoogroups.com ,
> > "handitan"  wrote:
> > >
> > > Hi all,
> > >
> > > I have a .Net webservice the bytearray-conversion of a SQLite file.
> > > My client call the webservice and I received the byteArray as
> > expected
> > > but I couldn't treat it as SQLite until I do the following:
> > > - Write the byteArray to a file with .db extension.
> > > - Then open the SQLConnection to that file.
> > >
> > > So is there a way to treat the byteArray as SQLite without saving it
> > > first to the local storage and read it?
> > >
> > > Thx!
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> j:pn
> \\no comment
>




Re: {Disarmed} [flexcoders] "AIR update framework" only works to update AIR file

2009-02-16 Thread handitan
Hi KFB,

Thank you for your great input.
So basically for my need, I need to have a customized update system 
since I am dealing not just AIR file but other files as well.
 
> There are a number of references about determining whether it's the
> first-run or not so adaptation of those techniques is probably worth
> looking at.

Could you please let me know where I can get these references?


Thanks!
--- In flexcoders@yahoogroups.com, "Kevin Benz"  wrote:
>
> You need to be aware of the two paths to update Air applications. 
The UI
> approach, one where you configure the UI of the update process 
through a
> XML file and an API approach where you take programmatic control of 
the
> update. Ultimately the goal of the UpdaterUI was to update the Air 
file
> alone (and then start it)so if you need to move files around, update
> SQLite or something like that, you are going to have to do what you 
need
> in Actionscript. The update framework  in no-way has the 
capabilities of
> commercial installers. Can't call external processes, directly move
> files around, etc
> 
>  
> 
> Since the updater mechanisms are running in the old code, not the 
new
> Air file, it can't know what needs to updated, meaning you are going 
to
> end up writing code in your app's normal bootstrap process that
> determines that an update has occurred and makes the necessary 
changes.
> There are a number of references about determining whether it's the
> first-run or not so adaptation of those techniques is probably worth
> looking at.
> 
>  
> 
> In our apps, we have the current client version in the SQLite 
database.
> If the running client does not match that version number, we call
> whatever update process we need and on completion update SQLite to 
the
> current running client version id.
> 
> KFB
> 
>  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of handitan
> Sent: Friday, February 13, 2009 1:02 PM
> To: flexcoders@yahoogroups.com
> Subject: {Disarmed} [flexcoders] "AIR update framework" only works 
to
> update AIR file?
> 
>  
> 
> Hi all,
> 
> I have been reading articles about using "AIR update framework."
> To my understanding this only works to update AIR file??
> 
> I hope I am wrong...
> Since my AIR app is using Flex-only swcs and is loading Flex-only 
> modules.
> 
> Anybody can shed a light on this? 
> 
> 
> 
> 
> -- 
> This message has been scanned for viruses and 
> dangerous content by MailScanner <http://www.mailscanner.info/> , 
and is
> 
> believed to be clean.
>





[flexcoders] Re: How to read the received ByteArray as SQLite?

2009-02-16 Thread handitan
I would like to clear one thing:
- The .Net webservice returns the bytearray-conversion of a SQLite 
file from the server.


--- In flexcoders@yahoogroups.com, "handitan"  wrote:
>
> Hi all,
> 
> I have a .Net webservice the bytearray-conversion of a SQLite file.
> My client call the webservice and I received the byteArray as 
expected 
> but I couldn't treat it as SQLite until I do the following:
> - Write the byteArray to a file with .db extension.
> - Then open the SQLConnection to that file.
> 
> So is there a way to treat the byteArray as SQLite without saving it 
> first to the local storage and read it?
> 
> Thx!
>





[flexcoders] "AIR update framework" only works to update AIR file?

2009-02-13 Thread handitan
Hi all,

I have been reading articles about using "AIR update framework."
To my understanding this only works to update AIR file??

I hope I am wrong...
Since my AIR app is using Flex-only swcs and is loading Flex-only 
modules.

Anybody can shed a light on this? 



[flexcoders] How to read the received ByteArray as SQLite?

2009-02-12 Thread handitan
Hi all,

I have a .Net webservice the bytearray-conversion of a SQLite file.
My client call the webservice and I received the byteArray as expected 
but I couldn't treat it as SQLite until I do the following:
- Write the byteArray to a file with .db extension.
- Then open the SQLConnection to that file.

So is there a way to treat the byteArray as SQLite without saving it 
first to the local storage and read it?

Thx!



[flexcoders] Re: Discussing "Shared Codebase between Flex and AIR project"

2009-02-11 Thread handitan
Hi Gregor,

Thank you for your suggestion.
It took me a while to digest your suggestion but I think I got a 
working example.
If I had followed your suggestion correctly, the "front end" is 
becoming fat.
What I meant by that is the front end is where all interface 
implementations resided and have those implementations assigned to the 
appropriate classes, which the modules are going to be using.

I hope that I interpret your suggestion correctly.

--- In flexcoders@yahoogroups.com, "Gregor Kiddie"  
wrote:
>
> We've used the strategy pattern for this.
> 
> We do something similar to how ToolTipManager uses toolTipClass.
> 
> When the app starts up (or module is loaded), the correct classes 
are
> injected into the files which have AIR / player differences.
> 
> We also have two "front end" swfs which are little more than 
preloaders
> primed with appropriate classes for the rest of the application.
> 
>  
> 
> As an example, we've used this mechanism to cache the same data in 
the
> SQLite DB in AIR, or a Shared Object in the Flash player via the 
same
> call (i.e. the rest of the app was agnostic to whether it was in AIR 
or
> FP)
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact is.helpd...@...
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
> Behalf Of handitan
> Sent: 11 February 2009 16:31
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Discussing "Shared Codebase between Flex and 
AIR
> project"
> 
>  
> 
> Hi gang,
> 
> Yes, it's another one :) But I am going to approach it a different 
> way.
> My question is based on David Coletta's MAX presentation.
> If you haven't seen his presentation, please watch here:
> http://tv.adobe.com/#vi+f15384v1022
> <http://tv.adobe.com/#vi+f15384v1022> 
> 
> The slides are available here:
> http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-
Shared-
> <http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-
Shared-> 
> Codebase-for-Browser-and-DesktopFinal
> 
> To everyone who has seen his presentations, could you help me out in 
> understanding how his "Browser SWFs included in AIR file" works to 
> solve the "Shared code packaging" ?
> 
> This is what I understand on what he did with that approach:
> 1. Only have one AIR project that contains all AIR implementation.
> 2. Each of your module's common functionality, extract them out to 
an 
> interface and then have Flex-specific and AIR-specific class 
> implements the interface.
> 
> So I am kind of get the idea but I have a very hard time 
understanding 
> on how he was able to get each module to have the AIR project to 
serve 
> the module's AIR-implementation needs?
> 
> Thanks!
>





[flexcoders] Discussing "Shared Codebase between Flex and AIR project"

2009-02-11 Thread handitan
Hi gang,

Yes, it's another one :) But I am going to approach it a different 
way.
My question is based on David Coletta's MAX presentation.
If you haven't seen his presentation, please watch here:
http://tv.adobe.com/#vi+f15384v1022

The slides are available here:
http://www.slideshare.net/dcoletta/DavidColettaArchitecting-a-Shared-
Codebase-for-Browser-and-DesktopFinal

To everyone who has seen his presentations, could you help me out in 
understanding how his "Browser SWFs included in AIR file" works to 
solve the "Shared code packaging" ?

This is what I understand on what he did with that approach:
1. Only have one AIR project that contains all AIR implementation.
2. Each of your module's common functionality, extract them out to an 
interface and then have Flex-specific and AIR-specific class 
implements the interface.

So I am kind of get the idea but I have a very hard time understanding 
on how he was able to get each module to have the AIR project to serve 
the module's AIR-implementation needs?

Thanks!



[flexcoders] Re: Problem with ModuleLoder

2009-01-23 Thread handitan
Hi Madhu,

What do you mean by child property? 
What does the child property need to do with all the modules?
What are the effects to the last module when you made modifications to
the 1st module?

--- In flexcoders@yahoogroups.com, "madhu_bmk"  wrote:
>
> Hi Every One
> 
> 
> In my application am using ModuleLoder to load multiple no of
> modules, ok no problem with loading, its working cool and loading
> all the modules, but the child property is not handling all the
> modules. it just handling the last module only
> 
> if am trying to do any modifications to my first module , its
> effecting to my last module
> 
> How to over come this problem ?
> 
> 
> 
> Regards
> -
> MadhuFlex
>




[flexcoders] How do you all setup your development environment?

2008-05-12 Thread handitan

Hi all,

I would like to get an idea how people setup their development
environment.
Let me share a bit of how I set it up (this is still work in progress,
btw):

IDE:
FlexBuilder 3 with Ant Build Tool plugin.

Workspace:
My app is consisted with multiple modules. Each module is in its own
project, and each project has its own Ant-build script.

Project configuration:
Each project's builder only points to Ant-build script so that I can
ensure the Ant-build script will also run smoothly in the Build server.

For production release:
Use a build server that runs the Ant-build script.

Feedback:

Pros:
- Please see 'Project configuration' section.

Cons:
- Sometimes if there's any build error, my compiler won't stop at the
error. It will just continue to execute other Ant-build script.
- And if the compiler stops on an Ant-build due to an error, I don't
have the luxury to be able to go directly to the file that causes the
error because the error output is just a text on the Console.

With so much trouble that I encountered by using Ant-build script on my
FlexBuilder, I am thinking to revert back to Flex-build on my
FlexBuilder but still building using Ant-build script on BuildServer.

I appreciate for any feedback, thx.



[flexcoders] Re: Flex 3: Async Token will not remember the "injected" function and properties.

2008-05-08 Thread handitan
Thank you Anirudh and Josh!

That really clear things up.
Appreciate it.
--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> I'd go a step further and recommend disabling your UI with a modal
> "Loading..." dialog until you receive LOAD or FAIL from the web 
service
> initialisation (load() or whatever it is that kicks it off), unless 
there's
> a time-consuming user task to be performed before anything can be 
sent to
> the server.
> 
> -J
> 
> On Thu, May 8, 2008 at 3:15 PM, Anirudh Sasikumar <
> [EMAIL PROTECTED]> wrote:
> 
> >   Hi,
> >
> >
> > On Thu, May 8, 2008 at 2:55 AM, handitan <[EMAIL PROTECTED]>
> > wrote:
> > > Does anyone know a way to have the token still retain the 
injected
> > > function and properties?
> >
> > Your fault event for the operation.send() won't even fire if wsdl 
is
> > bad, instead, the fault event for the webservice will fire. That 
event
> > object will not have the same token as the one you modified from 
the
> > return value for send().
> >
> > You need to either check the ready property on webservice or 
listen to
> > the LoadEvent.LOAD dispatched by the webservice to make sure your 
WSDL
> > is all set up. Ideally, operation.send() calls should be made only
> > after this.
> >
> > Cheers,
> > --
> > Anirudh Sasikumar
> > http://anirudhs.chaosnet.org/
> >  
> >
> 
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for 
thee."
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




[flexcoders] Flex 3: Async Token will not remember the "injected" function and properties.

2008-05-07 Thread handitan
Hi all,

I have made a webservice calling and handling system based on the 
code sample from this blog:
http://techpolesen.blogspot.com/2007/11/coping-with-flex-asynchronous-
remote.html

The token will retain the injected callbackFunction if and only if 
the load wsdl operation is successful (this is the code: 
remoteService.loadWSDL();).
What makes is successful? A valid wsdl url.

If you have an invalid wsdl url, all the injected functions and 
properties will be forgotten.

Does anyone know a way to have the token still retain the injected 
function and properties?

Thank you.





[flexcoders] Flex 3 bug: Does anyone have this DataGrid's resize issue as well?

2008-04-18 Thread handitan
I filed the bug to Adobe.

You can see the full description here:
http://bugs.adobe.com/jira/browse/SDK-15337

I also have attached a sample project to see how this bug can be 
reproduced.

Please vote for this bug.



[flexcoders] Re: Feedback on my "Image-caching" code

2008-04-18 Thread handitan
Thanks for sharing the code, Eric.
Have you ever checked how much memory got increased whenever you load 
your cached-img?
With my code, I always have a memory increase when I use the cached-
img because I always need to pass new Bitmap instance to image.load() 
otherwise it will not load the image. 


--- In flexcoders@yahoogroups.com, "Eric Cancil" <[EMAIL PROTECTED]> wrote:
>
> I made something fairly similar at one point
> http://3r1c.net/cacheableImages/
> 
> On Thu, Apr 17, 2008 at 7:55 PM, handitan <[EMAIL PROTECTED]> wrote:
> 
> >   Hi all,
> >
> > I am trying to find a simple solution on caching images into the 
memory.
> >
> > I had written a code to do that and it seemed to be working but I 
am
> > pretty sure there are things that I had missed.
> >
> > Any feedback is greatly appreciated.
> >
> > 
==
==
> >
> > I am using associative array to store the Bitmap and using the 
image URL
> > path as the key.
> >
> > Here's how the code works in general:
> >
> > - You select which image that you want to load by choosing one of 
the
> > image's name in the comboBox.
> >
> > - The selected image's name will be appended to a URL where the 
image is
> > located. Let's called this new appended string: "newImgURL"
> >
> > - Check to see if "newImgURL" is existed in the associative 
array. If it
> > is existed, then load the cached-bitmap else pass "newImgURL"  to
> > imageObj.source.
> >
> > - If it's passed to imageObj.source, the imageObj will throw 
a "complete"
> > event. On the completeEventHandler, cached the imageObj's Bitmap 
to the
> > associative array.
> >
> > *Here's the code:*
> >
> > 
> >
> >  > xmlns:mx="http://www.adobe.com/2006/mxml"; layout="horizontal"
> > creationComplete="imageInit()">
> >
> > 
> >
> > 
> >
> > 
> >
> >  
> >
> >  > change="loadImg2(event)"/>
> >
> > 
> >
> > 
> >
> >  > cachePolicy="off"
> >
> > cacheAsBitmap="
> > false"
> >
> > loaderContext="
> > {myLoaderContext}"/>
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> > 
> >
> >
> >
> >
> >  
> >
>




[flexcoders] Feedback on my "Image-caching" code

2008-04-17 Thread handitan

Hi all,

I am trying to find a simple solution on caching images into the memory.

I had written a code to do that and it seemed to be working but I am
pretty sure there are things that I had missed.

Any feedback is greatly appreciated.



I am using associative array to store the Bitmap and using the image URL
path as the key.

Here's how the code works in general:

- You select which image that you want to load by choosing one of the
image's name in the comboBox.

- The selected image's name will be appended to a URL where the image is
located. Let's called this new appended string: "newImgURL"

- Check to see if "newImgURL" is existed in the associative array. If it
is existed, then load the cached-bitmap else pass "newImgURL"  to
imageObj.source.

- If it's passed to imageObj.source, the imageObj will throw a
"complete" event. On the completeEventHandler, cached the imageObj's
Bitmap to the associative array.

Here's the code:



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











































[flexcoders] Re: PopUpButton issue

2008-04-16 Thread handitan
Doing it on "addedToStage" event somehow doesn't work well for my 
app. My app kept on crashing due to a null popUp.

Instead of doing it on "addedToStage", I did in "removedFromStage" 
event.
This prevents the crashing problem completely.

Waiting for Flex3 HotFix.

--- In flexcoders@yahoogroups.com, Scott Melby <[EMAIL PROTECTED]> wrote:
>
> I have a PopUpButton on which I am setting a Menu as the popUp 
> property.  I have found that the popUp attribute is being nulled 
when 
> the PopUpButton is removed from the stage... which causes my button 
to 
> not function properly when added back to the stage.  I traced the 
issue 
> to the following code in PopUpButton.as which appears to be 
incorrect.  
> In this code the _popUp member (backing for the popUp setters and 
> getters) is nulled.
> 
> private function removedFromStageHandler(event:Event):void
> {
> // Ensure we've unregistered ourselves from PopupManager, 
else
> // we'll be leaked.
> if (_popUp) {
> PopUpManager.removePopUp(_popUp);
> _popUp = null;
> }
> }
> 
> To workaround this issue I had to listen for the addedToStage event 
in 
> my view that uses this component and re-set the popUp property each 
time 
> as follows.
> 
> /**
>  * Called each time this view is added to the stage.  
We 
> need this to work
>  * around an issue where the PopUpButton has a null 
popUp
>  * property each time it has been removed from the 
stage.
>  */
> public function handleAddedToStage():void{
>if(this.createButton != null && this._buttonMenu != 
null){
>   this.createButton.popUp = _buttonMenu;
>}
> }
> 
> 
> Has anybody else seen this?  Can somebody please let me know if 
this is 
> a bug in the toolkit?  The workaround works fine... but seems like 
it 
> should not be necessary.
> 
> Thanks
> Scott
> 
> -- 
> Scott Melby
> Founder, Fast Lane Software LLC
> http://www.fastlanesw.com
>




[flexcoders] Re: Flex 3: Cloning WebService instance

2008-03-26 Thread handitan
After spending quite some time with mixed result in webservice 
introspection, I decided to holdoff using it until the hotfix comes 
out.

I did find something that might fully serve my purpose. So far, it 
has been working well.
Check this out:
http://techpolesen.blogspot.com/2007/11/coping-with-flex-asynchronous-
remote.html

Kudos to Per Olesen!


--- In flexcoders@yahoogroups.com, "Randy Martin" <[EMAIL PROTECTED]> wrote:
>
> You really need to take a look at the webservice introspection 
wizard in FB
> 3. The code it generates handles asynchronous calls to the 
webservice
> automatically. Click on the Data menu and select Import Web Service
> (WSDL)... Follow the directions in the wizard. Only SOAP 1.1 is 
supported by
> the wizard, so be sure to select the correct SOAP version when 
doing the
> import.
>  
> ~randy
> 
> 
>_  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Monday, March 24, 2008 10:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex 3: Cloning WebService instance
> 
> 
> 
> With what I want to achieve, webservices that I am referring to are 
> instances of the same webservices (one single url).
> 
> Single WebService instance will not work on my application because 
my 
> app sometimes need to call different/same operations concurrently.
> 
> I do want to mention the issue I am facing if I am not using the 
> cloning-approach.
> Please take a look at this code:
> class CustomWS
> {
> public getWS():WebService
> {
> var myWS:WebService = new WebService;
> myWS.wsdl = "HYPERLINK
> "http://BoogaBooga/coolFlex.asmx?wsdl"http://BoogaBooga/-coolFlex.-
asmx?wsdl
> ";
> myWS.loadWSDL(-);
> }
> 
> public populateGridWS(-):void
> {
> var ws:WebService = getWS();
> ws.populateGrid(-);
> }
> }
> 
> As you can see each time getWS() is being called, wsdl needs to be 
> loaded, which calling HTTP request.
> That's why I would like to clone the webservice instance (myWS) 
after 
> the wsdl has been loaded so that I can reuse it.
> 
> But if you do have other suggestions on how to resolve this in a 
> better way, I am all ears :)
> 
> --- In HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED], "Peeyush
> Tuli"  
> wrote:
> >
> > Still not sure that cloning is the best option, although 
> centralization
> > of webservices is a good idea.
> > 
> > When you say webservices, does it mean there is a different wsdl 
for
> > each webservice?
> > Or are they just plain multiple instances of the same webservice( 
> one
> > single url)?
> > 
> > A webservice call is operation-centric. So if your flex client 
does 
> not
> > invoke same operations
> > concurrently and there is a single wsdl to load, you could manage 
> with a
> > single webservice
> > instance for the whole application.
> > 
> > ~Peeyush
> > 
> > On Fri, Mar 21, 2008 at 8:50 PM, handitan  wrote:
> > 
> > > Hi Peeyush,
> > >
> > > It's kind of long to explain it but in short, this is to help me
> > > centralize all my webservice call into one location.
> > >
> > > So instead of having  in every component, I am 
> just
> > > calling webservice from a class that contains all the 
WebServices.
> > > i.e.
> > >
> > > class CustomWS
> > > {
> > > public getWS():WebService
> > > {
> > > //This is where the cloning takes place
> > > }
> > >
> > > public populateGridWS(-):void
> > > {
> > > var ws:WebService = getWS();
> > > ws.populateGrid(-);
> > > }
> > > }
> > >
> > > Hope this is pretty clear.
> > >
> > > --- In HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED]
>  40yahoogroups.-com>, "Peeyush
> > > Tuli" 
> > > wrote:
> > >
> > > >
> > > > Can you let us know the your requirement for doing this?
> > > >
> > > > ~Peeyush
> > > >
> > > > On Fri, Mar 21, 2008 at 4:01 AM, handitan  wrote:
> > > >
> > > > > Howdy,
> > > > >
> > > > > I have been trying to clone a WebService instance with no 
> result.
> > > > > Is it really possible to do it?
> > > > >
> > > > > I have looked on the web and Flex 3 help but I couldn't 
find 
> the
> > > way.
> > > > > I already tried using ObjectUtil.copy(-) but it is not 
copying 
> all
> > > the
> > > > > webservice's members.
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > > 
> > >
> >
> 
> 
> 
>  
> 
> 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 
3/23/2008
> 6:50 PM
>




[flexcoders] Re: Flex 3, generated webservice classes, Namespace error.

2008-03-25 Thread handitan
Bump this thread up since I have the same issue as well.



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Addl info: 
> 
> That is a run-time error, and I am implementing the webservice 
using AS,
> not mxml.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of Tracy Spratt
> Sent: Tuesday, February 12, 2008 2:37 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 3, generated webservice classes, 
Namespace
> error.
> 
>  
> 
> Using the very latest Flex Builder, I have used the "Import Web 
Service"
> functionality to generate a set of webservice classes from my own 
simple
> web service(.net asmx).
> 
> When I try to call one of my operations, my web service is hit, and 
the
> data is returned and visible in the Flex debugger, but I get an 
error in
> the result handling code:
> 
> Cannot find definition for type
> 'http://www.Lariatinc.com/Coalesce/::getItemsResult_type0'
>  
> 
> That is the namespace I have assigned in my webservice, and that is 
the
> generated type class.
> 
> But how do I tell the generated WS code to use that namespace?  And 
it
> is just on the result end, the other classes work fine.
> 
> Generated code is great, but when there is a problem, it is hard to 
know
> where to look for a solution.
> 
> Tracy
>




[flexcoders] Re: Flex 3: Cloning WebService instance

2008-03-25 Thread handitan
Ugh, I heard about that issue. I thought that had been resolved on B2.

Thx for the info, Jon.

--- In flexcoders@yahoogroups.com, Jon Bradley <[EMAIL PROTECTED]> wrote:
>
> Then have a blast trying to deal with WSDL security issues because  
> you have to manually form the headers yourself, making the whole  
> process quite painful.
> 
> I wish there were a better way to do it on OS X. There's a .NET  
> application that can help if you're on Windows (http:// 
> www.flextense.net/).
> 
> ugh.
> 
> jon
> 
> On Mar 25, 2008, at 11:25 AM, handitan wrote:
> 
> > Cool!
> > I was being told by someone else about it too.
> > Will try it out.
> >
>




[flexcoders] Re: Flex 3: Cloning WebService instance

2008-03-25 Thread handitan
Cool!
I was being told by someone else about it too.
Will try it out.

Thx Randy!

--- In flexcoders@yahoogroups.com, "Randy Martin" <[EMAIL PROTECTED]> wrote:
>
> You really need to take a look at the webservice introspection 
wizard in FB
> 3. The code it generates handles asynchronous calls to the 
webservice
> automatically. Click on the Data menu and select Import Web Service
> (WSDL)... Follow the directions in the wizard. Only SOAP 1.1 is 
supported by
> the wizard, so be sure to select the correct SOAP version when 
doing the
> import.
>  
> ~randy
> 
> 
>_  
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Monday, March 24, 2008 10:21 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex 3: Cloning WebService instance
> 
> 
> 
> With what I want to achieve, webservices that I am referring to are 
> instances of the same webservices (one single url).
> 
> Single WebService instance will not work on my application because 
my 
> app sometimes need to call different/same operations concurrently.
> 
> I do want to mention the issue I am facing if I am not using the 
> cloning-approach.
> Please take a look at this code:
> class CustomWS
> {
> public getWS():WebService
> {
> var myWS:WebService = new WebService;
> myWS.wsdl = "HYPERLINK
> "http://BoogaBooga/coolFlex.asmx?wsdl"http://BoogaBooga/-coolFlex.-
asmx?wsdl
> ";
> myWS.loadWSDL(-);
> }
> 
> public populateGridWS(-):void
> {
> var ws:WebService = getWS();
> ws.populateGrid(-);
> }
> }
> 
> As you can see each time getWS() is being called, wsdl needs to be 
> loaded, which calling HTTP request.
> That's why I would like to clone the webservice instance (myWS) 
after 
> the wsdl has been loaded so that I can reuse it.
> 
> But if you do have other suggestions on how to resolve this in a 
> better way, I am all ears :)
> 
> --- In HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED], "Peeyush
> Tuli"  
> wrote:
> >
> > Still not sure that cloning is the best option, although 
> centralization
> > of webservices is a good idea.
> > 
> > When you say webservices, does it mean there is a different wsdl 
for
> > each webservice?
> > Or are they just plain multiple instances of the same webservice( 
> one
> > single url)?
> > 
> > A webservice call is operation-centric. So if your flex client 
does 
> not
> > invoke same operations
> > concurrently and there is a single wsdl to load, you could manage 
> with a
> > single webservice
> > instance for the whole application.
> > 
> > ~Peeyush
> > 
> > On Fri, Mar 21, 2008 at 8:50 PM, handitan  wrote:
> > 
> > > Hi Peeyush,
> > >
> > > It's kind of long to explain it but in short, this is to help me
> > > centralize all my webservice call into one location.
> > >
> > > So instead of having  in every component, I am 
> just
> > > calling webservice from a class that contains all the 
WebServices.
> > > i.e.
> > >
> > > class CustomWS
> > > {
> > > public getWS():WebService
> > > {
> > > //This is where the cloning takes place
> > > }
> > >
> > > public populateGridWS(-):void
> > > {
> > > var ws:WebService = getWS();
> > > ws.populateGrid(-);
> > > }
> > > }
> > >
> > > Hope this is pretty clear.
> > >
> > > --- In HYPERLINK
> "mailto:flexcoders%40yahoogroups.com"[EMAIL PROTECTED]
>  40yahoogroups.-com>, "Peeyush
> > > Tuli" 
> > > wrote:
> > >
> > > >
> > > > Can you let us know the your requirement for doing this?
> > > >
> > > > ~Peeyush
> > > >
> > > > On Fri, Mar 21, 2008 at 4:01 AM, handitan  wrote:
> > > >
> > > > > Howdy,
> > > > >
> > > > > I have been trying to clone a WebService instance with no 
> result.
> > > > > Is it really possible to do it?
> > > > >
> > > > > I have looked on the web and Flex 3 help but I couldn't 
find 
> the
> > > way.
> > > > > I already tried using ObjectUtil.copy(-) but it is not 
copying 
> all
> > > the
> > > > > webservice's members.
> > > > >
> > > > > Thank you.
> > > > >
> > > > >
> > > > >
> > > >
> > >
> > > 
> > >
> >
> 
> 
> 
>  
> 
> 
> No virus found in this outgoing message.
> Checked by AVG. 
> Version: 7.5.519 / Virus Database: 269.21.8/1340 - Release Date: 
3/23/2008
> 6:50 PM
>




[flexcoders] Re: Flex 3: Cloning WebService instance

2008-03-24 Thread handitan
With what I want to achieve, webservices that I am referring to are 
instances of the same webservices (one single url).

Single WebService instance will not work on my application because my 
app sometimes need to call different/same operations concurrently.

I do want to mention the issue I am facing if I am not using the 
cloning-approach.
Please take a look at this code:
 class CustomWS
 {
   public getWS():WebService
   {
 var myWS:WebService = new WebService;
 myWS.wsdl = "http://BoogaBooga/coolFlex.asmx?wsdl";;
 myWS.loadWSDL();
   }

   public populateGridWS():void
   {
 var ws:WebService = getWS();
 ws.populateGrid();
   }
 }

As you can see each time getWS() is being called, wsdl needs to be 
loaded, which calling HTTP request.
That's why I would like to clone the webservice instance (myWS) after 
the wsdl has been loaded so that I can reuse it.

But if you do have other suggestions on how to resolve this in a 
better way, I am all ears :)








--- In flexcoders@yahoogroups.com, "Peeyush Tuli" <[EMAIL PROTECTED]> 
wrote:
>
> Still not sure that cloning is the best option, although 
centralization
> of webservices is a good idea.
> 
> When you say webservices, does it mean there is a different wsdl for
> each webservice?
> Or are they  just plain multiple instances of the same webservice( 
one
> single url)?
> 
> A webservice call is operation-centric. So if your flex client does 
not
> invoke same operations
> concurrently and there is a single wsdl to load, you could manage 
with a
> single webservice
> instance for the whole application.
> 
> ~Peeyush
> 
> On Fri, Mar 21, 2008 at 8:50 PM, handitan <[EMAIL PROTECTED]> wrote:
> 
> >   Hi Peeyush,
> >
> > It's kind of long to explain it but in short, this is to help me
> > centralize all my webservice call into one location.
> >
> > So instead of having  in every component, I am 
just
> > calling webservice from a class that contains all the WebServices.
> > i.e.
> >
> > class CustomWS
> > {
> > public getWS():WebService
> > {
> > //This is where the cloning takes place
> > }
> >
> > public populateGridWS():void
> > {
> > var ws:WebService = getWS();
> > ws.populateGrid();
> > }
> > }
> >
> > Hope this is pretty clear.
> >
> > --- In flexcoders@yahoogroups.com , "Peeyush
> > Tuli" 
> > wrote:
> >
> > >
> > > Can you let us know the your requirement for doing this?
> > >
> > > ~Peeyush
> > >
> > > On Fri, Mar 21, 2008 at 4:01 AM, handitan  wrote:
> > >
> > > > Howdy,
> > > >
> > > > I have been trying to clone a WebService instance with no 
result.
> > > > Is it really possible to do it?
> > > >
> > > > I have looked on the web and Flex 3 help but I couldn't find 
the
> > way.
> > > > I already tried using ObjectUtil.copy() but it is not copying 
all
> > the
> > > > webservice's members.
> > > >
> > > > Thank you.
> > > >
> > > >
> > > >
> > >
> >
> >  
> >
>




[flexcoders] Re: Flex 3: Cloning WebService instance

2008-03-21 Thread handitan
Hi Peeyush,

It's kind of long to explain it but in short, this is to help me 
centralize all my webservice call into one location.

So instead of having  in every component, I am just 
calling webservice from a class that contains all the WebServices.
i.e.

class CustomWS
{
  public getWS():WebService
  {
//This is where the cloning takes place
  }

  public populateGridWS():void
  {
var ws:WebService = getWS();
ws.populateGrid();
  }
}

Hope this is pretty clear.

--- In flexcoders@yahoogroups.com, "Peeyush Tuli" <[EMAIL PROTECTED]> 
wrote:
>
> Can you let us know the your requirement for doing this?
> 
> ~Peeyush
> 
> On Fri, Mar 21, 2008 at 4:01 AM, handitan <[EMAIL PROTECTED]> wrote:
> 
> >   Howdy,
> >
> > I have been trying to clone a WebService instance with no result.
> > Is it really possible to do it?
> >
> > I have looked on the web and Flex 3 help but I couldn't find the 
way.
> > I already tried using ObjectUtil.copy() but it is not copying all 
the
> > webservice's members.
> >
> > Thank you.
> >
> >  
> >
>




Re: SPAM-LOW: [flexcoders] Flex 2.0.1: How to detect internet connectivity in Flex?

2007-12-04 Thread handitan
@Ben: That's what I am currently doing too.

@Jeffry: For sure, Flex app has to be loaded first. This detection 
should only occur when the app is running.

Thx for the input!

--- In flexcoders@yahoogroups.com, Jeffry Houser <[EMAIL PROTECTED]> wrote:
>
>   AIR does, but so far as I know Flex doesn't.
> 
>   Flex is usually delivered through a browser.  IF they can load 
it, we 
> just kind of assume they are connected.
> 
> handitan wrote:
> > 
> > 
> > I am curious to see if Flex framework has a functionality to do 
that.
> > 
> > So far, I have found none.
> > 
> 
> 
> -- 
> Jeffry Houser, Technical Entrepreneur, Software Developer, Author, 
> Recording Engineer
> AIM: Reboog711  | Phone: 1-203-379-0773
> --
> My Company: <http://www.dot-com-it.com>
> My Podcast: <http://www.theflexshow.com>
> My Blog: <http://www.jeffryhouser.com>
>




[flexcoders] Flex 2.0.1: How to detect internet connectivity in Flex?

2007-12-03 Thread handitan
I am curious to see if Flex framework has a functionality to do that.

So far, I have found none.





[flexcoders] Re: Adobe AIR runs on U3?

2007-12-03 Thread handitan
Argh... sorry for not replying before, Tom.
I open too many threads and forgot to bookmark some of them 
(including this one).

Here's about u3:
http://www.u3.com/

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Thursday 15 Nov 2007, handitan wrote:
> > Does anybody know if it is possible to write Adobe AIR 
applications
> > that run on U3 drives?
> 
> On what ?
> AIR applications can be brought to the system on any media the O/S 
recognises, 
> and then installed.
> 
> -- 
> Tom Chiverton
> Helping to advantageously drive integrated portals
> 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 Solicitors 
Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] Re: Flex 2.0.1: Can shared objects be saved in any location that we want?

2007-11-20 Thread handitan
Thx Tom!

That's what I thought too.
I guess that I am going to try out Zinc because I need to write files 
into specific locations.


--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]> 
wrote:
>
> On Sunday 18 Nov 2007, handitan wrote:
> > I am trying to saved shared objects in my thumb drive but no 
result so
> > far.
> 
> You mean SharedObject's ? No, you can't change where those go.
> 
> -- 
> Tom Chiverton
> Helping to continually synergize network action-items
> 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 Solicitors 
Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named 
above and may be confidential or legally privileged.  If you are not 
the addressee you must not read it and must not use any information 
contained in nor copy it nor inform any person other than Halliwells 
LLP or the addressee of its existence or contents.  If you have 
received this email in error please delete it and notify Halliwells 
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




[flexcoders] AIR: Has anyone released AIR product commercially?

2007-11-18 Thread handitan
I am just wondering if anyone has done that?
And would like to know your experience since it's still in Beta?

Thank you.



[flexcoders] Flex 2.0.1: Can shared objects be saved in any location that we want?

2007-11-18 Thread handitan
Trying to see if that can be done.

I am trying to saved shared objects in my thumb drive but no result so 
far.

Any thoughts?



[flexcoders] Re: Animated overSkin (how to use more than one frame of a symbol)

2007-11-16 Thread handitan
Hi Mark,

Maybe this will help you:
http://www.tink.ws/blog/seemless-animated-skins-in-flex/


--- In flexcoders@yahoogroups.com, "Mark Ingram" <[EMAIL PROTECTED]> wrote:
>
> Hi, does anyone know if it's possible to have an animated overSkin 
for a
> button? Our designer has created an overSkin which just extends the
> normal skin, making it feel like it grows when the mouse is over it.
> However, when I embed it in our flex application, it constantly 
flicks
> between 1 frame of the over skin and then back to the upSkin. How 
can I
> get flex to play nicely with the over state? (i.e. play the full 
symbol
> instead of just use 1 frame).
> 
>  
> 
> Thanks,
> 
>  
> 
> Mark
>




[flexcoders] Adobe AIR runs on U3?

2007-11-15 Thread handitan
Hi gang,

Does anybody know if it is possible to write Adobe AIR applications 
that run on U3 drives? 

Thank you!



[flexcoders] Re: Flex 2.0.1: DataGridColumn width expands to the longest string

2007-11-08 Thread handitan
Thx for the suggestion, Alex.

I will look into that.
--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Given some string, call the DG's measureText method to get the pixel
> size.
> 
>  
> 
> If horizontalScrollPolicy="on", the width should be honored.  
If  "auto"
> things are proportional so I would try making it non-resizable until
> creationComplete then flip it to be resizable.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Wednesday, November 07, 2007 5:51 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 2.0.1: DataGridColumn width expands to 
the
> longest string
> 
>  
> 
> Hi all,
> 
> I know that this issue has been brought several times in this forum 
> but as far as I read there's no solution to this yet.
> 
> Basically, there are 2 things that I want to do:
> 1. I would like the dataGridColumn width to expand to its longest 
> string. 
> 2. This should only happen when the grid is displayed on the 1st 
time.
> 
> Way that I was doing to tackle the issue:
> - I made a custom DataGridColumn that enables me to calculate the 
> longest string length (fyi,I don't know how to determine the pixel 
> size so I just use some number <-- if you know how to get the pixel 
> size, please let me know) by inspecting the string whenever 
> itemToLabel function is called and assign that value to width.
> Unfortunately, the result is very messy. The column is not just 
> rendering correctly and you cannot resize the column anymore.
> 
> Anyway, I would like to get some ideas on how you all would take 
this 
> issue.
> 
> Thank you for reading!
>




[flexcoders] Flex 2.0.1: DataGridColumn width expands to the longest string

2007-11-07 Thread handitan
Hi all,

I know that this issue has been brought several times in this forum 
but as far as I read there's no solution to this yet.

Basically, there are 2 things that I want to do:
1. I would like the dataGridColumn width to expand to its longest 
string. 
2. This should only happen when the grid is displayed on the 1st time.

Way that I was doing to tackle the issue:
- I made a custom DataGridColumn that enables me to calculate the 
longest string length (fyi,I don't know how to determine the pixel 
size so I just use some number <-- if you know how to get the pixel 
size, please let me know) by inspecting the string whenever 
itemToLabel function is called and assign that value to width.
Unfortunately, the result is very messy. The column is not just 
rendering correctly and you cannot resize the column anymore.


Anyway, I would like to get some ideas on how you all would take this 
issue.

Thank you for reading!
   



[flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-07 Thread handitan
Hi Muzak,

Thank you for the suggestion.
Hmmm..how do you transform it to a BitmapData? So far I haven't 
gotten any success out of it.
 
--- In flexcoders@yahoogroups.com, "Muzak" <[EMAIL PROTECTED]> wrote:
>
> Display the images as bitmapdata in the itemrenderer.
> So rather than passing the image url to the itemrenderer, load the 
image upfront, transform into bitmapdata and pass that on to the 
> itemrenderer.
> 
> Haven't tried it, but think it should work.
> 
> regards,
> Muzak
> 
> - Original Message - 
> From: "handitan" <[EMAIL PROTECTED]>
> To: 
> Sent: Monday, November 05, 2007 12:16 AM
> Subject: [flexcoders] Re: Flex 2.0.1: itemRenderer won't get 
printed using PrintDataGrid
> 
> 
> I try to use SuperImage but I couldn't get it to work as an
> itemRenderer.
> 
> If there's any other way besides using SuperImage, I am all ears.
>




[flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-11-04 Thread handitan
I try to use SuperImage but I couldn't get it to work as an 
itemRenderer.

If there's any other way besides using SuperImage, I am all ears.

--- In flexcoders@yahoogroups.com, "handitan" <[EMAIL PROTECTED]> wrote:
>
> Oh boy... you're the last person I expect to say that :( *sigh*
> 
> I will checkout the website. Thx for the info.
> 
> 
> --- In flexcoders@yahoogroups.com, "Alex Harui"  wrote:
> >
> > Printing images is hard because image loading is asynchronous.  
> Check
> > out SuperImage on quietlyscheming.com.  It may help.
> > 
> >  
> > 
> > ____
> > 
> > From: flexcoders@yahoogroups.com 
> [mailto:[EMAIL PROTECTED] On
> > Behalf Of handitan
> > Sent: Tuesday, October 23, 2007 3:14 PM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Flex 2.0.1: itemRenderer won't get printed 
> using
> > PrintDataGrid
> > 
> >  
> > 
> > Hi,
> > 
> > I have an interesting problem here.
> > FYI, I have searched through the forum, and reading the docs but 
I 
> > still couldn't find the solution. I think I do know what's the 
> > problem.
> > 
> > Here's the situation:
> > I have a datagrid with 3 columns. One of the columns has an 
> > itemRenderer that will display an image. This itemRenderer loads 
> the 
> > images in REAL-TIME <--- this is important for the issue that I 
am 
> > going to point out.
> > The image got displayed when I run the app ,and when I print the 
> > dataGrid by having it as a child of FlexPrintJob object will also 
> > print out the image.
> > 
> > Now here comes the problem:
> > As you all know, it's better to use PrintDataGrid for 
optimization, 
> > well-formatted output, yada yada 
> > 
> > So I include PrintDataGrid in my print function, assigning it 
with 
> > the neccessary dataProvider and columns, here's the example:
> > -
> > printView.thePrintDataGrid.dataProvider = 
> dataGridSource.dataProvider;
> > printView.thePrintDataGrid.columns = dataGridSource.columns;
> > -
> > And then add printView to the FlexPrintJob obj as its child:
> > -
> > printJob.addObject(printView);
> > -
> > 
> > After that, I ask the dataGrid to be printed again and the image 
> > won't be printed out.
> > So after quite long investigation, I found out that the images 
> don't 
> > get displayed because thePrintDataGrid doesn't have enough time 
to 
> > load the images. If I embed the image in compile-time using 
@Embed 
> > yada..yada..., the image will be printed but I don't want it to 
be 
> in 
> > compile-time.
> > 
> > Please enlighten this grasshopper.
> > 
> > So
> >
>




[flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue

2007-11-02 Thread handitan
Thx Alex!

You're the man!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> The recommended practice is to define the fontSize on the column 
and not
> the label.
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Friday, November 02, 2007 8:49 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for 
this
> interesting printing format issue
> 
> 
> 
> Does anyone have any ideas/suggestions to tackle this printing 
issue?
> I hope my explanation was clear enough.
> 
> Thank you for reading.
> 
> --- In flexcoders@yahoogroups.com <mailto:flexcoders%
40yahoogroups.com>
> , "handitan"  wrote:
> >
> > I have been trying to solve this issue for days but still 
couldn't 
> > find the right solution.
> > 
> > I am going to make as simple as I can about the issue.
> > Here's the situation:
> > I have this DataGrid
> > 
> > 
> >  > itemRenderer="Renderer.NameRenderer"/> 
> >  > itemRenderer="Renderer.NameRenderer"/> 
> > 
> > 
> > ===
> > Now here's the NameRenderer's definition:
> > 
> > 
> > 
> > 
> > 

[flexcoders] Re: Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue

2007-11-02 Thread handitan
Does anyone have any ideas/suggestions to tackle this printing issue?
I hope my explanation was clear enough.

Thank you for reading.

--- In flexcoders@yahoogroups.com, "handitan" <[EMAIL PROTECTED]> wrote:
>
> I have been trying to solve this issue for days but still couldn't 
> find the right solution.
> 
> I am going to make as simple as I can about the issue.
> Here's the situation:
> I have this DataGrid
> 
>   
>   itemRenderer="Renderer.NameRenderer"/> 
>   itemRenderer="Renderer.NameRenderer"/> 
>  
> 
> ===
> Now here's the NameRenderer's definition:
> 
>
>   
>   
> 

[flexcoders] Flex 2.0.1: Calling all Flex Masters for this interesting printing format issue

2007-10-30 Thread handitan
I have been trying to solve this issue for days but still couldn't 
find the right solution.

I am going to make as simple as I can about the issue.
Here's the situation:
I have this DataGrid

  
 
 
 

===
Now here's the NameRenderer's definition:

   






==

Now, the grid displays fine in my flex app. Then I added a 
functionality to be able to print the grid using almost exactly the 
same like in this example:
http://livedocs.adobe.com/flex/2/langref/mx/printing/PrintDataGrid.htm
l#includeExamplesSummary
with the following exceptions:
- My FormPrintView doesn't have the all of the  stuffs in 
PrintDataGrid.
- Inside my doPrint() (this is in PrintDataGridExample section) under
 thePrintView.myDataGrid.dataProvider = myDataGrid.dataProvider 
statement, I add this:
thePrintView.myDataGrid.columns = myDataGrid.columns;
==
Now when I print it out, everything is working fine and dandy (good 
job Flex team!).

Then one day, I was told to do a "bit" change. The Printouts need to 
be in font-size 8 instead of 14. The grid looks great on the web 
using font-size 14 but when it is being printed out, it needs to be 
in font-size 8.

So my question is how do you do that?
Just to let you know, these were the things that I try:
- In my FormPrintView, I added this attribute 'fontSize="8"'. I 
thought that this will take care the problem but it didn't. It wasn't 
overriding myLabel's fontSize.
- Then I do another way using Bindable strategy, this is what I did:
== Create a global variable to store the font size.

  package myGlobals
  {
 [Bindable]
 public class GlobalFont
 {
public static const DEFAULT_SIZE:int = 14;
public static const PRINT_SIZE:int = 8;
public static var myFontSize:int = DEFAULT_SIZE;
 }
  }

==Then in NameRenderer, I change myLabel to be like this:


==Then on my doPrint(), I add this before I assign the dataProvider 
and columns to thePrintView.myDataGrid:
GlobalFont.myFontSize = GlobalFont.PRINT_SIZE

==Then I do the print.
Result: It prints out with the font-size 8 :) But the Flex app will 
show all my grid's column content to be shifted off the column after 
I scroll the grid up/down (you have to have large data that will have 
the vertical scroll bar to appear). You can fix the display again but 
clicking the column's header.

Again I call all Flex Masters to share your wisdom in this matter.
I have been given a deadline to fix this by early next week. So all 
ideas/suggestions/anything will help.

Thank you!







[flexcoders] Re: Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-10-23 Thread handitan
Oh boy... you're the last person I expect to say that :( *sigh*

I will checkout the website. Thx for the info.


--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Printing images is hard because image loading is asynchronous.  
Check
> out SuperImage on quietlyscheming.com.  It may help.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Tuesday, October 23, 2007 3:14 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Flex 2.0.1: itemRenderer won't get printed 
using
> PrintDataGrid
> 
>  
> 
> Hi,
> 
> I have an interesting problem here.
> FYI, I have searched through the forum, and reading the docs but I 
> still couldn't find the solution. I think I do know what's the 
> problem.
> 
> Here's the situation:
> I have a datagrid with 3 columns. One of the columns has an 
> itemRenderer that will display an image. This itemRenderer loads 
the 
> images in REAL-TIME <--- this is important for the issue that I am 
> going to point out.
> The image got displayed when I run the app ,and when I print the 
> dataGrid by having it as a child of FlexPrintJob object will also 
> print out the image.
> 
> Now here comes the problem:
> As you all know, it's better to use PrintDataGrid for optimization, 
> well-formatted output, yada yada 
> 
> So I include PrintDataGrid in my print function, assigning it with 
> the neccessary dataProvider and columns, here's the example:
> -
> printView.thePrintDataGrid.dataProvider = 
dataGridSource.dataProvider;
> printView.thePrintDataGrid.columns = dataGridSource.columns;
> -
> And then add printView to the FlexPrintJob obj as its child:
> -
> printJob.addObject(printView);
> -
> 
> After that, I ask the dataGrid to be printed again and the image 
> won't be printed out.
> So after quite long investigation, I found out that the images 
don't 
> get displayed because thePrintDataGrid doesn't have enough time to 
> load the images. If I embed the image in compile-time using @Embed 
> yada..yada..., the image will be printed but I don't want it to be 
in 
> compile-time.
> 
> Please enlighten this grasshopper.
> 
> So
>




[flexcoders] Flex 2.0.1: itemRenderer won't get printed using PrintDataGrid

2007-10-23 Thread handitan
Hi,

I have an interesting problem here.
FYI, I have searched through the forum, and reading the docs but I 
still couldn't find the solution. I think I do know what's the 
problem.

Here's the situation:
I have a datagrid with 3 columns. One of the columns has an 
itemRenderer that will display an image. This itemRenderer loads the 
images in REAL-TIME <--- this is important for the issue that I am 
going to point out.
The image got displayed when I run the app ,and when I print the 
dataGrid by having it as a child of FlexPrintJob object will also 
print out the image.

Now here comes the problem:
As you all know, it's better to use PrintDataGrid for optimization, 
well-formatted output, yada yada 

So I include PrintDataGrid in my print function, assigning it with 
the neccessary dataProvider and columns, here's the example:
-
printView.thePrintDataGrid.dataProvider = dataGridSource.dataProvider;
printView.thePrintDataGrid.columns = dataGridSource.columns;
-
And then add printView to the FlexPrintJob obj as its child:
-
printJob.addObject(printView);
-

After that, I ask the dataGrid to be printed again and the image 
won't be printed out.
So after quite long investigation, I found out that the images don't 
get displayed because thePrintDataGrid doesn't have enough time to 
load the images. If I embed the image in compile-time using @Embed 
yada..yada..., the image will be printed but I don't want it to be in 
compile-time.

Please enlighten this grasshopper.

So 



[flexcoders] Re: Couldn't find item renderer in the event

2007-06-08 Thread handitan
Hi Alex,

It's a MouseEvent with type "mouseDown"

Thx.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Which event?  There's a difference between CLICK and ITEM_CLICK
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Thursday, June 07, 2007 6:02 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Couldn't find item renderer in the event
> 
>  
> 
> Hi,
> 
> I have a datagridColumn's itemRenderer is being set to CheckBox.
> 
> I use a custom datagrid for this so that I would be able to capture 
the 
> mouseEvent.
> 
> When I got the event, I couldn't find the property that tells me 
the 
> CheckBox in the row that I selected.
> 
> If I remember correctly, which I doubt coz I have been working 
late, 
> the flex doc said that it is not included on the event or something.
> 
> Thank you!
>




[flexcoders] Couldn't find item renderer in the event

2007-06-07 Thread handitan
Hi,

I have a datagridColumn's itemRenderer is being set to CheckBox.

I use a custom datagrid for this so that I would be able to capture the 
mouseEvent.

When I got the event, I couldn't find the property that tells me the 
CheckBox in the row that I selected.

If I remember correctly, which I doubt coz I have been working late, 
the flex doc said that it is not included on the event or something.

Thank you!




[flexcoders] Question: DataGridColumn sorting with Boolean value

2007-06-06 Thread handitan
Hi,

I have a datagrid column that filled with Boolean value. Since the 
built-in sorting could not handle this type, I have to make my own 
sort function but I have failed so far :(

This is my compare function:
public function sortBoolean(pObj1:Object, pObj2:Object):int 
{   
//isDefault is a Boolean value
varvalue1:int = obj1.isDefault ? 1 : 0;
var value2:int= obj2.isDefault ? 1 : 0;

if (value1 < value2) {
return -1;
} else if (value1 > value2) {
return 1;
} else {
return 0;
}
}

Whenever I use this sortBoolean, the rows that have isDefault 
to 'True' are being placed not accordingly.

I did try to use string value and use the built-in sorting function 
and it works perfect but unfortunately, I need to use boolean value 
for my project  :(

Please help.



[flexcoders] Re: Checkbox needs to have the same behavior like 'ctrlkey+mouse click' in datagrid

2007-06-04 Thread handitan
Hi Alex,

Thank you for the reply.
After I dig further the forum, I found a thread that actually already 
tackle this problem.

Here's the thread:
http://tech.groups.yahoo.com/group/flexcoders/message/69360

Find the reply by Doug McCune.
He got the solution in his blog.

Doug, you are the man!

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> You could just keep setting selectedIndices
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
> Behalf Of handitan
> Sent: Friday, June 01, 2007 3:06 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Checkbox needs to have the same behavior like
> 'ctrlkey+mouse click' in datagrid
> 
>  
> 
> Hi,
> 
> I have a datagrid that allows me to do select multiple rows by 
holding 
> down ctrlkey and clicking each row, and it also allows me to drag 
those 
> rows to a tree.
> 
> Now, I have been told to replicate this same behavior but with 
checkbox.
> 
> So I already have checkbox as part of the datagridColumn but I got 
> confused on how to solve this after my first solution failed.
> 
> My solution was I am dispatching the ctrkey event to dataGrid and 
let 
> the dataGrid does it magic in saving the selected row as I 
mouseclick 
> the row. 
> 
> public function chkBoxHandler(event:Event):void
> {
> myGrid.dispatchEvent(new KeyboardEvent
> (KeyboardEvent.KEY_DOWN,true,false,0,17,1,true));
> }
> 
>  height="100%" 
> width="100%"
> dragEnabled="true"
> dragEnter="onDragEnter(event)" 
> dragOver="onDragOver(event)" 
> dragDrop="onDragDrop(event)"
> allowMultipleSelection="true"
> doubleClickEnabled="true"
> itemDoubleClick="itemDoubleClickEvt(event)"
> itemClick="itemClickEvt(event)"
> >
> 
>  sortable="false" >
> 
> 
> 
>  click="outerDocument.chkBoxHandler(event)"/> 
> 
> 
> 
> 
> ... and there are multiple other DataGridColumns
> 
> Any ideas?
>




[flexcoders] Checkbox needs to have the same behavior like 'ctrlkey+mouse click' in datagrid

2007-06-02 Thread handitan
Hi,

I have a datagrid that allows me to do select multiple rows by holding 
down ctrlkey and clicking each row, and it also allows me to drag those 
rows to a tree.

Now, I have been told to replicate this same behavior but with checkbox.

So I already have checkbox as part of the datagridColumn but I got 
confused on how to solve this after my first solution failed.

My solution was I am dispatching the ctrkey event to dataGrid and let 
the dataGrid does it magic in saving the selected row as I mouseclick 
the row. 


public function chkBoxHandler(event:Event):void
{
myGrid.dispatchEvent(new KeyboardEvent
(KeyboardEvent.KEY_DOWN,true,false,0,17,1,true));
}












... and there are multiple other DataGridColumns

Any ideas?





[flexcoders] Bypass browser's popUpBlocker

2007-05-25 Thread handitan
Hi all,

I have been doing some research on how to bypass the browser's (IE 6/7 
and FireFox 2.0) popUpBlocker since by using  just won't work 
when you want to open a page on a new window. 
I found a way that it seemed to be working but I want to see if you all 
maybe notice something wrong with it.


So this is how I did it:
I have a  with below properties are being set:
- condenseWhite = true;
- selectable = true;
- link="linkHandler(event)"
- htmlText property is being set to this string (disregard the hyphen):
--



  Home document


---
**
This is the mx:Script for linkHandler:

import flash.events.TextEvent;
public function linkHandler(event:TextEvent):void { 
ExternalInterface.call("popitup", event.text);
}
**
This is the definition of popitup function in index.template.html:
function popitup(url) {
var newwindow=window.open(url, "");
if (window.focus) {newwindow.focus()}
return false;
}
**

I tested in IE and FireFox. They load Home.pdf in a new window without 
any problem.

Please let me know if you notice anything wrong with this or maybe if 
you can suggest a better way.

PS:
If you try to test this in your computer with IE as the browser, 
clicking the link won't give you anything. I think there's a problem 
with trying to resolve the relative path but it works if you put it on 
a webserver.