RE: [flexcoders]Does the Accordion have an Icon Function?

2006-12-14 Thread Belinda Nambooze
There is a workaround for the bug mentioned below, and that's to use the
AccordionHeader type selector instead of setting headerStyleName.

 

Thanks,

Belinda

Flex SDK QA

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of dorkie dork from dorktown
Sent: Wednesday, December 13, 2006 3:44 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders]Does the Accordion have an Icon Function?

 

Darron, I think its the same one. I'll report it here for others.
Basically, if you set the Accordion headerStyleName property to a
defined class selector then the behavior you describe occurs. If you
remove the headerStyleName attribute or remove the class definition then
it works. 

Dustin, I like that method. :) 

Here is example code to compare against:

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

mx:Script
![CDATA[

[Bindable]
[Embed(source=images/Box.png)] 
public var boxIcon:Class;

[Bindable]
[Embed(source=images/CheckBox.png)]
public var checkboxIcon:Class;

public function init():void {

accordion1.getHeaderAt(0).setStyle('icon', boxIcon);
accordion1.getHeaderAt(1).setStyle('icon', checkboxIcon);
accordion1.getHeaderAt(2).setStyle('icon', checkboxIcon);

}

]]
/mx:Script

mx:Style
.myAccordionHeaderStyle {

}
/mx:Style
mx:Box width=380 horizontalAlign=left verticalGap=12 
verticalScrollPolicy=off horizontalScrollPolicy=off
!-- REMOVE headerStyleName property and test again-- 
mx:Accordion id=accordion1 width=100% color=#00
fontFamily=menuHeaderFont 
fontSize=14 resizeToContent=true fontWeight=bold 
creationPolicy=all 
historyManagementEnabled=false
headerStyleName=myAccordionHeaderStyle 
paddingRight=0
mx:VBox label=HEADER ONE width=100%
verticalScrollPolicy=off
mx:Text
mx:htmlText 
![CDATA[
Here is some test text. 
]]
/mx:htmlText
/mx:Text
   /mx:VBox
mx:VBox label=HEADER TWO width=100% verticalGap=47
mx:Text
mx:htmlText
![CDATA[
Here is some test text. 
]]
/mx:htmlText
/mx:Text
   /mx:VBox
mx:VBox label=HEADER THREE width=100%
verticalScrollPolicy=off 
mx:Text
mx:htmlText
![CDATA[
Here is some test text. 
]]
/mx:htmlText 
/mx:Text
/mx:VBox
/mx:Accordion
/mx:Box
/mx:Application



