Re: [flexcoders] Collapsible Panel

2010-02-20 Thread Jose adriano Alves
Do you have a sample?

I would like a lot...
I have experience but in Delphi, but I going step by step in Flex...

Em 19 de fevereiro de 2010 22:13, Jake Churchill reyna...@gmail.comescreveu:



 just make your layout th en look at animateProperty.  You can build one of
 those from scratch in about 10 minutes.

 2010/2/19 Jose adriano Alves alves.jadri...@gmail.com



 Hello,

 I need a collpsible panel, like ExtJS Panel [1].

 It´s been hard to find one... I am a newbee yet in Flex and I use Adobe
 Flash Builder 4.


 [1] http://www.extjs.com/deploy/dev/examples/layout/complex.html

 Take a look at West and East Side  Panels.

 --
 

 Att.
 José Adriano Alves
 Analista de Sistemas - Móveis Gazin.
 Cel..:  +55 44 8802 3994
 Fone: + 55 44 3663 8000 - 2319
 Mail: alves.jadri...@gazin.com.br
 MSN: jose.adri...@gazin.com.br



 Este e-mail, seu conteúdo e seus anexos estão sujeitos à privilégio de
 comunicação podendo este documento incluir informação confidencial e de
 propriedade restrita da GAZIN e apenas pode ser lido por aqueles a qual o
 mesmo tenha sido endereçado. Se você recebeu essa mensagem de e-mail
 indevidamente, por favor avise-nos imediatamente. Quaisquer dados, opiniões
 ou informações expressadas neste e-mail pertencem ao seu remetente e não
 necessariamente coincidem com aquelas da GAZIN, são de exclusiva
 responsabilidade do signatário. Este documento não pode ser reproduzido,
 copiado, distribuído, publicado ou modificado por terceiros, sem a prévia
 autorização por escrito da GAZIN.


 Antes de imprimir pense em seu compromisso com o Meio Ambiente


  




-- 


Att.
José Adriano Alves
Analista de Sistemas - Móveis Gazin.
Cel..:  +55 44 8802 3994
Fone: + 55 44 3663 8000 - 2319
Mail: alves.jadri...@gazin.com.br
MSN: jose.adri...@gazin.com.br



Este e-mail, seu conteúdo e seus anexos estão sujeitos à privilégio de
comunicação podendo este documento incluir informação confidencial e de
propriedade restrita da GAZIN e apenas pode ser lido por aqueles a qual o
mesmo tenha sido endereçado. Se você recebeu essa mensagem de e-mail
indevidamente, por favor avise-nos imediatamente. Quaisquer dados, opiniões
ou informações expressadas neste e-mail pertencem ao seu remetente e não
necessariamente coincidem com aquelas da GAZIN, são de exclusiva
responsabilidade do signatário. Este documento não pode ser reproduzido,
copiado, distribuído, publicado ou modificado por terceiros, sem a prévia
autorização por escrito da GAZIN.


Antes de imprimir pense em seu compromisso com o Meio Ambiente


Re: [flexcoders] Flex Builder build and search functions die on Vista

2010-02-20 Thread Lee Jenkins
Tom McNeer wrote:
  
 
 Very strange.
 
 Vista, 32-bit. Flex Builder 3 plug-in. Eclipse 3.4 Ganymede. Flex SDKs 
 3.4 and 3.5.
 
 A couple of days ago, I noticed that Flex Builder was not re-building 
 projects before running them. I attempted to compile using Project  
 Build Project, and nothing happened. Build Automatically also had no effect.
 
 The only way I could force a compile was by choosing Clean - each time I 
 needed to rebuild.
 
 Then, yesterday, the Eclipse Search  File function seemed to stop 
 working when used while the Flex perspectives were active. I got 0 
 results on many phrases that I know to exist. These bad results 
 persisted, whether the search was in the enclosing project or the entire 
 workspace. Neither regular expression nor case sensitive were 
 checked, but I made sure the case matched, anyway.
 
 So - last night, I uninstalled Flex Builder, installed a new copy of 
 Eclipse, then re-installed Flex Builder within it. This morning, the 
 first time I chose Build Project, it worked. But now it has stopped. I 
 can once again only force a compile with Clean. And the search is dead 
 again, too.
 


