RE: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Alex Harui
Var foo:MyClass = MyClass(wrongInstance); //throws exception

Var bar:MyClass = wrongInstance as MyClass; // returns null unless it
can be coerced (usually with primitive types)

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Josh McDonald
Sent: Wednesday, June 04, 2008 10:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Retrieving instence name?

 

I've read that ClassName(wrongInstance) just gives null? Hence you get a
nullpointer exception even though that's not really your problem, and a
newb in his debugger that sees a nullpointer exception when
wrongInstance is clearly not null is gonna be awfully confused.

-Josh

On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

ClassName(instance) is marginally faster than (instance as ClassName) in
my tests.

 

Something's gonna blow if it isn't that type.  I don't have any hard
rules on which to use though.  I also think there are cases where you
need to use as  and vice versa due to coercion rules, but I could be
wrong about that.

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of Josh McDonald
Sent: Wednesday, June 04, 2008 9:16 PM
To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: Re: [flexcoders] Re: Retrieving instence name?

 

Isn't ClassName(instance).foo a bad idea now we have (instance as
ClassName).foo? I'd much rather have a NPE when it's actually null, and
a CCE when instance isn't a ClassName.

-Josh

On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Code hints will not help when dealing with event.target unless you know
what it is.  Technically you should code lit like

 

LoaderInfo(event.target).loader

 

And hopefully, you'll get code hints when you type the '.' before
loader.

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of flexawesome
Sent: Wednesday, June 04, 2008 7:28 PM


To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: Retrieving instence name?

 

Woowow Ales, you are the BEST :))

How do you know the property of event.target.loader? I was unable to 
see the property by using cdoe tip

Cheers

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 Sorry, I actually hadn't looked at your code before.
 
 
 
 The target/currentTarget will be a LoaderInfo. Target.loader.name
http://Target.loader.name  
is
 probably what you want.
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of flexawesome
 Sent: Wednesday, June 04, 2008 2:19 PM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Re: Retrieving instence name?
 
 
 
 
 Hey Alex, I was unable to retrieve the instance name..
 
 I got trace info. = [object LoaderInfo]
 
 Any hits?
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
mailto:flexcoders%25 
40yahoogroups.com http://40yahoogroups.com 
 , Alex Harui aharui@ wrote:
 
  Try event.currentTarget.toString()
  
  
  
  
  
  From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
mailto:flexcoders%25 
40yahoogroups.com http://40yahoogroups.com 
 
 [mailto:flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
mailto:flexcoders%25 
40yahoogroups.com http://40yahoogroups.com 
 ] On
  Behalf Of flexawesome
  Sent: Wednesday, June 04, 2008 1:25 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
mailto:flexcoders% mailto:flexcoders%25 
40yahoogroups.com http://40yahoogroups.com  
  Subject: [flexcoders] Re: Retrieving instence name?
  
  
  
  event.currentTarget.name http://event.currentTarget.name  seem
doesn't work. :(
  
  --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
 mailto:flexcoders%40yahoogroups.com
mailto:flexcoders%2540yahoogroups.com  mailto:flexcoders%
mailto:flexcoders%25 
 40yahoogroups.com http://40yahoogroups.com 
  , flexawesome flexawesome@ 
  wrote:
  
   Hey, is that possible to retrieve the instence name for 
imgLoad ?
   
   # in this example, it calls init2 from init1 and know the 
 instence 
  name 
   is test but I would like to retrieve it from event or other 
 ways, 
  is 
   that possible?
   
   
   http://www.privatepaste.com/e4RWWrMIAW
http://www.privatepaste.com/e4RWWrMIAW 
 http://www.privatepaste.com/e4RWWrMIAW
http://www.privatepaste.com/e4RWWrMIAW  
  

Re: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Josh McDonald
Goddammit, I've been going about it ass backwards! *kicks self*

Thanks Alex.

-J

On Thu, Jun 5, 2008 at 4:15 PM, Alex Harui [EMAIL PROTECTED] wrote:

Var foo:MyClass = MyClass(wrongInstance); //throws exception

 Var bar:MyClass = wrongInstance as MyClass; // returns null unless it can
 be coerced (usually with primitive types)


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Wednesday, June 04, 2008 10:40 PM

 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Retrieving instence name?



 I've read that ClassName(wrongInstance) just gives null? Hence you get a
 nullpointer exception even though that's not really your problem, and a newb
 in his debugger that sees a nullpointer exception when wrongInstance is
 clearly not null is gonna be awfully confused.

 -Josh

 On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui [EMAIL PROTECTED] wrote:

 ClassName(instance) is marginally faster than (instance as ClassName) in my
 tests.



 Something's gonna blow if it isn't that type.  I don't have any hard rules
 on which to use though.  I also think there are cases where you need to use
 as  and vice versa due to coercion rules, but I could be wrong about that.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Josh McDonald
 *Sent:* Wednesday, June 04, 2008 9:16 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Retrieving instence name?



 Isn't ClassName(instance).foo a bad idea now we have (instance as
 ClassName).foo? I'd much rather have a NPE when it's actually null, and a
 CCE when instance isn't a ClassName.

 -Josh

 On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui [EMAIL PROTECTED] wrote:

 Code hints will not help when dealing with event.target unless you know
 what it is.  Technically you should code lit like



 LoaderInfo(event.target).loader



 And hopefully, you'll get code hints when you type the '.' before loader.


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *flexawesome
 *Sent:* Wednesday, June 04, 2008 7:28 PM


 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Retrieving instence name?



 Woowow Ales, you are the BEST :))

 How do you know the property of event.target.loader? I was unable to
 see the property by using cdoe tip

 Cheers

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  Sorry, I actually hadn't looked at your code before.
 
 
 
  The target/currentTarget will be a LoaderInfo. Target.loader.name
 is
  probably what you want.
 
 
 
  
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] On
  Behalf Of flexawesome
  Sent: Wednesday, June 04, 2008 2:19 PM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: Retrieving instence name?
 
 
 
 
  Hey Alex, I was unable to retrieve the instance name..
 
  I got trace info. = [object LoaderInfo]
 
  Any hits?
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders% flexcoders%25
 40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Try event.currentTarget.toString()
  
  
  
   
  
   From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders% flexcoders%25
 40yahoogroups.com
 
  [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders% flexcoders%25
 40yahoogroups.com
  ] On
   Behalf Of flexawesome
   Sent: Wednesday, June 04, 2008 1:25 PM
   To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com mailto:
 flexcoders% flexcoders%25
 40yahoogroups.com
   Subject: [flexcoders] Re: Retrieving instence name?
  
  
  
   event.currentTarget.name seem doesn't work. :(
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  mailto:flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
 mailto:flexcoders% flexcoders%25
  40yahoogroups.com
   , flexawesome flexawesome@
   wrote:
   
Hey, is that possible to retrieve the instence name for
 imgLoad ?
   
# in this example, it calls init2 from init1 and know the
  instence
   name
is test but I would like to retrieve it from event or other
  ways,
   is
that possible?
   
   
http://www.privatepaste.com/e4RWWrMIAW
  http://www.privatepaste.com/e4RWWrMIAW
   http://www.privatepaste.com/e4RWWrMIAW
  http://www.privatepaste.com/e4RWWrMIAW 
   
Thank you
   
  
 




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]

  




-- 
Therefore, send not 

[flexcoders] ModelLocator for each modules????

2008-06-05 Thread slash_n_rose
Hi All
I'm using Cairngorm in my application, which has different big
modules. For example one module may be project management and other
contact management. Do I need to make different ModelLocator files for
these modules?? 

Regards
Jerry



[flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-05 Thread Cato Paus
Hello again, I have read more Flex documentation, and found a lot of 
good information regarding the remote objects and the environment, 
but I have a thought about making a change in the structure of the 
Flex application, have someone tried to take a module and put it into 
a sql database as a bytearray, and bring it to the application as 
remote object and connect module loader to the DTO, is possible to 
connect the module loader to the byteArray?

--- In flexcoders@yahoogroups.com, Michael Schmalle 
[EMAIL PROTECTED] wrote:

 I'll Chime in on this since.. I could call myself a professional 
component
 developer.
 
 I had the same worries about source and intellectual property (2 
years ago).
 What I have found in the real component market,
 developers will buy your component without code IF you have a site 
and
 support backing up your claim of a purely 'encapsulated' API.
 
 Now what I have learned; Mind you I have been developing components 
since
 Flash 5 :)
 
 - Source code IS love but, they are going to pay a lot more for it. 
I'm
 talking about my frameworks coming up that are definite jewels for 
the
 professional/enterprise flex developer.
 
 I will have to options SWC or SWC/with source. You can't stop 
people from
 riping off your stuff. There are ticks and leaches in the REAL 
world as
 well. The trick, is to be the leader and innovator. I have survived 
2 years
 without selling source. I have created a brand new framework that I 
am very
 proud of, documented great and I will be selling my components with 
source.
 
 Anyway, ramble but... you will always get decompiled and don't kid 
yourself.
 
 Peace,
 Mike
 
 On Wed, Jun 4, 2008 at 3:57 AM, Josh McDonald [EMAIL PROTECTED] wrote:
 
I still can't see what you hope to achieve with these 
solutions? Anybody
  willing to copy and paste your code, is just as willing to copy 
your
  encrypted .SWC file.
 
  Source code is like love - it only has value if you give it out.
 
  -Josh
 
 
  On Wed, Jun 4, 2008 at 5:45 PM, Cato Paus [EMAIL PROTECTED] wrote:
 
Hello again everyone, how can we protect our code?
 
  How should we go forward in order to protect the methods used to 
change
  the senistive information on user data, some blogs on this?
 
  I found one at a remote-finfig.xml and the use of session id
 
 
  http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-
with-java-do-you-care-about-security/
  this is good to have this thread hope we can work together to 
find out of
  this :)
 
 
  --- In flexcoders@yahoogroups.com, jmfillman jmfillman@ 
wrote:
  
   Has anyone had experience using SWC Encrypt 2.0, by Amayeta? 
Does it
   work, or would I just be wasting my money? I'm trying to 
protect a
   component I plan to sell, but given the prevalence of de-
compilers, I'm
   hesitant to release it. I don't want to see all my hard work 
stolen.
  
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls 
for thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
  
 
 
 
 
 -- 
 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: mx.rpc.remoting.remoteobject and the endpoint property

2008-06-05 Thread Cato Paus

take look at this
http://tech.groups.yahoo.com/group/flexcoders/message/115062
http://tech.groups.yahoo.com/group/flexcoders/message/115062




--- In flexcoders@yahoogroups.com, arieljake [EMAIL PROTECTED] wrote:

 does anyone know why only the mxml version of remoteobject has the
 endpoint property available to set?





[flexcoders] Re: mx.rpc.remoting.remoteobject and the endpoint property

2008-06-05 Thread Cato Paus

Channel(id:String = null, uri:String = null)
Constructs an instance of a generic Channel that connects to the
specified endpoint URI.

used in the sample like:

channel = new AMFChannel('my-amf',
'http://{server.name}:{server.port}/flex/messagebroker/amf');




--- In flexcoders@yahoogroups.com, Cato Paus [EMAIL PROTECTED] wrote:


 take look at this
 http://tech.groups.yahoo.com/group/flexcoders/message/115062
 http://tech.groups.yahoo.com/group/flexcoders/message/115062




 --- In flexcoders@yahoogroups.com, arieljake arieljake@ wrote:
 
  does anyone know why only the mxml version of remoteobject has the
  endpoint property available to set?
 





RE: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

2008-06-05 Thread Dale Fraser
@Mike,

 

Where do I find this framework?

 

Regards

Dale Fraser

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Cato Paus
Sent: Thursday, 5 June 2008 6:24 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWC Encrypt 2.0 - Does it work?

 

Hello again, I have read more Flex documentation, and found a lot of 
good information regarding the remote objects and the environment, 
but I have a thought about making a change in the structure of the 
Flex application, have someone tried to take a module and put it into 
a sql database as a bytearray, and bring it to the application as 
remote object and connect module loader to the DTO, is possible to 
connect the module loader to the byteArray?

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ,
Michael Schmalle 
[EMAIL PROTECTED] wrote:

 I'll Chime in on this since.. I could call myself a professional 
component
 developer.
 
 I had the same worries about source and intellectual property (2 
years ago).
 What I have found in the real component market,
 developers will buy your component without code IF you have a site 
and
 support backing up your claim of a purely 'encapsulated' API.
 
 Now what I have learned; Mind you I have been developing components 
since
 Flash 5 :)
 
 - Source code IS love but, they are going to pay a lot more for it. 
I'm
 talking about my frameworks coming up that are definite jewels for 
the
 professional/enterprise flex developer.
 
 I will have to options SWC or SWC/with source. You can't stop 
people from
 riping off your stuff. There are ticks and leaches in the REAL 
world as
 well. The trick, is to be the leader and innovator. I have survived 
2 years
 without selling source. I have created a brand new framework that I 
am very
 proud of, documented great and I will be selling my components with 
source.
 
 Anyway, ramble but... you will always get decompiled and don't kid 
yourself.
 
 Peace,
 Mike
 
 On Wed, Jun 4, 2008 at 3:57 AM, Josh McDonald [EMAIL PROTECTED] wrote:
 
  I still can't see what you hope to achieve with these 
solutions? Anybody
  willing to copy and paste your code, is just as willing to copy 
your
  encrypted .SWC file.
 
  Source code is like love - it only has value if you give it out.
 
  -Josh
 
 
  On Wed, Jun 4, 2008 at 5:45 PM, Cato Paus [EMAIL PROTECTED] wrote:
 
  Hello again everyone, how can we protect our code?
 
  How should we go forward in order to protect the methods used to 
change
  the senistive information on user data, some blogs on this?
 
  I found one at a remote-finfig.xml and the use of session id
 
 
  http://www.flexpasta.com/index.php/2008/03/18/flex-using-blazeds-
with-java-do-you-care-about-security/
  this is good to have this thread hope we can work together to 
find out of
  this :)
 
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, jmfillman jmfillman@ 
wrote:
  
   Has anyone had experience using SWC Encrypt 2.0, by Amayeta? 
Does it
   work, or would I just be wasting my money? I'm trying to 
protect a
   component I plan to sell, but given the prevalence of de-
compilers, I'm
   hesitant to release it. I don't want to see all my hard work 
stolen.
  
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls 
for thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
  
 
 
 
 
 -- 
 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: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Interesting. Me and my colleagues are also thinking of switching to
Mac due to Vista crappiness. In fact we're 80% sure that next laptops
will be Macs. My only concern is how to do .Net development and
integration with Flex then. Anyone has a solution to that?





--- In flexcoders@yahoogroups.com, scottyale2008 [EMAIL PROTECTED]
wrote:

 How many Flex developers here are using a Mac for development?  I've 
 been a die hard Microsoft guy since ... well, since Microsoft first 
 started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
 computers with a Turbo button!), then Windows, now Vista.  I do have an 
 iPhone and it is an incredible device and the GUI is extremely well 
 done.   I've never used a Mac, but many of my friends have taken the 
 plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
 Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
 a Mac Book Pro the way to go?   Anybody else make the switch recently 
 from Windows to Mac?





[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Dmitri Girski
I am just wondering, why everyone is thinking about Mac laptops?

IMHO, it does not worth it. The beauty of Mac is the 24 iMac screen.
If you try it you will never go back to the laptops again.

Cheers,
Dmitri.




--- In flexcoders@yahoogroups.com, b_alen [EMAIL PROTECTED] wrote:

 Interesting. Me and my colleagues are also thinking of switching to
 Mac due to Vista crappiness. In fact we're 80% sure that next laptops
 will be Macs. My only concern is how to do .Net development and
 integration with Flex then. Anyone has a solution to that?
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, scottyale2008 scottyale2008@
 wrote:
 
  How many Flex developers here are using a Mac for development?  I've 
  been a die hard Microsoft guy since ... well, since Microsoft first 
  started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
  computers with a Turbo button!), then Windows, now Vista.  I do
have an 
  iPhone and it is an incredible device and the GUI is extremely well 
  done.   I've never used a Mac, but many of my friends have taken the 
  plunge.  Is it time to make the switch?   I'm thinking about a Mac
Book 
  Pro.  Is a Mac Book even worth considering for a Flex dev machine
or is 
  a Mac Book Pro the way to go?   Anybody else make the switch recently 
  from Windows to Mac?
 





[flexcoders] Possible to add some data to load to the default preloader?

2008-06-05 Thread b_alen
I always have some stuff to load before the app can be used. Is it
possible to stick that loading into the default preloader? So the swf
would know that it has to load other files also before it dispatches
the event that it's fully loaded. Maybe some compiler directives, I
don't know.

Thanks



Re: [flexcoders] Keep combobox open to allow multiselect

2008-06-05 Thread rviswanathan

I am still not clear on how this can be done. I must use a combobox (this is
a must-have for me). This is what I attempted... can you please give some
pointers based on my code below? 

