[flexcoders] Re: Mouse Move Issue in Tree Control

2008-10-10 Thread selvant_2005
--- In flexcoders@yahoogroups.com, Flex Gangsta <[EMAIL PROTECTED]> 
wrote:
>if u have the css code ,tell me 
> You can change it by creating a CSS file for the tree control.
> 
> Sent from my iPhone
> 
> On Oct 10, 2008, at 4:47 AM, "selvant_2005" <[EMAIL PROTECTED]>  
> wrote:
> 
> > Hi,
> > When i Move the Mouse Over the Tree Nodes by Default that Blue 
Colour
> > is Coming ,I dont Want that Colour,
> > If anybody Know How to change the clour
> >
> > Plese Tell Me
> >
> > Regards ,
> >
> > T.Selvan
> >
> >
>




Re: {Disarmed} Re: [flexcoders] Components and displaying into a new target

2008-10-10 Thread jitendra jain
I thought you want to add dynamically to the Accordion control.
and it can be done like this application.accordionName.
Anyways Great...
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 11:18:50 AM
Subject: RE: {Disarmed} Re: [flexcoders] Components and displaying into a new 
target


Oh cool. Thanks!
 
However, that didn’t work…  I realized that the addChild I wanted to reference 
was not the correct component to work with.  The addState within that component 
opens up the dialog box.  Here’s the code:
 

http://www.adobe. com/2006/ mxml" width="400" height="300" 
label="AddContact"  >

 
 
    
      
    
    
    
    
    
    
    
 
  


 
How do I open this into the parent of the parent canvas?  I can’t see any place 
where the objects could use target=””.
 
Thanks!
 



From:[EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] On Behalf 
Of jitendra jain
Sent: Friday, October 10, 2008 11:39 PM
To: [EMAIL PROTECTED] ups.com
Subject: {Disarmed} Re: [flexcoders] Components and displaying into a new target
 
Application. application will do the trick..
 
Thanks,

with Regards,
Jitendra Jain
 
 
- Original Message 
From: Scott <[EMAIL PROTECTED] us>
To: [EMAIL PROTECTED] ups.com
Sent: Saturday, 11 October, 2008 10:25:53 AM
Subject: [flexcoders] Components and displaying into a new target
I’ve got an issue that I can’t figure a way around.
 
My main.mxml has a canvas for the main display.  Within that canvas I have many 
different components.  One of which is an accordion control that contains 
several different components.  One of those components I have is a text window 
with a couple of buttons.  When I click a button within that accordion control 
I want it to open a new window on the main.mxml canvas.  Can I do that without 
using a custom event?
 
I tried to figure out if I could use the target=”” on the addChild line but I 
can’t figure out how to reference the canvas in the main..mxml.
 
TIA.
  Scott





Unlimited freedom, unlimited storage. Get it now
-- 
This message has been scanned for viruses and 
dangerous content by MailScanner, and is 
believed to be clean.  


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

RE: {Disarmed} Re: [flexcoders] Components and displaying into a new target

2008-10-10 Thread Scott
Oh cool. Thanks!

 

However, that didn't work...  I realized that the addChild I wanted to
reference was not the correct component to work with.  The addState
within that component opens up the dialog box.  Here's the code:

 



http://www.adobe.com/2006/mxml"; width="400"
height="300" label="AddContact"  >



 

 



  















 

  





 

How do I open this into the parent of the parent canvas?  I can't see
any place where the objects could use target="".

 

Thanks!

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jitendra jain
Sent: Friday, October 10, 2008 11:39 PM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} Re: [flexcoders] Components and displaying into a
new target

 

Application.application will do the trick..
 

Thanks,

with Regards,
Jitendra Jain

 

 

- Original Message 
From: Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 10:25:53 AM
Subject: [flexcoders] Components and displaying into a new target

I've got an issue that I can't figure a way around.

 

My main.mxml has a canvas for the main display.  Within that canvas I
have many different components.  One of which is an accordion control
that contains several different components.  One of those components I
have is a text window with a couple of buttons.  When I click a button
within that accordion control I want it to open a new window on the
main.mxml canvas.  Can I do that without using a custom event?

 

I tried to figure out if I could use the target="" on the addChild line
but I can't figure out how to reference the canvas in the main.mxml.

 

TIA.

  Scott







Unlimited freedom, unlimited storage. Get it now
 

 


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

believed to be clean. 


RE: {Disarmed} [flexcoders] Couple questions

2008-10-10 Thread Scott
I can't comment on the 2nd question.  However, you'd probably want to do
something in Flash for a powerpoint.  Flex is more of a programmers
language, flash is more of a designer interface.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of brucewhealton
Sent: Saturday, October 11, 2008 12:02 AM
To: flexcoders@yahoogroups.com
Subject: {Disarmed} [flexcoders] Couple questions

 

Hello all,
I had a few questions, where I could use some suggestions or
opinions and ideas. One is regarding Powerpoint-like presentations
online. If you were going to do something like this, would you use
Flash or Flex - maybe these are not even the best choices? Are there
extensions for Flash or Flex to convert a powerpoint file to something
that would play in the Flash Player? Actually, I'm not sure if there
even are any extensions for Flex like there are for other Adobe
products, but I bet there are.
Next, I noticed that there is a nice AIR application for reading
Flexcoder messages. I'm only aware of one, the only additional thing
I'd want is the ability to post to the group from the AIR application.
Can anyone suggest some good sources for a variety of AIR applications?
Lastly, are there any script collections of free or commercial
Flex MXML/Actionscript applications that one could check out, such as
what there are at http://hotscripts.com   and
other similar places.
thanks,
Bruce

 


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

believed to be clean. 


[flexcoders] Couple questions

2008-10-10 Thread brucewhealton
Hello all,
   I had a few questions, where I could use some suggestions or
opinions and ideas.  One is regarding Powerpoint-like presentations
online.  If you were going to do something like this, would you use
Flash or Flex - maybe these are not even the best choices?  Are there
extensions for Flash or Flex to convert a powerpoint file to something
that would play in the Flash Player?  Actually, I'm not sure if there
even are any extensions for Flex like there are for other Adobe
products, but I bet there are.
  Next, I noticed that there is a nice AIR application for reading
Flexcoder messages.  I'm only aware of one, the only additional thing
I'd want is the ability to post to the group from the AIR application.
 Can anyone suggest some good sources for a variety of AIR applications?
 Lastly, are there any script collections of free or commercial
Flex MXML/Actionscript applications that one could check out, such as
what there are at http://hotscripts.com and other similar places.
thanks,
Bruce



Re: [flexcoders] Java-like equals() method?

2008-10-10 Thread jitendra jain
In this case you need to use Bindable

BindingUtils.bindProperty(myUser,"assignedToUser",combBox,"selectedItem"); if 
you want to reflect the changes from myUser.assignedToUser to 
CombBox.selectedItem..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: frank_sommers <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 8:24:18 AM
Subject: [flexcoders] Java-like equals() method?


Hi, 

I've been searching for a good solution to implementing object equality. I'm 
familiar with 
ObjectUtil, etc., but it still makes things harder than they should be. 

It may be best to illustrate this with an example. Suppose I have a ComboBox 
with an 
ArrayCollection as a data provider. The ArrayCollection is populated with value 
objects 
from the server, e.g., User objects. Suppose that I have a Task class, and a 
Task may 
have an assignedToUser property, which is a User instance. When the someone 
selects a 
Task (say, in a master-detail view), I would like the ComboBox to set its 
selectedItem to 
the user for the given Task, i.e., combBox.selectedIte m = myUser.assignedToUs 
er.

The problem is that no Task in the ComboBox's data provider and the User's 
assignedToUser property are ever equal using the == or === operators. 

So I would like to implement a custom equality for User, and have the ComboBox 
use that 
to set its selectedItem to the specified user. In Java, this is easily done by 
overriding the 
equals() and hashCode() methods of User. 

Any suggestions on how to achieve something similar in Flex would be much 
appreciated.

Thanks, 

-- Frank 

 


  Connect with friends all over the world. Get Yahoo! India Messenger at 
http://in.messenger.yahoo.com/?wm=n/

Re: [flexcoders] Remote calls are not happening using blazeDS in secured environment

2008-10-10 Thread jitendra jain
Hi Venkat,

  I'm not sure but I think you need to dig out web.xml for https..

  Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: venkateswarlu naidu <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 6:13:36 AM
Subject: Re: [flexcoders] Remote calls are not happening using blazeDS in 
secured environment


Yes Ryan, but its not tomcat, it is weblogic.

Its a secured+clustered environment , dont know how to handle this ..is there 
any setting/configurati on to do for clustering environment.

Please see the below email trail for more details.

Thansk for your time,

Regards,
Venkat. 



- Original Message 
From: Ryan Gravener <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Friday, 10 October, 2008 12:55:16 AM
Subject: Re: [flexcoders] Remote calls are not happening using blazeDS in 
secured environment


Is your apache http server redirecting to http from https?  

Ryan Gravener
http://twitter. com/ryangravener



On Thu, Oct 9, 2008 at 11:23 PM, venkateswarlu naidu  wrote:

Here is the exact error message that i am seeing in the server console
secure endpoint /messageborker/ secureamf must be contacted via secure protocol

Please help me on this.

Thanks & Regards,
Venkat. 



- Original Message 
From: venkateswarlu naidu 
To: [EMAIL PROTECTED] ups.com

Sent: Thursday, 9 October, 2008 9:33:56 PM
Subject: [flexcoders] Remote calls are not happening using blazeDS in secured 
environment


Hi All,

Even after adding my-secure-amf channel to remote-config. xml, our flex 
application coludn,t make remote calls.
I am seeing a failover to HTTP from a HTTPS request in the http url log, dont 
know why it is failing over to 
HTTP:///messagebroker/ amf from HTTPS:///messagebroker/ 
secureamf in a secured environment.

Actually this failover is not happening in DEV (in which we have both HTTP and 
HTTPS enabled).

The problem is specific to QA env (weblogic+clustered +secured) , i dont have 
any clues.

Can any body help me on this?

Thanks & Regards,
Venkat. 



- Original Message 
From: venkateswarlu naidu 

To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 8 October, 2008 10:41:13 PM
Subject: [flexcoders] could not establish connection to java data service from 
flex client using blazeDS


Hi All,

We have a flex+blazeDS+ Java based application, after deploying the application 
in QA env, java data service calls are not happening. When i see the URL log in 
HTTP sniffer tool, the request is getting stopped at URL  
/messagebroker/ amf and finally seeing 502 (CANNOT_CONNECT) status.

The same application is working fine in DEV environment.

Our QA environment: secured, HTTPS, running behind firewalls and clustered.

Why the flex client can not connect to the java data services?

Any help is greatly appreciated.

Thanks & Regards,
Venkat.

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



Add more friends to your messenger and enjoy! Invite them now. 

Be the first one to try the new Messenger 9 Beta! Click here. 


Connect with friends all over the world. Get Yahoo! India Messenger.  


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

Re: [flexcoders] Components and displaying into a new target

2008-10-10 Thread jitendra jain
Application.application will do the trick..
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Scott <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 10:25:53 AM
Subject: [flexcoders] Components and displaying into a new target


I’ve got an issue that I can’t figure a way around.
 
My main.mxml has a canvas for the main display..  Within that canvas I have 
many different components.  One of which is an accordion control that contains 
several different components.  One of those components I have is a text window 
with a couple of buttons.  When I click a button within that accordion control 
I want it to open a new window on the main.mxml canvas.  Can I do that without 
using a custom event?
 
I tried to figure out if I could use the target=”” on the addChild line but I 
can’t figure out how to reference the canvas in the main.mxml.
 
TIA.
  Scott 


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

[flexcoders] Components and displaying into a new target

2008-10-10 Thread Scott
I've got an issue that I can't figure a way around.

 

My main.mxml has a canvas for the main display.  Within that canvas I
have many different components.  One of which is an accordion control
that contains several different components.  One of those components I
have is a text window with a couple of buttons.  When I click a button
within that accordion control I want it to open a new window on the
main.mxml canvas.  Can I do that without using a custom event?

 

I tried to figure out if I could use the target="" on the addChild line
but I can't figure out how to reference the canvas in the main.mxml.

 

TIA.

  Scott



Re: [flexcoders] Re: How to make an RPC call secure

2008-10-10 Thread jitendra jain
If your question is "when flex calls a java class and within the java class how 
do I access the associated session", then the code is below and it is in the 
documentation. The FlexSession class is located in the flex-messaging.jar.
 
FlexSession session = FlexContext.getFlexSession();
 
But whats the real question behind your question? what do you want to load?

If you want to secure your calls then try to read J2EE Specs
 Thanks,

with Regards,
Jitendra Jain




- Original Message 
From: Abdul Razak PM <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Saturday, 11 October, 2008 9:34:29 AM
Subject: [flexcoders] Re: How to make an RPC call secure


Hi All, 
I'm a newbie in flex, My searches and adobe gives a of links but I
need to get specified in my topic.
Those who are in handling security please give me an answer
(theoretical) whether a flex GUI with J2EE as server and using
remoting (rpc)for server call,
a) In J2EE project we will use session Id to ensure call comes from
the same user.is it necessary in flex client also? if so how we can
achieve session Id in client, some example also.
b) I have a login module in my application, may I need to
authenticate each of my remote call from flex.

Tom please don't loose my chance to get answer from others who could
kindly answer to me , even it's blonder.. all are not genious like but
everybody uses google and adobe docs first..

Regards,
Razak

--- In [EMAIL PROTECTED] ups.com, Tom Chiverton 
wrote:
>
> On Thursday 09 Oct 2008, Abdul Razak PM wrote:
> > Please provide some links to study more about it.
> 
> Is Google and Adobe's docs site broken ?
> 
> > Also What's the 
> > possibility of Hacking our code if we didn't make it secure?
> 
> Threat assessment is a whole skill into itself, you'd have to
explain a lot 
> more about what your service is, who is likely to attack it and with
what 
> resources.
> 
> > It's very helpful to get it's theoretical explanations too.
> 
> Schneier's blog and /Beyond Fear/ book are good.
> 
> -- 
> Tom Chiverton
> Helping to quickly leverage third-generation e-commerce
> 
> 
> 
>  * * * * 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells. com.
>

 


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

[flexcoders] Re: How to make an RPC call secure

2008-10-10 Thread Abdul Razak PM
Hi All, 
  I'm a newbie in flex, My searches and adobe gives a of links but I
need to get specified in my topic.
  Those who are in handling security please give me an answer
(theoretical) whether a flex GUI with J2EE as server and using
remoting (rpc)for server call,
   a) In J2EE project we will use session Id to ensure call comes from
the same user.is it necessary in flex client also? if so how we can
achieve session Id in client, some example also.
   b) I have a login module in my application, may I need to
authenticate each of my remote call from flex.

  Tom please don't loose my chance to get answer from others who could
kindly answer to me , even it's blonder. all are not genious like but
everybody uses google and adobe docs first.

Regards,
Razak