I was having the build problem that you're describing.  In my case, I had one 
project with a separate library project linked to it and it seems that flex 
builder gets confused with that kind of thing, at least in my circumstance.  I 
have had a couple of other projects exhibit the same behavior and as soon as I 
removed the linked projects and included them in the main project (instead of 
linking them) I have not had to manually perform a clean in sometime in order 
to 
get FB to see the new source changes for building.

--
Warm Regards,

Lee





[flexcoders] Agent Platform for Actionscript

2010-02-20 Thread Everson Alves
We are interested in developing an experimental project, an Agent Platform
for Actionscript, something similar to JADE. What you guys think?

-- 
Jhonny Everson


Re: [flexcoders] HTTPService return times Air vs Flash (Solved - Kinda)

2010-02-20 Thread Lee Jenkins
Lee Jenkins wrote:
  
 
 
 Web based flex applications seem to take magnitudes longer to return a 
 result
 than do Air based application. I've tried with HTTPService and URLLoader
 components and it is the same.
 
 I've created one small air application and one small web based flex app
 identical. Air app is almost instantaneous while the web page based app
 (Firefox) takes noticeably longer.
 
 My guess is that browser mechanics (security, etc) is the culprit.
 

It always turns out to be the small things.  Turns out that using localhost in 
the url of HTTPService (or URLLoader) was the problem with Firefox.  Replacing 
localhost with my development computer's ip address removes the delay.

Judging from the status bar messages of Firefox when making a call using 
localhost, Firefox is resolving localhost on every request, resulting in a 
average (subjective) delay of 250 to 500ms before the request hits the server 
(which I wrote and can debug/break point).  Changing the URL fed to HTTPService 
to using the IP address resolves the problem.

--
Warm Regards,

Lee



RE: [flexcoders] Re: Still getting Security Sandbox violations...

2010-02-20 Thread Tracy Spratt
Also be aware that there are a couple additional lines required in the
crossdomain file in some circumstances, especially for webservce:

site-control permitted-cross-domain-policies=master-only/

allow-http-request-headers-from domain=* headers=*/

 

I'm with you on despising the constraints of security.  But resistance is
futile.

 

Tracy Spratt,

Lariat Services, development services available

  _  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of Laurence
Sent: Saturday, February 20, 2010 12:28 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Still getting Security Sandbox violations...

 

  

Ok -- I figured out #2 below... flex.messaging.endpoints.SecureAMFEndpoint
in the services-config.xml file only belongs there in ColdFusion 8. For
ColdFusion 9 it's different:
coldfusion.flash.messaging.SecureCFAMFEndPoint (Warren's message earlier
said my endpoints were funky -- I'm guessing he's using CF8.)

So I changed it, and now I'm not getting the 404 error.

But I still want to know about the secure=false tag. Will setting that
prevent my channel from being secure? Yet setting it seems to be the only
way I can access my data, which is very stupid if that's going to un-secure
my channel. I mean, what's the point?

Thanks,
L.

--- In flexcod...@yahoogro mailto:flexcoders%40yahoogroups.com ups.com,
Laurence lmacne...@... wrote:
 2) If I go ahead and set secure=false and leave the domain=*, instead
of getting the Security Sandbox violation, I'm getting a
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404:
url: 'https://mydomain. https://mydomain.com/flex2gateway/secureamf
com/flex2gateway/secureamf' So HTTP 404, that's file-not-found... What file
is it not finding?





[flexcoders] Re: How transmiting a string to variable in contexmenu

2010-02-20 Thread jaywood58
Your posting is unclear. What is it that you want to copy to searchString? Your 
snippet will set searchString to [object ContextMenu]. Is that really what 
you want?

Also, ContextMenu already has a clone() method, so I don't get why you are 
declaring one of your own.  