?xml version=1.0 encoding=utf-8?
mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; change=close()
mx:Script
![CDATA[

override public function close(trigger:Event = null):void {
//Do nothing
}
]]  
/mx:Script
mx:dropdownFactory
mx:Component
mx:List
mx:itemRenderer
mx:Component
mx:CheckBox selectedField=isSelected
click=onChange(event);
mx:Script
![CDATA[
private function 
onChange(evt:Event):void {
   data.isSelected = !data.isSelected;
}
]]
/mx:Script
/mx:CheckBox
/mx:Component
/mx:itemRenderer
/mx:List
/mx:Component
/mx:dropdownFactory   
/mx:ComboBox



Thanks
Ram

--


rviswanathan wrote:
 
 Hi 
 
 I have created a combo box with a checkbox renderer on each of its items.
 When I select an entry in the combobox, the box closes automatically.
 
 I want to prevent his so that I can multiselect elements in the combobox.
 
 Is there a way to do this? Even if I extend the ComboBox and override its
 close method, the combobox still closes (and I realized that there is a
 private method in ComboBox.as called destroyDropdown() which gets called
 when the collection that the combobox holds changes.
 
 Thanks
 Ram
 

-- 
View this message in context: 
http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507p17666884.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Dmitri Girski
--- In flexcoders@yahoogroups.com, [EMAIL PROTECTED]
[EMAIL PROTECTED] wrote:

 Oh please, mac is so intuitive. 

yeah, right. for housewives  designers - maybe :)
I went through all types of Windows, a lot of Linuxes, FreeBSD, damn
PDP-11 and in my opinion  Mac was the least intuitive *if you need
more than PS or Flex running*. 

Have you tried to set up SSH tunnels to Mac via Airport? Or recompile
Apache with Postgres? Intuitive... ha! :)

I especially like Job's favourite trick - after system update it
removes all custom components  settings. This is so intuitive.

PS Re pricing - if Apple charges double price for the same Kingston
DIMM module there is no justification for that. Even that there are no
viruses or rootkits. And there are no rootkits on Mac because only the
bravest people went through setting inbound SSH.

Cheers,
Dmitri.








[flexcoders] Flex Builder accessibility problem

2008-06-05 Thread Barry
Hi, don't know where to ask this question but I thought I'd give it a
try here.
Due to my bad eyesight I run my computer in High Contrast mode.
Flex Builder is great mostly however I can not find where to set the
background color for popups - ie Code Assist and the Outliner pop
(Ctrl+O).
As it stands I can't see any text. Any help muchly appreciated.
Barry 



RE: [flexcoders] How can we bring the larger radius bubble in front in the bubble chart?

2008-06-05 Thread Sunil Bannur
BubbleSeries always sorts the data that needs to be rendered on the value in 
the z Axis, check the updateMapping protected function in BubbleSeries.as. You 
can override this function to change this behavior and make the parameter as 
ASCENDING in the sortOn function and reverse the rendering logic.

Thanks
-Sunil

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
amywongwy
Sent: Thursday, June 05, 2008 1:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How can we bring the larger radius bubble in front in the 
bubble chart?


Hi,

I know the behavior in the bubble chart is always placed the larger
radius bubble at the back and the small radius bubble in the front.
Is there a way that we can bring a selected bubble in the front?

Thanks.

Cheers,
Amy

inline: image001.jpginline: image002.jpg

[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Desktop is out of the question. Any experience with .net on Mac?



--- In flexcoders@yahoogroups.com, Dmitri Girski [EMAIL PROTECTED] wrote:

 I am just wondering, why everyone is thinking about Mac laptops?
 
 IMHO, it does not worth it. The beauty of Mac is the 24 iMac screen.
 If you try it you will never go back to the laptops again.
 
 Cheers,
 Dmitri.
 
 
 
 
 --- In flexcoders@yahoogroups.com, b_alen alen.balja@ wrote:
 
  Interesting. Me and my colleagues are also thinking of switching to
  Mac due to Vista crappiness. In fact we're 80% sure that next laptops
  will be Macs. My only concern is how to do .Net development and
  integration with Flex then. Anyone has a solution to that?
  
  
  
  
  
  --- In flexcoders@yahoogroups.com, scottyale2008 scottyale2008@
  wrote:
  
   How many Flex developers here are using a Mac for development? 
I've 
   been a die hard Microsoft guy since ... well, since Microsoft first 
   started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
   computers with a Turbo button!), then Windows, now Vista.  I do
 have an 
   iPhone and it is an incredible device and the GUI is extremely well 
   done.   I've never used a Mac, but many of my friends have taken
the 
   plunge.  Is it time to make the switch?   I'm thinking about a Mac
 Book 
   Pro.  Is a Mac Book even worth considering for a Flex dev machine
 or is 
   a Mac Book Pro the way to go?   Anybody else make the switch
recently 
   from Windows to Mac?
  
 





[flexcoders] Re: How to expose Hibernate 'non' conventional beans into flex apps via remoting

2008-06-05 Thread Mehdi
Thank you Robert.

I appreciate your response. I read your blog and it makes total sense
to me as this is where I am coming from as well. I actually encourage
anyone coming from the java world with an existing application
(JSP/JSF/Struts/Hibernate/Spring/etc..) or not, to read the blog if
you are interested in investigating flex. 

Basically since my post, I have been playing with the Externalizable
alternative and I managed to make a simple CRUD flex component based
 on the datagrid talking to a java service layer (spring/hibernate
back end). It seems to be working fine. This solution will work fine
for the session closing problems and huge graphs you mentioned in
your blog. Also compared to the DTO/Assembler approach, it saves you
from having to creating that significant layer. Now,  where It falls
short I believe, from what I can see today, is flexibility. In fact,
with the Serialization approach, you can serialize an object 1 and
only 1 way. If I only need the parent object in a request, but also
needs its children in another request I can't do! Which is some of the
flexibility that the DTO/Assembler approach provides certainely.

Robert, I am going to try out the DTO/Assembler approach (Something
tells me it is worth the initial investment). Any pointers, samples,
whatever will be great. If you dont have anything, no worries, will
figure it out. Thank you.
And again, great Blog...! Will be adding my experience once I am done
looking at the second alternative.


Thenof course there is LifeCycle DS...I dont know if those
problems also exist in Lifecycle...? Any LifeCycle DS
/Spring/hibernate guru out there?

Cheers,

--- In flexcoders@yahoogroups.com, Robert Cadena [EMAIL PROTECTED]
wrote:

 i should also have mentioned this:
 

http://livedocs.adobe.com/blazeds/1/blazeds_devguide/serialize_data_3.html#303410
 
 
 
 On Wed, Jun 4, 2008 at 7:22 PM, Robert Cadena [EMAIL PROTECTED]
 wrote:
 
  Hi Mehdi,
 
  this is just my current opinion on the subject: create data transfer
  objects for your domain objects (your hibernate pojos).  Which is
basically
  the first solution you proposed.Use custom assemblers to
create DTOs
  from your DOs .
 
  This is my current opinion on the subject.  There are a few
criteria for
  that I've come up with for doing this extra amount of work, but
the one that
  I've found most compelling is this:
 
  **your domain model, or domain objects, or hibernate objects,
whatever you
  want to call them, have deep or complex hierarchies that would be
expensive
  to recreate when BlazeDS transfers the object over the wire**.  If
your
  graph is deep you'll end up pulling out a bunch of objects you
might not
  need on the front end.  If you close the session early you'll end
up with
  unavailable session exceptions and you may have to adopt the open
session in
  view pattern for the message broker servlet, which is less than ideal
  because you'd have to configure it for the servlet path and it
might be too
  difficult to configure it per method invocation.
 
  Check out my blog post on the subject:
  http://www.machine501.com/blog/2008/06/03/useful-patterns-for-blazeds/
 
  It's painful, and I think it is something that stops people from
adopting
  blazeds.  it would be ideal if there was a way to configure object
factories
  in BlazeDS so that it could deal with your problem of argument
constructors,
  and, if it was possible to give blazeds hints about the properties
it should
  attempt to serialize on a per-method manner.
 
  cheers
 
  /r
 
 
 
 
 
  On Wed, Jun 4, 2008 at 2:20 AM, Mehdi [EMAIL PROTECTED] wrote:
 
  I am relatively new to the flex world. I am from the Spring/Hibernate
  world.
  In Hibernate, the POJO object or domain object , or simply beans that
  you use to persist you object into the database does not have to
  follow the bean definition/contract, i.e: public default constructor
  with getter/setters. There are good reasons behind creating those
kind
  of 'hibernate beans' (I will call them that way for lack of a better
  name). In fact, only defining a one-parameter constructor (i.e.
  omitting the default one) guaranties you that your client cannot
  invoke your API without that needed parameter. Likewise, exposing
only
  the getters for some private member variables (without the setters)
  makes sense when you don't want that variable to ever change,
  etchibernate manage to access these fields using cglib, and other
  tricks.
 
  Now, my understanding of Flex and how remote services work (from what
  I could see in all the samples around about hibernate/spring), is
that
  your java server bean get proxied 'dynamically' or 'statically' (via
  an Actionscript class object) according to the rule: Only values
  found in public bean properties with get/set methods and public
  variables  are being copied over to the client proxy object. Which
  means that if I dont have a default constructor I am toast. It also
  means that my public getVar() 

[flexcoders] are these 2 if tests the same (trivial question)

2008-06-05 Thread bhaq1972

if(var1 == var2  var3 == var4 || var5 == X)


if((var1 == var2  var3 == var4) || var5 == X)



[flexcoders] Re: are these 2 if tests the same (trivial question)

2008-06-05 Thread b_alen
Check out distributive law of boolean algebra, and operator
precedence. In this case it's the same because logical AND anyway has
precedence over logical OR.

Your statements could also be written like this:

AB+C
(AB)+C

So, obviously they are the same.



--- In flexcoders@yahoogroups.com, bhaq1972 [EMAIL PROTECTED] wrote:

 
 if(var1 == var2  var3 == var4 || var5 == X)
 
 
 if((var1 == var2  var3 == var4) || var5 == X)





Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Anatole Tartakovsky
You do need windows for development.
I have Server 2008 in VMWare Fusion  running OK - you really need 3 things
to get reasonable performance:1. A lot of RAM
2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
access/performance of the native apple hardware like bluetooth, camera, etc
3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode - cures
are available on Web

Other option is to have bootcamp installed on the second partition - with
250/320 GB drive you can get reasonably configured dual boot system.

Regards,
Anatole


On Thu, Jun 5, 2008 at 6:41 AM, b_alen [EMAIL PROTECTED] wrote:

   Desktop is out of the question. Any experience with .net on Mac?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dmitri
 Girski [EMAIL PROTECTED] wrote:
 
  I am just wondering, why everyone is thinking about Mac laptops?
 
  IMHO, it does not worth it. The beauty of Mac is the 24 iMac screen.
  If you try it you will never go back to the laptops again.
 
  Cheers,
  Dmitri.
 
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 b_alen alen.balja@ wrote:
  
   Interesting. Me and my colleagues are also thinking of switching to
   Mac due to Vista crappiness. In fact we're 80% sure that next laptops
   will be Macs. My only concern is how to do .Net development and
   integration with Flex then. Anyone has a solution to that?
  
  
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 scottyale2008 scottyale2008@
   wrote:
   
How many Flex developers here are using a Mac for development?
 I've
been a die hard Microsoft guy since ... well, since Microsoft first
started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
computers with a Turbo button!), then Windows, now Vista. I do
  have an
iPhone and it is an incredible device and the GUI is extremely well
done. I've never used a Mac, but many of my friends have taken
 the
plunge. Is it time to make the switch? I'm thinking about a Mac
  Book
Pro. Is a Mac Book even worth considering for a Flex dev machine
  or is
a Mac Book Pro the way to go? Anybody else make the switch
 recently
from Windows to Mac?
   
  
 

  



[flexcoders] Sharing bindable data between mxml files in different project folders

2008-06-05 Thread Madhu.Kma
 
Hi Varun Shetty,
 
Thanks for your quick response and help.
 
Yep, I implemented this approach in my project and is working fine.
 
However my original requirement was that in my earlier version, I was
making my repetitive calls from many .mxml and .as files to an Util.as
for fetching these text values, but due to the earlier approach of
individual calls to the util.as to fetch the values the performance of
the application was slow, hence for the sake of performance improvement
only I was trying to make a single call from the homepage.mxml and tried
to persist the value and share the variable across all the other files.
 
Now my query is whether this approach of using
Application.application.TestValue has any drawbacks.
 
Yes, I am located in Chennai.
 
Thanks  Regards,
Madhu K
 
 

 

  
Please do not print this email unless it is absolutely necessary. Spread
environmental awareness. 

 




