[flexcoders] Whats up with MXNA

2007-01-31 Thread Jason Hawryluk
4 pages of Cynergy Systems Blog posts (old ones mind you), after page 4
nothing ??

Anyone else getting this..

jason





Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread dorkie dork from dorktown

heres my image:
http://judahfrangipane.com/blog/wp-content/themes/default/bin/images/kubrickheader_mask.png

i'm loading it in externally though. it works at the first url but does not
work in the second url:
http://judahfrangipane.com/blog/wp-content/themes/default/bin/header.html
http://judahfrangipane.com/blog/

code:

http://judahfrangipane.com/blog/wp-content/themes/default/bin/images/kubrickheader_mask.png





and if you need to know this, here are the application creation complete
events:
   
   
   
   
   
   
   
   
   

   

   
   

   
   

On 2/1/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:


http://three.fsphost.com/flex2/png/assets/user.png



--- In flexcoders@yahoogroups.com, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Open it in Fireworks, he's the master of PNG's.  If yall don't have
> it, fire it my way.
>
> [EMAIL PROTECTED]
>
> On Feb 1, 2007, at 12:28 AM, ben.clinkinbeard wrote:
>
> It seems to me like there is something funky going on with the PNG
> itself. Like I said, Photoshop doesn't even recognize the
> transparency, and that makes me uber-suspicious. Is the mime type or
> something along those lines jacked up?
>
> Ben
>
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
>  >
>  > Please file a bug too if you haven't already.
>  >
>  >
>  >
>  > Matt
>  >
>  >
>  >
>  > 
>  >
>  > From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On
>  > Behalf Of Doug McCune
>  > Sent: Wednesday, January 31, 2007 9:29 PM
>  > To: flexcoders@yahoogroups.com
>  > Subject: Re: [flexcoders] Re: PNG transparency failing in @Embed?
>  >
>  >
>  >
>  > Just to follow up, here's my post that explains the issue and my
>  > workaround:
>  > http://dougmccune.com/blog/2007/01/31/problem-with-transparent-
> pngs-in-f
>  > lex-using-embed/
>  >  pngs-in-
>  > flex-using-embed/>
>  >
>  > Doug
>  >
>  > Pan Troglodytes wrote:
>  >
>  > Doug,
>  >
>  > Very cool that you tracked it down in SWFLoader. Right now I
>  > can get by with using GIF, but it's great to know if I absolutely
> have
>  > to have more than 256 colors I can use your code. Hopefully Adobe is
>  > following this thread. Either that, or they already tracked it
> down and
>  > have it fixed internally but just never read my posts. ;)
>  >
>  >
>  >
>  > On 1/31/07, Doug McCune   >  > wrote:
>  >
>  > You're definitely right, that's a clear bug in how SWFLoader
>  > works. I have a solution that involves duplicating the code for
>  > SWFLoader and modifying it a little bit. What's interesting is
> that in
>  > the Design view of FB, the PNG has perfect transparency in both
> cases.
>  > But in the published SWF, the transparency is not preserved when
> using
>  > @Embed.
>  >
>  > I will be writing up a blog post and my solution later today.
>  >
>  > For now, here's a sample of the problem with a working solution.
>  > I'll be writing up the description of what I had to do (obviously
> it's
>  > not much since it didn't take very long). So if you want to check out
>  > the code before I write up the post, the important part has to do
> with
>  > setting the mimeType of the embedded asset, and then in the modified
>  > SWFLoader code, check out around line 1217 in the loadContent
> method. It
>  > uses loadBytes of the Loader class to load the bytes of the embedded
>  > asset.
>  >
>  > http://dougmccune.com/flex/png_test/
>  > 
>  > (right click to View Source)
>  >
>  > Doug
>  >
>  >
>  >
>  >
>  > Pan Troglodytes wrote:
>  >
>  > Could you clarify what you mean by "works for me"? Do you mean
>  > you are getting transparency on the PNG?
>  >
>  > I uploaded my full code for an example:
>  >
>  > http://three.fsphost.com/flex2/png/PNGBug.html
>  > 
>  >
>  > Just right-click to view the source.
>  >
>  > They both use the same png file. The first one renders with an
>  > olive background (the original background color of the image). The
>  > second renders the transparency properly.
>  >
>  > Does this work differently under Flex/Flash Player for you?
>  >
>  >
>  >
>  > On 1/31/07, ben.clinkinbeard   >  > wrote:
>  >
>  >  orks for
>  > me...
>  >
>  > Not sure what else to recommend.
>  >
>  > --- In flexcoders@yahoogroups.com
>  >  , "Pan Troglodytes"
>  >  wrote:
>  > >
>  > > Sadly, no. It also doesn't work if you declare a variable like
>  > >
>  > > [Embed(source="/assets/user-big.png")] private var
>  > userIcon:Class;
>  > >
>  > >
>  > > FYI, from the docs:
>  > >
>  > > About the source parameter
>  > >
>  > > In almost all cases, you must specify the source parameter or
>  > nothing is
>  > > embedded.
>  > >
>  > > The source parameter is the default parameter of the [Embed]
>  > metadata tag;
>  > > th

RE: [flexcoders] AS variables at the top level of a package

2007-01-31 Thread Stembert Olivier \(BIL\)
Sorry, I didn't understand "at the top level of a package"

This one compiled fine.

package
{
public class Test
{
}
}
var var1 : String;

Other examples:
1) compiles fine

package
{   
class Test
{
}
}

var var1 : String;

function dummy():void{}

2) got compilation error
1114: The public attribute can only be used inside a package.

package
{   
class Test
{
}
}

var var1 : String;

public function dummy():void{}

In the AS3.0 pdf page40, one can read:

"If you do declare
variables, functions, or namespaces at the top level of a package, the
only attributes available
at that level are public and internal, and only one package-level
declaration per file can use
the public attribute, whether that declaration is a class, variable,
function, or namespace."

I don't understand why I got the compilation error since I have only one
declaration with the public attribute.

I know it's not very funny...


Rgds,

Olivier



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Stembert Olivier (BIL)
Sent: Thursday, February 01, 2007 8:11 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] AS variables at the top level of a package



Hi again,

In the AS3.0 pdf page39, one can read:

"Many developers, especially those with Java programming backgrounds,
may choose to place only classes at the top level of a package.
ActionScript 3.0, however, supports not only classes at the top level of
a package, but also variables, functions, and even statements."

I tried to compile the following:

package
{
var var1 : String;

public class Test
{
}
}

But got the following error:

A file found in a source-path can not have more than one externally
visible definition. var1;Test

Any ideas?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in
writing and duly signed.
-



 

-

An electronic message is not binding on its sender.

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

-

 


-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] AS variables at the top level of a package

2007-01-31 Thread Stembert Olivier \(BIL\)
Hi again,

In the AS3.0 pdf page39, one can read:

"Many developers, especially those with Java programming backgrounds,
may choose to place only classes at the top level of a package.
ActionScript 3.0, however, supports not only classes at the top level of
a package, but also variables, functions, and even statements."

I tried to compile the following:

package
{
var var1 : String;

public class Test
{
}
}

But got the following error:

A file found in a source-path can not have more than one externally
visible definition. var1;Test


Any ideas?

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Project structure

2007-01-31 Thread Stembert Olivier (BIL)
Hi flexcoders,

I'd like to put many mxml applications in only one eclipse project.
The problem is that I can only put my applications in the main flex
folder. I don't like it because I want to structure my project and put
my applications in subfolders.
Is there a workaround using Flex Builder? I know I can use Flex Ant
tasks.

Rgds,

Olivier

-
An electronic message is not binding on its sender.
Any message referring to a binding engagement must be confirmed in writing and 
duly signed.
-



[flexcoders] Possible to update an XML List collection while keeping a Tree Control open ?

2007-01-31 Thread helihobby
Hello,
I have an XMLListCollection which is used as a data source for a Tree 
control. The problem is that when I get a new update from an HTTP 
Service, the Binding updates the complete Tree thus closing all current 
Leafs.

Is it possible to keep the folders / leafs keep their state while after 
receiving an update on the under line XMLListCollection data source ?

Thanks,

Sean.



[flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread ben.clinkinbeard
http://three.fsphost.com/flex2/png/assets/user.png



--- In flexcoders@yahoogroups.com, JesterXL <[EMAIL PROTECTED]> wrote:
>
> Open it in Fireworks, he's the master of PNG's.  If yall don't have  
> it, fire it my way.
> 
> [EMAIL PROTECTED]
> 
> On Feb 1, 2007, at 12:28 AM, ben.clinkinbeard wrote:
> 
> It seems to me like there is something funky going on with the PNG
> itself. Like I said, Photoshop doesn't even recognize the
> transparency, and that makes me uber-suspicious. Is the mime type or
> something along those lines jacked up?
> 
> Ben
> 
> --- In flexcoders@yahoogroups.com, "Matt Chotin"  wrote:
>  >
>  > Please file a bug too if you haven't already.
>  >
>  >
>  >
>  > Matt
>  >
>  >
>  >
>  > 
>  >
>  > From: flexcoders@yahoogroups.com  
> [mailto:[EMAIL PROTECTED] On
>  > Behalf Of Doug McCune
>  > Sent: Wednesday, January 31, 2007 9:29 PM
>  > To: flexcoders@yahoogroups.com
>  > Subject: Re: [flexcoders] Re: PNG transparency failing in @Embed?
>  >
>  >
>  >
>  > Just to follow up, here's my post that explains the issue and my
>  > workaround:
>  > http://dougmccune.com/blog/2007/01/31/problem-with-transparent- 
> pngs-in-f
>  > lex-using-embed/
>  >  pngs-in-
>  > flex-using-embed/>
>  >
>  > Doug
>  >
>  > Pan Troglodytes wrote:
>  >
>  > Doug,
>  >
>  > Very cool that you tracked it down in SWFLoader. Right now I
>  > can get by with using GIF, but it's great to know if I absolutely  
> have
>  > to have more than 256 colors I can use your code. Hopefully Adobe is
>  > following this thread. Either that, or they already tracked it  
> down and
>  > have it fixed internally but just never read my posts. ;)
>  >
>  >
>  >
>  > On 1/31/07, Doug McCune   >  > wrote:
>  >
>  > You're definitely right, that's a clear bug in how SWFLoader
>  > works. I have a solution that involves duplicating the code for
>  > SWFLoader and modifying it a little bit. What's interesting is  
> that in
>  > the Design view of FB, the PNG has perfect transparency in both  
> cases.
>  > But in the published SWF, the transparency is not preserved when  
> using
>  > @Embed.
>  >
>  > I will be writing up a blog post and my solution later today.
>  >
>  > For now, here's a sample of the problem with a working solution.
>  > I'll be writing up the description of what I had to do (obviously  
> it's
>  > not much since it didn't take very long). So if you want to check out
>  > the code before I write up the post, the important part has to do  
> with
>  > setting the mimeType of the embedded asset, and then in the modified
>  > SWFLoader code, check out around line 1217 in the loadContent  
> method. It
>  > uses loadBytes of the Loader class to load the bytes of the embedded
>  > asset.
>  >
>  > http://dougmccune.com/flex/png_test/
>  > 
>  > (right click to View Source)
>  >
>  > Doug
>  >
>  >
>  >
>  >
>  > Pan Troglodytes wrote:
>  >
>  > Could you clarify what you mean by "works for me"? Do you mean
>  > you are getting transparency on the PNG?
>  >
>  > I uploaded my full code for an example:
>  >
>  > http://three.fsphost.com/flex2/png/PNGBug.html
>  > 
>  >
>  > Just right-click to view the source.
>  >
>  > They both use the same png file. The first one renders with an
>  > olive background (the original background color of the image). The
>  > second renders the transparency properly.
>  >
>  > Does this work differently under Flex/Flash Player for you?
>  >
>  >
>  >
>  > On 1/31/07, ben.clinkinbeard   >  > wrote:
>  >
>  >  orks for
>  > me...
>  >
>  > Not sure what else to recommend.
>  >
>  > --- In flexcoders@yahoogroups.com
>  >  , "Pan Troglodytes"
>  >  wrote:
>  > >
>  > > Sadly, no. It also doesn't work if you declare a variable like
>  > >
>  > > [Embed(source="/assets/user-big.png")] private var
>  > userIcon:Class;
>  > >
>  > >
>  > > FYI, from the docs:
>  > >
>  > > About the source parameter
>  > >
>  > > In almost all cases, you must specify the source parameter or
>  > nothing is
>  > > embedded.
>  > >
>  > > The source parameter is the default parameter of the [Embed]
>  > metadata tag;
>  > > therefore, if you are not specifying any other parameters, you
>  > can just
>  > > supply its value without explicitly including the parameter
>  > name or
>  > > assigning it the desired value
>  > >
>  > >
>  > > On 1/31/07, ben.clinkinbeard  wrote:
>  > > >
>  > > > According to the docs, the correct syntax is:
>  > > >
>  > > > 
>  > > >
>  > > > Does that work?
>  > > >
>  > > > HTH,
>  > > > Ben
>  > > >
>  > > > --- In flexcoders@yahoogroups.com
>  >  ,
>  > "Pan
>  >
>  >
>  > > > Troglodytes"
>  > > >  wrote:
>  > > > >
>  > > > > This is still a problem. I couldn't remember if I enter

[flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread ben.clinkinbeard
It seems to me like there is something funky going on with the PNG
itself. Like I said, Photoshop doesn't even recognize the
transparency, and that makes me uber-suspicious. Is the mime type or
something along those lines jacked up?

Ben


--- In flexcoders@yahoogroups.com, "Matt Chotin" <[EMAIL PROTECTED]> wrote:
>
> Please file a bug too if you haven't already.
> 
>  
> 
> Matt
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Doug McCune
> Sent: Wednesday, January 31, 2007 9:29 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] Re: PNG transparency failing in @Embed?
> 
>  
> 
> Just to follow up, here's my post that explains the issue and my
> workaround:
> http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-f
> lex-using-embed/
>  flex-using-embed/> 
> 
> Doug
> 
> Pan Troglodytes wrote: 
> 
>   Doug,
>   
>   Very cool that you tracked it down in SWFLoader.  Right now I
> can get by with using GIF, but it's great to know if I absolutely have
> to have more than 256 colors I can use your code.  Hopefully Adobe is
> following this thread.  Either that, or they already tracked it down and
> have it fixed internally but just never read my posts. ;) 
>   
>   
> 
>   On 1/31/07, Doug McCune <[EMAIL PROTECTED]
>  > wrote: 
> 
>   You're definitely right, that's a clear bug in how SWFLoader
> works. I have a solution that involves duplicating the code for
> SWFLoader and modifying it a little bit. What's interesting is that in
> the Design view of FB, the PNG has perfect transparency in both cases.
> But in the published SWF, the transparency is not preserved when using
> @Embed.
>   
>   I will be writing up a blog post and my solution later today. 
>   
>   For now, here's a sample of the problem with a working solution.
> I'll be writing up the description of what I had to do (obviously it's
> not much since it didn't take very long). So if you want to check out
> the code before I write up the post, the important part has to do with
> setting the mimeType of the embedded asset, and then in the modified
> SWFLoader code, check out around line 1217 in the loadContent method. It
> uses loadBytes of the Loader class to load the bytes of the embedded
> asset.
>   
>   http://dougmccune.com/flex/png_test/
>  
>   (right click to View Source)
>   
>   Doug
> 
>   
>   
>   
>   Pan Troglodytes wrote: 
> 
>   Could you clarify what you  mean by "works for me"?  Do you mean
> you are getting transparency on the PNG?
>   
>   I uploaded my full code for an example:
>   
>   http://three.fsphost.com/flex2/png/PNGBug.html
>  
>   
>   Just right-click to view the source.
>   
>   They both use the same png file.  The first one renders with an
> olive background (the original background color of the image).  The
> second renders the transparency properly. 
>   
>   Does this work differently under Flex/Flash Player for you?
>   
>   
> 
>   On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]
>  > wrote: 
> 
>orks for
> me...
>   
>   Not sure what else to recommend.
>   
>   --- In flexcoders@yahoogroups.com
>  , "Pan Troglodytes"
>wrote:
>   >
>   > Sadly, no. It also doesn't work if you declare a variable like
>   > 
>   > [Embed(source="/assets/user-big.png")] private var
> userIcon:Class;
>   > 
>   > 
>   > FYI, from the docs:
>   > 
>   > About the source parameter
>   > 
>   > In almost all cases, you must specify the source parameter or
> nothing is
>   > embedded.
>   > 
>   > The source parameter is the default parameter of the [Embed]
>   metadata tag;
>   > therefore, if you are not specifying any other parameters, you
> can just
>   > supply its value without explicitly including the parameter
> name or
>   > assigning it the desired value
>   > 
>   > 
>   > On 1/31/07, ben.clinkinbeard  wrote:
>   > >
>   > > According to the docs, the correct syntax is:
>   > >
>   > > 
>   > >
>   > > Does that work?
>   > >
>   > > HTH,
>   > > Ben
>   > >
>   > > --- In flexcoders@yahoogroups.com
>   ,
> "Pan
> 
>   
>   > > Troglodytes"
>   > >  wrote:
>   > > >
>   > > > This is still a problem. I couldn't remember if I entered
> it in the
>   > > Adobe
>   > > > bug page, so I just went ahead and did it. This is a bit
> of a
>   pain as
>   > > > transparent icons are very important in GUIs. GIF works
> f

RE: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Matt Chotin
Please file a bug too if you haven't already.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Doug McCune
Sent: Wednesday, January 31, 2007 9:29 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: PNG transparency failing in @Embed?

 

Just to follow up, here's my post that explains the issue and my
workaround:
http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-f
lex-using-embed/
 

Doug

Pan Troglodytes wrote: 

Doug,

Very cool that you tracked it down in SWFLoader.  Right now I
can get by with using GIF, but it's great to know if I absolutely have
to have more than 256 colors I can use your code.  Hopefully Adobe is
following this thread.  Either that, or they already tracked it down and
have it fixed internally but just never read my posts. ;) 



On 1/31/07, Doug McCune <[EMAIL PROTECTED]
 > wrote: 

You're definitely right, that's a clear bug in how SWFLoader
works. I have a solution that involves duplicating the code for
SWFLoader and modifying it a little bit. What's interesting is that in
the Design view of FB, the PNG has perfect transparency in both cases.
But in the published SWF, the transparency is not preserved when using
@Embed.

I will be writing up a blog post and my solution later today. 

For now, here's a sample of the problem with a working solution.
I'll be writing up the description of what I had to do (obviously it's
not much since it didn't take very long). So if you want to check out
the code before I write up the post, the important part has to do with
setting the mimeType of the embedded asset, and then in the modified
SWFLoader code, check out around line 1217 in the loadContent method. It
uses loadBytes of the Loader class to load the bytes of the embedded
asset.

http://dougmccune.com/flex/png_test/
 
(right click to View Source)

Doug




Pan Troglodytes wrote: 

Could you clarify what you  mean by "works for me"?  Do you mean
you are getting transparency on the PNG?

I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html
 

Just right-click to view the source.

They both use the same png file.  The first one renders with an
olive background (the original background color of the image).  The
second renders the transparency properly. 

Does this work differently under Flex/Flash Player for you?



On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]
 > wrote: 

 orks for
me...

Not sure what else to recommend.

--- In flexcoders@yahoogroups.com
 , "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Sadly, no. It also doesn't work if you declare a variable like
> 
> [Embed(source="/assets/user-big.png")] private var
userIcon:Class;
> 
> 
> FYI, from the docs:
> 
> About the source parameter
> 
> In almost all cases, you must specify the source parameter or
nothing is
> embedded.
> 
> The source parameter is the default parameter of the [Embed]
metadata tag;
> therefore, if you are not specifying any other parameters, you
can just
> supply its value without explicitly including the parameter
name or
> assigning it the desired value
> 
> 
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> > According to the docs, the correct syntax is:
> >
> > 
> >
> > Does that work?
> >
> > HTH,
> > Ben
> >
> > --- In flexcoders@yahoogroups.com
  ,
"Pan


> > Troglodytes"
> >  wrote:
> > >
> > > This is still a problem. I couldn't remember if I entered
it in the
> > Adobe
> > > bug page, so I just went ahead and did it. This is a bit
of a
pain as
> > > transparent icons are very important in GUIs. GIF works
fine but is
> > limited
> > > to 256 colors.
> > >
> > >
> > >
> > > On 12/6/06, Pan Troglodytes  wrote:
> > > >
> > > > I've run into a situation where the exact same PNG file
will show
> > up as
> > > > transparent only when it's not embedded. Here is the
mxml:
> > > >
> > > > 
> > > > 
> > > >
> >

RE: [flexcoders] Latest FABridge release- is the source complete?

