Re: [flexcoders] FAQ updated

2008-09-12 Thread Josh McDonald
It doesn't, Yahoo's ID management sucks :'(

I'm happy to provide some public space for a copy of the FAQ, but I can't
get it ;-)

-Josh

On Fri, Sep 12, 2008 at 2:48 PM, Matt Chotin [EMAIL PROTECTED] wrote:

 I can't seem to make it a public file.  I don't really have a good place to
 host it that I have access to.  In the meantime you're brucethebruiser if
 that helps :-)


 On 9/11/08 9:33 PM, Josh McDonald [EMAIL PROTECTED] wrote:




 Could we get it hosted somewhere outside of Yahoo? Or at least make it not
 hidden behind a login? I can't sign in to yahoo, and it asks too many stupid
 questions when you request a new username / password. How the hell can I
 remember what bogus information I put in when I signed up? My postcode or
 phone number or DOB is none of their business, and I signed up *years* ago.
 I can't be the only one in this situation ;-)

 Cheers,
 -Josh

 On Fri, Sep 12, 2008 at 2:28 PM, Matt Chotin [EMAIL PROTECTED] wrote:
 Thanks to a big contribution from Amy Blankenship I've updated the
 Flexcoders FAQ.  I got rid of some of the 1.5 stuff and added a huge number
 of great entries that Amy put together at the end.  I also set it to mail
 the FAQ to folks when they first join the group.

 Thanks for the help Amy!  If anyone else would like to participate in
 updating the FAQ, please feel free to let me or the other moderators know.

 Matt


 

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






 

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






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

http://flex.joshmcdonald.info/

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


RE: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Alex Harui
button.addEventListener(...)
button.label = foo
control.removeChild(button)

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark 
Easton
Sent: Thursday, September 11, 2008 6:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How To Access Child From Parent?


Hi,

I am having a mental blank moment. If I add a child to a control. How can I 
access the child from the control?

i.e.
button = new Button();
control.addChild(button);

So via control how can I now access that button?

Cheers
Mark





Re: [flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Josh McDonald
Sure go nuts, DisplayObject exposes all visual children, you can create any
kind of decorator you want really, although it'll have to understand the
internals of anything you want to decorate. Obviously the component and
skinning model could have been better, that's why it's different in Gumbo.
Not much point complaining that it's not perfect, we know ;-)

-Josh

On Fri, Sep 12, 2008 at 1:02 PM, wnoone01 [EMAIL PROTECTED] wrote:

 Hey all,

 Thanks for the responses. I just want to clarify my question a little
 bit. I am not particularly interested in the actual solution to the
 example. Although, it is the actual problem that prompted me to ask
 the question in the first place. And:

 Alex: My solution will most likely group both multiline and html in one
 Doug:  I haved looked into using CanvasButton for this (and may still
 use it)

 Its just that my issue here is more general.

 Let's say I go with CanvasButton as the solution. I still need to
 support CanvasButton functionality in RadioButton and CheckBox. That
 requires suclasses:

 CanvasRadioButton
 CanvasCheckBox

 Maybe this is the only way to go, but I was hoping there was a
 strategy that was more elegant.  For example, writing a CanvasRenderer
 class and then snapping on to button or subclasses as needed.
 Something very similar to item renderers.

 Or maybe something else (decorator pattern, composition)?

 ---

 Maybe I am just frustrated with the implementation of Button. It just
 seems the visual UI is too tightly coupled with the behavior.



 --- In flexcoders@yahoogroups.com, Doug McCune [EMAIL PROTECTED] wrote:
 
  heh, that's almost the exact description of what I called the
  CanvasButton:
 

 http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/
 
  Doug
 
  On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 
 Yeah, I'd make one subclass of Button that lets you put whatever you
   please as the label, and have function set labelControl(cntrl:*)
 as the
   [DefaultProperty]. If it finds a string, go with a UITextField, if
 it's a
   DisplayObject, use it, if not throw an error. Then you have:
  
   pkg:FreeFormButton click=doStuff width=150
 mx:textblah blah blah blah blah blah blah blah blah/mx:text
   /pkg:FreeFormButton
  
   -Josh
  
  
   On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED] wrote:
  
Make one subclass that handles both HTML and multiline?
  
  
  
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] *On
   Behalf Of *wnoone01
   *Sent:* Thursday, September 11, 2008 11:17 AM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Subclassing Components: Theoretical Question
  
  
  
   Hey all,
   I've got a theoretical question about subclassing a component.
 Here is
   the use case:
  
   A programmer requires buttons that support multiline labels. This
 is a
   requiement for Button, RadioButton, and CheckBox. Now to start, the
   programmer can subclass mx.controls.Button to implement the
   functionality. But now he needs to implement the functionality in
   RadioButton and CheckBox.
  
   One way is to subclass RadioButton and CheckBox and then
 duplicate the
   functionality there. However, not only will he be duplicating
   functionality, he is headed down a slippery slope. Let's say that for
   his next project, he suddenly requires a button label that supports
   HTML formatting. Now he must subclass again. So now the classes grow
   from:
  
   MultilineButton
   MultilineRadioButton
   MultilineCheckBox
  
   To
  
   MultilineButton
   HTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
  
   The next project requires a multiline html button. So now its:
  
   MultilineButton
   HTMLButton
   MultilineHTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineHTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
   MultilineHTMLCheckBox
  
   And now its officially out of hand and the programmer is mired in a
   subclassing nightmare.
  
   ---
  
   So basically my question is what is the best way to handle this
   problem in Flex. Is subclassing the only way or is there a more
   efficient solution (decorators, item renderers, etc.)?
  
   Thanks in advance for any guidance
   Bill
  
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
  
   http://flex.joshmcdonald.info/
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: [EMAIL PROTECTED]
  
  
 



 

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






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

http://flex.joshmcdonald.info/

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


Re: [flexcoders] Rich text editor

2008-09-12 Thread Abdul Razack
ya u can remove the panel try with this code and gothorugh this website 
blog.flexexamples.com 

mx:RichTextEditor id=richTextEditor
title=RichTextEditor
status=version {richTextEditor.getStyle('version')}
showControlBar=false
cornerRadius=0
width=100%
height=100%
rollOut=richTextEditor.showControlBar = false;
rollOver=richTextEditor.showControlBar = true; /



On Thu, Sep 11, 2008 at 9:24 AM, shelle.maffe [EMAIL PROTECTED]wrote:

   Hi There

 I am fresh to flex development. I am trying to use the rich text
 editor, and want to remove the panel around the textarea and also move
 all the buttons above the text editor. Can someone describe to how I
 can achieve this?

  




-- 
Sunny Bhai ka Mail hai Tikh se Padeye warna apne health ke liya tikh nahi
hoga

Abdul Razack
Web Designer and Developer
Contact No : 9391180165


[flexcoders] Re: Cannot unmarshall

2008-09-12 Thread Alban
Sorry for the delay to respond.
So this is the entire wsdl generated by open edge 10.1c :
[wsdl]
?xml version=1.0 encoding=UTF-8?
wsdl:definitions name=AppTestDS targetNamespace=urn:callwsdataset
xmlns:tns=urn:callwsdataset xmlns:S2=urn:callwsdataset:AppTestDS
xmlns:soapenc=http://schemas.xmlsoap.org/soap/encoding/;
xmlns:xsd=http://www.w3.org/2001/XMLSchema;
xmlns:prodata=urn:schemas-progress-com:xml-prodata:0001
xmlns:soap=http://schemas.xmlsoap.org/wsdl/soap/;
xmlns:wsdl=http://schemas.xmlsoap.org/wsdl/;
xmlns:S1=urn:soap-fault:details
xmlns=http://schemas.xmlsoap.org/wsdl/;
wsdl:documentationEncodingType=DOC_LITERAL,
Proxygen_Product=Progress Version 10.1C/wsdl:documentation
  wsdl:types
schema elementFormDefault=unqualified
targetNamespace=urn:soap-fault:details
xmlns=http://www.w3.org/2001/XMLSchema;element
name=FaultDetailcomplexTypesequenceelement name=errorMessage
type=xsd:string/element name=requestID
type=xsd:string//sequence/complexType/element/schema
schema elementFormDefault=qualified
targetNamespace=urn:callwsdataset:AppTestDS
xmlns=http://www.w3.org/2001/XMLSchema;element
name=dsOrdercomplexTypesequenceelement maxOccurs=unbounded
minOccurs=0 name=ttOrdercomplexTypesequenceelement
name=Ordernum nillable=true type=xsd:int/element
name=CustNum nillable=true type=xsd:int/element
name=OrderDate nillable=true type=xsd:date/element
name=ShipDate nillable=true type=xsd:date/element
name=PromiseDate nillable=true type=xsd:date/element
name=Carrier nillable=true type=xsd:string/element
name=Instructions nillable=true type=xsd:string/element
name=PO nillable=true type=xsd:string/element name=Terms
nillable=true type=xsd:string/element name=SalesRep
nillable=true type=xsd:string/element name=BillToID
nillable=true type=xsd:int/element name=ShipToID
nillable=true type=xsd:int/element name=OrderStatus
nillable=true type=xsd:string/element name=WarehouseNum
nillable=true type=xsd:int/element name=Creditcard
nillable=true type=xsd:string/element name=OrderTotal
nillable=true type=xsd:decimal/element name=CustName
nillable=true type=xsd:string/element name=RepName
nillable=true
type=xsd:string//sequence/complexType/elementelement
maxOccurs=unbounded minOccurs=0 name=ttOline
prodata:beforeTable=BIttOlinecomplexTypesequenceelement
name=Ordernum nillable=true type=xsd:int/element
name=Linenum nillable=true type=xsd:int/element name=Itemnum
nillable=true type=xsd:int/element name=Price nillable=true
type=xsd:decimal/element name=Qty nillable=true
type=xsd:int/element name=Discount nillable=true
type=xsd:int/element name=ExtendedPrice nillable=true
type=xsd:decimal/element name=OrderLineStatus nillable=true
type=xsd:string//sequence/complexType/elementelement
maxOccurs=unbounded minOccurs=0
name=ttItemcomplexTypesequenceelement name=Itemnum
nillable=true type=xsd:int/element name=ItemName
nillable=true type=xsd:string/element name=Price
nillable=true type=xsd:decimal/element name=Onhand
nillable=true type=xsd:int/element name=Allocated
nillable=true type=xsd:int/element name=ReOrder
nillable=true type=xsd:int/element name=OnOrder
nillable=true type=xsd:int/element name=CatPage
nillable=true type=xsd:int/element name=CatDescription
nillable=true type=xsd:string/element name=Category1
nillable=true type=xsd:string/element name=Category2
nillable=true type=xsd:string/element name=Special
nillable=true type=xsd:string/element name=Weight
nillable=true type=xsd:decimal/element name=Minqty
nillable=true
type=xsd:int//sequence/complexType/element/sequence/complexTypeunique
name=OrderNum prodata:primaryIndex=trueselector
xpath=.//S2:ttOrder/field xpath=S2:Ordernum//uniqueunique
name=orderline prodata:primaryIndex=trueselector
xpath=.//S2:ttOline/field xpath=S2:Ordernum/field
xpath=S2:Linenum//uniqueunique name=ItemNum
prodata:primaryIndex=trueselector xpath=.//S2:ttItem/field
xpath=S2:Itemnum//uniquekeyref name=OrderLine
refer=S2:OrderNumselector xpath=.//S2:ttOline/field
xpath=S2:Ordernum//keyrefannotationappinfoprodata:relation
name=LineItem prodata:child=ttItem prodata:parent=ttOline
prodata:relationFields=Itemnum,Itemnum//appinfo/annotation/elementelement
name=CALL_testDatasetcomplexTypesequence//complexType/elementelement
name=CALL_testDatasetResponsecomplexTypesequenceelement
name=result nillable=true type=xsd:string/element
ref=S2:dsOrder//sequence/complexType/element/schema
  /wsdl:types
  wsdl:message name=FaultDetailMessage
wsdl:part name=FaultDetail element=S1:FaultDetail/
  /wsdl:message
  wsdl:message name=AppTestDS_CALL_testDataset
wsdl:part name=parameters element=S2:CALL_testDataset/
  /wsdl:message
  wsdl:message name=AppTestDS_CALL_testDatasetResponse
wsdl:part name=parameters element=S2:CALL_testDatasetResponse/
  /wsdl:message
  wsdl:portType name=AppTestDSObj
wsdl:operation name=CALL_testDataset
  wsdl:input message=tns:AppTestDS_CALL_testDataset/
  wsdl:output message=tns:AppTestDS_CALL_testDatasetResponse/
  wsdl:fault name=AppTestDSFault 

[flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Cosma
This is the problem with inheritance, and the reason because IMO one
shouldn't subclass too quickly, but prefer composition over
inheritance when possible.

Especially for visual components, maybe some framework that helps to
separate state and behaviours from pure graphics (openflux?) could help.

Cosma


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

 Hey all,
 
 Thanks for the responses. I just want to clarify my question a little
 bit. I am not particularly interested in the actual solution to the
 example. Although, it is the actual problem that prompted me to ask
 the question in the first place. And:
 
 Alex: My solution will most likely group both multiline and html in one
 Doug:  I haved looked into using CanvasButton for this (and may still
 use it)
 
 Its just that my issue here is more general. 
  
 Let's say I go with CanvasButton as the solution. I still need to
 support CanvasButton functionality in RadioButton and CheckBox. That
 requires suclasses:
 
 CanvasRadioButton 
 CanvasCheckBox
 
 Maybe this is the only way to go, but I was hoping there was a
 strategy that was more elegant.  For example, writing a CanvasRenderer
 class and then snapping on to button or subclasses as needed.
 Something very similar to item renderers. 
 
 Or maybe something else (decorator pattern, composition)?
 
 ---
 
 Maybe I am just frustrated with the implementation of Button. It just
 seems the visual UI is too tightly coupled with the behavior. 
 
 
 
 --- In flexcoders@yahoogroups.com, Doug McCune doug@ wrote:
 
  heh, that's almost the exact description of what I called the
  CanvasButton:
 

http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/
  
  Doug
  
  On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald dznuts@ wrote:
  
 Yeah, I'd make one subclass of Button that lets you put
whatever you
   please as the label, and have function set labelControl(cntrl:*)
 as the
   [DefaultProperty]. If it finds a string, go with a UITextField, if
 it's a
   DisplayObject, use it, if not throw an error. Then you have:
  
   pkg:FreeFormButton click=doStuff width=150
 mx:textblah blah blah blah blah blah blah blah blah/mx:text
   /pkg:FreeFormButton
  
   -Josh
  
  
   On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui aharui@ wrote:
  
Make one subclass that handles both HTML and multiline?
  
  
  
   *From:* flexcoders@yahoogroups.com
 [mailto:[EMAIL PROTECTED] *On
   Behalf Of *wnoone01
   *Sent:* Thursday, September 11, 2008 11:17 AM
   *To:* flexcoders@yahoogroups.com
   *Subject:* [flexcoders] Subclassing Components: Theoretical
Question
  
  
  
   Hey all,
   I've got a theoretical question about subclassing a component.
 Here is
   the use case:
  
   A programmer requires buttons that support multiline labels. This
 is a
   requiement for Button, RadioButton, and CheckBox. Now to start, the
   programmer can subclass mx.controls.Button to implement the
   functionality. But now he needs to implement the functionality in
   RadioButton and CheckBox.
  
   One way is to subclass RadioButton and CheckBox and then
 duplicate the
   functionality there. However, not only will he be duplicating
   functionality, he is headed down a slippery slope. Let's say
that for
   his next project, he suddenly requires a button label that supports
   HTML formatting. Now he must subclass again. So now the classes
grow
   from:
  
   MultilineButton
   MultilineRadioButton
   MultilineCheckBox
  
   To
  
   MultilineButton
   HTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
  
   The next project requires a multiline html button. So now its:
  
   MultilineButton
   HTMLButton
   MultilineHTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineHTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
   MultilineHTMLCheckBox
  
   And now its officially out of hand and the programmer is mired in a
   subclassing nightmare.
  
   ---
  
   So basically my question is what is the best way to handle this
   problem in Flex. Is subclassing the only way or is there a more
   efficient solution (decorators, item renderers, etc.)?
  
   Thanks in advance for any guidance
   Bill
  
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls for
 thee.
  
   http://flex.joshmcdonald.info/
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: josh@

  
 





Re: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Haykel BEN JEMIA
you will have to use any of these functions/properties:

* numChildren : int
* getChildAt(index:int):DisplayObject
* getChildByName(name:String):DisplayObject


On Fri, Sep 12, 2008 at 3:57 AM, Mark Easton [EMAIL PROTECTED] wrote:

Hi,

 I am having a mental blank moment. If I add a child to a control. How can
 I access the child from the control?

 i.e.
 button = new Button();
 control.addChild(button);

 So via control how can I now access that button?

 Cheers
 Mark


  



Re: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Haykel BEN JEMIA
you will have to use any of these functions/properties:

* numChildren : int
* getChildAt(index:int):DisplayObject
* getChildByName(name:String):DisplayObject


On Fri, Sep 12, 2008 at 3:57 AM, Mark Easton [EMAIL PROTECTED] wrote:

Hi,

 I am having a mental blank moment. If I add a child to a control. How can
 I access the child from the control?

 i.e.
 button = new Button();
 control.addChild(button);

 So via control how can I now access that button?

 Cheers
 Mark


  



[flexcoders] flex/AIR book reviews

2008-09-12 Thread Kenneth Sutherland
I'm on the hunt for some new AIR  Flex 3 books, nothing basic so I'm
looking for some recommendations.

I know there is a list on flex.org but its linked to amazon and you
normally find that the first review or so always gives 4 or 5 out of 5
and I'd rather trust reviews from folk that are actual flex coders.

 

So if you can recommend anything or pass on a link to a reliable review
site that would be great.

 

I think I've asked for this kind of info 1-2 years ago, but can't find
anything in the archives.

 

Cheers.

 

 

Kenneth Sutherland

Technical Developer

Realise Ltd

0131 476 7432

www.realise.com

enlightened e-business solutions

 

Disclaimer 
---
This electronic message contains information which may be privileged and 
confidential. The information is intended to be for the use of the 
individual(s) or entity named above. If you are not the intended recipient, be 
aware that any disclosure, copying, distribution or use of the contents of this 
information is prohibited. If you have received this electronic message in 
error, please notify us by telephone on 0131 476 6000 and delete the material 
from your computer. 
Registered in Scotland number: SC 172507. 
Registered office address: Quay House 142 Commercial Street Edinburgh EH6 6LB. 

This email message has been scanned for viruses by Mimecast.
---

Re: [flexcoders] ClassReference in StyleManager loaded SWFs

2008-09-12 Thread Tom Chiverton
On Thursday 11 Sep 2008, Kenneth Sutherland wrote:
 1)  Create a library project, place your foo.bar.baz.ButtonSkin class
 inside the library project.

Eww.
There isn't a another way ? This seems like overkill. Shouldn't the style just 
assume the class is present and through a RTE rather than at compile time ?

-- 
Tom Chiverton
Helping to quickly benchmark frictionless infrastructures



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.comYahoo! 
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] FAQ updated