From: Varun Shetty [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 30, 2008 9:13 PM
To: Madhu K (WT01 - SECURITIES)
Subject: Re: [flexcoders] Sharing bindable data between mxml
files in different project folders


you can make is public variables and access it using 
Application.application.TestValue

Do not make it a static variable, just a public variable. 
public var TestValue:String = null

if you make it static variable.. you can access it in the
following way within your other mxml files

var tempHome:homePage = new homePage();
tempHome.TestValue  = newStrValue

I have just given a code sample, the more appropriate way will
be using the Singleton Pattern Actionscript 
well, i would not recommend going there, if you are a fresher
with flex. 

mm.. so wipro has flex developers.. !!! .. where are u guys
located. 

regards,
Varun Shetty



On Fri, May 30, 2008 at 6:31 AM, [EMAIL PROTECTED] wrote:




  Hi All, 

Could any one help me in how can I share a set of string
variables available in my homePage.mxml to be available to all other
mxml files as well as with the script blocks in other mxml files in the
same project as well, on the other referenced flex projects as well.

Initially I tried with 

Approach 1: 
[Bindable] 
public static var TestValue:String = null; 
However this bindable value was not visible in other
mxml files. 

Thanks in advance for your time and help. 

Regards, 
Madhu K 

Please do not print this email unless it is absolutely
necessary. Spread environmental awareness. 

 



[flexcoders] Amazing tool for Flex (Firebug for Flex)

2008-06-05 Thread bbloggs96
I just discovered this Library, that can be added into your Flex app.

It is fantastic, easy to add to your project, and just works:

http://code.google.com/p/fxspy/

It is like Firebug but for Flex, I particularly liked the find
component functionality!

Andrew



[flexcoders] OT (slightly) Gold standard method to make a web Flex app truly skinnable.

2008-06-05 Thread David Kramer
Hello All, 

 

I'm beginning a project Flex, CF, IIS and SQL, and this time I'm finally
going to make sure we all do the proper requirements gathering and research
of best practices before writing code (or at least as little as possible).

 

Therefore, I thought I'd ask the group to point me in the direction to solid
documentation on the best methods on making a Flex app truly skinnable, from
the fonts, (English to Hebrew) to colors, and images, etc. based upon manual
user selection or auto based upon best guess of global location
automatically, or both.

 

Seems monumental, but someone's done it and it's written somewhere I assume.

 

Any help is appreciated.

 

Thanks.

 

David Kramer, CISSP

Secure.Patterns()

 mailto:[EMAIL PROTECTED] [EMAIL PROTECTED]

206.792.6751

isc2_cissp_cert_logo

 

image001.gif

[flexcoders] Re: Flex Builder 2 debugger

2008-06-05 Thread jefainer
Bump
--- In flexcoders@yahoogroups.com, jefainer [EMAIL PROTECTED] wrote:

 Has anyone seen a good tutorial on use Flex builder 2 debugger over
 https on a remote server? Everything works fine on an http session but
 I can't seem to get the debugger working over https. I have a minor
 data structure issue I'm having difficulty working through and was
 trying to avoid moving back to a http only build. I would then just
 have to re-verify it all on ssl later anyway. 
 
 Jim





[flexcoders] Error #2025: The supplied DisplayObject must be a child

2008-06-05 Thread venkata.jonnakuti
Hi I am using Flex Builder 3.When i click on line chart this error is
coming.Any suggestions please.

ArgumentError: Error #2025: The supplied DisplayObject must be a child
of the caller.
   at flash.display::DisplayObjectContainer/getChildIndex()
   at
mx.managers::SystemManager/getChildIndex()[E:\dev\3.0.x\frameworks
\projects\framework\src\mx\managers\SystemManager.as:1286]
   at mx.managers::SystemManager/mouseDownHandler()[E:\dev\3.0.x
\frameworks\projects\framework\src\mx\managers\SystemManager.as:2620]


Thanks in advance 






-Original Message-
From: flexcoders Moderator [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 05, 2008 10:17 AM
To: Venkata Jonnakuti (WT01 - TES-Enterprise Networks)
Subject: Yahoo! Groups: Welcome to flexcoders. Visit today! 


Hello,

Welcome to the flexcoders group at Yahoo! Groups, a free, easy-to-use
email group service. Please take a moment to review this message.

To learn more about the flexcoders group, please visit
http://www.flexcoders.org or http://groups.yahoo.com/group/flexcoders

To start sending messages to members of this group, simply send email to
flexcoders@yahoogroups.com

If you do not wish to belong to flexcoders, you may unsubscribe by
sending an email to [EMAIL PROTECTED]

To see and modify all of your groups, go to
http://groups.yahoo.com/mygroups


Regards,

Moderator, flexcoders

 


Your use of Yahoo! Groups is subject to
http://docs.yahoo.com/info/terms/ 

 





RE: [flexcoders] The supplied DisplayObject must be a child

2008-06-05 Thread Venky999

Hi Smith,

Thanks for your reply.Please the bellow code.

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
creationComplete=getinitVars() height=684 width=838

mx:RemoteObject id=ForecastVsSchVsActualAgentService
showBusyCursor=true fault=onFault(event)
destination=ForecastVsSchVsActualAgentService
mx:method name = getData result = onResultGetList(event) fault =
onFault(event) /
mx:method name = getServiceName result = 
onResultGetServiceName(event)
fault = onFault1(event) /
/mx:RemoteObject

mx:Metadata
[ResourceBundle(wfmGResources)]
/mx:Metadata

mx:Label
text={resourceManager.getString('wfmGResources','FORECASTSCHACTUALAGENTS')}
fontFamily=Verdana fontSize=16 fontWeight=bold textAlign=center
paddingBottom=0 kerning=false paddingLeft=0 paddingRight=0
paddingTop=0/

mx:Form height=27 paddingTop=1 paddingBottom=1 paddingRight=1
paddingLeft=1
mx:FormItem
label={resourceManager.getString('wfmGResources','SERVICENAME')}
fontWeight=bold fontSize=14 fontFamily=Verdana
   mx:Label id=lb1_ServiceName/
/mx:FormItem
/mx:Form

mx:Stroke id=axisStroke weight=4 alpha=.45  caps=round
color=884422/

mx:Panel height=556 width=762 layout=horizontal
mx:ViewStack id=vs height=504 width=731
mx:Canvas 
mx:LineChart id=linechart height=460 width=710
paddingLeft=5 paddingRight=5 
showDataTips=true dataProvider={wfmList} y=10 x=10
 
mx:horizontalAxis
mx:LinearAxis id=HA title=Time by half hour interval
autoAdjust=true  minimum=0 maximum=150
interval={(HA.maximum-HA.minimum)/5}/
/mx:horizontalAxis
mx:horizontalAxisRenderers
mx:AxisRenderer axis={HA}
mx:axisStroke{axisStroke}/mx:axisStroke
/mx:AxisRenderer
/mx:horizontalAxisRenderers

mx:verticalAxis
mx:LinearAxis id=VA title=Calls Agents 
autoAdjust=false
minimum=-1 maximum=59 interval={(VA.maximum-VA.minimum)/12}/
/mx:verticalAxis
mx:verticalAxisRenderers
mx:AxisRenderer axis={VA}
mx:axisStroke
{axisStroke}
/mx:axisStroke
/mx:AxisRenderer
/mx:verticalAxisRenderers

mx:series
mx:LineSeries
itemRenderer=mx.charts.renderers.CircleItemRenderer radius=4
yField=ForecastAgents
displayName={resourceManager.getString('wfmGResources','FORECASTAGENTS')}/
mx:LineSeries
itemRenderer=mx.charts.renderers.CircleItemRenderer radius=4
yField=ScheduledAgents
displayName={resourceManager.getString('wfmGResources','SCHEDULEDAGENTS')}/
mx:LineSeries
itemRenderer=mx.charts.renderers.CircleItemRenderer radius=4
yField=ActualAgents
displayName={resourceManager.getString('wfmGResources','ACTUALAGENTS')}/
/mx:series
/mx:LineChart
mx:Legend dataProvider={linechart} direction=horizontal y=475
x=19/
/mx:Canvas
/mx:ViewStack 
mx:Script![CDATA[
public function getinitVars():void{
startDate = 
Application.application.parameters.startDate;
endDate = 
Application.application.parameters.endDate;
Id = Application.application.parameters.id;
localeLanguage = 
Application.application.parameters.localeLanguage;
localeCountry = 
Application.application.parameters.localeCountry;
localeVariant = 
Application.application.parameters.localeVariant;


ForecastVsSchVsActualAgentService.getData(startDate,endDate,Id,localeLanguage,localeCountry,localeVariant);

ForecastVsSchVsActualAgentService.getServiceName(Id);

newLocale =  formLocaleString(localeLanguage,
localeCountry,localeVariant);
resourceModuleURL = Resources_ + newLocale + 
.swf;
var eventDispatcher:IEventDispatcher
=resourceManager.loadResourceModule(resourceModuleURL); 

eventDispatcher.addEventListener(ResourceEvent.COMPLETE,completeHandler); 

}

private function formLocaleString(language:String, 
country:String,
variant:String):String {
var locale:String;  


if( language != null  ){
if( country != null){
  

Re: [flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-05 Thread andrea bianchi
Thank you for your answers.

Alex: I could try to write an application that loads my swf, but actually I
think the swf should work fine since I can run it from debug players. What
do you mean with deploying a release swf? I just omitted the
-compiler.debug directive and put false as the value of the debug tag
in flex-config.xml. Is it right?

Tracy: I don't think an error occurs, since I don't see anything while
running my app in a debug player.

Andrea

On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt [EMAIL PROTECTED] wrote:

Does your app do a data service call on start-up?  Perhaps you have a
 security problem that is causing an error on the non-development system, and
 the release player is not displaying the error.



 Try to run the app on a non-dev system, but use the debug player.



 Tracy


  --

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *andrea bianchi
 *Sent:* Wednesday, June 04, 2008 10:23 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Please, help: the release player displays a blank
 page in all browsers.



 I'm experiencing a strange issue: I'm not able to run my Flex app using the
 release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47 and
 IE7/player 9.0.124). The page contains a blank swf (when I right click I can
 see the Flash player menu). The same application works in all browsers using
 a debug player. The swf doesn't work even if I try to access it directly,
 while I'm able to run other Flex applications both standalone and using the
 HTML wrapper.
 I'm using the Flex 2 SDK hotfix 2 command line compiler.
 I actually don't know what has caused this behaviour since I use a debug
 player 99% of time... a colleague discovered this while testing the
 application. A possibile hint: this morning, using the debug player,  I saw
 a popup window prompting me for the location of the debugger or the
 profiler: this happens occasionally and, until now, I didn't pay much
 attention to it (don't know exactly why it appears, I'm compiling using the
 same options since many months). When I switched to the runtime player the
 swf seemed to freeze at the same point, though in this case I didn't see the
 popup window. Maybe this window and the blank page issue are related?
 Obviously I cannot force my customers to install a debug player ;-)

 Any help appreciated.

 Bye,

 Andrea
   



Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
If you actually need to develop .net, run windows. If you just need to run
it for some reason, VMWare is fine, although I prefer soapUI and a seperate
server to run the real services (we're Oracle, not .net but Windows is
Windows).

-Josh

On Thu, Jun 5, 2008 at 10:16 PM, Anatole Tartakovsky 
[EMAIL PROTECTED] wrote:

   You do need windows for development.
 I have Server 2008 in VMWare Fusion  running OK - you really need 3 things
 to get reasonable performance:1. A lot of RAM
 2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
 access/performance of the native apple hardware like bluetooth, camera, etc
 3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode -
 cures are available on Web

 Other option is to have bootcamp installed on the second partition - with
 250/320 GB drive you can get reasonably configured dual boot system.

 Regards,
 Anatole


 On Thu, Jun 5, 2008 at 6:41 AM, b_alen [EMAIL PROTECTED] wrote:

   Desktop is out of the question. Any experience with .net on Mac?


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Dmitri
 Girski [EMAIL PROTECTED] wrote:
 
  I am just wondering, why everyone is thinking about Mac laptops?
 
  IMHO, it does not worth it. The beauty of Mac is the 24 iMac screen.
  If you try it you will never go back to the laptops again.
 
  Cheers,
  Dmitri.
 
 
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 b_alen alen.balja@ wrote:
  
   Interesting. Me and my colleagues are also thinking of switching to
   Mac due to Vista crappiness. In fact we're 80% sure that next laptops
   will be Macs. My only concern is how to do .Net development and
   integration with Flex then. Anyone has a solution to that?
  
  
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 scottyale2008 scottyale2008@
   wrote:
   
How many Flex developers here are using a Mac for development?
 I've
been a die hard Microsoft guy since ... well, since Microsoft first
started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
computers with a Turbo button!), then Windows, now Vista. I do
  have an
iPhone and it is an incredible device and the GUI is extremely well
done. I've never used a Mac, but many of my friends have taken
 the
plunge. Is it time to make the switch? I'm thinking about a Mac
  Book
Pro. Is a Mac Book even worth considering for a Flex dev machine
  or is
a Mac Book Pro the way to go? Anybody else make the switch
 recently
from Windows to Mac?
   
  
 


  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread b_alen
Would Parallels do the job? Just to switch to Windows, copy my swf in
the IIS and test some stuff there. I wouldn't spend a lot of time on
the .NET side, probably 15% of overall development time. 



--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 If you actually need to develop .net, run windows. If you just need
to run
 it for some reason, VMWare is fine, although I prefer soapUI and a
seperate
 server to run the real services (we're Oracle, not .net but Windows is
 Windows).
 
 -Josh
 
 On Thu, Jun 5, 2008 at 10:16 PM, Anatole Tartakovsky 
 [EMAIL PROTECTED] wrote:
 
You do need windows for development.
  I have Server 2008 in VMWare Fusion  running OK - you really need
3 things
  to get reasonable performance:1. A lot of RAM
  2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
  access/performance of the native apple hardware like bluetooth,
camera, etc
  3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode -
  cures are available on Web
 
  Other option is to have bootcamp installed on the second partition
- with
  250/320 GB drive you can get reasonably configured dual boot system.
 
  Regards,
  Anatole
 
 
  On Thu, Jun 5, 2008 at 6:41 AM, b_alen [EMAIL PROTECTED] wrote:
 
Desktop is out of the question. Any experience with .net on Mac?
 
 
  --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
Dmitri
  Girski mitek17@ wrote:
  
   I am just wondering, why everyone is thinking about Mac laptops?
  
   IMHO, it does not worth it. The beauty of Mac is the 24 iMac
screen.
   If you try it you will never go back to the laptops again.
  
   Cheers,
   Dmitri.
  
  
  
  
   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  b_alen alen.balja@ wrote:
   
Interesting. Me and my colleagues are also thinking of
switching to
Mac due to Vista crappiness. In fact we're 80% sure that next
laptops
will be Macs. My only concern is how to do .Net development and
integration with Flex then. Anyone has a solution to that?
   
   
   
   
   
--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
  scottyale2008 scottyale2008@
wrote:

 How many Flex developers here are using a Mac for development?
  I've
 been a die hard Microsoft guy since ... well, since
Microsoft first
 started. I went from CPM on a Morrow Meadows to Microsoft
DOS (on
 computers with a Turbo button!), then Windows, now Vista. I do
   have an
 iPhone and it is an incredible device and the GUI is
extremely well
 done. I've never used a Mac, but many of my friends have taken
  the
 plunge. Is it time to make the switch? I'm thinking about a Mac
   Book
 Pro. Is a Mac Book even worth considering for a Flex dev
machine
   or is
 a Mac Book Pro the way to go? Anybody else make the switch
  recently
 from Windows to Mac?

   
  
 
 
   
 
 
 
 
 -- 
 Therefore, send not to know For whom the bell tolls. It tolls for
thee.
 
 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]





[flexcoders] Re: dragDrop function working, but not properly

2008-06-05 Thread bredwards358
It is unfourtunately, even if it is being set to 0 it keeps
incrementing itself along with the growing dataProvider of the
dropTarget, I think I may have done something wrong to where it is not
seeing the identical values of the duplicate entry and is simply going
forward.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 I'd double check.  The for loop must be starting with I == 0.  It can't
 be starting at 1.
 
  
 
 




[flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Body Works Studio
Also if there is not a known component, could someone please give me
some suggestions on what components would work best to do the layout?

thanks

Jeff


--- In flexcoders@yahoogroups.com, Body Works Studio
[EMAIL PROTECTED] wrote:

 Hi all,
 
 Does anyone know if there is a project or a component that will build
 tag cloud in flex? 
 
 thanks
 
 Jeff





[flexcoders] Re: resizin button with the container Tile

2008-06-05 Thread valdhor
From memory (This is from the training from the source book) you need
to use a constraint based layout.

In other words, a component can be constrained to stay with a
particular side of its parent by setting the top, left, bottom and/or
right attributes.



--- In flexcoders@yahoogroups.com, hworke [EMAIL PROTECTED] wrote:

 
 
Hi I have a set of buttons that I add
to a Tile. The Tile is resize able and
the buttons' width are a % of the Tile's width. But
When the Tile resizes the child buttons
do not resize automatically which I thought
it should since buttons' width is a % of
tile's width. How do I solve this?
 
Thanks...





[flexcoders] Re: How do I find a row in a datagrid, then cause it to be clicked?

2008-06-05 Thread Unknown
Dom,
I got my issue resolved.

Unfortunately my list box only has two columns of the datagrid, so not an exact 
object match. However, my datagrid is an ArrayCollection. So I took the unique 
value from my listbox and just did a while loop through the ArrayCollection and 
casting each item to an Object using:
myObject = myArrayCollection.getItemAt(index).

Then I just compared the value from my list box to the unique value in my 
ArrayCollection:
if (myObject.myDataValue == myListBoxDataValue)
{
// scroll to the row
datagrid.scrollToIndex(index);
// now highlight the row
datagrid.selectedIndex = index; 
}

I didn't need to trigger a mouse click on that row like I thought. In my 
datagrid I had a handler for the itemClick event, so I just called that method.

Thanks for the guidance.
Greg

Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
Probably. Visual studio's gotta be faster than eclipse the POS (if only
builder had been built atop intelliJ), and I ran builder in parallels for a
few weeks before switch from builder 2 to the builder 3 beta. I had to use
the windows version of builder 2 because it takes Adobe so fucking long to
convert a license across platforms we went through 2 betas and the final
release of 3, without ever getting the damned thing. The only real problem
was the lack of support for dual monitors.

-Josh

On Thu, Jun 5, 2008 at 10:55 PM, b_alen [EMAIL PROTECTED] wrote:

   Would Parallels do the job? Just to switch to Windows, copy my swf in
 the IIS and test some stuff there. I wouldn't spend a lot of time on
 the .NET side, probably 15% of overall development time.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  If you actually need to develop .net, run windows. If you just need
 to run
  it for some reason, VMWare is fine, although I prefer soapUI and a
 seperate
  server to run the real services (we're Oracle, not .net but Windows is
  Windows).
 
  -Josh
 
  On Thu, Jun 5, 2008 at 10:16 PM, Anatole Tartakovsky 
  [EMAIL PROTECTED] wrote:
 
   You do need windows for development.
   I have Server 2008 in VMWare Fusion running OK - you really need
 3 things
   to get reasonable performance:1. A lot of RAM
   2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
   access/performance of the native apple hardware like bluetooth,
 camera, etc
   3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode -
   cures are available on Web
  
   Other option is to have bootcamp installed on the second partition
 - with
   250/320 GB drive you can get reasonably configured dual boot system.
  
   Regards,
   Anatole
  
  
   On Thu, Jun 5, 2008 at 6:41 AM, b_alen [EMAIL PROTECTED] wrote:
  
   Desktop is out of the question. Any experience with .net on Mac?
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
 Dmitri
   Girski mitek17@ wrote:
   
I am just wondering, why everyone is thinking about Mac laptops?
   
IMHO, it does not worth it. The beauty of Mac is the 24 iMac
 screen.
If you try it you will never go back to the laptops again.
   
Cheers,
Dmitri.
   
   
   
   
--- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   b_alen alen.balja@ wrote:

 Interesting. Me and my colleagues are also thinking of
 switching to
 Mac due to Vista crappiness. In fact we're 80% sure that next
 laptops
 will be Macs. My only concern is how to do .Net development and
 integration with Flex then. Anyone has a solution to that?





 --- In flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   scottyale2008 scottyale2008@
 wrote:
 
  How many Flex developers here are using a Mac for development?
   I've
  been a die hard Microsoft guy since ... well, since
 Microsoft first
  started. I went from CPM on a Morrow Meadows to Microsoft
 DOS (on
  computers with a Turbo button!), then Windows, now Vista. I do
have an
  iPhone and it is an incredible device and the GUI is
 extremely well
  done. I've never used a Mac, but many of my friends have taken
   the
  plunge. Is it time to make the switch? I'm thinking about a Mac
Book
  Pro. Is a Mac Book even worth considering for a Flex dev
 machine
or is
  a Mac Book Pro the way to go? Anybody else make the switch
   recently
  from Windows to Mac?
 

   
  
  
  
  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Andrew Wetmore
Are you susceptible to coding the thing in SwishMax and then using the
resulting Flash movie as a plugin? Here is part one of a two-part tutorial
about building a really cool linksphere:

http://blog.swishzone.com/?p=73




-- 
Andrew Wetmore
User Experience Director
Open Learning Exchange - www.ole.org
978-319-7324


[flexcoders] Re: how to keep slide thumb in hslide can not be dragged

2008-06-05 Thread valdhor
enabled = false?

--- In flexcoders@yahoogroups.com, markflex2007 [EMAIL PROTECTED]
wrote:

 Thanks Daniel
 
 But mouseEnabled = false doens't work.
 
 I hope the value of hslide can be changed with code and do not allow
 people to change it with draging the slide thumb in visual interface.
 
 Thanks .please help me
 
 Mark
 
 --- In flexcoders@yahoogroups.com, Daniel Freiman FreimanCQ@ wrote:
 
  Will mouseEnabled = false; work?
  
  On Wed, Jun 4, 2008 at 3:23 PM, markflex2007 markflex2007@ wrote:
  
 Hi
  
   I did this but it just move back and I need set the hslide value
from
   code and do not allow it draggable.I need the hslide just show the
 result.
  
   mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
   layout=absolute
   mx:HSlider id=h1 x=89 y=173 minimum=0 maximum=10
   value=4 width=260
   thumbPress=getvalue() allowTrackClick=false
   liveDragging=false change =keepvalue()/
   mx:Script
   ![CDATA[
   import mx.controls.Alert;
  
   private var temp:Number;
  
  
   private function keepvalue():void{
  
  
   h1.value = temp;
   }
  
   private function getvalue():void{
  
   temp = h1.value;
  
   }
   ]]
   /mx:Script
   /mx:Application
  
   Please give me a idea
  
   Thanks
  
   Mark
  

  
 





Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Anatole Tartakovsky
If you need to build VM on Windows or move / offload server at any time to
windows or linux server then VMWare is your solution. Also, VMWare is more
flexible in network configuration. In terms of footprint and performance
fusion and parallel are very close.Regards,
Anatole


On Thu, Jun 5, 2008 at 8:55 AM, b_alen [EMAIL PROTECTED] wrote:

   Would Parallels do the job? Just to switch to Windows, copy my swf in
 the IIS and test some stuff there. I wouldn't spend a lot of time on
 the .NET side, probably 15% of overall development time.

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Josh
 McDonald [EMAIL PROTECTED] wrote:
 
  If you actually need to develop .net, run windows. If you just need
 to run
  it for some reason, VMWare is fine, although I prefer soapUI and a
 seperate
  server to run the real services (we're Oracle, not .net but Windows is
  Windows).
 
  -Josh
 
  On Thu, Jun 5, 2008 at 10:16 PM, Anatole Tartakovsky 
  [EMAIL PROTECTED] wrote:
 
   You do need windows for development.
   I have Server 2008 in VMWare Fusion running OK - you really need
 3 things
   to get reasonable performance:1. A lot of RAM
   2. Use bootcamp drivers in VMWare on the top of Fusion ones to get
   access/performance of the native apple hardware like bluetooth,
 camera, etc
   3. Fine tune VMWare as it tends to grab 1 CPU 100% in multicore mode -
   cures are available on Web
  
   Other option is to have bootcamp installed on the second partition
 - with
   250/320 GB drive you can get reasonably configured dual boot system.
  
   Regards,
   Anatole
  
  
   On Thu, Jun 5, 2008 at 6:41 AM, b_alen [EMAIL PROTECTED] wrote:
  
   Desktop is out of the question. Any experience with .net on Mac?
  
  
   --- In flexcoders@yahoogroups.com 
   flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
 Dmitri
   Girski mitek17@ wrote:
   
I am just wondering, why everyone is thinking about Mac laptops?
   
IMHO, it does not worth it. The beauty of Mac is the 24 iMac
 screen.
If you try it you will never go back to the laptops again.
   
Cheers,
Dmitri.
   
   
   
   
--- In flexcoders@yahoogroups.com 
flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,
   b_alen alen.balja@ wrote:

 Interesting. Me and my colleagues are also thinking of
 switching to
 Mac due to Vista crappiness. In fact we're 80% sure that next
 laptops
 will be Macs. My only concern is how to do .Net development and
 integration with Flex then. Anyone has a solution to that?





 --- In flexcoders@yahoogroups.com 
 flexcoders%40yahoogroups.comflexcoders%
 40yahoogroups.com,

   scottyale2008 scottyale2008@
 wrote:
 
  How many Flex developers here are using a Mac for development?
   I've
  been a die hard Microsoft guy since ... well, since
 Microsoft first
  started. I went from CPM on a Morrow Meadows to Microsoft
 DOS (on
  computers with a Turbo button!), then Windows, now Vista. I do
have an
  iPhone and it is an incredible device and the GUI is
 extremely well
  done. I've never used a Mac, but many of my friends have taken
   the
  plunge. Is it time to make the switch? I'm thinking about a Mac
Book
  Pro. Is a Mac Book even worth considering for a Flex dev
 machine
or is
  a Mac Book Pro the way to go? Anybody else make the switch
   recently
  from Windows to Mac?
 

   
  
  
  
  
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 

  



[flexcoders] Fisheye component.

2008-06-05 Thread sudha_bsb
Hi,

I am using Ely greenfield Fisheye component. I have a requirement like
some of items in fisheye menu should be not be zoomed and some of them
should be zoomed.

I just want to keep an image divider between menu items which should
be not be zoomed when the mouse moves over it.

Also, is there are way to make the fish eye component more smoother
than the existing one...

Thanks,
Sudha.



[flexcoders] warning: unable to bind to property 'name' on class 'ExtendedDataItem'

2008-06-05 Thread Ritesh
Hi

Please suggest how can i rectify that.

Thanks in advance.



Re: [flexcoders] Keep combobox open to allow multiselect

2008-06-05 Thread Felipe Fernandes
Ram,

The component you are trying to create shouldn´t exetend the combobox
for two reasons, first you would have to override a lot of the
combobox methods and second  (and for me the most important) you would
break the common sense of how a combobox should behave for example if
it doesn´t close when you select an item when it closes? What you are
going to show when the user select five items?

If I where you I would make that componente based in the canvas or the
vbox container and give it a diferent look form the combobox (after
all as I said the feel is alredy diferent), you could use a label and
a button (for the closed look) and a list with checkboxes itemEditors
(for the opened look)

Felipe

On Thu, Jun 5, 2008 at 7:31 AM, rviswanathan [EMAIL PROTECTED] wrote:

 I am still not clear on how this can be done. I must use a combobox (this is
 a must-have for me). This is what I attempted... can you please give some
 pointers based on my code below?

 ?xml version=1.0 encoding=utf-8?
 mx:ComboBox xmlns:mx=http://www.adobe.com/2006/mxml; change=close()
 mx:Script
 ![CDATA[

 override public function close(trigger:Event = null):void {
 //Do nothing
 }
 ]]
 /mx:Script
 mx:dropdownFactory
 mx:Component
 mx:List
 mx:itemRenderer
 mx:Component
 mx:CheckBox selectedField=isSelected
 click=onChange(event);
 mx:Script
 ![CDATA[
 private function onChange(evt:Event):void {
 data.isSelected = !data.isSelected;
 }
 ]]
 /mx:Script
 /mx:CheckBox
 /mx:Component
 /mx:itemRenderer
 /mx:List
 /mx:Component
 /mx:dropdownFactory
 /mx:ComboBox

 Thanks
 Ram

 --

 rviswanathan wrote:

 Hi

 I have created a combo box with a checkbox renderer on each of its items.
 When I select an entry in the combobox, the box closes automatically.

 I want to prevent his so that I can multiselect elements in the combobox.

 Is there a way to do this? Even if I extend the ComboBox and override its
 close method, the combobox still closes (and I realized that there is a
 private method in ComboBox.as called destroyDropdown() which gets called
 when the collection that the combobox holds changes.

 Thanks
 Ram


 --
 View this message in context:
 http://www.nabble.com/Keep-combobox-open-to-allow-multiselect-tp17644507p17666884.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 



-- 
Felipe - http://bobfernandes.wordpress.com


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread David Pariente
Well, i guess there are many solutions...but one, maybe not viable cause of the 
crappy OS, is putting windows inside the mac.
Another could be putting linux inside, and use the MONO development framework 
(similar or compatible with .Net, i'm not sure).

In this 2 options u allways will have a quality hardware in the back (that mac).

The 3rd would b getting .Net for the mac (isn't there a mac version??).

and the 4rth, my personal oppinion, would b not using .Net at all. I can't 
trust/stand/support MS in anything they do XD haha just a joke ;)

By the way, im also willing to change into Mac as soon as i get the money :) 
and work with macOS and Linux.


- Mensaje original 
De: b_alen [EMAIL PROTECTED]
Para: flexcoders@yahoogroups.com
Enviado: jueves, 5 de junio, 2008 11:44:42
Asunto: [flexcoders] Re: Thinking about going to the dark sideApple Mac Book


Interesting. Me and my colleagues are also thinking of switching to
Mac due to Vista crappiness. In fact we're 80% sure that next laptops
will be Macs. My only concern is how to do .Net development and
integration with Flex then. Anyone has a solution to that?

--- In [EMAIL PROTECTED] ups.com, scottyale2008 scottyale2008@ ...
wrote:

 How many Flex developers here are using a Mac for development?  I've 
 been a die hard Microsoft guy since ... well, since Microsoft first 
 started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
 computers with a Turbo button!), then Windows, now Vista.  I do have an 
 iPhone and it is an incredible device and the GUI is extremely well 
 done.   I've never used a Mac, but many of my friends have taken the 
 plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
 Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
 a Mac Book Pro the way to go?   Anybody else make the switch recently 
 from Windows to Mac?





  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Ben Marchbanks
At the risk of firing up this debate to a frenzy,  what about runing  macOSX on 
a  PC box ?

http://www.psystar.com/


Ben Marchbanks

::: magazooms :::
digital publishers,  taking print beyond paper..

http://www.magazooms.com

Greenville, SC
864.284.9918

David Pariente wrote:
 
 
 Well, i guess there are many solutions...but one, maybe not viable cause 
 of the crappy OS, is putting windows inside the mac.
 Another could be putting linux inside, and use the MONO development 
 framework (similar or compatible with .Net, i'm not sure).
 
 In this 2 options u allways will have a quality hardware in the back 
 (that mac).
 
 The 3rd would b getting .Net for the mac (isn't there a mac version??).
 
 and the 4rth, my personal oppinion, would b not using .Net at all. I 
 can't trust/stand/support MS in anything they do XD haha just a joke ;)
 
 By the way, im also willing to change into Mac as soon as i get the 
 money :) and work with macOS and Linux.
 
 - Mensaje original 
 De: b_alen [EMAIL PROTECTED]
 Para: flexcoders@yahoogroups.com
 Enviado: jueves, 5 de junio, 2008 11:44:42
 Asunto: [flexcoders] Re: Thinking about going to the dark sideApple 
 Mac Book
 
 Interesting. Me and my colleagues are also thinking of switching to
 Mac due to Vista crappiness. In fact we're 80% sure that next laptops
 will be Macs. My only concern is how to do .Net development and
 integration with Flex then. Anyone has a solution to that?
 
 --- In [EMAIL PROTECTED] ups.com 
 mailto:flexcoders%40yahoogroups.com, scottyale2008 scottyale2008@ ...
 wrote:
  
   How many Flex developers here are using a Mac for development? I've
   been a die hard Microsoft guy since ... well, since Microsoft first
   started. I went from CPM on a Morrow Meadows to Microsoft DOS (on
   computers with a Turbo button!), then Windows, now Vista. I do have an
   iPhone and it is an incredible device and the GUI is extremely well
   done. I've never used a Mac, but many of my friends have taken the
   plunge. Is it time to make the switch? I'm thinking about a Mac Book
   Pro. Is a Mac Book even worth considering for a Flex dev machine or is
   a Mac Book Pro the way to go? Anybody else make the switch recently
   from Windows to Mac?
  
 
 
 
 
 Enviado desde Correo Yahoo! 
 http://us.rd.yahoo.com/mailuk/taglines/isp/control/*http://us.rd.yahoo.com/evt=52431/*http://es.docs.yahoo.com/mail/overview/index.html
 La bandeja de entrada más inteligente.
 

-- 
Ben Marchbanks

::: magazooms :::
digital publishers,  taking print beyond paper..

http://www.magazooms.com

Greenville, SC
864.284.9918


[flexcoders] Re: How to remeasure itemRenderer

2008-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 It has nothing to do with rendererChanged, that would be if you 
changed
 the classFactory for the renderer.
 
  
 
 List also has makeRowsAndColumns.  If you can't set a breakpoint, that
 makes me think your source is not in sync with the swcs.

How do I fix that?

Thanks;

Amy



[flexcoders] how to call a function automatically?

2008-06-05 Thread markflex2007
Hi,

I want to call a function in flex every minute to check the data
change in database.

Maybe I need build a timer to trig the function automatically ?

Which class I can use to do this in Flex?

Please give me a idea.Thanks

Mark



RES: [flexcoders] how to call a function automatically?

2008-06-05 Thread Luciano Manerich Junior
Hi,
 
the Timer Class:
 
http://livedocs.adobe.com/flex/2/langref/flash/utils/Timer.html
 
You'll get a lot of samples googling about flex timer



De: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] Em
nome de markflex2007
Enviada em: quinta-feira, 5 de junho de 2008 11:25
Para: flexcoders@yahoogroups.com
Assunto: [flexcoders] how to call a function automatically?



Hi,

I want to call a function in flex every minute to check the data
change in database.

Maybe I need build a timer to trig the function automatically ?

Which class I can use to do this in Flex?

Please give me a idea.Thanks

Mark



 


[flexcoders] Flex access to Browser Properties

2008-06-05 Thread grizalum
I am needing to know some basic information about the browser in which 
my app is running...minimally I would like to know the dimensions 
(height, width) of the browser and if it is maximized. Although, if I 
can get the browsers height and width I believe that I should be able 
to determine maximization state by using the Capabilities class and 
making use of the screen's resolution.

I would also like to be able to determine the same information that the 
viewMetricsAndPadding provide. However, if I can get the height and 
width of the browser, I believe that the SystemManager height/width 
would be sufficent for me to determine the same information that the 
view (Edge) metrics would provide.

Is there a way, from within flex, to access these browser properties?



[flexcoders] Check out my Facebook profile

2008-06-05 Thread Fernando Koike

I set up a Facebook profile where I can post my pictures, videos and events and 
I want to add you as a friend so you can see it. First, you need to join 
Facebook! Once you join, you can also create your own profile.

Thanks,
Fernando

Here's the link:
http://www.facebook.com/p.php?i=736277703k=YV135ZQSTYXMXCAHWB2XRrv=2

___
This e-mail may contain promotional materials. If you do not wish to receive 
future commercial mailings from Facebook, please click on the link below. 
Facebook's offices are located at 156 University Ave., Palo Alto, CA 94301.
http://www.facebook.com/o.php?u=715860443k=21d3f5



[flexcoders] Re: dragDrop function working, but not properly

2008-06-05 Thread bredwards358
I believe I fixed my problem, I think the reason it wasn't seeing the
identical value in the array representing the dragged item was because
it did not know it's index so I changed this:
---
private function dragToOrders(event:DragEvent):void
{
 try
 {
 var draggedItems:Object = new Object();
 draggedItems =  event.dragSource.dataForFormat(items);
 var n:int = orderDetailArray.length;

for (var i:int = 0; i  n; i++)//Looping through to check for
duplicate entries
{
  if (orderDetailArray[i].ProductID == draggedItems.ProductID)
   {
 orderDetailArray[i].Qty ++;
 event.preventDefault();
 return;
   }
}
 }
 catch(ex:Error)
 {
 trace(ex);
 trace(ex.getStackTrace());
 }
}
---
To this:
---
private function dragToOrders(event:DragEvent):void
{
 try
 {
 var draggedItems:Object = new Object();
 draggedItems =  event.dragSource.dataForFormat(items);
 var n:int = orderDetailArray.length;

for (var i:int = 0; i  n; i++)//Looping through to check for
duplicate entries
{
  if (orderDetailArray[i].ProductID == draggedItems[0].ProductID)
   {
 orderDetailArray[i].Qty ++;
 event.preventDefault();
 return;
   }
}
 }
 catch(ex:Error)
 {
 trace(ex);
 trace(ex.getStackTrace());
 }
}
---
No errors thrown, no duplicate entries, however when I trace the value
of orderDetailArray[i].Qty I get NaN which I assume means Not a
Number what I'm guessing here is that it is trying increment from a
null value which is of course, Not a Number. So I think all that's
needed then is to simply put in a default value of 1 for the first entry
in the dataProvider.


Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread dnk

FYI,

VMWare fusion 2 (now in beta) apparently has dual monitor support in  
VM's.


dnk


On 5-Jun-08, at 6:11 AM, Josh McDonald wrote:


The only real problem was the lack of support for dual monitors.

-Josh




[flexcoders] Re: Getting PropertyChangeEvent to work properly

2008-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, superbokbok [EMAIL PROTECTED] 
wrote:

 My class is extending the EventDispatcher class.
 Here's a snippet of the class:
 
 package com.superbokbok.irisreader
 {
  import com.adobe.xml.syndication.generic.*;
 
  import flash.events.EventDispatcher;
  import mx.collections.ArrayCollection;
  import mx.events.PropertyChangeEvent;
  import mx.rpc.events.FaultEvent;
  import mx.rpc.events.ResultEvent;
  import mx.rpc.http.HTTPService;
 
  [Bindable]
  public class Subscription extends EventDispatcher


I think you need to use [Bindable (event=propertyChange)] to get it 
to work with a property that has a getter only.

HTH;

Amy



Re: [flexcoders] Flex + WebORB for PHP, A very strage problem

2008-06-05 Thread Manu Dhanda

Hii..

Anyone of you experts with a solution for my problem??
Am really worried for this little boolean problem.

Manu.



Uber_Nick wrote:
 
 Manu,
 
 Note the following.
 trace(Boolean('TRUE')); // returns true
 trace(Boolean('FALSE')); // also returns true
 
 Flex is interpreting the result from your PHP call as a String.  Try
 returning lower-case 'true' and 'false'.  Also, try using:
 list[i].aircon as Boolean 
 instead of:
 Boolean(list[i].aircon)
 The former will not always convert to true (but will return null if it
 can't convert).  Lastly, if you can't make it work, just try this
 workaround:
 vo.aircon = (''+list[i].aircon).toLowerCase()=='true';
 
 -Nick Matelli
 Amentra, Inc
 
 --- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED] wrote:

 
 Code for my Responder, where I am receiving the result:
  public function result(data:Object):void
  {
  //TODO: implement function
  var objList:ArrayCollection = new ArrayCollection();
  var list:ArrayCollection = new 
 ArrayCollection(data.result as Array);
  var vo:FlatVO;
  for(var i:int=0; ilist.length; i++){
  vo = new FlatVO();
  vo.userId = int(list[i].userId);
  vo.aircon = Boolean(list[i].aircon);
  objList.addItem(vo);
  }
 
 In here, I supposed to get vo.aircon as boolean[values as true/false for
 different rows/objects in FlatVO]. But, the strange thing is that I am
 receiving all the values for my boolean type as TRUE only.
 
 I had verified on my server side PHP code, and it is returning the
 corresponding values fine [as in TRUE and FALSE accordingly].
 
 I am using WebORB for PHP with Flex. and in there, I had verified in the
 Services as well, that my service returning this object has the right
 values. Then how come I am receiving all the values as TRUE, I can not
 understand this.
 
 Any help will be great.
 Thanks.
 
 Igor Costa-2 wrote:
  
  If you paste a part of your code someone here in the list can
 answer you
  but
  it's hard to get what you really need.
  
  
  Regards
  Igor
  
  On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda [EMAIL PROTECTED]
  wrote:
  
 
  Hii,
 
  In short, In Weborb Mgmt Services, I can see the object having a
 value of
  boolean type correctly.( that is it is returned correctly from
 the db).
  But when I receive it on Flex side, all is returned as true.
 
  How should I resolve this?
 
  Appreciate your time.. to respond it.
 
  thanks.
 
  --
  View this message in context:
 
 http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-problem-tp17625304p17625304.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
  
 
  
  
  
  -- 
  
  Igor Costa
  www.igorcosta.com
  www.igorcosta.org
  
  
 
 -- 
 View this message in context:
 http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-problem-tp17625304p17631029.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-problem-tp17625304p17672147.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Amazing tool for Flex (Firebug for Flex)

2008-06-05 Thread x77686d
I gave this tool, FlexSpy, a spin just now.  It's dead simple to use 
and works great.

Here's a quote from the installation instructions that describes it 
well: Flex-Spy allows you to inspect and dynamically change most 
properties and styles of the visual components in your Flex 
application.  You can - for example - try out a specific width or a 
background color for your component before changing it in your code.

Thanks to aranud for cooking this up and Andrew for pointing it out!




[flexcoders] Login Screen an data format usage

2008-06-05 Thread Deniz Davutoglu
Hello I wonder how can create login screen with flex,
also which format is more usible for daha exhcange, remoting, json, xml?
Thanks



[flexcoders] VerifyError: Error #1063: Argument count mismatch on ... ResourceBundle().

2008-06-05 Thread Dan
Hello,

I'm wondering if someone can please help me.  I'm quite new to Flex
development.  I am working on a Flex 3 project and am getting the
following error when trying to load modules using mx:ModuleLoader. 
I've been hitting my head against the wall on this issue for several
hours now.

Thanks,
Dan

VerifyError: Error #1063: Argument count mismatch on
mx.resources::ResourceBundle(). Expected 0, got 2.

at en_US$collections_properties()
at
mx.resources::ResourceManagerImpl/http://www.adobe.com/2006/flex/mx/internal::installCompiledResourceBundle()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:310]
at
mx.resources::ResourceManagerImpl/installCompiledResourceBundles()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\resources\ResourceManagerImpl.as:234]
at
mx.core::FlexModuleFactory/installCompiledResourceBundles()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:441]
at
mx.core::FlexModuleFactory/docFrameHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\FlexModuleFactory.as:411]



[flexcoders] Re: Datagrid default sorting and row number

2008-06-05 Thread Amy
--- In flexcoders@yahoogroups.com, Indra Prastha [EMAIL PROTECTED] 
wrote:

 Hi guys,
 
 I need help about working with large data in a datagrid.
 I have a datagrid that displays about 500 + rows which gets data 
from my
 backend in XML (http service, resultFormat = e4x ).
 Right now I want to display the row number for the data grid in the
 first column No., without actually sending norow#/no xml 
child in
 the data that is sent from the backend, i tried using example from 
the
 documentation using listData function, it works fine only for the
 displayed data, what i mean is that, since there are 500 data and 
the
 datagrid only shows about 15 first (the rest u have to scroll down) 
when
 you scroll down, the number resets (means the 16th row shows the row
 number as 0 again).
 
 Found no other way to programmatically counts the row and display 
it in
 the datagrid, i included norow#/no in the XML being sent and 
works
 like just i wanted  UNTIL I click on the header and tried to 
sort it
 ascending / descending. Now flex instead of sorting my data 1 to 
500 or
 500 to 1 , it thinks that these numbers are string and sort them 
like a
 string - ascending sort will result in sort like this
 1,10,100,101,102...109...2,20,200,201 . and vice versa for
 descending.

This might help

http://flexdiary.blogspot.com/2007/11/showing-item-number-in-
itemrenderer.html

HTH;

Amy



[flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Body Works Studio
Thanks for the link, but thats a little to much. I just need to
reproduce the typical tag cloud you see on a lot of blogs. I have the
array of tags and will be adding in scores on how relevant they are. I
think what I need to really know is what component will work. I am
thinking make a label text will equal the text value, and size and
style will be figured based on the score. The question is what
component can I lay it out in so it auto wraps.

Any ideas?

Thanks for your time 
Jeff


--- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] wrote:

 Are you susceptible to coding the thing in SwishMax and then using the
 resulting Flash movie as a plugin? Here is part one of a two-part
tutorial
 about building a really cool linksphere:
 
 http://blog.swishzone.com/?p=73
 
 
 
 
 -- 
 Andrew Wetmore
 User Experience Director
 Open Learning Exchange - www.ole.org
 978-319-7324





RE: [flexcoders] Re: Use hibernate annotations with LiveCycle Data Services

2008-06-05 Thread Jeff Vroom
To switch from classic hibernate with XML based configuration to
annotations you need to add entries like this for each of your object
types:

 

mapping class=support5.Account/

 

(in addition to switching from HibernateAssembler to
HibernateAnnotationsAssembler)

 

Jeff

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of gordon_greg
Sent: Wednesday, June 04, 2008 3:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Use hibernate annotations with LiveCycle Data
Services

 

Hi.

I do indeed see that the
flex.data.assembler.HibernateAnnotationsAssembler is provided in the
flex.data.jar file distributed with LCDS 2.6b2.

However, I have no idea how to get it working:

I tried modifying the simple Contact demo using Hibernate that comes
as a sample for LCDS 2.6 to use annotations, and then I commented out
the following line in hibernate.cfg.xml:

mapping resource=flex/samples/contact/Contact.hbm.xml/

Then I changed the data-management-config.xml entry for 

destination id=hibernate-contact

To use 

sourceflex.data.assemblers.HibernateAnnotationsAssembler/source

And I assumed this was all I would have to change to get this working.

However, when I attempt to start up the server, I simply get errors
i.e.:

[Flex] [ERROR] MessageBroker failed to start:
flex.data.adapters.AdapterException: No Hibernate mapping was found
for entity name 'flex.samples.contact.Contact' configured in
destination 'hibernate-contact'. Please verify that your destination
configuration specifies a valid hibernate-entity/, or that the
destination id references a valid entity.
at flex.data.assemblers.HibernateType.start(HibernateType.java:195)
at
flex.data.assemblers.HibernateAssembler.start(HibernateAssembler.java:20
5)


I was not able to locate the source code for the
HibernateAnnotationsAssembler anywhere, nor can I find any reference
to this file in any other forum, site, document, etc.

I did look at the decompiled code, and I can see that it simply
extends the Hibernate assebmler, and over-writes the
createHiberanteConfigureation method, but again, I just don't know
what the magic is to get this thing configured and reading in
annotation information.

Any small, simple example would be just lovely.

Thanks!

Greg Gordon


--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Jeff Vroom [EMAIL PROTECTED] wrote:

 The 2.6 beta (on labs.adobe.com) has annotations support built in -
you
 have to use the HibernateAnnotationsAssembler instead of the
 HibernateAssembler in your data-management-config.xml. It is not too
 hard to add to 2.5.1 if you need it there too... there are some new
jar
 files you need to add and you need to override a method in the
 HibernateAssembler to specify a different class to bootstrap the
 configuration. The source for this is also in the 2.6 beta if you want
 to check it out.
 
 
 
 Jeff
 
 
 
 
 
 From: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
] On
 Behalf Of Mathieu Fernandez
 Sent: Wednesday, April 30, 2008 3:24 AM
 To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
 Subject: [flexcoders] Use hibernate annotations with LiveCycle Data
 Services
 
 
 
 Hello,
 I'm trying to use hibernate annotations with LiveCycle Data Services.
 My problem is when I launch my server I have this error :
 An annotationConfiguration instance is required to use mapping 
 class=...
 So I would like to know how enabling annotation configuration?
 Thanks


 



Re: [flexcoders] OT (slightly) Gold standard method to make a web Flex app truly skinnable.

2008-06-05 Thread Fidel Viegas
On Thu, Jun 5, 2008 at 6:17 AM, David Kramer [EMAIL PROTECTED] wrote:

 Hello All,



 I'm beginning a project Flex, CF, IIS and SQL, and this time I'm finally 
 going to make sure we all do the proper requirements gathering and research 
 of best practices before writing code (or at least as little as possible).



 Therefore, I thought I'd ask the group to point me in the direction to solid 
 documentation on the best methods on making a Flex app truly skinnable, from 
 the fonts, (English to Hebrew) to colors, and images, etc. based upon manual 
 user selection or auto based upon best guess of global location 
 automatically, or both.



 Seems monumental, but someone's done it and it's written somewhere I assume.



 Any help is appreciated.

Hi David,

I don't know of any manual that tells you how to design a flex app,
but I have read all the manuals on how to skin flex applications. All
the rest came from experience in designing web applications and from
checking skins created by other people. I studied every single skin I
found on the net and then I just tried to create a desktop application
in a browser.

I think it will all came with experience. The more you practice, the
more you learn how to use skins and where to use.

My first Flex application has used quite a lot of images, and all the
latest ones I use a few skins and css to decorate my applications. If
I would have to redo every single application I have worked on, I
would do it differently this time, cause I have learned quite a few
tricks that improve efficiency and friendliness.

Just start with the Flex manuals and I think the rest comes with experience.

Maybe other people have something to add, but I don't really think
there is a way of teaching how to design UIs. I think the best way is
to study other people's work.

Well, those are my 2 cents.

Fidel.


[flexcoders] hiding a cell within a datagrid dynamically

2008-06-05 Thread anthony_morsey
I have a datagrid with multiple columns and rows.  One of the columns
contains a checkbox which is rendered with an itemRenderer.  I'd like
to conditionally hide some of these checkboxes based on values from
other columns with the same row.

Any ideas?

Thanks



[flexcoders] Re: Altering a textarea on certain keyboardevents...

2008-06-05 Thread miltoon71
It's one of these things that can just drive you nuts... bug?



[flexcoders] Re: Flex access to Browser Properties

2008-06-05 Thread valdhor
Check out the ExternalInterface class -
http://livedocs.adobe.com/flex/3/html/help.html?content=19_External_Interface_04.html


--- In flexcoders@yahoogroups.com, grizalum [EMAIL PROTECTED] wrote:

 I am needing to know some basic information about the browser in which 
 my app is running...minimally I would like to know the dimensions 
 (height, width) of the browser and if it is maximized. Although, if I 
 can get the browsers height and width I believe that I should be able 
 to determine maximization state by using the Capabilities class and 
 making use of the screen's resolution.
 
 I would also like to be able to determine the same information that the 
 viewMetricsAndPadding provide. However, if I can get the height and 
 width of the browser, I believe that the SystemManager height/width 
 would be sufficent for me to determine the same information that the 
 view (Edge) metrics would provide.
 
 Is there a way, from within flex, to access these browser properties?





[flexcoders] Re: Flex + WebORB for PHP, A very strage problem

2008-06-05 Thread jmfillman
Manu,

First thing I'd do is trace (list[i].aircon) or bind the 
ArrayCollection to a dataGrid to see what is actually being returned.

My suspicion is that you are getting the correct true and false data 
in the result, but as Uber_Nick suggested, it's a string value, so 
you'll need to add an if statement, like this:

if (list[i].aircon == 'true') {
vo.aircon = true;
}
else if (list[i].aircon == 'false') {
vo.aircon = false;
}

JF
--- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED] 
wrote:

 
 Hii..
 
 Anyone of you experts with a solution for my problem??
 Am really worried for this little boolean problem.
 
 Manu.
 
 
 
 Uber_Nick wrote:
  
  Manu,
  
  Note the following.
  trace(Boolean('TRUE')); // returns true
  trace(Boolean('FALSE')); // also returns true
  
  Flex is interpreting the result from your PHP call as a String.  
Try
  returning lower-case 'true' and 'false'.  Also, try using:
  list[i].aircon as Boolean 
  instead of:
  Boolean(list[i].aircon)
  The former will not always convert to true (but will return null 
if it
  can't convert).  Lastly, if you can't make it work, just try this
  workaround:
  vo.aircon = (''+list[i].aircon).toLowerCase()=='true';
  
  -Nick Matelli
  Amentra, Inc
  
  --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@ 
wrote:
 
  
  Code for my Responder, where I am receiving the result:
 public function result(data:Object):void
 {
 //TODO: implement function
 var objList:ArrayCollection = new 
ArrayCollection();
 var list:ArrayCollection = new ArrayCollection
(data.result as Array);
 var vo:FlatVO;
 for(var i:int=0; ilist.length; i++){
 vo = new FlatVO();
 vo.userId = int(list[i].userId);
 vo.aircon = Boolean(list[i].aircon);
 objList.addItem(vo);
 }
  
  In here, I supposed to get vo.aircon as boolean[values as 
true/false for
  different rows/objects in FlatVO]. But, the strange thing is 
that I am
  receiving all the values for my boolean type as TRUE only.
  
  I had verified on my server side PHP code, and it is returning 
the
  corresponding values fine [as in TRUE and FALSE accordingly].
  
  I am using WebORB for PHP with Flex. and in there, I had 
verified in the
  Services as well, that my service returning this object has the 
right
  values. Then how come I am receiving all the values as TRUE, I 
can not
  understand this.
  
  Any help will be great.
  Thanks.
  
  Igor Costa-2 wrote:
   
   If you paste a part of your code someone here in the list can
  answer you
   but
   it's hard to get what you really need.
   
   
   Regards
   Igor
   
   On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda manuraj.dhanda@
   wrote:
   
  
   Hii,
  
   In short, In Weborb Mgmt Services, I can see the object 
having a
  value of
   boolean type correctly.( that is it is returned correctly from
  the db).
   But when I receive it on Flex side, all is returned as true.
  
   How should I resolve this?
  
   Appreciate your time.. to respond it.
  
   thanks.
  
   --
   View this message in context:
  
  http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-
problem-tp17625304p17625304.html
   Sent from the FlexCoders mailing list archive at Nabble.com.
  
   
  
   
   
   
   -- 
   
   Igor Costa
   www.igorcosta.com
   www.igorcosta.org
   
   
  
  -- 
  View this message in context:
  http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-
problem-tp17625304p17631029.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
  
  
  
  
 
 -- 
 View this message in context: http://www.nabble.com/Flex-%2B-WebORB-
for-PHP%2C-A-very-strange-problem-tp17625304p17672147.html
 Sent from the FlexCoders mailing list archive at Nabble.com.





[flexcoders] Re: Login Screen an data format usage

2008-06-05 Thread jmfillman
My personal preference is remoting using WebORB. Pretty easy to use, 
and fast.

About the login screen, without going into a lot of detail, you 
simply submit the username/password to whatever data option you go 
with. In Flex, you are listening for a result from the data query for 
success. If successful, you can trigger a State change, or wherever 
you want to send the user.

If you need more detail, I may have one somewhere. Haven't used it in 
about a year, so I'd have to go looking for it.

JF
--- In flexcoders@yahoogroups.com, Deniz Davutoglu 
[EMAIL PROTECTED] wrote:

 Hello I wonder how can create login screen with flex,
 also which format is more usible for daha exhcange, remoting, json, 
xml?
 Thanks





[flexcoders] hslider and binding to values

2008-06-05 Thread arieljake
I have an hslider with two tabs.

I am trying to create a label next to the hslider to display the
values it has set.

We access the values of the hslider using the values array. But we
can't bind when using square brackets.

what do we do?



[flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-05 Thread jmfillman
Anthony,

If you are passing the data from the columns of each row to the 
itemRenderer, you should be able to set visibility conditions from the 
itemRenderer.

If you post your code, I or someone else here might be able to provide 
a more specific suggestion.

JF
--- In flexcoders@yahoogroups.com, anthony_morsey [EMAIL PROTECTED] wrote:

 I have a datagrid with multiple columns and rows.  One of the columns
 contains a checkbox which is rendered with an itemRenderer.  I'd like
 to conditionally hide some of these checkboxes based on values from
 other columns with the same row.
 
 Any ideas?
 
 Thanks





Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Josh McDonald
That's good to know, cheers :)

On Fri, Jun 6, 2008 at 12:55 AM, dnk [EMAIL PROTECTED] wrote:

   FYI,

 VMWare fusion 2 (now in beta) apparently has dual monitor support in VM's.

 dnk


 On 5-Jun-08, at 6:11 AM, Josh McDonald wrote:

 The only real problem was the lack of support for dual monitors.

 -Josh


  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Josh McDonald
You could use a grid full of Labels a custom UIComponent full of
UITextfFelds, or you could most likely get away with basing it on the
RichTextEditor component with a little thought.

-Josh

On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio [EMAIL PROTECTED]
wrote:

   Thanks for the link, but thats a little to much. I just need to
 reproduce the typical tag cloud you see on a lot of blogs. I have the
 array of tags and will be adding in scores on how relevant they are. I
 think what I need to really know is what component will work. I am
 thinking make a label text will equal the text value, and size and
 style will be figured based on the score. The question is what
 component can I lay it out in so it auto wraps.

 Any ideas?

 Thanks for your time
 Jeff


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Andrew
 Wetmore [EMAIL PROTECTED] wrote:
 
  Are you susceptible to coding the thing in SwishMax and then using the
  resulting Flash movie as a plugin? Here is part one of a two-part
 tutorial
  about building a really cool linksphere:
 
  http://blog.swishzone.com/?p=73
 
 
 
 
  --
  Andrew Wetmore
  User Experience Director
  Open Learning Exchange - www.ole.org
  978-319-7324
 

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


Re: [flexcoders] Re: Amazing tool for Flex (Firebug for Flex)

2008-06-05 Thread Josh McDonald
Might have to give it a try again next time I'm having troubles like that.
Last time I added it to a project it simply mysteriously killed design mode
in the builder, and didn't really do much else ;-)

-Josh

On Fri, Jun 6, 2008 at 1:06 AM, x77686d 
[EMAIL PROTECTED] wrote:

   I gave this tool, FlexSpy, a spin just now. It's dead simple to use
 and works great.

 Here's a quote from the installation instructions that describes it
 well: Flex-Spy allows you to inspect and dynamically change most
 properties and styles of the visual components in your Flex
 application. You can - for example - try out a specific width or a
 background color for your component before changing it in your code.

 Thanks to aranud for cooking this up and Andrew for pointing it out!

  




-- 
Therefore, send not to know For whom the bell tolls. It tolls for thee.

:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: [EMAIL PROTECTED]


[flexcoders] know if .browse() was executed or not

2008-06-05 Thread David Pariente
Hello everyone,

in my project i need to know wether a fileReference Object did or didn't made a 
.browse() function.

The point is that i have a form with several fields for choose files. Those 
files i must send them later. So then i need a way to know if user did actually 
choose a file to upload, or not yet.

I was trying checking for some property from fileReference object, like for 
example .name, so if no name on the object, would mean they didn't select 
anything there. But accessing the name property when no file choosen throws an 
IllegalOperationError.

Anyone has idea how to know if file was selected or not???

lots of thnx.



  __ 
Enviado desde Correo Yahoo! La bandeja de entrada más inteligente.

Re: [flexcoders] Flex + WebORB for PHP, A very strage problem

2008-06-05 Thread Manu Dhanda

Hii,

I tried it the same way as suggested by Uber Nick. But the solution din't
worked until I made some changes in my database field types as well as on my
Flex VO class.
Now I set this field as integer in db and Number in my VO class and
receiving the values as Number.

like below:

vo.aircon = int(list[i].aircon);

Now, flex can easily interpret a number other than ZERO as TRUE and Numbers
ZERO as FALSE.

But I suppose, the culprit part remains with the WebORB implementation.

Thanks for helping.
Manu.



jmfillman wrote:
 
 Manu,
 
 First thing I'd do is trace (list[i].aircon) or bind the 
 ArrayCollection to a dataGrid to see what is actually being returned.
 
 My suspicion is that you are getting the correct true and false data 
 in the result, but as Uber_Nick suggested, it's a string value, so 
 you'll need to add an if statement, like this:
 
 if (list[i].aircon == 'true') {
 vo.aircon = true;
 }
 else if (list[i].aircon == 'false') {
 vo.aircon = false;
 }
 
 JF
 --- In flexcoders@yahoogroups.com, Manu Dhanda [EMAIL PROTECTED] 
 wrote:

 
 Hii..
 
 Anyone of you experts with a solution for my problem??
 Am really worried for this little boolean problem.
 
 Manu.
 
 
 
 Uber_Nick wrote:
  
  Manu,
  
  Note the following.
  trace(Boolean('TRUE')); // returns true
  trace(Boolean('FALSE')); // also returns true
  
  Flex is interpreting the result from your PHP call as a String.  
 Try
  returning lower-case 'true' and 'false'.  Also, try using:
  list[i].aircon as Boolean 
  instead of:
  Boolean(list[i].aircon)
  The former will not always convert to true (but will return null 
 if it
  can't convert).  Lastly, if you can't make it work, just try this
  workaround:
  vo.aircon = (''+list[i].aircon).toLowerCase()=='true';
  
  -Nick Matelli
  Amentra, Inc
  
  --- In flexcoders@yahoogroups.com, Manu Dhanda manuraj.dhanda@ 
 wrote:
 
  
  Code for my Responder, where I am receiving the result:
public function result(data:Object):void
{
//TODO: implement function
var objList:ArrayCollection = new 
 ArrayCollection();
var list:ArrayCollection = new ArrayCollection
 (data.result as Array);
var vo:FlatVO;
for(var i:int=0; ilist.length; i++){
vo = new FlatVO();
vo.userId = int(list[i].userId);
vo.aircon = Boolean(list[i].aircon);
objList.addItem(vo);
}
  
  In here, I supposed to get vo.aircon as boolean[values as 
 true/false for
  different rows/objects in FlatVO]. But, the strange thing is 
 that I am
  receiving all the values for my boolean type as TRUE only.
  
  I had verified on my server side PHP code, and it is returning 
 the
  corresponding values fine [as in TRUE and FALSE accordingly].
  
  I am using WebORB for PHP with Flex. and in there, I had 
 verified in the
  Services as well, that my service returning this object has the 
 right
  values. Then how come I am receiving all the values as TRUE, I 
 can not
  understand this.
  
  Any help will be great.
  Thanks.
  
  Igor Costa-2 wrote:
   
   If you paste a part of your code someone here in the list can
  answer you
   but
   it's hard to get what you really need.
   
   
   Regards
   Igor
   
   On Tue, Jun 3, 2008 at 11:45 AM, Manu Dhanda manuraj.dhanda@
   wrote:
   
  
   Hii,
  
   In short, In Weborb Mgmt Services, I can see the object 
 having a
  value of
   boolean type correctly.( that is it is returned correctly from
  the db).
   But when I receive it on Flex side, all is returned as true.
  
   How should I resolve this?
  
   Appreciate your time.. to respond it.
  
   thanks.
  
   --
   View this message in context:
  
  http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strage-
 problem-tp17625304p17625304.html
   Sent from the FlexCoders mailing list archive at Nabble.com.
  
   
  
   
   
   
   -- 
   
   Igor Costa
   www.igorcosta.com
   www.igorcosta.org
   
   
  
  -- 
  View this message in context:
  http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-
 problem-tp17625304p17631029.html
  Sent from the FlexCoders mailing list archive at Nabble.com.
 
  
  
  
  
 
 -- 
 View this message in context: http://www.nabble.com/Flex-%2B-WebORB-
 for-PHP%2C-A-very-strange-problem-tp17625304p17672147.html
 Sent from the FlexCoders mailing list archive at Nabble.com.

 
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Flex-%2B-WebORB-for-PHP%2C-A-very-strange-problem-tp17625304p17674628.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: hslider and binding to values

2008-06-05 Thread kenny14390
Binding is curly braces {} not square brackets []


--- In flexcoders@yahoogroups.com, arieljake [EMAIL PROTECTED] wrote:

 I have an hslider with two tabs.
 
 I am trying to create a label next to the hslider to display the
 values it has set.
 
 We access the values of the hslider using the values array. But we
 can't bind when using square brackets.
 
 what do we do?





[flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Dennis Falling
I have this problem for standard uploads too, not just SSL...  Again, it
works fine in IE, so I know that the address and file are valid.  Any ideas?

On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED] wrote:

 I searched the web and the group and found a thread going about this
 without a resolution (started with msg. 88102).  Does anyone know a way
 around this?  I need to allow the user to upload files over SSL, which works
 fine from IE but explodes in Firefox.

 Code:
 var url:String =
 Services.getCommandServiceURL(FileDelegate.UPLOAD_FILE_COMMAND);
 var request:URLRequest = new URLRequest(url);
 request.method = URLRequestMethod.POST;
 _file.upload(request,fileData,false);

 When run in Firefox, I get a flash exception:
 Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O Error.

 Watching it in Wireshark I see the initial post, then a number of
 subsequent lines Continuation or non-HTTP traffic.

 Thanks!



[flexcoders] IFBIN status? Need some code, but can't get IFBIN to run

2008-06-05 Thread Tracy Spratt
I am trying to do a DES encryption encoding on some Webservice
parameters.  I have found a few examples, but have not successfully
encrypted a parameter so the target site can decrypt it.

The example function on Flex Exchanges is for Triple DES and written
for Flex 2.  The As3 Crypto Library is complicated, undocumented, and
I have been able to use it, but not fully successfully. (I can't figure
out how to use the initial vector on encryption ) .

I see that Darron Schall's FlashVNC on IFBIN contains a DES class, and
would like to look at it.  I installed IFBIN, but I can't get it to work
(It always says the server is not started, though I have attempted
that).

So three questions:
1) Anyone know of a simple DES encryption class, for non-cryptographers
2) Is Darron's DES class available anywhere but IFBIN
3) Any idea why IFBIN won't run? (support mail list, forum?)

TIA,
Tracy


Re: [flexcoders] Re: #2038: File I/O Error only in firefox

2008-06-05 Thread Jon Bradley
I'm guessing it's because the session is not retained when performing  
a file upload to the server - a new session id is created for each  
FileReference upload attempt.


This is a known issue with various workarounds.

Modify your server code to ignore any session or login details to be  
sure this is the problem you are seeing. If it works when you remove  
any requirement for authentication or any check of the session info,  
then you're one step closer to fixing the issue.


You will then need to:

1. Store the session number in Flex and send it back. On the server  
you validate against the sent session (a new one will still be  
created), then send back the new session details.


or...

2. Ignore a requirement on the session when doing the actual upload.  
Find another way of verifying the user is logged in.


http://bugs.adobe.com/jira/browse/SDK-12851
http://bugs.adobe.com/jira/browse/FP-78
http://thanksmister.com/?p=59
http://www.mail-archive.com/flexcoders@yahoogroups.com/msg58372.html


good luck,

jon


On Jun 5, 2008, at 12:58 PM, Dennis Falling wrote:

I have this problem for standard uploads too, not just SSL...   
Again, it works fine in IE, so I know that the address and file are  
valid.  Any ideas?



On Wed, Jun 4, 2008 at 1:48 PM, Dennis Falling [EMAIL PROTECTED]  
wrote:
I searched the web and the group and found a thread going about  
this without a resolution (started with msg. 88102).  Does anyone  
know a way around this?  I need to allow the user to upload files  
over SSL, which works fine from IE but explodes in Firefox.


Code:
var url:String = Services.getCommandServiceURL 
(FileDelegate.UPLOAD_FILE_COMMAND);

var request:URLRequest = new URLRequest(url);
request.method = URLRequestMethod.POST;
_file.upload(request,fileData,false);

When run in Firefox, I get a flash exception:
Error #2044: Unhandled IOErrorEvent:. text=Error #2038: File I/O  
Error.


Watching it in Wireshark I see the initial post, then a number of  
subsequent lines Continuation or non-HTTP traffic.


Thanks!




[flexcoders] Using TitleWindow

2008-06-05 Thread kenny14390
If I just have a TitleWindow component in my application, is there a
way to allow it to be draggable as if it was a popup? I'm not using
PopupManager to display the TitleWindow because I want to apply a
transition to it so that it slides in. Is there a way to apply this
transition to a popup so that I won't have to worry about the dragging
thing?



Re: [flexcoders] know if .browse() was executed or not

2008-06-05 Thread Jon Bradley


On Jun 5, 2008, at 12:23 PM, David Pariente wrote:

I was trying checking for some property from fileReference object,  
like for example .name, so if no name on the object, would mean  
they didn't select anything there. But accessing the name property  
when no file choosen throws an IllegalOperationError.


Anyone has idea how to know if file was selected or not???


Use events. EVENT.SELECT is dispatched when the browse() session  
closes and files are selected. The list of files is the fileList  
property on the FileReferenceList instance you created.


private function addFiles():void
{
myFileReferenceList = new FileReferenceList();
try
{
var success:Boolean = myFileReferenceList.browse();
myFileReferenceList.addEventListener(Event.SELECT, 
onSelectFile);
}
catch (error:Error)
{
// Handle errors, or add listeners in the try block for errors
}
}

// Called when files are selected
private function onSelectFile(event:Event):void
{
if (myFileReferenceList.fileList.length = 1)
{
for (var i:Number = 0; i  myFileReferenceList.fileList.length; 
j++)
{
// whatever you want to do with the list of files
}
}
else
{
//  no files selected
}
}


cheers,

jon

RE: [flexcoders] Re: hiding a cell within a datagrid dynamically

2008-06-05 Thread Alex Harui
You'll probably have to set visible from inside updateDisplayList.  A
renderer's visible property is changed as it goes on/off the
freeItemRenderers list.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of jmfillman
Sent: Thursday, June 05, 2008 9:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: hiding a cell within a datagrid dynamically

 

Anthony,

If you are passing the data from the columns of each row to the 
itemRenderer, you should be able to set visibility conditions from the 
itemRenderer.

If you post your code, I or someone else here might be able to provide 
a more specific suggestion.

JF
--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, anthony_morsey [EMAIL PROTECTED] wrote:

 I have a datagrid with multiple columns and rows. One of the columns
 contains a checkbox which is rendered with an itemRenderer. I'd like
 to conditionally hide some of these checkboxes based on values from
 other columns with the same row.
 
 Any ideas?
 
 Thanks


 



RE: [flexcoders] Flex access to Browser Properties

2008-06-05 Thread Alex Harui
If you can generate the data in Javascript in your HTML wrapper, you can
get to it from Flex via ExternalInterface

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of grizalum
Sent: Thursday, June 05, 2008 7:33 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex access to Browser Properties

 

I am needing to know some basic information about the browser in which 
my app is running...minimally I would like to know the dimensions 
(height, width) of the browser and if it is maximized. Although, if I 
can get the browsers height and width I believe that I should be able 
to determine maximization state by using the Capabilities class and 
making use of the screen's resolution.

I would also like to be able to determine the same information that the 
viewMetricsAndPadding provide. However, if I can get the height and 
width of the browser, I believe that the SystemManager height/width 
would be sufficent for me to determine the same information that the 
view (Edge) metrics would provide.

Is there a way, from within flex, to access these browser properties?

 



RE: [flexcoders] Re: How to remeasure itemRenderer

2008-06-05 Thread Alex Harui
Probaly uninstall/reinstall.  Run some other tests first.  As you step
into code, you should never suddenly jump into the middle of a
function, breakpoints should be settable, etc.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Amy
Sent: Thursday, June 05, 2008 7:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: How to remeasure itemRenderer

 

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Alex Harui [EMAIL PROTECTED] wrote:

 It has nothing to do with rendererChanged, that would be if you 
changed
 the classFactory for the renderer.
 
 
 
 List also has makeRowsAndColumns. If you can't set a breakpoint, that
 makes me think your source is not in sync with the swcs.

How do I fix that?

Thanks;

Amy

 



Re: [flexcoders] Flex Builder accessibility problem

2008-06-05 Thread Matt Morgan-May
Hi Barry,

What you¹re describing is something we inherit from the Eclipse environment
that Flex Builder is based on, and there was a bug filed on Eclipse that
matches your problem.

https://bugs.eclipse.org/bugs/show_bug.cgi?id=194312

It appears there¹s a (somewhat complicated) fix in there, if you want to try
that. Otherwise, the next version of the Eclipse C/C++ Development Toolkit
(CDT 5.0) has fixed it, but to go that route, you¹ll have to wait for that
release, install Eclipse, and then install FB as an Eclipse plugin.

Hope this helps,
m

Matt May
Accessibility Engineer, Adobe Systems
http://adobe.com/accessibility


On 6/5/08 3:24 AM, Barry [EMAIL PROTECTED] wrote:

  
  
 
 Hi, don't know where to ask this question but I thought I'd give it a
 try here.
 Due to my bad eyesight I run my computer in High Contrast mode.
 Flex Builder is great mostly however I can not find where to set the
 background color for popups - ie Code Assist and the Outliner pop
 (Ctrl+O).
 As it stands I can't see any text. Any help muchly appreciated.
 Barry 
 



RE: [flexcoders] Using TitleWindow

2008-06-05 Thread Alex Harui
If you don't use PopUp, it could slide under other components in its
parent container.  You can always apply an effect to the popup so it
slides in.

 

However, if you set isPopUp=true, it should allow the TW to be dragged.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kenny14390
Sent: Thursday, June 05, 2008 10:21 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Using TitleWindow

 

If I just have a TitleWindow component in my application, is there a
way to allow it to be draggable as if it was a popup? I'm not using
PopupManager to display the TitleWindow because I want to apply a
transition to it so that it slides in. Is there a way to apply this
transition to a popup so that I won't have to worry about the dragging
thing?

 



RE: [flexcoders] Please, help: the release player displays a blank page in all browsers.

2008-06-05 Thread Alex Harui
In FlexBuilder3, you use Export Release Build...  You can turn off your
debug flags too, but I'd just use the builtin feature that does that for
you.

 

The release player doesn't have trace log output so there's no way to
leave a trail of what is happening.  The debug player has trace output
and allocates and garbage collects memory differently since it has
defenders on every allocation.  The only way to leave a trail in the
release player is to use a loading SWF that has some UI that can show
that trail.

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 11:22 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Please, help: the release player displays a
blank page in all browsers.

 

Thank you for your answers. 

Alex: I could try to write an application that loads my swf, but
actually I think the swf should work fine since I can run it from debug
players. What do you mean with deploying a release swf? I just omitted
the -compiler.debug directive and put false as the value of the
debug tag in flex-config.xml. Is it right?

Tracy: I don't think an error occurs, since I don't see anything while
running my app in a debug player.

Andrea

On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Does your app do a data service call on start-up?  Perhaps you have a
security problem that is causing an error on the non-development system,
and the release player is not displaying the error.

 

Try to run the app on a non-dev system, but use the debug player.

 

Tracy

 



From: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com ]
On Behalf Of andrea bianchi
Sent: Wednesday, June 04, 2008 10:23 AM


To: flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com 
Subject: [flexcoders] Please, help: the release player displays a blank
page in all browsers.

 

I'm experiencing a strange issue: I'm not able to run my Flex app using
the release player (I tried Firefox2/player 9.0.124, IE5.5/player 9.0.47
and IE7/player 9.0.124). The page contains a blank swf (when I right
click I can see the Flash player menu). The same application works in
all browsers using a debug player. The swf doesn't work even if I try to
access it directly, while I'm able to run other Flex applications both
standalone and using the HTML wrapper. 
I'm using the Flex 2 SDK hotfix 2 command line compiler.
I actually don't know what has caused this behaviour since I use a debug
player 99% of time... a colleague discovered this while testing the
application. A possibile hint: this morning, using the debug player,  I
saw a popup window prompting me for the location of the debugger or the
profiler: this happens occasionally and, until now, I didn't pay much
attention to it (don't know exactly why it appears, I'm compiling using
the same options since many months). When I switched to the runtime
player the swf seemed to freeze at the same point, though in this case I
didn't see the popup window. Maybe this window and the blank page issue
are related?
Obviously I cannot force my customers to install a debug player ;-)

Any help appreciated.

Bye,

Andrea 

 

 



RE: [flexcoders] Possible to add some data to load to the default preloader?

2008-06-05 Thread Alex Harui
Put the data in an RSL?

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of b_alen
Sent: Thursday, June 05, 2008 3:23 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Possible to add some data to load to the default
preloader?

 

I always have some stuff to load before the app can be used. Is it
possible to stick that loading into the default preloader? So the swf
would know that it has to load other files also before it dispatches
the event that it's fully loaded. Maybe some compiler directives, I
don't know.

Thanks

 



[flexcoders] Re: Unable to Display Hindi

2008-06-05 Thread tanarijay
No that does not seem to be the problem.  The Text file encoding for
my resource bundle still reads as UTF-8.

--- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] wrote:

 What keeps happening to me is that the encoding of the properties