--- In flexcoders@yahoogroups.com, Tom Chiverton <[EMAIL PROTECTED]>
wrote:
>
> On Thursday 09 Oct 2008, Abdul Razak PM wrote:
> > Please provide some links to study more about it.
> 
> Is Google and Adobe's docs site broken ?
> 
> > Also What's the 
> > possibility of Hacking our code if we didn't make it secure?
> 
> Threat assessment is a whole skill into itself, you'd have to
explain a lot 
> more about what your service is, who is likely to attack it and with
what 
> resources.
> 
> > It's very helpful to get it's theoretical explanations too.
> 
> Schneier's blog and /Beyond Fear/ book are good.
> 
> -- 
> Tom Chiverton
> Helping to quickly leverage third-generation e-commerce
> 
> 
> 
> 
> 
> This email is sent for and on behalf of Halliwells LLP.
> 
> Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.
> 
> CONFIDENTIALITY
> 
> This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
> 
> For more information about Halliwells LLP visit www.halliwells.com.
>




Re: [flexcoders] modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Mark Carter

What exactly do you want to do? i.e. why do the other components have to be
mouse-shielded?

I assume you know about PopUpButton - I don't know if you could use that to
help you do what you want...?

-- 
View this message in context: 
http://www.nabble.com/modal-PopUp-with-one-component%2C-that-should-accept-user-interaction-tp19898132p19929358.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] ComboBox edit field selection when populated

2008-10-10 Thread Mark Carter

Have you tried google for an autocomplete component?

This should be helpful:

http://www.websector.de/blog/2008/04/30/quick-tip-avoid-issues-using-adobes-autocomplete-input-component-using-flex-3/

There are also a few on the Adobe Exchange:
http://www.adobe.com/cfusion/exchange/index.cfm


-- 
View this message in context: 
http://www.nabble.com/ComboBox-edit-field-selection-when-populated-tp19907644p19929154.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Java-like equals() method?

2008-10-10 Thread frank_sommers
Hi, 

I've been searching for a good solution to implementing object equality. I'm 
familiar with 
ObjectUtil, etc., but it still makes things harder than they should be. 

It may be best to illustrate this with an example. Suppose I have a ComboBox 
with an 
ArrayCollection as a data provider. The ArrayCollection is populated with value 
objects 
from the server, e.g., User objects.  Suppose that I have a Task class, and a 
Task may 
have an assignedToUser property, which is a User instance. When the someone 
selects a 
Task (say, in a master-detail view), I would like the ComboBox to set its 
selectedItem to 
the user for the given Task, i.e., combBox.selectedItem = myUser.assignedToUser.

The problem is that no Task in the ComboBox's data provider and the User's 
assignedToUser property are ever equal using the == or === operators. 

So I would like to implement a custom equality for User, and have the ComboBox 
use that 
to set its selectedItem to the specified user. In Java, this is easily done by 
overriding the 
equals() and hashCode() methods of User. 

Any suggestions on how to achieve something similar in Flex would be much 
appreciated.
 
Thanks, 

-- Frank 



Re: [flexcoders] Remote calls are not happening using blazeDS in secured environment

2008-10-10 Thread venkateswarlu naidu
Yes Ryan, but its not tomcat, it is weblogic.

Its a secured+clustered environment , dont know how to handle this ..is there 
any setting/configuration to do for clustering environment.

Please see the below email trail for more details.

Thansk for your time,

 Regards,
Venkat.



- Original Message 
From: Ryan Gravener <[EMAIL PROTECTED]>
To: flexcoders@yahoogroups.com
Sent: Friday, 10 October, 2008 12:55:16 AM
Subject: Re: [flexcoders] Remote calls are not happening using blazeDS in 
secured environment


Is your apache http server redirecting to http from https?  

Ryan Gravener
http://twitter. com/ryangravener



On Thu, Oct 9, 2008 at 11:23 PM, venkateswarlu naidu  wrote:

Here is the exact error message that i am seeing in the server console
secure endpoint /messageborker/ secureamf must be contacted via secure protocol

Please help me on this.

 Thanks & Regards,
Venkat.



- Original Message 
From: venkateswarlu naidu 
To: [EMAIL PROTECTED] ups.com

Sent: Thursday, 9 October, 2008 9:33:56 PM
Subject: [flexcoders] Remote calls are not happening using blazeDS in secured 
environment


Hi All,

Even after adding my-secure-amf channel to remote-config. xml, our flex 
application coludn,t make remote calls.
I am seeing a failover to HTTP from a HTTPS request in the http url log, dont 
know why it is failing over to 
HTTP:///messagebroker/ amf from HTTPS:///messagebroker/ 
secureamf in a secured environment.

Actually this failover is not happening in DEV (in which we have both HTTP and 
HTTPS enabled).

The problem is specific to QA env (weblogic+clustered +secured) , i dont have 
any clues.

Can any body help me on this?

 Thanks & Regards,
Venkat.



- Original Message 
From: venkateswarlu naidu 

To: [EMAIL PROTECTED] ups.com
Sent: Wednesday, 8 October, 2008 10:41:13 PM
Subject: [flexcoders] could not establish connection to java data service from 
flex client using blazeDS


Hi All,

We have a flex+blazeDS+ Java based application, after deploying the application 
in QA env, java data service calls are not happening. When i see the URL log in 
HTTP sniffer tool, the request is getting stopped at URL  
/messagebroker/ amf and finally seeing 502 (CANNOT_CONNECT) status.

The same application is working fine in DEV environment.

Our QA environment: secured, HTTPS, running behind firewalls and clustered.

Why the flex client can not connect to the java data services?

Any help is greatly appreciated.

Thanks & Regards,
Venkat.

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



 Add more friends to your messenger and enjoy! Invite them now. 

 Be the first one to try the new Messenger 9 Beta! Click here.  



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

[flexcoders] Embedding Image from dynamic string

2008-10-10 Thread Sajid Hussain
Hey Dudes

var a:String="sources/top2Over.jpg";
   [Bindable]
[Embed(source=a)] or 
public var top2Over:Class;

I want to create object embed adders to be fetched by string .liek the given 
simple wrong code 

Sajid 


  

Re: [flexcoders] Some machines cannot sent data to Binary Socket

2008-10-10 Thread Guy Morton
Sounds like a firewalling issue. What port are you talking on? Does  
the client allow that port through their firewall?


Corporate networks are often a pain with stuff like this. I have a  
client with a proxy server setup that sometimes makes my life  
miserable. Sometimes IT departments aren't much help (or very  
clueful), so good luck! :-)


Guy


On 11/10/2008, at 8:08 AM, Sean Clark Hess wrote:



Hi everybody,

I'm very stumped, and any help would be appreciated. I have written  
a socket server in PHP that communicates with flex via the Socket  
class (and JSON encoded messages).


I've written a test client, and the server is currently active

https://sean.rapidintake.com/SocketTest.html

Some people cannot send binary data, even though they seem to be  
getting the policy file just fine. I've tested this with tons of  
friends, in addition to the client.  All of my friends were able to  
get through all the steps just fine, except for one, but noone at  
the client company can.


So, for me and those like me, I get through all the steps. For all  
of the employees at the client site, and for one friend, it hangs on  
the ping server step.


What is going on? I've checked server logs and the ping message  
never comes through, and the client is never notified that they have  
connected, even though there is no security error.  Any ideas?


This is what your log should look like if it works:::

Thanks!
~sean

Open [√]
[JsonSocket] <= 7	status	{"users":[],"yourid":"44","locks": 
{},"changes":{},"versions":[]}

[JsonSocket] <= 7authenticated   {"hash":695861518}
[JsonSocket] => all  open{"username":"SocketTestUser","id":"239"}
Open [ ]

Pass [√]
[JsonSocket] => all	pass	 
{"username":"SocketTestUser","project":"239"}	 
b17f0b7b73af6d58a698e8f6f2cee879

Pass [ ]

Ping Server [√]
[JsonSocket] <= 7pong{"id":"44"}
[JsonSocket] => all  ping{}
Ping Server [ ]

Connect to Server [√]
[JsonSocket] Connected
[JsonSocket] connecting...
[JsonSocket] About to connect sockets.rapidintake.com:80
Connect to Server [ ]

Create Socket Connection [√]
Create Socket Connection [ ]







[flexcoders] Some machines cannot sent data to Binary Socket

2008-10-10 Thread Sean Clark Hess
Hi everybody,
I'm very stumped, and any help would be appreciated. I have written a socket
server in PHP that communicates with flex via the Socket class (and JSON
encoded messages).

I've written a test client, and the server is currently active

https://sean.rapidintake.com/SocketTest.html

Some people cannot send binary data, even though they seem to be getting the
policy file just fine. I've tested this with tons of friends, in addition to
the client.  All of my friends were able to get through all the steps just
fine, except for one, but noone at the client company can.

So, for me and those like me, I get through all the steps. For all of the
employees at the client site, and for one friend, it hangs on the ping
server step.

What is going on? I've checked server logs and the ping message never
comes through, and the client is never notified that they have connected,
even though there is no security error.  Any ideas?

This is what your log should look like if it works:::

Thanks!
~sean

Open [√]
[JsonSocket] <= 7 status
{"users":[],"yourid":"44","locks":{},"changes":{},"versions":[]}
[JsonSocket] <= 7 authenticated {"hash":695861518}
[JsonSocket] => all open {"username":"SocketTestUser","id":"239"}
Open [ ]

Pass [√]
[JsonSocket] => all pass {"username":"SocketTestUser","project":"239"}
b17f0b7b73af6d58a698e8f6f2cee879
Pass [ ]

Ping Server [√]
[JsonSocket] <= 7 pong {"id":"44"}
[JsonSocket] => all ping {}
Ping Server [ ]

Connect to Server [√]
[JsonSocket] Connected
[JsonSocket] connecting...
[JsonSocket] About to connect sockets.rapidintake.com:80
Connect to Server [ ]

Create Socket Connection [√]
Create Socket Connection [ ]


[flexcoders] Re: Variable scope

2008-10-10 Thread Tim Hoff

Yup, was going to mention that, but I think he's trying to get/set from
the outside; through a reference to reportRunParameters.  Could be wrong
though.

-TH

--- In flexcoders@yahoogroups.com, Gordon Smith <[EMAIL PROTECTED]> wrote:
>
> > in subclassed version when I try to reference runString
>
> If this means that you are trying to access runString from a subclass
of reportRunParameters, then you could make it protected instead of
public. Protected properties and methods are visible from subclasses.
>
> Gordon Smith
> Adobe Flex SDK Team
>
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Tim Hoff
> Sent: Friday, October 10, 2008 1:08 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Variable scope
>
>
> http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946
>
> You can also search Google for "oop AS3 variable scope"
>
> Yes, it should be public; otherwise it is only exposed to that class.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "markgoldin_2000" markgoldin_2000@
wrote:
> >
> > I have the following form:
> > public class reportRunParameters extends Form
> > {
> > private var runString:String = "";
> > private var originalRunString:String = "";
> > private var mainApp:Object = new Object();
> > public function reportRunParameters()
> > {
> > super();
> > }
> > public function completeParameters():void
> > {
> > }
> >
> > }
> > in subclassed version when I try to reference runString I am getting
> > an error:
> > 1178: Attempted access of inaccessible property originalRunString
> > through a reference with static type ...
> >
> > Should it be public then?
> >
> > Thanks
> >
>





RE: [flexcoders] Re: Variable scope

2008-10-10 Thread Gordon Smith
> in subclassed version when I try to reference runString

If this means that you are trying to access runString from a subclass of 
reportRunParameters, then you could make it protected instead of public. 
Protected properties and methods are visible from subclasses.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tim Hoff
Sent: Friday, October 10, 2008 1:08 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Variable scope


http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946

You can also search Google for "oop AS3 variable scope"

Yes, it should be public; otherwise it is only exposed to that class.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000" <[EMAIL PROTECTED]> wrote:
>
> I have the following form:
> public class reportRunParameters extends Form
> {
> private var runString:String = "";
> private var originalRunString:String = "";
> private var mainApp:Object = new Object();
> public function reportRunParameters()
> {
> super();
> }
> public function completeParameters():void
> {
> }
>
> }
> in subclassed version when I try to reference runString I am getting
> an error:
> 1178: Attempted access of inaccessible property originalRunString
> through a reference with static type ...
>
> Should it be public then?
>
> Thanks
>



RE: [flexcoders] How can the tooltip access the component that is responsible for making it appea

2008-10-10 Thread Gordon Smith
A ToolTip doesn't have a reference to the component that is responsible for 
making it appear, because not all ToolTips get produced by hovering over a 
component. For example, you can call ToolTipManager.createToolTip() to create 
ToolTips that are not associated wtih components.

However, I think the ToolTipManager.currentTarget property is what you're 
looking for.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Tracy 
Spratt
Sent: Friday, October 10, 2008 11:39 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] How can the tooltip access the component that is 
responsible for making it appea

What about "parent", or "parentDocument".

Tracy


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João
Sent: Thursday, October 09, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can the tooltip access the component that is 
responsible for making it appea


Hi,

I am extending the Flex tooltips to make them more powerful. Right now
I need that the tooltip can access the component that is responsible
for making it appear, but it seems it hasn't a reference to that component
Any suggestion?

Thanks!,

João Saleiro



[flexcoders] Re: Variable scope

2008-10-10 Thread Tim Hoff

http://www.amazon.com/Essential-ActionScript-3-0/dp/0596526946


You can also search Google for "oop AS3 variable scope"

Yes, it should be public; otherwise it is only exposed to that class.

-TH

--- In flexcoders@yahoogroups.com, "markgoldin_2000"
<[EMAIL PROTECTED]> wrote:
>
> I have the following form:
> public class reportRunParameters extends Form
> {
> private var runString:String = "";
> private var originalRunString:String = "";
> private var mainApp:Object = new Object();
> public function reportRunParameters()
> {
> super();
> }
> public function completeParameters():void
> {
> }
>
> }
> in subclassed version when I try to reference runString I am getting
> an error:
> 1178: Attempted access of inaccessible property originalRunString
> through a reference with static type ...
>
> Should it be public then?
>
> Thanks
>




Re: [flexcoders] AMFPHP tutorial

2008-10-10 Thread Alan

http://www.friendsofed.com/book.html?isbn=9781430209935


On Oct 9, 2008, at 4:06 PM, hworke wrote:


where can I find some good AMHPHP tutorials




[flexcoders] Loading, unloading and then re-loading a module with a chart populated from a My

2008-10-10 Thread sailorsea21
Hi everyone,
I can find a solution to my problem...
Loading, unloading and then re-loading a module with a chart 
populated from a MySQL database gives me this error:


TypeError: Error #1034: Type Coercion failed: cannot convert 
mx.managers::[EMAIL PROTECTED] to mx.managers.IDragManager.
at mx.managers::DragManager$/get impl()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\managers\DragManager.as:152]
at mx.managers::DragManager$/get isDragging()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\managers\DragManager.as:187]
at mx.controls.listClasses::ListBase/dragScroll()[E:\dev\3.1.0
\frameworks\projects\framework\src\mx\controls\listClasses\ListBase.as
:7149]
at Function/http://adobe.com/AS3/2006/builtin::apply()
at ()
at SetIntervalTimer/onTimer()
at flash.utils::Timer/_timerDispatch()
at flash.utils::Timer/tick()


I load a module into my application. It works great.
I then unload my module using the following code:

content_module.unloadModule();


If I reload the module later on, I get the error above... 


Help would be greatly appreciated!

-David



[flexcoders] Preventing Modules from being Cached???

2008-10-10 Thread sailorsea21
How can I prevent a module from being cached?

Thanks.



[flexcoders] Re: Create Help System in Flex - how to display html in a canvas or component?

2008-10-10 Thread Amy
--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> Displaying full html in Flex (Flash Player) is not yet possible.
> 
>  
> 
> What are your requirements?  The simplest solution is to use a 
separate
> browser to display the html help pages.  The Flex side needs to know
> "where" in the app the user is, and be able to determine the url to
> display.  Using ExternalInterface you can exercise quite a bit of
> control over that window's behavior.
> 
>  
> 
> Doing it all in Flex will be more difficult, primarily on the 
editing
> side.  Dynamic display based on xml content is easy, but building a
> dynamic layout that looks like a help system might be a bit tricky.
> Directly editing xml files is not advised for non-developers, so you
> would need some king of wysiwyg editor...
> 
>  
> 
> I would really like to see a Flex integration of something like
> RoboHelp.  Who owns RoboHelp anyway?


I think it's those people that bought RoboHelp.



Re: [flexcoders] Upgrading from Flex 2 with LCDS 2.5 to Flex 3 with LCDS 2.6

2008-10-10 Thread João Fernandes
does you project contain the fds_rb.swc in the libs folder or under the 
library classes path?
That swc you'll find in /{LCDS install}WEB-INF/flex/locale/en_US
-- 

João Fernandes

Adobe Community Expert
http://www.onflexwithcf.org
http://www.riapt.org
Portugal Adobe User Group (http://aug.riapt.org)





[flexcoders] Re: Flex / Data / Create Application from Database - Can this also work as a module?

2008-10-10 Thread sailorsea21
It worked!!! Thanks :)

--- In flexcoders@yahoogroups.com, Flex Gangsta <[EMAIL PROTECTED]> 
wrote:
>
> You could probably just wrap all the children of the mxml file(not  
> application) in a mxml component. If I understood you correctly, 
this  
> is the structure you wanted to achieve.
> 
> Sent from my iPhone
> 
> On Oct 10, 2008, at 8:41 AM, "sailorsea21" <[EMAIL PROTECTED]>  
> wrote:
> 
> > Hi, I had a question,
> > When I create an application from a Database (Flex / Data / Create
> > Application from Database).
> > Can I modify the code to convert it into a module?
> >
> > I have a main application that I would like to load the Database 
as a
> > module. I tried replacing the  Tags to 
 but
> > didn't work...
> >
> > Thanks.
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-
b4cf-1e62079f6847
> > Search Archives: http://www.mail-archive.com/flexcoders%
40yahoogroups.comYahoo 
> > ! Groups Links
> >
> >
> >
>




[flexcoders] Flex Project to be converted to run on WebOrb

2008-10-10 Thread Eric Dunn
Hello all, 

Does anyone know how to convert a Flex Project to run on a server that was not 
originally configured to do so? 

I have a project that that is currently configured to standalone. I have been 
playing with WebOrb and would like to convert this existing project to run in 
WebOrb. The Flex Server section in the project Properties is disabled... 

Any ideas other than creating a new project with WebOrb and then pasting the 
existing code into the new project? 

Eric W Dunn 
Adaption Technologies 
281-465-3326 
[EMAIL PROTECTED] 


[flexcoders] Upgrading from Flex 2 with LCDS 2.5 to Flex 3 with LCDS 2.6

2008-10-10 Thread Preston McGowan
I have a few projects that I need to upgrade from Flex 2 with LCDS 2.5 to
Flex 3 with LCDS 2.6.
I tried at first to "go for broke" and just import the old project files
into Flex 3. It complained saying "could not find source for resource bundle
data."

I tried to rebuild the project files and linked it to LCDS 2.5. After some
googling and reading I found that I needed LCDS 2.6 (thanks flexcoders
group!)

I upgraded the LCDS to 2.6 from Adobe's site and still have the "could not
find source for resource bundle data." error.

I don't have any idea what I could be doing so horribly wrong at this point
but am guessing I "forgot to check a box during project creation."

Any ideas?


[flexcoders] Re: transform() -- WHOOPS I MEANT THRESHOLD! :)

2008-10-10 Thread tchredeemed
--- In flexcoders@yahoogroups.com, "tchredeemed" <[EMAIL PROTECTED]> wrote:
>
> Hey, I need some help understanding the bitmapdata.transform() method.
> 
> the bitmapdata has this color "0x00ffe4" and I need to replace that
> with "0xff."
> 
> How would I go about doing this?
>


I am sorry, I meant threshold, not transform!



[flexcoders] Variable scope

2008-10-10 Thread markgoldin_2000
I have the following form:
public class reportRunParameters extends Form
{
private var runString:String = "";
private var originalRunString:String = "";
private var mainApp:Object = new Object();
public function reportRunParameters()
{
super();
}
public function completeParameters():void
{
}

}
in subclassed version when I try to reference runString I am getting 
an error:
1178: Attempted access of inaccessible property originalRunString 
through a reference with static type ...

Should it be public then?

Thanks



[flexcoders] Adding labels to PlotCharts - Label Placement Algorithm

2008-10-10 Thread Battershall, Jeff
I'm adding text labels to multiple PlotChart series (which is not
supported by Flex 3 DataViz components out of the box) and the issue
becomes how to place the labels so they don't overlay each other.  It's
a PITA.  So, I'm just throwing it out there to see if anyone has messed
around with this and has any recommendations. I suppose it is similar to
the concept of collision detection, which numerous people have worked
with in Flash.  

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED]
(609) 520-5637 (p)
(484) 477-9900 (c)


[flexcoders] Re: Interfaces WHY?

2008-10-10 Thread Amy
--- In flexcoders@yahoogroups.com, "flexaustin" <[EMAIL PROTECTED]> 
wrote:
>
> I was wondering if someone can explain why you would need an 
interface
> so short? 
> 
> INTERFACE:
> 
> package my.package.area
> {
>   /**
>* Interface for methods that evaluate an object and return a 
result.
>*/
>   public interface IEval
>   {
>   /**
>* Evaluates the input object
>* @o the object to evaluate
>* @return the computed result value
>*/
>   function eval(o:Object=null):*;
>   
>   } // end of interface IEval
> }
> 
> USAGE OF INTERFACE:
> 
> if (value is IEval) { value = IEval(value).eval(o) };
> 
> Cairngorm has a short interface like this as well, though I cannot
> remember what it is. In Cairngorm they say its for naming or to make
> the code easier to understand? I am just not sure why you would do
> this? Help me see the light!

One example of what you get by implementing an interface is, for 
example, IDropInListItemRenderer.  If you implement this interface, 
then Flex will give your itemRenderer more information than you'd get 
with the data property.  I.e. you also get listData.

If the parent component doesn't see that you have implemented this 
interface, I don't think it will try to give you that information.

HTH;

Amy



RE: [flexcoders] Create Help System in Flex - how to display html in a canvas or component?

2008-10-10 Thread Battershall, Jeff
If your HTML rendering needs are rudimentary, you can use HTTPService to
retrieve HTML files and use them for the htmlText property of the Text
control.  It supports (but not that well) such things as unordered
lists, paragraphs and such. I've used this in combination with a vew
stack and button bar to display multiple pages of help text. It's crude,
but it works.  Conceivably you could incorporate a Tree component and
use that as a menuing system to retreive content via HTTP and display it
in your content area.
 
Jeff

-Original Message-
From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Tracy Spratt
Sent: Friday, October 10, 2008 2:25 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Create Help System in Flex - how to
display html in a canvas or component?



Displaying full html in Flex (Flash Player) is not yet possible.

 

What are your requirements?  The simplest solution is to use a
separate browser to display the html help pages.  The Flex side needs to
know "where" in the app the user is, and be able to determine the url to
display.  Using ExternalInterface you can exercise quite a bit of
control over that window's behavior.

 

Doing it all in Flex will be more difficult, primarily on the
editing side.  Dynamic display based on xml content is easy, but
building a dynamic layout that looks like a help system might be a bit
tricky.  Directly editing xml files is not advised for non-developers,
so you would need some king of wysiwyg editor...

 

I would really like to see a Flex integration of something like
RoboHelp.  Who owns RoboHelp anyway?

 

Tracy

 

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of scottyale2008
Sent: Thursday, October 09, 2008 6:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Create Help System in Flex - how to
display html in a canvas or component?

 

I've built a flex gui that I want to display html files (or
least that
was my original thought). I tried doing some of the IFrame
techniques but it doesn't seem to work on a mac. 

Anyway, the end-goal is for creating a help system. When certain
links are clicked, I just want to display text in panel or
component.
The html files (or text files) would be separate so they can be
easily edited and/or changed without a recompile of the swf. 

Should I try doing the external files in html, txt, or xml
files? If
XML, would I just fill up the node with pages of the text that
represent the text?

Sure I could do this with an html editor without flex, but I
want this
in a flex app!



 



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

2008-10-10 Thread actionscript_czar
Glad to channel Alex Harui's old posts, since I've been using it 
since he wrote it.

By the way, the same thing works well in an MDIWindow setup as well.  
But that only helps if you are using FlexMDI in FlexLib
http://code.google.com/p/flexlib/

--- In flexcoders@yahoogroups.com, "hr1ny" <[EMAIL PROTECTED]> wrote:
>
> Thanks!  That is just what I needed.
> --Henry
> 
> --- In flexcoders@yahoogroups.com, "actionscript_czar"  
> wrote:
> >
> > Alex would probably be recommending extending TitleWindow in a 
way 
> > that allows you to use it as a top level module.
> > 
> > See this: http://blogs.adobe.com/aharui/2007/08/
> > popup_dialogs_as_modules.html
> > 
> > --- In flexcoders@yahoogroups.com, "hr1ny"  wrote:
> > >
> > > Gregor,
> > > Thanks for your post. I agree with you that Alex's blog 
contains 
> > the 
> > > relevant info.  I did move the popup module's Event classes 
into 
> > the 
> > > parent app, and the problem of Type Coercion goes away (though 
I'd 
> > > rather find a solution that did not require this).  But one 
other 
> > > aspect of Alex's recommendation mystifies me.
> > > 
> > > He recommends putting the TitleWindow inside the Module, like 
> this:
> > > 
> > > 
> > >  
> > >  ...
> > >  
> > > 
> > > 
> > > 
> > > but if I do this, and use PopUpManager.addPopUp() to raise this 
> > > object, it is not draggable.  
> > > I think to have a draggable popup window, it needs to inherit 
from 
> > > TitleWindow.  Yet that approach is the one he disparaged.  So 
I'm 
> > not 
> > > sure how to resolve it.  
> > > --Henry R.
> >
>




[flexcoders] transform()

2008-10-10 Thread tchredeemed
Hey, I need some help understanding the bitmapdata.transform() method.

the bitmapdata has this color "0x00ffe4" and I need to replace that
with "0xff."

How would I go about doing this?



RE: [flexcoders] Dinamically creating a datagrid from an arraycollection

2008-10-10 Thread Tracy Spratt
You can get the column info by for in looping over one of the item
objects in the AC.  Like getItemAt(0) .

 

for (var sName:String in oItem) {

  sDataField = s;

}

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of parreira_r
Sent: Thursday, October 09, 2008 4:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Dinamically creating a datagrid from an
arraycollection

 

Hello All

I'm trying to create a datagrid from an arraycollection using action
script. This arraycollection is sent by a server without any extra
information of its contents.

My problem is how do i create the datagrid columns by inspecting the
arraycollection? How do i know each column datafield from the
arraycollection objects?

What i realy need is what was done here :

http://www.cflex.net/showFileDetails.cfm?ObjectID=552
 

but for arraycollections.

Can someone help me?

TIA,

Ricardo

 



RE: [flexcoders] How can the tooltip access the component that is responsible for making it appea

2008-10-10 Thread Tracy Spratt
What about "parent", or "parentDocument".

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of João
Sent: Thursday, October 09, 2008 9:56 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can the tooltip access the component that is 
responsible for making it appea

 

Hi,

I am extending the Flex tooltips to make them more powerful. Right now
I need that the tooltip can access the component that is responsible
for making it appear, but it seems it hasn't a reference to that component
Any suggestion?

Thanks!,

João Saleiro

 



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

2008-10-10 Thread hr1ny
Thanks!  That is just what I needed.
--Henry

--- In flexcoders@yahoogroups.com, "actionscript_czar" <[EMAIL PROTECTED]> 
wrote:
>
> Alex would probably be recommending extending TitleWindow in a way 
> that allows you to use it as a top level module.
> 
> See this: http://blogs.adobe.com/aharui/2007/08/
> popup_dialogs_as_modules.html
> 
> --- In flexcoders@yahoogroups.com, "hr1ny"  wrote:
> >
> > Gregor,
> > Thanks for your post. I agree with you that Alex's blog contains 
> the 
> > relevant info.  I did move the popup module's Event classes into 
> the 
> > parent app, and the problem of Type Coercion goes away (though I'd 
> > rather find a solution that did not require this).  But one other 
> > aspect of Alex's recommendation mystifies me.
> > 
> > He recommends putting the TitleWindow inside the Module, like 
this:
> > 
> > 
> >  
> >  ...
> >  
> > 
> > 
> > 
> > but if I do this, and use PopUpManager.addPopUp() to raise this 
> > object, it is not draggable.  
> > I think to have a draggable popup window, it needs to inherit from 
> > TitleWindow.  Yet that approach is the one he disparaged.  So I'm 
> not 
> > sure how to resolve it.  
> > --Henry R.
>





RE: [flexcoders] I want to access the HttpFlexSession from within a .mxml

2008-10-10 Thread Tracy Spratt
Why does the quantity of data you need to send dictate that you need the
session variable?  What would you do with this value if you had it in
Flex?  What exactly are you trying to do?

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jlopes151
Sent: Thursday, October 09, 2008 2:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] I want to access the HttpFlexSession from within a
.mxml

 

I have a large amount of data to pass to a servlet. I JSP I could 
access the HTTP Sessioin and store an object, access the object from 
another jsp or servlet. I want to do the same in Flex. Can this be 
done?

Thanks for the help

 



Re: [flexcoders] Flex / Data / Create Application from Database - Can this also work as a module?

2008-10-10 Thread Flex Gangsta
You could probably just wrap all the children of the mxml file(not  
application) in a mxml component. If I understood you correctly, this  
is the structure you wanted to achieve.

Sent from my iPhone