2008-09-12 Thread Tom Chiverton
Or Google Docs ?



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.comYahoo! 
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] FAQ updated

2008-09-12 Thread Tom Chiverton
On Friday 12 Sep 2008, Matt Chotin wrote:
 I can't seem to make it a public file.  I don't really have a good place to
 host it that I have access to.  

Acrobat.com ?

-- 
Tom Chiverton
Helping to biannually participate second-generation portals



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.comYahoo! 
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] Compiile errors from html template

2008-09-12 Thread Guillaume Malartre
If you want to be sure it doesn't obscure real errors just compile without
the html.

Rigth+click on your project, Flex Compiler, remove generate HTML wrapper
file
and there you go, only a nice .swf no template!

On Thu, Sep 11, 2008 at 6:32 PM, Tom McNeer [EMAIL PROTECTED] wrote:

   Hi,

 All of a sudden, I'm getting compiler errors related to the
 index.template.html. They refer to XHTML validation errors in the file (such
 as the lack of a type on a script tag).

 But I haven't changed the template file. And why would the compiler look
 into the template and do XHTML validation, anyway.

 ???

 Obviously, I can ignore the errors and launch anyway. But this could
 obscure real errors in the code.

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
  




-- 
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net


Re: [flexcoders] ClassReference in StyleManager loaded SWFs

2008-09-12 Thread Tom Chiverton
On Thursday 11 Sep 2008, Guillaume Malartre wrote:
 Apply the stylesheet after the swf is loaded.

Already doing that, the StyleManager is called from the creationComplete event 
of the Application tag - and it moans.

-- 
Tom Chiverton
Helping to authoritatively transition B2C market-growth



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.comYahoo! 
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] ClassReference in StyleManager loaded SWFs

2008-09-12 Thread Tom Chiverton
On Thursday 11 Sep 2008, Douglas Knudsen wrote:
 is your .css in the source tree or elsewhere?  There are some issues with
 this.  I'm going to guess your css file is outside the source tree.

In the source tree:
src/ Application.mxml
/styles/ myStyle.mxml

bin/Application.swf
bin/myStyle.swf

-- 
Tom Chiverton
Helping to apprehensively maintain prospective partnerships



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.comYahoo! 
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: How to clear client browser cache (SWF)

2008-09-12 Thread Siva Kumar S
Dear Friends

Thanks for the suggestion.
It's helps me a lot.
Thanks 

Thanking You
Siva Kumar S


From: tuco_ck 
Sent: Thursday, September 11, 2008 10:10 PM
To: flexcoders@yahoogroups.com 
Subject: [flexcoders] Re: How to clear client browser cache (SWF)


Or You can control your version by assign in the final of your url
with a simple number of your current version after a ?, like this:
myapp.swf?315

When you alter your app, change also the version, like this: myapp.swf?316

Understand?

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

 Siva,
 You can go with versioning..when you release and putting your swf in
 live..create a new folder with version name..and point to it.
 
 Thanks,
 Mathew.
 
 On Thu, Sep 11, 2008 at 7:41 PM, Paul Andrews [EMAIL PROTECTED] wrote:
 
   I suppose you could build a flash loader to get the correct
url from
  the server and load it. That way the user could always reference
the same
  URL and the flash loader would have to get the correct (changing)
url from
  the server before loading the main application.
 
  Paul
 
  - Original Message -
  *From:* Siva Kumar S [EMAIL PROTECTED]
  *To:* flexcoders@yahoogroups.com
  *Sent:* Thursday, September 11, 2008 8:09 AM
  *Subject:* Re: [flexcoders] How to clear client browser cache (SWF)
 
  Hi Sefi
 
  Is there any other alternative, because changing the URL frequently
  will create a problem with the end-user.
 
  Thanks
  Siva Kumar S
 
  *From:* Sefi Ninio [EMAIL PROTECTED]
  *Sent:* Thursday, September 11, 2008 11:43 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* Re: [flexcoders] How to clear client browser cache (SWF)
 
  The straight froward approach would be to append the url with now
date or
  something, to make it different from the one in the cache...
 
  On Thu, Sep 11, 2008 at 9:03 AM, Siva Kumar S [EMAIL PROTECTED]wrote:
 
  Dear All
 
  We are in development of an ERP application in Flex.
  Initially we may rollout few modules for testing, as the change
request
  will trigger during this process. We need to release new version
and so on.
  Like to know how to clear the client SWF version to replace the new
  version of it.
  Please advice.
 
 
  Thanking You
  Siva Kumar S
 
 
  
 
 
 
 
 -- 
 Mathew Easow Jacob,
 Bangalore.
 +91-9886979038




 

[flexcoders] Code metrics

2008-09-12 Thread twcrone70
Does anyone know of a good tool for AS3 code metrics?  Measuring
things like cyclomatic complexity.  Similar to tools used to check
quality of Java code.

Thanks,

- Todd



[flexcoders] HELP non coder With First Site ??? Tips? Idea's of things I should look into :(

2008-09-12 Thread johnvid
Hi Everyone, I have only posted once or twice before, and feel there 
is far too many messages from flexcoders to keep up with all the 
news...maybe there is a better place to try to get help.

But anyway here goes.

I have cobbled together my first FLex site. 

http://www.visual-image.co.uk/visualimg.html

and I know there are many issues, the ones I know about and need to 
look into are evident. first off i need to change the index page back 
to index or main, as the site isnt getting picked up.

I think I will add the collapsable super panel so I can add a few 
more panels, but it would be nice to get them(or the 
components/modules) to appear when a navigation button was pressed, 
but hey I can live without it for now as that seems too deep to get 
help with at this moment in time.

The refresh on certain pages doesn't seem to work properly(maybe a 
Yahoo hosting issue??), though if i run it on my HD locally its fine.
Maybe I should add some kind of code throught the app?

Sure I know I should split the app up into components, to get it to 
run faster, but haven't really got my head round that yet, or how to 
split it into modules.

Maybe the Pano's could be loaded as modules they are stand alone swf's

THe Panoramic page, has been a real pain, as at first these Pano's 
Never worked at all(sandiebox violations), now only some of them do, 
Some crash Flex when looading, and the positioning is a little hit 
and miss, Perhaps thats why some people are using Papervision 3D, but 
at first I thought it was because they also contained some extra code 
 layers of graphics.. they seem to work on a panel but not in a 
viewstack. Sometimes i copy one to another page or app with same 
settings and it doesn't work???

Sure would be nice to organise the images so they zoom on mouse over
(or something) But return to the same place, and not push all the 
other images all over the screen, perhaps they all need to be on 
seperate layers, then move to front??? I dont know I am sure they 
could do wonderfull things.


Those are my main issues, though I am sure further down the road I 
may try to get more help, just with those few issues I feel there is 
a lot to learn.

Anyway I thank anyone in advance for any help, in the future I may 
recieve work that is beyond my skills, I would love to have some 
people I could work with to develop larger data driven projects.

thanks ...
johnvid












[flexcoders] Accessing self-signed SSL certificates via as3httpclientlib

2008-09-12 Thread qoolpix
Hi there,

We are going to make use of the as2httpclientlib library in one of our 
projects (mainly because HTTPService does not fully support the 
processing of resulting header information).

It's working quite well with standard HTTP requests, but not with 
HTTPS requests when using a self-signed certificate.

Another test using a generic Amazon URL [1] works as well.

We have full control over the server environment.

Any ideas?

much appreciated,

Johan

[1] https://www.amazon.com/gp/css/homepage.html?
ie=UTF8ref_=topnav_ya_gw



[flexcoders] Re: flex/AIR book reviews

2008-09-12 Thread Steve Thornton
Mooks' Actionscript 3 is essential reading

Flex3 - the Adobe (from the source) is good, but basic intro

I haven't found any Flex3 or AIR books that I'd call 'advanced'

Regards
Steve





RE: [flexcoders] passing parameters flex to .net window application

2008-09-12 Thread Gregor Kiddie
Simplest option is to write the info to a file which is then picked up
by the .net application.

There are more complicated solutions around passing information via the
local connection or socket servers, but they are much more work.

 

Gk.

Gregor Kiddie
Senior Developer
INPS

Tel:   01382 564343

Registered address: The Bread Factory, 1a Broughton Street, London SW8
3QJ

Registered Number: 1788577

Registered in the UK

Visit our Internet Web site at www.inps.co.uk
blocked::http://www.inps.co.uk/ 

The information in this internet email is confidential and is intended
solely for the addressee. Access, copying or re-use of information in it
by anyone else is not authorised. Any views or opinions presented are
solely those of the author and do not necessarily represent those of
INPS or any of its affiliates. If you are not the intended recipient
please contact [EMAIL PROTECTED]



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of aravinda88
Sent: 12 September 2008 08:02
To: flexcoders@yahoogroups.com
Subject: [flexcoders] passing parameters flex to .net window application

 

Hi,
how can i passing parameters flex to .net application?

 



Re: [flexcoders] Compiile errors from html template

2008-09-12 Thread Tom McNeer
Guillame,


 Rigth+click on your project, Flex Compiler, remove generate HTML wrapper
 file
 and there you go, only a nice .swf no template!





Thank you. That's certainly the most appropriate way to deal with it right
now.

But it would still be helpful to know why the compiler suddenly began
generating these errors, if someone has insight.

-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


Re: [flexcoders] HELP non coder With First Site ??? Tips? Idea's of things I should look into :(

2008-09-12 Thread Paul Andrews
Hi John,

It's good to see someone so enthusiastic about Flex, but my advice would be 
to take several steps back rather than attempt to build such a complex site 
as a first project.

I think it would be best to try and build a one or two page site and then 
expand from that. It may also be a good opportunity to reconsider what core 
messages that you may wish to promote about your business so that the site 
has a clear focus.

Paul

- Original Message - 
From: johnvid [EMAIL PROTECTED]
To: flexcoders@yahoogroups.com
Sent: Friday, September 12, 2008 8:20 AM
Subject: [flexcoders] HELP non coder With First Site ??? Tips? Idea's of 
things I should look into :(


 Hi Everyone, I have only posted once or twice before, and feel there
 is far too many messages from flexcoders to keep up with all the
 news...maybe there is a better place to try to get help.

 But anyway here goes.

 I have cobbled together my first FLex site.

 http://www.visual-image.co.uk/visualimg.html

 and I know there are many issues, the ones I know about and need to
 look into are evident. first off i need to change the index page back
 to index or main, as the site isnt getting picked up.

 I think I will add the collapsable super panel so I can add a few
 more panels, but it would be nice to get them(or the
 components/modules) to appear when a navigation button was pressed,
 but hey I can live without it for now as that seems too deep to get
 help with at this moment in time.

 The refresh on certain pages doesn't seem to work properly(maybe a
 Yahoo hosting issue??), though if i run it on my HD locally its fine.
 Maybe I should add some kind of code throught the app?

 Sure I know I should split the app up into components, to get it to
 run faster, but haven't really got my head round that yet, or how to
 split it into modules.

 Maybe the Pano's could be loaded as modules they are stand alone swf's

 THe Panoramic page, has been a real pain, as at first these Pano's
 Never worked at all(sandiebox violations), now only some of them do,
 Some crash Flex when looading, and the positioning is a little hit
 and miss, Perhaps thats why some people are using Papervision 3D, but
 at first I thought it was because they also contained some extra code
  layers of graphics.. they seem to work on a panel but not in a
 viewstack. Sometimes i copy one to another page or app with same
 settings and it doesn't work???

 Sure would be nice to organise the images so they zoom on mouse over
 (or something) But return to the same place, and not push all the
 other images all over the screen, perhaps they all need to be on
 seperate layers, then move to front??? I dont know I am sure they
 could do wonderfull things.


 Those are my main issues, though I am sure further down the road I
 may try to get more help, just with those few issues I feel there is
 a lot to learn.

 Anyway I thank anyone in advance for any help, in the future I may
 recieve work that is beyond my skills, I would love to have some
 people I could work with to develop larger data driven projects.

 thanks ...
 johnvid











 

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



 



[flexcoders] Re: FAQ updated

2008-09-12 Thread Amy
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 Could we get it hosted somewhere outside of Yahoo? Or at least make 
it not
 hidden behind a login? I can't sign in to yahoo, and it asks too many 
stupid
 questions when you request a new username / password. How the hell 
can I
 remember what bogus information I put in when I signed up? My 
postcode or
 phone number or DOB is none of their business, and I signed up 
*years* ago.
 I can't be the only one in this situation ;-)

Here are the ones I contripbuted:
http://flexdiary.blogspot.com/2008/09/flex-faq-posted.html

HTH;

Amy



[flexcoders] Re: FAQ updated

2008-09-12 Thread Amy
--- In flexcoders@yahoogroups.com, Josh McDonald [EMAIL PROTECTED] wrote:

 Could we get it hosted somewhere outside of Yahoo? Or at least make 
it not
 hidden behind a login? I can't sign in to yahoo, and it asks too many 
stupid
 questions when you request a new username / password. How the hell 
can I
 remember what bogus information I put in when I signed up? My 
postcode or
 phone number or DOB is none of their business, and I signed up 
*years* ago.
 I can't be the only one in this situation ;-)

Here are the ones I contripbuted:
http://flexdiary.blogspot.com/2008/09/flex-faq-posted.html

HTH;

Amy



[flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread wnoone01
Didn't event think to look at Gumbo. Looks like the new skinning stuff
eliminates my dilemma. Thanks for the heads up.

In the meantime I will check out openflux.

Thanks
Bill


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

 Sure go nuts, DisplayObject exposes all visual children, you can
create any
 kind of decorator you want really, although it'll have to understand the
 internals of anything you want to decorate. Obviously the component and
 skinning model could have been better, that's why it's different in
Gumbo.
 Not much point complaining that it's not perfect, we know ;-)
 
 -Josh
 
 On Fri, Sep 12, 2008 at 1:02 PM, wnoone01 [EMAIL PROTECTED] wrote:
 
  Hey all,
 
  Thanks for the responses. I just want to clarify my question a little
  bit. I am not particularly interested in the actual solution to the
  example. Although, it is the actual problem that prompted me to ask
  the question in the first place. And:
 
  Alex: My solution will most likely group both multiline and html
in one
  Doug:  I haved looked into using CanvasButton for this (and may still
  use it)
 
  Its just that my issue here is more general.
 
  Let's say I go with CanvasButton as the solution. I still need to
  support CanvasButton functionality in RadioButton and CheckBox. That
  requires suclasses:
 
  CanvasRadioButton
  CanvasCheckBox
 
  Maybe this is the only way to go, but I was hoping there was a
  strategy that was more elegant.  For example, writing a CanvasRenderer
  class and then snapping on to button or subclasses as needed.
  Something very similar to item renderers.
 
  Or maybe something else (decorator pattern, composition)?
 
  ---
 
  Maybe I am just frustrated with the implementation of Button. It just
  seems the visual UI is too tightly coupled with the behavior.
 
 
 
  --- In flexcoders@yahoogroups.com, Doug McCune doug@ wrote:
  
   heh, that's almost the exact description of what I called the
   CanvasButton:
  
 
 
http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-added-to-flexlib/
  
   Doug
  
   On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald dznuts@ wrote:
  
  Yeah, I'd make one subclass of Button that lets you put
whatever you
please as the label, and have function set labelControl(cntrl:*)
  as the
[DefaultProperty]. If it finds a string, go with a UITextField, if
  it's a
DisplayObject, use it, if not throw an error. Then you have:
   
pkg:FreeFormButton click=doStuff width=150
  mx:textblah blah blah blah blah blah blah blah blah/mx:text
/pkg:FreeFormButton
   
-Josh
   
   
On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui aharui@ wrote:
   
 Make one subclass that handles both HTML and multiline?
   
   
   
*From:* flexcoders@yahoogroups.com
  [mailto:[EMAIL PROTECTED] *On
Behalf Of *wnoone01
*Sent:* Thursday, September 11, 2008 11:17 AM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Subclassing Components: Theoretical
Question
   
   
   
Hey all,
I've got a theoretical question about subclassing a component.
  Here is
the use case:
   
A programmer requires buttons that support multiline labels. This
  is a
requiement for Button, RadioButton, and CheckBox. Now to
start, the
programmer can subclass mx.controls.Button to implement the
functionality. But now he needs to implement the functionality in
RadioButton and CheckBox.
   
One way is to subclass RadioButton and CheckBox and then
  duplicate the
functionality there. However, not only will he be duplicating
functionality, he is headed down a slippery slope. Let's say
that for
his next project, he suddenly requires a button label that
supports
HTML formatting. Now he must subclass again. So now the
classes grow
from:
   
MultilineButton
MultilineRadioButton
MultilineCheckBox
   
To
   
MultilineButton
HTMLButton
MultilineRadioButton
HTMLRadioButton
MultilineCheckBox
HTMLCheckBox
   
The next project requires a multiline html button. So now its:
   
MultilineButton
HTMLButton
MultilineHTMLButton
MultilineRadioButton
HTMLRadioButton
MultilineHTMLRadioButton
MultilineCheckBox
HTMLCheckBox
MultilineHTMLCheckBox
   
And now its officially out of hand and the programmer is
mired in a
subclassing nightmare.
   
---
   
So basically my question is what is the best way to handle this
problem in Flex. Is subclassing the only way or is there a more
efficient solution (decorators, item renderers, etc.)?
   
Thanks in advance for any guidance
Bill
   
   
   
   
--
Therefore, send not to know For whom the bell tolls. It tolls for
  thee.
   
http://flex.joshmcdonald.info/
   
:: Josh 'G-Funk' McDonald
:: 0437 221 380 :: josh@
   
   
  
 
 
 
  
 
  --
  Flexcoders Mailing List
  FAQ: 

Re: [flexcoders] Compiile errors from html template

2008-09-12 Thread Guillaume Malartre
If you want more feed-back maybe posting the error would give the readers
more clues.

On Fri, Sep 12, 2008 at 9:21 AM, Tom McNeer [EMAIL PROTECTED] wrote:

   Guillame,


 Rigth+click on your project, Flex Compiler, remove generate HTML wrapper
 file
 and there you go, only a nice .swf no template!





 Thank you. That's certainly the most appropriate way to deal with it right
 now.

 But it would still be helpful to know why the compiler suddenly began
 generating these errors, if someone has insight.

 --
 Thanks,

 Tom

 Tom McNeer
 MediumCool
 http://www.mediumcool.com
 1735 Johnson Road NE
 Atlanta, GA 30306
 404.589.0560
  




-- 
Merci,
Guillaume

Guillaume Malartre
Programmeur-Analyste, Scolab
514-528-8066, 1-888-528-8066

Besoin d'aide en maths?
www.NetMaths.net


[flexcoders] Re: Code metrics

2008-09-12 Thread luislejter
--- In flexcoders@yahoogroups.com, twcrone70 [EMAIL PROTECTED] wrote:

 Does anyone know of a good tool for AS3 code metrics?  Measuring
 things like cyclomatic complexity.  Similar to tools used to check
 quality of Java code.
 
 Thanks,
 
 - Todd


Hello Todd,

Try the Enterprise IDE plugin for Flex Builder from IDE Factory. It 
supports AS3 code metrics including cyclomatic complexity among many 
other features. It is currently undergoing a public free beta, and 
we will be releasing a beta 2 this weekend that fixes several 
reported bugs and improves support for multiple source folder based 
projects.

http://www.idefactory.com

Luis Lejter
IDE Factory L.L.C.



[flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Tim Hoff
Heretofore known as the blahBlahBlahButton. :)

-TH

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

 heh, that's almost the exact description of what I called the
 CanvasButton:
 http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-
added-to-flexlib/
 
 Doug
 
 On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 
Yeah, I'd make one subclass of Button that lets you put 
whatever you
  please as the label, and have function set labelControl
(cntrl:*) as the
  [DefaultProperty]. If it finds a string, go with a UITextField, 
if it's a
  DisplayObject, use it, if not throw an error. Then you have:
 
  pkg:FreeFormButton click=doStuff width=150
mx:textblah blah blah blah blah blah blah blah blah/mx:text
  /pkg:FreeFormButton
 
  -Josh
 
 
  On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED] wrote:
 
   Make one subclass that handles both HTML and multiline?
 
 
 
  *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *wnoone01
  *Sent:* Thursday, September 11, 2008 11:17 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Subclassing Components: Theoretical 
Question
 
 
 
  Hey all,
  I've got a theoretical question about subclassing a component. 
Here is
  the use case:
 
  A programmer requires buttons that support multiline labels. 
This is a
  requiement for Button, RadioButton, and CheckBox. Now to start, 
the
  programmer can subclass mx.controls.Button to implement the
  functionality. But now he needs to implement the functionality in
  RadioButton and CheckBox.
 
  One way is to subclass RadioButton and CheckBox and then 
duplicate the
  functionality there. However, not only will he be duplicating
  functionality, he is headed down a slippery slope. Let's say 
that for
  his next project, he suddenly requires a button label that 
supports
  HTML formatting. Now he must subclass again. So now the classes 
grow
  from:
 
  MultilineButton
  MultilineRadioButton
  MultilineCheckBox
 
  To
 
  MultilineButton
  HTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
 
  The next project requires a multiline html button. So now its:
 
  MultilineButton
  HTMLButton
  MultilineHTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineHTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
  MultilineHTMLCheckBox
 
  And now its officially out of hand and the programmer is mired 
in a
  subclassing nightmare.
 
  ---
 
  So basically my question is what is the best way to handle this
  problem in Flex. Is subclassing the only way or is there a more
  efficient solution (decorators, item renderers, etc.)?
 
  Thanks in advance for any guidance
  Bill
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It tolls 
for thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
   
 





Re: [flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Michael Schmalle
My favorite quote;

There comes a point in the life cycle of any system when adding one more
patch
is the wrong solution to every problem. Eventually, it's time to rethink,
refactor,
and rewrite.

Mike

On Fri, Sep 12, 2008 at 11:09 AM, Tim Hoff [EMAIL PROTECTED] wrote:

   Heretofore known as the blahBlahBlahButton. :)

 -TH


 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Doug
 McCune [EMAIL PROTECTED] wrote:
 
  heh, that's almost the exact description of what I called the
  CanvasButton:
  http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-
 added-to-flexlib/
 
  Doug
 
  On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED] wrote:
 
   Yeah, I'd make one subclass of Button that lets you put
 whatever you
   please as the label, and have function set labelControl
 (cntrl:*) as the
   [DefaultProperty]. If it finds a string, go with a UITextField,
 if it's a
   DisplayObject, use it, if not throw an error. Then you have:
  
   pkg:FreeFormButton click=doStuff width=150
   mx:textblah blah blah blah blah blah blah blah blah/mx:text
   /pkg:FreeFormButton
  
   -Josh
  
  
   On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED] wrote:
  
   Make one subclass that handles both HTML and multiline?
  
  
  
   *From:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.com] *On
   Behalf Of *wnoone01
   *Sent:* Thursday, September 11, 2008 11:17 AM
   *To:* flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
   *Subject:* [flexcoders] Subclassing Components: Theoretical
 Question
  
  
  
   Hey all,
   I've got a theoretical question about subclassing a component.
 Here is
   the use case:
  
   A programmer requires buttons that support multiline labels.
 This is a
   requiement for Button, RadioButton, and CheckBox. Now to start,
 the
   programmer can subclass mx.controls.Button to implement the
   functionality. But now he needs to implement the functionality in
   RadioButton and CheckBox.
  
   One way is to subclass RadioButton and CheckBox and then
 duplicate the
   functionality there. However, not only will he be duplicating
   functionality, he is headed down a slippery slope. Let's say
 that for
   his next project, he suddenly requires a button label that
 supports
   HTML formatting. Now he must subclass again. So now the classes
 grow
   from:
  
   MultilineButton
   MultilineRadioButton
   MultilineCheckBox
  
   To
  
   MultilineButton
   HTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
  
   The next project requires a multiline html button. So now its:
  
   MultilineButton
   HTMLButton
   MultilineHTMLButton
   MultilineRadioButton
   HTMLRadioButton
   MultilineHTMLRadioButton
   MultilineCheckBox
   HTMLCheckBox
   MultilineHTMLCheckBox
  
   And now its officially out of hand and the programmer is mired
 in a
   subclassing nightmare.
  
   ---
  
   So basically my question is what is the best way to handle this
   problem in Flex. Is subclassing the only way or is there a more
   efficient solution (decorators, item renderers, etc.)?
  
   Thanks in advance for any guidance
   Bill
  
  
  
  
   --
   Therefore, send not to know For whom the bell tolls. It tolls
 for thee.
  
   http://flex.joshmcdonald.info/
  
   :: Josh 'G-Funk' McDonald
   :: 0437 221 380 :: [EMAIL PROTECTED]
  
  
 

  




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

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

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


[flexcoders] AdvancedDataGrid: Exclude last row from sorting

2008-09-12 Thread DanMurray

Hi,

I have an AdvancedDataGrid where the last row contains some summary
information about the data (number of rows, totals for some of the columns
above). I would like to exclude this last row from the sort operations i.e.
always show it last - is there any way to achieve this with custom sorting?

(Prev posted to flex-india group my mistake - apologies)

Thanks,

Dan.
-- 
View this message in context: 
http://www.nabble.com/AdvancedDataGrid%3A-Exclude-last-row-from-sorting-tp19458035p19458035.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] Re: Regular TextField styling.

2008-09-12 Thread giannif17
Here's an isolated case where it's pretty clear:
http://www.therichardsonnyc.com/images/ss.png

I doubt there's a solution to this, that's why I initially asked a 
different question. 

I'm going to just use TextField instead of the flex components.


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

 You can see it on both the timecodes on the bottom scrubber in this
 screen shot of a video player.
 http://therichardsonnyc.com/images/screenshot.jpg
 
 I'll look at on other PCs when I get back in my office tomorrow. 
 
 When I use TextField, it goes away. 
 
 Thanks
 
 --- In flexcoders@yahoogroups.com, Josh McDonald dznuts@ wrote:
 
  I definitely can't seen anything, but I'm also on a Mac. Sorry if
 this is a
  dumb question, but have you taken a screenshot on windows and 
checked it
  thoroughly with Photoshop to make sure it's really there? It may 
be an
  optical illusion. Do you see it on several different windows
 machines? What
  about across browsers on the one machine?
  
  -Josh
  
  On Fri, Sep 12, 2008 at 9:06 AM, giannif17 gianni.ferullo@ 
wrote:
  
   Yes, a plain UITextField has the same white box.
   Here's a link:
   http://therichardsonnyc.com/images/TestFlex.swf
  
   I can't even see it on my mac.
  
   If I used getStyle(), I'd have to do that for every property I 
wanted
   to set on the TextFormat object.
   textFormat.bold = css.getStyle(fontWeight);
   etc.
  
   Thanks for your help, Alex.
  
   --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
   
Does a plain UITextFIeld also have the white box?  Can you 
post a
   simple test case?
   
Instead of reading the factory, why not just call getStyle() 
on  the
cssstyledecl.  We have equivalent code in UITextField
   
From: flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED]
   On Behalf Of giannif17
Sent: Thursday, September 11, 2008 3:25 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Regular TextField styling.
   
   
There is a subtle translucent white box surrounding my Label
component. You can hardly see it, but it's there. It's pretty 
much
invisible on my mac, but on my pc you can see it more clearly. 
Our
designers are quite picky about it. A good comparison is a
 canvas with
backgroundColor white, and backgroundAlpha .01.
   
I don't see a ready event for the factory on
 CSSStyleDeclaration, all
the properties I need are actually in a protected var called
overrides, because when the stylesheet loads, setStyle is 
called.
There won't ever be a factory. If I could just get at that 
overrides
property...
   
Any help is appreciated.
   
--- In
  
 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com,
   Alex
   Harui aharui@ wrote:

 UITextField is just a subclass of TextField. What doesn't it 
do
correctly? I'm not sure what you mean by transparent box.

 If factory is null, you should run that code when the 
factory is
ready. There should be an event for that.

 From:
  
 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com
   
  
 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
flexcoders%2540yahoogroups.com
   ]
On Behalf Of giannif17
 Sent: Thursday, September 11, 2008 2:10 PM
 To:
 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com
   
 Subject: [flexcoders] Regular TextField styling.


 The UITextFields that are used in Flex Text components have 
some
 rendering issues that the basic ActionScript TextFields 
don't
 have.

 I want to use TextField, and set its style based on a style 
that's
 available in the StyleManager, but can't make the 
connection.

 This is what I did, it works in my test app, but not in my
 production
 app, because the factory is null (I'm loading the CSS swf at
 runtime).

 Is there another way to achieve this:
 var css:CSSStyleDeclaration =
 StyleManager.getStyleDeclaration(.myTextField);
 var f:Function = css.factory;
 var styleObj:Object = new f();
 var s:StyleSheet = new StyleSheet();
 var fmt:TextFormat = s.transform(styleObj);
 var tf:TextField = new TextField();
 tf.defaultTextFormat = fmt;

 I'm hoping there's a simple way to do this that I'm just
 overlooking.

 Oh, and the UITextFields have a slight transparent box 
around them
 when using embedded fonts. If anyone knows how to fix that, 
I'd
 definitely prefer that solution.

   
  
  
  
   
  
   --
   Flexcoders Mailing List
   FAQ: 
http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
   Search Archives:
   http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups
   Links
  
  
  
  
  
  
  -- 
  Therefore, send not to know For whom the bell tolls. 

Re: [flexcoders] LCDS + CF : How can I change bean's property of new version on creation?

2008-09-12 Thread João Fernandes
Shigeru,

when you create new items , a refill is made to your collection and it 
will compare it with the previous fill, so since you didn't update the 
hoge property, it won't be reflected in your refill.

If you do this instead

cfset new.hoge = 123
cfset new = dao.create(new)
cfset co.setNewVersion(new)
cfset co.processed()

your hoge will be committed to the db and will be reflected in the 
result of the fill.
-- 

João Fernandes

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





Re: [flexcoders] LCDS : changeObject.addChangedPropertyName works correctly??

2008-09-12 Thread João Fernandes
Shigeru,

are you sure there isn't any fault or conflict every two times? Are you 
sucessfully commiting that value to the db?
I've been using addChangedPropertyName for a long time without an issue, 
both 2.5.1 and 2.6.

-- 

João Fernandes

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





Re: [flexcoders] Compiile errors from html template

2008-09-12 Thread Tom McNeer
Guilluame,

On Fri, Sep 12, 2008 at 10:40 AM, Guillaume Malartre [EMAIL PROTECTED]wrote:

   If you want more feed-back maybe posting the error would give the
 readers more clues.





I'm sorry. I thought it was clear from my original post, but I'll give a
specific example:

One error complains of the lack of a type attribute in an HTML script tag.
The tag in question is simply one of the standard Javascript tags Adobe
places in the wrapper, and according to XHTML specs, the tag should have a
type='javascript' attribute.

For the information of anyone who may run into the same problem -- I still
do not know the cause, and would welcome any insight. However, if you follow
Guilluame's advice and uncheck the Generate HTML wrapper file option in
the project's properties, the HTML template directory will be deleted. You
can then go back to Properties, check the box, and the wrapper will be
generated, but without the errors.


-- 
Thanks,

Tom

Tom McNeer
MediumCool
http://www.mediumcool.com
1735 Johnson Road NE
Atlanta, GA 30306
404.589.0560


[flexcoders] Adding effects to a list on filtering

2008-09-12 Thread Manu Dhanda

Hii,

How can we add effects while we apply the filterfunction to a list.

First, Is that possible to add effects/transitions ??

Second, how can we achieve this?

Regards,
Manu.
-- 
View this message in context: 
http://www.nabble.com/Adding-effects-to-a-list-on-filtering-tp19459536p19459536.html
Sent from the FlexCoders mailing list archive at Nabble.com.



Re: [flexcoders] FAQ updated

2008-09-12 Thread Matt Chotin
Yeah, I'll try to get it shared on acrobat.com.  Stay tuned.


On 9/12/08 3:34 AM, Tom Chiverton [EMAIL PROTECTED] wrote:

On Friday 12 Sep 2008, Matt Chotin wrote:
 I can't seem to make it a public file.  I don't really have a good place to
 host it that I have access to.

Acrobat.com ?