file keeps
 snapping back to whatever the default is. I use Nepali, Hindi, and
Chinese
 in our app, so I really notice when the little squares show up.
Resetting
 the encoding of the properties file will probably do the trick.
 
 a
 
 On Wed, Jun 4, 2008 at 5:42 PM, tanarijay [EMAIL PROTECTED] wrote:
 I am creating an application that displays in a few character sets:
 English, French,  Hindi.
 
 I am using resource bundles (name/value pairs in UTF-8 encoded text
 files named appStrings.properties) and Flex 3 to create my
 application. I am using the resource manager to retrieve the strings:...
 
 
 -- 
 Andrew Wetmore
 User Experience Director
 Open Learning Exchange - www.ole.org
 978-319-7324





Re: [flexcoders] know if .browse() was executed or not

2008-06-05 Thread Jon Bradley


On Jun 5, 2008, at 1:40 PM, David Pariente wrote:

Im not using a fileReferenceList, but a FileReference. And it seems  
i can't access any property of FileReference unless i have choosen  
a file. So there is no way to know if a file was selected.



Ok.  Then all you need to do is use FileReference instead of  
FileReferenceList. There is not much to change in the code.


Any attempt to get the .name property before the select event is  
dispatched will result in an IllegalOperationError (because you can't  
even look at name until Event.SELECT is dispatched).