On Oct 10, 2008, at 8:41 AM, "sailorsea21" <[EMAIL PROTECTED]>  
wrote:

> Hi, I had a question,
> When I create an application from a Database (Flex / Data / Create
> Application from Database).
> Can I modify the code to convert it into a module?
>
> I have a main application that I would like to load the Database as a
> module. I tried replacing the  Tags to  but
> didn't work...
>
> Thanks.
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo 
> ! Groups Links
>
>
>


RE: [flexcoders] Re: ComboBox edit field selection when populated

2008-10-10 Thread Tracy Spratt
Maybe someone who has actually done this will be more help, but I
suspect that your could use the "selection" manager and or property to
manipulate the text selection and cursor position.

 

Finding the best event to handle this might be tricky.

 

I would expect there to be a way to programaticall open the drop list
too, but I have not dug into the docs to find out how.

 

This sounds like the AutoComplete component.  Perhaps there will be code
in there that might be of use.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of valdhor
Sent: Thursday, October 09, 2008 5:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: ComboBox edit field selection when populated

 

Forgot to ask: Also, how do I get the combobox to popup its list when
the combobox populates with the returned items.

--- In flexcoders@yahoogroups.com 
, "valdhor" <[EMAIL PROTECTED]> wrote:
>
> I have a combobox that is unpopulated on open but is editable. As the
> user types, I check the length of the text field and at a certain
> point I fire off a RemoteObject call to the server. This returns a
> list of items that match what the user enters. Great, this bit works.
> 
> Now, I want to populate the combobox with this list which works great
> BUT I want the textfield to still be the same and to have the cursor
> at the end of the text so the user can keep typing and narrow down the
> returned items.
> 
> What happens is that the combobox populates with the returned items,
> and the editable field becomes the first item returned. Now, I can set
> the first item of the dataprovider to what the user had typed so far
> but when the combobox populates, this first item is selected so the
> user types over everything he has just typed.
> 
> How do I get this to not be selected and the cursor at the end of the
> text?
>

 



[flexcoders] Re: AdvancedDataGridColumn sorting lost when i set my own HeaderRenderer

2008-10-10 Thread Vijay Anand Mareddy
Never mind i figured out the answer...i extend the 
AdvancedDataGridHeaderRenderer

public class MyAdvancedDataGridHeaderRenderer extends 
AdvancedDataGridHeaderRenderer{

[Embed(source="common/assets/icon_filter_16.jpg")]
[Bindable]private var icon_filter_16:Class;

protected var filterButton:Button;

public function MyAdvancedDataGridHeaderRenderer(){
super();
}

/**
 * @protected
 */
override protected function createChildren():void {

super.createChildren();
if (!filterButton){ 
filterButton = new Button();

filterButton.setStyle
("borderThickness",0);  
filterButton.setStyle("icon", 
icon_filter_16);
filterButton.setActualSize(16, 16);
filterButton.mouseFocusEnabled = 
false;
filterButton.styleName = this;
filterButton.useHandCursor = true;
filterButton.buttonMode = true;
filterButton.mouseChildren = false;


filterButton.addEventListener
(MouseEvent.CLICK, 
function(e:MouseEvent):void{
trace('filterButton 
clicked');
e.stopPropagation();
}); 

addChild(filterButton);
}
}
/**
 * @protected
 */
override protected function commitProperties():void {

super.commitProperties();
filterButton.toolTip = "Filter "+(data as 
AdvancedDataGridColumn).headerText;
}
/**
 * @protected
 */
override protected function measure():void {

super.measure();
measuredWidth = measuredWidth + getStyle
("horizontalGap") + filterButton.getExplicitOrMeasuredWidth();
}

/**
 * @protected
 */
override protected function updateDisplayList 
(unscaledWidth:Number, unscaledHeight:Number):void{ 
super.updateDisplayList(unscaledWidth, 
unscaledHeight);
filterButton.x = 2;
filterButton.y = 2; 
}

}

--- In flexcoders@yahoogroups.com, "Vijay Anand Mareddy" <[EMAIL PROTECTED]> 
wrote:
>
> The following sample code has a simple Label as HeaderRenderer.
> 1. The background sort icon on AdvDataGridColumn is gone.
> 2. Default Column Sorting is lost (when sortExpertMode=false)
> Any help on how to retain the above functionailty and yet use 
> my own HeaderRenderer?
> 
> 
> http://www.adobe.com/2006/mxml"; 
> layout="vertical">
>   
>selected="false"/>
>  sortExpertMode="{sortExpertMode.selected}" >
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
>  sortable="true"
> headerRenderer="mx.controls.Label"/>
> 
> 
> 
>   
>  
>   
>   
>   
>   
>   
>   
>   
>   
>   
>   
> 
>  headerRenderer="mx.controls.Label"/>
> 
>
> 
> 
>




RE: [flexcoders] Create Help System in Flex - how to display html in a canvas or component?

2008-10-10 Thread Tracy Spratt
Displaying full html in Flex (Flash Player) is not yet possible.

 

What are your requirements?  The simplest solution is to use a separate
browser to display the html help pages.  The Flex side needs to know
"where" in the app the user is, and be able to determine the url to
display.  Using ExternalInterface you can exercise quite a bit of
control over that window's behavior.

 

Doing it all in Flex will be more difficult, primarily on the editing
side.  Dynamic display based on xml content is easy, but building a
dynamic layout that looks like a help system might be a bit tricky.
Directly editing xml files is not advised for non-developers, so you
would need some king of wysiwyg editor...

 

I would really like to see a Flex integration of something like
RoboHelp.  Who owns RoboHelp anyway?

 

Tracy

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of scottyale2008
Sent: Thursday, October 09, 2008 6:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Create Help System in Flex - how to display html
in a canvas or component?

 

I've built a flex gui that I want to display html files (or least that
was my original thought). I tried doing some of the IFrame
techniques but it doesn't seem to work on a mac. 

Anyway, the end-goal is for creating a help system. When certain
links are clicked, I just want to display text in panel or component.
The html files (or text files) would be separate so they can be
easily edited and/or changed without a recompile of the swf. 

Should I try doing the external files in html, txt, or xml files? If
XML, would I just fill up the node with pages of the text that
represent the text?

Sure I could do this with an html editor without flex, but I want this
in a flex app!

 



RE: [flexcoders] Flex 3 Layout of long form

2008-10-10 Thread Tracy Spratt
In fact, I avoid Form entirely.  I find it too restricting and without
sufficient advantage.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Howard Fore
Sent: Friday, October 10, 2008 7:54 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Flex 3 Layout of long form

 

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

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


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

 

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


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

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


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

Lastly, would ColdFusion work better with this than PHP?


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




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

 



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

2008-10-10 Thread actionscript_czar
Alex would probably be recommending extending TitleWindow in a way 
that allows you to use it as a top level module.

See this: http://blogs.adobe.com/aharui/2007/08/
popup_dialogs_as_modules.html

--- In flexcoders@yahoogroups.com, "hr1ny" <[EMAIL PROTECTED]> wrote:
>
> Gregor,
> Thanks for your post. I agree with you that Alex's blog contains 
the 
> relevant info.  I did move the popup module's Event classes into 
the 
> parent app, and the problem of Type Coercion goes away (though I'd 
> rather find a solution that did not require this).  But one other 
> aspect of Alex's recommendation mystifies me.
> 
> He recommends putting the TitleWindow inside the Module, like this:
> 
> 
>  
>  ...
>  
> 
> 
> 
> but if I do this, and use PopUpManager.addPopUp() to raise this 
> object, it is not draggable.  
> I think to have a draggable popup window, it needs to inherit from 
> TitleWindow.  Yet that approach is the one he disparaged.  So I'm 
not 
> sure how to resolve it.  
> --Henry R.



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

2008-10-10 Thread hr1ny
Gregor,
Thanks for your post. I agree with you that Alex's blog contains the 
relevant info.  I did move the popup module's Event classes into the 
parent app, and the problem of Type Coercion goes away (though I'd 
rather find a solution that did not require this).  But one other 
aspect of Alex's recommendation mystifies me.

He recommends putting the TitleWindow inside the Module, like this:


 
 ...
 



but if I do this, and use PopUpManager.addPopUp() to raise this 
object, it is not draggable.  
I think to have a draggable popup window, it needs to inherit from 
TitleWindow.  Yet that approach is the one he disparaged.  So I'm not 
sure how to resolve it.  
--Henry R.


--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> 
wrote:
>
> 
> 
> Sounds like a shared code module problem, check my blog for more
> details.
> 
> http://blogs.adobe.com/aharui/
> 
> 
> 
>  
> 
> Personally, yeah your analysis sounds about right. How are you 
loading
> the module in? Into a child app domain?
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of hr1ny
> Sent: 06 October 2008 22:29
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Type Coercion error in a Popup module
> 
>  
> 
> Hi,
> I have a module that runs inside a popup window. It runs fine the 
1st 
> time I run it, but after it runs successfully (and I unload the 
> module), after I create and use a 2nd popup using the same module, 
it 
> fails with this error:
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert 
> com.adobe.createmeeting.events::[EMAIL PROTECTED] to 
> com.adobe.createmeeting.events.CreateMeetingEvent.
> 
> The error occurs while executing a piece of typical Cairngorm-style 
> code:
> 
> override public function doExecute(event:CairngormEvent):void {
> var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);
> 
> If I define the class CreateMeetingEvent and instantiate it in the 
> parent application, then this error does not occur, but I do not 
want 
> to define it in the parent application, since it does not belong 
> there.
> 
> My guess is that this has to do with the issue of ApplicationDomains 
> and class loading. Somehow, when I create the 2nd popup with the 
same 
> module, it is looking for the class definition that belonged to the 
> now-defunct class module.
> 
> Can anyone suggest what is the best way to fix this?
> Thanks,
> Henry
>





RE: [flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Tracy Spratt
I think you will need to make your popup non-modal, then create "mouse
shields" over the components that you want to protect.

 

This is how modal popups work, by placing a transparent layer above the
application.  I have not done this but others have.  Look into the code
for modal popups.

 

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Christoph Leva
Sent: Friday, October 10, 2008 10:19 AM
To: flexcoders@yahoogroups.com
Subject: AW: [flexcoders] Re: modal PopUp with one component, that
should accept user interaction

 

Hi,

 

do you mean to create the PopUp as non modal and after that do
mx.core.Application.application.enabled = false?

You are right, it doesn't affect the popup, but disables all other
components. 

 

Think I confused you, here is an example: Lets say I have two Buttons
(Btn A and B) on stage. Each Button creates a PopUp. When I click on
Button A, the Pop Up appears, Button B will be disabled but Button A
stays enabled and accepts user interaction.

 

I want to use the PopUpManager for that and set the third parameter of
"PopUpManager.createPopUp" to true (modal). Anybody has done something
like that?

 

Christoph

 



Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von valdhor
Gesendet: Freitag, 10. Oktober 2008 15:47
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: modal PopUp with one component, that should
accept user interaction

Have you tried mx.core.Application.application.enabled = false?

I'm fairly sure this does not affect popups.

--- In flexcoders@yahoogroups.com 
, "Christoph Leva"
<[EMAIL PROTECTED]> wrote:
>
> Hi Darrell,
> 
> thanks for the answer. I know that you use the third parameter to
make it
> modal. What I want is, that the component, from where I create the
popUp
> stays enabled. All the other components on stage should be disabled
(like
> setting the third parameter to "true").
> 
> I am looking for an easy way to solve it with the PopUpManager.
> 
> Christoph
> 
> _ 
> 
> Von: flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.com 
] Im
> Auftrag von Darrell Loverin
> Gesendet: Freitag, 10. Oktober 2008 05:11
> An: flexcoders@yahoogroups.com  
> Betreff: [flexcoders] Re: modal PopUp with one component, that
should accept
> user interaction
> 
> 
> 
> I may be misunderstanding your question but the third parameter of 
> the PopUpManager.addPopUp() fucntion is a Boolean that controls 
> whether the popup is modal or non-modal.
> 
> -Darrell
> 
> --- In [EMAIL PROTECTED] 
ups.com,
> "Christoph Leva" 
>  wrote:
> >
> > Hi all,
> > 
> > I use the popUpManager to show a TitleWindow. I want it modal, but 
> exlude
> > the component from where I create the popUp. The result should be, 
> that this
> > one component and the titleWindow can be clicked on or interacted 
> with and
> > all other components should not react to user interaction.
> > 
> > Does anybody have an idea how to do it with the PopUpManager?
> > 
> > Cheers, Christoph
> >
>

 



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

2008-10-10 Thread hr1ny
Gregor,
Thanks for your post. I agree with you that Alex's blog contains the 
relevant info.  I did move the popup module's Event classes into the 
parent app, and the problem of Type Coercion goes away (though I'd 
rather find a solution that did not require this).  But one other 
aspect of Alex's recommendation mystifies me.

He recommends putting the TitleWindow inside the Module, like this:


 
 ...
 



but if I do this, and use PopUpManager.addPopUp() to raise this 
object, it is not draggable.  
I think to have a draggable popup window, it needs to inherit from 
TitleWindow.  Yet that approach is the one he disparaged.  So I'm not 
sure how to resolve it.  
--Henry R.