On 12/13/06, Darron J. Schall [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

I think you've actually stumbled on a bug that I submitted a couple
months ago -- where the icon set in the last accordion header gets
applied to all previous headers, or something like that.  I narrowed it
down to a reproducible test case, and I believe Adobe was able to fix it

(as part of the upcoming 2.0.1 release).

I don't have that test case anymore, but it sounds like exactly the same
thing I ran into when I filed the bug.  I don't remember if there was a
workaround or not... sorry. 

-d

dorkie dork from dorktown wrote:

 Er, I created a simplified example and got that to work. So there must
 be some gremlins in my code somewhere. I checked the source and did
 not see an iconFunction. 

 On 12/13/06, * dorkie dork from dorktown*
 [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED] 
 mailto: [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote:

 Does the Accordion have an iconFunction? Similar to the
 iconFunction used in the Tree and List controls.

 For example, this code is supposed to set the icon for headers 0 
 and 1 but each statement sets the icon across all headers.

 [Bindable]
 [Embed(source=images/Company-Icon.png)]
 public var companyIcon:Class;

 [Bindable]
 [Embed(source=images/Market-Icon.png)]
 public var marketIcon:Class;

 // in init
 navigationMenu.getHeaderAt (0).setStyle('icon', companyIcon);
 navigationMenu.getHeaderAt(1).setStyle('icon', marketIcon);







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


(Yahoo! ID required)

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



 

 



RE: [flexcoders] another bug in tree... or am I missing something

2006-12-12 Thread Belinda Nambooze
Hi Hank,

I'm not able to reproduce the issue where selectedIndex doesn't work.
Could you email me a code snippet showing the bug?

 

Thanks,

Belinda

Flex QA SDK

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of hank williams
Sent: Tuesday, December 12, 2006 10:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] another bug in tree... or am I missing
something

 

Problem solved.

Someone offlist sent me a solution, which appears to be that setting
selectedIndex doesnt work, but setting selectedItem does work.

So the work around for the bug is dont use selectedIndex.

Regards,
Hank

On 12/12/06, hank williams [EMAIL PROTECTED]
mailto:hank777%40gmail.com  wrote:
 By the way, again, just to be clear, the selectedIndex setter seems to
 inherit from ListBase.as instead of from something in the tree family.

 Regards,
 Hank

 On 12/12/06, hank williams [EMAIL PROTECTED]
mailto:hank777%40gmail.com  wrote:
 
 
  On 12/12/06, Michael Schmalle [EMAIL PROTECTED]
mailto:teoti.graphix%40gmail.com  wrote:
  
   Hi,
  
   I think you should take a look at the;
  
   import mx.controls.treeClasses.HierarchicalViewCursor;
   import
  mx.controls.treeClasses.HierarchicalCollectionView;
  
   classes
  
   I don't think the 'underpinnings' are incorrect. It's just
conceptually
  there are differences that present themselves in that collection
view.
 
 
  The underpinnings are incorrect in that if you trace the code that
is
  invoked when you set selectedIndex you end up in commitSelectedIndex
and the
  iterator and specifically the cursor that is used is not a
  HierarchicalViewCursor, but a flat view cursor that in no way
acknowledges
  the hierarchical structure of the tree. I have just single stepped
through
  the code and it is clear that at least the selectedIndex setter has
no idea
  that it is a hierarchical tree as opposed to a list.
 
  
   As far as your problem, I haven't run into that.
 
  To bad. It would be helpful to hear from someone who knows what the
deal is
  with this. Its quite frustrating.
 
  
   As far as your 'issue' about the openItems;
  
   I think you are looking at it backwards. You are thinking open
items means
  closed items as well.
 
 
  No, my 'issue' is not be cause I am looking at it backwards. I am
looking at
  it the only logical way to look at it. OpenItems is not a method, it
is a
  property. Properties reflect state. This means that openItems should
be a
  list of all and *only* open items. And since it is a property that
can be
  read and written we should be able to set the list of which items
are open
  and which are closed. If they intended to make it work such that
setting
  openItems just adds to a list of open items then they should have
made it a
  function and not property.
 
  
   I don't see anything wrong in getting a list of open items and
taking
  'out' the items you don't want open. THus creating closed items.
 
 
  There is nothing wrong with this if openItems is a function and not
a
  read/write property. As a read/write property this is poor design.
 
  
   The point of the openItems is to collect a list and use it with
their
  collection view. There is nothing in the model that says 'isOpen'.
So you
  have to bend the way you think and say, I have these open items now,
I am
  taking items out of the open items, now these items are closed.
 
  Again, this may be how they were thinking when they designed it. But
if so,
  first it should be documented, and second it should be a function.
 
  Regards,
  Hank
 
 


 



RE: [flexcoders] DepthColors Bug GMC2

2006-12-11 Thread Belinda Nambooze
Yes, please use the prerelease forum for questions regarding GMC2.

 

As for the depth color issue, we have logged it and are looking into
fixing it for a future release. Any rows that don't initially have nodes
will be drawn with black background color. Possible workaround is to set
Tree's rowCount to the number of rows containing nodes when the Tree is
initially drawn.

 

Thanks,

Belinda

Flex SDK QA

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Anatole Tartakovsky
Sent: Saturday, December 09, 2006 6:40 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] DepthColors Bug GMC2

 

This might be a wrong forum. Have you tried this (guessing)

depthColors={[0xFFCC00,0xFF,0xEFEFE4]}

 

Regards,

Anatole Tartakovsky

www.faratasystems.com http://www.faratasystems.com 

 

On 12/9/06, Battershall, Jeff [EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]  wrote: 

Hello All,

Setting the depthColors array in Flex Builder 2.01 GMC2 makes the
background of the tree component turn black, and NOTHING I've been able
to figure out changes the behavior.

I'm able to produce this behavior consistently. Here's a code sample: 

mx:XMLList id=treeData
node label=Mail Box
node label=Inbox
node label=Marketing/
node label=Product Management/ 
node label=Personal/
/node
node label=Outbox
node label=Professional/
node label=Personal/
/node
node label=Spam/ 
node label=Sent/
/node
/mx:XMLList

mx:Tree 
width=300
height=300
dataProvider={treeData}
depthColors=[0xFFCC00,0xFF,0xEFEFE4] 
showRoot=false
labelField=@label/ 