So, in the onSelectFile method that I posted, .name will then be  
available - it will be null if no file was selected. Additionally,  
check the documentation on browse(). You might be doing something  
else funky that is wrong - such as messing with typelist and not  
providing descriptions or extension strings. There are a few things  
that would cause the browse() not to return true.


The following should work (not tested).

private var isBrowsingFile:Boolean = false;
private function addFiles():void
{
myFileReference = new FileReference();
if (!isBrowsingFile) {
try
{
isBrowsingFile = myFileReference.browse();
myFileReference.addEventListener(Event.SELECT, 
onSelectFile);
}
catch (error:Error)
{
isBrowsingFile = false;
// Handle errors, or add listeners in the try block for 
errors
// This is where you would get the IllegalOperationError
}
}
else
{
trace(already browsing for a file);
}
}

// Called when file is selected
private function onSelectFile(event:Event):void
{
isBrowsingFile = false;
if (myFileReference.name)
{
// whatever you want to do with the selected file
}
else
{
//  no file selected
}
}

good luck with it,

jon



Re: [flexcoders] OLAP

2008-06-05 Thread murali dharan
Hi,
  please try with pocolap or MonetDb

On Wed, Jun 4, 2008 at 11:58 PM, Dominic Pazula [EMAIL PROTECTED] wrote:

   Has anyone seen or done an integration of with a MDX compliant OLAP
 server? If so, would you be willing to share your experience?

 Thanks
 Dom

  