--- In flexcoders@yahoogroups.com, "Gregor Kiddie" <[EMAIL PROTECTED]> 
wrote:
>
> 
> 
> Sounds like a shared code module problem, check my blog for more
> details.
> 
> http://blogs.adobe.com/aharui/
> 
> 
> 
>  
> 
> Personally, yeah your analysis sounds about right. How are you 
loading
> the module in? Into a child app domain?
> 
>  
> 
> Gk.
> 
> Gregor Kiddie
> Senior Developer
> INPS
> 
> Tel:   01382 564343
> 
> Registered address: The Bread Factory, 1a Broughton Street, London 
SW8
> 3QJ
> 
> Registered Number: 1788577
> 
> Registered in the UK
> 
> Visit our Internet Web site at www.inps.co.uk
> http://www.inps.co.uk/> 
> 
> The information in this internet email is confidential and is 
intended
> solely for the addressee. Access, copying or re-use of information 
in it
> by anyone else is not authorised. Any views or opinions presented 
are
> solely those of the author and do not necessarily represent those of
> INPS or any of its affiliates. If you are not the intended recipient
> please contact [EMAIL PROTECTED]
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On
> Behalf Of hr1ny
> Sent: 06 October 2008 22:29
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Type Coercion error in a Popup module
> 
>  
> 
> Hi,
> I have a module that runs inside a popup window. It runs fine the 
1st 
> time I run it, but after it runs successfully (and I unload the 
> module), after I create and use a 2nd popup using the same module, 
it 
> fails with this error:
> 
> TypeError: Error #1034: Type Coercion failed: cannot convert 
> com.adobe.createmeeting.events::[EMAIL PROTECTED] to 
> com.adobe.createmeeting.events.CreateMeetingEvent.
> 
> The error occurs while executing a piece of typical Cairngorm-style 
> code:
> 
> override public function doExecute(event:CairngormEvent):void {
> var myEvent:CreateMeetingEvent = CreateMeetingEvent(event);
> 
> If I define the class CreateMeetingEvent and instantiate it in the 
> parent application, then this error does not occur, but I do not 
want 
> to define it in the parent application, since it does not belong 
> there.
> 
> My guess is that this has to do with the issue of ApplicationDomains 
> and class loading. Somehow, when I create the 2nd popup with the 
same 
> module, it is looking for the class definition that belonged to the 
> now-defunct class module.
> 
> Can anyone suggest what is the best way to fix this?
> Thanks,
> Henry
>





Re: [flexcoders] Re: Action script 3 JSON

2008-10-10 Thread GYANPRAKASH PANDEY
Dear kyle and Veldhor,

Thanx alot for your valueable responses..i got my error. It was in my php code.

thnx again

regards,
gyanprakash pandey

--- On Wed, 8/10/08, valdhor <[EMAIL PROTECTED]> wrote:
From: valdhor <[EMAIL PROTECTED]>
Subject: [flexcoders] Re: Action script 3 JSON
To: flexcoders@yahoogroups.com
Date: Wednesday, 8 October, 2008, 10:08 PM











It appears from the original post that the error is



Unexpected g encountered



In your code you have



echo "gyanprakash"



if $_GET['getOrder' ] is set.



So, is $_GET['getOrder' ] set? if so, you will get the error as the

response will be gyanprakash (NOT JSON encoded).



--- In [EMAIL PROTECTED] ups.com, "Kyle" <[EMAIL PROTECTED] > wrote:

>

> Is the php script that is returning the json data live somewhere on

> the web? Can you give me a url that I could ping that will return the

> json data?

> 

> Thanks,

> 

> Kyle

> 

> 

> 

> 

> 

> 

> 

> --- In [EMAIL PROTECTED] ups.com, GYANPRAKASH PANDEY

>  wrote:

> >

> > Dear Kyle,

> > 

> > I did not get the error. Here is my php code;

> >  > class Order

> > {

> >     public $id;

> >     public $d_date;

> >     public $name;

> >     

> > }

> > 

> > 

> > if(isset($_GET[ 'getOrder' ]))

> > {

> >     $p = new Order();

> >     $p->id= '1';

> >     $p->d_date= '02-03-2008' ;

> >     $p->name = 'Gyanprakash Pandey';

> >     

> >     echo "gyanprakash" ;

> >     echo ($p);

> >     echo "gyan";

> > }

> > else

> > {

> >     $p = new Order();

> >     $p->id= '1';

> >     $p->d_date= '02-03-2008' ;

> >     $p->name = 'Gyanprakash Pandey';

> >     

> >     

> >     echo json_encode( $p);

> > 

> > 

> > ?>

> > 

> > Out put of json encoded data is :

> > {"id":"1","d_ date":"02- 03-2008", "name":"Gyanprak ash Pandey"}

> > 

> > Action script function i used to decode is :

> > 

> > var rawData:String= event.result. toString( );

> >                 var orders:Object= (JSON.decode( rawData)

> as Object);

> > myText.text= orders.id + orders.d_date + orders.name;

> >                 Alert.show(" Data transmitted

successfully" );

> > 

> > 

> > 

> > Still i'm getting the same error.

> > 

> > Can you please find out the exact error! It'll be a great help.

> > 

> > thank you very much,

> > 

> > Regards,

> > Gyanprakash Pandey

> > 

> > --- On Tue, 7/10/08, Kyle  wrote:

> > From: Kyle 

> > Subject: [flexcoders] Re: Action script 3 JSON

> > To: [EMAIL PROTECTED] ups.com

> > Date: Tuesday, 7 October, 2008, 12:06 AM

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > 

> > If you can't find the error, post the json output that is causing the

> > 

> > error to be thrown (the json encoded data that is being returned from

> > 

> > your php script), as well as the AS3 code that you wrote to decode the

> > 

> > json data here and I can take a look at it for you. However, like

> > 

> > Haykel said, more often than not this type of error is caused by a

> > 

> > simple syntax error in your json return.

> > 

> > 

> > 

> > -Kyle

> > 

> > 

> > 

> > --- In [EMAIL PROTECTED] ups.com, "Haykel BEN JEMIA" 

> > 

> > wrote:

> > 

> > >

> > 

> > > Seems that you have a syntax error in the JSON string. Inspect its

> > 

> > content

> > 

> > > before sending it to the JSON decoder.

> > 

> > > 

> > 

> > > On Sat, Oct 4, 2008 at 2:35 PM, GYANPRAKASH PANDEY <

> > 

> > > gyanprakash_ 108@> wrote:

> > 

> > > 

> > 

> > > >   Dear all,

> > 

> > > >

> > 

> > > > I'm using JSON and php for back end data transfer in flex. But,

> > 

> > i'm getting

> > 

> > > > following error:

> > 

> > > > Error: Unexpected g encountered

> > 

> > > > at com.adobe.serializa tion.json: :JSONTokenizer/

parseError( )

> > 

> > > > at com.adobe.serializa tion.json: :JSONTokenizer/

> getNextToken( )

> > 

> > > > at com.adobe.serializa tion.json: :JSONDecoder/ ::nextToken( )

> > 

> > > > at com.adobe.serializa tion.json: :JSONDecoder$ iinit()

> > 

> > > > at com.adobe.serializa tion.json: :JSON$/decode( )

> > 

> > > > at adminPage/handlePla inJSON()

> > 

> > > > at adminPage/__ pendingOrderRpc_ result()

> > 

> > > > at

> > 

> > > >

> > 

> > flash.events: :EventDispatcher /flash.events: EventDispatcher:

> :dispatchEventFu nction()

> > 

> > > > at flash.events: :EventDispatcher /dispatchEvent( )

> > 

> > > > at mx.rpc.http. mxml::HTTPServic e/

> > 

> > > >

> > 

> > http://www.adobe. com/2006/ flex/mx/internal ::dispatchRpcEve

> nt() nt%28%29>

> > 

> > > > at mx.rpc::AbstractInv oker/

> > 

> > > >

> > 

> > http://www.adobe. com/2006/ flex/mx/internal

> ::resultHandler( ) ::resultHandler% 28%29>

> > 

> > > > at mx.rpc::Resp

RE: [flexcoders] Re: Question about HTTPService and callbacks

2008-10-10 Thread Tracy Spratt
I see a few ways to do this.  The key to all of them is using
AsyncToken.  

 

You could add a callback parameter to your components send() function.
If you use a function, then you can place a callback function directly
in the AsyncToken(Responder?) and have the result handler execute the
function

 

You could use a string that is the name of the callback function, put
that in the AsyncToken, and in the handler, like you have done, use
bracket notation to get a reference to and execute the function.

 

You could pass in a string use a string that identifies the call, then
have your component dispatch an event on result.  Either use a custom
event that contains the result data and call identifier, or expose the
"lastResult" and "callId" in public properties.  Have the handler for
the components result event use that data to execute whatever you need.

 

You can mix and match these approaches as well.

 

Tracy

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markgoldin_2000
Sent: Friday, October 10, 2008 8:12 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Question about HTTPService and callbacks

 

Anybody, please, any idea?

--- In flexcoders@yahoogroups.com 
, "markgoldin_2000" 
<[EMAIL PROTECTED]> wrote:
>
> I am building a common library to shre it between diffrent 
projects. 
> First of all it will be used for data access. I am using 
HTTPService 
> for all my data needs. Data retrival is a generic operaton, but 
data 
> processing is not. I need to provide a custom callback function for 
> each service.send(parameters) result. I am defining a callback for 
> service itself:
> service.addEventListener("result", httpResult);
> 
> private function httpResult(event:ResultEvent):void 
> {
> var result:Object = event.result;
> var xmlResult:XML = XML(result); 
> 
> // here I need to call a function(xmlResult) that is specified by a 
> data requestor which is in a diffrent project.
> }
> I was able to acoomplish (well, sort of) that by having HTTPService 
> code and custom callbacks code in one package:
> private function httpResult(event:ResultEvent):void 
> {
> var result:Object = event.result;
> var xmlResult:XML = XML(result); 
> this[CallbackToRun](xmlResult);
> }
> where CallbackToRun is defined prior the call.
> 
> Any idea how to do that?
> 
> Thanks
>

 



[flexcoders] Flex / Data / Create Application from Database - Can this also work as a module?

2008-10-10 Thread sailorsea21
Hi, I had a question, 
When I create an application from a Database (Flex / Data / Create 
Application from Database).
Can I modify the code to convert it into a module?

I have a main application that I would like to load the Database as a 
module. I tried replacing the  Tags to  but 
didn't work... 

Thanks. 



Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Ah never mind about the generated, just checked.
I thought I saw somewhere, where a dev actually accessed the real method
that the compiler creates.

Mike

PS The anonymous function isn't that bad since it doesn't pollute your
classes api.

On Fri, Oct 10, 2008 at 12:52 PM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

> Yeah, I understand.
> The problem as you know is they use apply() so you need the real name of
> the setter when flex compiles it. I thought they uses 'setSelectedChild', I
> tried that and it was not defined.
>
> Maybe keep generated as could show something.
>
> Mike
>
>
> On Fri, Oct 10, 2008 at 12:47 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:
>
>>   Thanks Mike, but that's really what I was trying to avoid.  That's the
>> same as my example, only the function is anonymous instead.  I thought maybe
>> there was some way to get Flex to realize I wanted the setter function, not
>> the "property."
>>
>> On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle <
>> [EMAIL PROTECTED]> wrote:
>>
>>>   Hi,
>>> This works, I tested it;
>>>
>>> callLater(function (stack:ViewStack, container:Container):void {
>>> stack.selectedChild = container;
>>> }, [viewStack, someBox]);
>>>
>>>
>>> Mike
>>>
>>>
>>> On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes <
>>> [EMAIL PROTECTED]> wrote:
>>>
   Is there some way to use callLater to set a property that has a
 setter?  So far, all I can think of is to create a dummy function that does
 the setting and pass it in the callLater:

 private function setSelectedChild(viewStack:ViewStack,
 newChild:Container):void
 {
   viewStack.selectedChild = newChild;
 }

 ...

 callLater(setSelectedChild, [someBox]);


 Any better way to do it?

 --
 Jason


>>>
>>>
>>> --
>>> Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>>
>>> Teoti Graphix Blog
>>> http://www.blog.teotigraphix.com
>>>
>>> You can find more by solving the problem then by 'asking the question'.
>>>
>>
>>
>>
>> --
>> Jason
>>
>>  
>>
>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Yeah, I understand.
The problem as you know is they use apply() so you need the real name of the
setter when flex compiles it. I thought they uses 'setSelectedChild', I
tried that and it was not defined.

Maybe keep generated as could show something.

Mike

On Fri, Oct 10, 2008 at 12:47 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:

>   Thanks Mike, but that's really what I was trying to avoid.  That's the
> same as my example, only the function is anonymous instead.  I thought maybe
> there was some way to get Flex to realize I wanted the setter function, not
> the "property."
>
> On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle <
> [EMAIL PROTECTED]> wrote:
>
>>   Hi,
>> This works, I tested it;
>>
>> callLater(function (stack:ViewStack, container:Container):void {
>> stack.selectedChild = container;
>> }, [viewStack, someBox]);
>>
>>
>> Mike
>>
>>
>> On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes <[EMAIL PROTECTED]
>> > wrote:
>>
>>>   Is there some way to use callLater to set a property that has a
>>> setter?  So far, all I can think of is to create a dummy function that does
>>> the setting and pass it in the callLater:
>>>
>>> private function setSelectedChild(viewStack:ViewStack,
>>> newChild:Container):void
>>> {
>>>   viewStack.selectedChild = newChild;
>>> }
>>>
>>> ...
>>>
>>> callLater(setSelectedChild, [someBox]);
>>>
>>>
>>> Any better way to do it?
>>>
>>> --
>>> Jason
>>>
>>>
>>
>>
>> --
>> Teoti Graphix, LLC
>> http://www.teotigraphix.com
>>
>> Teoti Graphix Blog
>> http://www.blog.teotigraphix.com
>>
>> You can find more by solving the problem then by 'asking the question'.
>>
>
>
>
> --
> Jason
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Pan Troglodytes
Thanks Mike, but that's really what I was trying to avoid.  That's the same
as my example, only the function is anonymous instead.  I thought maybe
there was some way to get Flex to realize I wanted the setter function, not
the "property."

On Fri, Oct 10, 2008 at 11:30 AM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

>   Hi,
> This works, I tested it;
>
> callLater(function (stack:ViewStack, container:Container):void {
> stack.selectedChild = container;
> }, [viewStack, someBox]);
>
>
> Mike
>
>
> On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:
>
>>   Is there some way to use callLater to set a property that has a
>> setter?  So far, all I can think of is to create a dummy function that does
>> the setting and pass it in the callLater:
>>
>> private function setSelectedChild(viewStack:ViewStack,
>> newChild:Container):void
>> {
>>   viewStack.selectedChild = newChild;
>> }
>>
>> ...
>>
>> callLater(setSelectedChild, [someBox]);
>>
>>
>> Any better way to do it?
>>
>> --
>> Jason
>>
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>  
>



-- 
Jason


Re: [flexcoders] using callLater with setter?

2008-10-10 Thread Michael Schmalle
Hi,
This works, I tested it;

callLater(function (stack:ViewStack, container:Container):void {
stack.selectedChild = container;
}, [viewStack, someBox]);


Mike

On Fri, Oct 10, 2008 at 12:10 PM, Pan Troglodytes <[EMAIL PROTECTED]>wrote:

>   Is there some way to use callLater to set a property that has a setter?
> So far, all I can think of is to create a dummy function that does the
> setting and pass it in the callLater:
>
> private function setSelectedChild(viewStack:ViewStack,
> newChild:Container):void
> {
>   viewStack.selectedChild = newChild;
> }
>
> ...
>
> callLater(setSelectedChild, [someBox]);
>
>
> Any better way to do it?
>
> --
> Jason
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


RE: [flexcoders] AMFPHP tutorial

2008-10-10 Thread Eric Fickes
If you can get it to load, here are video tutorials straight from the
source
 
http://www.amfphp.org/videotuts.html



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of yuku
Sent: Friday, October 10, 2008 6:22 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AMFPHP tutorial



Maybe you can try this:

http://jonniespratley.com/2008/09/19/flex-and-amfphp-mini-cookbook/
 



On Fri, Oct 10, 2008 at 04:06, hworke <[EMAIL PROTECTED]
 > wrote:




  Hello all,

  where can I find some good AMHPHP tutorials.
  I will prefer some video tutorials. I tried
  on tv.adobe.com. But they do not have any.

  Best regards..




--
Flexcoders Mailing List
FAQ:
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
 
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
 
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo
 ! Groups
Links


   (Yahoo! ID required)

   mailto:[EMAIL PROTECTED]
 






 


RE: [flexcoders] (unknown)

2008-10-10 Thread Eric Fickes
This site should have all you need
 
http://www.cairngormdocs.org/



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anand Kumar
Sent: Wednesday, October 01, 2008 9:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] (unknown)



Hi,
 
Please some one explain me about  Cairngorm architecture.
 
Thanks
Anand
 


 


[flexcoders] using callLater with setter?

2008-10-10 Thread Pan Troglodytes
Is there some way to use callLater to set a property that has a setter?  So
far, all I can think of is to create a dummy function that does the setting
and pass it in the callLater:

private function setSelectedChild(viewStack:ViewStack,
newChild:Container):void
{
  viewStack.selectedChild = newChild;
}

...

callLater(setSelectedChild, [someBox]);


Any better way to do it?

-- 
Jason


Re: [flexcoders] Flex 4 and Flex 3 mixable?

2008-10-10 Thread Matt Chotin
We are trying to make it so that it won't take much work for something written 
against Flex 3 to work with Flex 4.  But it's likely the component will need to 
be recompiled.  Unfortunately the way AS is compiled and interpreted makes it 
hard to have individual components built with different versions.  The Marshall 
Plan is meant to allow larger pieces of functionality to intermix, but not as 
low as the component level.

Matt


On 10/10/08 8:08 AM, "Weyert de Boer" <[EMAIL PROTECTED]> wrote:




Hello!

I am currently working on a project where one third-party component is
written for Flex 3. Only I am curious if it's possible to combine Flex 3
parts with Flex 4.
Anyone know if this possible or having experience with this?

Yours,
Weyert de Boer




[flexcoders] Re: Problem using SDK Version 3.1...

2008-10-10 Thread oneworld95
Here's an online XML validation tool: http://www.hitsw.com/xml_utilites/

--- In flexcoders@yahoogroups.com, Rob Kunkle <[EMAIL PROTECTED]> wrote:
>
> When I switch from using SDK v3.0.3 to v3.1, I can't compile my  
> projects. The following "problem" shows up for the project. Has anyone  
> else come across this or know how to resolve this?
> 
> 
> 
> Thanks!
> Rob
>




Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Michael Schmalle
> But in general I think implementation inheritance is over-used and
multiple inheritance can get you into trouble.
WORD!

Especially in UIComponent designs, I would discourage the use of extends
with interfaces.

It's a lot easier if your class just implements what it needs and leave
the inheritance to the class framework that is implementing the interfaces.

This is not to say don't, but careful design of User Interface interface
frameworks is needed. Adobe did a pretty good job at this.

If you were around in the Flex 2 betas especially the alpha you saw how
the scrubbed the interfaces and completely refactored out
some inheritance they used in the interface framework.

Mike

On Fri, Oct 10, 2008 at 11:14 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:

>   Except that "pseudo" sounds disparaging, and I actually like an object
> model which has multiple inheritance of interfaces and single inheritance of
> implementations (same as Java, and maybe C# too?). Multiple inheritance of
> implementation results in ambiguity. Composition/delegation is a better
> approach in my view. Lots of literature about this that the original poster
> can read.
>
> Having said that, I did have one occasion in my career when I followed an
> example from Bertrand Meyer's book and implemented a tree node in C++ as a
> link and a list. But in general I think implementation inheritance is
> over-used and multiple inheritance can get you into trouble.
>
>
> On Fri, Oct 10, 2008 at 7:57 AM, Ryan Gravener <[EMAIL PROTECTED]>wrote:
>
>>   Pseudo multiple inheritance.
>>
>> Ryan Gravener
>> http://twitter.com/ryangravener
>>
>>
>>
>> On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:
>>
>>>   And sometimes you even have interfaces with no methods. In this case
>>> it's a "marker" (often a parent of other interfaces) and when used in method
>>> signatures you get type checking.
>>>
>>>
>>> On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle <
>>> [EMAIL PROTECTED]> wrote:
>>>
   Hi,
 It's ICommand.

 The reason is you can stack interfaces on top of each other allowing
 more decoupling to the implementing concrete classes.

 This interface is obvious. Any class that implements it needs eval() and
 only eval. It's like a singleton declaration of implementation.

 If you jammed this evel() method into IUIComponent, maybe all components
 don't need eval. Make sense?

 Also another good example of this type of interface in the flex
 framework is IDataRenderer, it's only declared property is 'data'.

 Mike

  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]>wrote:

>   I was wondering if someone can explain why you would need an
> interface
> so short?
>
> INTERFACE:
>
> package my.package.area
> {
> /**
> * Interface for methods that evaluate an object and return a result.
> */
> public interface IEval
> {
> /**
> * Evaluates the input object
> * @o the object to evaluate
> * @return the computed result value
> */
> function eval(o:Object=null):*;
>
> } // end of interface IEval
> }
>
> USAGE OF INTERFACE:
>
> if (value is IEval) { value = IEval(value).eval(o) };
>
> Cairngorm has a short interface like this as well, though I cannot
> remember what it is. In Cairngorm they say its for naming or to make
> the code easier to understand? I am just not sure why you would do
> this? Help me see the light!
>
> TIA
>
>


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

 Teoti Graphix Blog
 http://www.blog.teotigraphix.com

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

>>>
>>>
>>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] Problem using SDK Version 3.1...

2008-10-10 Thread Maciek Sakrejda
My guess is that you have malformed (or at least questionably-formed)
MXML somewhere (and Flex 3.0 was more lenient about it). Are you sure
you don't have garbage at the beginning of some MXML file or something
like that? Can you validate it through an external XML editor (sorry
don't know any on Mac)?
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Rob Kunkle <[EMAIL PROTECTED]>
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Problem using SDK Version 3.1...
Date: Fri, 10 Oct 2008 01:46:57 -0400

When I switch from using SDK v3.0.3 to v3.1, I can't compile my 
projects. The following "problem" shows up for the project. Has anyone 
else come across this or know how to resolve this?



 

Thanks!
Rob







Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Richard Rodseth
Except that "pseudo" sounds disparaging, and I actually like an object model
which has multiple inheritance of interfaces and single inheritance of
implementations (same as Java, and maybe C# too?). Multiple inheritance of
implementation results in ambiguity. Composition/delegation is a better
approach in my view. Lots of literature about this that the original poster
can read.

Having said that, I did have one occasion in my career when I followed an
example from Bertrand Meyer's book and implemented a tree node in C++ as a
link and a list. But in general I think implementation inheritance is
over-used and multiple inheritance can get you into trouble.

On Fri, Oct 10, 2008 at 7:57 AM, Ryan Gravener <[EMAIL PROTECTED]>wrote:

>   Pseudo multiple inheritance.
>
> Ryan Gravener
> http://twitter.com/ryangravener
>
>
>
> On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:
>
>>   And sometimes you even have interfaces with no methods. In this case
>> it's a "marker" (often a parent of other interfaces) and when used in method
>> signatures you get type checking.
>>
>>
>> On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle <
>> [EMAIL PROTECTED]> wrote:
>>
>>>   Hi,
>>> It's ICommand.
>>>
>>> The reason is you can stack interfaces on top of each other allowing more
>>> decoupling to the implementing concrete classes.
>>>
>>> This interface is obvious. Any class that implements it needs eval() and
>>> only eval. It's like a singleton declaration of implementation.
>>>
>>> If you jammed this evel() method into IUIComponent, maybe all components
>>> don't need eval. Make sense?
>>>
>>> Also another good example of this type of interface in the flex framework
>>> is IDataRenderer, it's only declared property is 'data'.
>>>
>>> Mike
>>>
>>>  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]>wrote:
>>>
   I was wondering if someone can explain why you would need an
 interface
 so short?

 INTERFACE:

 package my.package.area
 {
 /**
 * Interface for methods that evaluate an object and return a result.
 */
 public interface IEval
 {
 /**
 * Evaluates the input object
 * @o the object to evaluate
 * @return the computed result value
 */
 function eval(o:Object=null):*;

 } // end of interface IEval
 }

 USAGE OF INTERFACE:

 if (value is IEval) { value = IEval(value).eval(o) };

 Cairngorm has a short interface like this as well, though I cannot
 remember what it is. In Cairngorm they say its for naming or to make
 the code easier to understand? I am just not sure why you would do
 this? Help me see the light!

 TIA


>>>
>>>
>>> --
>>> Teoti Graphix, LLC
>>> http://www.teotigraphix.com
>>>
>>> Teoti Graphix Blog
>>> http://www.blog.teotigraphix.com
>>>
>>> You can find more by solving the problem then by 'asking the question'.
>>>
>>
>>
>  
>


[flexcoders] Re: Interfaces WHY?

2008-10-10 Thread florian.salihovic
Polymorphism.

--- In flexcoders@yahoogroups.com, "Ryan Gravener" <[EMAIL PROTECTED]> wrote:
>
> Pseudo multiple inheritance.
> 
> Ryan Gravener
> http://twitter.com/ryangravener
> 
> 
> On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:
> 
> >   And sometimes you even have interfaces with no methods. In this case
> > it's a "marker" (often a parent of other interfaces) and when used in method
> > signatures you get type checking.
> >
> >
> > On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle <[EMAIL PROTECTED]
> > > wrote:
> >
> >>   Hi,
> >> It's ICommand.
> >>
> >> The reason is you can stack interfaces on top of each other allowing more
> >> decoupling to the implementing concrete classes.
> >>
> >> This interface is obvious. Any class that implements it needs eval() and
> >> only eval. It's like a singleton declaration of implementation.
> >>
> >> If you jammed this evel() method into IUIComponent, maybe all components
> >> don't need eval. Make sense?
> >>
> >> Also another good example of this type of interface in the flex framework
> >> is IDataRenderer, it's only declared property is 'data'.
> >>
> >> Mike
> >>
> >>  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]>wrote:
> >>
> >>>   I was wondering if someone can explain why you would need an interface
> >>> so short?
> >>>
> >>> INTERFACE:
> >>>
> >>> package my.package.area
> >>> {
> >>> /**
> >>> * Interface for methods that evaluate an object and return a result.
> >>> */
> >>> public interface IEval
> >>> {
> >>> /**
> >>> * Evaluates the input object
> >>> * @o the object to evaluate
> >>> * @return the computed result value
> >>> */
> >>> function eval(o:Object=null):*;
> >>>
> >>> } // end of interface IEval
> >>> }
> >>>
> >>> USAGE OF INTERFACE:
> >>>
> >>> if (value is IEval) { value = IEval(value).eval(o) };
> >>>
> >>> Cairngorm has a short interface like this as well, though I cannot
> >>> remember what it is. In Cairngorm they say its for naming or to make
> >>> the code easier to understand? I am just not sure why you would do
> >>> this? Help me see the light!
> >>>
> >>> TIA
> >>>
> >>>
> >>
> >>
> >> --
> >> Teoti Graphix, LLC
> >> http://www.teotigraphix.com
> >>
> >> Teoti Graphix Blog
> >> http://www.blog.teotigraphix.com
> >>
> >> You can find more by solving the problem then by 'asking the question'.
> >>
> >
> >  
> >
>





[flexcoders] Flex 4 and Flex 3 mixable?

2008-10-10 Thread Weyert de Boer
Hello!

I am currently working on a project where one third-party component is 
written for Flex 3. Only I am curious if it's possible to combine Flex 3 
parts with Flex 4.
Anyone know if this possible or having experience with this?

Yours,
Weyert de Boer


Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Ryan Gravener
Pseudo multiple inheritance.

Ryan Gravener
http://twitter.com/ryangravener


On Fri, Oct 10, 2008 at 10:23 AM, Richard Rodseth <[EMAIL PROTECTED]>wrote:

>   And sometimes you even have interfaces with no methods. In this case
> it's a "marker" (often a parent of other interfaces) and when used in method
> signatures you get type checking.
>
>
> On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle <[EMAIL PROTECTED]
> > wrote:
>
>>   Hi,
>> It's ICommand.
>>
>> The reason is you can stack interfaces on top of each other allowing more
>> decoupling to the implementing concrete classes.
>>
>> This interface is obvious. Any class that implements it needs eval() and
>> only eval. It's like a singleton declaration of implementation.
>>
>> If you jammed this evel() method into IUIComponent, maybe all components
>> don't need eval. Make sense?
>>
>> Also another good example of this type of interface in the flex framework
>> is IDataRenderer, it's only declared property is 'data'.
>>
>> Mike
>>
>>  On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]>wrote:
>>
>>>   I was wondering if someone can explain why you would need an interface
>>> so short?
>>>
>>> INTERFACE:
>>>
>>> package my.package.area
>>> {
>>> /**
>>> * Interface for methods that evaluate an object and return a result.
>>> */
>>> public interface IEval
>>> {
>>> /**
>>> * Evaluates the input object
>>> * @o the object to evaluate
>>> * @return the computed result value
>>> */
>>> function eval(o:Object=null):*;
>>>
>>> } // end of interface IEval
>>> }
>>>
>>> USAGE OF INTERFACE:
>>>
>>> if (value is IEval) { value = IEval(value).eval(o) };
>>>
>>> Cairngorm has a short interface like this as well, though I cannot
>>> remember what it is. In Cairngorm they say its for naming or to make
>>> the code easier to understand? I am just not sure why you would do
>>> this? Help me see the light!
>>>
>>> TIA
>>>
>>>
>>
>>
>> --
>> Teoti Graphix, LLC
>> http://www.teotigraphix.com
>>
>> Teoti Graphix Blog
>> http://www.blog.teotigraphix.com
>>
>> You can find more by solving the problem then by 'asking the question'.
>>
>
>  
>