Any insight appreciated.

Jeff Battershall
Application Architect
Dow Jones Indexes
[EMAIL PROTECTED] mailto:jeff.battershall%40dowjones.com 
(609) 520-5637 (p)
(484) 477-9900 (c)

 

 



RE: [flexcoders] Re: Drag Selection of Multiple Objects in TileList HUGE BUG!

2006-07-19 Thread Belinda Nambooze












We were able to reproduce the bug using a
simple TileList. Thanks.



Belinda

Flex SDK QA











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of Matt Chotin
Sent: Wednesday, July 19, 2006
4:17 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Drag
Selection of Multiple Objects in TileList  HUGE BUG!













How did you construct the tile list? Is it using icons for
the images or is that an inline renderer? 



Ill have someone look.



Matt











From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf
Of rabbihamster
Sent: Wednesday, July 19, 2006
1:38 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Drag
Selection of Multiple Objects in TileList  HUGE BUG!











Matt,

here is the sample:
http://www.oscartrelles.com/projects/flex/bin/main.html

here are the exact problems you will notice:

1. No drag-selection ( just shift-control-click )

2. Dragging multiple items is buggy: 
- Items in a row appear superimposed 
- Distance between visible items and mouse cursor is misleading 
- Insertion line needs to be vertical 

if there is any way to fix these - please let us know asap because we
need to make a HUGE dicision on which software strategy to go with.

thanks in advance.

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

 If you can send us a test case at http://www.adobe.com/go/wish
we can
 look into it. I don't remember any known TileList multi-select DD
 issues but I'm sure there could be something. It may be that if we
 investigate we can also provide a workaround or tell you how to patch
 your framework source. 
 
 
 
 We removed multiple selection in Trees for now because it was causing
 buggy behavior that we didn't have time to fix. In deciding whether we
 should delay shipping over it we looked at some common Tree use-cases
 (see Windows Explorer, Outlook) and realized that multiple selection is
 far less common in Trees than it is in the other List/DataGrid classes.
 Once again, you can use the wish form to express your displeasure :-)
 
 
 
 I'd certainly hope that these aren't enough to cause you to think that
 you have to work from scratch. As I said, the framework is available
 for you to play with, seems like a much better starting point if you ask
 me.
 
 
 
 Matt
 
 
 
 
 
 From: [EMAIL PROTECTED]ups.com
[mailto:[EMAIL PROTECTED]ups.com]
On
 Behalf Of rabbihamster
 Sent: Tuesday, July 18, 2006 12:58 PM
 To: [EMAIL PROTECTED]ups.com
 Subject: [flexcoders] Re: Drag Selection of Multiple Objects in TileList
  HUGE BUG!
 
 
 
 ok the unfortunate verdict:
 
 although it is possible to select and drag mulitple items in the tile
 viewer ( via Cntrl+Shift ) the visual feedback is very buggy.
 
 if i select 5 various items.. and drag them - the dragger feedback is
 completely off and irregular - it only shows 2 items being dragged -
 and these items are nowhere near the physical cursor thus confusing
 the user.
 real poor ergonomics people - not ready for consumer use..
 
 must be why they didnt showcase this. hmmm
 
 HEY FLEX ! when will this be fixed??
 next release? whens that?
 
 also whats up with not being able to select multiple treen nodes..
 thats a basic right!.
 
 unfortunately- shortcomings like these is the reason why we are not
 going to develop our new consumer RIA with FLEX2..but will have to
 create it all from scratch. sigh.















__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___






RE: [flexcoders] Tree AllowMultipleSelection Bug

2006-07-14 Thread Belinda Nambooze
AllowMultipleSelection was disabled to work around some Tree issues. It
will be re-enabled in a later release. 

Thanks,
Belinda

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sufibaba
Sent: Thursday, July 13, 2006 4:27 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Tree AllowMultipleSelection Bug

Sorry Adobe Engineers,

I hate to be a bore with bugs...  the Multiple Selection doesn't seem
to be working in this final version. Below is the what's in the flex
docs.

-- Tim

?xml version=1.0?
mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;

mx:Script
![CDATA[

// Initialize the data provider for the Tree.
private function initApp():void {
firstList.dataProvider = treeDP;
}

]]
/mx:Script

mx:XML id=treeDP
node label=Mail
node label=Inbox/
node label=Personal Folder
node label=Demo/
node label=Personal/
node label=Saved Mail/
node label=bar/
/node
node label=Calendar/
node label=Sent/
node label=Trash/
/node
/mx:XML