2007-01-31 Thread Matt Chotin
Uh oh, I wonder if the file was mailed around internally for posting.  I
will ping folks.

 

Matt

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, January 31, 2007 4:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Latest FABridge release- is the source complete?

 

I am seeing several files like this and wondering if something got
hosed during the upload process:

FABridg.txt
===
FILE QUARANTINED


Antigen for Exchange removed winmail.dat->FABridge->FABridge.js since it
was found to match the FILE FILTER= unnamed: *.js file filter.

I downloaded the zip from
http://download.macromedia.com/pub/labs/flex/2/FABridge_B4_013007.zip
 

Thanks,
Ben

 



RE: [flexcoders] Time Entry Component

2007-01-31 Thread Matt Chotin
Sweet!

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Wednesday, January 31, 2007 2:58 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Time Entry Component

 

Thanks guys..

Just updated to avoid width shift on am/pm and put an example in there
similar to what Doug suggested for the updatable current time.


Brendan



On 1/31/07, Ely Greenfield <[EMAIL PROTECTED]
 > wrote:

 

 


Awesome work Brendan.

 

 



From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com
 ] On Behalf Of Brendan Meutzner
Sent: Wednesday, January 31, 2007 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Time Entry Component

Hi,

So if it turns out that there is indeed a Time Entry control in Flex, I
end up looking like a doof... HOWEVER, I haven't seen anything remotely
resembling a time entry similar to the Windows time... so

http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html
 

Would love feedback, testing from the group, and then I'll go ahead and
post on Exchange. 


Brendan

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




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

 



[flexcoders] Re: Passing Value Object to CFC as an argument?

2007-01-31 Thread malik_robinson

Hi,

That helps quite a bit.

Two questions arise.

1.  Can you explain the dynamic class usuage and why one might use that?

2.  I always see VO's with an empty function declared after the
properties  (see below) , why is this?

public function securityVO()
  {
  }

Thanks for your help

-M
--- In flexcoders@yahoogroups.com, "Douglas Knudsen"
<[EMAIL PROTECTED]> wrote:
>
> you need a EmployeeVO CFC with matching properties and the full array
of
> mutators and accessors. Further you need to add the metadata to your
AS VO
> so Flex knows how to tie it in to your CFC. THen service.saveEmployee(
> employeeVO ) can work on the EmployeeVO CFC bamm! Below is a example
>
> package com.mycom.myapp.vo
> {
>
> [RemoteClass(alias="myapp.model.security.security")]
>
> [Bindable]
> public dynamic class securityVO implements ValueObject
> {
>
> public var emplid:String = "";
> public var name:String = "";
> public var secgroupid:Number = 0;
> public var secgroup:String = "";
> public var isactive:Boolean = false;
>
>
> public function securityVO()
> {
> }
>
> }
> }
>
>
> 
> 
> 
> 
> 
> 
> 
>
> 
> //Initialize the CFC with the default properties values.
> variables.emplid = "";
> variables.name = '';
> variables.secgroupid = 0;
> variables.secgroup = '';
> variables.isactive = false;
> 
>
> 
> 
> 
>
>
>  returntype="any">
> 
> 
>
>  returntype="void">
> 
> 
> 
>
>  returntype="any">
> 
> 
>
>  returntype="void">
> 
> 
> 
>
>  returntype="any">
> 
> 
>
>  returntype="void">
> 
> 
> 
> 
> 
> 
> 
>
>  returntype="boolean">
> 
> 
>
>  returntype="void">
> 
> 
> 
> 
> 
> 
> 
>
>  returntype="any">
> 
> 
>
>  returntype="void">
> 
> 
> 
>
> 
>
> The above is how the CF-Extension wizards create things.
>
> DK
> On 1/31/07, malik_robinson [EMAIL PROTECTED] wrote:
> >
> > Hi,
> >
> > I am confused on how pass in arguments to the CFC when I am sending
a
> > ValueObject in from Flex. I have this code.
> >
> > *public* *function* saveEmployee( employeeVO : EmployeeVO ): *void*
{
> >
> > *var* call:AsyncToken = service.saveEmployee( employeeVO );
> >
> > call.addResponder( responder );
> >
> > }
> >
> > The parameter employeeVO in the above function contains all the data
the
> > user typed in on my form. I want to pass this data to my CFC as an
> > argument.
> >
> > From there I *think* I can do the rest.
> >
> > How do I do this?
> >
> > -Malik
> >
> >
>
>
>
> --
> Douglas Knudsen
> http://www.cubicleman.com
> this is my signature, like it?
>





[flexcoders] Re: fixed the problem!!

2007-01-31 Thread ben.clinkinbeard
No, casting in AS takes the form of TypeToCastTo(objectToCast), and
objectToCast as TypeToCastTo is virtually identical, except for the
fact that a failed cast with as returns null, and the more traditional
syntax will throw an exception upon failure.

new ArrayCollection(something) calls the constructor, whose only
(optional) argument is the Array instance to use as the source for the
collection.

More explanation and discussion here:
http://tech.groups.yahoo.com/group/flexcoders/message/61175

HTH,
Ben


--- In flexcoders@yahoogroups.com, Doug McCune <[EMAIL PROTECTED]> wrote:
>
> I believe: ArrayCollection(something)
> will do the same thing as: new ArrayCollection(something)
> and not the same thing as: something as ArrayCollection
> 
> To cast to ArrayCollection you have to use "as"
> 
> Doug
> 
> Tracy Spratt wrote:
> >
> > Good question.  I still stumble over casts vs new vs top-level 
> > functions.  I bet that will work.
> >
> > Tracy
> >
> >  
> >
> >

> >
> > *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] 
> > *On Behalf Of *ben.clinkinbeard
> > *Sent:* Wednesday, January 31, 2007 7:45 PM
> > *To:* flexcoders@yahoogroups.com
> > *Subject:* [flexcoders] Re: fixed the problem!!
> >
> >  
> >
> > Does myExperiments =
> > ArrayCollection(event.result.experiments.experiment) work?
> >
> > --- In flexcoders@yahoogroups.com 
> > , "Tracy Spratt" 
wrote:
> > >
> > > That IS unexpected.
> > >
> > > Tracy
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
> >  
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of Cashorali, Tanya M.
> > > Sent: Wednesday, January 31, 2007 1:27 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: [flexcoders] fixed the problem!!
> > >
> > >
> > >
> > > Well, who knew that myExperiments =
event.result.experiments.experiment
> > > as ArrayCollection would work
> > >
> > >
> > >
> > > But myExperiments = new
> > > ArrayCollection(event.result.experiments.experiment) wouldn't?
> > >
> > >
> > >
> > > Lots of hours of aggravation, but Flex is so pretty it's almost
worth
> > > it.
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
> >  
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of Cashorali, Tanya M.
> > > Sent: Wednesday, January 31, 2007 12:46 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: RE: [flexcoders] Binding HTTPService xml to
ArrayCollection for
> > > Datagrid
> > >
> > >
> > >
> > > Ok after a lot of painful debugging.. I've found something strange.
> > >
> > >
> > >
> > > Instead of an ArrayCollection, I declared myExperiments as an
Object.
> > >
> > > The XML format is like this:
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > > 
> > >
> > >
> > >
> > > private function resultHandler(event:ResultEvent):void
> > >
> > > {
> > >
> > > myExperiments = event.result.experiments.experiment;
> > >
> > > }
> > >
> > >
> > >
> > > Then I set my dataprovider in my datagrid = myExperiments and
for some
> > > reason this works to display the experiments.
> > >
> > > Why doesn't an ArrayCollection work?
> > >
> > >
> > >
> > > Sorry for all the emails but this has been a problem for too
long and
> > > seems like it should be simple.
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
> >  
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of Cashorali, Tanya M.
> > > Sent: Wednesday, January 31, 2007 12:36 PM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: RE: [flexcoders] Binding HTTPService xml to
ArrayCollection for
> > > Datagrid
> > >
> > >
> > >
> > > Please I just need to know how to bind the results of an HTTPService
> > > request (which generates XML) to an ArrayCollection!!!
> > >
> > >
> > > I don't think it should be this difficult!?!
> > >
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com 
> >  
> > [mailto:flexcoders@yahoogroups.com 
> > ] On
> > > Behalf Of Cashorali, Tanya M.
> > > Sent: Wednesday, January 31, 2007 11:16 AM
> > > To: flexcoders@yahoogroups.com 
> > > Subject: RE: [flexcoders] Binding HTTPService xml to
ArrayCollection for
> > > Datagrid
> > >
> > >
> > >
> > > Still no luck.. I'm trying to check the length of the array and an
> > >

Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Doug McCune
Just to follow up, here's my post that explains the issue and my 
workaround: 
http://dougmccune.com/blog/2007/01/31/problem-with-transparent-pngs-in-flex-using-embed/


Doug

Pan Troglodytes wrote:


Doug,

Very cool that you tracked it down in SWFLoader.  Right now I can get 
by with using GIF, but it's great to know if I absolutely have to have 
more than 256 colors I can use your code.  Hopefully Adobe is 
following this thread.  Either that, or they already tracked it down 
and have it fixed internally but just never read my posts. ;)



On 1/31/07, *Doug McCune* <[EMAIL PROTECTED] 
> wrote:


You're definitely right, that's a clear bug in how SWFLoader
works. I have a solution that involves duplicating the code for
SWFLoader and modifying it a little bit. What's interesting is
that in the Design view of FB, the PNG has perfect transparency in
both cases. But in the published SWF, the transparency is not
preserved when using @Embed.

I will be writing up a blog post and my solution later today.

For now, here's a sample of the problem with a working solution.
I'll be writing up the description of what I had to do (obviously
it's not much since it didn't take very long). So if you want to
check out the code before I write up the post, the important part
has to do with setting the mimeType of the embedded asset, and
then in the modified SWFLoader code, check out around line 1217 in
the loadContent method. It uses loadBytes of the Loader class to
load the bytes of the embedded asset.

http://dougmccune.com/flex/png_test/

(right click to View Source)

Doug




Pan Troglodytes wrote:


Could you clarify what you  mean by "works for me"?  Do you mean
you are getting transparency on the PNG?

I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html


Just right-click to view the source.

They both use the same png file.  The first one renders with an
olive background (the original background color of the image). 
The second renders the transparency properly.


Does this work differently under Flex/Flash Player for you?


On 1/31/07, *ben.clinkinbeard* <[EMAIL PROTECTED]
> wrote:

 orks for
me...

Not sure what else to recommend.

--- In flexcoders@yahoogroups.com
, "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Sadly, no. It also doesn't work if you declare a variable like
>
> [Embed(source="/assets/user-big.png")] private var
userIcon:Class;
>
>
> FYI, from the docs:
>
> About the source parameter
>
> In almost all cases, you must specify the source parameter
or nothing is
> embedded.
>
> The source parameter is the default parameter of the [Embed]
metadata tag;
> therefore, if you are not specifying any other parameters,
you can just
> supply its value without explicitly including the parameter
name or
> assigning it the desired value
>
>
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> > According to the docs, the correct syntax is:
> >
> > 
> >
> > Does that work?
> >
> > HTH,
> > Ben
> >
> > --- In flexcoders@yahoogroups.com

http://roups.com>>, "Pan


> > Troglodytes"
> >  wrote:
> > >
> > > This is still a problem. I couldn't remember if I
entered it in the
> > Adobe
> > > bug page, so I just went ahead and did it. This is a bit
of a
pain as
> > > transparent icons are very important in GUIs. GIF works
fine but is
> > limited
> > > to 256 colors.
> > >
> > >
> > >
> > > On 12/6/06, Pan Troglodytes  wrote:
> > > >
> > > > I've run into a situation where the exact same PNG
file will show
> > up as
> > > > transparent only when it's not embedded. Here is the mxml:
> > > >
> > > > 
> > > > 
> > > >
> > > > Including both images on the page, the first is
missing the
> > transparent
> > > > background. The second is fine. I have manually
checked the
> > images, both
> > > > in the dev directory and bin directory. In fact, I
have manually
> > copied the
> > > > dev ones over the top of the bin ones to make sure. If
I drag the
> > images to
> > > > Firefox, both appear with no

Re: [flexcoders] Re: fixed the problem!!

2007-01-31 Thread Doug McCune

I believe: ArrayCollection(something)
will do the same thing as: new ArrayCollection(something)
and not the same thing as: something as ArrayCollection

To cast to ArrayCollection you have to use "as"

Doug

Tracy Spratt wrote:


Good question.  I still stumble over casts vs new vs top-level 
functions.  I bet that will work.


Tracy

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *ben.clinkinbeard

*Sent:* Wednesday, January 31, 2007 7:45 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Re: fixed the problem!!

 


Does myExperiments =
ArrayCollection(event.result.experiments.experiment) work?

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:

>
> That IS unexpected.
>
> Tracy
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com 
] On

> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 1:27 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] fixed the problem!!
>
>
>
> Well, who knew that myExperiments = event.result.experiments.experiment
> as ArrayCollection would work
>
>
>
> But myExperiments = new
> ArrayCollection(event.result.experiments.experiment) wouldn't?
>
>
>
> Lots of hours of aggravation, but Flex is so pretty it's almost worth
> it.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com 
] On

> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:46 PM
> To: flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
>
>
>
> Ok after a lot of painful debugging.. I've found something strange.
>
>
>
> Instead of an ArrayCollection, I declared myExperiments as an Object.
>
> The XML format is like this:
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
> 
>
>
>
> private function resultHandler(event:ResultEvent):void
>
> {
>
> myExperiments = event.result.experiments.experiment;
>
> }
>
>
>
> Then I set my dataprovider in my datagrid = myExperiments and for some
> reason this works to display the experiments.
>
> Why doesn't an ArrayCollection work?
>
>
>
> Sorry for all the emails but this has been a problem for too long and
> seems like it should be simple.
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com 
] On

> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:36 PM
> To: flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
>
>
>
> Please I just need to know how to bind the results of an HTTPService
> request (which generates XML) to an ArrayCollection!!!
>
>
> I don't think it should be this difficult!?!
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com 
] On

> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 11:16 AM
> To: flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
>
>
>
> Still no luck.. I'm trying to check the length of the array and an
> Alert.show() won't even display anything. Could it be order in which
> I'm executing everything?
>
> For instance, I can't call the display_experiments.php script until
> after a user has logged in so it can query the database for his
> experiments.
>
> I have a checkLogin function that sends the display_experiments
> HTTPService call after the user has logged in.
>
>
>
> What could I be doing wrong?
>
>
>
> -Tanya
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogroups.com 
] On

> Behalf Of Brian Holmes
> Sent: Wednesday, January 31, 2007 10:41 AM
> To: flexcoders@yahoogroups.com 
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
>
>
>
> on return use
>
>
>
> myExperiments = new
> ArrayCollection(event.result.experiments.experiment);
>
>
>
>
>
> if expirement is the repeating element, then you need to use
> (event.result.expirements)
>
>
>
>
>
>
>
> b.
>
>
>
>
>
>
>
>
>
>
>
> 
>
> From: flexcoders@yahoogroups.com 
 
[mailto:flexcoders@yahoogro

Re: [flexcoders] Passing Value Object to CFC as an argument?

2007-01-31 Thread Douglas Knudsen

you need a EmployeeVO CFC with matching properties and the full array of
mutators and accessors.  Further you need to add the metadata to your AS VO
so Flex knows how to tie it in to your CFC.  THen service.saveEmployee(
employeeVO ) can work on the EmployeeVO CFC bamm!  Below is a example

package com.mycom.myapp.vo
{

   [RemoteClass(alias="myapp.model.security.security")]

   [Bindable]
   public dynamic class securityVO implements ValueObject
   {

   public var emplid:String = "";
   public var name:String = "";
   public var secgroupid:Number = 0;
   public var secgroup:String = "";
   public var isactive:Boolean = false;


   public function securityVO()
   {
   }

   }
}



   
   
   
   
   
   

   
   //Initialize the CFC with the default properties values.
   variables.emplid = "";
   variables.name = '';
   variables.secgroupid = 0;
   variables.secgroup = '';
   variables.isactive = false;
   

   
   
   


   
   
   

   
   
   
   

   
   
   

   
   
   
   

   
   
   

   
   
   
   
   
   
   
   

   
   
   

   
   
   
   
   
   
   
   

   
   
   

   
   
   
   



The above is how the CF-Extension wizards create things.

DK
On 1/31/07, malik_robinson <[EMAIL PROTECTED]> wrote:


Hi,

I am confused on how pass in arguments to the CFC when I am sending a
ValueObject in from Flex.  I have this code.

*public* *function* saveEmployee( employeeVO : EmployeeVO ): *void* {

*var* call:AsyncToken = service.saveEmployee( employeeVO );

call.addResponder( responder );

}

The parameter employeeVO in the above function contains all the data the
user typed in on my form.  I want to pass this data to my CFC as an
argument.

From there I *think* I can do the rest.

How do I do this?

-Malik






--
Douglas Knudsen
http://www.cubicleman.com
this is my signature, like it?


RE: [flexcoders] Re: fixed the problem!!

2007-01-31 Thread Tracy Spratt
Good question.  I still stumble over casts vs new vs top-level
functions.  I bet that will work.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, January 31, 2007 7:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: fixed the problem!!

 

Does myExperiments =
ArrayCollection(event.result.experiments.experiment) work?

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> That IS unexpected.
> 
> Tracy
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 1:27 PM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] fixed the problem!!
> 
> 
> 
> Well, who knew that myExperiments =
event.result.experiments.experiment
> as ArrayCollection would work
> 
> 
> 
> But myExperiments = new
> ArrayCollection(event.result.experiments.experiment) wouldn't?
> 
> 
> 
> Lots of hours of aggravation, but Flex is so pretty it's almost worth
> it.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:46 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection
for
> Datagrid
> 
> 
> 
> Ok after a lot of painful debugging.. I've found something strange.
> 
> 
> 
> Instead of an ArrayCollection, I declared myExperiments as an Object.
> 
> The XML format is like this:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> private function resultHandler(event:ResultEvent):void
> 
> {
> 
> myExperiments = event.result.experiments.experiment;
> 
> }
> 
> 
> 
> Then I set my dataprovider in my datagrid = myExperiments and for some
> reason this works to display the experiments.
> 
> Why doesn't an ArrayCollection work?
> 
> 
> 
> Sorry for all the emails but this has been a problem for too long and
> seems like it should be simple.
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:36 PM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection
for
> Datagrid
> 
> 
> 
> Please I just need to know how to bind the results of an HTTPService
> request (which generates XML) to an ArrayCollection!!!
> 
> 
> I don't think it should be this difficult!?!
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 11:16 AM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection
for
> Datagrid
> 
> 
> 
> Still no luck.. I'm trying to check the length of the array and an
> Alert.show() won't even display anything. Could it be order in which
> I'm executing everything?
> 
> For instance, I can't call the display_experiments.php script until
> after a user has logged in so it can query the database for his
> experiments. 
> 
> I have a checkLogin function that sends the display_experiments
> HTTPService call after the user has logged in.
> 
> 
> 
> What could I be doing wrong?
> 
> 
> 
> -Tanya
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Brian Holmes
> Sent: Wednesday, January 31, 2007 10:41 AM
> To: flexcoders@yahoogroups.com  
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection
for
> Datagrid
> 
> 
> 
> on return use 
> 
> 
> 
> myExperiments = new
> ArrayCollection(event.result.experiments.experiment);
> 
> 
> 
> 
> 
> if expirement is the repeating element, then you need to use
> (event.result.expirements)
> 
> 
> 
> 
> 
> 
> 
> b.
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 8:32 AM
> To: flexcoders@yahoogroups.com 

Re: [flexcoders] Re: Datagrid Custom Renderer and Embeded Images.

2007-01-31 Thread cisnky

Doug,

Thanks for that. Problem solved. I tried calling a function from the
attribute source before, but didn't add the curly braces.




On 1/31/07, Doug Lowder <[EMAIL PROTECTED]> wrote:


   Try the following in the icons.mxml file:



If that works, I'm sure it will get you on your way to a complete
solution.  Good luck!



Doug


--- In flexcoders@yahoogroups.com, "cisnky" <[EMAIL PROTECTED]> wrote:
>
> I'm still having problems getting my icons to render in the datagrid.
>
> I've uploaded the app with source to the following location.
>
> http://www.tsuma.biz/flex/filebrowser/
>
> Xml pulled in via the http request.
>
> http://www.tsuma.biz/flex/filebrowser/file_directory_list.php
>
> Does anybody know why my embed images are not being found.
>





[flexcoders] Re: Usergroup in Minneapolis?

