[flexcoders] Re: using an array

2008-01-18 Thread Tim Hoff
Thanks Gordon,

Absolutely agree that [] looks better if you are populating the array 
during construction.  Same would go with primitives.

From a slightly different perspective, I would only say that using a 
consistant style for constucting objects can also improve 
readability.  That being said, using = (, [], 0, etc.) is probably 
faster.  If anyone knows this, you and the SDK team do. :-)

-TH

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

 On the SDK team we prefer to write
  
 var incorrects:Array = [];
  
 because it generates smaller (and probably faster) bytecode, and we
 think that
  
 var incorrects:Array = [ a, b, c ];
  
 looks so much better than
  
 var incorrects:Array = new Array();
 incorrects[0] = a;
 incorrects[1] = b;
 incorrects[2] = c;
  
 Gordon Smith
 Adobe Flex SDK Team
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of Tim Hoff
 Sent: Thursday, January 17, 2008 11:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: using an array
 
 
 
 Hi,
 
 It looks like you have declared the array, but haven't constructed 
it;
 like so:
 
 var incorrects:Array = new Array();
 
 Some prefer:
 
 var incorrects:Array = new Array;
 
 -TH
 
 Tim Hoff
 Cynergy Systems  |  Technical Lead
 3603 5th Ave. Suite A, San Diego, CA 92103
 http://www.cynergysystems.com http://www.cynergysystems.com 
 
 --- In flexcoders@yahoogroups.com, info1@ info1@ wrote:
 
  I thought I knew how to do this but it seems like everything 
little 
  thing I do makes e! rrors.
  
  var incorrects:Array;
  incorrects[2]='asdf';
  TypeError: Error #1009: Cannot access a property or method of a 
null 
  object reference.
  
  What is the matter ?
 





[flexcoders] Re: AS3 RSS Parser

2008-01-18 Thread javaguru_uk
--- In flexcoders@yahoogroups.com, Jesse Warden [EMAIL PROTECTED] wrote:

Jesse Anyone know of an ActionScript 3 RSS feed parser that does not 
Jesse have any Flex framework dependencies?

Hum... don't really know what you mean by not having Flex framework
dependencies, but try http://code.google.com/p/as3syndicationlib/.
Maybe that suits your needs.









[flexcoders] How to auto indenting

2008-01-18 Thread YOGESH JADHAV
Hi all,
Anybody knows how to do vim like autoindenting in flex2/3. In
flex 3 i cant even find source shift to lfet/right options.

-- 


Regards,
Yogesh


RE: [flexcoders] Re: Remote Objects AIR

2008-01-18 Thread Dale Fraser
Im not sure what I was doing wrong.

 

But couldn't get it to work at work, but it worked first time at home.
Interesting.

 

Regards

Dale Fraser

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of lwz7512
Sent: Friday, 18 January 2008 4:30 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Remote Objects  AIR

 

the post is here:
http://tech.groups.yahoo.com/group/flexcoders/message/97678

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

 in your service config
 
 On Jan 17, 2008 10:05 PM, Dale Fraser [EMAIL PROTECTED] wrote:
 
  I have read that it is possible but can't find any examples.
 
 
 
  Where do you tell AIR or your project that the Remote Objects are 
on
  Server X.
 
 
 
  Regards
 
  Dale Fraser
 
 
 
  http://learncf.com
 
 
 
  *From:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com

[mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]
*On
  Behalf Of *lwz7512
  *Sent:* Friday, 18 January 2008 1:51 PM
  *To:* flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com 
  *Subject:* [flexcoders] Re: Remote Objects  AIR
 
 
 
  can anyone answer this question? I am also thinking about this! 
and
  how to access object without server context?
 
  --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
flexcoders%40yahoogroups.com, 
Dale
  Fraser dale@ wrote:
  
   I have a Flex application running nicely and using Remote 
Objects
  back to
   ColdFusion.
  
  
  
   I now want to make it an AIR application and make it do a couple
  extra
   tricks.
  
  
  
   How does my AIR application talk Remote Objects, how do I tell 
it
  what
   server to talk back to?
  
  
  
   Regards
  
   Dale Fraser
  
 
  
 
 
 
 
 -- 
 j:pn
 \\no comment


 



Re: [flexcoders] Re: Dataprovider for list

2008-01-18 Thread Paul Andrews
I can't help but think something else is going on. Can you post the xml and 
the code here?

Paul
- Original Message - 
From: flex2_4me [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 5:35 AM
Subject: [flexcoders] Re: Dataprovider for list


 Hi Paul-

 This doesn`t work...

 Any help is really appreciated..

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

 Looks as though it should work.

 Try:

 mx:List id=aadataProvider={getService.lastResult..item1}
 x=10
 y=25/

 Paul
 - Original Message - 
 From: flex2_4me [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Wednesday, January 16, 2008 12:10 PM
 Subject: [flexcoders] Dataprovider for list


  Hi-
 
  I have an XML file as follows
 
  ?xml version=1.0 encoding=utf8 ?
  root
  food
   categoryFruit/category
categoryitem
item1Cakes/item1
item2Chocolates/item2
/categoryitem
   categoryVegetable/category
  categoryitem
item1Onion/item1
item2Potato/item2
   item3Tomato/item3
/categoryitem
   /food
   /root
 
  I am using HTTPservice with id getService
 
  mx:List
  id=aadataProvider={getService.lastResult.root.food.category}
  x=10 y=25/
 
  Using this i am getting 'Fruit' and 'vegetable' in the list
 
  Now my Question is i want all item1 to be displayed in list
 control
  ie.'Cakes' 'onion'
  For this i tried
  mx:List
 
 id=aadataProvider={getService.lastResult.root.food.categoryitem.ite
  m1} x=10 y=25/
 
  But it is throwing error:
 
  Error: Unknown Property: 'item1'.
  at
 
 mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscr
  ipt/flash/proxy::getProperty()[E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\collections\ListCollectionVi
  ew.as:690]
  at mx.binding::PropertyWatcher/updateProperty()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:2
  91]
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
  at mx.binding::PropertyWatcher/updateParent()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
  97]
  at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
  at mx.binding::PropertyWatcher/updateProperty()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
  00]
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
  at mx.binding::PropertyWatcher/updateParent()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
  97]
  at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
  at mx.binding::PropertyWatcher/updateProperty()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
  00]
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
  at mx.binding::PropertyWatcher/updateParent()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
  97]
  at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
  at mx.binding::PropertyWatcher/updateProperty()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
  00]
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
  at mx.binding::PropertyWatcher/updateParent()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
  97]
  at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
  at mx.binding::PropertyWatcher/updateProperty()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
  00]
  at Function/http://adobe.com/AS3/2006/builtin::apply()
  at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
  \sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
  at mx.binding::PropertyWatcher/eventHandler()
  [E:\dev\flex_3_beta3
 
 \sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
  23]
  at flash.events::EventDispatcher/dispatchEventFunction()
  at flash.events::EventDispatcher/dispatchEvent()
  at
 
 mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::re
  sultHandler()[E:\dev\flex_3_beta3
  

[flexcoders] Re: How to auto indenting

2008-01-18 Thread YOGESH JADHAV
sorry , I really need good nap :),  i was in other perspective , now i can
see source options( in flex development ), but still don't know how to auto
indent?

On Jan 18, 2008 1:37 PM, YOGESH JADHAV [EMAIL PROTECTED] wrote:

 Hi all,
 Anybody knows how to do vim like autoindenting in flex2/3. In
 flex 3 i cant even find source shift to lfet/right options.

 --


 Regards,
 Yogesh




-- 


Regards,
Yogesh


[flexcoders] FDS Logging on Ubuntu 7.10

2008-01-18 Thread Adnan Doric
Hello,

I have a small webapp that I tested on windows and it work nice (based 
on Flex Test Drive).

Now I want to move that webapp in my virtual machine running Ubuntu 
7.10, tomcat 5.5 (same as windows) but I can't get it to work :

http://localhost:8180/myApp/messagebroker/amf returns 404

http://localhost:8180/myApp alone displays Flex welcome screen.

So I know there must be some problem when FDS is starting, but in logs 
/var/lib/tomcat55/logs I have only :
catalina.(timestamp).log
localhost.(timestamp).log
admin.(timestamp).log
manager.(timestamp).log
host_manager.(timestamp).log

and there are no errors at all, everything seems to be started correctly.

On Ubuntu I can't find
stdout.(timestamp).log and
stderr.(timestamp).log
where Flex is normally outputting initialization errors.

On windows I can see those files and Flex logs prefixed with [Flex] 
example :
[Flex] RTMP-Server failed to start up: java.net.BindException: Address 
already in use: bind

Can someone please help me configure Tomcat so it can generate 
stdout.(timestamp).log and stderr.(timestamp).log

Thank you in advance,
Adnan




Re: [flexcoders] Failure to access a WSDL file from Flex's WebService class over HTTPS on IE

2008-01-18 Thread Tom Chiverton
On Thursday 17 Jan 2008, Seth Hodgson wrote:
 This is due to a long-standing IE bug with HTTPS and cache-related response
 headers.

http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=fdc7b5c

-- 
Tom Chiverton
Helping to centrally expedite enterprise-class methodologies
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


RE: [flexcoders] edit labels of the pie chart

2008-01-18 Thread Sunil Bannur
With Flex 3, the segments get selected, if you have set the
selectionMode on the chart. For the label to get selected, you have to
write some custom code on item_click or change events.
 
BTW, what is your objective of selecting the label? copy-paste? is it an
air app or a flex app?
 
Thanks
-Sunil



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ravi6mrgn
Sent: Friday, January 18, 2008 11:47 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] edit labels of the pie chart



Hi All, I am developing an application in which, it is desired that a 
user should be able to click on the labels (which are showing the 
details of a pie chart). Upon clicking the labels it should get 
selected and the corresponding segments of the pie charts should also 
get selected. Any help will be highly appreciated



 


Re: [flexcoders] Re: Dataprovider for list

2008-01-18 Thread Paul Andrews

- Original Message - 
From: flex2_4me [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 9:44 AM
Subject: [flexcoders] Re: Dataprovider for list


 Hi Paul,
 =
 The MXML file is as follows
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
 layout=absolute creationComplete=userRequest.send()
 mx:HTTPService id=userRequest url=../src/data.xml /
 
 mx:List id=aa 
 dataProvider={userRequest.lastResult.root.food.categoryitem.item1} 
 x=10 y=25/ 
 
 /mx:Application

Here you go:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=userRequest.send()
mx:HTTPService id=userRequest url=data.xml resultFormat=e4x/
mx:List id=aa 
dataProvider={userRequest.lastResult.food.categoryitem.item1} 
x=10 y=25/ 
/mx:Application

Paul


Re: [flexcoders] How to auto indenting

2008-01-18 Thread YOGESH JADHAV
Hi Tom,
   That's not working, it just shifts the whole selected block
to right.

On Jan 18, 2008 4:44 PM, Tom Chiverton [EMAIL PROTECTED] wrote:

 On Friday 18 Jan 2008, YOGESH JADHAV wrote:
  Anybody knows how to do vim like autoindenting in flex2/3.
 In
  flex 3 i cant even find source shift to lfet/right options.

 High light the text and press tab.

 --
 Tom Chiverton
 Helping to appropriately exploit eligible solutions
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.


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






-- 


Regards,
Yogesh


Re: [flexcoders] FDS/Glassfish

2008-01-18 Thread Tom Chiverton
On Friday 18 Jan 2008, yourName wrote:
 Iam using netbeans 6.0 and glass fish v(2) and flex builder 3.0(Beta)
 can any tell how to configure these two i.e how to setup fds for
 glassfish...

I don't belive GlassFish is supported. Use an alternative that is, if so, 
while you are getting up to speed.

-- 
Tom Chiverton
Helping to autoschediastically cluster scalable bandwidth
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Tabbing to an HBox

2008-01-18 Thread Tom Chiverton
On Friday 18 Jan 2008, Giles Roadnight wrote:
 HBox set up as a button. 

This is unusual - why do this rather than use a (styled) Panel or other 
container ?

-- 
Tom Chiverton
Helping to continually industrialize attention-grabbing patterns
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] Tabbing to an HBox

2008-01-18 Thread Giles Roadnight
Hi All

I've got a simple task - to tab through a list of buttons and to an
HBox set up as a button. This doesn't seem to work though, I have
tried in Flex 3 and Flex 2 and a variety of different property combos.

my current code looks like this:

?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute

mx:VBox
mx:Button label=button 1  /
mx:Button label=button 2  /

mx:HBox  
buttonMode=true
tabEnabled=true 
focusEnabled=true  
backgroundColor=0xFF 
mouseChildren=false
mx:Label text=hbox heading fontWeight=bold /
mx:Label text=hbox content /
/mx:HBox

mx:Button label=button 3/
/mx:VBox
/mx:Application

Any suggestions?

Thanks



Re: [flexcoders] How to auto indenting

2008-01-18 Thread Tom Chiverton
On Friday 18 Jan 2008, YOGESH JADHAV wrote:
That's not working, it just shifts the whole selected block
 to right.

No, thats working :-)
Shift-tab does the reverse.

-- 
Tom Chiverton
Helping to evangelistically initiate error-free methodologies
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Re: Dataprovider for list

2008-01-18 Thread Paul Andrews
I changed the xml file path in my example, you may possibly need to change 
it back.

Paul
- Original Message - 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 10:26 AM
Subject: Re: [flexcoders] Re: Dataprovider for list



 - Original Message - 
 From: flex2_4me [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, January 18, 2008 9:44 AM
 Subject: [flexcoders] Re: Dataprovider for list


 Hi Paul,
 =
 The MXML file is as follows
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=userRequest.send()
 mx:HTTPService id=userRequest url=../src/data.xml /

 mx:List id=aa
 dataProvider={userRequest.lastResult.root.food.categoryitem.item1}
 x=10 y=25/

 /mx:Application

 Here you go:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=userRequest.send()
 mx:HTTPService id=userRequest url=data.xml resultFormat=e4x/
 mx:List id=aa
 dataProvider={userRequest.lastResult.food.categoryitem.item1}
 x=10 y=25/
 /mx:Application

 Paul


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



 



[flexcoders] FDS Logging on Ubuntu 7.10

2008-01-18 Thread Adnan Doric
Hello,

I have a small webapp that I tested on windows and it work nice (based
on Flex Test Drive).

Now I want to move that webapp in my virtual machine running Ubuntu
7.10, tomcat 5.5 (same as windows) but I can't get it to work :

http://localhost:8180/myApp/messagebroker/amf returns 404

http://localhost:8180/myApp alone displays Flex welcome screen.

So I know there must be some problem when FDS is starting, but in logs
/var/lib/tomcat55/logs I have only :
catalina.(timestamp).log
localhost.(timestamp).log
admin.(timestamp).log
manager.(timestamp).log
host_manager.(timestamp).log

and there are no errors at all, everything seems to be started correctly.

On Ubuntu I can't find
stdout.(timestamp).log and
stderr.(timestamp).log
where Flex is normally outputting initialization errors.

On windows I can see those files and Flex logs prefixed with [Flex]
example :
[Flex] RTMP-Server failed to start up: java.net.BindException: Address
already in use: bind

Can someone please help me configure Tomcat so it can generate
stdout.(timestamp).log and stderr.(timestamp).log

Thank you in advance,
Adnan



[flexcoders] Re: Dataprovider for list

2008-01-18 Thread flex2_4me
Hi Paul,

The XML file is as follows:


?xml version=1.0 encoding=utf8 ? 
 root 
 food 
  categoryFruit/category  
  categoryitem 
  item1Cakes/item1 
  item2Chocolates/item2 
  /categoryitem   
  categoryVegetable/category 
 categoryitem 
  item1Onion/item1 
  item2Tomato/item2 
  /categoryitem   
  /food 
  /root 

=
The MXML file is as follows
=
?xml version=1.0 encoding=utf-8?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml; 
layout=absolute creationComplete=userRequest.send()
mx:HTTPService id=userRequest url=../src/data.xml /

mx:List id=aa 
dataProvider={userRequest.lastResult.root.food.categoryitem.item1} 
x=10 y=25/ 

/mx:Application




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

 I can't help but think something else is going on. Can you post the 
xml and 
 the code here?
 
 Paul
 - Original Message - 
 From: flex2_4me [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, January 18, 2008 5:35 AM
 Subject: [flexcoders] Re: Dataprovider for list
 
 
  Hi Paul-
 
  This doesn`t work...
 
  Any help is really appreciated..
 
  --- In flexcoders@yahoogroups.com, Paul Andrews paul@ wrote:
 
  Looks as though it should work.
 
  Try:
 
  mx:List id=aadataProvider={getService.lastResult..item1}
  x=10
  y=25/
 
  Paul
  - Original Message - 
  From: flex2_4me flex2_4me@
  To: flexcoders@yahoogroups.com
  Sent: Wednesday, January 16, 2008 12:10 PM
  Subject: [flexcoders] Dataprovider for list
 
 
   Hi-
  
   I have an XML file as follows
  
   ?xml version=1.0 encoding=utf8 ?
   root
   food
categoryFruit/category
 categoryitem
 item1Cakes/item1
 item2Chocolates/item2
 /categoryitem
categoryVegetable/category
   categoryitem
 item1Onion/item1
 item2Potato/item2
item3Tomato/item3
 /categoryitem
/food
/root
  
   I am using HTTPservice with id getService
  
   mx:List
   
id=aadataProvider={getService.lastResult.root.food.category}
   x=10 y=25/
  
   Using this i am getting 'Fruit' and 'vegetable' in the list
  
   Now my Question is i want all item1 to be displayed in list
  control
   ie.'Cakes' 'onion'
   For this i tried
   mx:List
  
  
id=aadataProvider={getService.lastResult.root.food.categoryitem.ite
   m1} x=10 y=25/
  
   But it is throwing error:
  
   Error: Unknown Property: 'item1'.
   at
  
  
mx.collections::ListCollectionView/http://www.adobe.com/2006/actionscr
   ipt/flash/proxy::getProperty()[E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\collections\ListCollectionVi
   ew.as:690]
   at mx.binding::PropertyWatcher/updateProperty()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:2
   91]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
   at mx.binding::PropertyWatcher/updateParent()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
   97]
   at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
   at mx.binding::PropertyWatcher/updateProperty()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
   00]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
   at mx.binding::PropertyWatcher/updateParent()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
   97]
   at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
   at mx.binding::PropertyWatcher/updateProperty()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
   00]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at mx.binding::Watcher/wrapUpdate()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:180]
   at mx.binding::PropertyWatcher/updateParent()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:1
   97]
   at mx.binding::Watcher/updateChildren()[E:\dev\flex_3_beta3
   
\sdk\frameworks\projects\framework\src\mx\binding\Watcher.as:126]
   at mx.binding::PropertyWatcher/updateProperty()
   [E:\dev\flex_3_beta3
  
  
\sdk\frameworks\projects\framework\src\mx\binding\PropertyWatcher.as:3
   00]
   at Function/http://adobe.com/AS3/2006/builtin::apply()
   at 