--
Tom Chiverton
Helping to biannually participate second-generation portals



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.comYahoo! 
Groups Links






[flexcoders] RadioButton Set selectedValue

2008-09-12 Thread Doug
I have a form Item which contains RadioButtonGroup and a Repeater 
which dynamically loads up RadioButtons from model data, it is inside 
a VBox container:

mx:FormItem direction=horizontal
mx:Label text=Status:/
mx:RadioButtonGroup id=statusType 
selectedValue={model.selectedValuation.valuationAdmin.valuation_statu
s}/
mx:Repeater id=valStatus 
dataProvider={listModel.allValuationStatuses}
mx:RadioButton id=vs group={statusType} 
label={valStatus.currentItem.title}/
/mx:Repeater
/mx:FormItem

On creationComplete() I call init() which in turn calls 
loadUserInfo(). Here I call selectedValStatus and pass on selected 
data from model:

private function loadUserInfo():void{
if(model.selectedValuation.valuation_administration != null){
selectedValStatus(model.selectedValuation.valuation_administration.val
uation_status);
}
}

selectedValStatus() takes the data object passed to it, loops over the 
model list data and then checks to see if the model list data is 
equivalent to the data.title property, where i then set the selected 
value of the radio group:

private function selectedValStatus(data:Object):void{
if(listModel.allValuationStatuses != null){
for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){
var item:ArrayCollection = listModel.allValuationStatuses;
if(data != null){
if(item.title == data.title){
statusType.selectedValue = data.title;
}
}
}
}
}

The Behavior:
Data is present on creation complete.
I have another radio group using the same code architecture that works 
perfectly, is in same form.
On the form load the radio button is not selected.
On a view index change and then return the button is selected 
properly.
Thanks! 



Re: [flexcoders] passing parameters flex to .net window application

2008-09-12 Thread Steve Mathews
If the Flex is hosted inside of the .net app you can use ExternalInterface.If
the Flex is running separately from the app I would recommend a Socket
connection.


On Fri, Sep 12, 2008 at 12:01 AM, aravinda88 [EMAIL PROTECTED] wrote:

 Hi,
   how can i passing parameters flex to .net application?




 

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






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

2008-09-12 Thread Sebastian Mohr
@miltoon71: Thank you for your hint!

I was trying to delete the text inside a
TextArea-component after hitting
Keyboard.ENTER.

Here is the solution:

var ta_report:TextArea = new TextArea();
var tr_report:TextRange = new TextRange(ta_report, true, 0,
ta_report.length);
tr_report.text = '';

... ugly bug,
masu


On Mon, Jun 9, 2008 at 5:50 PM, miltoon71 [EMAIL PROTECTED] wrote:

   --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com,
 miltoon71 [EMAIL PROTECTED] wrote:
 
  Hi
  Trying to insert some characters on every new row when the user hits
 enter...
  The following does not work:
 
  // Define a textarea:
  mx:TextArea id=myTextArea
 
  // Add a keystroke listener
  myTextArea.addEventListener(KeyboardEvent.KEY_DOWN,keyHandler);
 
  // Handle keystrokes
  private function keyHandler(event:KeyboardEvent):void{
  if(event.keyCode == Keyboard.ENTER){
  this.myTextArea.text += added text;
  }
  }
 
 
  However, if you add a random alert message in the middle, it suddenly
 works:
 
  private function keyHandler(event:KeyboardEvent):void{
  Alert.show(Dummy message);
  if(event.keyCode == Keyboard.ENTER){
  this.myTextArea.text += added text;
  }
  }
 
 
  Isn't this strange?
 

 Issue fixed by using TextRange class instead...

  



[flexcoders] Tile with custom component and AmfPhp

2008-09-12 Thread quantum_ohm
Hello EveryBody !

I have a custom component (News) which is called after retrieving
datas from a db with amfphp.
Datas are ok and put in an ArrayCollection (getNewsArray).
But when I make an AddChild(news) to a Tile component within a loop,
only the first two results
show up ???
I have to click again on the firing button to get the third result,
and click again to get the fourth !

Thx for any idea !

Code snippet below :

News Component :

mx:Canvas xmlns:mx=http://www.adobe.com/2006/mxml; width=480 
height=230 creationComplete=initNews() creationPolicy=all 
mx:Label id=lbl_titre_news x=10 y=10 fontWeight=bold/ 
mx:TextArea id=txta_news x=10 y=36 height=160 width=295 
wordWrap=true/ 
mx:Label id=lbl_aut_news x=10 y=203 fontStyle=italic/ 
mx:Image id=img_news x=313 y=36 width=157 height=118/ 
/mx:Canvas


Action Script :

private function afficheNews():void 
{ 
for ( var i:int=0; i  getNewsArray.length; i++ ) 
{ 
news = new News(); 
//I call the addChild here because otherwise the children of my News
component
are not yet created... I guess the problem is here, but don't know how
to solve it :-( 
ti_news.addChild( news ); 
news.lbl_titre_news.text = getNewsArray[i].titre_news; 
news.txta_news.text = getNewsArray[i].txt_news; 
news.lbl_aut_news.text = getNewsArray[i].aut_news; 
if ( getNewsArray[i].src_img != null ) 
{ 
news.img_news.source = getNewsArray[i].src_img; 
} 
else 
{ 
news.img_news.visible = false; 
news.txta_news.width = 460; 
} 
} 
}

Main Application :

mx:Tile id=ti_news direction=vertical y=35  
/mx:Tile 
... 
mx:LinkButton label=Admin click=afficheNews()/ 





[flexcoders] Problem: liveScrolling doesn't work!

2008-09-12 Thread flo26py
Hey everyone,

I have a weird problem: I am using a TileList and I want to disable 
liveScrolling so I set it to false. Unfortunately this didn't work 
moreover live scrolling is still working even when I have the mouse 
positioned very far from my TileList. I just want to mention that I 
have set horizontalScrollPolicy=off verticalScrollPolicy=off and I 
am programmatically scrolling to a certain position 
verticalScrollPosition={pos} (of course by setting pos).
Any idea of what is happening? Thank you in advance!

Florina




[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Tim Hoff
Might just be a timing issue Doug.  Have you tried callLater()?  
Otherwise, maybe set 
model.selectedValuation.valuationAdmin.valuation_status to the 
correct value, instead of setting the selectedValue directly; since 
it's bound.

-TH

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

 I have a form Item which contains RadioButtonGroup and a Repeater 
 which dynamically loads up RadioButtons from model data, it is 
inside 
 a VBox container:
 
 mx:FormItem direction=horizontal
 mx:Label text=Status:/
 mx:RadioButtonGroup id=statusType 
 
selectedValue={model.selectedValuation.valuationAdmin.valuation_statu
 s}/
 mx:Repeater id=valStatus 
 dataProvider={listModel.allValuationStatuses}
 mx:RadioButton id=vs group={statusType} 
 label={valStatus.currentItem.title}/
 /mx:Repeater
 /mx:FormItem
 
 On creationComplete() I call init() which in turn calls 
 loadUserInfo(). Here I call selectedValStatus and pass on selected 
 data from model:
 
 private function loadUserInfo():void{
 if(model.selectedValuation.valuation_administration != null){
 selectedValStatus
(model.selectedValuation.valuation_administration.val
 uation_status);
 }
 }
 
 selectedValStatus() takes the data object passed to it, loops over 
the 
 model list data and then checks to see if the model list data is 
 equivalent to the data.title property, where i then set the 
selected 
 value of the radio group:
 
 private function selectedValStatus(data:Object):void{
 if(listModel.allValuationStatuses != null){
 for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){
 var item:ArrayCollection = listModel.allValuationStatuses;
 if(data != null){
 if(item.title == data.title){
 statusType.selectedValue = data.title;
 }
 }
 }
 }
 }
 
 The Behavior:
 Data is present on creation complete.
 I have another radio group using the same code architecture that 
works 
 perfectly, is in same form.
 On the form load the radio button is not selected.
 On a view index change and then return the button is selected 
 properly.
 Thanks!





RE: [flexcoders] How To Access Child From Parent?

2008-09-12 Thread Gordon Smith
If you need to access it, the best way is to keep a reference to it, such as in 
an instance variable. If you really need to get the parent to give it to you, 
you can use control.getChildAt(i).

Gordon Smith
Adobe Flex SDK TEam

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Mark 
Easton
Sent: Thursday, September 11, 2008 6:57 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] How To Access Child From Parent?


Hi,

I am having a mental blank moment. If I add a child to a control. How can I 
access the child from the control?

i.e.
button = new Button();
control.addChild(button);

So via control how can I now access that button?

Cheers
Mark





RE: [flexcoders] Re: Regular TextField styling.

2008-09-12 Thread Gordon Smith
Could you please post the code that produced the display in ss.png? Since 
UITextField is just a sublcass of TextField, I'd like to understand why it is 
producing the background box.

Gordon Smith
Adobe Flex SDK Team

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
giannif17
Sent: Friday, September 12, 2008 8:59 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Regular TextField styling.


Here's an isolated case where it's pretty clear:
http://www.therichardsonnyc.com/images/ss.png

I doubt there's a solution to this, that's why I initially asked a
different question.

I'm going to just use TextField instead of the flex components.

--- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
giannif17 [EMAIL PROTECTED]
wrote:

 You can see it on both the timecodes on the bottom scrubber in this
 screen shot of a video player.
 http://therichardsonnyc.com/images/screenshot.jpg

 I'll look at on other PCs when I get back in my office tomorrow.

 When I use TextField, it goes away.

 Thanks

 --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Josh 
 McDonald dznuts@ wrote:
 
  I definitely can't seen anything, but I'm also on a Mac. Sorry if
 this is a
  dumb question, but have you taken a screenshot on windows and
checked it
  thoroughly with Photoshop to make sure it's really there? It may
be an
  optical illusion. Do you see it on several different windows
 machines? What
  about across browsers on the one machine?
 
  -Josh
 
  On Fri, Sep 12, 2008 at 9:06 AM, giannif17 gianni.ferullo@
wrote:
 
   Yes, a plain UITextField has the same white box.
   Here's a link:
   http://therichardsonnyc.com/images/TestFlex.swf
  
   I can't even see it on my mac.
  
   If I used getStyle(), I'd have to do that for every property I
wanted
   to set on the TextFormat object.
   textFormat.bold = css.getStyle(fontWeight);
   etc.
  
   Thanks for your help, Alex.
  
   --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
   Alex Harui aharui@ wrote:
   
Does a plain UITextFIeld also have the white box? Can you
post a
   simple test case?
   
Instead of reading the factory, why not just call getStyle()
on the
   cssstyledecl. We have equivalent code in UITextField
   
From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
   On Behalf Of giannif17
Sent: Thursday, September 11, 2008 3:25 PM
To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
Subject: [flexcoders] Re: Regular TextField styling.
   
   
There is a subtle translucent white box surrounding my Label
component. You can hardly see it, but it's there. It's pretty
much
invisible on my mac, but on my pc you can see it more clearly.
Our
designers are quite picky about it. A good comparison is a
 canvas with
backgroundColor white, and backgroundAlpha .01.
   
I don't see a ready event for the factory on
 CSSStyleDeclaration, all
the properties I need are actually in a protected var called
overrides, because when the stylesheet loads, setStyle is
called.
There won't ever be a factory. If I could just get at that
overrides
property...
   
Any help is appreciated.
   
--- In
  

flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com,
   Alex
   Harui aharui@ wrote:

 UITextField is just a subclass of TextField. What doesn't it
do
correctly? I'm not sure what you mean by transparent box.

 If factory is null, you should run that code when the
factory is
ready. There should be an event for that.

 From:
  

flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com
   
  

[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
flexcoders%2540yahoogroups.com
   ]
On Behalf Of giannif17
 Sent: Thursday, September 11, 2008 2:10 PM
 To:

flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.comflexcod
ers%2540yahoogroups.com
   
 Subject: [flexcoders] Regular TextField styling.


 The UITextFields that are used in Flex Text components have
some
 rendering issues that the basic ActionScript TextFields
don't
 have.

 I want to use TextField, and set its style based on a style
that's
 available in the StyleManager, but can't make the
connection.

 This is what I did, it works in my test app, but not in my
 production
 app, because the factory is null (I'm loading the CSS swf at
 runtime).

 Is there another way to achieve this:
 var css:CSSStyleDeclaration =
 StyleManager.getStyleDeclaration(.myTextField);
 var f:Function = css.factory;
 var styleObj:Object = new f();
 var s:StyleSheet = 

[flexcoders] TextArea StyleSheet Anchor Hover Question

2008-09-12 Thread wwwpl
I am trying to set the CSS a.hover style, but I don't know how to do 
it with objects.  I tried it as seen below, but it doesn't work.  I 
want the link to have an underline when I hover over the link in the 
htmlText.  If there is another way, I am open to ideas.

var a:Object = new Object();
a.hover = new Object();
a.hover.textDecoration = underline;
a.color = #FF;
var ss:StyleSheet = new StyleSheet();
ss.setStyle(a, a);
var hypertext:TextArea = new TextArea();
hypertext.styleSheet = ss;
htmlText = a href='event:http://www.adobe.com' + collection.title 
+ /a;





[flexcoders] Repeater children

2008-09-12 Thread Maciek Sakrejda
I'm trying to use a repeater to configure n different bars in a foo