2007-01-31 Thread evert_dennis
Yes. There are two flash/flex user groups in Minneapolis.  One is more
of a lecture based/QA user group for all levels of skills called
FlashMN  (http://www.flashmn.com/).  And is an open invitation for
anyone. The other is in a discussion format where a new topic is
brought to the table for each meeting and we all talk about our
opinions, experiences, etc.  That one is called MN.SWF
(http://groups.google.com/group/mnswf?hl=en) and is intended for
advanced users. In order to come to these meetings you must be
approved to join the group on this google groups link. Hope to see you
around dorkie dork from dorktown. :)




[flexcoders] About using embedded fonts in loaded applications

2007-01-31 Thread arcencie1978
Hello guys

I have a question about using embedded fonts in multiple applications

that are loaded...

As far as I know, 

if a font is embedded in the main application,

every application that is loaded into it

doesn't have to actually embed the same font as long as it has the 
right style name..

since it's been already loaded in the main application...

And it does work for most cases... such as labels, texts etc etc in 
these loaded applications

yet it turns out that

label texts shown on chart axises are empty

when these applications do not embed fonts in themselves...

Is this a bug or am I missing something?


For verification, I've tried something like

var tf:TextFormat = new TextFormat();

tf.font = "-À±°íµñ140";

trace(SystemManager(loader.content).isFontFaceEmbedded(tf));

and it shows "true" message in the debug panel...

So my assumption is that

the font indeed has been embedded 

yet chart axis labels somehow don't show up correctly

Is there anybody who has any information about this?

It is so bothersome to embed the same font in each and every

application, so I'd like to know a workaround to this..


Plus,

Is there any way to include an embedded font in the RSL?

I've read through the API but still am cluless..

Any hints would be greatly appreciated


Thanks in advance!!!





[flexcoders] About using embedded fonts in loaded applications

2007-01-31 Thread arcencie1978
Hello guys

I have a question about using embedded fonts in multiple applications

that are loaded...

As far as I know, 

if a font is embedded in the main application,

every application that is loaded into it

doesn't have to actually embed the same font as long as it has the 
right style name..

since it's been already loaded in the main application...

And it does work for most cases... such as labels, texts etc etc in 
these loaded applications

yet it turns out that

label texts shown on chart axises are empty

when these applications do not embed fonts in themselves...

Is this a bug or am I missing something?


For verification, I've tried something like

var tf:TextFormat = new TextFormat();

tf.font = "-À±°íµñ140";

trace(SystemManager(loader.content).isFontFaceEmbedded(tf));

and it shows "true" message in the debug panel...

So my assumption is that

the font indeed has been embedded 

yet chart axis labels somehow don't show up correctly

Is there anybody who has any information about this?

It is so bothersome to embed the same font in each and every

application, so I'd like to know a workaround to this..


Plus,

Is there any way to include an embedded font in the RSL?

I've read through the API but still am cluless..

Any hints would be greatly appreciated


Thanks in advance!!!





[flexcoders] Usergroup in Minneapolis?

2007-01-31 Thread dorkie dork from dorktown

Are there any usergroups in Minneapolis? There is an Adobe office 2 miles
from where I live so I would imagine there should be something nearby but
the offices are heavily guarded with laser beams and newbie be gone.


[flexcoders] Re: fixed the problem!!

2007-01-31 Thread ben.clinkinbeard
Does myExperiments =
ArrayCollection(event.result.experiments.experiment) work?



--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> That IS unexpected.
> 
> Tracy
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 1:27 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] fixed the problem!!
> 
>  
> 
> Well, who knew that myExperiments = event.result.experiments.experiment
> as ArrayCollection would work
> 
>  
> 
> But myExperiments = new
> ArrayCollection(event.result.experiments.experiment) wouldn't?
> 
>  
> 
> Lots of hours of aggravation, but Flex is so pretty it's almost worth
> it.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:46 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
> 
>  
> 
> Ok after a lot of painful debugging.. I've found something strange.
> 
>  
> 
> Instead of an ArrayCollection, I declared myExperiments as an Object.
> 
> The XML format is like this:
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>  
> 
> private function resultHandler(event:ResultEvent):void
> 
> {
> 
> myExperiments = event.result.experiments.experiment;
> 
> }
> 
>  
> 
> Then I set my dataprovider in my datagrid = myExperiments and for some
> reason this works to display the experiments.
> 
> Why doesn't an ArrayCollection work?
> 
>  
> 
> Sorry for all the emails but this has been a problem for too long and
> seems like it should be simple.
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 12:36 PM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
> 
>  
> 
> Please I just need to know how to bind the results of an HTTPService
> request (which generates XML) to an ArrayCollection!!!
> 
> 
> I don't think it should be this difficult!?!
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 11:16 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
> 
>  
> 
> Still no luck.. I'm trying to check the length of the array and an
> Alert.show() won't even display anything.  Could it be order in which
> I'm executing everything?
> 
> For instance, I can't call the display_experiments.php script until
> after a user has logged in so it can query the database for his
> experiments.  
> 
> I have a checkLogin function that sends the display_experiments
> HTTPService call after the user has logged in.
> 
>  
> 
> What could I be doing wrong?
> 
>  
> 
> -Tanya
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Brian Holmes
> Sent: Wednesday, January 31, 2007 10:41 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
> 
>  
> 
> on return use 
> 
> 
> 
> myExperiments = new
> ArrayCollection(event.result.experiments.experiment);
> 
>  
> 
>  
> 
> if expirement is the repeating element, then you need to use
> (event.result.expirements)
> 
>  
> 
>  
> 
>  
> 
> b.
> 
>  
> 
>  
> 
>  
> 
>  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Cashorali, Tanya M.
> Sent: Wednesday, January 31, 2007 8:32 AM
> To: flexcoders@yahoogroups.com
> Subject: RE: [flexcoders] Binding HTTPService xml to ArrayCollection for
> Datagrid
> 
> The problem is related to the format of the XML I think.  Here's a
> portion of my php script (SQL statement not included).
> 
>  
> 
> $output = "";
> 
> while (OCIFetchInto($result, $row, OCI_ASSOC)) 
> 
> {
> 
>   $output .=
> "".$row['TITLE']."".$row['MACHINE'].
> "".$row['USERNAME']."".$row['DET
> AILS']."".$row['EMONTH']."".$row['EDAY']."
> ".$row['EYEAR']."";
> 
> }
> 
> $output .= "";
> 
>  
> 
> This works fine when using
> display_experiments.lastResult.experiments.experiment.. but it does not
> work when binding using a resultHandler as
> 
>  
> 
> [Bindable]
> 
> private var myExperiments:ArrayCollection;
> 
>  
> 
> private function resultHandler(event:ResultEvent):void
> 
> {
> 
> myExperiments=event.result.experiments.experiment;
> 
> }
> 
>  
> 
> And here's my HTTPService call:
> 
>  url="

[flexcoders] Re: Datagrid Custom Renderer and Embeded Images.

2007-01-31 Thread Doug Lowder

Try the following in the icons.mxml file:



If that works, I'm sure it will get you on your way to a complete
solution.  Good luck!



Doug


--- In flexcoders@yahoogroups.com, "cisnky" <[EMAIL PROTECTED]> wrote:
>
> I'm still having problems getting my icons to render in the datagrid.
>
> I've uploaded the app with source to the following location.
>
> http://www.tsuma.biz/flex/filebrowser/
>
> Xml pulled in via the http request.
>
> http://www.tsuma.biz/flex/filebrowser/file_directory_list.php
>
> Does anybody know why my embed images are not being found.
>




[flexcoders] Time Slider function problem

2007-01-31 Thread g_vaccarezza
Guys, I'm trying to pul a time range selector so I can trim down the 
data I show in a graph.

I copied the example from the charting explorer and my change function 
goes like this:

function sliceResults():void {
   slicedResults = myData.lastResult.data.month.slice(slider.values
[0],slider.values[1]);
}

I dataProvide my chart with slicedResults, but it isn't responding. 
It's like I'm using the slice property the worng way or something.

Anyone had a similar problems? solutions?

Thanks!!
Guille




[flexcoders] FDS save problem w/Hibernate collection

2007-01-31 Thread parkerwhirlow

Hello,

I'm getting back a Hibernate "NonUniqueObjectException" when trying to
update an item via FDS. This happens (as far as I can tell) any time
you update a property of an object in a collection that is NOT a
managed association in FDS.

Here's the details: 

Single FDS destination: Family 

Family has a set of familyMembers (no FDS managed association,
one-to-many set w/class Person in Hibernate). Hibernate set up to
commit via the collection (inverse=false, cascade=ALL_CASCADE_DELETE)

Load a family, iterate through the familyMembers, and change one of
their names. 

I've tried this with auto-commit and manual commit, both with same
results.

stack trace and code follow. Please let me know, I can email an entire
setup for easily reproducing this.

Thanks in advance,
PW

-- Stack Trace ---

01/31 14:16:51 user [Flex] 14:16:51.403 [ERROR]
[DataService.Hibernate] Exception in UpdateItem:
org.hibernate.NonUniqueObjectException: a different object with the
same identifier value was already associated with the session:
[config.test.Person#3]
01/31 14:16:51 user [Flex] 14:16:51.413 [ERROR]
[DataService.Hibernate] org.hibernate.NonUniqueObjectException: a
different object with the same identifier value was already associated
with the session: [config.test.Person#3]
at
org.hibernate.engine.StatefulPersistenceContext.checkUniqueness(StatefulPersistenceContext.java:556)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performUpdate(DefaultSaveOrUpdateEventListener.java:259)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsDetached(DefaultSaveOrUpdateEventListener.java:217)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.performSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:93)
at
org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)
at org.hibernate.impl.SessionImpl.fireSaveOrUpdate(SessionImpl.java:507)
at org.hibernate.impl.SessionImpl.saveOrUpdate(SessionImpl.java:499)
at
org.hibernate.engine.CascadingAction$1.cascade(CascadingAction.java:218)
at org.hibernate.engine.Cascade.cascadeToOne(Cascade.java:268)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:216)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at
org.hibernate.engine.Cascade.cascadeCollectionElements(Cascade.java:296)
at org.hibernate.engine.Cascade.cascadeCollection(Cascade.java:242)
at org.hibernate.engine.Cascade.cascadeAssociation(Cascade.java:219)
at org.hibernate.engine.Cascade.cascadeProperty(Cascade.java:169)
at org.hibernate.engine.Cascade.cascade(Cascade.java:130)
at
org.hibernate.event.def.AbstractFlushingEventListener.cascadeOnFlush(AbstractFlushingEventListener.java:131)
at
org.hibernate.event.def.AbstractFlushingEventListener.prepareEntityFlushes(AbstractFlushingEventListener.java:122)
at
org.hibernate.event.def.AbstractFlushingEventListener.flushEverythingToExecutions(AbstractFlushingEventListener.java:65)
at
org.hibernate.event.def.DefaultFlushEventListener.onFlush(DefaultFlushEventListener.java:26)
at org.hibernate.impl.SessionImpl.flush(SessionImpl.java:1000)
at
flex.data.assemblers.HibernateAssembler.updateItem(HibernateAssembler.java:740)
at flex.data.adapters.JavaAdapter.doUpdateItem(JavaAdapter.java:504)
at
flex.data.adapters.JavaAdapter.invokeAssemblerSync(JavaAdapter.java:391)
at
flex.data.adapters.JavaAdapter.invokeBatchOperation(JavaAdapter.java:248)
at flex.data.adapters.JavaAdapter.invoke(JavaAdapter.java:232)
at
flex.messaging.services.MessageService.serviceMessage(MessageService.java:139)
at flex.data.DataService.sendBatchToAdapter(DataService.java:1326)
at flex.data.DataService.serviceTransactedMessage(DataService.java:505)
at flex.data.DataService.serviceMessage(DataService.java:241)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:548)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:302)

- Hibernate Mappings -






























 FDS Destination ---




flex.data.assemblers.HibernateAssembler
application








config.test.Family


NONE
OBJECT

false
true





- Actionscript Code -

public function runTestData():void
{
   oService = new DataService("Family");
   oService.autoCommit=true;
   oService.autoSyncEnabled=true;
   oService.addEventListener(Me

[flexcoders] Passing Value Object to CFC as an argument?

2007-01-31 Thread malik_robinson

Hi,

I am confused on how pass in arguments to the CFC when I am sending a
ValueObject in from Flex.  I have this code.

public function saveEmployee( employeeVO : EmployeeVO ): void {

var call:AsyncToken = service.saveEmployee( employeeVO );

call.addResponder( responder );

}

The parameter employeeVO in the above function contains all the data the
user typed in on my form.  I want to pass this data to my CFC as an
argument.

>From there I *think* I can do the rest.

How do I do this?

-Malik



Re: [flexcoders] Accessibility and imported components

2007-01-31 Thread Jason Goodwin

I have tried it in both forms mode and virtual cursor modes, in JAWS 6.0.65U
.

- J

On 1/23/07, Andrew Kirkpatrick <[EMAIL PROTECTED]> wrote:


  Jason,
The short answer is that it does work. The longer, more useful answer
requires more information from you about what you've tried, and how you
are using JAWS (e.g. are you in forms mode or virtual cursor mode)

Thanks,
AWK


> -Original Message-
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com ] On
Behalf Of Jason Goodwin
> Sent: Tuesday, January 23, 2007 3:25 PM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Accessibility and imported components
>
> *RE POST (my thread got hijacked)
>
> I have an app with lots of imported components. I can't seem
> to get JAWS to read anything that's not on the main page. I
> have tried several ways of add in the accessibility
> properties to the controls.
> Thanks.
>
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>

 



RE: [flexcoders] parent-child hierarchy of data using Flex, FDS and Hibernate

2007-01-31 Thread Jeff Vroom
This relates to your other question about the association tags in the
 section.  There are two ways you can work with non-primitive
object properties using FDMS.  You can either have them be "managed
associations" or you can treat them as "hierarchical values".  If you
choose the former, you define a destination for each data type and
explicitly define the relationships using the  tags:
one-to-many, one-to-one, etc (FDMS only pays attention to the ...-to-one
or -to-many suffix as it only cares about whether the association is
single or multi-valued).   In this approach, each destination deals with
the changes made to objects of that type.  If you create a new child
object and add it to a property on the parent for example, it will send
the create event to the child destination and then send an update event
to the parent destination.  These are both executed in the same
transaction so they will both get committed at the same time.  

 

When you use the hierarchical values approach, the entire object graph
underneath that property is treated as a single value.  Any changes made
to any state under that property is treated as a change to the
property's value.  FDMS reports the change to the parent object's
destination and only tells you that the property of the parent changed.
We do give you the complete old and new values though of the parent
object so you can walk down and compare them to figure out the details
of what changed.   Whenever you use this approach, the entire object
graph gets shipped back and forth for each change so it gets inefficient
as the object graph gets bigger.  

 

In this particular case, it sounds like the managed association feature
would be the best approach.   You can create new objects on either the
client or the server - whichever makes the most sense for your
application.  Simply adding a new object to the property of another
managed object is enough to "create it" for the system.  We'll detect
that it is a new object and log both the create and update operations as
part of the batch.  When you issue the "commit" call, both are sent to
the server as part of the same batch.

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of simonjpalmer
Sent: Sunday, January 28, 2007 12:56 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] parent-child hierarchy of data using Flex, FDS and
Hibernate

 

Hi,

I have a 4 level hierarchy of data in my application with a
bi-directional one-to-many relationship between each level as follows:

PlanPoint (parent)
-- UserScenario (child)
 Scenario (grandchild)
-- Competitor (great grandchild)

I have a hibernate back end running under JBoss and I am using FDS to
synchronise the changes from my Flex UI. My DB will be Oracle, but
for the time being I am just testing with a HSQLDB for convenience.

I have managed to create a destination in FDS which will retrieve the
parent objects. The hibernate mapping docs specify the further
retrieval of the graph of objects attached to them. This all works
fine and performs reasonably well, although I have been unable to get
any meaningful lazy loading to work (a problem for another time).

My problem comes in that the user will interact deeply with the graph
of objects during the client session. This includes adding, removing
and updating objects at all levels.

What I can't seem to get right is the interaction in the Flex layer
which copes with this level of interaction.

For instance if I want to add a new Competitor to a Scenario do I 
(i) create all new objects on the client and then synchronise the
server, or 
(ii) initiate creation of a new object on the server and then modify
it on the client?

I seem to have problems in both directions and the same isue for
delete and to a certain extent modify.

I only have a single FDS destination defined, so any alterations
appear to go through the PlanPoint Object at the root of the tree and
as a result much more data gets passed back and forth than I would like.


I'm not sure if I am just a little simplistic in my design and need
more sophistication in my relationship between the client and server,
or whether I just need a bit more code in my client to manage the
object state. 

Any guidance would be greatly appreciated as I'm beginning to swim in
circles. 

 



Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Pan Troglodytes

Doug,

Very cool that you tracked it down in SWFLoader.  Right now I can get by
with using GIF, but it's great to know if I absolutely have to have more
than 256 colors I can use your code.  Hopefully Adobe is following this
thread.  Either that, or they already tracked it down and have it fixed
internally but just never read my posts. ;)


On 1/31/07, Doug McCune <[EMAIL PROTECTED]> wrote:


   You're definitely right, that's a clear bug in how SWFLoader works. I
have a solution that involves duplicating the code for SWFLoader and
modifying it a little bit. What's interesting is that in the Design view of
FB, the PNG has perfect transparency in both cases. But in the published
SWF, the transparency is not preserved when using @Embed.

I will be writing up a blog post and my solution later today.

For now, here's a sample of the problem with a working solution. I'll be
writing up the description of what I had to do (obviously it's not much
since it didn't take very long). So if you want to check out the code before
I write up the post, the important part has to do with setting the mimeType
of the embedded asset, and then in the modified SWFLoader code, check out
around line 1217 in the loadContent method. It uses loadBytes of the Loader
class to load the bytes of the embedded asset.

http://dougmccune.com/flex/png_test/
(right click to View Source)

Doug



Pan Troglodytes wrote:

 Could you clarify what you  mean by "works for me"?  Do you mean you are
getting transparency on the PNG?

I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html

Just right-click to view the source.

They both use the same png file.  The first one renders with an olive
background (the original background color of the image).  The second renders
the transparency properly.

Does this work differently under Flex/Flash Player for you?


 On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED] > wrote:
>
>orks for me...
>
> Not sure what else to recommend.
>
> --- In flexcoders@yahoogroups.com , "Pan
> Troglodytes"
> <[EMAIL PROTECTED]> wrote:
> >
> > Sadly, no. It also doesn't work if you declare a variable like
> >
> > [Embed(source="/assets/user-big.png")] private var userIcon:Class;
> >
> >
> > FYI, from the docs:
> >
> > About the source parameter
> >
> > In almost all cases, you must specify the source parameter or nothing
> is
> > embedded.
> >
> > The source parameter is the default parameter of the [Embed]
> metadata tag;
> > therefore, if you are not specifying any other parameters, you can
> just
> > supply its value without explicitly including the parameter name or
> > assigning it the desired value
> >
> >
> > On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> > >
> > > According to the docs, the correct syntax is:
> > >
> > > 
> > >
> > > Does that work?
> > >
> > > HTH,
> > > Ben
> > >
> > > --- In flexcoders@yahoogroups.com 
 roups.com>, "Pan
>
> > > Troglodytes"
> > >  wrote:
> > > >
> > > > This is still a problem. I couldn't remember if I entered it in
> the
> > > Adobe
> > > > bug page, so I just went ahead and did it. This is a bit of a
> pain as
> > > > transparent icons are very important in GUIs. GIF works fine but
> is
> > > limited
> > > > to 256 colors.
> > > >
> > > >
> > > >
> > > > On 12/6/06, Pan Troglodytes  wrote:
> > > > >
> > > > > I've run into a situation where the exact same PNG file will
> show
> > > up as
> > > > > transparent only when it's not embedded. Here is the mxml:
> > > > >
> > > > > 
> > > > > 
> > > > >
> > > > > Including both images on the page, the first is missing the
> > > transparent
> > > > > background. The second is fine. I have manually checked the
> > > images, both
> > > > > in the dev directory and bin directory. In fact, I have manually
> > > copied the
> > > > > dev ones over the top of the bin ones to make sure. If I drag
> the
> > > images to
> > > > > Firefox, both appear with no background. The background color is
> > > teal, so I
> > > > > would definitely notice.
> > > > >
> > > > > Near as I can tell, the embed is causing the background
> > > transparency to
> > > > > not be processed. I can't find anything in the docs saying this
> > > is expected
> > > > > behavior.
> > > > >
> > > > > --
> > > > > Jason
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jason
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Jason
> >
>
>


--
Jason


 





--
Jason


