[flexcoders] DragEnabled causing Error 1010

2006-12-23 Thread Mike Weiland
Hi all,

I have a situation where I have a tilelist set to allow the dragging of it's
images to another tilelist. It works fine if the items are dragged one at a
time. However, if multiple images are selected and dragged then I get an
error 1010. Here's how to reproduce it:

1. Go to: http://tours.aspentreemedia.com/busted.html
2. In the tilelist select all the images
3. Drag them to the horizontal tile list.
4. You should get the following error:
TypeError: Error #1010: A term is undefined and has no properties.
at 
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::configur
eScrollBars()
at 
mx.controls.listClasses::ListBase/mx.controls.listClasses:ListBase::updateDi
splayList()
at 
mx.controls.listClasses::TileBase/mx.controls.listClasses:TileBase::updateDi
splayList()
at mx.core::UIComponent/validateDisplayList()
at mx.managers::LayoutManager/::validateDisplayList()
at mx.managers::LayoutManager/::doPhasedInstantiation()
at mx.managers::LayoutManager/validateNow()
at mx.effects::Tween$/::timerHandler()
at flash.utils::Timer/flash.utils:Timer::_timerDispatch()
at flash.utils::Timer/flash.utils:Timer::tick()

If I drag a few at a time I can't get the error or if I select all items and
then scroll back up and then drag and drop it will work! Also, if I don't
enable DragMoveEnabled the drag and drop works, but that's not the behavior
I want.

Smells like a bug to me,

Mike Weiland

-
Mike Weiland
Aspen Tree Media
(877)659-1652 | FAX: (512)828-7105
http://www.AspenTreeMedia.com
http://www.CertificateCreator.com - Create & Print Awards and Certificates






Re: [flexcoders] Re: Flex help on IRC

2006-12-23 Thread Willy Ci

great ideal,
but not sure if my company's firewall will let me or not,
they don't even let me use xbox live at work, :("""



On 12/23/06, pk_wasp <[EMAIL PROTECTED]> wrote:


  Hey cool idea

Has anyone brough up the idea of having a permanent adobe
connect/breeze session for flex developers to go to to chat, exchange
stuff etc?

--- In flexcoders@yahoogroups.com , "dorkie
dork from dorktown"
<[EMAIL PROTECTED]> wrote:
>
> bump.
>
> On 11/28/06, Andrew D. Goodfellow <[EMAIL PROTECTED]> wrote:
> >
> > Great idea Louie! I've been using this channel for about a day now
and I'm
> > finding it very useful.
> >
> > I'd definitely encourage everyone on the list to come and
participate, or
> > at least lurk. :o)
> >
> > -Andy
> >
> >
> > On 11/27/06, Louie Penaflor <[EMAIL PROTECTED] > wrote:
> > >
> > > Hey everyone,
> > >
> > >
> > >
> > > For those of you who would like to attempt a
different way
> > > of getting help, we have started a flex channel on IRC Chat called
> > > #flex. It's on efnet. Hope to see you there.
> > >
> > >
> > >
> > > Louie
> > >
> > >
> > >
> > >
> >
> >
>

 





--
Willy

--
maybe today is a good day to write some code,
hold on, late me take a nap first  ... Zzzz
--


[flexcoders] Tree: Resetting openItems after dataProvider change

2006-12-23 Thread Oliver Merk
I've been wrestling with this for over a week and haven't found a
solution to this problem. Hoping someone can help.

I have a tree control that, at runtime, changes its dataProvider. In
this case, I'm switching languages and the dataProvider format is
XMLListCollection. I'd like to restore the open items of the tree
after the dataProvider has changed. I tried using the openItems
property, but openItems stores a list of XML objects from the original
dataProvider.

When the provider changes, the XML objects are of course different,
and trying to reset the openItems property fails. What I really need
is an "openIndices" property that is not tied to the XML data in the
provider.

The example Adobe gives
(http://www.adobe.com/devnet/flex/quickstart/working_with_tree/) is
not helpful since they switch between two dataProviders with the same
content and they're using an ArrayCollection (I'm using an
XMLListCollection).