--- In flexcoders@yahoogroups.com, btc132 btc...@... wrote:

 hello all
 i want to transmit a string to variable by when i highlight a string 
 contexmenu and click right mouse to choose search function which is the 
 same copy function. i done in the following.
 
 public function clone():ContextMenu;
 private function search(evt:ContextMenuEvent):void
 {
 var searchString:String;;
 
 searchString = clone();
 }
 but it didn't. can you guide for me, please.
 Thanks!





[flexcoders] Scalable drawings in a Canvas

2010-02-20 Thread Christophe
Hello, 

I would like to draw some graphics (with Sprite) inside a Canvas for replacing 
a background image. But, I would like that this drawing is scalable. 

How to develop that ? 

Thank you,
Christophe 



[flexcoders] Re: Modify context menu of TextArea

2010-02-20 Thread jaywood58
You can't alter the clipboard items (cut, copy, paste, etc.), but you can add 
your own custom items. If that's what you want to do, see the code example on 
Adobe livedocs for the ContexMenu class. 

--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 I'm pretty sure you can't alter the context menu for a TextArea unless you 
 set both editable=false and selectable=false which sort of defeats its utility
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of cesarerocchi
 Sent: Saturday, November 22, 2008 6:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Modify context menu of TextArea
 
 
 Hi,
 
 I am trying to modify the contextMenu which appears when I right-click a 
 TextArea.
 Can I do it? How?
 
 Thanks in advance,
 
 -c.





[flexcoders] Re: Modify context menu of TextArea

2010-02-20 Thread jaywood58
Here is a very simple example in MXML:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; layout=absolute 
contextMenu={cm}
  creationComplete=init()
  mx:TextArea id=myTA x=10 y=10 width=200 height=100/ 
  mx:Script
![CDATA[
import flash.events.ContextMenuEvent;
import flash.ui.ContextMenu;
import flash.ui.ContextMenuItem;
import mx.controls.Alert;

[Bindable] private var cm:ContextMenu;
private var labels:Array = [red,green,blue];

private function init():void {
  cm = new ContextMenu();  
  cm.addEventListener(ContextMenuEvent.MENU_SELECT,onMenuSelect);
}

private function onMenuSelect(event:ContextMenuEvent):void {
  cm.customItems = [];
  for each (var label:String in labels) {
var item:ContextMenuItem = new ContextMenuItem(label);
item.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, 
  onMenuItemSelect);
cm.customItems.push(item);
  }
}

private function onMenuItemSelect(event:ContextMenuEvent):void {
  var item:ContextMenuItem = 
   event.currentTarget as ContextMenuItem;
  Alert.show(item.caption);
}
]]
  /mx:Script
/mx:Application


--- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote:

 I'm pretty sure you can't alter the context menu for a TextArea unless you 
 set both editable=false and selectable=false which sort of defeats its utility
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
 Behalf Of cesarerocchi
 Sent: Saturday, November 22, 2008 6:30 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Modify context menu of TextArea
 
 
 Hi,
 
 I am trying to modify the contextMenu which appears when I right-click a 
 TextArea.
 Can I do it? How?
 
 Thanks in advance,
 
 -c.





[flexcoders] Array Collection

2010-02-20 Thread criptopus
I have an array collection from a HTTPService and I need to pass it over to a 
component that has use for one of the fields in the collection. I don't really 
want to pass the whole array collection over to the component but I need a list 
of user names from it to make sure the component dosn't try and duplicate any. 
I was wondering how I might split just the account name field off and pass the 
data on in an array?

- Stephen



[flexcoders] Chromeless AIR app in Flash Builder 4?

2010-02-20 Thread tex_learning_flex
Does anyone know how to create a chromeless AIR app in Flash Builder 4?

thanks



[flexcoders] Re: Array Collection

2010-02-20 Thread criptopus
Something like ...

for each (var member in membData)
  mEdit.membAccounts.push(member.usraccount);

not sure what to type member though?

- Stephen



Re: [flexcoders] Re: Still getting Security Sandbox violations...