RE: [flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread Tracy Spratt
http://livedocs.macromedia.com/flex/2/docs/1149.html

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brent_trx
Sent: Wednesday, January 31, 2007 5:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2 HTTPService best practices

 

Correct ... but that's just because I'm lazy and wanted to play with
objectToInstance for automation purposes, as our model and XML
responses should always be in structural sync. In a previous
iteration, I was just mapping by hand.

I'll have to look more into AsyncToken, Tracy ... Got any recommended
reading? Thanks for the starting point.

--- In flexcoders@yahoogroups.com 
, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
>
> I'd assume your companies objects' members exactly match the nodes
in the xml ?
> 
> so if your xml has a node called "name" you have a property on your
companies object called 'name' ?
> 
> Grant.
> 
> - Original Message -
> From: brent_trx [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com  
> Sent: 1/31/07 4:44 PM
> Subject: [flexcoders] Re: Flex 2 HTTPService best practices
> 
> > Here's a snippet from my XMLUtils class that converts an XML list of
> > "companies" to an ArrayCollection of Company objects (relies on
Darron
> > Schall's ObjectTranslator tools for convenience):
> > 
> > /**
> > * Convert from XML List to Company ArrayCollection
> > **/
> > public static function
> > companiesXMLDecoder(xml:XMLDocument):ArrayCollection {
> > var companyCollection:ArrayCollection = new ArrayCollection();
> > var xmlDecoder:SimpleXMLDecoder = new SimpleXMLDecoder();
> > 
> > if (xml.firstChild.childNodes.length > 0) {
> > var objectTree:Object = xmlDecoder.decodeXML(xml.firstChild);
> > var companies:Array;
> > 
> > if (objectTree.company is Array) companies =
objectTree.company;
> > else companies = new Array(objectTree.company);
> > 
> > for (var i:int=0; i < companies.length; i++) {
> > var company:Company =
> > ObjectTranslator.objectToInstance(companies[i], Company) as Company;
> > companyCollection.addItem(company);
> > }
> > }
> > return companyCollection;
> > }
> > 
> > 
> > - and now the HTTPService definition 
> > 
> > 
> > 
> > 
> > 
> > 
> > ... the event.result received by getCompaniesResultHandler will be
an
> > ArrayCollection of Company objects. =]
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com
 , "grant@" wrote:
> > >
> > > I'd love to see an example, we were about to parse the XML and
create
> > our own array objects with the correct types for binding but this
sounds
> > like a much cleaner method.
> > >
> > > Cheers,
> > > Grant
> > >
> > > - Original Message -
> > > From: brent_trx brent.dearth@
> > > To: flexcoders@yahoogroups.com
 
> > > Sent: 1/31/07 4:27 PM
> > > Subject: [flexcoders] Re: Flex 2 HTTPService best practices
> > >
> > > > I was facing a very similar issue just recently. I had all
these AS
> > > > model classes that mapped identical properties in accordance
to the
> > > > backend objects I was dealing with, but no FDS-style convenience
> > > > mechanism to handle typing via HTTPService calls. What I found
out
> > is
> > > > the beauty of the "xmlDecode" and "xmlEncode" methods.
> > > >
> > > > When you use the xmlDecode method, passing it a function
reference,
> > > > that function will expect an XMLDocument object that is
generated
> > > > automatically by the service. You can then take that
XMLDocument,
> > > > iterate through it, building and returning objects of whatever
type
> > > > you desire. When you access "event.result" in your handler
function,
> > > > that property value will be typed based on your decoder return
type.
> > > > So "event.result" is now, say a User object, rather than a
user xml
> > > > node representation.
> > > >
> > > > The beauty of this strategy is, at any point, your transport
> > mechanism
> > > > becomes disposable. If you suddenly decide to switch from XML to
> > JSON
> > > > as your transport mechanism of choice, you only need to code
some
> > > > decoder / encoder functions, and you're done. No need to change
> > what,
> > > > say, a datagrid expects. Very elegant architecture.
> > > >
> > > > I recommend taking a look at AS3's SimpleXMLDecoder class, along
> > with
> > > > Darron Schall's ObjectTranslator class, which makes writing an
XML
> > > > decoder a breeze.
> > > >
> > > > If anyone is interested, I can post a sample.
>

 



[flexcoders] Datagrid Custom Renderer and Embeded Images.

2007-01-31 Thread cisnky
I'm still having problems getting my icons to render in the datagrid.

I've uploaded the app with source to the following location.

http://www.tsuma.biz/flex/filebrowser/

Xml pulled in via the http request.

http://www.tsuma.biz/flex/filebrowser/file_directory_list.php

Does anybody know why my embed images are not being found.



[flexcoders] Re: date formating

2007-01-31 Thread Roger Ross
Thank you Brian, that worked.

starting to understand this stuff a litte more each day...


--- In flexcoders@yahoogroups.com, "Brian Holmes" <[EMAIL PROTECTED]> wrote:
>
> Roger,
>  Use the following function.
> 
> 
> 
>   public function
> gridDateFormatter(item:Object,column:DataGridColumn):String 
>   {   
>   var f:DateFormatter = new DateFormatter();
>   f.formatString = "DD-MMM-"; 
>   return f.format(item[column.dataField]);
>   } 
> 
> 
> 
> Then on your grid column set the labelfucntion like:
> 
>  labelFunction="gridDateFormatter" />
> 
> 
> 
> Change the format string to match the format you need.
> 
> 
> B.
> 
> 
> -Original Message-
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Roger Ross
> Sent: Wednesday, January 31, 2007 2:30 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] date formating
> 
> Hello,
> 
> I have a date field in a grid.
> what is the correct syntax to get it to display MM/DD/ right now it
> displays as Wed Jan 30 00:00:00 GMT
> 
> I have  as my date
> format and I added the syntax to the datafield
> dataField="{df.format(entrydate)}"
> 
> But this just gives me an error.
> 
> I found how to do it on a label but I need it formated in a grid
> column..
> 
> Thank you 
> 
> Roger
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
> 
> 
> 
> 
> 
> ***
> The information in this e-mail is confidential and intended solely
for the individual or entity to whom it is addressed.  If you have
received this e-mail in error please notify the sender by return
e-mail delete this e-mail and refrain from any disclosure or action
based on the information.
> ***
>




[flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread brent_trx
Correct ... but that's just because I'm lazy and wanted to play with
objectToInstance for automation purposes, as our model and XML
responses should always be in structural sync. In a previous
iteration, I was just mapping by hand.

I'll have to look more into AsyncToken, Tracy ... Got any recommended
reading? Thanks for the starting point.



--- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
wrote:
>
> I'd assume your companies objects' members exactly match the nodes
in the xml ?
> 
> so if your xml has a node called "name" you have a property on your
companies object called 'name' ?
> 
> Grant.
> 
> - Original Message -
> From: brent_trx [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com
> Sent: 1/31/07 4:44 PM
> Subject: [flexcoders] Re: Flex 2 HTTPService best practices
> 
> > Here's a snippet from my XMLUtils class that converts an XML list of
> > "companies" to an ArrayCollection of Company objects (relies on Darron
> > Schall's ObjectTranslator tools for convenience):
> > 
> > /**
> > * Convert from XML List to Company ArrayCollection
> > **/
> > public static function
> > companiesXMLDecoder(xml:XMLDocument):ArrayCollection {
> >  var companyCollection:ArrayCollection = new ArrayCollection();
> >  var xmlDecoder:SimpleXMLDecoder = new SimpleXMLDecoder();
> > 
> >  if (xml.firstChild.childNodes.length > 0) {
> >  var objectTree:Object = xmlDecoder.decodeXML(xml.firstChild);
> >  var companies:Array;
> > 
> >  if (objectTree.company is Array) companies =
objectTree.company;
> >  else companies = new Array(objectTree.company);
> > 
> >  for (var i:int=0; i < companies.length; i++) {
> >  var company:Company =
> > ObjectTranslator.objectToInstance(companies[i], Company) as Company;
> >  companyCollection.addItem(company);
> >  }
> >  }
> >  return companyCollection;
> > }
> > 
> > 
> > - and now the HTTPService definition 
> > 
> > 
> > 
> > 
> > 
> > 
> > ... the event.result received by getCompaniesResultHandler will be an
> > ArrayCollection of Company objects.  =]
> > 
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "grant@"  wrote:
> > >
> > > I'd love to see an example, we were about to parse the XML and
create
> > our own array objects with the correct types for binding but this
sounds
> > like a much cleaner method.
> > >
> > > Cheers,
> > > Grant
> > >
> > > - Original Message -
> > > From: brent_trx brent.dearth@
> > > To: flexcoders@yahoogroups.com
> > > Sent: 1/31/07 4:27 PM
> > > Subject: [flexcoders] Re: Flex 2 HTTPService best practices
> > >
> > > > I was facing a very similar issue just recently. I had all
these AS
> > > > model classes that mapped identical properties in accordance
to the
> > > > backend objects I was dealing with, but no FDS-style convenience
> > > > mechanism to handle typing via HTTPService calls. What I found out
> > is
> > > > the beauty of the "xmlDecode" and "xmlEncode" methods.
> > > >
> > > > When you use the xmlDecode method, passing it a function
reference,
> > > > that function will expect an XMLDocument object that is generated
> > > > automatically by the service. You can then take that XMLDocument,
> > > > iterate through it, building and returning objects of whatever
type
> > > > you desire. When you access "event.result" in your handler
function,
> > > > that property value will be typed based on your decoder return
type.
> > > > So "event.result" is now, say a User object, rather than a
user xml
> > > > node representation.
> > > >
> > > > The beauty of this strategy is, at any point, your transport
> > mechanism
> > > > becomes disposable. If you suddenly decide to switch from XML to
> > JSON
> > > > as your transport mechanism of choice, you only need to code some
> > > > decoder / encoder functions, and you're done. No need to change
> > what,
> > > > say, a datagrid expects. Very elegant architecture.
> > > >
> > > > I recommend taking a look at AS3's SimpleXMLDecoder class, along
> > with
> > > > Darron Schall's ObjectTranslator class, which makes writing an XML
> > > > decoder a breeze.
> > > >
> > > > If anyone is interested, I can post a sample.
>




[flexcoders] Loading module from module

2007-01-31 Thread tvikatos
Loading a module from a module does not work for me.
A->B->C
When B tries to load C (using ModuleManager) the factory returns null,
although all types seem setup correctly.
However if I do
A->C
and then:
A->B->C
then C is succesfully loaded and instantiated within A and B.

Any suggestions of what might be wrong here?



RE: [flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread Tracy Spratt
I have never been comfortable with the "black box" conversion from xml
to mx:Object.  I went with xml in 1.5 and am delighted with e4x.  I read
the post above on XMLEncode with interest and plan to look at that, but
since I hav so far been in control of both ends, the data type problems
has not been an issue.

 

You should know about AsyncToken and the ACT pattern.  It lets you match
up results to the corresponding data call, so you can decide how to
porcess the result.  You can even define a handler function, which I
think is known as "closure".  More info is availble on all this.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Chris Luebcke
Sent: Wednesday, January 31, 2007 3:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex 2 HTTPService best practices

 

So I tried setting the resultFormat to "object" for a service that
returns a fairly deep XML structure. I found that it did a pretty good
job of mapping the text nodes to the correct types (Boolean, String
and Number); it didn't map "2006-11-17" to a Date, but hey, you can't
be all things to all people.

Anybody else out there have experience with resultFormat="object"? Is
there any documentation that specifically describes how the object
graph is put together and what the text-node-to-object rules are? I
suppose I could go look at the source code, but figured I might as
well ask around first.

Thanks,
Chris

--- In flexcoders@yahoogroups.com 
, "Chris Luebcke" <[EMAIL PROTECTED]> wrote:
>
> Hi Ian, I'm using XML over HTTPService in my current app and may be
> able to help with some of this. Responses inline below.
> 
> --- In flexcoders@yahoogroups.com
 , Ian Shafer  wrote:
> > ...regarding using HTTPService:
> > 
> > * Should I be using it? I'm choosing to use HTTPService because I
don't
> > want to pay for FDS and it (HTTPService) *seems* simple so that if
there
> > are problems, I could easily be able to fix them (as opposed to
using
> > FDS and Adobe's proprietary encoding). Also, XML over HTTP is
simple and
> > always works. Hooking up remote objects just seems like a pain.
> 
> The answer to that question ultimately comes down to your specific
> project needs, of course. I'm not using FDS (for the usual reasons),
> and there doesn't appear to be an open-source (or otherwise really
> cheap) alternative to using AMF3 to communicate to a Java backend. So
> that really leaves some flavor of XML over HTTP as the raw message
> language and protocol. We deliberated between SOAP, REST and homegrown
> XML message protocols, and ultimately settled on homegrown for a
> variety of reasons I won't bore you with. Again, it really depends on
> your specific needs, but so far our solution is shaping up very
nicely.
> 
> > * What is the best resultFormat to use. As far as I can tell,
there are
> > three: object, e4x, and xml. The xml format seems obsolete since
we now
> > have e4x. Is there any reason to use xml? I get e4x (pretty sweet, I
> > think this is a *great* language feature). The only drawback I've
found
> > so far is the datatype of e4x values. They all seem to be Strings.
I get
> > this, but I wonder if there's an easy way to say "all @quantity
fields
> > are numeric" so it'll sort nice in a DataGrid. object seems cool,
but
> > I'm not 100% clear how it works.
> 
> Me neither, frankly. I might consider trying it, though, given that
> there is apparently some basic type casting done when you use this
> format, according to the dev guide:
> 
> "By default, the resultFormat property value of HTTPService components
> and WebService component operations is object, and the data that is
> returned is represented as a simple tree of ActionScript objects. Flex
> interprets the XML data that a web service or HTTP service returns to
> appropriately represent base types, such as String, Number, Boolean,
> and Date. To work with strongly typed objects, you must populate those
> objects using the object tree that Flex creates."
> 
> > Can I tell HTTPService which class to
> > bind the objects to? I don't use Flex Builder (again, I don't like
to
> > pay for software, and I don't have the money), so it's tough to
> > introspect the objects at runtime (although I did see something
about
> > command line debugging, I'll have to look into that).
> 
> I believe this creates a new graph of objects with dynamically created
> properties. I don't believe there's any configurable mechanism for
> mapping XML to particular object classes or types; I think if you need
> mapping different from what resultFormat="object" gives you, you need
> to roll your own. Not positive, though.
> 
> > * I want to call (HTTPService.send()) my service with different
query
> > parameters. What's the best way to do this? Currently, I'm creating
a
> > new HTTPService in AS and generating the URL every time it is
called.
> > This doesn

Re: [flexcoders] Flex 3: The Survey (Please participate!)

2007-01-31 Thread Thijs Triemstra
Interesting survey. I'm curious about the results for question 15  
"which edition of Flex Data Services do you use in production"..  i  
assume and hope enough people answer that the cost is too high.


Even Red5 is mentioned :)

Thijs


Op 31-jan-2007, om 2:47 heeft greg h het volgende geschreven:

This is the real deal.  21 questions over 3 screens.  Several text  
fields so you can say what you really want to say.


This is a very important point in the development cycle.  Even if  
you have participated in other surveys, please take the time to  
participate on this one.


The Flex Team posted the following yesterday:

http://weblogs.macromedia.com/flexteam/archives/2007/01/ 
help_the_flex_t.cfm



Help the Flex team plan for the future

Now that Flex 2.0.1 is out the door, the team is deep in planning  
for future releases. To make sure we're focusing on the right  
things, we need to hear more from the community, so if you're using  
Flex please take a few minutes to fill out a short survey.


The survey can be found here:
http://www.surveymonkey.com/s.asp?u=801873200349

As always, we appreciate your valuable feedback.

Thanks,

The Flex team






Re: [flexcoders] Html in Flex?

2007-01-31 Thread dorkie dork from dorktown

I have been secretly working on an html component for the last 2 months that
is close to release. It has support for iframes but also support for
straight html without iframes. I will be doing a beta in a few weeks and
post a link to examples in the next couple of days. I've tested a bunch of
cool features (beta) but I can only work on about one more before beta. So
check my blog in the next few days http://www.judahfrangipane.com and leave
some good comments.

On 1/10/07, gtuhl <[EMAIL PROTECTED]> wrote:


We have an existing application that has a feature enabling a user to
set content for and preview html newsletters.  We are in the process
of researching Flex2 and determining whether the client-side of this
application (currently xul/html/js) should be converted.

Is there any way to render html in Flex2?  The htmlText property on
Text won't cut it as it only supports a trivial subset of html.

I essentially need to embed Gecko or another appropriate rendering
engine so that the users can get a rough guess of what their content
looks like.  The same pages allow the user to quickly send test
e-mails to whichever accounts they desire, but the quick-preview
feature provided by the current version of the application is heavily
used and cannot be cut.

Ideally Flex2 has something similar to the  component in xul.






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






Re: [flexcoders] Re: Flex applications look like Fisher-Price toys

2007-01-31 Thread Bjorn Schultheiss

nice work!


On 01/02/2007, at 3:26 AM, Dave Wolf wrote:


Thanks! We have some awesome guys here who make all the magic happen.

Yes indeed we did.

--  
Dave Wolf

Cynergy Systems, Inc.
Adobe Flex Alliance Partner
http://www.cynergysystems.com
http://www.cynergysystems.com/blogs

Email: [EMAIL PROTECTED]
Office: 866-CYNERGY

--- In flexcoders@yahoogroups.com, "Brian Dunphy" <[EMAIL PROTECTED]>  
wrote:

>
> VERY nice Dave, you guys do awesome work.
>
> Just curious, did your team use the DistortionEffects library by  
Alex

> Uhlmann to do the CubeRotate effect on the right side panel?
>
> Thanks,
>
> Brian
>
> On 1/31/07, Dave Wolf <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> >
> >
> >
> >
> > For everyone who was interested in seeing more samples of real  
Flex
> > applications and the extent to which you can skin up Flex using  
all
> > the built in features, check out Cynergy TV. The first episode  
is the

> > Flex Showcase and shows a small handful of apps we have built
over the
> > last year with Flex.
> >
> >
http://www.cynergysystems.com/blogs/page/davewolf? 
entry=i_ll_show_you_mine

> >
> > http://www.cynergysystems.tv
> > http://www.cynergytv.com
> >
> > CynergyTV itself is a Flex2 as well. We will be hosting many more
> > episodes including tutorials, panels, and more samples and  
examples.

> >
> > Cheers,
> >
> > --
> > Dave Wolf
> > Cynergy Systems, Inc.
> > Adobe Flex Alliance Partner
> > http://www.cynergysystems.com
> > http://www.cynergysystems.com/blogs
> >
> > Email: [EMAIL PROTECTED]
> > Office: 866-CYNERGY
> >
> >
> > --- In flexcoders@yahoogroups.com, "David Mendels"   
wrote:

> > >
> > > Hello,
> > >
> > > Many screenshots of Flex applications here:
> > > http://www.flickr.com/photos/flexapps/
> > >
> > > Many of them look not at all like the out of the box look of  
Flex.

> > >
> > > Regards,
> > > David
> > > Adobe
> > >
> > >
> > > 
> > >
> > > From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On
> > > Behalf Of Shannon Hicks
> > > Sent: Sunday, January 28, 2007 11:27 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: Re: [flexcoders] Flex applications look like
Fisher-Price toys
> > >
> > >
> > >
> > > Flex 2 has unlimited design potential. You are not limited  
like you

> > > think... If a component won't do what you want, you can always
re-skin
> > > it. Here's an example of a Flex site that looks pretty much
nothing like
> > > the standard skin:
> > >
> > > http://www.thebetterside.com/scrawl/ScrawlExample3.html
> > > 
> > >
> > > Shan
> > >
> > > Paul Barbieux wrote:
> > >
> > > Hi;
> > >
> > > I'm a developper but also a web designer.
> > > And I'm a beginner with Flex...
> > > But I am frustrated with the possibilities of design of Flex.
> > > All Flex applications I saw have same look: great buttons and
> > > input
> > > fields, great gap between lines. Every elements are great: these
> > > applications look like Fisher-price toys ! (you know ? Toys for
> > > children)
> > >
> > > Yes, the http://www.scalenine.com/ 
> > > shows beautiful themes. But all
> > > components have same size !
> > >
> > > A have made a click-model for an application in HTML, and now I
> > > must
> > > write it with Flex: I loose 1/3 of my page because I can't
> > > reduce gab
> > > between lines, I can't reduce padding between the label and the
> > > border
> > > of the buttons, ... (oh yes I can reduce all elements: but
> > > labels and
> > > texts become trucanted !)
> > >
> > > - Does a solution exist?
> > > - Can someone show me a Flex site where there is a real work of
> > > design?
> > > - Can I expect improvements with Flex 3.0 ?
> > >
> > > Thank's
> > >
> >
> >
> >
> >
>
>
> --
> Brian Dunphy
>







RE: [flexcoders] Host Name? How do I get my current host name?

2007-01-31 Thread Tracy Spratt
Maybe you could parse Application.url?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Wednesday, January 31, 2007 1:25 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Host Name? How do I get my current host name?

 

I'm pretty sure this information wouldn't be accessible from within
Flash, but you could use Javascript to pass in the information to the
swf via URL params, or ExternalInterface calls...  

Brendan




On 1/31/07, Matt Maher <[EMAIL PROTECTED]
 > wrote:

I need to know what box and what domain I am running the flash movie
from. Is there any way I can get this information




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

 



Re: [flexcoders] Onscreen keyboard

2007-01-31 Thread Daniel Wabyick
Thanks Jim. Using automation as a base is a very good idea. 
TextFieldAutomationHelper seems like the key. It may be a bit more 
heavy-handed then I need for this application, but I haven't decided 
which way to go yet.  Thanks again ...


Jim Cheng wrote:
>
> Daniel Wabyick wrote:
>
> > I am working on an onscreen keyboard for a touchscreen Flex 
> application.
> >
> > Building out the UI should be simple, but I am wondering if anyone has
> > ideas on the best way to 'plug in' to the normal Flash key event
> > system. I know I can get the current focused object via
> > focusManager.getFocus(), but I am uncertain as to the best way to
> > 'simulate' the keyboard. I can create KeyboardEvents, but how do I
> > dispatch them so that the appropriate components are listening?
>
> First, get the Flex 2.0.1 updater if you haven't already. The new Flex
> Automation framework source code that's enclosed in it will make all the
> difference between a couple hours of work versus pulling your hair out
> in frustration for weeks on end.
>
> For components not based on TextField objects, it's trivial--call the
> dispatchEvent() method on the currently focused component with
> script-instantiated KeyboardEvent instances. That's how Flex Automation
> does it. You can see for yourself if you have the Flex 2.0.1 update
> installed. Just dig framework source directory and check out line 272 of:
>
> mx/automation/delegates/core/UIComponentAutomationImpl.as
>
> TextFields are trickier. To get correctly emulated behavior, you need
> to both emulate the original keystroke plus do some text manipulation,
> since not all of it's behavior is mediated through the script-accessible
> keyboard events. Aside from dispatching the event, you'll also need to
> set the selection to the next position and then replace the selected
> text with the character specified by your virtual keyboard for regular
> keystrokes, while special characters like enter, delete, backspace and
> such require some custom handling. Again, the automation classes show
> you exactly how to do this, see the replayAutomatableEvent method (lines
> 270-436) of:
>
> mx/automation/delegates/TextFieldAutomationHelper.as
>
> That should be sufficient for most text entry situations. If you need
> more even advanced event emulation, you should probably consider using
> Flex Automation. Having tried and failed to do much of the same thing
> using ActionScript 2 in the past, I must say that the automation
> framework is truly a lifesaver when it comes to such skulduggery.
>
> While automation is primarily intended for interaction logging and
> automated replay for testing purposes, it can also be exploited to
> simulate all manner of user interactions in non-standard ways (such as
> your virtual on-screen keyboard). While the Mercury QTP plugin is
> needed for out-of-the-box testing with Mercury, you don't actually need
> to download the plugin installer (and shell out for a commercial FDS
> license) to get access to and make use of Flex Automation proper for
> your own purposes.
>
> To hook into Flex Automation yourself, you'll need to write your own
> custom adapter classes implementing the IAutomationManager and
> IAutomationObjectHelper interfaces and connect these to whatever floats
> your boat (perhaps a server back-end, a built-in debugging dialog, or
> maybe even a future version of John Grden's XRay targeting Flex and
> ActionScript 3).
>
> This shouldn't be too hard for a seasoned Flex developer familiar with
> the rest of the existing framework--I've managed to make a good bit of
> headway into writing a few test classes that integrate with the Flex
> Automation framework after a weekend's worth of hacking. Unfortunately
> though, there's currently very little in terms of existing examples or
> documentation to help you find your way around in there. Hopefully,
> Adobe might remedy this in the near future (hint, hint).
>
> Jim Cheng
> effectiveUI
>
>  



[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9

2007-01-31 Thread mapper2255
--- In flexcoders@yahoogroups.com, "ericbichara" <[EMAIL PROTECTED]> 
wrote:
>
> Hi, your config script looks fine to me, give us an example of your
> service.mxlm file, maybe youre calling the service inccorectly? 
Here
> is an example of mine:
> 
> 
>xmlns:mx="http://www.adobe.com/2006/mxml";   
>   xmlns:cairngorm="com.adobe.cairngorm.business.*">
>
>  destination="amfphp" 
>   source="Login"
>   showBusyCursor="true"/> 
> 
> 
> 
> and script:
> 
> 
> 
> 
>   class="flex.messaging.services.RemotingService"
>  
messageTypes="flex.messaging.messages.RemotingMessage">
> 
> 
> 
> 
> 
> *
> 
> 
> 
> 
> 
> 
>  class="mx.messaging.channels.AMFChannel">
> http://localhost/amfphp/gateway.php";
> class="flex.messaging.endpoints.AMFEndpoint"/>
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "mapper2255"  
wrote:
> >
> > Hello,
> > 
> > Have been trying all day to get CairngromStore running and keep 
> > getting this error: theMessagingError message='Unknown 
> > destination 'AMFPHP1_9'.' Using xampp/php 5.
> > 
> > Have searched a long time for the answer with no help. Ran 
across 
> > this thread: http://www.mail-
> > archive.com/flexcoders@yahoogroups.com/msg49480.html.
> > 
> > So I am using: 
> > 
> > 
> >  >  class="flex.messaging.services.RemotingService"
> >  
> > messageTypes="flex.messaging.messages.RemotingMessage">
> > 
> > 
> > 
> > 
> > 
> > *
> > 
> > 
> > 
> > 
> > 
> > 
> >  > class="mx.messaging.channels.AMFChannel">
> > http://localhost/amfphp1_9/gateway.php"; 
> > class="flex.messaging.endpoints.AMFEndpoint"/>
> > 
> > 
> > 
> > 
> > Have set up and have running amfphp 1.9. 
> > 
> > Any suggestions? I know it is something simple.
> > 
> > Thanks.
> >
>

This the main.mxml. Just trying to duplicate work so I have less to 
concern myself with as I get this up for the first time:



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




   
 









The thread I posted earlier has services-config.xml calling amfphp19-
services-config.xml so I again am trying to go along. The services-
config.xml is:



 






I added the absolute path because of advise from others who had 
similiar problem: 
http://www.5etdemi.com/blog/archives/2006/12/amfphp-19-beta-get-it-
now/

Thanks for any help Eric.




Re: [flexcoders] Re: tracking a user session

2007-01-31 Thread Rachel Maxim

I had a similar issue, I used ColdFusion to manage the authentication and to
create a session ID, then I had a remoteObject in Flex that called that CFC
to get the credentials. If the length of the session, etc is of importance
than you would probably also want to include the creation time in the data
returned by the back end. Then you could manage the priviledges with
ActionScript. You could always call the remote object or service again to
verify.

HTH

Rachel

On 1/31/07, superstella_uk <[EMAIL PROTECTED]> wrote:


Im guessing you want to pass the session id onto any web servics
called from Flex? Maybe you could have the initial dyn html pages pass
the session to the flash applet, and the Flex can pick that up and
send it along with a param to all server calls?




[flexcoders] How to create a Windows taskbar notification?

2007-01-31 Thread Rachel Maxim

I need to create a Windows Taskbar notification (like the Outlook "new
message" balloon) from Flex. I'm wondering if anyone can recommend a tool
for doing this, I'd expect it to be some type of ActiveX or COM object. I'm
using ColdFusion on the back end. I know almost nothing about Windows
programming, but I've found a few tools online that seem to be the right
direction, still if anyone has already built anything like this with Flex
and/or CF I'd love to hear your advice.

Thanks
Rachel Maxim


RE: [flexcoders] Re: Html in Flex?

2007-01-31 Thread Tracy Spratt
Apollo will have full html parsing.

 

That is why is is not available in the FlashPlayer, including a full
html parsing engine would make the player way too large.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of thegators_2002
Sent: Wednesday, January 31, 2007 11:26 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Html in Flex?

 

Thanks for the explanation, Tracy. I didn't really understand what
this IFrame stuff was doing until now. This is a really backwards
hack. Does anyone know if Adobe is going to add an 
component or something similar? I am updating an old app that has
hundreds of HTM files, but it needs to work as a standalone app as
well as a web version, and it looks like I am going to have to convert
all those files to little SWFs, because I can't use a browser to run
my program.

--- In flexcoders@yahoogroups.com 
, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> The short answer to your original question is no, there is no
browser control in Flex. 
> 
> 
> 
> The Iframe solution is a workaround that uses an Iframe in the host
browser that is positioned in such a way to look like it is part of
the Flex app. You use externalInterface to communicate/control the
Iframe and it's contents. So you won't find Iframe in the Flex docs. 
> 
> 
> 
> There is a very good example of using this technique available,
though I don't recall where at the moment.
> 
> 
> 
> Tracy

 



[flexcoders] unable to build font

2007-01-31 Thread Rick
I am getting the following error in Flex 2.0: "exception during
transcoding: Unexpected exception encountered while reading font file
'path/to_font/font.tff" (in this case
C:\flex2tfs\MyPlan_Inc1\css\Avenir85Heavy.ttf). In this case, the font
file is in the same directory as the css file that contains the style
rules.

This is the block of css that is throwing the error:

.panelTitle{
color:#FF;
fontFamily:Avenir;
fontWeight:bold;
fontSize:12px;
}

@font-face {
src:url("Avenir85Heavy.ttf");
fontFamily: Avenir; 
fontWeight: bold;

}

Thanks. - Rick




RE: [flexcoders] Index of an itemRenderer

2007-01-31 Thread Tracy Spratt
Uh oh.  That question makes me suspect you have not learned a key
concept in working with flex data driven controls.

 

There is almost no case where accessing such a thing as "the index
number of an itemRenderer" makes any sense.

 

This is because the renderer instances are windows to your data and are
re-used when the data is scrolled or modified.  If you have 10 items in
a list, and your list only displays 5 rows, you only have 5 item
renderers, not 10.  So there is no relation to the "index" of a renderer
and its contents.

 

The tree is in your yard, not in your livingroom window.

 

You must work with the dataprovider.

 

What are you trying to accomplish, maybe we can help.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of evert_dennis
Sent: Wednesday, January 31, 2007 11:58 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Index of an itemRenderer

 

Is there a way to get the index number of an itemRenderer in a
HorizontalList component onRollOver? 

 



[flexcoders] TabNavigator Tab BackgroundImage

2007-01-31 Thread cgiamett2
I have been doing a lot of looking around and cannot come across how to 
add a BackgroundImage to tabs in a TabNavigator.

I have seen buttons added, etc. Is there a simple way to just add an 
image to tabs?



Re: [flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread [EMAIL PROTECTED]
I'd assume your companies objects' members exactly match the nodes in the xml ?

so if your xml has a node called "name" you have a property on your companies 
object called 'name' ?

Grant.

- Original Message -
From: brent_trx [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: 1/31/07 4:44 PM
Subject: [flexcoders] Re: Flex 2 HTTPService best practices

> Here's a snippet from my XMLUtils class that converts an XML list of
> "companies" to an ArrayCollection of Company objects (relies on Darron
> Schall's ObjectTranslator tools for convenience):
> 
> /**
> * Convert from XML List to Company ArrayCollection
> **/
> public static function
> companiesXMLDecoder(xml:XMLDocument):ArrayCollection {
>  var companyCollection:ArrayCollection = new ArrayCollection();
>  var xmlDecoder:SimpleXMLDecoder = new SimpleXMLDecoder();
> 
>  if (xml.firstChild.childNodes.length > 0) {
>  var objectTree:Object = xmlDecoder.decodeXML(xml.firstChild);
>  var companies:Array;
> 
>  if (objectTree.company is Array) companies = objectTree.company;
>  else companies = new Array(objectTree.company);
> 
>  for (var i:int=0; i < companies.length; i++) {
>  var company:Company =
> ObjectTranslator.objectToInstance(companies[i], Company) as Company;
>  companyCollection.addItem(company);
>  }
>  }
>  return companyCollection;
> }
> 
> 
> - and now the HTTPService definition 
> 
> 
> 
> 
> 
> 
> ... the event.result received by getCompaniesResultHandler will be an
> ArrayCollection of Company objects.  =]
> 
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]"  wrote:
> >
> > I'd love to see an example, we were about to parse the XML and create
> our own array objects with the correct types for binding but this sounds
> like a much cleaner method.
> >
> > Cheers,
> > Grant
> >
> > - Original Message -
> > From: brent_trx [EMAIL PROTECTED]
> > To: flexcoders@yahoogroups.com
> > Sent: 1/31/07 4:27 PM
> > Subject: [flexcoders] Re: Flex 2 HTTPService best practices
> >
> > > I was facing a very similar issue just recently. I had all these AS
> > > model classes that mapped identical properties in accordance to the
> > > backend objects I was dealing with, but no FDS-style convenience
> > > mechanism to handle typing via HTTPService calls. What I found out
> is
> > > the beauty of the "xmlDecode" and "xmlEncode" methods.
> > >
> > > When you use the xmlDecode method, passing it a function reference,
> > > that function will expect an XMLDocument object that is generated
> > > automatically by the service. You can then take that XMLDocument,
> > > iterate through it, building and returning objects of whatever type
> > > you desire. When you access "event.result" in your handler function,
> > > that property value will be typed based on your decoder return type.
> > > So "event.result" is now, say a User object, rather than a user xml
> > > node representation.
> > >
> > > The beauty of this strategy is, at any point, your transport
> mechanism
> > > becomes disposable. If you suddenly decide to switch from XML to
> JSON
> > > as your transport mechanism of choice, you only need to code some
> > > decoder / encoder functions, and you're done. No need to change
> what,
> > > say, a datagrid expects. Very elegant architecture.
> > >
> > > I recommend taking a look at AS3's SimpleXMLDecoder class, along
> with
> > > Darron Schall's ObjectTranslator class, which makes writing an XML
> > > decoder a breeze.
> > >
> > > If anyone is interested, I can post a sample.



[flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread brent_trx
Here's a snippet from my XMLUtils class that converts an XML list of
"companies" to an ArrayCollection of Company objects (relies on Darron
Schall's ObjectTranslator tools for convenience):

/**
* Convert from XML List to Company ArrayCollection
**/
public static function
companiesXMLDecoder(xml:XMLDocument):ArrayCollection {
 var companyCollection:ArrayCollection = new ArrayCollection();
 var xmlDecoder:SimpleXMLDecoder = new SimpleXMLDecoder();

 if (xml.firstChild.childNodes.length > 0) {
 var objectTree:Object = xmlDecoder.decodeXML(xml.firstChild);
 var companies:Array;

 if (objectTree.company is Array) companies = objectTree.company;
 else companies = new Array(objectTree.company);

 for (var i:int=0; i < companies.length; i++) {
 var company:Company =
ObjectTranslator.objectToInstance(companies[i], Company) as Company;
 companyCollection.addItem(company);
 }
 }
 return companyCollection;
}


- and now the HTTPService definition 


http://someserver/getCompanies.xml";
 showBusyCursor="true"
 resultFormat="object"
 xmlDecode="XMLUtil.companiesXMLDecoder"
 result="getCompaniesResultHandler(event)"
 fault="getCompaniesFaultHandler(event)">



... the event.result received by getCompaniesResultHandler will be an
ArrayCollection of Company objects.  =]




--- In flexcoders@yahoogroups.com, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> 
wrote:
>
> I'd love to see an example, we were about to parse the XML and create
our own array objects with the correct types for binding but this sounds
like a much cleaner method.
>
> Cheers,
> Grant
>
> - Original Message -
> From: brent_trx [EMAIL PROTECTED]
> To: flexcoders@yahoogroups.com
> Sent: 1/31/07 4:27 PM
> Subject: [flexcoders] Re: Flex 2 HTTPService best practices
>
> > I was facing a very similar issue just recently. I had all these AS
> > model classes that mapped identical properties in accordance to the
> > backend objects I was dealing with, but no FDS-style convenience
> > mechanism to handle typing via HTTPService calls. What I found out
is
> > the beauty of the "xmlDecode" and "xmlEncode" methods.
> >
> > When you use the xmlDecode method, passing it a function reference,
> > that function will expect an XMLDocument object that is generated
> > automatically by the service. You can then take that XMLDocument,
> > iterate through it, building and returning objects of whatever type
> > you desire. When you access "event.result" in your handler function,
> > that property value will be typed based on your decoder return type.
> > So "event.result" is now, say a User object, rather than a user xml
> > node representation.
> >
> > The beauty of this strategy is, at any point, your transport
mechanism
> > becomes disposable. If you suddenly decide to switch from XML to
JSON
> > as your transport mechanism of choice, you only need to code some
> > decoder / encoder functions, and you're done. No need to change
what,
> > say, a datagrid expects. Very elegant architecture.
> >
> > I recommend taking a look at AS3's SimpleXMLDecoder class, along
with
> > Darron Schall's ObjectTranslator class, which makes writing an XML
> > decoder a breeze.
> >
> > If anyone is interested, I can post a sample.




RE: [flexcoders] date formating

2007-01-31 Thread Brian Holmes
Roger,
 Use the following function.



public function
gridDateFormatter(item:Object,column:DataGridColumn):String 
{   
var f:DateFormatter = new DateFormatter();
f.formatString = "DD-MMM-"; 
return f.format(item[column.dataField]);
} 



Then on your grid column set the labelfucntion like:





Change the format string to match the format you need.


B.


-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Roger Ross
Sent: Wednesday, January 31, 2007 2:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] date formating

Hello,

I have a date field in a grid.
what is the correct syntax to get it to display MM/DD/ right now it
displays as Wed Jan 30 00:00:00 GMT

I have  as my date
format and I added the syntax to the datafield
dataField="{df.format(entrydate)}"

But this just gives me an error.

I found how to do it on a label but I need it formated in a grid
column..

Thank you 

Roger





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





***
The information in this e-mail is confidential and intended solely for the 
individual or entity to whom it is addressed.  If you have received this e-mail 
in error please notify the sender by return e-mail delete this e-mail and 
refrain from any disclosure or action based on the information.
***


[flexcoders] Re: Cairngorm 2.1 AMFPHP 1.9

2007-01-31 Thread ericbichara
Hi, your config script looks fine to me, give us an example of your
service.mxlm file, maybe youre calling the service inccorectly? Here
is an example of mine:


http://www.adobe.com/2006/mxml";   
xmlns:cairngorm="com.adobe.cairngorm.business.*">
   
 



and script:










*







http://localhost/amfphp/gateway.php";
class="flex.messaging.endpoints.AMFEndpoint"/>




--- In flexcoders@yahoogroups.com, "mapper2255" <[EMAIL PROTECTED]> wrote:
>
> Hello,
> 
> Have been trying all day to get CairngromStore running and keep 
> getting this error: theMessagingError message='Unknown 
> destination 'AMFPHP1_9'.' Using xampp/php 5.
> 
> Have searched a long time for the answer with no help. Ran across 
> this thread: http://www.mail-
> archive.com/flexcoders@yahoogroups.com/msg49480.html.
> 
> So I am using: 
> 
> 
>   class="flex.messaging.services.RemotingService"
>  
> messageTypes="flex.messaging.messages.RemotingMessage">
> 
> 
> 
> 
> 
> *
> 
> 
> 
> 
> 
> 
>  class="mx.messaging.channels.AMFChannel">
> http://localhost/amfphp1_9/gateway.php"; 
> class="flex.messaging.endpoints.AMFEndpoint"/>
> 
> 
> 
> 
> Have set up and have running amfphp 1.9. 
> 
> Any suggestions? I know it is something simple.
> 
> Thanks.
>




Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Doug McCune
You're definitely right, that's a clear bug in how SWFLoader works. I 
have a solution that involves duplicating the code for SWFLoader and 
modifying it a little bit. What's interesting is that in the Design view 
of FB, the PNG has perfect transparency in both cases. But in the 
published SWF, the transparency is not preserved when using @Embed.


I will be writing up a blog post and my solution later today.

For now, here's a sample of the problem with a working solution. I'll be 
writing up the description of what I had to do (obviously it's not much 
since it didn't take very long). So if you want to check out the code 
before I write up the post, the important part has to do with setting 
the mimeType of the embedded asset, and then in the modified SWFLoader 
code, check out around line 1217 in the loadContent method. It uses 
loadBytes of the Loader class to load the bytes of the embedded asset.


http://dougmccune.com/flex/png_test/
(right click to View Source)

Doug


Pan Troglodytes wrote:


Could you clarify what you  mean by "works for me"?  Do you mean you 
are getting transparency on the PNG?


I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html 



Just right-click to view the source.

They both use the same png file.  The first one renders with an olive 
background (the original background color of the image).  The second 
renders the transparency properly.


Does this work differently under Flex/Flash Player for you?


On 1/31/07, *ben.clinkinbeard* <[EMAIL PROTECTED] 
> wrote:


 orks for me...

Not sure what else to recommend.

--- In flexcoders@yahoogroups.com
, "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Sadly, no. It also doesn't work if you declare a variable like
>
> [Embed(source="/assets/user-big.png")] private var userIcon:Class;
>
>
> FYI, from the docs:
>
> About the source parameter
>
> In almost all cases, you must specify the source parameter or
nothing is
> embedded.
>
> The source parameter is the default parameter of the [Embed]
metadata tag;
> therefore, if you are not specifying any other parameters, you
can just
> supply its value without explicitly including the parameter name or
> assigning it the desired value
>
>
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> > According to the docs, the correct syntax is:
> >
> > 
> >
> > Does that work?
> >
> > HTH,
> > Ben
> >
> > --- In flexcoders@yahoogroups.com

, "Pan


> > Troglodytes"
> >  wrote:
> > >
> > > This is still a problem. I couldn't remember if I entered it
in the
> > Adobe
> > > bug page, so I just went ahead and did it. This is a bit of a
pain as
> > > transparent icons are very important in GUIs. GIF works fine
but is
> > limited
> > > to 256 colors.
> > >
> > >
> > >
> > > On 12/6/06, Pan Troglodytes  wrote:
> > > >
> > > > I've run into a situation where the exact same PNG file
will show
> > up as
> > > > transparent only when it's not embedded. Here is the mxml:
> > > >
> > > > 
> > > > 
> > > >
> > > > Including both images on the page, the first is missing the
> > transparent
> > > > background. The second is fine. I have manually checked the
> > images, both
> > > > in the dev directory and bin directory. In fact, I have
manually
> > copied the
> > > > dev ones over the top of the bin ones to make sure. If I
drag the
> > images to
> > > > Firefox, both appear with no background. The background
color is
> > teal, so I
> > > > would definitely notice.
> > > >
> > > > Near as I can tell, the embed is causing the background
> > transparency to
> > > > not be processed. I can't find anything in the docs saying this
> > is expected
> > > > behavior.
> > > >
> > > > --
> > > > Jason
> > >
> > >
> > >
> > >
> > > --
> > > Jason
> > >
> >
> >
> >
>
>
>
> --
> Jason
>




--
Jason
 




[flexcoders] date formating

2007-01-31 Thread Roger Ross
Hello,

I have a date field in a grid.
what is the correct syntax to get it to display MM/DD/
right now it displays as Wed Jan 30 00:00:00 GMT

I have 
as my date format and I added the syntax to the datafield
dataField="{df.format(entrydate)}"

But this just gives me an error.

I found how to do it on a label but I need it formated in a grid column..

Thank you 

Roger





Re: [flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread [EMAIL PROTECTED]
I'd love to see an example, we were about to parse the XML and create our own 
array objects with the correct types for binding but this sounds like a much 
cleaner method.

Cheers,
Grant

- Original Message -
From: brent_trx [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: 1/31/07 4:27 PM
Subject: [flexcoders] Re: Flex 2 HTTPService best practices

> I was facing a very similar issue just recently. I had all these AS
> model classes that mapped identical properties in accordance to the
> backend objects I was dealing with, but no FDS-style convenience
> mechanism to handle typing via HTTPService calls. What I found out is
> the beauty of the "xmlDecode" and "xmlEncode" methods.
> 
> When you use the xmlDecode method, passing it a function reference,
> that function will expect an XMLDocument object that is generated
> automatically by the service. You can then take that XMLDocument,
> iterate through it, building and returning objects of whatever type
> you desire. When you access "event.result" in your handler function,
> that property value will be typed based on your decoder return type.
> So "event.result" is now, say a User object, rather than a user xml
> node representation.
> 
> The beauty of this strategy is, at any point, your transport mechanism
> becomes disposable. If you suddenly decide to switch from XML to JSON
> as your transport mechanism of choice, you only need to code some
> decoder / encoder functions, and you're done. No need to change what,
> say, a datagrid expects. Very elegant architecture. 
> 
> I recommend taking a look at AS3's SimpleXMLDecoder class, along with
> Darron Schall's ObjectTranslator class, which makes writing an XML
> decoder a breeze.
> 
> If anyone is interested, I can post a sample.
> 
> 
> > So I tried setting the resultFormat to "object" for a service that
> > returns a fairly deep XML structure. I found that it did a pretty good
> > job of mapping the text nodes to the correct types (Boolean, String
> > and Number); it didn't map "2006-11-17" to a Date, but hey, you can't
> > be all things to all people.
> > 
> > Anybody else out there have experience with resultFormat="object"? Is
> > there any documentation that specifically describes how the object
> > graph is put together and what the text-node-to-object rules are? I
> > suppose I could go look at the source code, but figured I might as
> > well ask around first.
> > 
> > Thanks,
> > Chris



[flexcoders] Re: Setting variables... confusion over scope, ref/val etc.

2007-01-31 Thread jamiebadman
Thanks Ralf - extremely helpful. Just looked at ObjectUtil and that
looks like it'll do the job. I'm at home now though so it'll wait 'til
tomorrow ;-)

Cheers,

Jamie.

--- In flexcoders@yahoogroups.com, "Ralf Bokelberg"
<[EMAIL PROTECTED]> wrote:
>
> Hi Jamie
> 
> The following two simple rules might be helpful:
> 1. Objects and Arrays are always references (in contrast to numbers,
bools
> and strings, which are always values)
> 2. Objects and Arrays exist as long, as a reference to it exits.
> 
> If you want to add copies of an Object to a collection, you have to
create
> this copy on your own because of rule 1. Maybe ObjectUtil is helpful
here.
> If you globally store a reference to a locally created object, the
object
> ist not destroyed, when the method is finished (rule 2)
> 
> Cheers,
> Ralf
> 
> 
> 
> 
> On 1/31/07, jamiebadman <[EMAIL PROTECTED]> wrote:
> >
> >   I'm getting really confused here!
> >
> > This is what's happening...
> >
> > I have an arrayCollection on the 'model' and also an arrayCollection
> > in a local function (the result function in a 'command' module which
> > is fired on return from a web service).
> >
> > So I'm using this local arrayCollection to build up the one on the
> > model.
> >
> > However...
> >
> > model.globalAC.addItem(localAC);
> >
> > will add an item on the model AC but if I then do this:
> >
> > localAC.removeAll();
> >
> > Not only does localAC get cleared down - so does the item on
> > globalAC!
> >
> > So if I do this:
> >
> > model.globalAC.addItem(localAC);
> > model.globalAC.addItem(localAC);
> >
> > I get two elements created in globalAC... again the localAC.removeAll
> > () clears down not just localAC but both elements on the globalAC!
> >
> > So it seems that when I do the 'addItem', I'm actually adding a
> > reference to localAC to globalAC. How can I not do this - I want a
> > copy of localAC created in globalAC[].
> >
> > Also, localAC is defined locally. How is it then, that another
> > component that uses model, can see the contents of localAC via the
> > reference in globalAC ? Isn't localAC destroyed when the local
> > function is exited ?
> >
> > Again, thanks for any insight/help anyone can offer!
> >
> > Cheers,
> >
> > Jamie.
> >
> >  
> >
> 
> 
> 
> -- 
> Ralf Bokelberg <[EMAIL PROTECTED]>
> Flex & Flash Consultant based in Cologne/Germany
> Phone +49 (0) 221 530 15 35
>




[flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread brent_trx
I was facing a very similar issue just recently. I had all these AS
model classes that mapped identical properties in accordance to the
backend objects I was dealing with, but no FDS-style convenience
mechanism to handle typing via HTTPService calls. What I found out is
the beauty of the "xmlDecode" and "xmlEncode" methods.

When you use the xmlDecode method, passing it a function reference,
that function will expect an XMLDocument object that is generated
automatically by the service. You can then take that XMLDocument,
iterate through it, building and returning objects of whatever type
you desire. When you access "event.result" in your handler function,
that property value will be typed based on your decoder return type.
So "event.result" is now, say a User object, rather than a user xml
node representation.

The beauty of this strategy is, at any point, your transport mechanism
becomes disposable. If you suddenly decide to switch from XML to JSON
as your transport mechanism of choice, you only need to code some
decoder / encoder functions, and you're done. No need to change what,
say, a datagrid expects. Very elegant architecture. 

I recommend taking a look at AS3's SimpleXMLDecoder class, along with
Darron Schall's ObjectTranslator class, which makes writing an XML
decoder a breeze.

If anyone is interested, I can post a sample.


> So I tried setting the resultFormat to "object" for a service that
> returns a fairly deep XML structure. I found that it did a pretty good
> job of mapping the text nodes to the correct types (Boolean, String
> and Number); it didn't map "2006-11-17" to a Date, but hey, you can't
> be all things to all people.
> 
> Anybody else out there have experience with resultFormat="object"? Is
> there any documentation that specifically describes how the object
> graph is put together and what the text-node-to-object rules are? I
> suppose I could go look at the source code, but figured I might as
> well ask around first.
> 
> Thanks,
> Chris




Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread dorkie dork from dorktown

Pan,
I see the background in one and no background in the other. I think I am
having the same problem and I have had no idea what is causing it. Take a
look at my post about it. http://www.judahfrangipane.com/blog/?p=71 You can
see it works on a page by itself but embedded into my blog header there is
no transparency. I will have to try to not embed it and see if that makes a
difference.


On 1/31/07, Pan Troglodytes <[EMAIL PROTECTED]> wrote:


Could you clarify what you  mean by "works for me"?  Do you mean you are
getting transparency on the PNG?

I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html

Just right-click to view the source.

They both use the same png file.  The first one renders with an olive
background (the original background color of the image).  The second renders
the transparency properly.

Does this work differently under Flex/Flash Player for you?


On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED] > wrote:
>
>orks for me...
>
> Not sure what else to recommend.
>
> --- In flexcoders@yahoogroups.com , "Pan
> Troglodytes"
> <[EMAIL PROTECTED]> wrote:
> >
> > Sadly, no. It also doesn't work if you declare a variable like
> >
> > [Embed(source="/assets/user-big.png")] private var userIcon:Class;
> >
> >
> > FYI, from the docs:
> >
> > About the source parameter
> >
> > In almost all cases, you must specify the source parameter or nothing
> is
> > embedded.
> >
> > The source parameter is the default parameter of the [Embed]
> metadata tag;
> > therefore, if you are not specifying any other parameters, you can
> just
> > supply its value without explicitly including the parameter name or
> > assigning it the desired value
> >
> >
> > On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> > >
> > > According to the docs, the correct syntax is:
> > >
> > > 
> > >
> > > Does that work?
> > >
> > > HTH,
> > > Ben
> > >
> > > --- In flexcoders@yahoogroups.com 
, "Pan
>
> > > Troglodytes"
> > >  wrote:
> > > >
> > > > This is still a problem. I couldn't remember if I entered it in
> the
> > > Adobe
> > > > bug page, so I just went ahead and did it. This is a bit of a
> pain as
> > > > transparent icons are very important in GUIs. GIF works fine but
> is
> > > limited
> > > > to 256 colors.
> > > >
> > > >
> > > >
> > > > On 12/6/06, Pan Troglodytes  wrote:
> > > > >
> > > > > I've run into a situation where the exact same PNG file will
> show
> > > up as
> > > > > transparent only when it's not embedded. Here is the mxml:
> > > > >
> > > > > 
> > > > > 
> > > > >
> > > > > Including both images on the page, the first is missing the
> > > transparent
> > > > > background. The second is fine. I have manually checked the
> > > images, both
> > > > > in the dev directory and bin directory. In fact, I have manually
> > > copied the
> > > > > dev ones over the top of the bin ones to make sure. If I drag
> the
> > > images to
> > > > > Firefox, both appear with no background. The background color is
> > > teal, so I
> > > > > would definitely notice.
> > > > >
> > > > > Near as I can tell, the embed is causing the background
> > > transparency to
> > > > > not be processed. I can't find anything in the docs saying this
> > > is expected
> > > > > behavior.
> > > > >
> > > > > --
> > > > > Jason
> > > >
> > > >
> > > >
> > > >
> > > > --
> > > > Jason
> > > >
> > >
> > >
> > >
> >
> >
> >
> > --
> > Jason
> >
>
>


--
Jason 



[flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread ben.clinkinbeard
Yes, I get transparency with that syntax... but not with your PNG.
Opening your PNG in Photoshop also doesn't yield any transparency. So
I am confused on how you're getting the transparency at all (Your
sample appears as described- one opaque, one transparent).

Ben


--- In flexcoders@yahoogroups.com, "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Could you clarify what you  mean by "works for me"?  Do you mean you are
> getting transparency on the PNG?
> 
> I uploaded my full code for an example:
> 
> http://three.fsphost.com/flex2/png/PNGBug.html
> 
> Just right-click to view the source.
> 
> They both use the same png file.  The first one renders with an olive
> background (the original background color of the image).  The second
renders
> the transparency properly.
> 
> Does this work differently under Flex/Flash Player for you?
> 
> 
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >orks for me...
> >
> > Not sure what else to recommend.
> >
> > --- In flexcoders@yahoogroups.com , "Pan
> > Troglodytes"
> >  wrote:
> > >
> > > Sadly, no. It also doesn't work if you declare a variable like
> > >
> > > [Embed(source="/assets/user-big.png")] private var userIcon:Class;
> > >
> > >
> > > FYI, from the docs:
> > >
> > > About the source parameter
> > >
> > > In almost all cases, you must specify the source parameter or
nothing is
> > > embedded.
> > >
> > > The source parameter is the default parameter of the [Embed]
> > metadata tag;
> > > therefore, if you are not specifying any other parameters, you
can just
> > > supply its value without explicitly including the parameter name or
> > > assigning it the desired value
> > >
> > >
> > > On 1/31/07, ben.clinkinbeard  wrote:
> > > >
> > > > According to the docs, the correct syntax is:
> > > >
> > > > 
> > > >
> > > > Does that work?
> > > >
> > > > HTH,
> > > > Ben
> > > >
> > > > --- In flexcoders@yahoogroups.com
, "Pan
> >
> > > > Troglodytes"
> > > >  wrote:
> > > > >
> > > > > This is still a problem. I couldn't remember if I entered it
in the
> > > > Adobe
> > > > > bug page, so I just went ahead and did it. This is a bit of a
> > pain as
> > > > > transparent icons are very important in GUIs. GIF works fine
but is
> > > > limited
> > > > > to 256 colors.
> > > > >
> > > > >
> > > > >
> > > > > On 12/6/06, Pan Troglodytes  wrote:
> > > > > >
> > > > > > I've run into a situation where the exact same PNG file
will show
> > > > up as
> > > > > > transparent only when it's not embedded. Here is the mxml:
> > > > > >
> > > > > > 
> > > > > > 
> > > > > >
> > > > > > Including both images on the page, the first is missing the
> > > > transparent
> > > > > > background. The second is fine. I have manually checked the
> > > > images, both
> > > > > > in the dev directory and bin directory. In fact, I have
manually
> > > > copied the
> > > > > > dev ones over the top of the bin ones to make sure. If I
drag the
> > > > images to
> > > > > > Firefox, both appear with no background. The background
color is
> > > > teal, so I
> > > > > > would definitely notice.
> > > > > >
> > > > > > Near as I can tell, the embed is causing the background
> > > > transparency to
> > > > > > not be processed. I can't find anything in the docs saying
this
> > > > is expected
> > > > > > behavior.
> > > > > >
> > > > > > --
> > > > > > Jason
> > > > >
> > > > >
> > > > >
> > > > >
> > > > > --
> > > > > Jason
> > > > >
> > > >
> > > >
> > > >
> > >
> > >
> > >
> > > --
> > > Jason
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Jason
>




Re: [flexcoders] Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread John Dowdell
Alexander Tsoukias wrote:
> How is it possible to take a canvas from FLEX and convert it to vector
> PDF?

I'm not sure... when you say "FLEX" are you thinking of the Flex Builder 
development environment, or the Flex Data Services server, or the Adobe 
Flash Player which is running a SWF which happened to be created using 
the Flex framework?

And where would the resulting PDF file be created... on your development 
machine during development, on your server when a visitor arrives, or 
would a PDF be created and stored on the enduser machine as they 
interact with a SWF?

There could be different paths, depending on where we're starting from, 
where we want to end up...?

jd





-- 
John Dowdell . Adobe Developer Support . San Francisco CA USA
Weblog: http://weblogs.macromedia.com/jd
Aggregator: http://weblogs.macromedia.com/mxna
Technotes: http://www.macromedia.com/support/
Spam killed my private email -- public record is best, thanks.


[flexcoders] Cairngorm 2.1 AMFPHP 1.9

2007-01-31 Thread mapper2255
Hello,

Have been trying all day to get CairngromStore running and keep 
getting this error: theMessagingError message='Unknown 
destination 'AMFPHP1_9'.' Using xampp/php 5.

Have searched a long time for the answer with no help. Ran across 
this thread: http://www.mail-
archive.com/flexcoders@yahoogroups.com/msg49480.html.

So I am using: 








*







http://localhost/amfphp1_9/gateway.php"; 
class="flex.messaging.endpoints.AMFEndpoint"/>




Have set up and have running amfphp 1.9. 

Any suggestions? I know it is something simple.

Thanks.





[flexcoders] Re: tracking a user session

2007-01-31 Thread superstella_uk
Im guessing you want to pass the session id onto any web servics
called from Flex? Maybe you could have the initial dyn html pages pass
the session to the flash applet, and the Flex can pick that up and
send it along with a param to all server calls?

--- In flexcoders@yahoogroups.com, "mthielman11" <[EMAIL PROTECTED]> wrote:
>
> I am having a surprisingly very difficult time finding a concrete
> answer as to how to handle sessions in flex. We need to be able to
> track a user once they are logged into the system.  Security in our
> app is critical and every post needs to be validated.  IN our current
> web app we simply had a string added to the end of each url that
> tracked the users session.  What is the best way to handle this in
> flex??  We need to know and track session validity, timeout, logout
> and prvilages to modules and features. thanks.  Our back end is
> java/postgres.
>




[flexcoders] Problem with state based on another state

2007-01-31 Thread theflashcanon
I'm going to do the best I can to explain this without showing code
(legal reasons). Here is an example of my states "layout":

BaseState
StateOne
--StateOneA (based on StateOne)
--StateOneB (based on StateOne)
--StateOneC (based on StateOne)
StateTwo
--StateTwoA (based on StateTwo)
--StateTwoB (based on StateTwo)
--StateTwoC (based on StateTwo)
StateThree


And now the issue:
If I go from BaseState to StateOne, StateTwo, or StateThree, ( or
StateOne to StateTwo, etc) everything works great. However, once I go
to any state that's based on another state (StateOneA for example), I
can't get that state to go away when I try to leave it. What happens
is that the new state I'm trying to get to just shows up on top of the
old state. After that, the entire app is busted and has to be closed.

What I've tried:
I've removed the transitions to see if that was causing any problems.
I've done RemoveChild on everything in the state which I'm trying to
leave.
I've removed all of the states and tried rebuilding them from scratch.
And I've tried a few other things that I can't remember right now.

So, without being able to actually show the code, does this sound
familiar to anyone or does anyone have any shot-in-the-dark ideas I
might be able to try?

Thanks in advance!
FlashCanon



[flexcoders] Latest FABridge release- is the source complete?

2007-01-31 Thread ben.clinkinbeard
I am seeing several files like this and wondering if something got
hosed during the upload process:

FABridg.txt
===
FILE QUARANTINED


Antigen for Exchange removed winmail.dat->FABridge->FABridge.js since it
was found to match the FILE FILTER= unnamed: *.js file filter.


I downloaded the zip from
http://download.macromedia.com/pub/labs/flex/2/FABridge_B4_013007.zip

Thanks,
Ben



RE: [flexcoders] Re: Question on managing Flex libaries and Modules

2007-01-31 Thread Roger Gonzalez
If you mark the library as external from the modules, you'll need to
ensure that it is either fully included in the application or else
loaded as a RSL by the application.
 
-rg




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of zzwi89
Sent: Wednesday, January 31, 2007 12:58 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question on managing Flex libaries and
Modules



I should add that for the two non-library projects, I have set
the
project properties to include the library. I even tried setting
the
link type of the library in each project to External, which has
the
desired effect of decreasing file size, but causes this error:

VerifyError: Error #1014: Class IWatcherSetupUtil could not be
found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/::deferredNextFrame()
at mx.core::FlexModuleFactory/::update()
at mx.core::FlexModuleFactory/::moduleCompleteHandler()

Consequently, none of the modules are loaded.



 



Re: [flexcoders] Re: Does asdoc work??

2007-01-31 Thread Anatole Tartakovsky

Other alternative is to load plugin for the asdoc - out beta is @
www.flex2doc.org

Regards,
Anatole



On 1/31/07, Stephen Gilson <[EMAIL PROTECTED]> wrote:


   Here is how I generated ASDoc for Cairngorm:

1. Copied the Cairngorm files to the asdoc directory under wherever you
installed the sdk. The source files are therefore in:

FLEXINSTALLDIR\asdoc\Cairngorm\com\adobe\cairngorm

2. Ran the following command from the asdoc directory:

..\bin\asdoc -source-path Cairngorm -doc-sources Cairngorm\com -main-title
"Cairngorm Documentation" -window-title "Cairngorm Documentation" -output
cairngorm-asdoc

The output is written to FLEXINSTALLDIR\\asdoc\cairngorm-asdoc

Let me know if that works.

Stephen

 --
*From:* flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] *On
Behalf Of *tvikatos
*Sent:* Wednesday, January 31, 2007 1:42 PM
*To:* [EMAIL PROTECTED] ups.com
*Subject:* [flexcoders] Re: Does asdoc work??



Yes, I have.
I am probably doing something wrong but it's extremely difficult to
figure out what. This has to become friendlyer than command line
and give meaningful feedback...

--- In flexcoders@yahoogroups.com , "Stephen
Gilson" <[EMAIL PROTECTED]> wrote:
>
> Have you checked the doc on ASDoc:
>
> http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html
>
> Stephen
>
> 
>
> From: flexcoders@yahoogroups.com  [mailto:
flexcoders@yahoogroups.com ] On
> Behalf Of tvikatos
> Sent: Wednesday, January 31, 2007 11:56 AM
> To: flexcoders@yahoogroups.com 
> Subject: [flexcoders] Does asdoc work??
>
>
>
> I decided to play a bit with asdoc to document my project, but I just
> can't get the damn thing to work. At some point it started complaining
> about not being able to find the cairngorm lib classes. I used the
> -library-path option to point to the swc, but still getting errors
> with very meaningful descriptions:
>
> Error #1095: XML parser failure: Unterminated attribute.
>
> or
> Error: null
>
> Is this a product we can use or just wasting our time?
>

 



[flexcoders] Re: Question on managing Flex libaries and Modules

2007-01-31 Thread zzwi89
I should add that for the two non-library projects, I have set the
project properties to include the library. I even tried setting the
link type of the library in each project to External, which has the
desired effect of decreasing file size, but causes this error:

VerifyError: Error #1014: Class IWatcherSetupUtil could not be found.
at flash.display::MovieClip/nextFrame()
at mx.core::FlexModuleFactory/::deferredNextFrame()
at mx.core::FlexModuleFactory/::update()
at mx.core::FlexModuleFactory/::moduleCompleteHandler()

Consequently, none of the modules are loaded.




[flexcoders] MenuBar component: Open on rollover, not click?

2007-01-31 Thread August Kaiser
Is there a simple way to show MenuBar drop-downs on rollover, instead of 
click?

- August



RE: [flexcoders] Re: Does asdoc work??

2007-01-31 Thread Stephen Gilson
Here is how I generated ASDoc for Cairngorm:
 
1. Copied the Cairngorm files to the asdoc directory under wherever you
installed the sdk. The source files are therefore in:
 
FLEXINSTALLDIR\asdoc\Cairngorm\com\adobe\cairngorm
 
2. Ran the following command from the asdoc directory:
 
..\bin\asdoc -source-path Cairngorm -doc-sources Cairngorm\com
-main-title "Cairngorm Documentation" -window-title "Cairngorm
Documentation" -output cairngorm-asdoc
 
The output is written to FLEXINSTALLDIR\\asdoc\cairngorm-asdoc
 
Let me know if that works.
 
Stephen




From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tvikatos
Sent: Wednesday, January 31, 2007 1:42 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Does asdoc work??



Yes, I have.
I am probably doing something wrong but it's extremely difficult to
figure out what. This has to become friendlyer than command line
and give meaningful feedback...

--- In flexcoders@yahoogroups.com 
, "Stephen Gilson" <[EMAIL PROTECTED]> wrote:
>
> Have you checked the doc on ASDoc:
> 
> http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html
 
> 
> Stephen
> 
> 
> 
> From: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] On
> Behalf Of tvikatos
> Sent: Wednesday, January 31, 2007 11:56 AM
> To: flexcoders@yahoogroups.com  
> Subject: [flexcoders] Does asdoc work??
> 
> 
> 
> I decided to play a bit with asdoc to document my project, but I just
> can't get the damn thing to work. At some point it started complaining
> about not being able to find the cairngorm lib classes. I used the
> -library-path option to point to the swc, but still getting errors
> with very meaningful descriptions:
> 
> Error #1095: XML parser failure: Unterminated attribute.
> 
> or 
> Error: null
> 
> Is this a product we can use or just wasting our time?
>



 


[flexcoders] Checking data entered in an editable datagrid

2007-01-31 Thread withoutname5962
Hello,

I'm using an editable datagrid. I want to check the data entered in the 
cells using the "DataGridEvent.ITEM_EDIT_END" event.

How can I obtain the entered data? And how send the corrected data to 
the DataGrid?

Thanks a lot.




[flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread Chris Luebcke
So I tried setting the resultFormat to "object" for a service that
returns a fairly deep XML structure. I found that it did a pretty good
job of mapping the text nodes to the correct types (Boolean, String
and Number); it didn't map "2006-11-17" to a Date, but hey, you can't
be all things to all people.

Anybody else out there have experience with resultFormat="object"? Is
there any documentation that specifically describes how the object
graph is put together and what the text-node-to-object rules are? I
suppose I could go look at the source code, but figured I might as
well ask around first.

Thanks,
Chris

--- In flexcoders@yahoogroups.com, "Chris Luebcke" <[EMAIL PROTECTED]> wrote:
>
> Hi Ian, I'm using XML over HTTPService in my current app and may be
> able to help with some of this. Responses inline below.
> 
> --- In flexcoders@yahoogroups.com, Ian Shafer  wrote:
> > ...regarding using HTTPService:
> > 
> > * Should I be using it? I'm choosing to use HTTPService because I
don't
> > want to pay for FDS and it (HTTPService) *seems* simple so that if
there
> > are problems, I could easily be able to fix them (as opposed to using
> > FDS and Adobe's proprietary encoding). Also, XML over HTTP is
simple and
> > always works. Hooking up remote objects just seems like a pain.
> 
> The answer to that question ultimately comes down to your specific
> project needs, of course. I'm not using FDS (for the usual reasons),
> and there doesn't appear to be an open-source (or otherwise really
> cheap) alternative to using AMF3 to communicate to a Java backend. So
> that really leaves some flavor of XML over HTTP as the raw message
> language and protocol. We deliberated between SOAP, REST and homegrown
> XML message protocols, and ultimately settled on homegrown for a
> variety of reasons I won't bore you with. Again, it really depends on
> your specific needs, but so far our solution is shaping up very nicely.
> 
> > * What is the best resultFormat to use. As far as I can tell,
there are
> > three: object, e4x, and xml. The xml format seems obsolete since
we now
> > have e4x. Is there any reason to use xml? I get e4x (pretty sweet, I
> > think this is a *great* language feature). The only drawback I've
found
> > so far is the datatype of e4x values. They all seem to be Strings.
I get
> > this, but I wonder if there's an easy way to say "all @quantity fields
> > are numeric" so it'll sort nice in a DataGrid. object seems cool, but
> > I'm not 100% clear how it works.
> 
> Me neither, frankly. I might consider trying it, though, given that
> there is apparently some basic type casting done when you use this
> format, according to the dev guide:
> 
> "By default, the resultFormat property value of HTTPService components
> and WebService component operations is object, and the data that is
> returned is represented as a simple tree of ActionScript objects. Flex
> interprets the XML data that a web service or HTTP service returns to
> appropriately represent base types, such as String, Number, Boolean,
> and Date. To work with strongly typed objects, you must populate those
> objects using the object tree that Flex creates."
> 
> > Can I tell HTTPService which class to
> > bind the objects to? I don't use Flex Builder (again, I don't like to
> > pay for software, and I don't have the money), so it's tough to
> > introspect the objects at runtime (although I did see something about
> > command line debugging, I'll have to look into that).
> 
> I believe this creates a new graph of objects with dynamically created
> properties. I don't believe there's any configurable mechanism for
> mapping XML to particular object classes or types; I think if you need
>  mapping different from what resultFormat="object" gives you, you need
> to roll your own. Not positive, though.
>  
> > * I want to call (HTTPService.send()) my service with different query
> > parameters. What's the best way to do this? Currently, I'm creating a
> > new HTTPService in AS and generating the URL every time it is called.
> > This doesn't seem right to me.
> 
> Nah, it ain't :) Create a single HTTPService and modify its request
> property; this property takes "an object of name/value pairs", which
> just means that it'll treat every property name on the object as a
> parameter name and will call toString() on the property value to get
> the parameter value.
> 
> You may want to look at Cairngorm's implementation of the Service
> Locator pattern, which provides an application-wide singleton that
> wraps you services, allowing central definition of services along with
> global access to them. I like the pattern, your mileage may vary.
> 
> > * Should I use a service-config.xml file? I haven't been able to find
> > good documentation on this?
> 
> Only applies to FDS, I'm pretty sure.
>




[flexcoders] Question on managing Flex libaries and Modules

2007-01-31 Thread zzwi89
I have tried to split up my project in Flex Builder into three
separate 'projects'.

First, we have the library project I created. In this I've put
everything that gets reused a lot - meaning custom components and skin
classes.

Next, the module project. I created this following Adobe's module
guide. Essentially, I create applications in this project and retag
the root so they become Modules. Then, I redirect the build path to my
third project.

In the third project, I organize the modules into the various screens
that comprise my application. And now, my problem! I am finding that
the library project gets compiled into every module. This defeats the
point of it all, and I was wondering if there isn't a way to have the
modules reference the library but not include it each time.





[flexcoders] Embedding all or part of SWF assets

2007-01-31 Thread dorkie dork from dorktown

Lets say I have a swf file that has 10 assets (say skins) in it. If I use
this swf in my flex project but I only use one of those assets does Flex
compile in the other nine?

For example, I saw a theme.swf that contained skinning elements for a theme.
I want to embed one skin from it but I don't want to include the 30 other
skins that are in this theme.swf file thus increasing the size of the main
application.

dorkie slim fast dork from from dorktown


Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Pan Troglodytes

Could you clarify what you  mean by "works for me"?  Do you mean you are
getting transparency on the PNG?

I uploaded my full code for an example:

http://three.fsphost.com/flex2/png/PNGBug.html

Just right-click to view the source.

They both use the same png file.  The first one renders with an olive
background (the original background color of the image).  The second renders
the transparency properly.

Does this work differently under Flex/Flash Player for you?


On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:


   orks for me...

Not sure what else to recommend.

--- In flexcoders@yahoogroups.com , "Pan
Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Sadly, no. It also doesn't work if you declare a variable like
>
> [Embed(source="/assets/user-big.png")] private var userIcon:Class;
>
>
> FYI, from the docs:
>
> About the source parameter
>
> In almost all cases, you must specify the source parameter or nothing is
> embedded.
>
> The source parameter is the default parameter of the [Embed]
metadata tag;
> therefore, if you are not specifying any other parameters, you can just
> supply its value without explicitly including the parameter name or
> assigning it the desired value
>
>
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> > According to the docs, the correct syntax is:
> >
> > 
> >
> > Does that work?
> >
> > HTH,
> > Ben
> >
> > --- In flexcoders@yahoogroups.com 
, "Pan

> > Troglodytes"
> >  wrote:
> > >
> > > This is still a problem. I couldn't remember if I entered it in the
> > Adobe
> > > bug page, so I just went ahead and did it. This is a bit of a
pain as
> > > transparent icons are very important in GUIs. GIF works fine but is
> > limited
> > > to 256 colors.
> > >
> > >
> > >
> > > On 12/6/06, Pan Troglodytes  wrote:
> > > >
> > > > I've run into a situation where the exact same PNG file will show
> > up as
> > > > transparent only when it's not embedded. Here is the mxml:
> > > >
> > > > 
> > > > 
> > > >
> > > > Including both images on the page, the first is missing the
> > transparent
> > > > background. The second is fine. I have manually checked the
> > images, both
> > > > in the dev directory and bin directory. In fact, I have manually
> > copied the
> > > > dev ones over the top of the bin ones to make sure. If I drag the
> > images to
> > > > Firefox, both appear with no background. The background color is
> > teal, so I
> > > > would definitely notice.
> > > >
> > > > Near as I can tell, the embed is causing the background
> > transparency to
> > > > not be processed. I can't find anything in the docs saying this
> > is expected
> > > > behavior.
> > > >
> > > > --
> > > > Jason
> > >
> > >
> > >
> > >
> > > --
> > > Jason
> > >
> >
> >
> >
>
>
>
> --
> Jason
>

 





--
Jason


[flexcoders] Re: Flex 2 HTTPService best practices

2007-01-31 Thread Chris Luebcke
Hi Ian, I'm using XML over HTTPService in my current app and may be
able to help with some of this. Responses inline below.

--- In flexcoders@yahoogroups.com, Ian Shafer <[EMAIL PROTECTED]> wrote:
> ...regarding using HTTPService:
> 
> * Should I be using it? I'm choosing to use HTTPService because I don't
> want to pay for FDS and it (HTTPService) *seems* simple so that if there
> are problems, I could easily be able to fix them (as opposed to using
> FDS and Adobe's proprietary encoding). Also, XML over HTTP is simple and
> always works. Hooking up remote objects just seems like a pain.

The answer to that question ultimately comes down to your specific
project needs, of course. I'm not using FDS (for the usual reasons),
and there doesn't appear to be an open-source (or otherwise really
cheap) alternative to using AMF3 to communicate to a Java backend. So
that really leaves some flavor of XML over HTTP as the raw message
language and protocol. We deliberated between SOAP, REST and homegrown
XML message protocols, and ultimately settled on homegrown for a
variety of reasons I won't bore you with. Again, it really depends on
your specific needs, but so far our solution is shaping up very nicely.

> * What is the best resultFormat to use. As far as I can tell, there are
> three: object, e4x, and xml. The xml format seems obsolete since we now
> have e4x. Is there any reason to use xml? I get e4x (pretty sweet, I
> think this is a *great* language feature). The only drawback I've found
> so far is the datatype of e4x values. They all seem to be Strings. I get
> this, but I wonder if there's an easy way to say "all @quantity fields
> are numeric" so it'll sort nice in a DataGrid. object seems cool, but
> I'm not 100% clear how it works.

Me neither, frankly. I might consider trying it, though, given that
there is apparently some basic type casting done when you use this
format, according to the dev guide:

"By default, the resultFormat property value of HTTPService components
and WebService component operations is object, and the data that is
returned is represented as a simple tree of ActionScript objects. Flex
interprets the XML data that a web service or HTTP service returns to
appropriately represent base types, such as String, Number, Boolean,
and Date. To work with strongly typed objects, you must populate those
objects using the object tree that Flex creates."

> Can I tell HTTPService which class to
> bind the objects to? I don't use Flex Builder (again, I don't like to
> pay for software, and I don't have the money), so it's tough to
> introspect the objects at runtime (although I did see something about
> command line debugging, I'll have to look into that).

I believe this creates a new graph of objects with dynamically created
properties. I don't believe there's any configurable mechanism for
mapping XML to particular object classes or types; I think if you need
 mapping different from what resultFormat="object" gives you, you need
to roll your own. Not positive, though.
 
> * I want to call (HTTPService.send()) my service with different query
> parameters. What's the best way to do this? Currently, I'm creating a
> new HTTPService in AS and generating the URL every time it is called.
> This doesn't seem right to me.

Nah, it ain't :) Create a single HTTPService and modify its request
property; this property takes "an object of name/value pairs", which
just means that it'll treat every property name on the object as a
parameter name and will call toString() on the property value to get
the parameter value.

You may want to look at Cairngorm's implementation of the Service
Locator pattern, which provides an application-wide singleton that
wraps you services, allowing central definition of services along with
global access to them. I like the pattern, your mileage may vary.

> * Should I use a service-config.xml file? I haven't been able to find
> good documentation on this?

Only applies to FDS, I'm pretty sure.




Re: [flexcoders] Onscreen keyboard

2007-01-31 Thread Jim Cheng
Daniel Wabyick wrote:

> I am working on an onscreen keyboard for a touchscreen Flex application. 
> 
> Building out the UI should be simple, but I am wondering if anyone has 
> ideas on the best way to 'plug in' to the normal Flash key event 
> system.  I know I can get the current focused object via 
> focusManager.getFocus(), but I am uncertain as to the best way to 
> 'simulate' the keyboard. I can create KeyboardEvents, but how do I 
> dispatch them so that the appropriate components are listening?

First, get the Flex 2.0.1 updater if you haven't already.  The new Flex 
Automation framework source code that's enclosed in it will make all the 
difference between a couple hours of work versus pulling your hair out 
in frustration for weeks on end.

For components not based on TextField objects, it's trivial--call the 
dispatchEvent() method on the currently focused component with 
script-instantiated KeyboardEvent instances.  That's how Flex Automation 
does it.  You can see for yourself if you have the Flex 2.0.1 update 
installed.  Just dig framework source directory and check out line 272 of:

   mx/automation/delegates/core/UIComponentAutomationImpl.as

TextFields are trickier.  To get correctly emulated behavior, you need 
to both emulate the original keystroke plus do some text manipulation, 
since not all of it's behavior is mediated through the script-accessible 
keyboard events.  Aside from dispatching the event, you'll also need to 
set the selection to the next position and then replace the selected 
text with the character specified by your virtual keyboard for regular 
keystrokes, while special characters like enter, delete, backspace and 
such require some custom handling.  Again, the automation classes show 
you exactly how to do this, see the replayAutomatableEvent method (lines 
270-436) of:

   mx/automation/delegates/TextFieldAutomationHelper.as

That should be sufficient for most text entry situations.  If you need 
more even advanced event emulation, you should probably consider using 
Flex Automation.  Having tried and failed to do much of the same thing 
using ActionScript 2 in the past, I must say that the automation 
framework is truly a lifesaver when it comes to such skulduggery.

While automation is primarily intended for interaction logging and 
automated replay for testing purposes, it can also be exploited to 
simulate all manner of user interactions in non-standard ways (such as 
your virtual on-screen keyboard).  While the Mercury QTP plugin is 
needed for out-of-the-box testing with Mercury, you don't actually need 
to download the plugin installer (and shell out for a commercial FDS 
license) to get access to and make use of Flex Automation proper for 
your own purposes.

To hook into Flex Automation yourself, you'll need to write your own 
custom adapter classes implementing the IAutomationManager and 
IAutomationObjectHelper interfaces and connect these to whatever floats 
your boat (perhaps a server back-end, a built-in debugging dialog, or 
maybe even a future version of John Grden's XRay targeting Flex and 
ActionScript 3).

This shouldn't be too hard for a seasoned Flex developer familiar with 
the rest of the existing framework--I've managed to make a good bit of 
headway into writing a few test classes that integrate with the Flex 
Automation framework after a weekend's worth of hacking.  Unfortunately 
though, there's currently very little in terms of existing examples or 
documentation to help you find your way around in there.  Hopefully, 
Adobe might remedy this in the near future (hint, hint).

Jim Cheng
effectiveUI


[flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread ben.clinkinbeard
 orks for me...

Not sure what else to recommend.


--- In flexcoders@yahoogroups.com, "Pan Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> Sadly, no.  It also doesn't work if you declare a variable like
> 
> [Embed(source="/assets/user-big.png")] private var userIcon:Class;
> 
> 
> FYI, from the docs:
> 
> About the source parameter
> 
> In almost all cases, you must specify the source parameter or nothing is
> embedded.
> 
> The source parameter is the default parameter of the [Embed]
metadata tag;
> therefore, if you are not specifying any other parameters, you can just
> supply its value without explicitly including the parameter name or
> assigning it the desired value
> 
> 
> On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:
> >
> >   According to the docs, the correct syntax is:
> >
> > 
> >
> > Does that work?
> >
> > HTH,
> > Ben
> >
> > --- In flexcoders@yahoogroups.com , "Pan
> > Troglodytes"
> >  wrote:
> > >
> > > This is still a problem. I couldn't remember if I entered it in the
> > Adobe
> > > bug page, so I just went ahead and did it. This is a bit of a
pain as
> > > transparent icons are very important in GUIs. GIF works fine but is
> > limited
> > > to 256 colors.
> > >
> > >
> > >
> > > On 12/6/06, Pan Troglodytes  wrote:
> > > >
> > > > I've run into a situation where the exact same PNG file will show
> > up as
> > > > transparent only when it's not embedded. Here is the mxml:
> > > >
> > > > 
> > > > 
> > > >
> > > > Including both images on the page, the first is missing the
> > transparent
> > > > background. The second is fine. I have manually checked the
> > images, both
> > > > in the dev directory and bin directory. In fact, I have manually
> > copied the
> > > > dev ones over the top of the bin ones to make sure. If I drag the
> > images to
> > > > Firefox, both appear with no background. The background color is
> > teal, so I
> > > > would definitely notice.
> > > >
> > > > Near as I can tell, the embed is causing the background
> > transparency to
> > > > not be processed. I can't find anything in the docs saying this
> > is expected
> > > > behavior.
> > > >
> > > > --
> > > > Jason
> > >
> > >
> > >
> > >
> > > --
> > > Jason
> > >
> >
> >  
> >
> 
> 
> 
> -- 
> Jason
>




[flexcoders] Re: using soapHeaders to pass UserName and Password

2007-01-31 Thread Mark
Jamie,
Thanks for the fast reply to this problem but it seems like you 
posted partial code.  I feel like you left out some important pieces 
to the puzzle so I'm confused as to how you're calling your function 
and what is ModelLocator, ourService and myWebService (I'm guessing 
the id to the WebService tag?).

Could you fill in the gaps when you have some time?

Thanks!


--- In flexcoders@yahoogroups.com, "jamiebadman" <[EMAIL PROTECTED]> 
wrote:
>
> Here's how I did it a way back... not using this anymore but I'm 
> pretty sure it worked at the time ;-)
> 
> import mx.rpc.soap.SOAPHeader;
> 
> private function login():void{
>   ModelLocator.getInstance().qname = new QName("http://docs.oasis-
> open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-
> 1.0.xsd","Security");
>   ModelLocator.getInstance().headerSecurity = new SOAPHeader
> (ModelLocator.getInstance().qname,
> 
>   XML(String( "   " xmlns:wsse='http://docs.oasis-
> open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd'" 
+ 
>   " xmlns:wsu='http://docs.oasis-
> open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-
1.0.xsd'>" 
> + 
>   "" 
+
>   ""+username_ti.text+""
 +
>   ""+password_ti.text+""
 +
>   "" +
>   "")) );
> 
>   ourService.addHeader(ModelLocator.getInstance().headerSecurity);
>   ourService.myWebService.send();
> }
> 
> Hope this helps.
> 
> Jamie.




Re: [flexcoders] tracking a user session

2007-01-31 Thread Jeffry Houser

  You don't need to track sessions in the same way that you would in 
Web Applications.

  Adding a string at the end of the URL to track sessions is 
fine.  All flex-based apps will most likely be served off the same 
URL, won't they?

  Just store your session variables as 'local' to the Flex instance, 
perhaps in an ActionScript class.  I'm sure there is a more elegant 
way to say this.



At 01:54 PM 1/31/2007, you wrote:

>I am having a surprisingly very difficult time finding a concrete
>answer as to how to handle sessions in flex. We need to be able to
>track a user once they are logged into the system. Security in our
>app is critical and every post needs to be validated. IN our current
>web app we simply had a string added to the end of each url that
>tracked the users session. What is the best way to handle this in
>flex?? We need to know and track session validity, timeout, logout
>and prvilages to modules and features. thanks. Our back end is
>java/postgres.



--
Jeffry Houser, Software Developer, Writer, Songwriter, Recording Engineer
AIM: Reboog711  | Phone: 1-203-379-0773
--
My Company: 
My Podcast: 
My Blog: 
Connecticut Macromedia User Group: 



[flexcoders] Any good Tutorials to jump into AMFPHP 1.9

2007-01-31 Thread Agent RR-007
HI everyone.
Great information on the list to read upon everyday.
I have a small question. Are there any good Tutorials to start running
with Flex and AMFPHP 1.9.

Thanks.


Always trust your Agent,

RR-007




Re: [flexcoders] Time Entry Component

2007-01-31 Thread Brendan Meutzner

Thanks guys..

Just updated to avoid width shift on am/pm and put an example in there
similar to what Doug suggested for the updatable current time.


Brendan


On 1/31/07, Ely Greenfield <[EMAIL PROTECTED]> wrote:





Awesome work Brendan.


 --
*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
Behalf Of *Brendan Meutzner
*Sent:* Wednesday, January 31, 2007 10:31 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Time Entry Component

 Hi,

So if it turns out that there is indeed a Time Entry control in Flex, I
end up looking like a doof... HOWEVER, I haven't seen anything remotely
resembling a time entry similar to the Windows time... so

http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html

Would love feedback, testing from the group, and then I'll go ahead and
post on Exchange.


Brendan

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

 





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


[flexcoders] Flex 2 HTTPService best practices

2007-01-31 Thread Ian Shafer
Hello,

I'm pretty new to Flex and Flash (about two weeks in). I'm an
experienced Java developer, so I do have a solid background. I have a
number of questions regarding using HTTPService:

* Should I be using it? I'm choosing to use HTTPService because I don't
want to pay for FDS and it (HTTPService) *seems* simple so that if there
are problems, I could easily be able to fix them (as opposed to using
FDS and Adobe's proprietary encoding). Also, XML over HTTP is simple and
always works. Hooking up remote objects just seems like a pain.

* What is the best resultFormat to use. As far as I can tell, there are
three: object, e4x, and xml. The xml format seems obsolete since we now
have e4x. Is there any reason to use xml? I get e4x (pretty sweet, I
think this is a *great* language feature). The only drawback I've found
so far is the datatype of e4x values. They all seem to be Strings. I get
this, but I wonder if there's an easy way to say "all @quantity fields
are numeric" so it'll sort nice in a DataGrid. object seems cool, but
I'm not 100% clear how it works. Can I tell HTTPService which class to
bind the objects to? I don't use Flex Builder (again, I don't like to
pay for software, and I don't have the money), so it's tough to
introspect the objects at runtime (although I did see something about
command line debugging, I'll have to look into that).

* I want to call (HTTPService.send()) my service with different query
parameters. What's the best way to do this? Currently, I'm creating a
new HTTPService in AS and generating the URL every time it is called.
This doesn't seem right to me.

* Should I use a service-config.xml file? I haven't been able to find
good documentation on this?

I think that about does it. Thanks for any help!

Ian



Re: [flexcoders] Re: Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread Doug McCune
I have a feeling this is going to really tough. What you want is like 
the ability to get bitmapData from a component, but instead of 
bitmapData you want vectorData that would give you all the vector points 
used to draw the component. I have a feeling this is going to require 
work on the core level of some of intrinsic classes in Flash Player.


So if someone at Adobe wants to figure this one out and give us access 
to the vector data of a compnent, just like we get access to the bitmap 
data... I mean, to calculate the bitmapData you must have to process the 
raw vector data first, right?



Brendan Meutzner wrote:


Alex,

I never did complete that hurdle... making it a seamless download...

I'll leave this question to others who might have a solution for 
that.  I'd be interested to know as well.



Thanks,

Brendan


On 1/31/07, *Alexander Tsoukias* <[EMAIL PROTECTED] 
> wrote:


That would be great, although, I need to be able to download it as eps
directly from flex.

Would that be a possibility?

Alex

--- In flexcoders@yahoogroups.com
, "Brendan Meutzner"
<[EMAIL PROTECTED]>
wrote:
>
> I've had success in the past converting to EPS format from Flash
Player
> (which successfully opened in vector format inside Illustrator)
by using
> Print to File with specific print drivers... it's not exactly
seamless, but
> it worked. I can track down the specific print drivers if that would
> help...
>
> Brendan
>
>
>
> On 1/31/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:
> >
> > Hi all...
> >
> > How is it possible to take a canvas from FLEX and convert it to
vector
> > PDF?
> >
> > Is taking SVG and converting to a PDF a way? Does coldfusion
have any
> > way of doing this?
> >
> > Thanks,
> > Alexander
> >
> >
> >
>
>
>
> --
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca 
>




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




[flexcoders] text input controls

2007-01-31 Thread Roger Ross
Hello,

New to Flex and still getting use to everything. 

When using a text input control why does the width of the text input
field change as you scroll through records displayed in a grid control?
Also can you right justify the label on the form item that is created
when you add a text input control to the form?

Thank You,

Roger



RE: [flexcoders] Time Entry Component

2007-01-31 Thread Ely Greenfield
 
 

Awesome work Brendan.
 
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Brendan Meutzner
Sent: Wednesday, January 31, 2007 10:31 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Time Entry Component



Hi,

So if it turns out that there is indeed a Time Entry control in Flex, I
end up looking like a doof... HOWEVER, I haven't seen anything remotely
resembling a time entry similar to the Windows time... so

http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html
 

Would love feedback, testing from the group, and then I'll go ahead and
post on Exchange. 


Brendan

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

 


Re: [flexcoders] Re: Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread Brendan Meutzner

Alex,

I never did complete that hurdle... making it a seamless download...

I'll leave this question to others who might have a solution for that.  I'd
be interested to know as well.


Thanks,

Brendan


On 1/31/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:


  That would be great, although, I need to be able to download it as eps
directly from flex.

Would that be a possibility?

Alex

--- In flexcoders@yahoogroups.com , "Brendan
Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> I've had success in the past converting to EPS format from Flash Player
> (which successfully opened in vector format inside Illustrator) by using
> Print to File with specific print drivers... it's not exactly
seamless, but
> it worked. I can track down the specific print drivers if that would
> help...
>
> Brendan
>
>
>
> On 1/31/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:
> >
> > Hi all...
> >
> > How is it possible to take a canvas from FLEX and convert it to vector
> > PDF?
> >
> > Is taking SVG and converting to a PDF a way? Does coldfusion have any
> > way of doing this?
> >
> > Thanks,
> > Alexander
> >
> >
> >
>
>
>
> --
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>

 





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


[flexcoders] Re: Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread Alexander Tsoukias
That would be great, although, I need to be able to download it as eps
directly from flex.

Would that be a possibility?

Alex


--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> I've had success in the past converting to EPS format from Flash Player
> (which successfully opened in vector format inside Illustrator) by using
> Print to File with specific print drivers... it's not exactly
seamless, but
> it worked.  I can track down the specific print drivers if that would
> help...
> 
> Brendan
> 
> 
> 
> On 1/31/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:
> >
> >   Hi all...
> >
> > How is it possible to take a canvas from FLEX and convert it to vector
> > PDF?
> >
> > Is taking SVG and converting to a PDF a way? Does coldfusion have any
> > way of doing this?
> >
> > Thanks,
> > Alexander
> >
> >  
> >
> 
> 
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>




[flexcoders] PrintDataGrid Scrollable Rows

2007-01-31 Thread loisgh
Hi All, 

The nextPage() function sets the PrintDataGrid verticalScrollPosition
property to equal verticalScrollPosition + (number of scrollable rows).
 In other words it advances the printing x number of rows.  

Here's my question.  What property constitutes the number of scrollable
rows.  I have looked at every property available for a PrintDataGrid and
I can find nothing that seems to represent this.  Is there something
else I need to set?

Thanks

Lois 



Re: [flexcoders] Apollo features

2007-01-31 Thread Impudent1
word. add my vote to being able to pass parameters to other exes

Impudent1
LeapFrog Productions


Re: [flexcoders] Host Name? How do I get my current host name?

2007-01-31 Thread Ralf Bokelberg

Can't you extract it from Application.url?
Cheers,
Ralf.

On 1/31/07, Brendan Meutzner <[EMAIL PROTECTED]> wrote:


  I'm pretty sure this information wouldn't be accessible from within
Flash, but you could use Javascript to pass in the information to the swf
via URL params, or ExternalInterface calls...

Brendan



On 1/31/07, Matt Maher <[EMAIL PROTECTED]> wrote:
>
>   I need to know what box and what domain I am running the flash movie
> from. Is there any way I can get this information
>
>


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





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany
Phone +49 (0) 221 530 15 35


[flexcoders] tracking a user session

2007-01-31 Thread mthielman11
I am having a surprisingly very difficult time finding a concrete
answer as to how to handle sessions in flex. We need to be able to
track a user once they are logged into the system.  Security in our
app is critical and every post needs to be validated.  IN our current
web app we simply had a string added to the end of each url that
tracked the users session.  What is the best way to handle this in
flex??  We need to know and track session validity, timeout, logout
and prvilages to modules and features. thanks.  Our back end is
java/postgres.



Re: [flexcoders] Re: Time Entry Component

2007-01-31 Thread Brendan Meutzner

Hey Doug,

Yeah, the width thing is bugging me too... it is a result of the min/max
values on the NumericStepper getting set for am/pm... I'll try to find an
alternate solution to prevent that.

And I thought about the setting of the clock... would be easy enough to do
if somebody wanted to.  I didn't really see a practical solution for it in
my use though.  I saw this as more of a form entry field for scheduling,
etc...  The bottom example is just there to show that you can set the time
on the component, and in this case, updates every second.

Thanks for the feedback!

Brendan


On 1/31/07, dougmccune <[EMAIL PROTECTED]> wrote:


  Ohh, that's a fun component. Can you make one that ticks up the
seconds (like the bottom example) but also lets you change the time?
That seems the most like the Windows one. If you change the seconds it
just starts ticking from the new value you entered.

My other comment is to ask why setting the selection on am/pm seems to
bump the width a little. Clicking any of the other fields doesn't seem
to change the width of the component, but clicking am/pm bumps it out
a little. I don't know why, something about setting the selection on
the text field, or setting the min/max values on the NumericStepper?

Doug

--- In flexcoders@yahoogroups.com , "Brendan
Meutzner" <[EMAIL PROTECTED]>

wrote:
>
> Hi,
>
> So if it turns out that there is indeed a Time Entry control in
Flex, I end
> up looking like a doof... HOWEVER, I haven't seen anything remotely
> resembling a time entry similar to the Windows time... so
>
> http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html
>
> Would love feedback, testing from the group, and then I'll go ahead
and post
> on Exchange.
>
>
> Brendan
>
> --
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>

 





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


Re: [flexcoders] Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread Brendan Meutzner

I've had success in the past converting to EPS format from Flash Player
(which successfully opened in vector format inside Illustrator) by using
Print to File with specific print drivers... it's not exactly seamless, but
it worked.  I can track down the specific print drivers if that would
help...

Brendan



On 1/31/07, Alexander Tsoukias <[EMAIL PROTECTED]> wrote:


  Hi all...

How is it possible to take a canvas from FLEX and convert it to vector
PDF?

Is taking SVG and converting to a PDF a way? Does coldfusion have any
way of doing this?

Thanks,
Alexander

 





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


[flexcoders] Re: Time Entry Component

2007-01-31 Thread dougmccune
Ohh, that's a fun component. Can you make one that ticks up the
seconds (like the bottom example) but also lets you change the time?
That seems the most like the Windows one. If you change the seconds it
just starts ticking from the new value you entered.

My other comment is to ask why setting the selection on am/pm seems to
bump the width a little. Clicking any of the other fields doesn't seem
to change the width of the component, but clicking am/pm bumps it out
a little. I don't know why, something about setting the selection on
the text field, or setting the min/max values on the NumericStepper?

Doug


--- In flexcoders@yahoogroups.com, "Brendan Meutzner" <[EMAIL PROTECTED]>
wrote:
>
> Hi,
> 
> So if it turns out that there is indeed a Time Entry control in
Flex, I end
> up looking like a doof... HOWEVER, I haven't seen anything remotely
> resembling a time entry similar to the Windows time... so
> 
> http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html
> 
> Would love feedback, testing from the group, and then I'll go ahead
and post
> on Exchange.
> 
> 
> Brendan
> 
> -- 
> Brendan Meutzner
> Stretch Media - RIA Adobe Flex Development
> [EMAIL PROTECTED]
> http://www.stretchmedia.ca
>




[flexcoders] Re: Does asdoc work??

2007-01-31 Thread tvikatos
Yes, I have.
I am probably doing something wrong but it's extremely difficult to
figure out what. This has to become friendlyer than command line
and give meaningful feedback...


--- In flexcoders@yahoogroups.com, "Stephen Gilson" <[EMAIL PROTECTED]> wrote:
>
> Have you checked the doc on ASDoc:
>  
> http://livedocs.macromedia.com/flex/201/html/asdoc_127_1.html
>  
> Stephen
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of tvikatos
> Sent: Wednesday, January 31, 2007 11:56 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Does asdoc work??
> 
> 
> 
> I decided to play a bit with asdoc to document my project, but I just
> can't get the damn thing to work. At some point it started complaining
> about not being able to find the cairngorm lib classes. I used the
> -library-path option to point to the swc, but still getting errors
> with very meaningful descriptions:
> 
> Error #1095: XML parser failure: Unterminated attribute.
> 
> or 
> Error: null
> 
> Is this a product we can use or just wasting our time?
>




Re: [flexcoders] Re: PNG transparency failing in @Embed?

2007-01-31 Thread Pan Troglodytes

Sadly, no.  It also doesn't work if you declare a variable like

[Embed(source="/assets/user-big.png")] private var userIcon:Class;


FYI, from the docs:

About the source parameter

In almost all cases, you must specify the source parameter or nothing is
embedded.

The source parameter is the default parameter of the [Embed] metadata tag;
therefore, if you are not specifying any other parameters, you can just
supply its value without explicitly including the parameter name or
assigning it the desired value


On 1/31/07, ben.clinkinbeard <[EMAIL PROTECTED]> wrote:


  According to the docs, the correct syntax is:



Does that work?

HTH,
Ben

--- In flexcoders@yahoogroups.com , "Pan
Troglodytes"
<[EMAIL PROTECTED]> wrote:
>
> This is still a problem. I couldn't remember if I entered it in the
Adobe
> bug page, so I just went ahead and did it. This is a bit of a pain as
> transparent icons are very important in GUIs. GIF works fine but is
limited
> to 256 colors.
>
>
>
> On 12/6/06, Pan Troglodytes <[EMAIL PROTECTED]> wrote:
> >
> > I've run into a situation where the exact same PNG file will show
up as
> > transparent only when it's not embedded. Here is the mxml:
> >
> > 
> > 
> >
> > Including both images on the page, the first is missing the
transparent
> > background. The second is fine. I have manually checked the
images, both
> > in the dev directory and bin directory. In fact, I have manually
copied the
> > dev ones over the top of the bin ones to make sure. If I drag the
images to
> > Firefox, both appear with no background. The background color is
teal, so I
> > would definitely notice.
> >
> > Near as I can tell, the embed is causing the background
transparency to
> > not be processed. I can't find anything in the docs saying this
is expected
> > behavior.
> >
> > --
> > Jason
>
>
>
>
> --
> Jason
>

 





--
Jason


[flexcoders] generate a report with flex and cf report builder

2007-01-31 Thread flexnid
hi,
Does someone have an exemple showing how to generate a report (pdf)
from  a flex application (or AS3) with cf report builder (or other)?
The idea is to generate an order or something like that from a
marketing application.



[flexcoders] Is this possible - SVG to PDF(vector) ?

2007-01-31 Thread Alexander Tsoukias
Hi all...

How is it possible to take a canvas from FLEX and convert it to vector
PDF?

Is taking SVG and converting to a PDF a way? Does coldfusion have any
way of doing this?

Thanks,
Alexander



[flexcoders] Time Entry Component

2007-01-31 Thread Brendan Meutzner

Hi,

So if it turns out that there is indeed a Time Entry control in Flex, I end
up looking like a doof... HOWEVER, I haven't seen anything remotely
resembling a time entry similar to the Windows time... so

http://www.stretchmedia.ca/code_examples/time_entry/TimeEntryTester.html

Would love feedback, testing from the group, and then I'll go ahead and post
on Exchange.


Brendan

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


Re: [flexcoders] Host Name? How do I get my current host name?

2007-01-31 Thread Brendan Meutzner

I'm pretty sure this information wouldn't be accessible from within Flash,
but you could use Javascript to pass in the information to the swf via URL
params, or ExternalInterface calls...

Brendan



On 1/31/07, Matt Maher <[EMAIL PROTECTED]> wrote:


  I need to know what box and what domain I am running the flash movie
from. Is there any way I can get this information

 





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


  1   2   >