I've tried walking the tree but since the new Flex 2 tree control
limits direct access to nodes, I could not find a way to detect the
open indexes of the tree directly.

Any ideas?

Thanks,
Oliver



[flexcoders] Re: Cairngorm Store, Best Practice Question: Containers

2006-12-23 Thread Bjorn Schultheiss
If your considering optimization it is important to understand how
your containers measure function works. I suppose if you have
containers 15 levels deeps or more with each having relative,
perecntage based values set, it might tax on slower processors. 

Tims and Ralfs advice is gold.
Just don't add any unnecessary containers and be aware how the
containers handle there measuring.

Bjorn


--- In flexcoders@yahoogroups.com, "Tim Hoff" <[EMAIL PROTECTED]> wrote:
>
> 
> Hi Kenny,
> 
> I agree with Ralf.  For larger projects, that use a modular structure,
> there will be nesting of containers (components).  If you're worried
> about performance, opt to use the lightest-weight container that is
> necessary for the case (i.e. Canvas over Panel).  Where possible, you
> can also set the width and height of containers and controls explicitly;
> to reduce the calculations for measure and layout.
> 
> -TH
> __
> 
> Tim Hoff
> Cynergy Systems, Inc.
> http://www.cynergysystems.com 
> 
> --- In flexcoders@yahoogroups.com, "Ralf Bokelberg" 
> wrote:
> >
> > What would be the alternative? I mean, if you need nested containers,
> you
> > need them. Our projects are nested 15 levels deep and more and i never
> found
> > that performance is bad. Premature optimization is the root of all
> evil :)
> > Cheers,
> > Ralf.
> >
> >
> > On 12/23/06, lostinrecursion k.silans@ wrote:
> > >
> > > Hi all,
> > >
> > > Just a quick question about the Cairngorm Store. It is my
> > > understanding that the application was constructed to showcase some
> > > of the best practices in developing a Cairngorm project.
> > >
> > > With that in mind, I took note of some container nesting in the
> > > Store. I am a little confused because in some performance articles
> it
> > > specifically advises against the use of nested containers.
> > >
> > > I ask because I have some instances where a ViewStack in a panel
> > > would be ideal: For example, I have an application where access
> level
> > > controls the view inside a Control Panel. I'd like to bind a
> > > ViewStack selected index to the access level in my ModelLocator.
> > >
> > > I also would like to utilize a little nesting with Panels inside a
> > > VBox, etc.
> > >
> > > What's the jury say on this? Is there a happy medium on the subject?
> > >
> > > Thanks for any advice
> > > -Kenny/LIR
> > >
> > >
> > >
> >
> >
> >
> > --
> > Ralf Bokelberg ralf.bokelberg@
> > Flex & Flash Consultant based in Cologne/Germany
> >
>




[flexcoders] Re: Cairngorm Store, Best Practice Question: Containers

2006-12-23 Thread Tim Hoff

Hi Kenny,

I agree with Ralf.  For larger projects, that use a modular structure,
there will be nesting of containers (components).  If you're worried
about performance, opt to use the lightest-weight container that is
necessary for the case (i.e. Canvas over Panel).  Where possible, you
can also set the width and height of containers and controls explicitly;
to reduce the calculations for measure and layout.

-TH
__

Tim Hoff
Cynergy Systems, Inc.
http://www.cynergysystems.com 