[flexcoders] Resizing component , browser freezes - how to overcome it

2008-06-05 Thread alex
I have Flex project which contains several different components
when I resize the browser windows, one of the components which is
calculations intensive causes the browser to freeze foraround 2 seconds.
Is there away to display the rest of components and delay the slow
component ( and may just display it's scaled Bitmap image), and then
run the component so it won't stuck the whole application ?



Re: [flexcoders] Re: Unable to Display Hindi

2008-06-05 Thread Andrew Wetmore
Dumb question, but are you using a font that does not display special
characters? Can you display, say, Mandarin or Japanese? If you cannot
display ANY non-Western characters, try switching to a sans-serif font.

If this relates to Hindi only, and languages such as Japanese display well,
then I am at a loss.

a





-- 
Andrew Wetmore
User Experience Director
Open Learning Exchange - www.ole.org
978-319-7324


Re: [flexcoders] Re: Is there a flex based Tag Cloud component?

2008-06-05 Thread Felipe Fernandes
Jeff,

You can use the flowContainer component http://blog.3r1c.net/?p=89 to
easely create a tag cloud component, all you need to do is add the
methods to calculate de size based on your ratings. You can use a
repeater based on your array.

Felipe
http://bobfernandes.wordpress.com

On Thu, Jun 5, 2008 at 1:13 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 You could use a grid full of Labels a custom UIComponent full of
 UITextfFelds, or you could most likely get away with basing it on the
 RichTextEditor component with a little thought.

 -Josh

 On Fri, Jun 6, 2008 at 1:29 AM, Body Works Studio [EMAIL PROTECTED]
 wrote:

 Thanks for the link, but thats a little to much. I just need to
 reproduce the typical tag cloud you see on a lot of blogs. I have the
 array of tags and will be adding in scores on how relevant they are. I
 think what I need to really know is what component will work. I am
 thinking make a label text will equal the text value, and size and
 style will be figured based on the score. The question is what
 component can I lay it out in so it auto wraps.

 Any ideas?

 Thanks for your time
 Jeff

 --- In flexcoders@yahoogroups.com, Andrew Wetmore [EMAIL PROTECTED] 
 wrote:
 
  Are you susceptible to coding the thing in SwishMax and then using the
  resulting Flash movie as a plugin? Here is part one of a two-part
 tutorial
  about building a really cool linksphere:
 
  http://blog.swishzone.com/?p=73
 
 
 
 
  --
  Andrew Wetmore
  User Experience Director
  Open Learning Exchange - www.ole.org
  978-319-7324
 




 --
 Therefore, send not to know For whom the bell tolls. It tolls for thee.

 :: Josh 'G-Funk' McDonald
 :: 0437 221 380 :: [EMAIL PROTECTED]
 



-- 
Felipe - http://bobfernandes.wordpress.com


Re: [flexcoders] Re: Retrieving instence name?

2008-06-05 Thread Joseph Balderson
  ClassName(instance) is marginally faster than (instance as
  ClassName) in my tests.

So which one is faster? Is this still correct?

(us lurkers want to know! :)
___

Joseph Balderson | http://joeflash.ca
Flex  Flash Platform Developer | Abobe Certified Developer  Trainer
Author, Professional Flex 3 (coming Winter 2008)
Staff Writer, Community MX | http://communitymx.com/author.cfm?cid=4674



Josh McDonald wrote:
 Goddammit, I've been going about it ass backwards! *kicks self*
 
 Thanks Alex.
 
 -J
 
 On Thu, Jun 5, 2008 at 4:15 PM, Alex Harui [EMAIL PROTECTED] 
 mailto:[EMAIL PROTECTED] wrote:
 
 Var foo:MyClass = MyClass(wrongInstance); //throws exception
 
 Var bar:MyClass = wrongInstance as MyClass; // returns null unless
 it can be coerced (usually with primitive types)
 
  
 
 
 
 *From:* flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald
 *Sent:* Wednesday, June 04, 2008 10:40 PM
 
 *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Retrieving instence name?
 
  
 
 I've read that ClassName(wrongInstance) just gives null? Hence you
 get a nullpointer exception even though that's not really your
 problem, and a newb in his debugger that sees a nullpointer
 exception when wrongInstance is clearly not null is gonna be awfully
 confused.
 
 -Josh
 
 On Thu, Jun 5, 2008 at 3:14 PM, Alex Harui [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 ClassName(instance) is marginally faster than (instance as
 ClassName) in my tests.
 
  
 
 Something's gonna blow if it isn't that type.  I don't have any hard
 rules on which to use though.  I also think there are cases where
 you need to use as  and vice versa due to coercion rules, but I
 could be wrong about that.
 
  
 
 
 
 *From:* flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com] *On Behalf Of *Josh McDonald
 *Sent:* Wednesday, June 04, 2008 9:16 PM
 *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] Re: Retrieving instence name?
 
  
 
 Isn't ClassName(instance).foo a bad idea now we have (instance as
 ClassName).foo? I'd much rather have a NPE when it's actually null,
 and a CCE when instance isn't a ClassName.
 
 -Josh
 
 On Thu, Jun 5, 2008 at 1:55 PM, Alex Harui [EMAIL PROTECTED]
 mailto:[EMAIL PROTECTED] wrote:
 
 Code hints will not help when dealing with event.target unless you
 know what it is.  Technically you should code lit like
 
  
 
 LoaderInfo(event.target).loader
 
  
 
 And hopefully, you'll get code hints when you type the '.' before
 loader.
 
  
 
 
 
 *From:* flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders@yahoogroups.com] *On Behalf Of *flexawesome
 *Sent:* Wednesday, June 04, 2008 7:28 PM
 
 
 *To:* flexcoders@yahoogroups.com mailto:flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Re: Retrieving instence name?
 
  
 
 Woowow Ales, you are the BEST :))
 
 How do you know the property of event.target.loader? I was unable to
 see the property by using cdoe tip
 
 Cheers
 
 --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com, Alex Harui [EMAIL PROTECTED] 
 wrote:
 
   Sorry, I actually hadn't looked at your code before.
 
 
 
   The target/currentTarget will be a LoaderInfo. Target.loader.name
 http://Target.loader.name
 is
   probably what you want.
 
 
 
   
 
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com] On
   Behalf Of flexawesome
   Sent: Wednesday, June 04, 2008 2:19 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
   Subject: [flexcoders] Re: Retrieving instence name?
 
 
 
 
   Hey Alex, I was unable to retrieve the instance name..
 
   I got trace info. = [object LoaderInfo]
 
   Any hits?
 
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com mailto:flexcoders%
 mailto:flexcoders%25
 40yahoogroups.com http://40yahoogroups.com
   , Alex Harui aharui@ wrote:
   

Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Joseph Balderson
I'm not trying to be glib, but don't use Vista. Use XP SP3.