Re: [flexcoders] Killing Browser based popups

2008-01-18 Thread Tom Chiverton
On Thursday 17 Jan 2008, markcavins wrote:
 I have this flex app that accesses an existing backend program to get
 it's information. 

How ? XML RPC ? Or are you screen scrapeing ?

 One of the fail safes we have in this backend is a 
 browser based pop up that will activate if a user enters the wrong
 username or password.

At a guess, this would be JavaScript in a HTML repsonce, right ? Which won't 
be run by the Flex HTTP client.

-- 
Tom Chiverton
Helping to preemptively participate front-end models
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


RE: [flexcoders] Two chart components w. Linear Axis calling similar function on them breaks down

2008-01-18 Thread Sunil Bannur
Can you post a small code snippet, if you use the same axis for both the
charts, then this can happen, not sure whether thats the issue you are
facing.
 
-Sunil



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of alex
Sent: Friday, January 18, 2008 6:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Two chart components w. Linear Axis calling
similar function on them breaks down



Hey

I have two ColumnChart components with Linear Axis
I call labelFunction on each of them , the functions are similar in 
functionality but different variables names. I'm just cleaning up 
labels and ticks arrays to contain less members.

What strange happens is that the functions does not work well, their 
functionality breaks down.

I don't call from second component the second function, everything 
works fine !
They can't overlap, I renamed everything ...

This is the second time I notice it , had problem with gridLines too
had to create arrays with two different ids to use in each chart for 
background elements , otherwise one would not work.

I use Flex 2.0.1

Anyone ?



 


Re: [flexcoders] Adding a 'baseline' to a Flex Chart

2008-01-18 Thread Tom Chiverton
On Thursday 17 Jan 2008, Scott Stroz wrote:
 I am trying to create a LineChart in Flex that has one series and a
 'baseline' (I doubt I am using the correct term there), where the baseline
 would be a straight line across the chart at a given value.

It's just a 2nd data set on the Chart, no ?

-- 
Tom Chiverton
Helping to conveniently evolve principle-centered data
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] How to auto indenting

2008-01-18 Thread Tom Chiverton
On Friday 18 Jan 2008, YOGESH JADHAV wrote:
 Anybody knows how to do vim like autoindenting in flex2/3. In
 flex 3 i cant even find source shift to lfet/right options.

High light the text and press tab.

-- 
Tom Chiverton
Helping to appropriately exploit eligible solutions
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


[flexcoders] FDS/Glassfish

2008-01-18 Thread yourName
Iam using netbeans 6.0 and glass fish v(2) and flex builder 3.0(Beta)
can any tell how to configure these two i.e how to setup fds for 
glassfish...
that is i have wrote simple java web service that return returns java object 
..
how can i recive this object in my flex app...



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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


Re: [flexcoders] Re: Dataprovider for list

2008-01-18 Thread Vinod M Jacob
Hi Paul-
   
  Thanks.
  Now its really works for me.

Paul Andrews [EMAIL PROTECTED] wrote:
  I changed the xml file path in my example, you may possibly need to 
change 
it back.

Paul
- Original Message - 
From: Paul Andrews [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 10:26 AM
Subject: Re: [flexcoders] Re: Dataprovider for list


 - Original Message - 
 From: flex2_4me [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, January 18, 2008 9:44 AM
 Subject: [flexcoders] Re: Dataprovider for list


 Hi Paul,
 =
 The MXML file is as follows
 =
 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=userRequest.send()
 mx:HTTPService id=userRequest url=../src/data.xml /

 mx:List id=aa
 dataProvider={userRequest.lastResult.root.food.categoryitem.item1}
 x=10 y=25/

 /mx:Application

 Here you go:

 ?xml version=1.0 encoding=utf-8?
 mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
 layout=absolute creationComplete=userRequest.send()
 mx:HTTPService id=userRequest url=data.xml resultFormat=e4x/
 mx:List id=aa
 dataProvider={userRequest.lastResult.food.categoryitem.item1}
 x=10 y=25/
 /mx:Application

 Paul


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



 



 

   
-
Looking for last minute shopping deals?  Find them fast with Yahoo! Search.

Re: [flexcoders] How to auto indenting

2008-01-18 Thread Paul Andrews
- Original Message - 
  From: YOGESH JADHAV 
  To: flexcoders@yahoogroups.com 
  Sent: Friday, January 18, 2008 11:57 AM
  Subject: Re: [flexcoders] How to auto indenting


  Hi Tom,
 That's not working, it just shifts the whole selected block to 
right.

Unfortunately, there is no auto-layout facility in Flex builder. Tom was 
refering to the block indent facility, as you have found.

Paul



  On Jan 18, 2008 4:44 PM, Tom Chiverton [EMAIL PROTECTED]  wrote:

On Friday 18 Jan 2008, YOGESH JADHAV wrote:
 Anybody knows how to do vim like autoindenting in flex2/3. In 
 flex 3 i cant even find source shift to lfet/right options.


High light the text and press tab.

--
Tom Chiverton
Helping to appropriately exploit eligible solutions
on: http://thefalken.livejournal.com

Re: [flexcoders] Tabbing to an HBox

2008-01-18 Thread Giles Roadnight
And by the way, it doesn't work with a canvas either.

On Jan 18, 2008 11:58 AM, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Friday 18 Jan 2008, Giles Roadnight wrote:
  HBox set up as a button.

 This is unusual - why do this rather than use a (styled) Panel or other
 container ?

 --
 Tom Chiverton
 Helping to continually industrialize attention-grabbing patterns
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.


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






-- 
Giles Roadnight
http://giles.roadnight.name


RE: [flexcoders] Modifying sounds

2008-01-18 Thread Ed Capistrano
Oh, realy?! I mean this is interesting modifying sound object#39;s properties! 
Waiting for the answer to this...

Edtrade;
Proud and happy member

jay.bradley wrote: 
 I'm trying to create an application like a one way skype where 
 the 
 human voice recorded from the microphone is altered to sound different 
 and I've had no luck finding a starting point or any examples of 
 modifying sound in flex or flash. 
 Does anybody know how to modify sound on-the-fly in flex/ flash? 
 Maybe I need to look at server side solutions? Anybody done anything 
 like this before? 
 Cheers, 
 Jay 
  


Send instant messages to your online friends http://uk.messenger.yahoo.com 


Re: [flexcoders] Tabbing to an HBox

2008-01-18 Thread Giles Roadnight
Because an HBox is already being used - I was asked why the tabbing didn't
work.

Not sure why an Hbox is being instead of anything else.

This should work though shouldn't it? Is this a bug?

Thanks

On Jan 18, 2008 11:58 AM, Tom Chiverton [EMAIL PROTECTED]
wrote:

 On Friday 18 Jan 2008, Giles Roadnight wrote:
  HBox set up as a button.

 This is unusual - why do this rather than use a (styled) Panel or other
 container ?

 --
 Tom Chiverton
 Helping to continually industrialize attention-grabbing patterns
 on: http://thefalken.livejournal.com

 

 This email is sent for and on behalf of Halliwells LLP.

 Halliwells LLP is a limited liability partnership registered in England
 and Wales under registered number OC307980 whose registered office address
 is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.
  A list of members is available for inspection at the registered office. Any
 reference to a partner in relation to Halliwells LLP means a member of
 Halliwells LLP.  Regulated by The Solicitors Regulation Authority.

 CONFIDENTIALITY

 This email is intended only for the use of the addressee named above and
 may be confidential or legally privileged.  If you are not the addressee you
 must not read it and must not use any information contained in nor copy it
 nor inform any person other than Halliwells LLP or the addressee of its
 existence or contents.  If you have received this email in error please
 delete it and notify Halliwells LLP IT Department on 0870 365 2500.

 For more information about Halliwells LLP visit www.halliwells.com.


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






-- 
Giles Roadnight
http://giles.roadnight.name


[flexcoders] Login Problem

2008-01-18 Thread NileAge, Mail
Hi all

I'm working with flex 2 and asp.net . I face a problem when I make login I
want to write welcome User Name as we see in most web sites. This occur
when I make login and then press F5 

I need to do this without pressing F5 or after I make login immediately

 



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Thanks Jim, I'm going to try that out.  I tried something extremely
similar last night, but couldn't get it working.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Thursday, January 17, 2008 11:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?



Not quite sure exactly what you're looking for here Jason, but
I'm guessing it's something like this:
(I've just hacked at your last example since its very late here
and I'm tired, but hope it helps get you a bit further).
Note your component instance now has width+height set to 100%
and there's an override of updateDisplayList.
I'm actually really unhappy with the resultant code for a few
reasons, so please don't take it as an example of good practice in any
way.
But, at the end of the day, your circle gets drawn in the middle
of the panel when the panel resizes, which I think is something along
the lines of what you wanted to do.

mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
c:NetworkLayout container={networkBrowserPanel} width=100%
height=100%
outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=20 / 
/mx:Panel 

package components
{
import mx.core.UIComponent;
import flash.geom.Rectangle;

public class NetworkLayout extends UIComponent
{
public var container:UIComponent;
public var borderThickness:int;
public var outerColor:uint;
public var innerColor:uint;
public var outerAlpha:int;
public var innerAlpha:int;
public var circleRadius:int;

public function NetworkLayout()
{
super();
}

override protected function commitProperties():void
{
drawCircle();
}

private function drawCircle():void
{
graphics.clear();
var thisWidth:int = measuredWidth;
var thisHeight:int = measuredHeight;
var middleX:int = thisWidth/2;
var middleY:int = thisHeight/2;

graphics.lineStyle(borderThickness, outerColor, outerAlpha);
graphics.beginFill(innerColor, innerAlpha)
graphics.drawCircle(middleX, middleY, circleRadius); 
}

override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight); 
measuredWidth = unscaledWidth;
measuredHeight = unscaledHeight; 
drawCircle();
}

override protected function measure():void
{
var rect:Rectangle = getBounds(container);
measuredWidth = rect.width;
measuredHeight = rect.height; 
}

}
}

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  on behalf of Merrill, Jason
Sent: Fri 18/01/2008 01:42
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: RE: [flexcoders] Drawn objects acting as children to
components?

OK, thanks, I have knocked this down to it's simplest form. The
graphic
appears in the right spot, but it does not respond to changes in
the
panel's size change. I'm not sure how to implement that in my
component.
I'm passing in a reference to the Panel container, but it's not
responding to it's width and height - I tried adding a listener
to the
panel's updateComplete event, but when I reference the panel, I
get an
error saying I cannot assign to a null property. I took that
code out,
see the rest below:

mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
c:NetworkLayout container={networkBrowserPanel} 
outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=20 /
/mx:Panel 

package components
{
import mx.core.UIComponent;
import flash.geom.Rectangle;

public class NetworkLayout extends UIComponent
{
public var container:UIComponent;
public var borderThickness:int;
public var outerColor:uint;
public var innerColor:uint;
public var outerAlpha:int;
public var innerAlpha:int;
public var circleRadius:int;

public function NetworkLayout()
{
super();
}

override protected 

RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Yeah, the circle is just an example - really I would be calling another
class which draw a series of circles, lines, textfields, etc. in order
to draw a complex network based on a set of data.  The circle was just
to get the concept started of fitting graphics properly inside a Panel
component,  thanks.
 
Am I headed down the right road by passing a reference to the parent
container (the panel in this case) and using that as the argument
required in getBounds()?  
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Friday, January 18, 2008 12:30 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?


   


Thinking about this some more, you can remove commitProperties
if you can determine the bounds some other way besides actually drawing.
For a simple circle, the radius tells all and measure wouldn't call
getBounds() and just set measuredWIdth/Height to 2 * circleRadius +
borderThickness.  Then in updateDL, you would actually do the drawing
and use 1/2 the min of unscaledWidht/Height to determine the radius, or
draw an ellipse, or whatever you think is right.
 
If you are drawing something really complex, then I would draw
it in commitProperties so you can call getBounds during measure.  It
sort of depends on whether and how you plan to handling resizing and
aspect ratios.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Thursday, January 17, 2008 8:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?



Not quite sure exactly what you're looking for here Jason, but
I'm guessing it's something like this:
(I've just hacked at your last example since its very late here
and I'm tired, but hope it helps get you a bit further).
Note your component instance now has width+height set to 100%
and there's an override of updateDisplayList.
I'm actually really unhappy with the resultant code for a few
reasons, so please don't take it as an example of good practice in any
way.
But, at the end of the day, your circle gets drawn in the middle
of the panel when the panel resizes, which I think is something along
the lines of what you wanted to do.

mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
c:NetworkLayout container={networkBrowserPanel} width=100%
height=100%
outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=20 / 
/mx:Panel 

package components
{
import mx.core.UIComponent;
import flash.geom.Rectangle;

public class NetworkLayout extends UIComponent
{
public var container:UIComponent;
public var borderThickness:int;
public var outerColor:uint;
public var innerColor:uint;
public var outerAlpha:int;
public var innerAlpha:int;
public var circleRadius:int;

public function NetworkLayout()
{
super();
}

override protected function commitProperties():void
{
drawCircle();
}

private function drawCircle():void
{
graphics.clear();
var thisWidth:int = measuredWidth;
var thisHeight:int = measuredHeight;
var middleX:int = thisWidth/2;
var middleY:int = thisHeight/2;

graphics.lineStyle(borderThickness, outerColor, outerAlpha);
graphics.beginFill(innerColor, innerAlpha)
graphics.drawCircle(middleX, middleY, circleRadius); 
}

override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight); 
measuredWidth = unscaledWidth;
measuredHeight = unscaledHeight; 
drawCircle();
}

override protected function measure():void
{
var rect:Rectangle = getBounds(container);
measuredWidth = rect.width;
measuredHeight = rect.height; 
}

}
}

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  on behalf of Merrill, Jason
Sent: Fri 18/01/2008 01:42
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: RE: [flexcoders] Drawn objects acting as children to
components?

OK, thanks, I have knocked this down to it's 

RE: [flexcoders] File upload

2008-01-18 Thread Merrill, Jason
Is there any way i can upload single file in flex.
 
What kind of file and from where?  And to where?  
 
What kind of file? XML?  .JPG?  .MP3?  Sure.  To where?  Into Flex?
Then it would have to be a compatible media format like xml, jpg, .flv,
mp3, etc.  If you mean to the server where the file is, actually just
about anything using Filereference class an a server side script.
 
From your hard drive, no, but yes if you make your Flex app a desktop
app with Adobe AIR.  
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



RE: [flexcoders] Login Problem

2008-01-18 Thread Tracy Spratt
Need more detail.  Code?

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of NileAge, Mail
Sent: Friday, January 18, 2008 7:08 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Login Problem

 

Hi all

I'm working with flex 2 and asp.net . I face a problem when I make login
I want to write welcome User Name as we see in most web sites. This
occur when I make login and then press F5 

I need to do this without pressing F5 or after I make login immediately

 

 



[flexcoders] File upload

2008-01-18 Thread chr_nrt
Hi,

Is there any way i can upload single file in flex.

Thanks
chr



Re: [flexcoders] itemclick event doent work for subment

2008-01-18 Thread Max Frigge
Hey, it should be enough to apply the itemClick listener..
that event should be dispatched on subItem clicks too. 



- Original Message 
From: jwaladeep [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 2:06:06 PM
Subject: [flexcoders] itemclick  event doent work for subment










  



i have this problem with menu itemClick event for submenu. I have 

flex 2.0.1 version and flex website says that , itemClick event 

doesn't work for submenus. 

(http://livedocs. adobe.com/ flex/2/docs/ ww... 



Is there any way by which i could detect click event for submenu ? 



My sample code goes this way . 



public function initMenu():void { 



var myMenu:Menu= new Menu(); 

myMenu.dataProvider = instructionMenu; 

myMenu.labelField= @label; 

myMenu.addEventList ener(itemClick , changeHandler) ; 

popB.popUp = myMenu; 

} 



dataProvider is an xmllistcollection containing submenu. I add this 

menu in a popupbutton (popB).



thanks






  







!--

#ygrp-mkp{
border:1px solid #d8d8d8;font-family:Arial;margin:14px 0px;padding:0px 14px;}
#ygrp-mkp hr{
border:1px solid #d8d8d8;}
#ygrp-mkp #hd{
color:#628c2a;font-size:85%;font-weight:bold;line-height:122%;margin:10px 0px;}
#ygrp-mkp #ads{
margin-bottom:10px;}
#ygrp-mkp .ad{
padding:0 0;}
#ygrp-mkp .ad a{
color:#ff;text-decoration:none;}
--



!--

#ygrp-sponsor #ygrp-lc{
font-family:Arial;}
#ygrp-sponsor #ygrp-lc #hd{
margin:10px 0px;font-weight:bold;font-size:78%;line-height:122%;}
#ygrp-sponsor #ygrp-lc .ad{
margin-bottom:10px;padding:0 0;}
--