(e.g., in pseudo-code

foo
  bars:Array = [ { bar1, bar2, bar3 ];
  ...

where each bar is something like

bar
  label:String
  baz:String
  ...

)

each of the bars has a baz that can be one of five different Strings. My
current approach is to use a repeater:

mx:Script
![CDATA[
protected function handleBarBoxInit(e:Event):void {
var barBox:ComboBox = e.currentTarget as ComboBox;
var bazArray:Array = getValidBazes(barRptr.currentItem);
barBox.dataProvider = bazArray;
barBox.selectedIndex = bazArray.indexOf(barRptr.currentItem.baz);
}
]]
/mx:Script

mx:Repeater id=barRptr dataProvider={dataProvider.bars}
mx:FormItem label={'Change baz of bar \'' + barRptr.currentItem.label
+ '\' to '}
mx:ComboBox initialize=handleBarBoxInit(event)/
/mx:FormItem
/mx:Repeater
...

This works very nicely for displaying the correct controls with the
current baz of each bar, but I'm not sure how to come up with a clean
way to harvest the settings of each combobox when updating the set. I
don't want to directly listen to each ComboBox CHANGE event because I
want to have update/cancel functionality for the entire group. Is there
a way of doing this cleaner than iterating over the children of barRptr
(presumably FormItems) and doing getChildAt(0) to get the ComboBoxes?

Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com




Re: [flexcoders] Repeater children

2008-09-12 Thread Maciek Sakrejda
Of course, the searching pays off right *after* I post. If anyone else
is curious:

http://blog.flexexamples.com/2008/05/29/displaying-checkbox-controls-using-the-repeater-in-flex/#more-650

It's kinda sneaky: you set the id of the repeated element as you usually
would, but instead of creating an element with that id, you get an array
of elements with that id, indexed by the order in which the Repeater
repeated them.
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com

-Original Message-
From: Maciek Sakrejda [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders flexcoders@yahoogroups.com
Subject: [flexcoders] Repeater children
Date: Fri, 12 Sep 2008 11:21:37 -0700

I'm trying to use a repeater to configure n different bars in a foo

(e.g., in pseudo-code

foo
bars:Array = [ { bar1, bar2, bar3 ];
...

where each bar is something like

bar
label:String
baz:String
...

)

each of the bars has a baz that can be one of five different Strings. My
current approach is to use a repeater:

mx:Script
![CDATA[
protected function handleBarBoxInit(e:Event):void {
var barBox:ComboBox = e.currentTarget as ComboBox;
var bazArray:Array = getValidBazes(barRptr.currentItem);
barBox.dataProvider = bazArray;
barBox.selectedIndex = bazArray.indexOf(barRptr.currentItem.baz);
}
]]
/mx:Script

mx:Repeater id=barRptr dataProvider={dataProvider.bars}
mx:FormItem label={'Change baz of bar \'' + barRptr.currentItem.label
+ '\' to '}
mx:ComboBox initialize=handleBarBoxInit(event)/
/mx:FormItem
/mx:Repeater
...

This works very nicely for displaying the correct controls with the
current baz of each bar, but I'm not sure how to come up with a clean
way to harvest the settings of each combobox when updating the set. I
don't want to directly listen to each ComboBox CHANGE event because I
want to have update/cancel functionality for the entire group. Is there
a way of doing this cleaner than iterating over the children of barRptr
(presumably FormItems) and doing getChildAt(0) to get the ComboBoxes?

Thanks,
-- 
Maciek Sakrejda
Truviso, Inc.
http://www.truviso.com




 




RE: [flexcoders] passing parameters flex to .net window application

2008-09-12 Thread Tracy Spratt
We need more information to respond appropriately.  .net application
and pass parameters are too general terms for me to work with.

Tracy

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Steve Mathews
Sent: Friday, September 12, 2008 1:11 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] passing parameters flex to .net window
application

 

If the Flex is hosted inside of the .net app you can use
ExternalInterface.

If the Flex is running separately from the app I would recommend a
Socket connection.

 

On Fri, Sep 12, 2008 at 12:01 AM, aravinda88 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

Hi,
  how can i passing parameters flex to .net application?






--
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.comYahoo
http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo ! Groups
Links


   (Yahoo! ID required)

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



 

 



[flexcoders] Re: Checkbox in Datagrid . . . how?

2008-09-12 Thread valdhor
This is a quick and dirty way to do it. If I had more time I would have
decoupled the renderer from the application with a custom event but this
does work...

?xml version=1.0 encoding=utf-8?
mx:Application pageTitle=Testing
xmlns:mx=http://www.adobe.com/2006/mxml;
  width=100% height=100% backgroundSize=100% layout=vertical
horizontalAlign=left
  xmlns:custom=customcomponents.* backgroundColor=#BB
creationComplete=onCreationComplete(event)
 mx:Script
 ![CDATA[
 import mx.collections.ArrayCollection;
 import mx.rpc.events.FaultEvent;
 import mx.rpc.events.ResultEvent;
 import mx.rpc.remoting.RemoteObject;
 import mx.utils.ArrayUtil;
 import mx.events.FlexEvent;
 import mx.controls.Alert;

 [Bindable] private var itemsArrayCollection:ArrayCollection;
 private var myService:RemoteObject;
 private var itemsToDelete:Array = new Array();

 public function onCreationComplete(event:FlexEvent):void
 {
 myService = new RemoteObject(myDestination);
 myService.requestTimeout = 30;
 myService.addEventListener(FaultEvent.FAULT,
faultHandler);

myService.getFormFields.addEventListener(ResultEvent.RESULT,
getItemsResultHandler);

 myService.getFormFields(27);
 }

 private function
getItemsResultHandler(event:ResultEvent):void
 {
 itemsArrayCollection = new
ArrayCollection(ArrayUtil.toArray(event.result));
 itemsDataGrid.rowCount = (event.result as Array).length;
 }

 private function faultHandler(fault:FaultEvent):void
 {
 switch(fault.fault.faultCode.toString())
 {
 case Client.Error.RequestTimeout:
  Alert.show(The server is not responding.
Please check that you are connected and the server is running., Server
Timeout);
break;
 default:
 Alert.show(fault.fault.faultString,
fault.fault.faultCode.toString());
 break;
 }
 }

 public function addItemToDelete(itemToDelete:String):void
 {
 itemsToDelete.push(itemToDelete)
 }

 public function removeItemToDelete(itemToRemove:String):void
 {
 for(var i:int ; i  itemsToDelete.length ; i++)
 {
 if(itemsToDelete[i] == itemToRemove)
 {
 itemsToDelete.splice(i, 1);
 }
 }
 }

 public function showItemsToDelete():void
 {
 var alertText:String = ;
 for(var i:int ; i  itemsToDelete.length ; i++)
 {
 alertText += itemsToDelete[i] + , ;
 }
 Alert.show(alertText);
 }
 ]]
 /mx:Script

 mx:DataGrid dataProvider={itemsArrayCollection}
id=itemsDataGrid
 mx:columns
 mx:DataGridColumn id=fieldNameColumn headerText=Name
dataField=FieldName width=150 sortable=false textAlign=left/
 mx:DataGridColumn id=fieldLabelColumn headerText=Label
dataField=FieldLabel width=350 sortable=false textAlign=left/
 mx:DataGridColumn id=fieldTypeColumn headerText=Type
dataField=FieldType width=80 sortable=false textAlign=left/
 mx:DataGridColumn id=requiredColumn headerText=Required
dataField=Required width=60 sortable=false textAlign=center/
 mx:DataGridColumn id=fieldOrderColumn headerText=Order
dataField=FieldOrder width=50 sortable=false textAlign=center/
 mx:DataGridColumn id=fieldDeleteColumn
headerText=Remove dataField=FieldID width=60 sortable=false
textAlign=center itemRenderer=renderers.RemoveItemCheckBox/
 /mx:columns
 /mx:DataGrid
 mx:Button id=showItems label=Show Items To Delete
click=showItemsToDelete() /
/mx:Application


renderers.RemoveItemCheckBox
?xml version=1.0 encoding=utf-8?
mx:CheckBox xmlns:mx=http://www.adobe.com/2006/mxml;
click=onClick(event)
 mx:Script
 ![CDATA[
 import mx.events.ListEvent;
 import mx.controls.dataGridClasses.DataGridListData;
 import mx.controls.Alert;
 import mx.core.Application;

 private var itemID:String;

 override public function set data(value:Object):void
 {
 super.data = value;
 itemID = value[DataGridListData(listData).dataField];
 }

 private function onClick(event:MouseEvent):void
 {
 if(this.selected)
 {
 Application.application.addItemToDelete(itemID);
 

RE: [flexcoders] Note to someone at Adobe who is in charge of documentation

2008-09-12 Thread Chet Haase
Jason,

I know this wasn't really your point, which was about having better docs and 
not the TweenEffect API specifically, but for what it's worth: the new effects 
for the next release of Flex, along with the Animation class (which is used 
instead of Tween), avoid the use of Function handles for easing and update/end 
handlers. Instead, we use interfaces for easing (and for type interpolation, a 
new concept in the effects). And events are sent through event handlers. 
Hopefully this all makes it more explicit what's happening to whom and what 
developers need to know about it...

Chet.


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Pan 
Troglodytes
Sent: Thursday, September 11, 2008 9:32 AM
To: flexcoders
Subject: [flexcoders] Note to someone at Adobe who is in charge of documentation

Hopefully, someone who reads this can maybe forward it or mention it to someone 
who is in the documentation department.

My biggest problem with the documentation is when it comes to function 
signatures.  Unfortunately in ActionScript, function signatures are not 
typeable.  If I was using Delphi, I could define

TMyEventCallback = function (param1: String, param2: Integer):Boolean;

So properties always just take a Function and it's up to the developer to 
figure out what the function should look like.  Okay, I can deal with that, 
given proper documentation.  But so many times in the docs, no function 
signature is listed.  I understand that it's hard to create docs while the SDK 
is still under development, however there are plenty of examples of it in code 
that shipped with 2.0.

For example, from TweenEffect:
easingFunction

property

public var easingFunction:Function../../Function.html = null

The easing function for the animation. The easing function is used to 
interpolate between the initial value and the final value. A trivial easing 
function would simply do linear interpolation, but more sophisticated easing 
functions create the illusion of acceleration and deceleration, which makes the 
animation seem more natural.

If no easing function is specified, an easing function based on the Math.sin() 
method is used.

The easing function follows the function signature popularized by Robert 
Penner. The function accepts four arguments. The first argument is the current 
time, where the animation start time is 0. The second argument is the initial 
value at the beginning of the animation (a Number). The third argument is the 
ending value minus the initial value. The fourth argument is the duration of 
the animation. The return value is the interpolated value for the current time. 
This is usually a value between the initial value and the ending value.

The value of this property must be a function object.

Flex includes a set of easing functions in the mx.effects.easing package.

This documentation is strange in that a paragraph is dedicated to describing 
the function signature, when just putting a

  function (currentTime:Number, startValue:Number, 
endValueMinusStartValue:Number, duration:Number):Number

alone would have been far more useful than the whole paragraph.  I'm not saying 
to ditch the paragraph, but a code examples is almost always preferable.  
Especially since that paragraph forgot to specify that the last two params and 
teh return param should be a Number.  This was inferable from context in this 
case, but it is not always.  These omissions tend to send me on a code hunt, 
looking for some place in the SDK where the function is called.  For 
easingFunction, this was quite a bit of digging until I finally found 
defaultEasingFunction in Tween.as.


I could put this in as a bug/enhancement, but it just seems like that falls 
short.  I'd really just like to see more of a focus on doing it properly the 
first time and possibly doing a review of all documentation that mentions a 
property or method that involves a type Function.

--
Jason



[flexcoders] Linking the Event detail page of Sharepoint to Flex

2008-09-12 Thread penidocl
Hi,

My Flex apps has a calendar accordion and i need to figure out how to 
get the link to display the event detail page for each day of the week.

Have y done this before?  I think there is a method...I am researching.

Please let me know if you have any ideas,

Cheers,
Claudia 



RE: [flexcoders] TextArea StyleSheet Anchor Hover Question

2008-09-12 Thread Alex Harui
I think it is:

var a:Object = new Object();
a.textDecoration = underline;
a.color = #FF;
var ss:StyleSheet = new StyleSheet();
ss.setStyle(a:hover, a);


From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of wwwpl
Sent: Friday, September 12, 2008 11:05 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] TextArea StyleSheet Anchor Hover Question


I am trying to set the CSS a.hover style, but I don't know how to do
it with objects. I tried it as seen below, but it doesn't work. I
want the link to have an underline when I hover over the link in the
htmlText. If there is another way, I am open to ideas.

var a:Object = new Object();
a.hover = new Object();
a.hover.textDecoration = underline;
a.color = #FF;
var ss:StyleSheet = new StyleSheet();
ss.setStyle(a, a);
var hypertext:TextArea = new TextArea();
hypertext.styleSheet = ss;
htmlText = a href='event:http://www.adobe.com' + collection.title
+ /a;



[flexcoders] Re: Regular TextField styling.

2008-09-12 Thread giannif17
Great! I'd like to understand too. I dug through UITextField and 
didn't see anything suspicious. 

Here's the code, please note that it only happens with embedded fonts, 
you can swap out the Standard0757 with Arial or something.

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
backgroundColor=0x33
styleName=plain
creationComplete=test();
layout=vertical

mx:Style
@font-face {
src: url(../assets/fonts/stan0757.ttf);
fontFamily: Standard0757;
unicode-range:
U+0020-U+007E, /* englishRange */
U+00A1-U+00FF,U+2000-U+206F,U+20A0-U+20CF,U+2100-
U+2183, /* Latin I */
U+0100-U+01FF, /* Latin Extended A */
U+1E00-U+1EFF; /* Latin Extended Add'l */
}
.myStyle {
font-family:Standard0757;
color:#FF;
font-size:8;
}
/mx:Style
mx:Script
![CDATA[
import mx.core.UIComponent;
public function test():void {
var t:TextField = new TextField();
t.embedFonts = true;
t.text = Regular Textfield;
t.setTextFormat(new 
TextFormat(Standard0757,8,0xFF))
t.selectable=false;
var u:UIComponent  = new UIComponent();
u.addChild(t);
u.x = 150;
container.addChild(u);
}
]]
/mx:Script
mx:Label text=Label with UITextField styleName=myStyle 
paddingTop=150 paddingLeft=150/
mx:Canvas width=100% height=100% id=container/
/mx:Application
--- In flexcoders@yahoogroups.com, Gordon Smith [EMAIL PROTECTED] wrote:

 Could you please post the code that produced the display in ss.png? 
Since UITextField is just a sublcass of TextField, I'd like to 
understand why it is producing the background box.
 
 Gordon Smith
 Adobe Flex SDK Team
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On Behalf Of giannif17
 Sent: Friday, September 12, 2008 8:59 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: Regular TextField styling.
 
 
 Here's an isolated case where it's pretty clear:
 http://www.therichardsonnyc.com/images/ss.png
 
 I doubt there's a solution to this, that's why I initially asked a
 different question.
 
 I'm going to just use TextField instead of the flex components.
 
 --- In 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, 
giannif17 gianni.ferullo@
 wrote:
 
  You can see it on both the timecodes on the bottom scrubber in 
this
  screen shot of a video player.
  http://therichardsonnyc.com/images/screenshot.jpg
 
  I'll look at on other PCs when I get back in my office tomorrow.
 
  When I use TextField, it goes away.
 
  Thanks
 
  --- In 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Josh 
McDonald dznuts@ wrote:
  
   I definitely can't seen anything, but I'm also on a Mac. Sorry 
if
  this is a
   dumb question, but have you taken a screenshot on windows and
 checked it
   thoroughly with Photoshop to make sure it's really there? It may
 be an
   optical illusion. Do you see it on several different windows
  machines? What
   about across browsers on the one machine?
  
   -Josh
  
   On Fri, Sep 12, 2008 at 9:06 AM, giannif17 gianni.ferullo@
 wrote:
  
Yes, a plain UITextField has the same white box.
Here's a link:
http://therichardsonnyc.com/images/TestFlex.swf
   
I can't even see it on my mac.
   
If I used getStyle(), I'd have to do that for every property I
 wanted
to set on the TextFormat object.
textFormat.bold = css.getStyle(fontWeight);
etc.
   
Thanks for your help, Alex.
   
--- In 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex 
Harui aharui@ wrote:

 Does a plain UITextFIeld also have the white box? Can you
 post a
simple test case?

 Instead of reading the factory, why not just call getStyle()
 on the
cssstyledecl. We have equivalent code in UITextField

 From: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
]
On Behalf Of giannif17
 Sent: Thursday, September 11, 2008 3:25 PM
 To: 
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: Regular TextField styling.


 There is a subtle translucent white box surrounding my Label
 component. You can hardly see it, but it's there. It's 
pretty
 much
 invisible on my mac, but on my pc you can see it more 
clearly.
 Our
 designers are quite picky about it. A good comparison is a
  canvas with
 backgroundColor white, and backgroundAlpha .01.

 I don't see 

[flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread djepyon
Ok, I went ahead and added some manual clean up to the swf's I was
loading using Event.UNLOAD. I'm basically setting values to null so
they become candidates for garbage collection. Regardless, each time I
load a file into SWFLoader the mem usage still jumps until the app
becomes sluggish and ultimately unresponsive. I noticed the following
bug (http://bugs.adobe.com/jira/browse/SDK-13097) and I'm assuming
that is the issue I'm having.

As I workaround I'm loading a single swf into SWFLoader and then
having the loaded swf handle the loading of other external swf files
itself. The class for something like this is as such:

package {

import flash.display.MovieClip;

import flash.display.Loader;
import flash.net.URLRequest;

import flash.events.Event;
import flash.events.ProgressEvent;

public class LoaderSWF extends MovieClip{

private var loader:Loader;

public function LoaderSWF() : void {

loader = new Loader();

addChild(loader);

}

public function loadSWF(path){

trace(loadSWF(, path,  ));

var r:URLRequest = new URLRequest();
r.url = path;


loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
loader.load(r);

}

private function progressHandler(event:ProgressEvent) : void {

trace(bytesLoaded= + event.bytesLoaded +  bytesTotal= +
event.bytesTotal);

}

}

}


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

 Each SWF really should stop its own audio and clean up.  Trying to
clean up on a SWFs behalf is likely a maintenance issue.
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of djepyon
 Sent: Wednesday, September 10, 2008 8:01 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?
 
 
 Alex thanks for the additional info.
 
 swfloader.content.stop() prior to setting a new source in this case
 managed to stop the next swf at the beginning once it loaded. Not sure
 why this happened.
 
 I did a bit of testing here and as far as I can tell when a
 MovieClip's loaderInfo dispatches an Event.UNLOAD the MovieClip itself
 has already been de-referenced.
 
 The timeline audio continues to play however. I've managed to fix this
 problem (although this seems a bit of a hack) by calling
 SoundMixer.stopAll() in the unload handler. I somehow doubt that this
 actually deletes the Sound objects that were created so my guess is
 that this could cause a big leak if many SWF's with timeline audio
 were being loaded over and over. Perhaps the same problem would
 persist even with SWF' with manually instantiated audio?
 
 Here's my quick fix.
 

MovieClip(event.target.content).loaderInfo.addEventListener(Event.UNLOAD,
 unloadHandler);
 
 private function unloadHandler(event:Event) : void {
 
 SoundMixer.stopAll();
 
 }
 
 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex
Harui aharui@ wrote:
 
  I haven't used this event to shut down a movie, so I don't have
 examples, but I think the recommended pattern is that the loaded SWF
 is supposed to listen for the UNLOAD event on its loaderInfo. If the
 main app is listening, then you're probably right that it is too late.
 Of course, if you're about to set the SWFLoader's source you can
 certainly call swfloader.content.stop() beforehand, but I think stop()
 doesn't stop Audio/Video, just the frame timeline. You'll have to
 have access to the loaded SWFs Sound instances which is why it is
 better if the loaded SWF cleans up after itself.
 
  From:
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of djepyon
  Sent: Tuesday, September 09, 2008 8:35 PM
  To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?
 
 
  Thanks guys. The feedback I get on here is always great.
 
  I was able to listen for UNLOAD on the SWFLoader. I tried a
  MovieClip(event.target.content).stop() but it seems that its already
  disappeared at this point and throws a null object reference error.
 
  Listening on the content object didn't trigger the event handler.
  Would it be better to use REMOVED or REMOVED_FROM_STAGE for this?
 
  Maybe I could get some sample code?
 
  --- In

flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
Alex
 Harui aharui@ wrote:
  
   The SWFLoader unloads the SWF which just de-references the SWF bytes
  but does not clear references to objects created by code in that 

[flexcoders] Wrapping the Legend Text for Charts over multiple lines

2008-09-12 Thread pratikshah83
Hi Guys, 

I am trying to wrap the text for the legend item to multiple lines if
the text is too long.

for example long legend text would like to be displayed as 

long legend
text

I tried to set the marker height and width but its not helping. I
tried the legend height and width but that just adjusts the complete
legend item. I just want to wrap the legend text.

Your help would really be appreciated. 

Thanks
Pratik




[flexcoders] Issues loading a SWF with ProgressBar component into Flex app

2008-09-12 Thread djepyon
I've got a swf that has some rather advanced pre-loading going on that
uses a ProgressBar component. When I try to load that swf into my flex
app I get the following security error:

SecurityError: Error #2070: Security sandbox violation: caller
file:///C:/flex_workspaces/proflight/proflight/modules/C_F_07.swf
cannot access Stage owned by
file:///C:/flex_workspaces/proflight/proflight/bin-debug/proflight.swf.
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/addEventListener()
at fl.core::UIComponent/callLaterDispatcher()

If I take the ProgressBar component out, no error. Any suggestions are
greatly appreciated, as always :)



Re: [flexcoders] Performace Load testing for Flex 3

2008-09-12 Thread Sefi Ninio
Check out Apache Jmeter

On Thu, Sep 11, 2008 at 8:05 PM, Vivek Kapadekar [EMAIL PROTECTED] wrote:

Hi All

 I am looking for some tool ( opensource or commercial) for Load/Stress
 tetsing our Flex 3 based web application.

 I have searched many threads and web, but most of them point to tools which
 support Flex 2 ( example LoadRunner 9.1 and WebLoad from RadView)

 If anyone can share some link . info for Flex 3 load testing tool, that
 will very helpful.

 Thanks

 --Vivek


  



[flexcoders] Re: Wrapping Contents in HBOX or VBOX

2008-09-12 Thread pratikshah83
Hi Amy, 

Thanks for the reply. I could not find anything in the link you
provided. They specify how to arrange the legend Item. 

I would just like to wrap the legend text(label) if it is long. 

I am not sure if i missed anything on the blog.

I would appreciate if you could give me some leads.

Thanks
Pratik


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

 --- In flexcoders@yahoogroups.com, pratikshah83 pratikshah83@ 
 wrote:
 
  Thanks Tracy, 
  
  This helped me solve one of my issue. 
  
  If you could help me with another issue. 
  
  ie. if i have my chart legend towards the right and the legend text is
  too long how do I wrap the text of the legend in multiple lines ??
  
  for example 
  
  if the text for the legend is long legend test I would like to get
  it displayed as
  long legend
  test
 
 I think the article from the documentation team shows how to pull the 
 LegendData apart and get at the pieces to reconstruct them into 
 something other than a LegendItem.
 
 HTH;
 
 Amy





[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Doug
Check this out Tim,
I set up a test group and started building up attributes until it 
failed.  At this point:

mx:RadioButtonGroup id=statusType 
selectedValue={model.selectedValuation.valuation_administration.valua
tion_status}/
mx:RadioButton id=tb group={statusType} label=Open value=Open 
/

I have no repeater and it works great, confirming data is on time and 
attributes are correct.  I even went back to my list data and retyped 
the values..just in case whatever.

So, is it possible to have a timing issue within the repeater itself?

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

 Might just be a timing issue Doug.  Have you tried callLater()?  
 Otherwise, maybe set 
 model.selectedValuation.valuationAdmin.valuation_status to the 
 correct value, instead of setting the selectedValue directly; since 
 it's bound.
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Doug doug@ wrote:
 
  I have a form Item which contains RadioButtonGroup and a Repeater 
  which dynamically loads up RadioButtons from model data, it is 
 inside 
  a VBox container:
  
  mx:FormItem direction=horizontal
  mx:Label text=Status:/
  mx:RadioButtonGroup id=statusType 
  
 
selectedValue={model.selectedValuation.valuationAdmin.valuation_statu
  s}/
  mx:Repeater id=valStatus 
  dataProvider={listModel.allValuationStatuses}
  mx:RadioButton id=vs group={statusType} 
  label={valStatus.currentItem.title}/
  /mx:Repeater
  /mx:FormItem
  
  On creationComplete() I call init() which in turn calls 
  loadUserInfo(). Here I call selectedValStatus and pass on selected 
  data from model:
  
  private function loadUserInfo():void{
  if(model.selectedValuation.valuation_administration != null){
  selectedValStatus
 (model.selectedValuation.valuation_administration.val
  uation_status);
  }
  }
  
  selectedValStatus() takes the data object passed to it, loops over 
 the 
  model list data and then checks to see if the model list data is 
  equivalent to the data.title property, where i then set the 
 selected 
  value of the radio group:
  
  private function selectedValStatus(data:Object):void{
  if(listModel.allValuationStatuses != null){
  for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){
  var item:ArrayCollection = listModel.allValuationStatuses;
  if(data != null){
  if(item.title == data.title){
  statusType.selectedValue = data.title;
  }
  }
  }
  }
  }
  
  The Behavior:
  Data is present on creation complete.
  I have another radio group using the same code architecture that 
 works 
  perfectly, is in same form.
  On the form load the radio button is not selected.
  On a view index change and then return the button is selected 
  properly.
  Thanks!
 




[flexcoders] Re: TextArea StyleSheet Anchor Hover Question

2008-09-12 Thread wwwpl
That worked.  You are a big help Alex!

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

 I think it is:
 
 var a:Object = new Object();
 a.textDecoration = underline;
 a.color = #FF;
 var ss:StyleSheet = new StyleSheet();
 ss.setStyle(a:hover, a);
 
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
On Behalf Of wwwpl
 Sent: Friday, September 12, 2008 11:05 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] TextArea StyleSheet Anchor Hover Question
 
 
 I am trying to set the CSS a.hover style, but I don't know how to do
 it with objects. I tried it as seen below, but it doesn't work. I
 want the link to have an underline when I hover over the link in the
 htmlText. If there is another way, I am open to ideas.
 
 var a:Object = new Object();
 a.hover = new Object();
 a.hover.textDecoration = underline;
 a.color = #FF;
 var ss:StyleSheet = new StyleSheet();
 ss.setStyle(a, a);
 var hypertext:TextArea = new TextArea();
 hypertext.styleSheet = ss;
 htmlText = a href='event:http://www.adobe.com' + 
collection.title
 + /a;






[flexcoders] Trying to underline datagrid header text. How???

2008-09-12 Thread cjcuccaro
I am using the headerRelease event in the DataGrid control and calling 
preventDefault in my header release custom function, which, as you 
know, keeps the sort arrow from displaying. Therefore, I want to do a 
less complicated work around and just underline the header text when 
the column is sorted.

Is there a way to underline the header text just for the sorted column?

OR

Does anyone have a good work around for the ellusive sort arrow.

I did notice a post by Alex Harui 
http://tech.groups.yahoo.com/group/flexcoders/message/121805 that talks 
about subclassing a collection and either override the sort property or 
refresh method so the collection doesn't actually sort. Can anyone give 
some guidiance on this?

Thanks much,
CJ



[flexcoders] Highlight datagrid row on dragover

2008-09-12 Thread michob
Hi all,

I'm trying to get a DataGrid row to highlight during a dragOver event, 
but can't for the life of me figure out how.  It highlights just fine 
on a regular rollOver, but does nothing on a drag.

Any hints?

Thanks,
Mitch.



[flexcoders] Datagrid - disable cell events?

2008-09-12 Thread horizens
I'm working on an application using the datagrid and have been
searching for a way to disable clicking on specific cells (but still
show them). Is this possible?

Thanks!



RE: [flexcoders] Datagrid - disable cell events?

2008-09-12 Thread Alex Harui
What click behavior are you trying to prevent?  There are examples on my blog 
of disabling List selection and disabling editing.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of horizens
Sent: Friday, September 12, 2008 1:23 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Datagrid - disable cell events?


I'm working on an application using the datagrid and have been
searching for a way to disable clicking on specific cells (but still
show them). Is this possible?

Thanks!



RE: [flexcoders] Highlight datagrid row on dragover

2008-09-12 Thread Alex Harui
Call drawHighlightIndicator.

The DG won't do it because it knows a drag is in process.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of michob
Sent: Friday, September 12, 2008 1:13 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Highlight datagrid row on dragover


Hi all,

I'm trying to get a DataGrid row to highlight during a dragOver event,
but can't for the life of me figure out how. It highlights just fine
on a regular rollOver, but does nothing on a drag.

Any hints?

Thanks,
Mitch.



RE: [flexcoders] Trying to underline datagrid header text. How???

2008-09-12 Thread Alex Harui
A custom header renderer can certainly display an underline.  See some of the 
examples of on my blog.  You might be able to mix and match some code

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of 
cjcuccaro
Sent: Friday, September 12, 2008 1:40 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Trying to underline datagrid header text. How???


I am using the headerRelease event in the DataGrid control and calling
preventDefault in my header release custom function, which, as you
know, keeps the sort arrow from displaying. Therefore, I want to do a
less complicated work around and just underline the header text when
the column is sorted.

Is there a way to underline the header text just for the sorted column?

OR

Does anyone have a good work around for the ellusive sort arrow.

I did notice a post by Alex Harui
http://tech.groups.yahoo.com/group/flexcoders/message/121805 that talks
about subclassing a collection and either override the sort property or
refresh method so the collection doesn't actually sort. Can anyone give
some guidiance on this?

Thanks much,
CJ



RE: [flexcoders] Issues loading a SWF with ProgressBar component into Flex app

2008-09-12 Thread Alex Harui
Need more info.  How is the preloader set up?

Normally, you can't put mx.controls.ProgressBar in the pre-loader frame of a 
module or swf.  It can cause all sorts of problems.  Normally, preloaders use 
low-level Flash Sprites.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djepyon
Sent: Friday, September 12, 2008 12:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Issues loading a SWF with ProgressBar component into Flex 
app


I've got a swf that has some rather advanced pre-loading going on that
uses a ProgressBar component. When I try to load that swf into my flex
app I get the following security error:

SecurityError: Error #2070: Security sandbox violation: caller
file:///C:/flex_workspaces/proflight/proflight/modules/C_F_07.swffile:///C:\flex_workspaces\proflight\proflight\modules\C_F_07.swf
cannot access Stage owned by
file:///C:/flex_workspaces/proflight/proflight/bin-debug/proflight.swf.file:///C:\flex_workspaces\proflight\proflight\bin-debug\proflight.swf.
at flash.display::Stage/requireOwnerPermissions()
at flash.display::Stage/addEventListener()
at fl.core::UIComponent/callLaterDispatcher()

If I take the ProgressBar component out, no error. Any suggestions are
greatly appreciated, as always :)



RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Alex Harui
The Flex Profiler will tell you if you have other stuff that isn't being 
cleaned up.  I posted on my blog some ways to use it.  FP10 fixes many issues 
with SWFs not unloading.  A test using the release build on a non-debugger 
player is the best way to see if you are getting false-positives.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of djepyon
Sent: Friday, September 12, 2008 12:11 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?


Ok, I went ahead and added some manual clean up to the swf's I was
loading using Event.UNLOAD. I'm basically setting values to null so
they become candidates for garbage collection. Regardless, each time I
load a file into SWFLoader the mem usage still jumps until the app
becomes sluggish and ultimately unresponsive. I noticed the following
bug (http://bugs.adobe.com/jira/browse/SDK-13097) and I'm assuming
that is the issue I'm having.

As I workaround I'm loading a single swf into SWFLoader and then
having the loaded swf handle the loading of other external swf files
itself. The class for something like this is as such:

package {

import flash.display.MovieClip;

import flash.display.Loader;
import flash.net.URLRequest;

import flash.events.Event;
import flash.events.ProgressEvent;

public class LoaderSWF extends MovieClip{

private var loader:Loader;

public function LoaderSWF() : void {

loader = new Loader();

addChild(loader);

}

public function loadSWF(path){

trace(loadSWF(, path,  ));

var r:URLRequest = new URLRequest();
r.url = path;

loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
loader.load(r);

}

private function progressHandler(event:ProgressEvent) : void {

trace(bytesLoaded= + event.bytesLoaded +  bytesTotal= +
event.bytesTotal);

}

}

}

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

 Each SWF really should stop its own audio and clean up. Trying to
clean up on a SWFs behalf is likely a maintenance issue.

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of djepyon
 Sent: Wednesday, September 10, 2008 8:01 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?


 Alex thanks for the additional info.

 swfloader.content.stop() prior to setting a new source in this case
 managed to stop the next swf at the beginning once it loaded. Not sure
 why this happened.

 I did a bit of testing here and as far as I can tell when a
 MovieClip's loaderInfo dispatches an Event.UNLOAD the MovieClip itself
 has already been de-referenced.

 The timeline audio continues to play however. I've managed to fix this
 problem (although this seems a bit of a hack) by calling
 SoundMixer.stopAll() in the unload handler. I somehow doubt that this
 actually deletes the Sound objects that were created so my guess is
 that this could cause a big leak if many SWF's with timeline audio
 were being loaded over and over. Perhaps the same problem would
 persist even with SWF' with manually instantiated audio?

 Here's my quick fix.


MovieClip(event.target.content).loaderInfo.addEventListener(Event.UNLOAD,
 unloadHandler);

 private function unloadHandler(event:Event) : void {

 SoundMixer.stopAll();

 }

 --- In
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com,
 Alex
Harui aharui@ wrote:
 
  I haven't used this event to shut down a movie, so I don't have
 examples, but I think the recommended pattern is that the loaded SWF
 is supposed to listen for the UNLOAD event on its loaderInfo. If the
 main app is listening, then you're probably right that it is too late.
 Of course, if you're about to set the SWFLoader's source you can
 certainly call swfloader.content.stop() beforehand, but I think stop()
 doesn't stop Audio/Video, just the frame timeline. You'll have to
 have access to the loaded SWFs Sound instances which is why it is
 better if the loaded SWF cleans up after itself.
 
  From:
flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
[mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com]
 On Behalf Of djepyon
  Sent: Tuesday, September 09, 2008 8:35 PM
  To: 
  flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.commailto:flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?
 
 
  Thanks guys. The feedback I get on here is always great.
 
  I was able to listen for UNLOAD on the SWFLoader. I tried a
  MovieClip(event.target.content).stop() but it seems that its already
  disappeared at this point and throws a null object reference error.
 
  Listening on the content object didn't trigger the event handler.
  Would it be better to use REMOVED or 

[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Tim Hoff

Yes, it's possible that the repeater children are getting instantiated
at the same time that your trying to set the selectedValue.  Try running
selectedValStatus() on the updateComplete or valueCommit event of the
repeater.  Or, just use callLater(selectedValStatus, data) after
loadUserData().

-TH

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

 Check this out Tim,
 I set up a test group and started building up attributes until it
 failed. At this point:

 mx:RadioButtonGroup id=statusType
 selectedValue={model.selectedValuation.valuation_administration.valua
 tion_status}/
 mx:RadioButton id=tb group={statusType} label=Open value=Open
 /

 I have no repeater and it works great, confirming data is on time and
 attributes are correct. I even went back to my list data and retyped
 the values..just in case whatever.

 So, is it possible to have a timing issue within the repeater itself?

 --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
 
  Might just be a timing issue Doug. Have you tried callLater()?
  Otherwise, maybe set
  model.selectedValuation.valuationAdmin.valuation_status to the
  correct value, instead of setting the selectedValue directly; since
  it's bound.
 
  -TH
 
  --- In flexcoders@yahoogroups.com, Doug doug@ wrote:
  
   I have a form Item which contains RadioButtonGroup and a Repeater
   which dynamically loads up RadioButtons from model data, it is
  inside
   a VBox container:
  
   mx:FormItem direction=horizontal
   mx:Label text=Status:/
   mx:RadioButtonGroup id=statusType
  
 
 selectedValue={model.selectedValuation.valuationAdmin.valuation_statu
   s}/
   mx:Repeater id=valStatus
   dataProvider={listModel.allValuationStatuses}
   mx:RadioButton id=vs group={statusType}
   label={valStatus.currentItem.title}/
   /mx:Repeater
   /mx:FormItem
  
   On creationComplete() I call init() which in turn calls
   loadUserInfo(). Here I call selectedValStatus and pass on selected
   data from model:
  
   private function loadUserInfo():void{
   if(model.selectedValuation.valuation_administration != null){
   selectedValStatus
  (model.selectedValuation.valuation_administration.val
   uation_status);
   }
   }
  
   selectedValStatus() takes the data object passed to it, loops over
  the
   model list data and then checks to see if the model list data is
   equivalent to the data.title property, where i then set the
  selected
   value of the radio group:
  
   private function selectedValStatus(data:Object):void{
   if(listModel.allValuationStatuses != null){
   for(var i:int = 0; ilistModel.allValuationStatuses.length; i++){
   var item:ArrayCollection = listModel.allValuationStatuses;
   if(data != null){
   if(item.title == data.title){
   statusType.selectedValue = data.title;
   }
   }
   }
   }
   }
  
   The Behavior:
   Data is present on creation complete.
   I have another radio group using the same code architecture that
  works
   perfectly, is in same form.
   On the form load the radio button is not selected.
   On a view index change and then return the button is selected
   properly.
   Thanks!
  
 






[flexcoders] Re: HELP non coder With First Site ??? Tips? Idea's of things I should look into :(

2008-09-12 Thread johnvid
Hi Paul, 

I thought it was on one page :) No but seriously I understand your 
comment and agree with it, words are not really my thing either, they 
end up deeper than the site itself, its hard to focus when your 
trying to do everything. 

Is it, commercial is it personal, not sure :( will i ever get work 
from it, i doubt it, but I suppose it is just that a moving biz card.

I think i will forget trying to poulate datagrids with my youtube 
stuff, especially now i have figured out how to add a video gallery, 
I can just put the files up on this site, making sure its all under 
one roof and cutting down the pages.
I think all I really need is a good image gallery, and a better video 
gallery... or simply a better media widget that would do everthing, 
including showing the panoramic swf's and maybe an rss feed or two...

Slowly it will evolve to be.. less is more

Ok thanks for the tip,

the trouble with most of the components out there is, they work as is 
on their own but when i try to add them they can mess up..

One thing is for sure I do love flex, and cant wait for thermo.

As i dont know how to code much, I thought instead of learning all 
the other languages I could take a top down approach, MXML doesnt 
look too much different than the others to me, but it is slotting 
into place, and the power  look of the thing is enough to make other 
people who know less than i do, think I am the shit with web design :)

But my biggest problem is I do want to do too much, and I am worried 
by offering x and then not being able to deliver, and having loads of 
issues..

I may have to do a site in chinese soon #:(

OK thanks

johnvid

 



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

 Hi John,
 
 It's good to see someone so enthusiastic about Flex, but my advice 
would be 
 to take several steps back rather than attempt to build such a 
complex site 
 as a first project.
 
 I think it would be best to try and build a one or two page site 
and then 
 expand from that. It may also be a good opportunity to reconsider 
what core 
 messages that you may wish to promote about your business so that 
the site 
 has a clear focus.
 
 Paul
 
 - Original Message - 
 From: johnvid [EMAIL PROTECTED]
 To: flexcoders@yahoogroups.com
 Sent: Friday, September 12, 2008 8:20 AM
 Subject: [flexcoders] HELP non coder With First Site ??? Tips? 
Idea's of 
 things I should look into :(
 
 
  Hi Everyone, I have only posted once or twice before, and feel 
there
  is far too many messages from flexcoders to keep up with all the
  news...maybe there is a better place to try to get help.
 
  But anyway here goes.
 
  I have cobbled together my first FLex site.
 
  http://www.visual-image.co.uk/visualimg.html
 
  and I know there are many issues, the ones I know about and need 
to
  look into are evident. first off i need to change the index page 
back
  to index or main, as the site isnt getting picked up.
 
  I think I will add the collapsable super panel so I can add a few
  more panels, but it would be nice to get them(or the
  components/modules) to appear when a navigation button was 
pressed,
  but hey I can live without it for now as that seems too deep to 
get
  help with at this moment in time.
 
  The refresh on certain pages doesn't seem to work properly(maybe a
  Yahoo hosting issue??), though if i run it on my HD locally its 
fine.
  Maybe I should add some kind of code throught the app?
 
  Sure I know I should split the app up into components, to get it 
to
  run faster, but haven't really got my head round that yet, or how 
to
  split it into modules.
 
  Maybe the Pano's could be loaded as modules they are stand alone 
swf's
 
  THe Panoramic page, has been a real pain, as at first these Pano's
  Never worked at all(sandiebox violations), now only some of them 
do,
  Some crash Flex when looading, and the positioning is a little hit
  and miss, Perhaps thats why some people are using Papervision 3D, 
but
  at first I thought it was because they also contained some extra 
code
   layers of graphics.. they seem to work on a panel but not in a
  viewstack. Sometimes i copy one to another page or app with same
  settings and it doesn't work???
 
  Sure would be nice to organise the images so they zoom on mouse 
over
  (or something) But return to the same place, and not push all the
  other images all over the screen, perhaps they all need to be on
  seperate layers, then move to front??? I dont know I am sure they
  could do wonderfull things.
 
 
  Those are my main issues, though I am sure further down the road I
  may try to get more help, just with those few issues I feel there 
is
  a lot to learn.
 
  Anyway I thank anyone in advance for any help, in the future I may
  recieve work that is beyond my skills, I would love to have some
  people I could work with to develop larger data driven projects.
 
  thanks ...
  johnvid
 
 
 
 
 
 
 
 
 
 
 
  

[flexcoders] Re: SEO and Flash content

2008-09-12 Thread Hyder
Has anyone had any success with Flex Templating?

http://www.onflex.org/FXT/


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

 Josh could you detail the googlebot and expand on what you write 
below?
 
 -r
 
 On Sep 8, 2008, at 10:19 PM, Josh McDonald wrote:
 
 
  Google most definitely re-indexes from various different data- 
  centres (read: class B addresses) and I'm sure also occasionally  
  using random real user-agents, and will punish sites which  
  consistently return A to googlebot and B to browsers. They'd 
be  
  fools not to, and they hire a *lot* of very smart people.
 
  -Josh
 
  On Tue, Sep 9, 2008 at 11:39 AM, Alan [EMAIL PROTECTED] wrote:
  I had a meeting with ( forgot his name ) from Adobe and he gave me  
  the scoop.
 
  You will not be able to determine ( legally ) if and when your 
.swf  
  is being indexed.  You can't even get a report on how successful /  
  unsuccessful the spider was in crawling your .swf
 
  There are no 'best practices' just don't try to 'cheat'. 
Apparently,  
  Adobe and the other search providers have developed methods ( both  
  separately and together )  to 'punish' those who spam their 
content.
 
  My opinion of the whole thing
 
  It's a Joke,  don't waste your time.  Remember that community 
effort  
  to get ( i think it was  ) Flexalicious to pop up in google.  
Well  
  it failed nicely.
 
 
  Alan
 
  On Sep 8, 2008, at 8:54 PM, arieljake wrote:
 
  I was wondering what it takes for the server to realize that a  
  request
  is coming from Google's indexing machines so that text can be 
output
  instead of a Flex app.
 
  Also, do we need to be careful doing this to not get in trouble 
with
  Google? Are their best practices to follow when we output the 
text?
 
 
 
 
  -- 
  Therefore, send not to know For whom the bell tolls. It tolls for  
  thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald
  :: 0437 221 380 :: [EMAIL PROTECTED]
 
 






[flexcoders] Re: Datagrid - disable cell events?

2008-09-12 Thread horizens
I'm building an mp3 player and using the datagrid for the playlist. If
a user selects a row in the datagrid, the corresponding track plays.
If an mp3 is out of date or the url no longer works for a given track,
I'd like to still show the track in the datagrid, but prevent the
track from being clicked. I've been searching for a way to disable the
click event for certain cells. I've successfully used itemRenderers to
visually show that the user that the track is invalid by changing the
background color of the cells, but cannot figure out the disabling aspect.



[flexcoders] mx:List and custom item background colors

2008-09-12 Thread Cordova Aaron
I have been working at this for a few hours now. I have seen examples for 
several list controls other than just mx:List.

I thought this example was the most promising to accomplish what I am trying to 
do.


mx:itemRenderer
mx:Component
mx:HBox paddingLeft=2
mx:Script
![CDATA[
override public function set data( value:Object ) : 
void {
super.data = value;
var today:Number = (new Date()).time;
var pubDate:Number = Date.parse(data.date);
if( pubDate  today ) 
setStyle(backgroundColor,0xff99ff);
else setStyle(backgroundColor,0xff);
}
]]
/mx:Script
mx:Image source={data.image} width=50 height=50 
scaleContent=true /
mx:Text width=100% text={data.title} /
/mx:HBox
/mx:Component
/mx:itemRenderer

But this example is from a dataGrid and the var value has no value when using 
this method in 
a mx:List control.

All I want to do is change the bacground color of the mx:HBox dependent on 
another value from
data. 

Any ideas?


  



[flexcoders] Re: RadioButton Set selectedValue

2008-09-12 Thread Doug
I tried callLater(selectedValStatus,[data]) as well as updateComplete 
and valueCommit on the repeater with no change in behavior.  I get rid 
of the repeater and write in three static radio buttons, still binding 
the group to the model, and it works as it should (not what i wanted 
but works = happy client).  Still open to ideas to solve though.

mx:RadioButtonGroup id=statusType 
selectedValue={model.selectedValuation.valuation_administration.valua
tion_status}/
mx:RadioButton id=open group={statusType} label=Open 
value=Open /
mx:RadioButton id=closed group={statusType} label=Closed 
value=Closed /
mx:RadioButton id=pending group={statusType} label=Pending 
value=Pending /


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

 
 Yes, it's possible that the repeater children are getting 
instantiated
 at the same time that your trying to set the selectedValue.  Try 
running
 selectedValStatus() on the updateComplete or valueCommit event of 
the
 repeater.  Or, just use callLater(selectedValStatus, data) after
 loadUserData().
 
 -TH
 
 --- In flexcoders@yahoogroups.com, Doug doug@ wrote:
 
  Check this out Tim,
  I set up a test group and started building up attributes until it
  failed. At this point:
 
  mx:RadioButtonGroup id=statusType
  
selectedValue={model.selectedValuation.valuation_administration.valua
  tion_status}/
  mx:RadioButton id=tb group={statusType} label=Open 
value=Open
  /
 
  I have no repeater and it works great, confirming data is on time 
and
  attributes are correct. I even went back to my list data and 
retyped
  the values..just in case whatever.
 
  So, is it possible to have a timing issue within the repeater 
itself?
 
  --- In flexcoders@yahoogroups.com, Tim Hoff TimHoff@ wrote:
  
   Might just be a timing issue Doug. Have you tried callLater()?
   Otherwise, maybe set
   model.selectedValuation.valuationAdmin.valuation_status to the
   correct value, instead of setting the selectedValue directly; 
since
   it's bound.
  
   -TH
  
   --- In flexcoders@yahoogroups.com, Doug doug@ wrote:
   
I have a form Item which contains RadioButtonGroup and a 
Repeater
which dynamically loads up RadioButtons from model data, it is
   inside
a VBox container:
   
mx:FormItem direction=horizontal
mx:Label text=Status:/
mx:RadioButtonGroup id=statusType
   
  
  
selectedValue={model.selectedValuation.valuationAdmin.valuation_statu
s}/
mx:Repeater id=valStatus
dataProvider={listModel.allValuationStatuses}
mx:RadioButton id=vs group={statusType}
label={valStatus.currentItem.title}/
/mx:Repeater
/mx:FormItem
   
On creationComplete() I call init() which in turn calls
loadUserInfo(). Here I call selectedValStatus and pass on 
selected
data from model:
   
private function loadUserInfo():void{
if(model.selectedValuation.valuation_administration != null){
selectedValStatus
   (model.selectedValuation.valuation_administration.val
uation_status);
}
}
   
selectedValStatus() takes the data object passed to it, loops 
over
   the
model list data and then checks to see if the model list data 
is
equivalent to the data.title property, where i then set the
   selected
value of the radio group:
   
private function selectedValStatus(data:Object):void{
if(listModel.allValuationStatuses != null){
for(var i:int = 0; ilistModel.allValuationStatuses.length; 
i++){
var item:ArrayCollection = listModel.allValuationStatuses;
if(data != null){
if(item.title == data.title){
statusType.selectedValue = data.title;
}
}
}
}
}
   
The Behavior:
Data is present on creation complete.
I have another radio group using the same code architecture 
that
   works
perfectly, is in same form.
On the form load the radio button is not selected.
On a view index change and then return the button is selected
properly.
Thanks!
   
  
 




Re: [flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Maciek Sakrejda
Who is that quote from? I'm on the last steps of a massive rethinking,
refactoring, and rewriting, and I'm really glad to be able to do
it--I've had to deal with piles upon piles of hackery for long enough.
It feels really good.

-Maciek


-Original Message-
From: Michael Schmalle [EMAIL PROTECTED]
Reply-To: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Subclassing Components: Theoretical
Question
Date: Fri, 12 Sep 2008 11:17:59 -0400

My favorite quote;

There comes a point in the life cycle of any system when adding one more
patch 
is the wrong solution to every problem. Eventually, it's time to
rethink, refactor, 
and rewrite.

Mike

On Fri, Sep 12, 2008 at 11:09 AM, Tim Hoff [EMAIL PROTECTED] wrote:
Heretofore known as the blahBlahBlahButton. :)

-TH



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


 heh, that's almost the exact description of what I called the
 CanvasButton:

http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-
added-to-flexlib/
 
 Doug
 

 On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED]
wrote:
 
  Yeah, I'd make one subclass of Button that lets you put 
whatever you
  please as the label, and have function set labelControl
(cntrl:*) as the
  [DefaultProperty]. If it finds a string, go with a
UITextField, 
if it's a
  DisplayObject, use it, if not throw an error. Then you have:
 
  pkg:FreeFormButton click=doStuff width=150
  mx:textblah blah blah blah blah blah blah blah
blah/mx:text
  /pkg:FreeFormButton
 
  -Josh
 
 


  On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED]
wrote:
 
  Make one subclass that handles both HTML and multiline?
 
 
 
  *From:* flexcoders@yahoogroups.com 
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *wnoone01
  *Sent:* Thursday, September 11, 2008 11:17 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Subclassing Components:
Theoretical 
Question
 
 
 
  Hey all,
  I've got a theoretical question about subclassing a
component. 
Here is
  the use case:
 
  A programmer requires buttons that support multiline
labels. 
This is a
  requiement for Button, RadioButton, and CheckBox. Now to
start, 
the
  programmer can subclass mx.controls.Button to implement the
  functionality. But now he needs to implement the
functionality in
  RadioButton and CheckBox.
 
  One way is to subclass RadioButton and CheckBox and then 
duplicate the
  functionality there. However, not only will he be
duplicating
  functionality, he is headed down a slippery slope. Let's
say 
that for
  his next project, he suddenly requires a button label that 
supports
  HTML formatting. Now he must subclass again. So now the
classes 
grow
  from:
 
  MultilineButton
  MultilineRadioButton
  MultilineCheckBox
 
  To
 
  MultilineButton
  HTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
 
  The next project requires a multiline html button. So now
its:
 
  MultilineButton
  HTMLButton
  MultilineHTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineHTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
  MultilineHTMLCheckBox
 
  And now its officially out of hand and the programmer is
mired 
in a
  subclassing nightmare.
 
  ---
 
  So basically my question is what is the best way to handle
this
  problem in Flex. Is subclassing the only way or is there a
more
  efficient solution (decorators, item renderers, etc.)?
 
  Thanks in advance for any guidance
  Bill
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It
tolls 
for thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald

  :: 0437 221 380 :: [EMAIL PROTECTED]
  
 






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

Teoti Graphix Blog

Re: [flexcoders] Re: Regular TextField styling.

2008-09-12 Thread Josh McDonald
Well I can definitely see it in that screenshot, but it sounds like  Player
bug so I think I'll bow out of this one ;-)

-Josh

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

http://flex.joshmcdonald.info/

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


Re: [flexcoders] Re: Subclassing Components: Theoretical Question

2008-09-12 Thread Josh McDonald
I feel you Maciek, I've been refactoring our Flex architecture at work the
last week and a half, now it rocks :)

-Josh

On Sat, Sep 13, 2008 at 10:47 AM, Maciek Sakrejda [EMAIL PROTECTED]wrote:

 Who is that quote from? I'm on the last steps of a massive rethinking,
 refactoring, and rewriting, and I'm really glad to be able to do
 it--I've had to deal with piles upon piles of hackery for long enough.
 It feels really good.

 -Maciek


 -Original Message-
 From: Michael Schmalle [EMAIL PROTECTED]
 Reply-To: flexcoders@yahoogroups.com
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] Re: Subclassing Components: Theoretical
 Question
 Date: Fri, 12 Sep 2008 11:17:59 -0400

 My favorite quote;

 There comes a point in the life cycle of any system when adding one more
 patch
 is the wrong solution to every problem. Eventually, it's time to
 rethink, refactor,
 and rewrite.

 Mike

 On Fri, Sep 12, 2008 at 11:09 AM, Tim Hoff [EMAIL PROTECTED] wrote:
Heretofore known as the blahBlahBlahButton. :)

-TH



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


 heh, that's almost the exact description of what I called the
 CanvasButton:

http://dougmccune.com/blog/2007/06/01/new-component-canvasbutton-
added-to-flexlib/

 Doug


 On Thu, Sep 11, 2008 at 3:22 PM, Josh McDonald [EMAIL PROTECTED]
wrote:

  Yeah, I'd make one subclass of Button that lets you put
whatever you
  please as the label, and have function set labelControl
(cntrl:*) as the
  [DefaultProperty]. If it finds a string, go with a
UITextField,
if it's a
  DisplayObject, use it, if not throw an error. Then you have:
 
  pkg:FreeFormButton click=doStuff width=150
  mx:textblah blah blah blah blah blah blah blah
blah/mx:text
  /pkg:FreeFormButton
 
  -Josh
 
 


  On Fri, Sep 12, 2008 at 8:04 AM, Alex Harui [EMAIL PROTECTED]
wrote:
 
  Make one subclass that handles both HTML and multiline?
 
 
 
  *From:* flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] *On
  Behalf Of *wnoone01
  *Sent:* Thursday, September 11, 2008 11:17 AM
  *To:* flexcoders@yahoogroups.com
  *Subject:* [flexcoders] Subclassing Components:
Theoretical
Question
 
 
 
  Hey all,
  I've got a theoretical question about subclassing a
component.
Here is
  the use case:
 
  A programmer requires buttons that support multiline
labels.
This is a
  requiement for Button, RadioButton, and CheckBox. Now to
start,
the
  programmer can subclass mx.controls.Button to implement the
  functionality. But now he needs to implement the
functionality in
  RadioButton and CheckBox.
 
  One way is to subclass RadioButton and CheckBox and then
duplicate the
  functionality there. However, not only will he be
duplicating
  functionality, he is headed down a slippery slope. Let's
say
that for
  his next project, he suddenly requires a button label that
supports
  HTML formatting. Now he must subclass again. So now the
classes
grow
  from:
 
  MultilineButton
  MultilineRadioButton
  MultilineCheckBox
 
  To
 
  MultilineButton
  HTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
 
  The next project requires a multiline html button. So now
its:
 
  MultilineButton
  HTMLButton
  MultilineHTMLButton
  MultilineRadioButton
  HTMLRadioButton
  MultilineHTMLRadioButton
  MultilineCheckBox
  HTMLCheckBox
  MultilineHTMLCheckBox
 
  And now its officially out of hand and the programmer is
mired
in a
  subclassing nightmare.
 
  ---
 
  So basically my question is what is the best way to handle