2010-02-20 Thread Warren
Yes, I'm using CF8.  I didn't know the endpoints changed in.  When you get all 
this to work, could you post it.  Soon I will be transitioning to CF9 and would 
like the benefit of your lessons learned.


  - Original Message - 
  From: Laurence 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, February 19, 2010 11:27 PM
  Subject: [flexcoders] Re: Still getting Security Sandbox violations...



  Ok -- I figured out #2 below... flex.messaging.endpoints.SecureAMFEndpoint 
in the services-config.xml file only belongs there in ColdFusion 8. For 
ColdFusion 9 it's different: coldfusion.flash.messaging.SecureCFAMFEndPoint 
(Warren's message earlier said my endpoints were funky -- I'm guessing he's 
using CF8.)

  So I changed it, and now I'm not getting the 404 error.

  But I still want to know about the secure=false tag. Will setting that 
prevent my channel from being secure? Yet setting it seems to be the only way I 
can access my data, which is very stupid if that's going to un-secure my 
channel. I mean, what's the point?

  Thanks,
  L.

  --- In flexcoders@yahoogroups.com, Laurence lmacne...@... wrote:
   2) If I go ahead and set secure=false and leave the domain=*, instead 
of getting the Security Sandbox violation, I'm getting a 
Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: url: 
'https://mydomain.com/flex2gateway/secureamf' So HTTP 404, that's 
file-not-found... What file is it not finding?



  

Re: [flexcoders] Re: .CFC cannot be accessed remotely...

2010-02-20 Thread Jochem van Dieten
On Fri, Feb 19, 2010 at 12:11 PM, Laurence wrote:
 Very weird...  The access was set to public.  Don't know how that was 
 working on my old server -- I didn't change any code at all...  And it worked 
 fine on the old setup...

Your old server probably was not up to date on its security patches:
http://kb2.adobe.com/cps/403/kb403328.html

Did you install this months patch on your new server?

Jochem


-- 
Jochem van Dieten
http://jochem.vandieten.net/


Re: [flexcoders] FlexBuilder 3 and ColdFusion 9 Extensions...

2010-02-20 Thread Jochem van Dieten
On Fri, Feb 19, 2010 at 5:06 AM, Laurence wrote:
 Anyone know where I can download the ColdFusion 9 Extensions for  Eclipse?  I 
 can find only the CF8 Extensions...  I'd really like to install the CF9 
 Extensions, assuming they exist...

I believe they go by the name CFBuilder now:
http://labs.adobe.com/technologies/coldfusionbuilder/

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


[flexcoders] SQL Question

2010-02-20 Thread Wally Kolcz
I know this is out of the core topic, but I am banging my head on this 
simple issue..or probably is...

I am trying to write a SQL query (in ColdFusion) for my database (MySQL 
5) when I am looking for a passed in argument value in the column (which 
is set as a varchar).

I am passing in '0' for the ageGroup and 'kids' for the accountType I 
have 'kids'

My Query is:

Select CONCAT(roomDisplay, (National)) as roomDisplay,
 CONCAT(cfqueryparam value=#arguments.ageGroup#, 
-, roomDisplay, -, National) as roomID
 FROM chatrooms
 WHERE cfqueryparam value=#arguments.accountType# IN 
(accountType)
 AND cfqueryparam value=#arguments.ageGroup# 
cfsqltype=cf_sql_integer / IN (ageGroups)
 ORDER BY roomDisplay ASC

I have a record where 'ageGroups' is '0, 1, 2, 3, 4, 5, 6, 7, 8' and the 
'accountType' is 'kids, siblings, parents'

I keep getting 0 returns but I know both values exist in at least 1 record

What am I doing wrong?






[flexcoders] Reason for image list flickering

2010-02-20 Thread Aaron Hardy
Hey flexers,