!--

#ygrp-mlmsg {font-size:13px;font-family:arial, helvetica, clean, sans-serif;}
#ygrp-mlmsg table {font-size:inherit;font:100%;}
#ygrp-mlmsg select, input, textarea {font:99% arial, helvetica, clean, 
sans-serif;}
#ygrp-mlmsg pre, code {font:115% monospace;}
#ygrp-mlmsg * {line-height:1.22em;}
#ygrp-text{
font-family:Georgia;
}
#ygrp-text p{
margin:0 0 1em 0;}
#ygrp-tpmsgs{
font-family:Arial;
clear:both;}
#ygrp-vitnav{
padding-top:10px;font-family:Verdana;font-size:77%;margin:0;}
#ygrp-vitnav a{
padding:0 1px;}
#ygrp-actbar{
clear:both;margin:25px 0;white-space:nowrap;color:#666;text-align:right;}
#ygrp-actbar .left{
float:left;white-space:nowrap;}
..bld{font-weight:bold;}
#ygrp-grft{
font-family:Verdana;font-size:77%;padding:15px 0;}
#ygrp-ft{
font-family:verdana;font-size:77%;border-top:1px solid #666;
padding:5px 0;
}
#ygrp-mlmsg #logo{
padding-bottom:10px;}

#ygrp-vital{
background-color:#e0ecee;margin-bottom:20px;padding:2px 0 8px 8px;}
#ygrp-vital #vithd{
font-size:77%;font-family:Verdana;font-weight:bold;color:#333;text-transform:uppercase;}
#ygrp-vital ul{
padding:0;margin:2px 0;}
#ygrp-vital ul li{
list-style-type:none;clear:both;border:1px solid #e0ecee;
}
#ygrp-vital ul li .ct{
font-weight:bold;color:#ff7900;float:right;width:2em;text-align:right;padding-right:.5em;}
#ygrp-vital ul li .cat{
font-weight:bold;}
#ygrp-vital a{
text-decoration:none;}

#ygrp-vital a:hover{
text-decoration:underline;}

#ygrp-sponsor #hd{
color:#999;font-size:77%;}
#ygrp-sponsor #ov{
padding:6px 13px;background-color:#e0ecee;margin-bottom:20px;}
#ygrp-sponsor #ov ul{
padding:0 0 0 8px;margin:0;}
#ygrp-sponsor #ov li{
list-style-type:square;padding:6px 0;font-size:77%;}
#ygrp-sponsor #ov li a{
text-decoration:none;font-size:130%;}
#ygrp-sponsor #nc{
background-color:#eee;margin-bottom:20px;padding:0 8px;}
#ygrp-sponsor .ad{
padding:8px 0;}
#ygrp-sponsor .ad #hd1{
font-family:Arial;font-weight:bold;color:#628c2a;font-size:100%;line-height:122%;}
#ygrp-sponsor .ad a{
text-decoration:none;}
#ygrp-sponsor .ad a:hover{
text-decoration:underline;}
#ygrp-sponsor .ad p{
margin:0;}
o{font-size:0;}
..MsoNormal{
margin:0 0 0 0;}
#ygrp-text tt{
font-size:120%;}
blockquote{margin:0 0 0 4px;}
..replbq{margin:4;}
--








  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] Using ClassReference in nested CSS file - possible?

2008-01-18 Thread ben.clinkinbeard
I can't seem to get my ClassReference directive to work unless the CSS
file is at the root of my project. When the CSS file is
assets/css/someStyles.css for instance, I get a definition could not
be found error. If the file is top-level it works fine. Is there some
kind of syntax I am unaware of or is this simply not possible? This is
how the directive looks now:

windowControlsClass: ClassReference(windowControls.WindowsXPControls);

windowControls.WindowsXPControls is the package relative to the root
of the project.

Thanks,
Ben



[flexcoders] Re: Passing additional information into renderer

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

 If you look at ClassFactory, it has a properties map that will copy 
any
 properties in the map to each instance.  This is different from
 assigning it to the data objects in the dataprovider, which you don't
 want to do because you're trying for a clean model/view design.  With
 repeaters, you are essentially generating view instances.
 
  
 
 If your renderer had a property called thumbnailViewer that pointed 
to
 something you wanted to customize, then you can assign to the
 ClassFactory properties= {thumbNailViewer, myThumbNailViewer} and it
 will essentially give every instance of the renderer that reference.

Cool.  Thanks.  Any insight into why repeaters let you do this 
directly, yet other item renderers have to use a ClassFactory?

Thanks;

Amy



[flexcoders] Flash Lite 3 for Nokia Phones

2008-01-18 Thread tomeuchre
I have been developing awesome apps in Flex 2.0.1 hf1 with remoting to 
back-end servers, and it has all been wonderful.
My boss now wants me to develop the *same* kind of things so that a 
browser on a flash-enabled phone can interact with the app as well (and 
use remoting for the data or perhaps http requests to the server if 
remoting is not allowed).

I assume that a different SDK is required for the Flash Lite Player, 
and maybe some features that I create in AS3/Flex2 may not be supported 
in Flash Lite...

Anyone want to point me in the right direction?

Best regards,

Tom




[flexcoders] Re: Two chart components w. Linear Axis calling similar function on them breaks down

2008-01-18 Thread alex
mx:ColumnChart
id=upper



mx:verticalAxis  
mx:LinearAxis
id=vertLinearAxisUpper
labelFunction=verticalAxisPrefixUpper
baseAtZero=false
autoAdjust=false 
maximum={model.parameters.yMax}
minimum={model.parameters.yMin}

 /
/mx:verticalAxis


/

mx:ColumnChart
id=lower


mx:verticalAxis  
   mx:LinearAxis
id=vertLinearAxisLower 
labelFunction=verticalAxisPrefixLower 
baseAtZero=false 
autoAdjust=false
maximum={model.parameters.yMax}
minimum={model.parameters.yMin2} /
/mx:verticalAxis
/

private function verticalAxisPrefixUpper(value:*,a:*,b:IAxis):String
{   ...
...
...
}

private function verticalAxisPrefixLower(value:*,a:*,b:IAxis):String
{   ...
...
...
}

If I call only the labelFunction for the first Axis it works 
perfectly, calling for two different Axis two different labelFunction 
will make the first that worked to not behave as expected and also 
the second is not working as well.





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

 Can you post a small code snippet, if you use the same axis for 
both the
 charts, then this can happen, not sure whether thats the issue you 
are
 facing.
  
 -Sunil
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of alex
 Sent: Friday, January 18, 2008 6:22 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Two chart components w. Linear Axis calling
 similar function on them breaks down
 
 
 
 Hey
 
 I have two ColumnChart components with Linear Axis
 I call labelFunction on each of them , the functions are similar in 
 functionality but different variables names. I'm just cleaning up 
 labels and ticks arrays to contain less members.
 
 What strange happens is that the functions does not work well, 
their 
 functionality breaks down.
 
 I don't call from second component the second function, everything 
 works fine !
 They can't overlap, I renamed everything ...
 
 This is the second time I notice it , had problem with gridLines too
 had to create arrays with two different ids to use in each chart 
for 
 background elements , otherwise one would not work.
 
 I use Flex 2.0.1
 
 Anyone ?





Re: [flexcoders] Re: setting effect to UI component

2008-01-18 Thread Tom Chiverton
On Friday 18 Jan 2008, learner wrote:
 how the Flexbuilder understand resizeEffect as the one of the standered
 property of the UIcomponent or container,

'magic' :-)
You can always read the source, along side the 'Developing' docs.

-- 
Tom Chiverton
Helping to dramatically build edge-of-your-seat markets
on: http://thefalken.livejournal.com



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in England and 
Wales under registered number OC307980 whose registered office address is at 
Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB.  A list 
of members is available for inspection at the registered office. Any reference 
to a partner in relation to Halliwells LLP means a member of Halliwells LLP.  
Regulated by The Solicitors Regulation Authority.

CONFIDENTIALITY

This email is intended only for the use of the addressee named above and may be 
confidential or legally privileged.  If you are not the addressee you must not 
read it and must not use any information contained in nor copy it nor inform 
any person other than Halliwells LLP or the addressee of its existence or 
contents.  If you have received this email in error please delete it and notify 
Halliwells LLP IT Department on 0870 365 2500.

For more information about Halliwells LLP visit www.halliwells.com.


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

* To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/

* Your email settings:
Individual Email | Traditional

* To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)

* To change settings via email:
mailto:[EMAIL PROTECTED] 
mailto:[EMAIL PROTECTED]

* To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]

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


RE: [flexcoders] errors in livedocs

2008-01-18 Thread Randy Nielsen
Yeah. It's still down.

 

The database behind many of the applications that run on adobe.com
(including LiveDocs and the forums) was down for maintenance last night
and apparently it's taking longer than anticipated. 

 

Randy Nielsen

Flex Learning Resources Manager

 



From: Gordon Smith 
Sent: Friday, January 18, 2008 2:07 AM
To: flexcoders@yahoogroups.com
Cc: Stephen Gilson; Randy Nielsen
Subject: RE: [flexcoders] errors in livedocs

 

 Is it just me ?

 

No, it isn't working for me either. I'm cc'ing some folks on the
documentation team.

 

Gordon Smith

Adobe Flex SDK Team

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of [EMAIL PROTECTED]
Sent: Thursday, January 17, 2008 10:59 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] errors in livedocs

Is it just me ?

On this page
http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html
http://livedocs.adobe.com/flex/2/langref/mx/core/UIComponent.html 

I put anything into the search box. It says

The requested URL /cfusion/search/index.cfm was not found on this
server.

 



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Jim Hayes
minWidth and minHeight seem to work for me :

mx:Panel id=networkBrowserPanel width=100% height=100% layout=absolute 
title=Network 
   c:NetworkLayout container={networkBrowserPanel} width=100% 
height=100%
outerAlpha=1 innerAlpha=1 outerColor=#ff 
innerColor=0x66 circleRadius=200 
minWidth=400 minHeight=400 
   / 
/mx:Panel

OR, if you need to calculate it on measure() or somewhere else in your code 
then:

override protected function measure():void
{
var rect:Rectangle = getBounds(container);
measuredWidth = rect.width;
measuredHeight = rect.height;
measuredMinWidth=circleRadius*2;
measuredMinHeight=circleRadius*2;   
}

for example ...

I'm no great expert on this stuff however, so anyone is welcome to speak up if 
it's not a good way to do it!


-Original Message-
From: flexcoders@yahoogroups.com on behalf of Merrill, Jason
Sent: Fri 18/01/2008 12:46
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to components?
 