this
  problem in Flex. Is subclassing the only way or is there a
more
  efficient solution (decorators, item renderers, etc.)?
 
  Thanks in advance for any guidance
  Bill
 
 
 
 
  --
  Therefore, send not to know For whom the bell tolls. It
tolls
for thee.
 
  http://flex.joshmcdonald.info/
 
  :: Josh 'G-Funk' McDonald

  :: 0437 221 380 :: [EMAIL PROTECTED]
 
  

Re: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Josh McDonald
Alex,

Do you know if Class instances get GC'd? (as in instances of Class, not
general objs) I've noticed Player likes to collect SWFs awfully quickly
(even when there's *no* allocation), but I haven't done any experiments to
verify the classes get collected as well (or not) yet though, but it might
be weird if you're expecting a class to be around in order to
getDefinitionForName() it later :)

-Josh

On Sat, Sep 13, 2008 at 7:19 AM, Alex Harui [EMAIL PROTECTED] wrote:

  The Flex Profiler will tell you if you have other stuff that isn't being
 cleaned up.  I posted on my blog some ways to use it.  FP10 fixes many
 issues with SWFs not unloading.  A test using the release build on a
 non-debugger player is the best way to see if you are getting
 false-positives.



 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On
 Behalf Of *djepyon
 *Sent:* Friday, September 12, 2008 12:11 PM
 *To:* flexcoders@yahoogroups.com

 *Subject:* [flexcoders] Re: SWFLoader unloading, whats the trick?



 Ok, I went ahead and added some manual clean up to the swf's I was
 loading using Event.UNLOAD. I'm basically setting values to null so
 they become candidates for garbage collection. Regardless, each time I
 load a file into SWFLoader the mem usage still jumps until the app
 becomes sluggish and ultimately unresponsive. I noticed the following
 bug (http://bugs.adobe.com/jira/browse/SDK-13097) and I'm assuming
 that is the issue I'm having.

 As I workaround I'm loading a single swf into SWFLoader and then
 having the loaded swf handle the loading of other external swf files
 itself. The class for something like this is as such:

 package {

 import flash.display.MovieClip;

 import flash.display.Loader;
 import flash.net.URLRequest;

 import flash.events.Event;
 import flash.events.ProgressEvent;

 public class LoaderSWF extends MovieClip{

 private var loader:Loader;

 public function LoaderSWF() : void {

 loader = new Loader();

 addChild(loader);

 }

 public function loadSWF(path){

 trace(loadSWF(, path,  ));

 var r:URLRequest = new URLRequest();
 r.url = path;

 loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
 progressHandler);
 loader.load(r);

 }

 private function progressHandler(event:ProgressEvent) : void {

 trace(bytesLoaded= + event.bytesLoaded +  bytesTotal= +
 event.bytesTotal);

 }

 }

 }

 --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Alex
 Harui [EMAIL PROTECTED] wrote:
 
  Each SWF really should stop its own audio and clean up. Trying to
 clean up on a SWFs behalf is likely a maintenance issue.
 
  From: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]
 On Behalf Of djepyon
  Sent: Wednesday, September 10, 2008 8:01 AM
  To: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com
  Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?
 
 
  Alex thanks for the additional info.
 
  swfloader.content.stop() prior to setting a new source in this case
  managed to stop the next swf at the beginning once it loaded. Not sure
  why this happened.
 
  I did a bit of testing here and as far as I can tell when a
  MovieClip's loaderInfo dispatches an Event.UNLOAD the MovieClip itself
  has already been de-referenced.
 
  The timeline audio continues to play however. I've managed to fix this
  problem (although this seems a bit of a hack) by calling
  SoundMixer.stopAll() in the unload handler. I somehow doubt that this
  actually deletes the Sound objects that were created so my guess is
  that this could cause a big leak if many SWF's with timeline audio
  were being loaded over and over. Perhaps the same problem would
  persist even with SWF' with manually instantiated audio?
 
  Here's my quick fix.
 
 
 MovieClip(event.target.content).loaderInfo.addEventListener(Event.UNLOAD,
  unloadHandler);
 
  private function unloadHandler(event:Event) : void {
 
  SoundMixer.stopAll();
 
  }
 
  --- In
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com, Alex
 Harui aharui@ wrote:
  
   I haven't used this event to shut down a movie, so I don't have
  examples, but I think the recommended pattern is that the loaded SWF
  is supposed to listen for the UNLOAD event on its loaderInfo. If the
  main app is listening, then you're probably right that it is too late.
  Of course, if you're about to set the SWFLoader's source you can
  certainly call swfloader.content.stop() beforehand, but I think stop()
  doesn't stop Audio/Video, just the frame timeline. You'll have to
  have access to the loaded SWFs Sound instances which is why it is
  better if the loaded SWF cleans up after itself.
  
   From:
 flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 flexcoders%40yahoogroups.com flexcoders%2540yahoogroups.com
 [mailto:flexcoders@yahoogroups.com flexcoders%40yahoogroups.commailto:
 

[flexcoders] Differences between AIR html and Flex

2008-09-12 Thread timgerr
Hello all, 
I have been programming in flex for about 6 months now and A friend
just showed me something cool.  He was able to run an AIR app locally
and within a web page.

Can I create Air apps that run on both HTML web pages and locally???

Thanks for the help,
Timgerr



[flexcoders] Re: Trying to underline datagrid header text. How???

2008-09-12 Thread cjcuccaro

Thank you Alex for your feedback.

So I visited your blog read about renderers, very good info, and started
with your checkbox example. I changed the checkbox to a label and have
it underlining on the click but don't know how to toggle the underline
when clicking other columns. Can you or anyone provide any suggestions
on how I can achieve this? Below is the headerRenderer custom class.

RgColHeaderLabel.as file:

package
{
  import mx.controls.Label;

  public class RgColHeaderLabel extends Label
  {

   import flash.events.MouseEvent;
   import mx.events.DataGridEvent;
   import mx.controls.DataGrid;
   import mx.controls.dataGridClasses.DataGridColumn;
   import mx.controls.dataGridClasses.DataGridListData;

   private var _data:DataGridColumn;

   public function RgColHeaderLabel()
   {
super();
addEventListener(click, clickHandler);
   }

   override public function get data():Object
   {
return _data;
   }

   override public function set data(value:Object):void
   {
_data = value as DataGridColumn;

text = DataGridListData(listData).label ;
setStyle(textAlign,center);
   
DataGrid(listData.owner).addEventListener(DataGridEvent.HEADER_RELEASE,
sortEventHandler);

   }

   private function sortEventHandler(event:DataGridEvent):void
   {
if (event.itemRenderer == this)
 event.preventDefault();
   }

   private function clickHandler(event:MouseEvent):void
   {
//how do i underline only the clicked header?

 setStyle(textDecoration, underline);
   }

  }
}

Below is your dg.mxml with a modification to the headerRenderer:

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

mx:Script
![CDATA[

private var dp:Array = [
  { symbol: ADBE, name: Adobe Systems Inc.,
   news: Adobe Flex is bgreat/b! according to iFlexCoders/i },
  { symbol: MACR, name: Macromedia Inc.,
   news: FONT color='#FF'Macromedia/FONT is absorbed into Adobe
},
  { symbol: MSFT, name: Microsoft Corp.,
   news: Microsoft sees FONT size='20'Flex/FONT for the first time
},
  { symbol: IBM, name: IBM Corp.,
   news: IBM was once the top bidog/i/b but no more }
  ];


]]
/mx:Script

mx:DataGrid id=dg1 initialize=dg1.dataProvider = dp paddingTop=0
paddingBottom=0 verticalAlign=middle
  variableRowHeight=true 
mx:columns
mx:DataGridColumn headerText=Name dataField=name width=140
headerRenderer=RgColHeaderLabel/
mx:DataGridColumn headerText=Symbol dataField=symbol width=60
headerRenderer=RgColHeaderLabel/
mx:DataGridColumn headerText=News dataField=news wordWrap=true
width=200 headerRenderer=RgColHeaderLabel/
/mx:columns
/mx:DataGrid

/mx:Application



Thanks,

CJ



[flexcoders] about keyboard operation in flex

2008-09-12 Thread qiyadsy
I want only use  keyboard to operation in flex.
Just as Global keyboard event
handling(http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=304)

But,have some problem ,it need click anywhere in the application and
then press some keys.But i don't want click anywhere ,direct operate
with keyboard.

How I can deal it ? Thanks. 



RE: [flexcoders] Re: Datagrid - disable cell events?

2008-09-12 Thread Alex Harui
Well, are you using the ITEM_CLICK event?  If so, you can override 
dispatchEvent and look for it to be dispatched and not dispatch it.  You can 
also listen for the event from the systemManager at a high priority in capture 
phase and call stopImmediatePropagation before it gets too far

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of horizens
Sent: Friday, September 12, 2008 3:29 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Datagrid - disable cell events?


I'm building an mp3 player and using the datagrid for the playlist. If
a user selects a row in the datagrid, the corresponding track plays.
If an mp3 is out of date or the url no longer works for a given track,
I'd like to still show the track in the datagrid, but prevent the
track from being clicked. I've been searching for a way to disable the
click event for certain cells. I've successfully used itemRenderers to
visually show that the user that the track is invalid by changing the
background color of the cells, but cannot figure out the disabling aspect.



RE: [flexcoders] mx:List and custom item background colors

2008-09-12 Thread Alex Harui
The value parameter in the data setter should have valid values, but at startup 
it might get passed an unexpected value.  I'd just check to make sure the data 
is valid and ignore bad data and see if you get further and get valid values 
later.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Cordova 
Aaron
Sent: Friday, September 12, 2008 4:17 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] mx:List and custom item background colors


I have been working at this for a few hours now. I have seen examples for 
several list controls other than just mx:List.

I thought this example was the most promising to accomplish what I am trying to 
do.

mx:itemRenderer
mx:Component
mx:HBox paddingLeft=2
mx:Script
![CDATA[
override public function set data( value:Object ) : void {
super.data = value;
var today:Number = (new Date()).time;
var pubDate:Number = Date.parse(data.date);
if( pubDate  today ) setStyle(backgroundColor,0xff99ff);
else setStyle(backgroundColor,0xff);
}
]]
/mx:Script
mx:Image source={data.image} width=50 height=50 scaleContent=true /
mx:Text width=100% text={data.title} /
/mx:HBox
/mx:Component
/mx:itemRenderer

But this example is from a dataGrid and the var value has no value when using 
this method in
a mx:List control.

All I want to do is change the bacground color of the mx:HBox dependent on 
another value from
data.

Any ideas?



RE: [flexcoders] Re: SWFLoader unloading, whats the trick?

2008-09-12 Thread Alex Harui
Class instances get GC'd when their applicationDomain gets GC'd, which is 
theoretically when there are no more references to that class instance or 
instances of that class and unload() has been called on the Loader of that SWF. 
 I have not seen any unexpected behavior in that area.

If a SWF is loaded into the loading SWFs applicationDomain (like RSLs), there 
is no way to unload those classes.  If a SWF is loaded into a child 
applicationDomain of the loading SWF, then that child applicationDomain can be 
GC'd.

Modules call unload() right away so they get punted as soon as you are done 
referencing the module, otherwise we'd need some API where you'd have to 
remember to call unload().

SWFLoader SWFs don't unload until you load some other SWF with it or set its 
source to null.

If you've loaded a module SWF and haven't created an instance of the module 
class and have no other references to a moduleInfo, that module is likely to be 
collected pretty quickly.  Is that what you're seeing?  Otherwise, someone 
should have to call unload() first.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Josh 
McDonald
Sent: Friday, September 12, 2008 5:59 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: SWFLoader unloading, whats the trick?

Alex,

Do you know if Class instances get GC'd? (as in instances of Class, not general 
objs) I've noticed Player likes to collect SWFs awfully quickly (even when 
there's *no* allocation), but I haven't done any experiments to verify the 
classes get collected as well (or not) yet though, but it might be weird if 
you're expecting a class to be around in order to getDefinitionForName() it 
later :)

-Josh
On Sat, Sep 13, 2008 at 7:19 AM, Alex Harui [EMAIL PROTECTED]mailto:[EMAIL 
PROTECTED] wrote:

The Flex Profiler will tell you if you have other stuff that isn't being 
cleaned up.  I posted on my blog some ways to use it.  FP10 fixes many issues 
with SWFs not unloading.  A test using the release build on a non-debugger 
player is the best way to see if you are getting false-positives.



From: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com 
[mailto:flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com] On 
Behalf Of djepyon
Sent: Friday, September 12, 2008 12:11 PM
To: flexcoders@yahoogroups.commailto:flexcoders@yahoogroups.com

Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?



Ok, I went ahead and added some manual clean up to the swf's I was
loading using Event.UNLOAD. I'm basically setting values to null so
they become candidates for garbage collection. Regardless, each time I
load a file into SWFLoader the mem usage still jumps until the app
becomes sluggish and ultimately unresponsive. I noticed the following
bug (http://bugs.adobe.com/jira/browse/SDK-13097) and I'm assuming
that is the issue I'm having.

As I workaround I'm loading a single swf into SWFLoader and then
having the loaded swf handle the loading of other external swf files
itself. The class for something like this is as such:

package {

import flash.display.MovieClip;

import flash.display.Loader;
import flash.net.URLRequest;

import flash.events.Event;
import flash.events.ProgressEvent;

public class LoaderSWF extends MovieClip{

private var loader:Loader;

public function LoaderSWF() : void {

loader = new Loader();

addChild(loader);

}

public function loadSWF(path){

trace(loadSWF(, path,  ));

var r:URLRequest = new URLRequest();
r.url = path;

loader.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,
progressHandler);
loader.load(r);

}

private function progressHandler(event:ProgressEvent) : void {

trace(bytesLoaded= + event.bytesLoaded +  bytesTotal= +
event.bytesTotal);

}

}

}

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

 Each SWF really should stop its own audio and clean up. Trying to
clean up on a SWFs behalf is likely a maintenance issue.

 From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com 
 [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com]
On Behalf Of djepyon
 Sent: Wednesday, September 10, 2008 8:01 AM
 To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com
 Subject: [flexcoders] Re: SWFLoader unloading, whats the trick?


 Alex thanks for the additional info.

 swfloader.content.stop() prior to setting a new source in this case
 managed to stop the next swf at the beginning once it loaded. Not sure
 why this happened.

 I did a bit of testing here and as far as I can tell when a
 MovieClip's loaderInfo dispatches an Event.UNLOAD the MovieClip itself
 has already been de-referenced.

 The timeline audio continues to play however. I've managed to fix this
 problem (although this seems a bit of a hack) by calling
 SoundMixer.stopAll() in the unload handler. I somehow doubt that this
 actually deletes the Sound objects that were created so my guess is
 that this could cause a big leak if 

RE: [flexcoders] Differences between AIR html and Flex

2008-09-12 Thread Alex Harui
Not sure what you saw, but if you don't use any AIR features 
(NativeApplication, File System access, ClipBoard, etc) then the same SWF will 
run on the desktop and browser.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of timgerr
Sent: Friday, September 12, 2008 8:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Differences between AIR html and Flex


Hello all,
I have been programming in flex for about 6 months now and A friend
just showed me something cool. He was able to run an AIR app locally
and within a web page.

Can I create Air apps that run on both HTML web pages and locally???

Thanks for the help,
Timgerr



RE: [flexcoders] about keyboard operation in flex

2008-09-12 Thread Alex Harui
That is a limitation of the browsers.  They control focus and a click is 
required.  Some folks have done extensive work to capture keystrokes in 
javascript and forward them to the player, but most folks simply put up some UI 
to encourage users to click on the app.

From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of qiyadsy
Sent: Friday, September 12, 2008 7:48 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] about keyboard operation in flex


I want only use keyboard to operation in flex.
Just as Global keyboard event
handling(http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdetailsproductId=2postId=304)

But,have some problem ,it need click anywhere in the application and
then press some keys.But i don't want click anywhere ,direct operate
with keyboard.

How I can deal it ? Thanks.