When scrolling a list of images up and down there is some flickering that
goes on.  I know how to fix it, but I'd really like to know the underlying
reason it occurs.  Ely Greenfield (
http://www.quietlyscheming.com/blog/2007/01/23/some-thoughts-on-doubt-on-flex-as-the-best-option-orhow-i-made-my-flex-images-stop-dancing/)
says because of some of the details of the Flash Player’s networking layer,
there is always a delay of at least a frame between when you request an
image url, and when it is actually loaded.  What exactly are those
details?  Flash Player doesn't seem to be reloading the images from the
browser cache so it seems like that's not part of the equation.  I ask
mainly because I'm preparing a related presentation for 360|Flex and want to
provide a more in-depth explanation if necessary.  Thanks!

Aaron


[flexcoders] Re: SQL Question

2010-02-20 Thread Jeff
I strongly recommend that you modify your database structure so that you do not 
store comma separated lists in a field.  

Read up on many to many relationships and intersection/linking tables.

If I had to theorize on your problem; SQL is seeing your 'ageGroups' and 
'accountType' fields as a single value; not as a list.  

 You might be able to do some string processing magic, but it sounds like a 
nightmare. 

--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I know this is out of the core topic, but I am banging my head on this 
 simple issue..or probably is...
 
 I am trying to write a SQL query (in ColdFusion) for my database (MySQL 
 5) when I am looking for a passed in argument value in the column (which 
 is set as a varchar).
 
 I am passing in '0' for the ageGroup and 'kids' for the accountType I 
 have 'kids'
 
 My Query is:
 
 Select CONCAT(roomDisplay, (National)) as roomDisplay,
  CONCAT(cfqueryparam value=#arguments.ageGroup#, 
 -, roomDisplay, -, National) as roomID
  FROM chatrooms
  WHERE cfqueryparam value=#arguments.accountType# IN 
 (accountType)
  AND cfqueryparam value=#arguments.ageGroup# 
 cfsqltype=cf_sql_integer / IN (ageGroups)
  ORDER BY roomDisplay ASC
 
 I have a record where 'ageGroups' is '0, 1, 2, 3, 4, 5, 6, 7, 8' and the 
 'accountType' is 'kids, siblings, parents'
 
 I keep getting 0 returns but I know both values exist in at least 1 record
 
 What am I doing wrong?





Re: [flexcoders] Re: SQL Question

2010-02-20 Thread Wally Kolcz
Thanks Jeff. I already started that process. I was hoping that since I 
have so many relationships I would have to do that...just being lazy.


On 2/20/2010 8:00 PM, Jeff wrote:


I strongly recommend that you modify your database structure so that 
you do not store comma separated lists in a field.


Read up on many to many relationships and intersection/linking tables.

If I had to theorize on your problem; SQL is seeing your 'ageGroups' 
and 'accountType' fields as a single value; not as a list.


You might be able to do some string processing magic, but it sounds 
like a nightmare.


--- In flexcoders@yahoogroups.com 
mailto:flexcoders%40yahoogroups.com, Wally Kolcz wko...@... wrote:


 I know this is out of the core topic, but I am banging my head on this
 simple issue..or probably is...

 I am trying to write a SQL query (in ColdFusion) for my database (MySQL
 5) when I am looking for a passed in argument value in the column 
(which

 is set as a varchar).

 I am passing in '0' for the ageGroup and 'kids' for the accountType I
 have 'kids'

 My Query is:

 Select CONCAT(roomDisplay, (National)) as roomDisplay,
 CONCAT(cfqueryparam value=#arguments.ageGroup#,
 -, roomDisplay, -, National) as roomID
 FROM chatrooms
 WHERE cfqueryparam value=#arguments.accountType# IN
 (accountType)
 AND cfqueryparam value=#arguments.ageGroup#
 cfsqltype=cf_sql_integer / IN (ageGroups)
 ORDER BY roomDisplay ASC

 I have a record where 'ageGroups' is '0, 1, 2, 3, 4, 5, 6, 7, 8' and 
the

 'accountType' is 'kids, siblings, parents'

 I keep getting 0 returns but I know both values exist in at least 1 
record


 What am I doing wrong?







[flexcoders] How to get a value

2010-02-20 Thread Wally Kolcz
I have an instance of a Class (Page) which has a textarea on it which is 
editable. I added an eventlistener to the TextArea for 
FocusEvent.FOCUS_OUT. When the FocusEvent (e) gets to the hander, I can 
use e.currentTarget to get the value of the TextArea, but I need a value 
in a variable in the same instance of the Page Class (journalID). I have 
been looking through the debugger but I cannot figure out how to get 
that value.

Long story short I need the variable journalID on the same Class that 
contains the TextArea.

Thanks.



[flexcoders] Re: .CFC cannot be accessed remotely...

2010-02-20 Thread Laurence
I'm guessing you're right.  I was running CF 8.01 (not ever patched, to my 
knowledge) on the old server, and CF9 on the new one.  So that explains the 
lack of enforcement of public vs. remote on the old server.

Where do I go to keep up with the patches for CF9?  Is there a single page 
somewhere that lists all the patches that have been released for CF9?  I'd like 
to do a better job of keeping this server up-to-date.

Thanks,
L.


--- In flexcoders@yahoogroups.com, Jochem van Dieten joch...@... wrote:

 On Fri, Feb 19, 2010 at 12:11 PM, Laurence wrote:
  Very weird...  The access was set to public.  Don't know how that was 
  working on my old server -- I didn't change any code at all...  And it 
  worked fine on the old setup...
 
 Your old server probably was not up to date on its security patches:
 http://kb2.adobe.com/cps/403/kb403328.html
 
 Did you install this months patch on your new server?
 
 Jochem
 
 
 -- 
 Jochem van Dieten
 http://jochem.vandieten.net/





[flexcoders] Re: SQL Question

2010-02-20 Thread Laurence
First off, I would suggest making your query much simpler, just to diagnose the 
problem.  Then add complexity to it and see if/when it goes wrong...

Start with (for example):
SELECT roomDisplay, roomID, ageGroup, accountType
FROM chatrooms
WHERE
cfqueryparam value=#arguments.accountType# 
 cfsqltype=cf_sql_varchar / IN (accountType)
AND cfqueryparam value=#arguments.ageGroup# 
 cfsqltype=cf_sql_integer / IN (ageGroups)

See what that returns for you...  Then start adding your Concat statements one 
at a time and see what changes.  It may not be following the same logic you are 
in your head, and this will force you to see it one step at a time, so you can 
figure out why it's doing what it's doing...

Best of luck,
Laurence MacNeill
Mableton, Georgia, USA


--- In flexcoders@yahoogroups.com, Wally Kolcz wko...@... wrote:

 I know this is out of the core topic, but I am banging my head on this 
 simple issue..or probably is...
 
 I am trying to write a SQL query (in ColdFusion) for my database (MySQL 
 5) when I am looking for a passed in argument value in the column (which 
 is set as a varchar).
 
 I am passing in '0' for the ageGroup and 'kids' for the accountType I 
 have 'kids'
 
 My Query is:
 
 Select CONCAT(roomDisplay, (National)) as roomDisplay,
  CONCAT(cfqueryparam value=#arguments.ageGroup#, 
 -, roomDisplay, -, National) as roomID
  FROM chatrooms
  WHERE cfqueryparam value=#arguments.accountType# IN 
 (accountType)
  AND cfqueryparam value=#arguments.ageGroup# 
 cfsqltype=cf_sql_integer / IN (ageGroups)
  ORDER BY roomDisplay ASC
 
 I have a record where 'ageGroups' is '0, 1, 2, 3, 4, 5, 6, 7, 8' and the 
 'accountType' is 'kids, siblings, parents'
 
 I keep getting 0 returns but I know both values exist in at least 1 record
 
 What am I doing wrong?





[flexcoders] Re: Still getting Security Sandbox violations...

2010-02-20 Thread Laurence
Well, the lesson learned here is -- trust that the services-config.xml file 
that came with your CF installation is probably properly formatted.  Don't make 
changes unless you know precisely what you're doing.  :-)

In all seriousness, though, don't go copying everything from your old 
installation to your new one.  You will overwrite files that are important.  
You have to manually go through each file and ensure that EXACTLY the same 
stuff belongs in there on the new CF as did belong there on the old CF.  It's 
painstakingly slow, unfortunately...

--- In flexcoders@yahoogroups.com, Warren warrenony...@... wrote:

 Yes, I'm using CF8.  I didn't know the endpoints changed in.  When you get 
 all this to work, could you post it.  Soon I will be transitioning to CF9 and 
 would like the benefit of your lessons learned.
 
 
   - Original Message - 
   From: Laurence 
   To: flexcoders@yahoogroups.com 
   Sent: Friday, February 19, 2010 11:27 PM
   Subject: [flexcoders] Re: Still getting Security Sandbox violations...
 
 
 
   Ok -- I figured out #2 below... 
 flex.messaging.endpoints.SecureAMFEndpoint in the services-config.xml file 
 only belongs there in ColdFusion 8. For ColdFusion 9 it's different: 
 coldfusion.flash.messaging.SecureCFAMFEndPoint (Warren's message earlier 
 said my endpoints were funky -- I'm guessing he's using CF8.)
 
   So I changed it, and now I'm not getting the 404 error.
 
   But I still want to know about the secure=false tag. Will setting that 
 prevent my channel from being secure? Yet setting it seems to be the only way 
 I can access my data, which is very stupid if that's going to un-secure my 
 channel. I mean, what's the point?
 
   Thanks,
   L.
 
   --- In flexcoders@yahoogroups.com, Laurence LMacNeill@ wrote:
2) If I go ahead and set secure=false and leave the domain=*, instead 
 of getting the Security Sandbox violation, I'm getting a 
 Channel.Connect.Failed error NetConnection.Call.Failed: HTTP: Status 404: 
 url: 'https://mydomain.com/flex2gateway/secureamf' So HTTP 404, that's 
 file-not-found... What file is it not finding?