OK, so I am now 90% there with this now, thanks to Alex and Jim.  I have
it working to auto-center if the panel re-sizes.  
 
Now the last part I still don't know how to tackle: the drawn graphics
can still extend over the edges of the Panel component if the graphics
are very large or there are a lot of them.  How do I get the Panel to
auto-trigger it's scrollbars and contain/mask the graphics being drawn?
I don't understand the Flex component framework enough to even know
where to begin.  Here is the complete code, and thank you for looking at
this:
 
 
mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
   c:NetworkLayout container={networkBrowserPanel} width=100%
height=100%
   outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=200 / 
/Panel
 
---
 
package components
{
 import mx.core.UIComponent;
 import flash.geom.Rectangle;
 
 public class NetworkLayout extends UIComponent
 {
  public var container:UIComponent;
  public var borderThickness:int;
  public var outerColor:uint;
  public var innerColor:uint;
  public var outerAlpha:int;
  public var innerAlpha:int;
  public var circleRadius:int;
  
  public function NetworkLayout()
  {
   super();
  }
  
override protected function commitProperties():void
{
   drawCircle();
}
  
  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void 
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight); 
   measuredWidth = unscaledWidth;
   measuredHeight = unscaledHeight; 
   drawCircle();
  }
  
override protected function measure():void
{
 var rect:Rectangle = getBounds(container);
 measuredWidth = rect.width;
   measuredHeight = rect.height;
}

private function drawCircle():void
  {
   graphics.clear();
   var thisWidth:int = measuredWidth;
   var thisHeight:int = measuredHeight;
   var middleX:int = thisWidth/2;
   var middleY:int = thisHeight/2;
   graphics.lineStyle(borderThickness, outerColor, outerAlpha);
   graphics.beginFill(innerColor, innerAlpha)
   graphics.drawCircle(middleX, middleY, circleRadius); 
  }
  
 }
}

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

[flexcoders] itemclick event doent work for subment

2008-01-18 Thread jwaladeep
i have this problem with menu itemClick event for submenu. I have 
flex 2.0.1 version and flex website says that , itemClick event 
doesn't work for submenus. 
(http://livedocs.adobe.com/flex/2/docs/ww... 

Is there any way by which i could detect click event for submenu ? 

My sample code goes this way . 

public function initMenu():void { 

var myMenu:Menu=new Menu(); 
myMenu.dataProvider = instructionMenu; 
myMenu.labelField=@label; 
myMenu.addEventListener(itemClick, changeHandler); 
popB.popUp = myMenu; 
} 

dataProvider is an xmllistcollection containing submenu. I add this 
menu in a popupbutton (popB).

thanks



[flexcoders] AIR - notifyUser ... expected behaviour?

2008-01-18 Thread polestar11
Hi

I have an AIR app that minimizes to the system-tray, displaying an icon.
When calling
stage.nativeWindow.notifyUser(NotificationType.INFORMATIONAL);
... I expect the icon to do something exciting, but it stays exactly
the same. Debugging the app confirms that the function is being called. 
Is there anything else I need to do to trigger an effect on the icon,
and what would the effect be? I have also tried setting multiple icons
in the bitmap array.

Cheers
Tracy



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
OK, so I am now 90% there with this now, thanks to Alex and Jim.  I have
it working to auto-center if the panel re-sizes.  
 
Now the last part I still don't know how to tackle: the drawn graphics
can still extend over the edges of the Panel component if the graphics
are very large or there are a lot of them.  How do I get the Panel to
auto-trigger it's scrollbars and contain/mask the graphics being drawn?
I don't understand the Flex component framework enough to even know
where to begin.  Here is the complete code, and thank you for looking at
this:
 
 
mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
   c:NetworkLayout container={networkBrowserPanel} width=100%
height=100%
   outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=200 / 
/Panel
 
---
 
package components
{
 import mx.core.UIComponent;
 import flash.geom.Rectangle;
 
 public class NetworkLayout extends UIComponent
 {
  public var container:UIComponent;
  public var borderThickness:int;
  public var outerColor:uint;
  public var innerColor:uint;
  public var outerAlpha:int;
  public var innerAlpha:int;
  public var circleRadius:int;
  
  public function NetworkLayout()
  {
   super();
  }
  
override protected function commitProperties():void
{
   drawCircle();
}
  
  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void 
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight); 
   measuredWidth = unscaledWidth;
   measuredHeight = unscaledHeight; 
   drawCircle();
  }
  
override protected function measure():void
{
 var rect:Rectangle = getBounds(container);
 measuredWidth = rect.width;
   measuredHeight = rect.height;
}

private function drawCircle():void
  {
   graphics.clear();
   var thisWidth:int = measuredWidth;
   var thisHeight:int = measuredHeight;
   var middleX:int = thisWidth/2;
   var middleY:int = thisHeight/2;
   graphics.lineStyle(borderThickness, outerColor, outerAlpha);
   graphics.beginFill(innerColor, innerAlpha)
   graphics.drawCircle(middleX, middleY, circleRadius); 
  }
  
 }
}

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Jim, that worked perfectly, thank you!  
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jim Hayes
Sent: Thursday, January 17, 2008 11:05 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?



Not quite sure exactly what you're looking for here Jason, but
I'm guessing it's something like this:
(I've just hacked at your last example since its very late here
and I'm tired, but hope it helps get you a bit further).
Note your component instance now has width+height set to 100%
and there's an override of updateDisplayList.
I'm actually really unhappy with the resultant code for a few
reasons, so please don't take it as an example of good practice in any
way.
But, at the end of the day, your circle gets drawn in the middle
of the panel when the panel resizes, which I think is something along
the lines of what you wanted to do.

mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
c:NetworkLayout container={networkBrowserPanel} width=100%
height=100%
outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=20 / 
/mx:Panel 

package components
{
import mx.core.UIComponent;
import flash.geom.Rectangle;

public class NetworkLayout extends UIComponent
{
public var container:UIComponent;
public var borderThickness:int;
public var outerColor:uint;
public var innerColor:uint;
public var outerAlpha:int;
public var innerAlpha:int;
public var circleRadius:int;

public function NetworkLayout()
{
super();
}

override protected function commitProperties():void
{
drawCircle();
}

private function drawCircle():void
{
graphics.clear();
var thisWidth:int = measuredWidth;
var thisHeight:int = measuredHeight;
var middleX:int = thisWidth/2;
var middleY:int = thisHeight/2;

graphics.lineStyle(borderThickness, outerColor, outerAlpha);
graphics.beginFill(innerColor, innerAlpha)
graphics.drawCircle(middleX, middleY, circleRadius); 
}

override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
{
super.updateDisplayList(unscaledWidth, unscaledHeight); 
measuredWidth = unscaledWidth;
measuredHeight = unscaledHeight; 
drawCircle();
}

override protected function measure():void
{
var rect:Rectangle = getBounds(container);
measuredWidth = rect.width;
measuredHeight = rect.height; 
}

}
}

-Original Message-
From: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com  on behalf of Merrill, Jason
Sent: Fri 18/01/2008 01:42
To: flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com 
Subject: RE: [flexcoders] Drawn objects acting as children to
components?

OK, thanks, I have knocked this down to it's simplest form. The
graphic
appears in the right spot, but it does not respond to changes in
the
panel's size change. I'm not sure how to implement that in my
component.
I'm passing in a reference to the Panel container, but it's not
responding to it's width and height - I tried adding a listener
to the
panel's updateComplete event, but when I reference the panel, I
get an
error saying I cannot assign to a null property. I took that
code out,
see the rest below:

mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
c:NetworkLayout container={networkBrowserPanel} 
outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=0x66 circleRadius=20 /
/mx:Panel 

package components
{
import mx.core.UIComponent;
import flash.geom.Rectangle;

public class NetworkLayout extends UIComponent
{
public var container:UIComponent;
public var borderThickness:int;
public var outerColor:uint;
public var innerColor:uint;
public var outerAlpha:int;
public var innerAlpha:int;
public var circleRadius:int;

public function NetworkLayout()
{
super();
}

override protected function commitProperties():void
{
drawCircle();
}


[flexcoders] Hibernate..

2008-01-18 Thread pradhasan
Hi,

I would like to know for large scale application which one is better 
using HibernateAssembler or SQLAssembler in data-management-config.xml.

Thanks in advance.



[flexcoders] Re: File upload

2008-01-18 Thread chr_nrt
Sorry Jason, i am trying to do this from yesterday onwards. I went 
through the documentation, i developed 2,3 samples. I search in 
google still i couldn't find direct single file upload in flex. 

In html if you put single statement it browse the file and uploads 
that particular file. In flex you have to put two buttons one for 
browse and the second one for upload. I am just trying to simplify 
for my end user. Correct me if i am wrong.

Thanks
chr

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

 Well, come on now, this is one of those cases where you're not even
 trying. :)   In the help docs, which I referenced in the last post,
 there are samples and examples.  See the topic Working with file
 upload and download which appears as a topic when you seach for
 FileReference in Flex Help.
  
 If you want to learn to do the .NET or PHP side, then this is 
kinda the
 wrong list to ask that.
  
 Good luck to you, I don't mean to be harsh - honestly. 
  
 
 Jason Merrill 
 Bank of America 
 GTO LLD Solutions Design  Development 
 eTools  Multimedia 
 
 Bank of America Flash Platform Developer Community





[flexcoders] Re: Using ClassReference in nested CSS file - possible?

2008-01-18 Thread madflexcoder
Is this in a flex library project or a regular flex project that your
css is in?


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

 I can't seem to get my ClassReference directive to work unless the CSS
 file is at the root of my project. When the CSS file is
 assets/css/someStyles.css for instance, I get a definition could not
 be found error. If the file is top-level it works fine. Is there some
 kind of syntax I am unaware of or is this simply not possible? This is
 how the directive looks now:
 
 windowControlsClass: ClassReference(windowControls.WindowsXPControls);
 
 windowControls.WindowsXPControls is the package relative to the root
 of the project.
 
 Thanks,
 Ben





RE: [flexcoders] Re: File upload

2008-01-18 Thread Clint Tredway
No, you do not need 2 buttons, only one will be needed. In the
selectHandler of the file call is where the upload actually happens. 

 

Here is the example in livedocs that should get you going.

http://livedocs.adobe.com/flex/201/html/17_Networking_and_communications
_173_6.html#118971

 

Clint Tredway
Cynergy Systems | Consultant
706 7th St SE, Washington DC, 20003
W. http://www.cynergysystems.com
E. [EMAIL PROTECTED]

 

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of chr_nrt
Sent: Friday, January 18, 2008 12:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File upload

 

Sorry Jason, i am trying to do this from yesterday onwards. I went 
through the documentation, i developed 2,3 samples. I search in 
google still i couldn't find direct single file upload in flex. 

In html if you put single statement it browse the file and uploads 
that particular file. In flex you have to put two buttons one for 
browse and the second one for upload. I am just trying to simplify 
for my end user. Correct me if i am wrong.

Thanks
chr

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

 Well, come on now, this is one of those cases where you're not even
 trying. :) In the help docs, which I referenced in the last post,
 there are samples and examples. See the topic Working with file
 upload and download which appears as a topic when you seach for
 FileReference in Flex Help.
 
 If you want to learn to do the .NET or PHP side, then this is 
kinda the
 wrong list to ask that.
 
 Good luck to you, I don't mean to be harsh - honestly. 
 
 
 Jason Merrill 
 Bank of America 
 GTO LLD Solutions Design  Development 
 eTools  Multimedia 
 
 Bank of America Flash Platform Developer Community


 



[flexcoders] Security error accessing url?

2008-01-18 Thread Nate Pearson
I'm using Flex Builder 3 Beta 3.  I can't seem to create any new
projects that can connect to webservices!  I'll copy the exact same
code from an old project into a new Flex Builder 3 Beta 3 project and
I get the error below.  Anyone know why?

This is really frustrating!

[RPC Fault faultString=Security error accessing url
faultCode=Channel.Security.Error faultDetail=Unable to load WSDL.
If currently online, please verify the URI and/or format of the WSDL
(http://www.mywebaddress.com/roadmap/systemsRM.asmx?WSDL)]
at
mx.rpc.wsdl::WSDLLoader/faultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\wsdl\WSDLLoader.as:105]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::dispatchRpcEvent()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:175]
at
mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/internal::faultHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AbstractInvoker.as:227]
at
mx.rpc::Responder/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\Responder.as:56]
at
mx.rpc::AsyncRequest/fault()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\rpc\AsyncRequest.as:110]
at
DirectHTTPMessageResponder/securityErrorHandler()[E:\dev\flex_3_beta3\sdk\frameworks\projects\rpc\src\mx\messaging\channels\DirectHTTPChannel.as:374]
at flash.events::EventDispatcher/dispatchEventFunction()
at flash.events::EventDispatcher/dispatchEvent()
at flash.net::URLLoader/redirectEvent()




Re: [flexcoders] How do YOU do functional testing and automation package questions

2008-01-18 Thread Jonathan Branam
 Matt, is this actually the case today? Has anyone else been able to
confirm this? I can't find the flex 2 automation packages in Flex
Builder 3 Beta 2 or 3. At least, I can't find the automation_agent.swc.


 -- Forwarded message --
 From: Matt Chotin  [EMAIL PROTECTED]
 Date: Dec 10, 2007 11:26 AM
 Subject: RE: [flexcoders] How do YOU do functional testing and
 automation package questions
 To: flexcoders@yahoogroups.com


 Note that you can get the automation extensions for 2.0.1 by
 downloaded the Flex Builder 3 beta (they're included in the 2.0.1
 SDK).


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Neil Curzon
  Sent: Monday, December 10, 2007 6:22 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How do YOU do functional testing and automation
 package questions



 Hi all.

  I've been trying to add some automated functional testing to our flex
 app.

  I found FunFX, a functional test framework for flex built in ruby.
 This page (
 http://peternic.blogspot.com/2007/11/funfx-getting-started.html)
 directed me to install the automation package, which claims that you
 can use it with LCDS or Express LCDS.  However, it demands a license
 key to install, and the Express version of LCDS seems to just install
 by not entering a key.  (ie if you have only Express LCDS, it seems
 you can't actually install the automation package).  Any suggestions?
 We are in the process of upgrading to Flex 3, but in the short term
 this isn't an option.

  I'm curious as to what other people are using for functional testing
 their Flex apps.  Some searching reveals that Selenium can be extended
 fairly easily for Flex testing, and google indicates that several
 people have in-house Selenium extensions, but none of these appear to
 have been contributed back yet.  I'm partway through a proof of
 concept for selenium testing (I have JavaScript finding buttons in my
 Flex app), but this FunFX seems to have a lot of work done that I'd
 have to repeat.

  Any pointers would be appreciated!

  Thanks

  Neil

  



[flexcoders] Change Legend Label for PieChart

2008-01-18 Thread reflexactions
Is there a way to change the text displayed in a legend.

Seems I can only set the name of the field to use to create a legend 
label but there is no way to actually change it, I want to display the 
% as well as the name...

tks



Re: [flexcoders] Re: setting effect to UI component

2008-01-18 Thread learner
Hey thanks Nick,

Its really great to have a reply from you...
I got the way to put the reszie effect (in that matter , any other effect)..
to the component in actionscript.
and got the things working..
but  i am curious that..
how the Flexbuilder understand resizeEffect as the one of the standered
property of the UIcomponent or container,
when i put in the mxml file ...


On Jan 18, 2008 1:46 AM, Uber_Nick [EMAIL PROTECTED] wrote:

   Hello PS,

 I responded to this two days ago and the reply hasn't shown up yet, so
 I apologize if this eventually comes up as a dupe.

 If you ever want to know how to do something in actionscript, take
 your mxml example and put it in a project. Then goto project -
 properties - flex compiler, and add -keep-generated-actionscript into
 the field for additional compiler arguments. Now, when the compiler
 converts mxml to actionscript, the actionscript source will appear in
 the 'generated' folder.

 Along with using the generated code for examples, take a look at this
 resource; it explains how everything fits together:


 http://livedocs.adobe.com/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Book_Partsfile=behaviors_068_09.html

 The gist of it is
 1) Create new effect
 2) set up from and to properties.
 3) listen for a certain event to be dispatched
 4) intercept that event, then play your effect

 Hope this helps. If you're still having issues, post some examples of
 your source. You may be making things more complicated than they need
 to be.

 -Nick Matelli
 Amentra, Inc


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, learner
 [EMAIL PROTECTED] wrote:
 
  hi all,
  what would I do if I have to set a resize effect to my custom
 component...
  My component is in as file and is getting added to a mxml using addChild
  method.
  So I can not do something like this :
  MyComp resizeEffect=Resize/
 
  Is there any way to achieve same thing in as components ?
 
  Any help is greatly appreciated.
 
  Regards
  PS
 

  