[flexcoders] Re: Masking Images?

2008-10-10 Thread tchredeemed
--- In flexcoders@yahoogroups.com, "tchredeemed" <[EMAIL PROTECTED]> wrote:
>
> If I have a bunch of images that need to be color-coded for a given
> color, how would I do this?
> 
> Let's say I have a grid with 8 images, and all 8 of them have portions
> that need to have a 'branded color,' but the branded color is
> different depending on the user, and the images are different
> depending on the current setup.
> 
> In other words, 100% dynamic masking?
>

Now that I think about it, a mask might not be what I need.

Should I just do a color replace? replace all pixels of the color x to
the color y?

How would I do that? Is that efficient?



[flexcoders] Masking Images?

2008-10-10 Thread tchredeemed
If I have a bunch of images that need to be color-coded for a given
color, how would I do this?

Let's say I have a grid with 8 images, and all 8 of them have portions
that need to have a 'branded color,' but the branded color is
different depending on the user, and the images are different
depending on the current setup.

In other words, 100% dynamic masking?



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

2008-10-10 Thread George
Hi there,

I check lots of documents and google examples on SQLite transaction, 
most of them in sync mode that not fit what we need exactly.

What I need is during the transaction, I want to insert a list of items 
into a table. I reuse a single insert statement prepared. So what I did:

connection.begin(SQLTransactionLockType.IMMEDIATE);
for(var i:int=0; i

Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)