Re: [flexcoders] Re: Array Collection

2010-02-20 Thread Alex Harui
The type depends on what the items in the ArrayCollection are.  You can use 
Object if you’re not sure.  The cost of using Object is generally ignorable.


On 2/20/10 11:31 AM, criptopus sd_br...@ntlworld.com wrote:






Something like ...

for each (var member in membData)
 mEdit.membAccounts.push(member.usraccount);

not sure what to type member though?

- Stephen






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


Re: [flexcoders] How to get a value

2010-02-20 Thread Alex Harui
If you have:

Public class Page
{
private var myTextArea:TextArea;

private var journalID:String;

override protected function createChildren():void
{
myTextArea = new TextArea();
myTextArea.addEventListener(FocusEvent.FOCUS_OUT, myFocusOutHandler);
}

private function myFocusOutHandler(event:FocusEvent):void
{
// the ‘this’ pointer is the instance of Page
// event.currentTarget is the TextArea
journalID = TextArea(event.currentTarget.text);
}
}


On 2/20/10 8:25 PM, Wally Kolcz wko...@isavepets.com wrote:






I have an instance of a Class (Page) which has a textarea on it which is
editable. I added an eventlistener to the TextArea for
FocusEvent.FOCUS_OUT. When the FocusEvent (e) gets to the hander, I can
use e.currentTarget to get the value of the TextArea, but I need a value
in a variable in the same instance of the Page Class (journalID). I have
been looking through the debugger but I cannot figure out how to get
that value.