Joseph Balderson | http://joeflash.ca | 705-466-6345


b_alen wrote:
 Interesting. Me and my colleagues are also thinking of switching to
 Mac due to Vista crappiness. In fact we're 80% sure that next laptops
 will be Macs. My only concern is how to do .Net development and
 integration with Flex then. Anyone has a solution to that?
 
 
 
 
 
 --- In flexcoders@yahoogroups.com, scottyale2008 [EMAIL PROTECTED]
 wrote:
 How many Flex developers here are using a Mac for development?  I've 
 been a die hard Microsoft guy since ... well, since Microsoft first 
 started.   I went from CPM on a Morrow Meadows to Microsoft DOS (on 
 computers with a Turbo button!), then Windows, now Vista.  I do have an 
 iPhone and it is an incredible device and the GUI is extremely well 
 done.   I've never used a Mac, but many of my friends have taken the 
 plunge.  Is it time to make the switch?   I'm thinking about a Mac Book 
 Pro.  Is a Mac Book even worth considering for a Flex dev machine or is 
 a Mac Book Pro the way to go?   Anybody else make the switch recently 
 from Windows to Mac?

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


[flexcoders] Re: Using TitleWindow

2008-06-05 Thread valdhor
Check out FlexMDI (http://code.google.com/p/flexmdi/)


--- In flexcoders@yahoogroups.com, kenny14390 [EMAIL PROTECTED] wrote:

 If I just have a TitleWindow component in my application, is there a
 way to allow it to be draggable as if it was a popup? I'm not using
 PopupManager to display the TitleWindow because I want to apply a
 transition to it so that it slides in. Is there a way to apply this
 transition to a popup so that I won't have to worry about the dragging
 thing?





[flexcoders] Re: Please, help: the release player displays a blank page in all browsers.

2008-06-05 Thread Tracy Spratt
If it is a security problem, It will work fine under Flex Builder on 
your dev machine, but not when served from a webserver, like when 
tested on a coworker's machine.

My suggestion is to be sure your have run it from a Web server, using 
a debug player, which is the only way to see the security error.

Tracy

--- In flexcoders@yahoogroups.com, andrea bianchi [EMAIL PROTECTED] 
wrote:

 Thank you for your answers.
 
 Alex: I could try to write an application that loads my swf, but 
actually I
 think the swf should work fine since I can run it from debug 
players. What
 do you mean with deploying a release swf? I just omitted the
 -compiler.debug directive and put false as the value of 
the debug tag
 in flex-config.xml. Is it right?
 
 Tracy: I don't think an error occurs, since I don't see anything 
while
 running my app in a debug player.
 
 Andrea
 
 On Wed, Jun 4, 2008 at 6:40 PM, Tracy Spratt [EMAIL PROTECTED] wrote:
 
 Does your app do a data service call on start-up?  Perhaps you 
have a
  security problem that is causing an error on the non-development 
system, and
  the release player is not displaying the error.
 
 
 
  Try to run the app on a non-dev system, but use the debug player.
 
 
 
  Tracy
 
 
   --
 
  *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *andrea bianchi
  *Sent:* Wednesday, June 04, 2008 10:23 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Please, help: the release player displays 
a blank
  page in all browsers.
 
 
 
  I'm experiencing a strange issue: I'm not able to run my Flex app 
using the
  release player (I tried Firefox2/player 9.0.124, IE5.5/player 
9.0.47 and
  IE7/player 9.0.124). The page contains a blank swf (when I right 
click I can
  see the Flash player menu). The same application works in all 
browsers using
  a debug player. The swf doesn't work even if I try to access it 
directly,
  while I'm able to run other Flex applications both standalone and 
using the
  HTML wrapper.
  I'm using the Flex 2 SDK hotfix 2 command line compiler.
  I actually don't know what has caused this behaviour since I use 
a debug
  player 99% of time... a colleague discovered this while testing 
the
  application. A possibile hint: this morning, using the debug 
player,  I saw
  a popup window prompting me for the location of the debugger or 
the
  profiler: this happens occasionally and, until now, I didn't pay 
much
  attention to it (don't know exactly why it appears, I'm compiling 
using the
  same options since many months). When I switched to the runtime 
player the
  swf seemed to freeze at the same point, though in this case I 
didn't see the
  popup window. Maybe this window and the blank page issue are 
related?
  Obviously I cannot force my customers to install a debug player ;-
)
 
  Any help appreciated.
 
  Bye,
 
  Andrea

 