--- In flexcoders@yahoogroups.com, "Ralf Bokelberg" <[EMAIL PROTECTED]>
wrote:
>
> What would be the alternative? I mean, if you need nested containers,
you
> need them. Our projects are nested 15 levels deep and more and i never
found
> that performance is bad. Premature optimization is the root of all
evil :)
> Cheers,
> Ralf.
>
>
> On 12/23/06, lostinrecursion [EMAIL PROTECTED] wrote:
> >
> > Hi all,
> >
> > Just a quick question about the Cairngorm Store. It is my
> > understanding that the application was constructed to showcase some
> > of the best practices in developing a Cairngorm project.
> >
> > With that in mind, I took note of some container nesting in the
> > Store. I am a little confused because in some performance articles
it
> > specifically advises against the use of nested containers.
> >
> > I ask because I have some instances where a ViewStack in a panel
> > would be ideal: For example, I have an application where access
level
> > controls the view inside a Control Panel. I'd like to bind a
> > ViewStack selected index to the access level in my ModelLocator.
> >
> > I also would like to utilize a little nesting with Panels inside a
> > VBox, etc.
> >
> > What's the jury say on this? Is there a happy medium on the subject?
> >
> > Thanks for any advice
> > -Kenny/LIR
> >
> >
> >
>
>
>
> --
> Ralf Bokelberg [EMAIL PROTECTED]
> Flex & Flash Consultant based in Cologne/Germany
>




[flexcoders] Re: Flex help on IRC

2006-12-23 Thread pk_wasp
Hey cool idea

Has anyone brough up the idea of having a permanent adobe
connect/breeze session for flex developers to go to to chat, exchange
stuff etc?

--- In flexcoders@yahoogroups.com, "dorkie dork from dorktown"
<[EMAIL PROTECTED]> wrote:
>
> bump.
> 
> On 11/28/06, Andrew D. Goodfellow <[EMAIL PROTECTED]> wrote:
> >
> > Great idea Louie! I've been using this channel for about a day now
and I'm
> > finding it very useful.
> >
> > I'd definitely encourage everyone on the list to come and
participate, or
> > at least lurk. :o)
> >
> > -Andy
> >
> >
> > On 11/27/06, Louie Penaflor <[EMAIL PROTECTED] > wrote:
> > >
> > >Hey everyone,
> > >
> > >
> > >
> > > For those of you who would like to attempt a
different way
> > > of getting help, we have started a flex channel on IRC Chat called
> > > #flex.  It's on efnet.  Hope to see you there.
> > >
> > >
> > >
> > > Louie
> > >
> > >
> > >
> > >
> > 
> >
>




[flexcoders] Re: ItemRenderers and Events

2006-12-23 Thread Matt Maher
Wonderful reply Tracy. Thanks. Bubbling the event, that's the perfect tip.

As for not being able to walk the items in the list, that seems
counter intuitive to me, but okay. As long as I know the behavior I
can find a way and stop pulling my hair out wondering why I can't do
what Flex doesn't do in the first place.

Thanks a ton for the clear and very helpful reply.

-M@

--- In flexcoders@yahoogroups.com, "Tracy Spratt" <[EMAIL PROTECTED]> wrote:
>
> If you are using dispatchEvent(new Event("change",true)) the second
> argument tells the event to "bubble" and you should be able to listen
> for it anywhere in the displayList, including the List, and Application.
> 
>  
> 
> However, it sounds suspiciously like you are not having your checkbox
> renderer update the dataProvider.  This is required. You cannot "walk
> any array of elements inside the list"  You must look at the
> dataProvider only.  The visual elements, including the checkboxes cease
> to exist when they are scrolled.
> 
>  
> 
> Tracy  
> 
>  
> 
> 
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of Matt Maher
> Sent: Friday, December 22, 2006 4:07 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] ItemRenderers and Events
> 
>  
> 
> I'm having troubles with capturing events from an item in a List which
> uses an itemRenderer. 
> 
> Basically I'm overriding a multi-select List to have a checkbox in it
> with a simple itemRenderer. The item renderer is handling the clicks
> and managing the checkbox just fine. It also dispatches an event when
> clicked.
> 
> But when it comes time to listen to that event I don't know who to ask
> to listen to it. The component which included the List doesn't seem to
> care, and the List item itself surely doesn't seem to be attachable...
> 
> Another workaround was to capture all clicks on the LIST itself, then
> walk the itemRendered elements, asking each one if it was checked or
> not. That one baffles me. I cannot seem to walk any array of data
> elements inside the list. I can see the dataProvider array in the
> debugger, but I need the "itemRenderer" list so I have reference to
> the checkbox element.
> 
> This seemed so simple at first. Now I'm just flailing around.
>