[flexcoders] DragEvent in Air app causes values of mouseX and mouseY to remain constant?

2008-01-18 Thread blc187
On screen I have a VBox with a series of images inside of it.
I am listening for a MouseDown event on each image and dragging it 
around inside the VBox.
I am also listening in the VBox for a DragEvent.DRAG_OVER to detect 
where in the VBox the dragged image is.
My problem is this:
I receive the DragEvent fine whenever the mouse is dragging the image 
over the VBox. However, the value of the mouse position remains 
constant to where the image was originally dragged from.

Ex:
I start dragging one image when it its mouse position is at (20, 100).
As the drag event fires, the mouseX and mouseY remain at 20 and 100 
respectively, no matter where I try to get them from.
Application.application.mouseY, this.mouseY, parent.mouseY, 
stage.mouseY all remain constant for the entire time the mouse button 
is held down.

This is not the case in Flex web apps, seems to only occur in an Air 
app.
Has anyone seen this before? Or have any suggestions on how to get 
around it?



RE: [flexcoders] Tabbing to an HBox

2008-01-18 Thread Alex Harui
By default, containers are not IFocusManagerComponents and cannot accept
focus.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Giles Roadnight
Sent: Friday, January 18, 2008 4:15 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Tabbing to an HBox



And by the way, it doesn't work with a canvas either.


On Jan 18, 2008 11:58 AM, Tom Chiverton [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 


On Friday 18 Jan 2008, Giles Roadnight wrote:
 HBox set up as a button. 


This is unusual - why do this rather than use a (styled) Panel
or other
container ?

--
Tom Chiverton
Helping to continually industrialize attention-grabbing patterns
on: http://thefalken.livejournal.com
http://thefalken.livejournal.com 



This email is sent for and on behalf of Halliwells LLP.

Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority. 

CONFIDENTIALITY

This email is intended only for the use of the addressee named
above and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells LLP
or the addressee of its existence or contents.  If you have received
this email in error please delete it and notify Halliwells LLP IT
Department on 0870 365 2500. 

For more information about Halliwells LLP visit
www.halliwells.com http://www.halliwells.com .



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

Yahoo! Groups Links

   http://groups.yahoo.com/group/flexcoders/
http://groups.yahoo.com/group/flexcoders/ 


   (Yahoo! ID required)

   mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 








-- 
Giles Roadnight 
http://giles.roadnight.name http://giles.roadnight.name  

 


[flexcoders] Re: File upload

2008-01-18 Thread chr_nrt
Can i get any sample or example?

Thanks
chr

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

 Then a server side script like something done in .NET or PHP and
 FileReference will be your best friend.  Read up in the help docs 
about
 flash.net.FileReference.
  
 
 Jason Merrill 
 Bank of America 
 GTO LLD Solutions Design  Development 
 eTools  Multimedia 
 
 Bank of America Flash Platform Developer Community 
 
 
 
  
 
 
 
 
   From: flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] On Behalf Of chr_nrt
   Sent: Friday, January 18, 2008 12:07 PM
   To: flexcoders@yahoogroups.com
   Subject: [flexcoders] Re: File upload
   
   
 
   Thank you Jason for your quick response.
   
   My end user will upload any type of file like .pdf,.xls or 
word 
   file. I have to save that file name in database and save that
 file 
   some where in server.
   
   Thanks
   chr
   
   --- In flexcoders@yahoogroups.com
 mailto:flexcoders%40yahoogroups.com , Merrill, Jason 
   jason.merrill@ wrote:
   
Is there any way i can upload single file in flex.

What kind of file and from where? And to where? 

What kind of file? XML? .JPG? .MP3? Sure. To where? Into 
Flex?
Then it would have to be a compatible media format like 
xml, 
   jpg, .flv,
mp3, etc. If you mean to the server where the file is,
 actually 
   just
about anything using Filereference class an a server side
 script.

From your hard drive, no, but yes if you make your Flex 
app a 
   desktop
app with Adobe AIR. 


Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community
   





RE: [flexcoders] Re: File upload

2008-01-18 Thread Merrill, Jason
Then a server side script like something done in .NET or PHP and
FileReference will be your best friend.  Read up in the help docs about
flash.net.FileReference.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of chr_nrt
Sent: Friday, January 18, 2008 12:07 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: File upload



Thank you Jason for your quick response.

My end user will upload any type of file like .pdf,.xls or word 
file. I have to save that file name in database and save that
file 
some where in server.

Thanks
chr

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

 Is there any way i can upload single file in flex.
 
 What kind of file and from where? And to where? 
 
 What kind of file? XML? .JPG? .MP3? Sure. To where? Into Flex?
 Then it would have to be a compatible media format like xml, 
jpg, .flv,
 mp3, etc. If you mean to the server where the file is,
actually 
just
 about anything using Filereference class an a server side
script.
 
 From your hard drive, no, but yes if you make your Flex app a 
desktop
 app with Adobe AIR. 
 
 
 Jason Merrill 
 Bank of America 
 GTO LLD Solutions Design  Development 
 eTools  Multimedia 
 
 Bank of America Flash Platform Developer Community




 



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Nevermind, I was setting minWidth and minHeight incorrectly - I moved
them from the MXML to a static constant in the component, which it
didn't like. It works now. Thanks everyone for your help!
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




RE: [flexcoders] Detecting when a style has been updated from a loaded CSS SWF

2008-01-18 Thread Alex Harui
You will get styleChanged(null) in that case, but I can't guarantee that
there aren't other situations where that could happen.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Friday, January 18, 2008 11:06 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Detecting when a style has been updated from a
loaded CSS SWF



When using StyleManager.loadStyleDeclarations() if the loaded SWF
contains a style of the same name as an existing style (.lastTryStyle
for instance), what is the proper way to detect this? My components
who are already using .lastTryStyle seem to have their styleChanged()
method called and the passed in styleProp is null. Is this a
reliable/proper way to detect this?

Thanks,
Ben



 


[flexcoders] Re: SWC compiled against Flex 2 SDK only usable in Flex 3 projects

2008-01-18 Thread ben.clinkinbeard
Thanks Alex, not sure how I missed this reply until now. Is there
maybe a better way to accomplish what I want besides using
defaults.css? All I really want to do is to embed some default styles
for my custom components and their associated graphics in my SWC.
Would defining them and using [Embed] in the classes directly be a
better option and avoid all this mess?

Thanks,
Ben



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

 I think you are flushing out the assumptions made in the framework about
 what is in global.   There are probably fewer assumptions in Flex 3 than
 in Flex 2.  I noticed that in Flex 3 we protect against borderClass
 being null.  I don't see any protection in Flex 3 about not having a
 global selector, so I'm surprised you got past that in Flex 3.
 
  
 
 You'll have to start adding selectors back into global until Flex 2.x
 runs again.
 
  
 
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of ben.clinkinbeard
 Sent: Thursday, January 17, 2008 1:05 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: SWC compiled against Flex 2 SDK only usable in
 Flex 3 projects
 
  
 
 bump
 
 --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
 , ben.clinkinbeard
 ben.clinkinbeard@ wrote:
 
  Hi Alex,
  
  No, I didn't because I had no idea I was supposed to. I don't see any
  info in the docs mentioning the need to create a global selector. I
  have now created one, but that causes a different error. No matter
  what I put in the selector I get an error in the createBorder() method
  of Container on the line border = new borderClass() because
  borderClass is null. Full stack trace below.
  
  What am I missing here? I should reiterate that this only happens when
  compiling against older versions of the SDK. If I point both the
  library and consumer projects to F3B3 this all works, even without a
  global selector.
  
  Thanks,
  Ben
  
  
  TypeError: Error #1007: Instantiation attempted on a non-constructor.
  at
 
 mx.core::Container/createBorder()[C:\dev\flex_201_ja\sdk\frameworks\mx\c
 ore\Container.as:4039]
  at
 
 mx.core::Container/styleChanged()[C:\dev\flex_201_ja\sdk\frameworks\mx\c
 ore\Container.as:3070]
  at
 
 mx.core::Application/styleChanged()[C:\dev\flex_201_ja\sdk\frameworks\mx
 \core\Application.as:909]
  at
 
 mx.managers::SystemManager/http://www.adobe.com/2006/flex/mx/internal::a
 ddingChild http://www.adobe.com/2006/flex/mx/internal::addingChild
 ()[C:\dev\flex_201_ja\sdk\frameworks\mx\managers\SystemManager.as:1528]
  at
 
 mx.managers::SystemManager/initializeTopLevelWindow()[C:\dev\flex_201_ja
 \sdk\frameworks\mx\managers\SystemManager.as:2329]
  at
 
 mx.managers::SystemManager/docFrameHandler()[C:\dev\flex_201_ja\sdk\fram
 eworks\mx\managers\SystemManager.as:2214]
 





RE: [flexcoders] Photo Viewer Sample App-BMP File Error

2008-01-18 Thread Jim Hayes
I'm pretty sure that flash/flex doesn't have the low level decompressor (if 
thats the right word for bitmaps!) for .bmp, which would make some sense in 
terms of it being largely focussed on internet apps.
Maybe you'd need to write your own, e.g. read the bitmap in as a bytearray and 
get the raw pixel values out of the bits/bytes (they're probably just there to 
read, I don't think bitmaps are compressed, but could be wrong on that).
Personally I wouldn't bother, unless you really made me :)


-Original Message-
From: flexcoders@yahoogroups.com on behalf of tarun chandra
Sent: Fri 18/01/2008 20:41
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Photo Viewer Sample App-BMP File Error
 
Hi

I am trying to use the adobe PhotoViewer sample app and customize it.
Instead of using just jpg files I am trying to pass in .BMP files. But
somehow the .bmp files don't get loaded and I see a broken image. It
works fine for .gif,.png.

Does anyone know the reason for it and maybe a possible solution for it

Thank You,
Tarun



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

RE: [flexcoders] FDS Logging on Ubuntu 7.10

2008-01-18 Thread Seth Hodgson
Hi Adnan,

You can use one of two possible target classes for logging on the server.
These are:
1. flex.messaging.log.ConsoleTarget - logs to System.out
2. flex.messaging.log.ServletLogTarget - logs to the servlet logger and these 
log entries end up in your container's log files

Try using the ServletLogTarget so you don't need to worry about where 
System.out is being (re)directed to, like so:
...
logging
target class=flex.messaging.log.ServletLogTarget level=Debug

The 'Debug' level is useful when you're troubleshooting things.

Hope that helps,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Adnan 
Doric
Sent: Friday, January 18, 2008 1:34 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] FDS Logging on Ubuntu 7.10

Hello,

I have a small webapp that I tested on windows and it work nice (based 
on Flex Test Drive).

Now I want to move that webapp in my virtual machine running Ubuntu 
7.10, tomcat 5.5 (same as windows) but I can't get it to work :

http://localhost:8180/myApp/messagebroker/amf returns 404

http://localhost:8180/myApp alone displays Flex welcome screen.

So I know there must be some problem when FDS is starting, but in logs 
/var/lib/tomcat55/logs I have only :
catalina.(timestamp).log
localhost.(timestamp).log
admin.(timestamp).log
manager.(timestamp).log
host_manager.(timestamp).log

and there are no errors at all, everything seems to be started correctly.

On Ubuntu I can't find
stdout.(timestamp).log and
stderr.(timestamp).log
where Flex is normally outputting initialization errors.

On windows I can see those files and Flex logs prefixed with [Flex] 
example :
[Flex] RTMP-Server failed to start up: java.net.BindException: Address 
already in use: bind

Can someone please help me configure Tomcat so it can generate 
stdout.(timestamp).log and stderr.(timestamp).log

Thank you in advance,
Adnan
 


[flexcoders] Re: Hibernate..

2008-01-18 Thread pradhasan
In my Flex application with Weblogic appserver, which approach is 
better for performance and transactions. Flex Data Management 
Services Vs Hibernate. Apprecite your help.

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

 If you have an existing server-side domain model and are using 
Hibernate use the HibernateAssembler. If you don't have any current 
server-side code and just want to expose some tables in your 
database to clients use the SQLAssembler.
 
 It really comes down to whether it makes sense for your client app 
to be interacting with database tables directly, or whether you need 
be interacting with server-side Java classes.
 
 Hope that helps,
 Seth
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of pradhasan
 Sent: Friday, January 18, 2008 8:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hibernate..
 
 Hi,
 
 I would like to know for large scale application which one is 
better 
 using HibernateAssembler or SQLAssembler in data-management-
config.xml.
 
 Thanks in advance.





RE: [flexcoders] Re: Hibernate..

2008-01-18 Thread Seth Hodgson
I'm not sure what you're asking. The Data Management Service in LCDS relies on 
an adapter layer to integrate into your backend. If your backend is a raw 
database, you may want to use the SQLAssembler for a quick prototype. If you 
have a Java domain model that uses Hibernate for persistence, use the 
HibernateAssembler. If you have some other backend (say an XML database or an 
in-memory data model accessed via a data grid API) you can write a custom 
assembler that would expose it to the Data Management Service so that Flex 
clients can interact with it simply and consistently using the client-side 
DataService component.

It's not a matter of Data Management Services Vs Hibernate. The Data 
Management Service is just providing a nice client-server API for plugging 
clients in to your backend data, which may or may not involve Hibernate.

I'd recommend focusing on the server-side programming model you want to use for 
managing your data, and go from there. You'd have more opportunities for tuning 
(caching, write policies, etc.) using the HiberanteAssembler or a custom 
assembler than you have with the SQLAssembler which executes raw, parameterized 
queries against your database.

Best,
Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
pradhasan
Sent: Friday, January 18, 2008 2:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Hibernate..

In my Flex application with Weblogic appserver, which approach is 
better for performance and transactions. Flex Data Management 
Services Vs Hibernate. Apprecite your help.

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

 If you have an existing server-side domain model and are using 
Hibernate use the HibernateAssembler. If you don't have any current 
server-side code and just want to expose some tables in your 
database to clients use the SQLAssembler.
 
 It really comes down to whether it makes sense for your client app 
to be interacting with database tables directly, or whether you need 
be interacting with server-side Java classes.
 
 Hope that helps,
 Seth
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On Behalf Of pradhasan
 Sent: Friday, January 18, 2008 8:41 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Hibernate..
 
 Hi,
 
 I would like to know for large scale application which one is 