mx:Tree id=firstList height=200 width=200
showRoot=false
labelField=@label
dragEnabled=true dropEnabled=true dragMoveEnabled=true
allowMultipleSelection=true
creationComplete=initApp();/
/mx:Application










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



 





 Yahoo! Groups Sponsor ~-- 
Something is new at Yahoo! Groups.  Check out the enhanced email design.
http://us.click.yahoo.com/SISQkA/gOaOAA/yQLSAA/nhFolB/TM
~- 

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

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

* 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: Tree and allowMultipleSelection functionality not working

2006-07-05 Thread Belinda Nambooze










AllowMultipleSelection was disabled in the
released version of Flex to work around some issues with Tree, but will be re-enabled
in a future release. 



Belinda











From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Jason Hawryluk
Sent: Saturday, July 01, 2006
12:49 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: Tree
and allowMultipleSelection functionality not working





I'm guessing bug here. Most definitely.





Jason











-Message d'origine-
De: flexcoders@yahoogroups.com
[mailto:flexcoders@yahoogroups.com]De la part de Renaun Erickson
Envoyé: samedi 1 juillet
2006 18:47
À: flexcoders@yahoogroups.com
Objet: [flexcoders] Re: Tree
and allowMultipleSelection functionality not working



So the next question is this is a bug? or a very
confusing feature?

Renaun

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

 Didn't work for me. Nor did the Help Example: Tree Control.
 
 -TH
 
 --- In [EMAIL PROTECTED]ups.com,
Renaun Erickson renaun@ 
 wrote:
 
  This is with Flex 2 released version.
  
  Will someone please run the code below and tell me if the
  allowMultipleSelection=true works for you?
  
  It should allow you to select multiple items in the Tree, at least
  this is what I get from all the documentation?
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml
  layout=absolute
  mx:Script
  ![CDATA[
  import mx.collections.ArrayCollection;
  private var dp:Array = ([
  {label:First, data:1},
  {label:Second, data:2},
  {label:Third, data:3},
  {label:Fourth, data:4},
  ]); 
  ]]
  /mx:Script
  mx:Tree 
  id=firstList 
  dataProvider={ new ArrayCollection( dp ) }
  allowMultipleSelection=true 
  height=100% width=300/
  /mx:Application
 












__._,_.___





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








   






  
  
SPONSORED LINKS
  
  
  

Web site design development
  
  
Computer software development
  
  
Software design and development
  
  


Macromedia flex
  
  
Software development best practice
  

   
  







  
  
  YAHOO! GROUPS LINKS



  Visit your group "flexcoders" on the web.
  To unsubscribe from this group, send an email to:[EMAIL PROTECTED]
  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.



  






__,_._,___





RE: [flexcoders] Flex 2.0: SharedObject

2006-03-16 Thread Belinda Nambooze
Both those issues were logged as bugs and have since been fixed. They
should be working in beta2. 

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of tyombria
Sent: Thursday, March 16, 2006 12:02 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flex 2.0: SharedObject


Hello!

I have a problem with a SharedObject.
When call 'flush()' method of a SharedObject instance, file *.sol is 
not created immediately. It's created only when close app. I've 
checked it up. But in doc it's said the file must be created 
immediately.

Also 'clear()' method clears SharedObject data, but doesn't delete sol 
file.

Is it a bug or it's ok?





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



 





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

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

* 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] identity tree level when on click ?

2006-03-15 Thread Belinda Nambooze
After drilling down with the engineer, came up with this hack:

TreeListData(IDropInListItemRenderer(tree.listItems[event.rowIndex][0]).
listData).depth;

Make sure you import mx.controls.treeClasses as well as
mx.controls.listClasses;


We're currently working on creating or exposing API's that should make
this easier in the future. 

Belinda

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Matt Chotin
Sent: Tuesday, March 14, 2006 10:55 PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] identity tree level when on click ?

In 1.5 you could just call getParent() until it's null and count.  2.0
it's harder if you don't know your data structure.  I was just talking
to the engineer who's working on Tree and he's investigating some
approaches.

Matt

-Original Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of sinacapho
Sent: Monday, March 13, 2006 6:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] identity tree level when on click ?

Dear all,
  it that any possible way to find our the node level on a
cellpressed node in the tree controls?

thx
capho






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



 




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



 





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

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

* 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/