Long story short I need the variable journalID on the same Class that
contains the TextArea.

Thanks.






--
Alex Harui
Flex SDK Team
Adobe System, Inc.
http://blogs.adobe.com/aharui


[flexcoders] Security issues SOLVED. (Mostly...)

2010-02-20 Thread Laurence
So, here's my crossdomain.xml in its final form:

cross-domain-policy
site-control permitted-cross-domain-policies=master-only /

allow-http-request-headers-from domain=www.mydomain.com headers=* 
secure=false/
allow-access-from domain=www.mydomain.com secure=false /

/cross-domain-policy

This allows all the stuff on the SecureColdFusion channel I created to work 
just fine, as long as I access the site from mydomain.com and not from 
localhost or myserver01 (its NetBIOS name).

Even if I put allow-access-from domain=localhost/ (or 
domain=myserver01/) in there, it still won't allow access from localhost (or 
myserver01), because the security certificate is issued to mydomain.com -- the 
names don't match, so the browser/Flash/CF rejects it.  (I don't know exactly 
which one is rejecting it, but somewhere along the line it's being rejected 
because of the name-mismatch.)

The only way that I can see to change that behavior is to create two more 
virtual websites that point to the same location, and give each of those 
virtual sites their own certificate (one assigned to myserver01 and one 
assigned to localhost.  Otherwise, I can't access the app on my local server 
if the Internet goes down.  Yuck.  (If anyone knows a better way, I'm all ears.)

The one thing that still bothers me about this setup is the 'secure=false' 
tags.  I cannot get a straight answer as to exactly what this does to my 
security.  It enables http .SWFs to access https data, sure.  But does that 
mean it's disabling all https when it does that?  Or does it mean that it is 
secure during transit over the Internet, but not when it's being held in the 
Flex app?  Or does it mean something entirely different?  There is no site that 
has a direct answer to this -- they all just say it's not recommended due to 
security issues, or something along those lines.  But they don't specify WHAT 
security issues there are.  I need to know -- I can't serve my entire app over 
an https connection because it'll be too slow, but I must have secure access to 
some of the data...

So if anyone can answer the 'secure=false' question specifically, I would be 
very grateful.

Thanks,
L.




Re: [flexcoders] Displaying formatted HTML in a flex component?

2010-02-20 Thread Peeyush Tuli
 try this - http://code.google.com/p/flex-iframe/



On Thu, Feb 18, 2010 at 7:30 PM, flexnewbie999
wgb.jobsearch@gmail.comwrote:



 I'm redoing an existing site and the client wants the same HTML that
 already exists to be displayed in the Flex front end. I'm relatively new to
 this and haven't run across a control or method to display formatted HTML as
 it would appear in a vanilla site. Any suggestions?

  



[flexcoders] Capturing a browser-refresh event...

2010-02-20 Thread Laurence
In my app, if you click the browser's refresh button, it re-loads the app and 
starts it over from the beginning (as you'd expect.)

I want my app to be able to capture this refresh event (or perhaps just block 
it completely?) so that users won't lose all the data they've entered if they 
accidentally click the browser's refresh button.  Ideally it would give them a 
pop-up window telling them that they're about to lose all their data, and allow 
them to cancel the refresh if they desire.

Is this possible?  How can I do that from my Flex app?

Thanks,
Laurence MacNeill
Mableton, Georgia, USA




Re: [flexcoders] Re: .CFC cannot be accessed remotely...

2010-02-20 Thread Jochem van Dieten
On Sun, Feb 21, 2010 at 5:27 AM, Laurence wrote:
 Where do I go to keep up with the patches for CF9?  Is there a single page 
 somewhere that lists all the patches that have been released for CF9?

Security patches: http://www.adobe.com/support/security/#coldfusion
Optional updates: http://www.adobe.com/support/coldfusion/downloads_updates.html

Jochem

-- 
Jochem van Dieten
http://jochem.vandieten.net/


[flexcoders] Re: .CFC cannot be accessed remotely...

2010-02-20 Thread Laurence
Thanks!

L.


--- In flexcoders@yahoogroups.com, Jochem van Dieten joch...@... wrote:

 On Sun, Feb 21, 2010 at 5:27 AM, Laurence wrote:
  Where do I go to keep up with the patches for CF9?  Is there a single page 
  somewhere that lists all the patches that have been released for CF9?
 
 Security patches: http://www.adobe.com/support/security/#coldfusion
 Optional updates: 
 http://www.adobe.com/support/coldfusion/downloads_updates.html
 
 Jochem
 
 -- 
 Jochem van Dieten
 http://jochem.vandieten.net/