better 
 using HibernateAssembler or SQLAssembler in data-management-
config.xml.
 
 Thanks in advance.

 


[flexcoders] Re: Border Thickness On ComboBox?

2008-01-18 Thread Ethan Miller
--- In flexcoders@yahoogroups.com, rueter007 [EMAIL PROTECTED] wrote:

 set the borderStyle to be solid.


Tried that  

There's a note in the docs about borderThickness being overridden if
dropDownStyle is set... tried nulling that as well. Still no effect.

??

ethan 



[flexcoders] Re: Border Thickness On ComboBox?

2008-01-18 Thread rueter007
set the borderStyle to be solid.

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

 Greetings!
 
 Here is hopefully a very simple question:  any way to increase the
border thickness on a 
 ComboBox? The property exists but setting it seems to have no
effect...  Believe it or not this 
 is a deal breaker on a current project so any quick help would be
much appreciated.
 
 cheers, ethan





[flexcoders] Border Thickness On ComboBox?

2008-01-18 Thread Ethan Miller
Greetings!

Here is hopefully a very simple question:  any way to increase the border 
thickness on a 
ComboBox? The property exists but setting it seems to have no effect...  
Believe it or not this 
is a deal breaker on a current project so any quick help would be much 
appreciated.

cheers, ethan



[flexcoders] Hi everyone

2008-01-18 Thread volatile_puppy
My name is Shawn and I am a .Net and Flex Developer from North Carolina.



[flexcoders] Re: Get fields from dataProvider

2008-01-18 Thread markgoldin_2000
Yes, gridObj.dataProvider.getItemAt(0) will return a row that might 
look like this:
consistpersonnel1
  id18/id
  consistnum1/consistnum
  header_id1/header_id
  person2/person
  namewewr/name
  worknum/
/consistpersonnel1
But how do I get names of fields:
id, consistnum, header_id, and so forth?

Thanks

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

 gridObj.dataProvider.getItamAt(0)
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Friday, January 18, 2008 8:33 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Get fields from dataProvider
 
 
 
 I am executing this line of the code:
 var ClassInfo:Object = ObjectUtil.getClassInfo
(gridObj.dataProvider);
 but I am not sure I can see a list of the fields. Am I doing 
 something wrong?
 
 -- In flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com ,
 Alex Harui aharui@ wrote:
 
  ObjectUtil.getClassInfo()
  
  
  
  
  
  From: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 
 [mailto:flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com
 ] On
  Behalf Of markgoldin_2000
  Sent: Thursday, January 17, 2008 2:48 PM
  To: flexcoders@yahoogroups.com mailto:flexcoders%
40yahoogroups.com 
  Subject: [flexcoders] Get fields from dataProvider
  
  
  
  How can I extract a list of fields from DataGrid's dataProvider? 
I 
 need 
  it ftom dataProvider because not all data is shown in the grids.
  
  Thanks
 





[flexcoders] Clock Killer

2008-01-18 Thread markcavins
Hello,

I have this clock that runs as a countdown timer once a user logs into
the site. It works great until the user logs out. When they log back
in the counter no longer counts correctly. It is like there are 2
intstances of the clock running at the same time but I'm not sure how
to kill the first instance.

Clock code
private function getDaysUntil():void {
//setting the timer
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);

minuteTimer.start(); 
}

public function onTick(evt:TimerEvent):void { 
var minuteTimer:Timer = evt.target as Timer; 
var lvSecondsRemaining:int = minuteTimer.repeatCount -
minuteTimer.currentCount;  
var lvMinutes:int = lvSecondsRemaining / 60; 
var lvSeconds:int = lvSecondsRemaining - ( lvMinutes * 60 ); 
var lvSecondsText:String = lvSeconds.toString(); 
if( lvSeconds  10 ) lvSecondsText = 0 + lvSecondsText;   
 
lblTimeUntil.text = lvMinutes.toString() + : + lvSecondsText; 

} 

public function onTimerComplete(evt:TimerEvent):void{
var minuteTimer:Timer = evt.target as Timer;
minuteTimer.reset();
minuteTimer.start();
tempXML.send();

}


private function stopTimer():void{
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.reset();
minuteTimer.stop(); 
clearFormHandler(); 

}




Here is the logout button and the login button