Re: [flexcoders] How to align text in middle in a row ?

2006-12-23 Thread dorkie dork from dorktown

This works with List components and it should work with the datagrid.


On 12/23/06, eren bali <[EMAIL PROTECTED]> wrote:


ok than set your itemrenderer to a custom hbox like this:


   
   


i did not compile this, do nop copy/paste


On 12/19/06, arpan srivastava <[EMAIL PROTECTED]> wrote:
>
>   textAlign attribute will place the text in horizontally in center , I
> want to place it
> vertically in center of the row.
>
> it's like in a text box text always starts from top left corner,
> i want to start it from vertically middle of the text box
>
> - Original Message 
> From: david_gal-reyniez <[EMAIL PROTECTED]>
> To: " flexcoders@yahoogroups.com" 
> Sent: Monday, December 18, 2006 9:11:13 PM
> Subject: RE: [flexcoders] How to align text in middle in a row ?
>
>  Hi Arpan,
>
> There is an the attribute which is named "textAlign" for the Object
> "DataGridColumn" .
> Is that the information you need?
>
> David
>
>  --
> *De :* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com]
> *De la part de* arpan srivastava
> *Envoyé :* lundi 18 décembre 2006 16:32
> *À :* [EMAIL PROTECTED] ups.com
> *Objet :* Re: [flexcoders] How to align text in middle in a row ?
>
>   Sorry,
>
> I want to place the text vertically aligned in the middle.
>
> - Original Message 
> From: eren bali <[EMAIL PROTECTED] com>
> To: [EMAIL PROTECTED] ups.com
> Sent: Monday, December 18, 2006 7:17:55 PM
> Subject: Re: [flexcoders] How to align text in middle in a row ?
>
>  set that label 100% width, and textAlign="center"
>
> if this does not work use it inside a vbox
>
>
> On 12/18/06, arpan srivastava < [EMAIL PROTECTED] com<[EMAIL PROTECTED]>>
> wrote:
> >
> >Hi,
> > How can i center the text horizontally inside a row in a datagrid.
> > I have also created an itemrenderer which extends Label, but you can only
> > align the text vertically. I want it to be in center of the row.
> >
> >  _ _ _ _ __
> > Do You Yahoo!?
> > Tired of spam? Yahoo! Mail has the best spam protection around
> > http://mail. yahoo.com
> >
> >
>
>
> --
> Eren BAL(c)
> Invento Studios
>
>
>  _ _ _ _ __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail. yahoo.com
>
>  * * * * * *
> 
>
>  * * * * * *
> 
>
> Coface facilite les échanges entre les entreprises partout dans le
> monde. Pour cela, elle offre à toutes les entreprises des solutions pour
> gérer, financer et protéger leur Poste clients : information et notation
> mondiale d'entreprises, gestion et recouvrement de créances , affacturage et
> assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et
> AA- par Standard & Poor's.
>
>  Coface facilitates business-to- business trade throughout the world by
> offering companies solutions to help them manage, finance and protect their
> receivables : information and company ratings, receivables management,
> receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3
> by Moody's and AA- by Standard & Poor's.
>
>  * * * * * *
> 
>
>
> __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>


--
Eren BALİ
Invento Studios 



Re: [flexcoders] Cairngorm Store, Best Practice Question: Containers

2006-12-23 Thread Ralf Bokelberg

What would be the alternative? I mean, if you need nested containers, you
need them. Our projects are nested 15 levels deep and more and i never found
that performance is bad. Premature optimization is the root of all evil :)
Cheers,
Ralf.


On 12/23/06, lostinrecursion <[EMAIL PROTECTED]> wrote:


  Hi all,

Just a quick question about the Cairngorm Store. It is my
understanding that the application was constructed to showcase some
of the best practices in developing a Cairngorm project.

With that in mind, I took note of some container nesting in the
Store. I am a little confused because in some performance articles it
specifically advises against the use of nested containers.

I ask because I have some instances where a ViewStack in a panel
would be ideal: For example, I have an application where access level
controls the view inside a Control Panel. I'd like to bind a
ViewStack selected index to the access level in my ModelLocator.