2008-10-10 Thread Howard Fore
Yeah, if you don't need it to be perfect (you already had humen error to
factor in), maybe you could just run long enough tests to figure out what
the average off amount is and factor it in. Or maybe give the user the
ability to bump it up or down in one or two BPM increments so they can match
it perfectly.

On Fri, Oct 10, 2008 at 10:38 AM, Flap Flap <[EMAIL PROTECTED]>wrote:

>  Yeah thanks ;)
>
> Ok so I made the test and result are the same.
> I think I will keep all the interval to produce an average...
>
> Thanks
> 
>



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


Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)

2008-10-10 Thread Flap Flap
Yeah thanks ;)

Ok so I made the test and result are the same.
I think I will keep all the interval to produce an average...

Thanks


Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)

2008-10-10 Thread Howard Fore
No, I don't know one way or another, just suggesting it as a test.

On Fri, Oct 10, 2008 at 10:21 AM, Flap Flap <[EMAIL PROTECTED]>wrote:

>  You think that KeyEvent can be more accurate than click ?
>
> I will give a try.
>



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


Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Richard Rodseth
And sometimes you even have interfaces with no methods. In this case it's a
"marker" (often a parent of other interfaces) and when used in method
signatures you get type checking.

On Fri, Oct 10, 2008 at 6:26 AM, Michael Schmalle
<[EMAIL PROTECTED]>wrote:

>   Hi,
> It's ICommand.
>
> The reason is you can stack interfaces on top of each other allowing more
> decoupling to the implementing concrete classes.
>
> This interface is obvious. Any class that implements it needs eval() and
> only eval. It's like a singleton declaration of implementation.
>
> If you jammed this evel() method into IUIComponent, maybe all components
> don't need eval. Make sense?
>
> Also another good example of this type of interface in the flex framework
> is IDataRenderer, it's only declared property is 'data'.
>
> Mike
>
> On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]> wrote:
>
>>   I was wondering if someone can explain why you would need an interface
>> so short?
>>
>> INTERFACE:
>>
>> package my.package.area
>> {
>> /**
>> * Interface for methods that evaluate an object and return a result.
>> */
>> public interface IEval
>> {
>> /**
>> * Evaluates the input object
>> * @o the object to evaluate
>> * @return the computed result value
>> */
>> function eval(o:Object=null):*;
>>
>> } // end of interface IEval
>> }
>>
>> USAGE OF INTERFACE:
>>
>> if (value is IEval) { value = IEval(value).eval(o) };
>>
>> Cairngorm has a short interface like this as well, though I cannot
>> remember what it is. In Cairngorm they say its for naming or to make
>> the code easier to understand? I am just not sure why you would do
>> this? Help me see the light!
>>
>> TIA
>>
>>
>
>
> --
> Teoti Graphix, LLC
> http://www.teotigraphix.com
>
> Teoti Graphix Blog
> http://www.blog.teotigraphix.com
>
> You can find more by solving the problem then by 'asking the question'.
>  
>


Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)

2008-10-10 Thread Flap Flap
Thanks Hodward,

You think that KeyEvent can be more accurate than click ?

I will give a try.

Thanks
Benoit


AW: [flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Christoph Leva
Hi,
 
do you mean to create the PopUp as non modal and after that do
mx.core.Application.application.enabled = false?
You are right, it doesn't affect the popup, but disables all other
components. 
 
Think I confused you, here is an example: Lets say I have two Buttons (Btn A
and B) on stage. Each Button creates a PopUp. When I click on Button A, the
Pop Up appears, Button B will be disabled but Button A stays enabled and
accepts user interaction.
 
I want to use the PopUpManager for that and set the third parameter of
"PopUpManager.createPopUp" to true (modal). Anybody has done something like
that?
 
Christoph

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von valdhor
Gesendet: Freitag, 10. Oktober 2008 15:47
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: modal PopUp with one component, that should accept
user interaction



Have you tried mx.core.Application.application.enabled = false?

I'm fairly sure this does not affect popups.

--- In [EMAIL PROTECTED]  ups.com,
"Christoph Leva"
<[EMAIL PROTECTED]> wrote:
>
> Hi Darrell,
> 
> thanks for the answer. I know that you use the third parameter to
make it
> modal. What I want is, that the component, from where I create the popUp
> stays enabled. All the other components on stage should be disabled
(like
> setting the third parameter to "true").
> 
> I am looking for an easy way to solve it with the PopUpManager.
> 
> Christoph
> 
> _ 
> 
> Von: [EMAIL PROTECTED]  ups.com
[mailto:[EMAIL PROTECTED]  ups.com]
Im
> Auftrag von Darrell Loverin
> Gesendet: Freitag, 10. Oktober 2008 05:11
> An: [EMAIL PROTECTED]  ups.com
> Betreff: [flexcoders] Re: modal PopUp with one component, that
should accept
> user interaction
> 
> 
> 
> I may be misunderstanding your question but the third parameter of 
> the PopUpManager.addPopUp() fucntion is a Boolean that controls 
> whether the popup is modal or non-modal.
> 
> -Darrell
> 
> --- In [EMAIL PROTECTED] 
ups.com,
> "Christoph Leva" 
>  wrote:
> >
> > Hi all,
> > 
> > I use the popUpManager to show a TitleWindow. I want it modal, but 
> exlude
> > the component from where I create the popUp. The result should be, 
> that this
> > one component and the titleWindow can be clicked on or interacted 
> with and
> > all other components should not react to user interaction.
> > 
> > Does anybody have an idea how to do it with the PopUpManager?
> > 
> > Cheers, Christoph
> >
>



 


RE: [flexcoders] Re: Flex, Coldfusion, Air

2008-10-10 Thread Battershall, Jeff
Why would it 'fail'? - I'm not getting that. Like I said, it is
basically a one-time hit, because the swf is going to be cached on the
user's computer. It is certainly no more difficult than building and
distributing an AIR app.  Your use case for AIR should be based, IMO, on
AIR's particular capabilities. Don't forget that your AIR app will
probably require updating, which will result in more downloads for your
users.  Don't get me wrong, AIR is great and I'm using it for certain
projects but don't get the idea that using it is going to completely
solve your bandwidth problem. 

You can also substantially reduce the download time for a new version of
your Flex app by using Runtime Shared Libraries. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stinasius
Sent: Friday, October 10, 2008 9:49 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex, Coldfusion, Air


yes but on a broadband 64kbps line shared by about 20 pcs, a flex app
might fail or take a long time to download.




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





Re: [flexcoders] Calculate a BPM Song by calculating interval between two clicks (TAP Button)

2008-10-10 Thread Howard Fore
I'd suggest trying a function that reads the bom off a keypress, space bar
maybe, and see if the variation is as great. If so I'd say that it's a
general flash player thing.

On Fri, Oct 10, 2008 at 8:24 AM, Flap Flap <[EMAIL PROTECTED]>wrote:

>  Hi there,
>
> I'm actually taking some personnal time to work on a little project that
> unit two of my main occupations :
>
> Flex developpement and Mashup producing.
>
> In this AIR application I'll need a TAP Button.
> A TAP Button is a button that is clicking on rhytm to help find the BPM
> (Beats Per Minutes) of a song.
>
> The function seems simple :
>
> private function setTappedBPM( e : MouseEvent ) : void
> {
> var timer : Number = getTimer();
> if( _nLastTimerForTappedBtn == 0 )
> {
> _nLastTimerForTappedBtn = timer;
> }
> else
> {
> var ms : uint = timer - _nLastTimerForTappedBtn;
> var tappedBPM : uint = 600 / ms;
> _nTappedBPM = tappedBPM / 100;
> _nLastTimerForTappedBtn = timer;
> mainUI.bpmChoose.btnTap.label = "Tap (" + _nTappedBPM +
> ")";
> }
>
> }
>
> Hi just keep the timer (from getTime) of the last click and then calculate
> the gap between the new and the old, it give me the number of ms between two
> click.
> I just have to make some basic math to have the BPM.
>
> But, by testing I see that the precision is very bad. I try to test it one
> very regular song and by clicking as regular as I can but the tempo
> calculated is very floating (about 10 BPM of gap)...
>
> I have make a mistake or it is just a flash player limitation ?
>
> --
> Benoît Milgram / Flapflap
> http://www.kilooctet.net
>
> I'm also a music mashup / bootlegs producer :
> http://www.djgaston.net
>  
>



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


[flexcoders] Re: Flex, Coldfusion, Air

2008-10-10 Thread stinasius
yes but on a broadband 64kbps line shared by about 20 pcs, a flex app
might fail or take a long time to download.



[flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread valdhor
Have you tried mx.core.Application.application.enabled = false?

I'm fairly sure this does not affect popups.


--- In flexcoders@yahoogroups.com, "Christoph Leva"
<[EMAIL PROTECTED]> wrote:
>
> Hi Darrell,
>  
> thanks for the answer. I know that you use the third parameter to
make it
> modal. What I want is, that the component, from where I create the popUp
> stays enabled. All the other components on stage should be disabled
(like
> setting the third parameter to "true").
>  
> I am looking for an easy way to solve it with the PopUpManager.
>  
> Christoph
> 
>   _  
> 
> Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
> Auftrag von Darrell Loverin
> Gesendet: Freitag, 10. Oktober 2008 05:11
> An: flexcoders@yahoogroups.com
> Betreff: [flexcoders] Re: modal PopUp with one component, that
should accept
> user interaction
> 
> 
> 
> I may be misunderstanding your question but the third parameter of 
> the PopUpManager.addPopUp() fucntion is a Boolean that controls 
> whether the popup is modal or non-modal.
> 
> -Darrell
> 
> --- In [EMAIL PROTECTED] 
ups.com,
> "Christoph Leva" 
>  wrote:
> >
> > Hi all,
> > 
> > I use the popUpManager to show a TitleWindow. I want it modal, but 
> exlude
> > the component from where I create the popUp. The result should be, 
> that this
> > one component and the titleWindow can be clicked on or interacted 
> with and
> > all other components should not react to user interaction.
> > 
> > Does anybody have an idea how to do it with the PopUpManager?
> > 
> > Cheers, Christoph
> >
>




[flexcoders] Re: Flex 3 Layout of long form

2008-10-10 Thread valdhor
In answer to your questions:

1.  No. These are only used to make alignment easier. By adding
TextInput, TextArea etc to a formItem, Flex makes everything line up
nicely for you. If you just want to put a TextInput somewhere on a
page, you can.

2.  Nope - see 1 above.

3.  Just put a Form and FormItem tags in each accordion item (Or you
could use a TabNavigator and move between tabs as each section is
finished). When the user hits the submit button, go and grab all the
data they entered. It doesn't matter if the data is in one form or a
100 forms - You just pick up the data from the id of each item.

4.  Use a value object (Sometimes called a data transfer object). Put
all the data values you grabbed into fields in the object and send it
to PHP. Use either AMFPHP (Or WebORB which I recommend).

Finally, use whatever language you know. PHP works just as well as any
other.


--- In flexcoders@yahoogroups.com, "brucewhealton" <[EMAIL PROTECTED]> wrote:
>
> Hello all,
> I could use some advice on a Flex design. I am needing to
> create a form, a rather lengthy one, using Flex. I was thinking of
> starting with a Flex Component, in particular a Custom component based
> on the Form component.
> In particular, it will have this:
> http://www.adobe.com/2006/mxml";>
> 
> 
> 
> 
> 
> 
> 
> 
> So, I'm wondering about some other ways of wrapping and presenting all
> of this.
> 1) The form tag is required, is it not? And the FormItem tag? I know
> there are other layout options but there must be these tags, or am I
> mistaken?
> 2) Assuming that is true, then all the fields, labels, form elements
> and the submit button must be inside the same Form tag, correct?
> 3) If the form is long, how would I use either Accordion features, or
> view states or something else to allow easier presentation of
> different segments of the form? In other words, I don't want this
> going on for 20+ items, including TextAreas, as that could be long.
> 4) Most importantly, I have a php application that takes the form data
> and prepares it to be emailed and then emails the user responses to 2
> email addresses specified in the code. How do I make the data and
> make it available to the php form processor? Does the id correspond
> to the name attribute in an html form?
> I think I use HTTPService to do this somehow but I could use
> help, please.
> I do know how to Validate the data using Flex, I just need to be
> able to take that form input fields and checkboxes, etc. and send it
> to the php application for it to be processed and emailed.
> Lastly, would ColdFusion work better with this than PHP?
> Thanks,
> Bruce
>




[flexcoders] Re: Best way to deliver data via Rails

2008-10-10 Thread valdhor
There is nothing inherently wrong with HTTPService.

I find using AMF (RemoteObject) that my data is more structured. It is
much quicker to debug problems of data going over the pipe with AMF.
Also, I find the data size to be about one tenth of the size of XML
(eg. One of my data calls was returning 82K of XML data; Changing to
AMF yielded 8.47K of data. All this according to Charles).


--- In flexcoders@yahoogroups.com, "gers32" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> I deliver data to my Flex front-end via RoR HttpService in XML form. I
> realize XML is not the most efficient, and considered using BlazeDS,
> but because I haven't yet encountered any performance problems, I'm
> sticking to XML to avoid any proprietary format, should I ever need to
> switch server technologies.
> 
> I'm curious to find out what's wrong with HttpService, before I use it
> all over the place... Thanks,
> 
> Chris.
>




Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Michael Schmalle
Hi,
It's ICommand.

The reason is you can stack interfaces on top of each other allowing more
decoupling to the implementing concrete classes.

This interface is obvious. Any class that implements it needs eval() and
only eval. It's like a singleton declaration of implementation.

If you jammed this evel() method into IUIComponent, maybe all components
don't need eval. Make sense?

Also another good example of this type of interface in the flex framework is
IDataRenderer, it's only declared property is 'data'.

Mike

On Fri, Oct 10, 2008 at 9:19 AM, flexaustin <[EMAIL PROTECTED]> wrote:

>   I was wondering if someone can explain why you would need an interface
> so short?
>
> INTERFACE:
>
> package my.package.area
> {
> /**
> * Interface for methods that evaluate an object and return a result.
> */
> public interface IEval
> {
> /**
> * Evaluates the input object
> * @o the object to evaluate
> * @return the computed result value
> */
> function eval(o:Object=null):*;
>
> } // end of interface IEval
> }
>
> USAGE OF INTERFACE:
>
> if (value is IEval) { value = IEval(value).eval(o) };
>
> Cairngorm has a short interface like this as well, though I cannot
> remember what it is. In Cairngorm they say its for naming or to make
> the code easier to understand? I am just not sure why you would do
> this? Help me see the light!
>
> TIA
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] Interfaces WHY?

2008-10-10 Thread Flex Gangsta
Afaik interfaces give certain method signatures that must appear  
identical in the class that implements it. This is good for having  
hood organized code and multiple classes with sinmilar functionality.  
You can also do other things like like type an object to an interface.


Sent from my iPhone

On Oct 10, 2008, at 6:19 AM, "flexaustin" <[EMAIL PROTECTED]> wrote:


I was wondering if someone can explain why you would need an interface
so short?

INTERFACE:

package my.package.area
{
/**
* Interface for methods that evaluate an object and return a result.
*/
public interface IEval
{
/**
* Evaluates the input object
* @o the object to evaluate
* @return the computed result value
*/
function eval(o:Object=null):*;

} // end of interface IEval
}

USAGE OF INTERFACE:

if (value is IEval) { value = IEval(value).eval(o) };

Cairngorm has a short interface like this as well, though I cannot
remember what it is. In Cairngorm they say its for naming or to make
the code easier to understand? I am just not sure why you would do
this? Help me see the light!

TIA




AW: [flexcoders] Re: modal PopUp with one component, that should accept user interaction

2008-10-10 Thread Christoph Leva
Hi Darrell,
 
thanks for the answer. I know that you use the third parameter to make it
modal. What I want is, that the component, from where I create the popUp
stays enabled. All the other components on stage should be disabled (like
setting the third parameter to "true").
 
I am looking for an easy way to solve it with the PopUpManager.
 
Christoph

  _  

Von: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Im
Auftrag von Darrell Loverin
Gesendet: Freitag, 10. Oktober 2008 05:11
An: flexcoders@yahoogroups.com
Betreff: [flexcoders] Re: modal PopUp with one component, that should accept
user interaction



I may be misunderstanding your question but the third parameter of 
the PopUpManager.addPopUp() fucntion is a Boolean that controls 
whether the popup is modal or non-modal.

-Darrell

--- In [EMAIL PROTECTED]  ups.com,
"Christoph Leva" 
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> 
> I use the popUpManager to show a TitleWindow. I want it modal, but 
exlude
> the component from where I create the popUp. The result should be, 
that this
> one component and the titleWindow can be clicked on or interacted 
with and
> all other components should not react to user interaction.
> 
> Does anybody have an idea how to do it with the PopUpManager?
> 
> Cheers, Christoph
>



 


Re: [flexcoders] Screen freezes when running code in result callback function of HTTPService

2008-10-10 Thread Michael Schmalle
Hi,
This is a single thread problem. The problem is you are parsing data that is
taking that single thread the Flash Player uses to do all of it's work.

The solution is to batch your xml parsing into a timer queue of sorts,
dispatch an event to the progress bar updating the batch total to completed.
Then your screen will not lock up either.

I have done this with quite a bit of things, batching definitely works. You
as the developer need to figure out how to abstract the parsing into chunks.

Mike

On Thu, Oct 9, 2008 at 5:30 PM, johnsonpaul1014
<[EMAIL PROTECTED]>wrote:

>   A project I am working on is using HTTPService to retrieve a large XML
> data set, parse it using e4x and display the data in charts. Since it
> is taking quite a bit of time to process the data, I decided to add a
> progress bar. The problem is the screen is not refreshing until all
> the data has been loaded and prepared for the charts. In fact, I
> tried using an indeterminate progress bar temporarily, and as soon as
> the result handler for HTTPService gets called, the animation on the
> bar stops until all the code executes and the charts are displayed.
> Please help.
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


[flexcoders] Interfaces WHY?

2008-10-10 Thread flexaustin
I was wondering if someone can explain why you would need an interface
so short? 

INTERFACE:

package my.package.area
{
/**
 * Interface for methods that evaluate an object and return a result.
 */
public interface IEval
{
/**
 * Evaluates the input object
 * @o the object to evaluate
 * @return the computed result value
 */
function eval(o:Object=null):*;

} // end of interface IEval
}

USAGE OF INTERFACE:

if (value is IEval) { value = IEval(value).eval(o) };

Cairngorm has a short interface like this as well, though I cannot
remember what it is. In Cairngorm they say its for naming or to make
the code easier to understand? I am just not sure why you would do
this? Help me see the light!

TIA



Re: [flexcoders] Flex Builder 4?

2008-10-10 Thread Michael Schmalle
Adobe loves releasing things at the end of summer into fall. I would guess
that.
Mike

2008/10/10 Battershall, Jeff <[EMAIL PROTECTED]>

>I believe I saw H2 2009 somewhere for Flex 4, which I'm assuming means
> second-half of 2009.
>
>  -Original Message-
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *Dimitrios Gianninas
> *Sent:* Friday, October 10, 2008 9:09 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* RE: [flexcoders] Flex Builder 4?
>
> No one from Adobe has said anything yet, but one must assume it will be out
> at the same time as Flex 4, which is most likely sometime in 2009.
>
> *Dimitrios Gianninas*
> *RIA Developer Team Lead*
> *Optimal Payments Inc.*
>
>
>  --
> *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
> Behalf Of *oneworld95
> *Sent:* Friday, October 10, 2008 8:40 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Flex Builder 4?
>
>  How far away is Flex Builder 4 from release? I've downloaded the Gumbo
> SDK files from the Adobe OpenSource site but wondered when the next
> version of Flex Builder will be available. Thanks.
>
>   *AVIS IMPORTANT*
>
> *WARNING*
>
> Ce message électronique et ses pièces jointes peuvent contenir des
> renseignements confidentiels, exclusifs ou légalement privilégiés destinés
> au seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
> privilège ou à aucun autre droit si le présent message a été transmis
> involontairement ou s'il est retransmis sans son autorisation. Si vous
> n'êtes pas le destinataire visé du présent message ou si vous l'avez reçu
> par erreur, veuillez cesser immédiatement de le lire et le supprimer, ainsi
> que toutes ses pièces jointes, de votre système. La lecture, la
> distribution, la copie ou tout autre usage du présent message ou de ses
> pièces jointes par des personnes autres que le destinataire visé ne sont pas
> autorisés et pourraient être illégaux. Si vous avez reçu ce courrier
> électronique par erreur, veuillez en aviser l'expéditeur.
>
> This electronic message and its attachments may contain confidential,
> proprietary or legally privileged information, which is solely for the use
> of the intended recipient. No privilege or other rights are waived by any
> unintended transmission or unauthorized retransmission of this message. If
> you are not the intended recipient of this message, or if you have received
> it in error, you should immediately stop reading this message and delete it
> and all attachments from your system. The reading, distribution, copying or
> other use of this message or its attachments by unintended recipients is
> unauthorized and may be unlawful. If you have received this e-mail in error,
> please notify the sender.
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] Changing Tree Node Colour on MouseOver

2008-10-10 Thread Howard Fore
Off the top of my head (i.e. without having actually done it) I'd use the
events (maybe focusIn, focusout) to fire a function that changed the color
or style on the text in the event's currentTarget.

On Fri, Oct 10, 2008 at 7:22 AM, selvant_2005 <[EMAIL PROTECTED]>wrote:

>   If i move the Mose over the Parent Tree Node then i want  Yellow
> Coloue ,for SubNodes i want any other Colour (other than Yellow)
> If anyone Knows ,Please Tell Me
>



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


Re: [flexcoders] Re: set height of a Container back to default? (resize to content)

2008-10-10 Thread Michael Schmalle
Hi,
This is not right... throwing an error.

Can you post the error?

The hack your co-worker gave you is definitely unnecessary.

Can you post some code that will reproduce what you are trying to achieve?

Setting the container's height = NaN will force the container to ditch the
last height metric. When this happens the container invalidates it's size,
thus calling measure(), remeasuring child preferred widths and heights.

On the next validateDisplayList() call the layout manager will then set your
container to it's measuredHeight since there is no explicit height set.

I need to know the error you are getting.

Mike




On Thu, Oct 9, 2008 at 10:58 PM, Ryan <[EMAIL PROTECTED]> wrote:

>   thanks, but I tried "NaN" and that doesn't work- throws an error.
>
> One hacky solution my co-worker came up with is to use a spacer inside
> the container and set the spacer's height when necessary.
>
> there should really be a way to remove the height property or set it
> back to "auto." Anyone? Adobe? Adobe?
>
>
> --- In flexcoders@yahoogroups.com , "Amy"
> <[EMAIL PROTECTED]> wrote:
> >
> > --- In flexcoders@yahoogroups.com , "Ryan"
>  wrote:
> > >
> > > I have the following quandary:
> > >
> > > I have a container which most of the time resizes to what it's
> > > holding. Fine.
> > >
> > > But sometimes I need it to be an explicit height- so i set the height-
> > > also fine.
> > >
> > > Then I need to set it back to resize to it's content. Problem. Setting
> > > height to null doesn't work. How can i take away the height property
> > > altogether?
> >
> > Just a guess, but try setting it to NaN.
> >
>
>  
>



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

Teoti Graphix Blog
http://www.blog.teotigraphix.com

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


Re: [flexcoders] Mouse Move Issue in Tree Control

2008-10-10 Thread Flex Gangsta

You can change it by creating a CSS file for the tree control.

Sent from my iPhone

On Oct 10, 2008, at 4:47 AM, "selvant_2005" <[EMAIL PROTECTED]>  
wrote:



Hi,
When i Move the Mouse Over the Tree Nodes by Default that Blue Colour
is Coming ,I dont Want that Colour,
If anybody Know How to change the clour

Plese Tell Me

Regards ,

T.Selvan




RE: [flexcoders] Flex Builder 4?

2008-10-10 Thread Battershall, Jeff
I believe I saw H2 2009 somewhere for Flex 4, which I'm assuming means 
second-half of 2009. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
Dimitrios Gianninas
Sent: Friday, October 10, 2008 9:09 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Flex Builder 4?


No one from Adobe has said anything yet, but one must assume it will be 
out at the same time as Flex 4, which is most likely sometime in 2009.
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
oneworld95
Sent: Friday, October 10, 2008 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder 4?



How far away is Flex Builder 4 from release? I've downloaded the Gumbo
SDK files from the Adobe OpenSource site but wondered when the next
version of Flex Builder will be available. Thanks.



AVIS IMPORTANT

WARNING

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

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

 



[flexcoders] Re: localize drag

2008-10-10 Thread flexaustin
Yeah I am currently using stopProp, but then that effects everything
else like text fields, buttons, etc... which then cuts down the
draggable area of the overall component to just a few places where
there isn't a child component. 

I guess I will have to create some handle on the outside of the main
component to use for dragging until I get the time to create some
custom events.


--- In flexcoders@yahoogroups.com, "Josh McDonald" <[EMAIL PROTECTED]> wrote:
>
> Have you tried cancelling the event from the listener for the inner
> component?
> 
> -Josh
> 
> On Wed, Oct 8, 2008 at 1:33 AM, flexaustin <[EMAIL PROTECTED]> wrote:
> 
> > Is it possible to localize drag? I have a component a Panel that is
> > draggable. Inside that component I have an accordian and inside the
> > accordian I have 3 canvas's each of which has a datagrid on it.
> >
> > The issue is that when I move down to drag a column in one of the
> > datagrids it drags my panel and ignores my column drag. Or actually it
> > tries doing both at the same time causing the column to blink do weird
> > things. Anyway, is there a way to localize the drag? Or how can I
> > determine if the person is doing a column drag versus trying to drag
> > the entire panel around?
> >
> > Do I need to do something contrived get mouse position make a point
> > (new point()) then determine if the point is over any of the Panels
> > children (so some sort of find childbyid stuff) if so then don't drag
> > entire panel? Or is there a setting?\
> >
> > TIA
> >
> >
> > 
> >
> > --
> > Flexcoders Mailing List
> > FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> > Alternative FAQ location:
> >
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> > Search Archives:
> > http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
> > Links
> >
> >
> >
> >
> 
> 
> -- 
> "Therefore, send not to know For whom the bell tolls. It tolls for
thee."
> 
> http://flex.joshmcdonald.info/
> 
> :: Josh 'G-Funk' McDonald
> :: 0437 221 380 :: [EMAIL PROTECTED]
>




RE: [flexcoders] Re: Flex, Coldfusion, Air

2008-10-10 Thread Battershall, Jeff
Of course, but once a flex app is downloaded to the client, it will not
need to be downloaded again until some event (like clearing a browser
cache, etc.) forces it to be downloaded again.  Flex apps don't need
"good bandwidth to open", in fact, after initial download, they should
perform the same or better than a "normal" html app. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of stinasius
Sent: Friday, October 10, 2008 9:03 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Flex, Coldfusion, Air


so if the application is ported(if i may say) to AIR it reduces the time
it takes for the application to open if it where just a flex app(as in
flex apps need good bandwidth to open so if its ported to AIR that issue
is solved right?)




--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location:
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-
1e62079f6847
Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups
Links





RE: [flexcoders] Flex Builder 4?

2008-10-10 Thread Dimitrios Gianninas
No one from Adobe has said anything yet, but one must assume it will be out at 
the same time as Flex 4, which is most likely sometime in 2009.
 
Dimitrios Gianninas
RIA Developer Team Lead
Optimal Payments Inc.
 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
oneworld95
Sent: Friday, October 10, 2008 8:40 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Builder 4?



How far away is Flex Builder 4 from release? I've downloaded the Gumbo
SDK files from the Adobe OpenSource site but wondered when the next
version of Flex Builder will be available. Thanks.



 

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

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



[flexcoders] Re: Flex, Coldfusion, Air

2008-10-10 Thread stinasius
so if the application is ported(if i may say) to AIR it reduces the
time it takes for the application to open if it where just a flex
app(as in flex apps need good bandwidth to open so if its ported to
AIR that issue is solved right?)



Re: [flexcoders] Re: Flex 3 Layout of long form

2008-10-10 Thread Howard Fore
That looks pretty cool!

On Fri, Oct 10, 2008 at 8:55 AM, oneworld95 <[EMAIL PROTECTED]> wrote:

> You might find the CForm component handy for complex Form layouts:
> http://flexed.wordpress.com/2008/01/02/component-cform-v10/
>



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


[flexcoders] dynamic bindable objects and extending Proxy

2008-10-10 Thread Justin J. Moses
Who has experience extending Proxy?

I have successfully created dynamic bindable objects by both extending
Proxy and implementing EventDispatcher - this solution is available
around town, and I'm sure you've seen it. 

However, if I use this dynamic object as a row in a dataProvider in a
Datagrid say, then the grid will call the object's toString() property.

My question is, how do I successfully implement Proxy's
"callProperty()" method? 

My solution below was simply to return an toString() iteration of all
the properties, but I don't think this is the best way to do it. 


override flash_proxy function callProperty(name:*, ... rest):* 
{
if (name.localName == "toString")
{
var str:String = "";

for each (var field:String in this)
{
if (field != null)
  str += field.toString();
}

return str;
}   
}

Anyone know the best practice in this case?

thanks,
justin



[flexcoders] AMFPHP tutorial

2008-10-10 Thread [EMAIL PROTECTED]
You can search on Google.

http://www.sephiroth.it/tutorials.php
http://www.flash-db.com/Tutorials/hello/flashamfphp.php

--- In flexcoders@yahoogroups.com, "hworke" <[EMAIL PROTECTED]> wrote:
>
> 
> 
>Hello all,
> 
>where can I find some good AMHPHP tutorials.
>I will prefer some video tutorials. I tried
>on tv.adobe.com. But they do not have any.
>   
>Best regards..
>




  1   2   >