mx:Button label=Log Out height=27 fillAlphas=[1.0, 1.0]
fillColors=[#03, #03, #474545, #474545]
borderColor=#DCDEDF click=currentState=''; stopTimer();/


mx:Button x=10 y=282 label=Login id=Submit
click=login_user.send(); 
fontSize=14 themeColor=#FFA800 borderColor=#FA0202
enabled={formIsValid} /


If the user is able to login

currentState = Logged In;

tempXML.send();
getDaysUntil();

Any ideas how to get this to display right






[flexcoders] Re: Killing Browser based popups

2008-01-18 Thread markcavins


You are correct it would be a JS HTML. Is there a way for flex to take
control of the browser to keep the JS from activating?



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

 On Thursday 17 Jan 2008, markcavins wrote:
  I have this flex app that accesses an existing backend program to get
  it's information. 
 
 How ? XML RPC ? Or are you screen scrapeing ?
 
  One of the fail safes we have in this backend is a 
  browser based pop up that will activate if a user enters the wrong
  username or password.
 
 At a guess, this would be JavaScript in a HTML repsonce, right ?
Which won't 
 be run by the Flex HTTP client.
 
 -- 
 Tom Chiverton
 Helping to preemptively participate front-end models
 on: http://thefalken.livejournal.com
 
 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB.  A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP.  Regulated by The
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged.  If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents.  If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells.com.





Re: [flexcoders] Flex Messaging + CF8 with embedded LC integration question

2008-01-18 Thread João Fernandes
Did you uncomment the cf-rtmp channel in the services-config.xml? by default
that channel is commented.

João Fernandes

On 18/01/2008, flexuser1 [EMAIL PROTECTED] wrote:

   Hi I've been trying to make a simple app with flex messaging
 service. All the tutorials I see are for Flex 2 and CF7 using FDS.
 However, I am using Coldfusion 8 with embedded LCDS.

 When I try to run my simple chat app I get this output in the
 console using tracetarget.
 =
 'chatSubscriber' consumer subscribe.
 'cf-rtmp' channel endpoint set to rtmp://localhost:8500
 'cf-rtmp' channel settings are:
 channel id=cf-rtmp type=mx.messaging.channels.RTMPChannel
 endpoint uri=rtmp://{server.name}:{server.port}/
 properties/
 /channel
 [SWF] /Flex/chat/bin-debug/ChatAppFinished.swf - 743,790 bytes after
 decompression
 'cf-rtmp' channel got connect attempt status. (Object)#0
 code = NetConnection.Connect.Failed
 level = error
 =

 I've fully edited the xmls as needed I think. I've added the
 destinations etc. Is there anyone who's experienced enough to know
 why there's a NetConnection.Connect.Failed message?

 I have a fully remote server with this and you can login to take a
 look.

  




-- 

João Fernandes


RE: [flexcoders] Clock Killer

2008-01-18 Thread Mark Rausch
Why do you create a new timer in stopTimer()? You should make
minuteTimer a global variable, create it only once, and use that
reference in stopTimer...

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markcavins
Sent: Friday, January 18, 2008 3:12 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Clock Killer

 

Hello,

I have this clock that runs as a countdown timer once a user logs into
the site. It works great until the user logs out. When they log back
in the counter no longer counts correctly. It is like there are 2
intstances of the clock running at the same time but I'm not sure how
to kill the first instance.

Clock code
private function getDaysUntil():void {
//setting the timer
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.addEventListener(TimerEvent.TIMER, onTick);
minuteTimer.addEventListener(TimerEvent.TIMER_COMPLETE,
onTimerComplete);

minuteTimer.start(); 
}

public function onTick(evt:TimerEvent):void { 
var minuteTimer:Timer = evt.target as Timer; 
var lvSecondsRemaining:int = minuteTimer.repeatCount -
minuteTimer.currentCount; 
var lvMinutes:int = lvSecondsRemaining / 60; 
var lvSeconds:int = lvSecondsRemaining - ( lvMinutes * 60 ); 
var lvSecondsText:String = lvSeconds.toString(); 
if( lvSeconds  10 ) lvSecondsText = 0 + lvSecondsText; 

lblTimeUntil.text = lvMinutes.toString() + : + lvSecondsText; 

} 

public function onTimerComplete(evt:TimerEvent):void{
var minuteTimer:Timer = evt.target as Timer;
minuteTimer.reset();
minuteTimer.start();
tempXML.send();

}

private function stopTimer():void{
var minuteTimer:Timer = new Timer(1000, 300);
minuteTimer.reset(); 
minuteTimer.stop(); 
clearFormHandler(); 

}

Here is the logout button and the login button

mx:Button label=Log Out height=27 fillAlphas=[1.0, 1.0]
fillColors=[#03, #03, #474545, #474545]
borderColor=#DCDEDF click=currentState=''; stopTimer();/

mx:Button x=10 y=282 label=Login id=Submit
click=login_user.send(); 
fontSize=14 themeColor=#FFA800 borderColor=#FA0202
enabled={formIsValid} /

If the user is able to login

currentState = Logged In;

tempXML.send();
getDaysUntil();

Any ideas how to get this to display right

 



[flexcoders] Photo Viewer Sample App-BMP File Error

2008-01-18 Thread tarun chandra
Hi

I am trying to use the adobe PhotoViewer sample app and customize it.
Instead of using just jpg files I am trying to pass in .BMP files. But
somehow the .bmp files don't get loaded and I see a broken image. It
works fine for .gif,.png.

Does anyone know the reason for it and maybe a possible solution for it

Thank You,
Tarun



[flexcoders] Re: showLabels=true causes ColumnChart to shrink in width (dropLabels is true)

2008-01-18 Thread alex
Wow , Really strange and unrealted solution ...

guttersRight=0

Strange.

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

 My ColumnChart in in Vbox 
 Although it has width=100% it shrinks because of the labels. It 
looks 
 like an extra padding the size of one bar. The effect increases as 
i 
 minimize the browser that contains the dashlet. For example full 
 screen width of dashlet the effect is not noticable, decreasing the 
 browser width , the dashlet will also decrease in width but in 
 incorrect ratio of ColumnChart.
 
 showLabels=false and the Chart behaves normally. 
 
 
 mx:ColumnChart
   id=ChartUpper 
   type=stacked
   creationCompleteEffect=showEffects 
   showDataTips=true  
 dataTipFunction=dataTipFunc dataTipMode=single
   itemClick=showSingleBarMenu(event) 
 mouseOver=showDataTips()
   backgroundElements={bge2}
   annotationElements={bge2}
   columnWidthRatio=0.99 
   paddingTop=-16 paddingBottom=-10 height=30
   seriesFilters=[]
   minWidth=0 width=100%
   paddingRight=0
   fontSize=14
 
 
 mx:horizontalAxis  
   mx:CategoryAxis   
 dataProvider={model.availabilityInformationVO.categoryFields}  /
 /mx:horizontalAxis
   
 mx:horizontalAxisRenderer   
   mx:AxisRenderer axisStroke={axisStroke} 
 tickStroke={tickStroke} showLabels=true showLine=false 
 labelGap=-4   minorTickStroke={tickStroke} tickPlacement=none 
 canDropLabels=true  placement=top 
 fontFamily=visitor fontSize=14 fontWeight=normal 
 styleName=generalTextColor minWidth=0 width=100%/
 /mx:horizontalAxisRenderer





Re: [flexcoders] Re: How to force creation of children of a component

2008-01-18 Thread Sherif Abdou
just  set the visibile property on it i would think


- Original Message 
From: rueter007 [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 2:07:14 PM
Subject: [flexcoders] Re: How to force creation of children of a component

Flex will not create the children of a component until is is added to
a display object already in the display list.

you can call initialize() on the component to force creating the children.

- venkat
http://www.venkatj. com

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

 Hi all,
 
 I think the problem I'm having right now is related to when flex
 creates the components to display.
 
 I have a data grid which uses a custom header renderer, so when the
 header is clicked, a panel (a custom component that I named
 TextFilter) will show up that contains a text input (named
 filterField) to accept input for searching on that column. And it's
 working all fine.
 
 The problem occurs when I try to programmatically set filterField. text
 before clicking on the header of that column. At this point,
 TextFilter is initialized but filterField is not, so it's still null.
 I think flex will only fully initalize the TextFilter component
 before it displays, but if the column header is never clicked, flex
 will not initialize TextFilter's children.
 
 I tried setting the creationPolicy of TextFilter to all but that
 didn't work.
 
 Does anyone see any feasible solutions to this. Any help would be
 greatly appreciated.
 
 Regards,
 Ban






  

Never miss a thing.  Make Yahoo your home page. 
http://www.yahoo.com/r/hs

RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Sorry, that line in the MXML should instead be:
 
   c:VeniceNetwork id=veniceNetwork
container={networkBrowserPanel} width=100% height=100%
   outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=#4F81BD / 
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, January 18, 2008 3:27 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?




So the problem remains, when scaling up the graphic drawn inside
the UIComponent, if scaled up enough, it extends beyond the boundaries
of the Panel container.  arrg just when I though I had this figured
out.  Here is my code, try it yourself:
 
The MXML:
 
mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
   mx:HBox x=5 y=5
mx:Button label=Zoom In
click={veniceNetwork.zoomIn()}/
mx:Button label=Zoom Out
click={veniceNetwork.zoomOut()}/
   /mx:HBox
   c:VeniceNetwork container={networkBrowserPanel}
width=100% height=100%
   outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=#4F81BD /
/mx:Panel 
 
The component:
 
package components
{
 import mx.core.UIComponent;
 import flash.geom.Rectangle;
 import src.network.NetworkRenderer;
 import mx.controls.Button;
 import flash.display.Sprite;
 
 public class VeniceNetwork extends UIComponent
 {
  public var container:UIComponent;
  public var borderThickness:int;
  public var outerColor:uint;
  public var innerColor:uint;
  public var outerAlpha:int;
  public var innerAlpha:int;
  public var dataProvider:Object;
  
  private static const minHeight:int =400;
  private static const minWidth:int = 400;
  
  private var _radius:int = 200;
  private var _middleX:int;
  private var _middleY:int;
  private var _network_sp:Sprite;
  private var _counter:int = 0;
  
  public function VeniceNetwork()
  {
   super();
  }
  
  override protected function
updateDisplayList(unscaledWidth:Number, unscaledHeight:Number):void 
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight); 
   measuredWidth = unscaledWidth;
   measuredHeight = unscaledHeight; 
   render();
  }
  
  override protected function measure():void
  {
   var rect:Rectangle = getBounds(this);
   measuredWidth = rect.width;
   measuredHeight = rect.height;
  }

 private function render():void
  {
   graphics.clear();
   _middleX = measuredWidth/2;
   _middleY = measuredHeight/2;
   graphics.lineStyle(borderThickness, outerColor, outerAlpha);
   graphics.beginFill(innerColor, innerAlpha)
   graphics.drawCircle(_middleX, _middleY, _radius);
  }
  
  public function zoomIn():void
  {
   scaleX += .1;
   scaleY += .1;
  }
  
  public function zoomOut():void
  {
   scaleX -= .1;
   scaleY -= .1;
  }
  
 }
}
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
So the problem remains, when scaling up the graphic drawn inside the
UIComponent, if scaled up enough, it extends beyond the boundaries of
the Panel container.  arrg just when I though I had this figured
out.  Here is my code, try it yourself:
 
The MXML:
 
mx:Panel id=networkBrowserPanel width=100% height=100%
layout=absolute title=Network 
   mx:HBox x=5 y=5
mx:Button label=Zoom In click={veniceNetwork.zoomIn()}/
mx:Button label=Zoom Out click={veniceNetwork.zoomOut()}/
   /mx:HBox
   c:VeniceNetwork container={networkBrowserPanel} width=100%
height=100%
   outerAlpha=1 innerAlpha=1 outerColor=#ff
innerColor=#4F81BD /
/mx:Panel 
 
The component:
 
package components
{
 import mx.core.UIComponent;
 import flash.geom.Rectangle;
 import src.network.NetworkRenderer;
 import mx.controls.Button;
 import flash.display.Sprite;
 
 public class VeniceNetwork extends UIComponent
 {
  public var container:UIComponent;
  public var borderThickness:int;
  public var outerColor:uint;
  public var innerColor:uint;
  public var outerAlpha:int;
  public var innerAlpha:int;
  public var dataProvider:Object;
  
  private static const minHeight:int =400;
  private static const minWidth:int = 400;
  
  private var _radius:int = 200;
  private var _middleX:int;
  private var _middleY:int;
  private var _network_sp:Sprite;
  private var _counter:int = 0;
  
  public function VeniceNetwork()
  {
   super();
  }
  
  override protected function updateDisplayList(unscaledWidth:Number,
unscaledHeight:Number):void 
  {
   super.updateDisplayList(unscaledWidth, unscaledHeight); 
   measuredWidth = unscaledWidth;
   measuredHeight = unscaledHeight; 
   render();
  }
  
  override protected function measure():void
  {
   var rect:Rectangle = getBounds(this);
   measuredWidth = rect.width;
   measuredHeight = rect.height;
  }

 private function render():void
  {
   graphics.clear();
   _middleX = measuredWidth/2;
   _middleY = measuredHeight/2;
   graphics.lineStyle(borderThickness, outerColor, outerAlpha);
   graphics.beginFill(innerColor, innerAlpha)
   graphics.drawCircle(_middleX, _middleY, _radius);
  }
  
  public function zoomIn():void
  {
   scaleX += .1;
   scaleY += .1;
  }
  
  public function zoomOut():void
  {
   scaleX -= .1;
   scaleY -= .1;
  }
  
 }
}
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



[flexcoders] showLabels=true causes ColumnChart to shrink in width (dropLabels is true)

2008-01-18 Thread alex
My ColumnChart in in Vbox 
Although it has width=100% it shrinks because of the labels. It looks 
like an extra padding the size of one bar. The effect increases as i 
minimize the browser that contains the dashlet. For example full 
screen width of dashlet the effect is not noticable, decreasing the 
browser width , the dashlet will also decrease in width but in 
incorrect ratio of ColumnChart.

showLabels=false and the Chart behaves normally. 


mx:ColumnChart
id=ChartUpper 
type=stacked
creationCompleteEffect=showEffects 
showDataTips=true  
dataTipFunction=dataTipFunc dataTipMode=single
itemClick=showSingleBarMenu(event) 
mouseOver=showDataTips()
backgroundElements={bge2}
annotationElements={bge2}
columnWidthRatio=0.99 
paddingTop=-16 paddingBottom=-10 height=30
seriesFilters=[]
minWidth=0 width=100%
paddingRight=0
fontSize=14


mx:horizontalAxis  
mx:CategoryAxis   
dataProvider={model.availabilityInformationVO.categoryFields}  /
/mx:horizontalAxis

mx:horizontalAxisRenderer   
  mx:AxisRenderer axisStroke={axisStroke} 
tickStroke={tickStroke} showLabels=true showLine=false 
labelGap=-4   minorTickStroke={tickStroke} tickPlacement=none 
canDropLabels=true  placement=top 
fontFamily=visitor fontSize=14 fontWeight=normal 
styleName=generalTextColor minWidth=0 width=100%  /
/mx:horizontalAxisRenderer




RE: [flexcoders] How to change the text in datagrid ?

2008-01-18 Thread Tracy Spratt
You could use a switch() in a labelFunction().

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of markflex2007
Sent: Friday, January 18, 2008 2:32 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How to change the text in datagrid ?

 

Hi,

I have a account list like this

accout name status
acc1 1
acc2 0
acc3 1

It is ok binding with datagrid. but I like it showed in datagrid like
this

accout name status
acc1 open
acc2 close
acc3 open

How to change 1 to open and 0 to close in datagrid.

Thanks

Mark

acc3 1

 



[flexcoders] How to force creation of children of a component

2008-01-18 Thread letterpigeon
Hi all,

I think the problem I'm having right now is related to when flex
creates the components to display.

I have a data grid which uses a custom header renderer, so when the
header is clicked, a panel (a custom component that I named
TextFilter) will show up that contains a text input (named
filterField) to accept input for searching on that column.  And it's
working all fine.

The problem occurs when I try to programmatically set filterField.text
before clicking on the header of that column.  At this point,
TextFilter is initialized but filterField is not, so it's still null.
 I think flex will only fully initalize the TextFilter component
before it displays, but if the column header is never clicked, flex
will not initialize TextFilter's children.

I tried setting the creationPolicy of TextFilter to all but that
didn't work.

Does anyone see any feasible solutions to this.  Any help would be
greatly appreciated.

Regards,
Ban



Re: [flexcoders] How do YOU do functional testing and automation package questions

2008-01-18 Thread Jonathan Branam
And those will work with Flex 2 projects? That's the question. I see the
files for Flex 3... I assumed they were incompatible.

On Jan 18, 2008 2:11 PM, Matt Chotin [EMAIL PROTECTED] wrote:

They're in sdks/3.0.0/frameworks/libs



 Matt



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *Jonathan Branam
 *Sent:* Friday, January 18, 2008 9:01 AM
 *To:* flexcoders@yahoogroups.com
 *Subject:* Re: [flexcoders] How do YOU do functional testing and
 automation package questions



 Matt, is this actually the case today? Has anyone else been able to
 confirm this? I can't find the flex 2 automation packages in Flex
 Builder 3 Beta 2 or 3. At least, I can't find the automation_agent.swc.



 -- Forwarded message --
 From: Matt Chotin  [EMAIL PROTECTED]
 Date: Dec 10, 2007 11:26 AM
 Subject: RE: [flexcoders] How do YOU do functional testing and
 automation package questions
 To: flexcoders@yahoogroups.com


 Note that you can get the automation extensions for 2.0.1 by
 downloaded the Flex Builder 3 beta (they're included in the 2.0.1
 SDK).


 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
 On Behalf Of Neil Curzon
  Sent: Monday, December 10, 2007 6:22 AM
  To: flexcoders@yahoogroups.com
  Subject: [flexcoders] How do YOU do functional testing and automation
 package questions



 Hi all.

  I've been trying to add some automated functional testing to our flex
 app.

  I found FunFX, a functional test framework for flex built in ruby.
 This page ( http://peternic.blogspot.com/2007/11/funfx-getting-started.html
 )
 directed me to install the automation package, which claims that you
 can use it with LCDS or Express LCDS.  However, it demands a license
 key to install, and the Express version of LCDS seems to just install
 by not entering a key.  (ie if you have only Express LCDS, it seems
 you can't actually install the automation package).  Any suggestions?
 We are in the process of upgrading to Flex 3, but in the short term
 this isn't an option.

  I'm curious as to what other people are using for functional testing
 their Flex apps.  Some searching reveals that Selenium can be extended
 fairly easily for Flex testing, and google indicates that several
 people have in-house Selenium extensions, but none of these appear to
 have been contributed back yet.  I'm partway through a proof of
 concept for selenium testing (I have JavaScript finding buttons in my
 Flex app), but this FunFX seems to have a lot of work done that I'd
 have to repeat.

  Any pointers would be appreciated!

  Thanks

  Neil





 



[flexcoders] Re: PrintDataGrid variablerowheight issue

2008-01-18 Thread jf317820
If you're referring to the showPage() function, I tried your
suggestion and it's crashing the runtime...can you post more sample code?

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

 as a I mentioned before - I am adding 5 pixels to the PDG while doing
 the layout. Works in my case so far.
 
 PS Strange, but includeInLayout=false  visible=false for the
 component which is placed _after_ the PDG don't work for me. I am
 changing the PDG height manually.
 
 Cheers,
 Smitri.
 
 
 --- In flexcoders@yahoogroups.com, jf317820 jf317820@ wrote:
 
  Anyone have any other workarounds for this issue other than the
  subclass suggested on the bugs site?  I'll try anything at this point.
  
  Thanks in advance.
  --- In flexcoders@yahoogroups.com, mitek17 mitek17@ wrote:
  
   Hi Alex!
   
   Thanks for the comments. At least we all know that it will be fixed
   eventually.
   
   Cheers,
   Dmitri Girski.
   
   
   --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
   
I just updated some info in the bug.  It is deferred because the
  Player
has some issues that we can't easily workaround that prevent
us from
having guaranteed solution.  I added code for a temporary
workaround
that will hopefully work in 'more' cases but not all.

 

-Alex

 



From: flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] On
Behalf Of mitek17
Sent: Monday, January 14, 2008 8:51 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: PrintDataGrid variablerowheight issue

 

Hooray! It is in the state of Deferred Closed. :(

PS I am just using a workaround - in the function which does a
printing layout (e.g. showPrint() in SDK help) I do the following:

pdg_procedures.height +=5; 

This extra 5 pixels fix the problem.

Cheers,
Dmitri.

--- In flexcoders@yahoogroups.com
  mailto:flexcoders%40yahoogroups.com
, jf317820 jf317820@ wrote:

 https://bugs.adobe.com/jira/browse/SDK-14174
https://bugs.adobe.com/jira/browse/SDK-14174 

   
  
 





[flexcoders] Flare For Flex

2008-01-18 Thread Kevin Aebig
Hey all,

 

Has anyone successfully used the Flare library inside of a Flex/Air
application yet? I know that it's been compiled to .swc's but I noticed that
within the source it uses the Flash based classes instead of the Flex
variations.

 

Thanks,

 

!k



RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Hey Jim, passing minWidth and minHeight to the custom UI component
worked perfectly for me - now the drawn graphic is contained in the
Panel container - thank you!
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



RE: [flexcoders] Re: File upload

2008-01-18 Thread Merrill, Jason
Well, come on now, this is one of those cases where you're not even
trying. :)   In the help docs, which I referenced in the last post,
there are samples and examples.  See the topic Working with file
upload and download which appears as a topic when you seach for
FileReference in Flex Help.
 
If you want to learn to do the .NET or PHP side, then this is kinda the
wrong list to ask that.
 
Good luck to you, I don't mean to be harsh - honestly. 
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



[flexcoders] Re: Looking for some training

2008-01-18 Thread Nate Pearson
Anyone?

Bump.

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

 Does anyone know where I can find some tutorials about using the new
 import webservice feature?  I've tried using it...it generates a
 bunch of code that I don't know what to do with.
 
 Also, does anyone know a good training source on creating applications
 with the application server type set at ASP.NET?  I choose asp.net
 then asp.net development server and I don't know what to do after
that
 
 Thanks for the help.
 
 -Nate





RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Alex Harui
I think in the general case, you'll need to set minHeight/minWidth to
zero or something small on the Panel or have fixed width/height on the
Panel to get the Panel to consider putting up scrollbars.
 
The graphics object should compute measuredMinWidth/measuredMinHeight to
be the same as measuredWidht/Height so the Panel will not try to shrink
it past its dimensions.
 
If you can compute the measurements w/o drawing then you don't need
commitProperties and just draw in updateDisplayList.
 
I don't know why you need a container reference unless it is to get the
bounds of the container to determine where to draw, but if you've set up
% widht/height you'll be given those dimensions in updateDisplayList.



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Merrill, Jason
Sent: Friday, January 18, 2008 7:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?



Hey Jim, passing minWidth and minHeight to the custom UI component
worked perfectly for me - now the drawn graphic is contained in the
Panel container - thank you!
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 

 


[flexcoders] Flex Messaging + CF8 with embedded LC integration question

2008-01-18 Thread flexuser1
Hi I've been trying to make a simple app with flex messaging 
service. All the tutorials I see are for Flex 2 and CF7 using FDS. 
However, I am using Coldfusion 8 with embedded LCDS.

When I try to run my simple chat app I get this output in the 
console using tracetarget.
=
'chatSubscriber' consumer subscribe.
'cf-rtmp' channel endpoint set to rtmp://localhost:8500
'cf-rtmp' channel settings are:
channel id=cf-rtmp type=mx.messaging.channels.RTMPChannel
  endpoint uri=rtmp://{server.name}:{server.port}/
  properties/
/channel
[SWF] /Flex/chat/bin-debug/ChatAppFinished.swf - 743,790 bytes after 
decompression
'cf-rtmp' channel got connect attempt status. (Object)#0
  code = NetConnection.Connect.Failed
  level = error
=

I've fully edited the xmls as needed I think. I've added the 
destinations etc. Is there anyone who's experienced enough to know 
why there's a NetConnection.Connect.Failed message?

I have a fully remote server with this and you can login to take a 
look.



RE: [flexcoders] Flex Messaging + CF8 with embedded LC integration question

2008-01-18 Thread Seth Hodgson
Based upon your channel id, 'cf-rtmp', you're using an RTMP channel/endpoint. 
If the client's connect attempt is failing, this is generally because the 
endpoint isn't running so there's nothing for the client to connect to. Make 
sure you have logging enabled in your services-config.xml file on the server, 
and check your logs for any startup exceptions. LCDS is bootstrapped by a 
servlet (the MessageBrokerServlet) and if this fails at startup, your app 
server and other servlets will be running fine, but LCDS won't be available. 
Another common issue is people running multiple LCDS apps at the same time, 
each with RTMP endpoints. Each RTMP endpoint spins up its own internal socket 
server which requires a dedicated port. If you're running separate web apps in 
the same server, make sure all of the RTMP endpoints that will be running on 
your server are configured to use different ports so they don't run into port 
binding conflicts at startup.

A less likely cause would be the server-side RTMP endpoint is configured to 
bind to a different port than the client-side channel is attempting to connect 
to. This is generally due to compiling a swf, changing your server config and 
bouncing the server, and not recompiling the swf to pick up the config changes.

Seth


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
flexuser1
Sent: Friday, January 18, 2008 2:41 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex Messaging + CF8 with embedded LC integration question

Hi I've been trying to make a simple app with flex messaging 
service. All the tutorials I see are for Flex 2 and CF7 using FDS. 
However, I am using Coldfusion 8 with embedded LCDS.

When I try to run my simple chat app I get this output in the 
console using tracetarget.
=
'chatSubscriber' consumer subscribe.
'cf-rtmp' channel endpoint set to rtmp://localhost:8500
'cf-rtmp' channel settings are:
channel id=cf-rtmp type=mx.messaging.channels.RTMPChannel
endpoint uri=rtmp://{server.name}:{server.port}/
properties/
/channel
[SWF] /Flex/chat/bin-debug/ChatAppFinished.swf - 743,790 bytes after 
decompression
'cf-rtmp' channel got connect attempt status. (Object)#0
code = NetConnection.Connect.Failed
level = error
=

I've fully edited the xmls as needed I think. I've added the 
destinations etc. Is there anyone who's experienced enough to know 
why there's a NetConnection.Connect.Failed message?

I have a fully remote server with this and you can login to take a 
look.
 


RE: [flexcoders] get list of my item renderer

2008-01-18 Thread Jim Hayes
I think you just add a method to return it (assuming you want it to be publicly 
accessible from your instance of the custom TileList)

so in your extension of TileList , add something like

public function getListItems():Array
{
return listItems;
}

If you want a property style access 
(myTileListExtensionInstance.publicListItems) 

public function get publicListItems():Array
{
return listItems;
}

This is of the top of my head, not thought about it too much or checked it, but 
it effectively gives public access to that protected property...
Apologies if I've misunderstood your question.



-Original Message-
From: flexcoders@yahoogroups.com on behalf of ezderman
Sent: Fri 18/01/2008 23:08
To: flexcoders@yahoogroups.com
Subject: [flexcoders] get list of my item renderer
 
I have a TileList and I am trying to get reference to each item 
renderer. I read about of a protected property called listItems that 
return an array of the itemRenderer but I am not sure how to implement 
it. I am extending the TileList class but how do I implement the 
property to return the array?



__
This communication is from Primal Pictures Ltd., a company registered in 
England and Wales with registration No. 02622298 and registered office: 4th 
Floor, Tennyson House, 159-165 Great Portland Street, London, W1W 5PA, UK. VAT 
registration No. 648874577.

This e-mail is confidential and may be privileged. It may be read, copied and 
used only by the intended recipient. If you have received it in error, please 
contact the sender immediately by return e-mail or by telephoning +44(0)20 7637 
1010. Please then delete the e-mail and do not disclose its contents to any 
person.
This email has been scanned for Primal Pictures by the MessageLabs Email 
Security System.
__winmail.dat

[flexcoders] get list of my item renderer

2008-01-18 Thread ezderman
I have a TileList and I am trying to get reference to each item 
renderer. I read about of a protected property called listItems that 
return an array of the itemRenderer but I am not sure how to implement 
it. I am extending the TileList class but how do I implement the 
property to return the array?



Re: [flexcoders] Re: Killing Browser based popups

2008-01-18 Thread Sherif Abdou
I have no idea about this, but isn;t that the purpose of the ExternalInterface 
class in flex to communicate with JS so i assume u can probably deactivate it


- Original Message 
From: markcavins [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, January 18, 2008 5:01:50 PM
Subject: [flexcoders] Re: Killing Browser based popups



You are correct it would be a JS HTML. Is there a way for flex to take
control of the browser to keep the JS from activating?

--- In [EMAIL PROTECTED] ups.com, Tom Chiverton tom.chiverton@ ...
wrote:

 On Thursday 17 Jan 2008, markcavins wrote:
  I have this flex app that accesses an existing backend program to get
  it's information. 
 
 How ? XML RPC ? Or are you screen scrapeing ?
 
  One of the fail safes we have in this backend is a 
  browser based pop up that will activate if a user enters the wrong
  username or password.
 
 At a guess, this would be JavaScript in a HTML repsonce, right ?
Which won't 
 be run by the Flex HTTP client.
 
 -- 
 Tom Chiverton
 Helping to preemptively participate front-end models
 on: http://thefalken. livejournal. com
 
  * * * * 
 
 This email is sent for and on behalf of Halliwells LLP.
 
 Halliwells LLP is a limited liability partnership registered in
England and Wales under registered number OC307980 whose registered
office address is at Halliwells LLP, 3 Hardman Square, Spinningfields,
Manchester, M3 3EB. A list of members is available for inspection at
the registered office. Any reference to a partner in relation to
Halliwells LLP means a member of Halliwells LLP. Regulated by The
Solicitors Regulation Authority.
 
 CONFIDENTIALITY
 
 This email is intended only for the use of the addressee named above
and may be confidential or legally privileged. If you are not the
addressee you must not read it and must not use any information
contained in nor copy it nor inform any person other than Halliwells
LLP or the addressee of its existence or contents. If you have
received this email in error please delete it and notify Halliwells
LLP IT Department on 0870 365 2500.
 
 For more information about Halliwells LLP visit www.halliwells. com.






  

Be a better friend, newshound, and 
know-it-all with Yahoo! Mobile.  Try it now.  
http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ 


[flexcoders] Re: How to force creation of children of a component

2008-01-18 Thread letterpigeon
Hi Venkat,

That worked out very well.  Thanks for your help.

Regards,
Ban

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

 Flex will not create the children of a component until is is added to
 a display object already in the display list.
 
 you can call initialize() on the component to force creating the
children.
 
 - venkat
 http://www.venkatj.com
 
 --- In flexcoders@yahoogroups.com, letterpigeon ban.luc@ wrote:
 
  Hi all,
  
  I think the problem I'm having right now is related to when flex
  creates the components to display.
  
  I have a data grid which uses a custom header renderer, so when the
  header is clicked, a panel (a custom component that I named
  TextFilter) will show up that contains a text input (named
  filterField) to accept input for searching on that column.  And it's
  working all fine.
  
  The problem occurs when I try to programmatically set filterField.text
  before clicking on the header of that column.  At this point,
  TextFilter is initialized but filterField is not, so it's still null.
   I think flex will only fully initalize the TextFilter component
  before it displays, but if the column header is never clicked, flex
  will not initialize TextFilter's children.
  
  I tried setting the creationPolicy of TextFilter to all but that
  didn't work.
  
  Does anyone see any feasible solutions to this.  Any help would be
  greatly appreciated.
  
  Regards,
  Ban
 





RE: [flexcoders] Fwd: [Flashnewbie] XML Object by Reference to DataGrid

2008-01-18 Thread Merrill, Jason
I wasn't really about posting ettiquite, :) I just thinking how you
can get others to better repond to get the answers you need.  
 
Also, where do you declare new XML() in your code, I didn't see it.
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 




Re: [flexcoders] Fwd: [Flashnewbie] XML Object by Reference to DataGrid

2008-01-18 Thread CK
Hi,

I'll simplify and repost, as many are busy. Thanks for illustrating  
posting etiquette.


Chris
On Jan 18, 2008, at 10:42 AM, Merrill, Jason wrote:


 Hi Chris - I see nobody's responded to this yet, I would recommend  
 you try and simplify your post instead of putting in ALL of the  
 MXML.  Your question is about using XML to populate a datagrid, so  
 try reposting your question with only the relevant MXML and  
 Actionscript.  I started reading your post and then stopped when I  
 saw all that code and thought, I don't really have time to dig  
 through it to assist.  Anyway, that may help you.  Also, simplify  
 your code a little and try this without the catch/try routines.   
 Also, where arey you declaring new XML() ?


 Jason Merrill
 Bank of America
 GTO LLD Solutions Design  Development
 eTools  Multimedia

 Bank of America Flash Platform Developer Community





 From: flexcoders@yahoogroups.com  
 [mailto:[EMAIL PROTECTED] On Behalf Of CK
 Sent: Thursday, January 17, 2008 3:04 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Fwd: [Flashnewbie] XML Object by Reference to  
 DataGrid

 Hi All,

 On advice from the talented Jason Merrill, I throw my question to
 the think tank.

 CK

 Begin forwarded message:

  From: CK [EMAIL PROTECTED]
  Date: January 12, 2008 10:41:45 AM PST
  To: Flashnewbie Mailing List [EMAIL PROTECTED]
  Subject: [Flashnewbie] XMl Object by Reference to DataGrid
  Reply-To: Flashnewbie Mailing List  
 [EMAIL PROTECTED]
 
 
  HI,
 
  This is an ambitious newbie FLEX application. The issue is my
  attempt creating an XML object by reference then populating the
  DataGrid has failed. Will someone offer a solution?
 
  CK
 
 
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
  layout=absolute
  mx:Style
  Label{fontFamily: Verdana; fontSize: 10pt; fontWeight: bold;}
  /mx:Style
  mx:Script
 
  ![CDATA[
  import flash.events.Event;
  [Bindable]public var titleOverview:XML
  private function addOverview(e:Event):void
  {
 
  try
  {
  titleOverview=
  //Create the XML object using the values provided
  //by the users for the tag name, and contents.
  dvd
  dvdTitle
  {dvdTitle.text}
  /dvdTitle
  /dvd;
  }
  catch (e:TypeError)
  {
 
  titleOverview = errorFill In All Fields of the
  Overview./error;
  }
 
  }
  ]]
  /mx:Script
  mx:Panel title=DVD Collection: Add Title height=500
  width=530 paddingTop=5 paddingLeft=5 paddingRight=5
  paddingBottom=5
  mx:Accordion id=dvdAccordion height=450 width=500 x=10
  y=31
  mx:Form id=dvdOverview label=Overview height=507 width=635
  mx:Label text=Title: width=48 height=19 /
  mx:TextInput id=dvdTitle width=290 height=25/
  mx:Label text=Genre: width=49 height=15 /
  mx:ComboBox width=290
  mx:ArrayCollection
  mx:StringAction/mx:String
  mx:StringSci-Fi/mx:String
  mx:StringDrama/mx:String
  mx:StringForeign/mx:String
  mx:StringComedy/mx:String
  mx:StringHorror/mx:String
  mx:StringChildren's/mx:String
  mx:StringRomance/mx:String
  /mx:ArrayCollection
  /mx:ComboBox
  mx:Label text=Actors: /
  mx:TextArea id=dvdActors width=450 /
  mx:Label text=Director: /
  mx:TextInput id=dvdDirector width=290 height=25/
  mx:Label text=Producer(s): /
  mx:TextInput id=dvdProducers width=290 height=25/
  mx:Button label=Add DVD Overiew id=addOverviewBtn
  click=addOverview(event);/
  /mx:Form
  mx:Form id=dvdDetails label=Details height=508 width=635
  mx:Label text=Plot: /
  mx:TextArea id=dvdPlot width=450 /
  mx:Label text=Review: /
  mx:TextArea id=dvdReview width=450 /
  mx:Label text=Rating: /
  mx:RadioButton groupName=dvdRating
  id=dvdWatachable
  label=Watachable
  width=150/
  mx:RadioButton groupName=dvdRating
  id=dvdHorrible
  label=Horrible
  width=150/
  mx:RadioButton groupName=dvdRating
  id=dvdAwesome
  label=Awesome
  width=150/
  mx:Label text=Date Purchased (MM/DD/): /
  mx:DateField id=dvdPurchaseDate width=125 /
  mx:Label text=Price (dollars . cents) : /
  mx:HBox width=200
  mx:Text text=$/mx:TextInput width=50 height=20/
  mx:Text text=./mx:TextInput width=50 height=20/
  /mx:HBox
  mx:Label text=Date Released (MM/DD/): /
  mx:DateField id=dvdReleaseDate width=125 /
  mx:Label text=Length (HH MM SS) : width=265/
 
  mx:HBox width=200
  mx:TextInput width=50 height=20/mx:Text text=:/
  mx:TextInput width=50 height=20/mx:Text text=:/
  mx:TextInput width=50 height=20/
  /mx:HBox
  mx:Button label=Add DVD Details id=addDetailsBtn /
  /mx:Form
 
  /mx:Accordion
  /mx:Panel
  mx:Panel title=DVD Collection: View Titles height=300
  width=59% paddingTop=5 paddingLeft=5 paddingRight=5
  paddingBottom=5 x=0 y=518
  mx:DataGrid width=100% editable=true
  variableRowHeight=true x=538 height=250
  dataProvider={titleOverview.dvd}
  mx:columns
  mx:DataGridColumn dataField=title headerText=Title
  editable=false /
  mx:DataGridColumn dataField=genre headerText=Genre
  editable=false /
  mx:DataGridColumn dataField=actors headerText=Actors
  editable=true /
  

RE: [flexcoders] Drawn objects acting as children to components?

2008-01-18 Thread Merrill, Jason
Yeah, but for some reason when I do getBounds(this) and then re-size the
panel, the drawn graphic can extend beyond the boundaries of the Panel.

 
Also, zooming is tough because if I simply increase or decrease width
and height, it seems to move the graphic instead of change it's size...
 
 
  public function zoomIn():void
  {
   height += 100;
   width += 100;
   updateDisplayList(unscaledWidth, unscaledHeight);
  }
  
  public function zoomOut():void
  {
   height -= 100;
   width -= 100;
   updateDisplayList(unscaledWidth, unscaledHeight);
  }

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Friday, January 18, 2008 1:42 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?




You want the bounds of what you drew, so getBounds(this) should
be correct.
 
If you set scaleX/Y to zoom, you shouldn't need to do anything.
If you set scaleX/Y on an internal thing to zoom or in the case of the
circle, multiply the radius by some zoom factor, then you have to report
that new measuredWidth/Height in measure() and maybe call invalidateList
if you have some property like zoomFactor that we're not already
watching for changes



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, January 18, 2008 10:36 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as children to
components?




I thought the container reference was needed by the getBounds()
method - it requires an  argument of a UIComponent of some kind, I
thought the custom component would need to know the new size of the
container when it got re-sized.  If I don't need the container
reference, then maybe I could just say getBounds(this) instead and it
would work.
 
Also, I want to implement a method to scale the graphics up and
down, I have that working, but I'm back to the graphic not being
centered and not staying within the boundaries of the Panel container
again when the zoom occurs.  I tried calling updateDisplayList again
when the zoom action happens, but that didn't work.  Any thoughts there?
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 



 




From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Alex Harui
Sent: Friday, January 18, 2008 12:10 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as
children to components?




I think in the general case, you'll need to set
minHeight/minWidth to zero or something small on the Panel or have fixed
width/height on the Panel to get the Panel to consider putting up
scrollbars.
 
The graphics object should compute
measuredMinWidth/measuredMinHeight to be the same as
measuredWidht/Height so the Panel will not try to shrink it past its
dimensions.
 
If you can compute the measurements w/o drawing then you
don't need commitProperties and just draw in updateDisplayList.
 
I don't know why you need a container reference unless
it is to get the bounds of the container to determine where to draw, but
if you've set up % widht/height you'll be given those dimensions in
updateDisplayList.



From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Merrill, Jason
Sent: Friday, January 18, 2008 7:02 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Drawn objects acting as
children to components?




Hey Jim, passing minWidth and minHeight to the custom UI
component worked perfectly for me - now the drawn graphic is contained
in the Panel container - thank you!
 

Jason Merrill 
Bank of America 
GTO LLD Solutions Design  Development 
eTools  Multimedia 

Bank of America Flash Platform Developer Community 









 



[flexcoders] Re: Get fields from dataProvider

2008-01-18 Thread markgoldin_2000
I am executing this line of the code:
var ClassInfo:Object = ObjectUtil.getClassInfo(gridObj.dataProvider);
but I am not sure I can see a list of the fields. Am I doing 
something wrong?

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

 ObjectUtil.getClassInfo()
 
  
 
 
 
 From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] On
 Behalf Of markgoldin_2000
 Sent: Thursday, January 17, 2008 2:48 PM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Get fields from dataProvider
 
  
 
 How can I extract a list of fields from DataGrid's dataProvider? I 
need 
 it ftom dataProvider because not all data is shown in the grids.
 
 Thanks





[flexcoders] refresh HorizontalList dat provider

2008-01-18 Thread Jerry DuVal
I have a HorizontalList that has a data provider bound by XML on a custom
class.   Everything loads fine, but If I change my XML is does not
automatically refresh this data that the HorizontalList is using.  Is there
any way to tell the list that it's data is validate?

 

Thanks in advance. 

 

Jerry DuVal

Pace Systems Group, Inc.

800.624.5999

www.Pace2020.com

 



  1   2   >