I also would like to utilize a little nesting with Panels inside a
VBox, etc.

What's the jury say on this? Is there a happy medium on the subject?

Thanks for any advice
-Kenny/LIR

 





--
Ralf Bokelberg <[EMAIL PROTECTED]>
Flex & Flash Consultant based in Cologne/Germany


[flexcoders] Cairngorm Store, Best Practice Question: Containers

2006-12-23 Thread lostinrecursion
Hi all,

Just a quick question about the Cairngorm Store. It is my 
understanding that the application was constructed to showcase some 
of the best practices in developing a Cairngorm project.

With that in mind, I took note of some container nesting in the 
Store. I am a little confused because in some performance articles it 
specifically advises against the use of nested containers.

I ask because I have some instances where a ViewStack in a panel 
would be ideal: For example, I have an application where access level 
controls the view inside a Control Panel. I'd like to bind a 
ViewStack selected index to the access level in my ModelLocator.

I also would like to utilize a little nesting with Panels inside a 
VBox, etc.

What's the jury say on this? Is there a happy medium on the subject?

Thanks for any advice
-Kenny/LIR






Re: [flexcoders] How to align text in middle in a row ?

2006-12-23 Thread eren bali

ok than set your itemrenderer to a custom hbox like this:


  
  


i did not compile this, do nop copy/paste


On 12/19/06, arpan srivastava <[EMAIL PROTECTED]> wrote:


  textAlign attribute will place the text in horizontally in center , I
want to place it
vertically in center of the row.

it's like in a text box text always starts from top left corner,
i want to start it from vertically middle of the text box

- Original Message 
From: david_gal-reyniez <[EMAIL PROTECTED]>
To: "flexcoders@yahoogroups.com" 
Sent: Monday, December 18, 2006 9:11:13 PM
Subject: RE: [flexcoders] How to align text in middle in a row ?

 Hi Arpan,

There is an the attribute which is named "textAlign" for the Object
"DataGridColumn" .
Is that the information you need?

David

 --
*De :* [EMAIL PROTECTED] ups.com [mailto:flexcoders@ yahoogroups. com] *De
la part de* arpan srivastava
*Envoyé :* lundi 18 décembre 2006 16:32
*À :* [EMAIL PROTECTED] ups.com
*Objet :* Re: [flexcoders] How to align text in middle in a row ?

  Sorry,

I want to place the text vertically aligned in the middle.

- Original Message 
From: eren bali <[EMAIL PROTECTED] com>
To: [EMAIL PROTECTED] ups.com
Sent: Monday, December 18, 2006 7:17:55 PM
Subject: Re: [flexcoders] How to align text in middle in a row ?

 set that label 100% width, and textAlign="center"

if this does not work use it inside a vbox


On 12/18/06, arpan srivastava < [EMAIL PROTECTED] com<[EMAIL PROTECTED]>>
wrote:
>
>Hi,
> How can i center the text horizontally inside a row in a datagrid. I
> have also created an itemrenderer which extends Label, but you can only
> align the text vertically. I want it to be in center of the row.
>
>  _ _ _ _ __
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>


--
Eren BAL(c)
Invento Studios


 _ _ _ _ __
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail. yahoo.com

 * * * * * *


 * * * * * *


Coface facilite les échanges entre les entreprises partout dans le monde.
Pour cela, elle offre à toutes les entreprises des solutions pour gérer,
financer et protéger leur Poste clients : information et notation mondiale
d'entreprises, gestion et recouvrement de créances , affacturage et
assurance-crédit. Coface est notée AA par Fitch Ratings, Aa3 par Moody's et
AA- par Standard & Poor's.

 Coface facilitates business-to- business trade throughout the world by
offering companies solutions to help them manage, finance and protect their
receivables : information and company ratings, receivables management,
receivables finance and protection. Coface is rated AA by Fitch ratings, Aa3
by Moody's and AA- by Standard & Poor's.

 * * * * * *



__
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 





--
Eren BALİ
Invento Studios