[flexcoders] Flex and CFC issues

2008-06-05 Thread Just give a guess...
All,

I am extremely new to Flex but I have been doing ColdFusion for a 
while now. I am having an issue with data from a CFC getting back to 
my Flex app. I have put code into my CFC to write to the log file if 
it gets hit. I can run a .cfm file against it and it works. However, 
the moment I try to hit it with Flex, I get nothing back. 

I have searched all over the web (over 30 hours) and it seems that I 
am not the only one getting this issue. It's quite common and I've 
tried everything they suggested and more.

This is the error that I am getting:

[RPC Fault faultString=Send failed 
faultCode=Client.Error.MessageSend 
faultDetail=Channel.Connect.Failed error NetConnection.Call.Failed: 
HTTP: Failed: url: 'http://localhost/flex2gateway/']
at 
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::fa
ultHandler()
at mx.rpc::Responder/fault()
at mx.rpc::AsyncRequest/fault()
at mx.messaging::ChannelSet/::faultPendingSends()
at mx.messaging::ChannelSet/channelFaultHandler()
at 
flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEv
entFunction()
at flash.events::EventDispatcher/dispatchEvent()
at mx.messaging::Channel/mx.messaging:Channel::connectFailed()
at 
mx.messaging.channels::PollingChannel/mx.messaging.channels:PollingCha
nnel::connectFailed()
at 
mx.messaging.channels::AMFChannel/mx.messaging.channels:AMFChannel::st
atusHandler()

Also, someone suggested I use ServiceCapture and this is what I got 
as an error:

rootCause (null): null
destination (String): ColdFusion
headers (Object): 

correlationId (String):
A5DFBE78-9536-1CF0-23E5-59EBBA214D71
faultString (String):
coldfusion.runtime.AbortException
messageId (String):
5588792D-3119-89F1-9677-EED9F71D7018
faultCode (String): Server.Processing
timeToLive (Number): 0
extendedData (Object): 
  stacktrace (Array): 
0 (String):
coldfusion.tagext.net.LocationTag.doEndTag(LocationTag.java:161)
1 (String):
coldfusion.runtime.CfJspPage._emptyTag(CfJspPage.java:1916)
2 (String):
cfApplication2ecfm941020151.runPage
(E:\Inetpub\wwwroot_tmo\Application.cfm:92)
3 (String):
coldfusion.runtime.CfJspPage.invoke(CfJspPage.java:152)
4 (String):
coldfusion.tagext.lang.IncludeTag.doStartTag(IncludeTag.java:349)
5 (String):
coldfusion.filter.CfincludeFilter.invoke(CfincludeFilter.java:65)
6 (String):
coldfusion.filter.CfincludeFilter.include(CfincludeFilter.java:33)
7 (String):
coldfusion.filter.ApplicationFilter.invoke(ApplicationFilter.java:172)
8 (String):
coldfusion.flash.filter.CFCInvokeDebugFilter.invoke
(CFCInvokeDebugFilter.java:54)
9 (String):
coldfusion.flash.filter.CFCInvokePathFilter.invoke
(CFCInvokePathFilter.java:53)
10 (String):
coldfusion.filter.ClientScopePersistenceFilter.invoke
(ClientScopePersistenceFilter.java:28)
11 (String):
coldfusion.filter.GlobalsFilter.invoke(GlobalsFilter.java:38)
12 (String):
coldfusion.filter.DatasourceFilter.invoke(DatasourceFilter.java:22)
13 (String):
coldfusion.flash.messaging.ColdFusionAdapter.invoke
(ColdFusionAdapter.java:197)
14 (String):
flex.messaging.services.RemotingService.serviceMessage
(RemotingService.java:115)
15 (String):
flex.messaging.MessageBroker.routeMessageToService
(MessageBroker.java:548)
16 (String):
flex.messaging.endpoints.AbstractEndpoint.serviceMessage
(AbstractEndpoint.java:301)
17 (String):
flex.messaging.endpoints.amf.MessageBrokerFilter.invoke
(MessageBrokerFilter.java:93)
18 (String):
flex.messaging.endpoints.amf.LegacyFilter.invoke
(LegacyFilter.java:156)
19 (String):
flex.messaging.endpoints.amf.SessionFilter.invoke
(SessionFilter.java:46)
20 (String):
flex.messaging.endpoints.amf.BatchProcessFilter.invoke
(BatchProcessFilter.java:67)
21 (String):
flex.messaging.endpoints.amf.SerializationFilter.invoke
(SerializationFilter.java:130)
22 (String):
flex.messaging.endpoints.AMFEndpoint.service(AMFEndpoint.java:164)
23 (String):
flex.messaging.MessageBrokerServlet.service
(MessageBrokerServlet.java:340)
24 (String):
javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
25 (String):
coldfusion.bootstrap.BootstrapServlet.service
(BootstrapServlet.java:78)
26 (String):
jrun.servlet.ServletInvoker.invoke(ServletInvoker.java:91)
27 (String):
jrun.servlet.JRunInvokerChain.invokeNext(JRunInvokerChain.java:42)
28 (String):
jrun.servlet.JRunRequestDispatcher.invoke
(JRunRequestDispatcher.java:257)
29 (String):
jrun.servlet.ServletEngineService.dispatch
(ServletEngineService.java:541)
30 (String):
jrun.servlet.jrpp.JRunProxyService.invokeRunnable
(JRunProxyService.java:204)
31 (String):
jrunx.scheduler.ThreadPool$DownstreamMetrics.invokeRunnable
(ThreadPool.java:318)
32 (String):
jrunx.scheduler.ThreadPool$ThreadThrottle.invokeRunnable
(ThreadPool.java:426)
33 (String):
jrunx.scheduler.ThreadPool$UpstreamMetrics.invokeRunnable

[flexcoders] choosing line series

2008-06-05 Thread fb6668
I have a question about adding series to a LineChart.

My data looks like this (simplified pseudo-code):

selectedItems:ArrayCollection
{
   Item:myClass
   {
  id:int
  history:ArrayCollection
  {
 date:Date
 val:Number
  }
   }
}

so, a user adds objects of myClass to the selectedItem
ArrayCollection. There may be any number of these.

Now, I currently have a linechart which displays the history data for
any one myClass object:

mx:LineChart 
id=lineChart 
dataProvider={dp}
mx:horizontalAxis
mx:CategoryAxis categoryField=date /
/mx:horizontalAxis
mx:series
mx:LineSeries yField=val /
/mx:series
/mx:LineChart

So this plots val by date.
What I would like to do is amend this so that, rather than passing an
individual myClass object to the linechart, I pass an ArrayCollection
containing several, and then plot the val for *each* object's history
on a separate line.

The only examples of multiple series I have seen expects each object
to have a property relating to each series:

new ArrayCollection( [
{ Month: Jan, Profit: 2000, Expenses: 1500, Amount: 450 },
{ Month: Feb, Profit: 1000, Expenses: 200, Amount: 600 },
{ Month: Mar, Profit: 1500, Expenses: 500, Amount: 300 } ])
and then plotting Profit, Expenses and Amount as the three series
against Month.

Mine's subtley different... any ideas?

Thanks!



[flexcoders] Re: Using TitleWindow

2008-06-05 Thread kenny14390
Tried using a transition on the IFlexDisplayObject popup, but I get
the following warning:

Data binding will not be able to detect assignments to popup.

and the transition will not run. I tried casting popup to the class of
the TitleWindow (PrizePopup), but that gave the same errors.

--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 If you don't use PopUp, it could slide under other components in its
 parent container.  You can always apply an effect to the popup so it
 slides in.
 
  
 
 However, if you set isPopUp=true, it should allow the TW to be dragged.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of kenny14390
 Sent: Thursday, June 05, 2008 10:21 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Using TitleWindow
 
  
 
 If I just have a TitleWindow component in my application, is there a
 way to allow it to be draggable as if it was a popup? I'm not using
 PopupManager to display the TitleWindow because I want to apply a
 transition to it so that it slides in. Is there a way to apply this
 transition to a popup so that I won't have to worry about the dragging
 thing?





[flexcoders] Re: Webservice implementation switched to e4x after Flex 2.0.1 hotfix 2

2008-06-05 Thread mgrayfmr
--- In flexcoders@yahoogroups.com, mgrayfmr [EMAIL PROTECTED] wrote:

 Hi there:
 
 We've run into some webservice issues here when switching from Flex 
 2.0.1 (not the hotfix version) to Flex 3. We are retrieving data 
from 
 a .NET backend using a SOAP/wsdl format. When we switched to Flex 
 3.0, the structures returned on the repsonse were sometimes a 
little 
 different. 
 
 For example, we had a data structure returned that was like this: 
 data.result.UserProfileResponse.snapshots.Calendars
 Where Calendars was an ArrayCollection.
 
 Now the struture comes back without the Calendars part, and the 
data 
 is in an ArrayCollection under the 
 data.result.UserProfileResponse.snapshots structure.
 
 The wsdl loks like this:
 ![CDATA[
 
 s:complexType name=UserProfileResponse
   s:sequence
 s:element minOccurs=0 maxOccurs=1 name=userProfileDAO 
 type=tns:UserProfileDAO /
 s:element minOccurs=0 maxOccurs=1 name=snapshots 
 type=tns:ArrayOfCalendars /
   /s:sequence
 /s:complexType
 
 s:complexType name=ArrayOfCalendars
   s:sequence
 s:element minOccurs=0 maxOccurs=unbounded name=Calendars 
 nillable=true type=tns:Calendar /
   /s:sequence
 /s:complexType
 ]]
 
 Is this a result of the changes to implement e4x on webservices?
 Has anyone else run into this issue?
 
 Thanks in advance,
 Mike

It seems this is a knonw bug with Adobe in Flex 3.
If there are nested Arrays, Flex will not handle them properly.
Flex 3.0 also will drop data if the structure of the data is not 
ordered exactly as the WSDL dictates. This all wokred fine in Flex 
2.0.1. A seriously bad mistake by Adobe to let these bugs slip 
through.

So it turns out that switching our Webservice to handle SOAP 
responses from 'object' to 'e4x' seems to have solved the problem.
We then used this to set the data back to objects to match the 
structure that our Cairngorm responders were expecting:
protected function parseXMLData(xmlData:String) : 
Object
{
var xmlDoc:XMLDocument = new XMLDocument(xmlData);
var decoder:SimpleXMLDecoder = new 
SimpleXMLDecoder(true);
var obj:Object = decoder.decodeXML(xmlDoc);

var data:Object = new Object;

for(var i:int = 0; i  2; i++)
{
for each(var tempObj:Object in obj)
{
obj = tempObj;
}
}
data.result = obj

return data;

}




[flexcoders] Re: Resizing component , browser freezes - how to overcome it

2008-06-05 Thread Tim Hoff

Hi Alex,

You might try making the code less intensive first; else you'll always
have to find a work-around.  If you're doing anything, especially
calculations, on the render or resize events, you're probably spiking
the CPU on a manual browser resize.  I'm not hearing that cacheAsBitmap
will work for you here, but you can give that a try as well.  If those
don't help, you can listen for the browser's RESIZE event and disable
the offending code.  Probably better to find a more direct solution
though.

-TH

--- In flexcoders@yahoogroups.com, alex [EMAIL PROTECTED] wrote:

 I have Flex project which contains several different components
 when I resize the browser windows, one of the components which is
 calculations intensive causes the browser to freeze foraround 2
seconds.
 Is there away to display the rest of components and delay the slow
 component ( and may just display it's scaled Bitmap image), and then
 run the component so it won't stuck the whole application ?






Re: [flexcoders] Re: Thinking about going to the dark side....Apple Mac Book

2008-06-05 Thread Nancy Gill
Microsoft is already on record as pushing Windows 7 out the door as soon as 
possible (probably late 2009) due to the Vista debacle .. remember Windows ME?  
 :)

Nancy

  - Original Message - 
  From: Joseph Balderson 
  To: flexcoders@yahoogroups.com 
  Sent: Thursday, June 05, 2008 11:20 AM
  Subject: Re: [flexcoders] Re: Thinking about going to the dark sideApple 
Mac Book


  I'm not trying to be glib, but don't use Vista. Use XP SP3.

  

  Joseph Balderson | http://joeflash.ca | 705-466-6345

  b_alen wrote:
   Interesting. Me and my colleagues are also thinking of switching to
   Mac due to Vista crappiness. In fact we're 80% sure that next laptops
   will be Macs. My only concern is how to do .Net development and
   integration with Flex then. Anyone has a solution to that?
   
   
   
   
   
   --- In flexcoders@yahoogroups.com, scottyale2008 [EMAIL PROTECTED]
   wrote:
   How many Flex developers here are using a Mac for development? I've 
   been a die hard Microsoft guy since ... well, since Microsoft first 
   started. I went from CPM on a Morrow Meadows to Microsoft DOS (on 
   computers with a Turbo button!), then Windows, now Vista. I do have an 
   iPhone and it is an incredible device and the GUI is extremely well 
   done. I've never used a Mac, but many of my friends have taken the 
   plunge. Is it time to make the switch? I'm thinking about a Mac Book 
   Pro. Is a Mac Book even worth considering for a Flex dev machine or is 
   a Mac Book Pro the way to go? Anybody else make the switch recently 
   from Windows to Mac?
  
   
   
   
   
   
   --
   Flexcoders Mailing List
   FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives: 
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
   
   
   
   


   

  __ Information from ESET NOD32 Antivirus, version of virus signature 
database 3162 (20080605) __

  The message was checked by ESET NOD32 Antivirus.

  http://www.eset.com


[flexcoders] Flex and WSDL

2008-06-05 Thread radwhite81
i'm working on trying to get soap headers declared in the wsdl, then
i'll I want to see if flex can automatically generate the code to set
them in the service requests. does anyone have any suggestions, links
blogs or any other info. thanks for your time and consideration.



[flexcoders] Re: Retrieving instence name?

2008-06-05 Thread flexawesome
this make scense, but I got this error msg when I tried to use 
LoaderInfo().loader

1180: Call to a possibly undefined method LoaderInfo.

Did I miss something else?


--- In flexcoders@yahoogroups.com, Alex Harui [EMAIL PROTECTED] wrote:

 Code hints will not help when dealing with event.target unless you 
know
 what it is.  Technically you should code lit like
 
  
 
 LoaderInfo(event.target).loader
 
  
 
 And hopefully, you'll get code hints when you type the '.' before
 loader.
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of flexawesome
 Sent: Wednesday, June 04, 2008 7:28 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Retrieving instence name?
 
  
 
 Woowow Ales, you are the BEST :))
 
 How do you know the property of event.target.loader? I was unable 
to 
 see the property by using cdoe tip
 
 Cheers
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 , Alex Harui aharui@ wrote:
 
  Sorry, I actually hadn't looked at your code before.
  
  
  
  The target/currentTarget will be a LoaderInfo. Target.loader.name 
 is
  probably what you want.
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of flexawesome
  Sent: Wednesday, June 04, 2008 2:19 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Re: Retrieving instence name?
  
  
  
  
  Hey Alex, I was unable to retrieve the instance name..
  
  I got trace info. = [object LoaderInfo]
  
  Any hits?
  
  --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  , Alex Harui aharui@ wrote:
  
   Try event.currentTarget.toString()
   
   
   
   
   
   From: flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  
  [mailto:flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com  mailto:flexcoders%
 40yahoogroups.com
  ] On
   Behalf Of flexawesome
   Sent: Wednesday, June 04, 2008 1:25 PM
   To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 mailto:flexcoders%
 40yahoogroups.com 
   Subject: [flexcoders] Re: Retrieving instence name?
   
   
   
   event.currentTarget.name seem doesn't work. :(
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com 
  mailto:flexcoders%40yahoogroups.com mailto:flexcoders%
  40yahoogroups.com
   , flexawesome flexawesome@ 
   wrote:
   
Hey, is that possible to retrieve the instence name for 
 imgLoad ?

# in this example, it calls init2 from init1 and know the 
  instence 
   name 
is test but I would like to retrieve it from event or other 
  ways, 
   is 
that possible?


http://www.privatepaste.com/e4RWWrMIAW
 http://www.privatepaste.com/e4RWWrMIAW 
  http://www.privatepaste.com/e4RWWrMIAW
 http://www.privatepaste.com/e4RWWrMIAW  
   http://www.privatepaste.com/e4RWWrMIAW
 http://www.privatepaste.com/e4RWWrMIAW 
  http://www.privatepaste.com/e4RWWrMIAW
 http://www.privatepaste.com/e4RWWrMIAW   

Thank you
   
  
 





  1   2   >