RE: [flexcoders] Styling a list item renderer

2009-03-14 Thread Alex Harui
So if the renderer used say, a style named "aaronRadius" to determine the size 
of the circle, you don't have to change the styleName on the renderer.

If you put a List selector in your styles block with "aaronRadius" in it, it 
should transfer through to the renderer.  You won't be able to use aaronRadius 
in the http://blogs.adobe.com/aharui

-Original Message-
From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Aaron Hardy
Sent: Saturday, March 14, 2009 7:48 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Styling a list item renderer

Thanks for the response Alex. The styles I'm mostly talking about are 
very specific to the item renderer. For example, my renderer has a 
colored circle in it along with a few other things. I'd like to specify 
a radius style that can be a specific radius for one list and a 
different radius for a separate list.

Thanks again for taking the time to participate on the list.

Aaron

Alex Harui wrote:
>
> There isn't a formal way. The styleName property will be assigned the 
> List (actually an inner content pane), but I think after it has been 
> added to the content pane you can reset it, like in createChildren or 
> commitProperties. Normally, all of the styles of a renderer are 
> supplied by styles set on the List. Which styles would you want to 
> apply to List that are different from ones you'd want to apply to the 
> renderer?
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui 
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> *On Behalf Of *Aaron Hardy
> *Sent:* Saturday, March 14, 2009 10:19 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Styling a list item renderer
>
> Hey flexers,
>
> What's the formal way to set a styleName to a list item renderer? It
> seems like ListBase would have an itemRendererStyleName of some sort,
> but I have yet to discover it. I realize in the renderer class
> constructor I could do something like this.styleName = 'mystyle'; but it
> doesn't seem flexible enough. What if I want to use the same renderer
> in two different lists, but styled differently? I'm just thinking
> there's got to be a better way that I'm missing.
>
> Thanks everyone.
>
> Aaron
>
> 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! 
Groups Links





Re: [flexcoders] Styling a list item renderer

2009-03-14 Thread Aaron Hardy
Thanks for the response Alex. The styles I'm mostly talking about are 
very specific to the item renderer. For example, my renderer has a 
colored circle in it along with a few other things. I'd like to specify 
a radius style that can be a specific radius for one list and a 
different radius for a separate list.

Thanks again for taking the time to participate on the list.

Aaron

Alex Harui wrote:
>
> There isn’t a formal way. The styleName property will be assigned the 
> List (actually an inner content pane), but I think after it has been 
> added to the content pane you can reset it, like in createChildren or 
> commitProperties. Normally, all of the styles of a renderer are 
> supplied by styles set on the List. Which styles would you want to 
> apply to List that are different from ones you’d want to apply to the 
> renderer?
>
> Alex Harui
>
> Flex SDK Developer
>
> Adobe Systems Inc. 
>
> Blog: http://blogs.adobe.com/aharui 
>
> *From:* flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
> *On Behalf Of *Aaron Hardy
> *Sent:* Saturday, March 14, 2009 10:19 AM
> *To:* flexcoders@yahoogroups.com
> *Subject:* [flexcoders] Styling a list item renderer
>
> Hey flexers,
>
> What's the formal way to set a styleName to a list item renderer? It
> seems like ListBase would have an itemRendererStyleName of some sort,
> but I have yet to discover it. I realize in the renderer class
> constructor I could do something like this.styleName = 'mystyle'; but it
> doesn't seem flexible enough. What if I want to use the same renderer
> in two different lists, but styled differently? I'm just thinking
> there's got to be a better way that I'm missing.
>
> Thanks everyone.
>
> Aaron
>
> 





--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: 
https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
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:flexcoders-dig...@yahoogroups.com 
mailto:flexcoders-fullfeatu...@yahoogroups.com

<*> To unsubscribe from this group, send an email to:
flexcoders-unsubscr...@yahoogroups.com

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



[flexcoders] Interested in getting an update on Maven and Flex

2009-03-14 Thread Matt Chotin
Sonatype has been doing a lot of work on getting good Flex support together
for Maven (and vice versa).  They're holding a meetup where some of the
topics will include Flex.  Check out the details here:
http://www.sonatype.com/people/2009/03/sonatype-maven-meetup-on-march-19th-2
0th/

Matt



Re: [flexcoders] Question from a C developper

2009-03-14 Thread Manish Jethani
You should check out the int, uint, and Number types. The sizes are
predefined in ActionScript 3 and not system dependent (e.g. int is
always 32-bit signed).

Operator overloading is not available. You can create an 'equals'
method and use it like so:

  if (obj1.equals(obj2))
...

You can create a simple class for a "structure":

  public class Contact {
public var name:String;
public var address:String;
public var phone:String;
  }

And afterward you can use it like so:

  var contact:Contact = new Contact();

  contact.name = "Joe";
  contact.address = "Los Angeles";

  addToAddressBook(contact); /* function call */

ActionScript 3 is a pass-by-value language. Everything is passed by
value. When you pass an object reference to a function, the reference
is passed by value -- i.e. the function receives its own copy of the
reference.

If you're thinking of C++ references, this is not it. Think "pointers" instead.

Just to be clear:

  function foo(ref:Object) {
ref.prop1 = "new value";
  }

  var obj:Object = new Object();
  obj.prop1 = "old value;

  foo(obj); // modified

  trace(obj.prop1); // prints "new value"

Lastly, you can convert an int to a Number by simply assigning it.

  var i:int = 10;
  var n:Number = i;

If you're coming straight from a C/C++ background, there's a lot
you'll need to unlearn before you start to get a hang of ActionScript
3. But it's basically in the same family of languages, so you should
have no trouble.

Manish

On Thu, Mar 12, 2009 at 7:57 PM, christophe_jacquelin
 wrote:
> Hello,
>
> I am a C developper and now I am developing in Action Script. I have 
> questions about ActionScript
>
> - Is it possible to define a variable as a long ?
>
> - How to program the overloading of an operator like the equal between 2 
> objects of a same class.
>
> - What is the equivalent of a structure ?
>
> - When I call a function with a parameter, did this parameter is modified 
> when I return from this function ?
>
> - How to convert an int to a Number ?
>
> Thank you,
> Christophe,
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


Re: [flexcoders] Re: Embedding for DataGrid

2009-03-14 Thread Manish Jethani
You can certainly have a scrollbar in a JavaScript-based data grid.
What's more, the scrollbar actually matches in behavior with the one
you use to scroll the page -- it's the same component. So that
provides a more consistent experience.

Some of the reasons I know that people avoid using Flash:

 1.  It tends to "eat" focus. (i.e. you can never tab out of a Flash object)
 2.  It doesn't obey the user's preferences with respect to font size and color
 3.  It's too large -- a Flex application just for a DataGrid would be 200+ KB
 4.  Some users don't have Flash Player, for whatever reasons
 5.  They don't have Flash/Flex development skills on the team

Of course, there will be cases where it's desirable to use a Flex
application embedded in the web page just to show a bunch of tabular
data. I'm sure they're out there. Last I remember, the Flex Developer
Center on the Adobe site used to have that.

Manish

On Sun, Mar 15, 2009 at 2:15 AM, wubac1  wrote:
> Manish,
>
> The javascript-based data grid components don't compare from a usability 
> standpoint (i.e. pagination by button vs. scroll bar).  The Google Reader 
> makes an interesting attempt at a scrollable data grid, but it's still not 
> even close (it lets you scroll a small amount and then hangs for additional 
> loading).  So, while I understand the options exist in javascript, why choose 
> them when Flex provides better usability?  Is it simply a "religious" issue 
> with regard to web design?
>
> --- In flexcoders@yahoogroups.com, Manish Jethani  wrote:
>>
>> On Sat, Mar 14, 2009 at 12:42 PM, wubac1  wrote:
>> > Many websites embed Flash/Flex applications for charts, but I don't see 
>> > embedding for DataGrid.  Given that DataGrid has many usability advantages 
>> > over HTML-based pagination (my assumption), why is it not used for tables 
>> > in javascript-based websites?  If I am overlooking any major examples, 
>> > please provide a link.
>>
>> There are many Ajax-based data grid components out there, and they
>> tend to be the natural choice (same environment). Some of the new
>> websites are also using HTML Canvas for charting -- Wikirank, for
>> example -- so you'll see fewer and fewer sites using Flash just for
>> charts as time goes by.
>>
>> Manish
>>
>> --
>> Manish Jethani
>> www.manishjethani.com
>>
>
>
>
>
> 
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Alternative FAQ location: 
> https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
> Search Archives: 
> http://www.mail-archive.com/flexcoders%40yahoogroups.comYahoo! Groups Links
>
>
>
>


RE: [flexcoders] compatibilty with windows vista home basic

2009-03-14 Thread Alex Harui
Please post more information about the full text of the error and where the 
error was seen (debug console, dialog, server)

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Amplify Mindware
Sent: Saturday, March 14, 2009 10:20 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] compatibilty with windows vista home basic


Hello all,
I am trying to build an application in which i am trying to access a database 
object through blazeds. but i am getting an error as send failed.
I know this is a common problem but my problem is that i have tried the same 
code on windows xp and its working and on vista its giving this error.
If anyone can help me please do.
Thanks & Regards!
Amplify Mindware.



RE: [flexcoders] Styling a list item renderer

2009-03-14 Thread Alex Harui
There isn't a formal way. The styleName property will be assigned the List 
(actually an inner content pane), but I think after it has been added to the 
content pane you can reset it, like in createChildren or commitProperties.  
Normally, all of the styles of a renderer are supplied by styles set on the 
List.  Which styles would you want to apply to List that are different from 
ones you'd want to apply to the renderer?

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of Aaron Hardy
Sent: Saturday, March 14, 2009 10:19 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Styling a list item renderer


Hey flexers,

What's the formal way to set a styleName to a list item renderer? It
seems like ListBase would have an itemRendererStyleName of some sort,
but I have yet to discover it. I realize in the renderer class
constructor I could do something like this.styleName = 'mystyle'; but it
doesn't seem flexible enough. What if I want to use the same renderer
in two different lists, but styled differently? I'm just thinking
there's got to be a better way that I'm missing.

Thanks everyone.

Aaron



RE: [flexcoders] Re: changes on item renderers on a List

2009-03-14 Thread Alex Harui
If you're doing some fancy stuff and don't need virtualization you can just use 
a VBox.  You could probably fake a single selection model with states pretty 
easily.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of gwangdesign
Sent: Saturday, March 14, 2009 10:41 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: changes on item renderers on a List


Hi Tracy,

Thanks for the heads-up. I was aware that list based components recycle their 
item renderers. For example, when you scroll the list, it could break the 
component if there are some renderers that were already in the expanded states;)

I went ahead and did these in my component which subclasses List.

(Dictating states of listItemRenderers in the List subcomponent)
http://maohao.com/blogs/wordpress/TestSimpleZoomableList/bin-release/TestSimpleZoomableList.html

(Letting the individual item renderers to decide which state they want to go)
http://weblogs.macromedia.com/pent/archives/2006/04/a_list_itemrend.html

After all the struggle, I found out there are really _a lot_ going on under the 
hood on a List/ListBase component (this includes "buffering" spare list item 
renderers, managing scrolling, clipping, etc.) When I have some time, I may 
just extend UIComponent, or hunt for some other components that are more 
tolerant of transitions...:)

Thanks and have a nice weekend.

-geng

--- In flexcoders@yahoogroups.com, "Tracy 
Spratt"  wrote:
>
> I think I would approach this by having an "isExpanded" property on the
> dataProvider items, and toggle that property using logic in a change
> handler. The renderer would use that property to set its visual state.
>
>
>
> There won't be any clear relationship between selectedItems and the visual
> renderers.
>
>
>
> Tracy Spratt,
>
> Lariat Services, development services available
>
> _
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On
> Behalf Of gwangdesign
> Sent: Friday, March 13, 2009 6:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] changes on item renderers on a List
>
>
>
> Hi,
>
> I am re-sending this question since this seemingly simple question has been
> taking me a bit much longer than I expected;)
>
> I have a whole bunch of item renderers inside a List (or it lays out and
> scrolls the renderers the way a List does). Here is what I am trying to do:
> I'd like to expand/shrink these item renderers based on whether they are
> newly "selected" or "de-selected". My approach right now is extending List
> class. I listen to ListEvent.CHANGE event and invalidate my component as it
> occurs. I then try to figure out which renderer has been
> selected/deselected... and I can't.
>
> Basically my component is interested in the following actions:
> 1. When "allowMultipleSelection" is true, user selects an item that hasn't
> been selected yet;
> 2. When "allowMultipleSelection" is true, user selects an already selected
> item;
> 3. When "allowMultipleSelection" is false, user selects a new item;
> 4. When "allowMultipleSelection" is false, user selects an already selected
> item;
>
> I poke into the code of mx.controls.ListBase and List and the code is a bit
> over my head right now;)
>
> Any ideas? pseudo code is welcome!
>
> Thanks and have a great weekend!
>
> -geng
>



RE: [flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-14 Thread Alex Harui
Paul, if you would be willing to share the screen shot of your app that you 
showed me, I think most would agree that the popup subsystem in Flex was 
designed exactly for what you want to do, and not a hack.  I hope those that 
vote for your bug describe their scenarios that require it.  Maybe the more 
critical feature Flex needs is an easier way to popup modules.  Until we see 
other scenarios that require distinct tabloops that aren't MDI oriented, I 
don't think this issue will get sufficient priority to be addressed.

Alex Harui
Flex SDK Developer
Adobe Systems Inc.
Blog: http://blogs.adobe.com/aharui

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf 
Of aceoohay
Sent: Saturday, March 14, 2009 10:43 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux


Yes, Alex has been very generous with his time offline, and I will be trying 
his popup approach.

However I believe the popup solution is a hack in the perjorative sense. I 
believe that the flex language should allow at a minimum the ability to define 
a separate tab loop for each module.

Paul

--- In flexcoders@yahoogroups.com, Alex 
Harui  wrote:
>
> Paul and I have discussed off line. He's got a bunch of module panels that we 
> wants to overlap and drag around the screen and have tabbing stay within 
> which ever panel was clicked in and moved on top of the others. Flex has all 
> of this built-in. Once he gets his modules popped up, he should be all set.
>
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
>
> From: flexcoders@yahoogroups.com 
> [mailto:flexcoders@yahoogroups.com] On 
> Behalf Of jim.abbott45
> Sent: Friday, March 13, 2009 3:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
>
>
> Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.
>
> See: https://bugs.adobe.com/jira/browse/SDK-16897
>
> --Jim
>
>
>
> --- In flexcoders@yahoogroups.com, 
> "aceoohay"  wrote:
> >
> > Alex:
> >
> > Neither of these options are practical in the real world (at least my 
> > world) since we have over 135 modules currently, and up to 10 can be loaded 
> > at any one time. We cannot have the cursor willy nilly hopping from module 
> > to module going to panels that are partially obscured by other panels, etc.
> >
> > Does the mx.managers.FocusManager allow the ability to establish multiple 
> > tab loops within a single application?
> >
> > If so, how can this be used to define a tab loop for a single container?
> >
> > If not, is there anything that will allow defining a tab loop for a 
> > container?! With multiple tab loops available on the stage at one time. The 
> > user can use the mouse to jump from module to module.
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com, 
> > Alex Harui aharui@ wrote:
> > >
> > > Setting tabEnabled on anything you don't want to have focus is one 
> > > answer. So is non-modal popups.
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com 
> > > [mailto:flexcoders@yahoogroups.com] 
> > > On Behalf Of aceoohay
> > > Sent: Wednesday, March 11, 2009 8:00 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> > >
> > >
> > > Alex:
> > >
> > > Let me restate my primary question;
> > >
> > &! gt; "...has anyone else tried to create a flex component with ! a separa 
> > te tab loop, if so how did you make it work?"
> > >
> > > Since the documentation seems to indicate that FocusManager will allow 
> > > multiple tab loops that was the approach I was investigating.
> > >
> > > My primary goal, irrespective of how I do it is to create what I call a 
> > > "tab domain." Whatever it is called, what I need is the ability to define 
> > > a captive group of objects from which focus will never leave by pressing 
> > > the tab key.
> > >
> > > Paul
> > >
> >
>



[flexcoders] Re: Embedding for DataGrid

2009-03-14 Thread wubac1
Manish,

The javascript-based data grid components don't compare from a usability 
standpoint (i.e. pagination by button vs. scroll bar).  The Google Reader makes 
an interesting attempt at a scrollable data grid, but it's still not even close 
(it lets you scroll a small amount and then hangs for additional loading).  So, 
while I understand the options exist in javascript, why choose them when Flex 
provides better usability?  Is it simply a "religious" issue with regard to web 
design?

--- In flexcoders@yahoogroups.com, Manish Jethani  wrote:
>
> On Sat, Mar 14, 2009 at 12:42 PM, wubac1  wrote:
> > Many websites embed Flash/Flex applications for charts, but I don't see 
> > embedding for DataGrid.  Given that DataGrid has many usability advantages 
> > over HTML-based pagination (my assumption), why is it not used for tables 
> > in javascript-based websites?  If I am overlooking any major examples, 
> > please provide a link.
> 
> There are many Ajax-based data grid components out there, and they
> tend to be the natural choice (same environment). Some of the new
> websites are also using HTML Canvas for charting -- Wikirank, for
> example -- so you'll see fewer and fewer sites using Flash just for
> charts as time goes by.
> 
> Manish
> 
> -- 
> Manish Jethani
> www.manishjethani.com
>




[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-14 Thread aceoohay
Yes, Alex has been very generous with his time offline, and I will be trying 
his popup approach.

However I believe the popup solution is a hack in the perjorative sense. I 
believe that the flex language should allow at a minimum the ability to define 
a separate tab loop for each module.

Paul

--- In flexcoders@yahoogroups.com, Alex Harui  wrote:
>
> Paul and I have discussed off line.  He's got a bunch of module panels that 
> we wants to overlap and drag around the screen and have tabbing stay within 
> which ever panel was clicked in and moved on top of the others.  Flex has all 
> of this built-in.  Once he gets his modules popped up, he should be all set.
> 
> Alex Harui
> Flex SDK Developer
> Adobe Systems Inc.
> Blog: http://blogs.adobe.com/aharui
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> Behalf Of jim.abbott45
> Sent: Friday, March 13, 2009 3:21 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> 
> 
> Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.
> 
> See:  https://bugs.adobe.com/jira/browse/SDK-16897
> 
> --Jim
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
> >
> > Alex:
> >
> > Neither of these options are practical in the real world (at least my 
> > world) since we have over 135 modules currently, and up to 10 can be loaded 
> > at any one time. We cannot have the cursor willy nilly hopping from module 
> > to module going to panels that are partially obscured by other panels, etc.
> >
> > Does the mx.managers.FocusManager allow the ability to establish multiple 
> > tab loops within a single application?
> >
> > If so, how can this be used to define a tab loop for a single container?
> >
> > If not, is there anything that will allow defining a tab loop for a 
> > container?! With multiple tab loops available on the stage at one time. The 
> > user can use the mouse to jump from module to module.
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
> > >
> > > Setting tabEnabled on anything you don't want to have focus is one 
> > > answer. So is non-modal popups.
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On 
> > > Behalf Of aceoohay
> > > Sent: Wednesday, March 11, 2009 8:00 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> > >
> > >
> > > Alex:
> > >
> > > Let me restate my primary question;
> > >
> > &! gt; "...has anyone else tried to create a flex component with ! a separa 
> > te tab loop, if so how did you make it work?"
> > >
> > > Since the documentation seems to indicate that FocusManager will allow 
> > > multiple tab loops that was the approach I was investigating.
> > >
> > > My primary goal, irrespective of how I do it is to create what I call a 
> > > "tab domain." Whatever it is called, what I need is the ability to define 
> > > a captive group of objects from which focus will never leave by pressing 
> > > the tab key.
> > >
> > > Paul
> > >
> >
>




[flexcoders] Re: changes on item renderers on a List

2009-03-14 Thread gwangdesign
Hi Tracy,

Thanks for the heads-up. I was aware that list based components recycle their 
item renderers. For example, when you scroll the list, it could break the 
component if there are some renderers that were already in the expanded states;)

I went ahead and did these in my component which subclasses List. 

(Dictating states of listItemRenderers in the List subcomponent)
http://maohao.com/blogs/wordpress/TestSimpleZoomableList/bin-release/TestSimpleZoomableList.html

(Letting the individual item renderers to decide which state they want to go)
http://weblogs.macromedia.com/pent/archives/2006/04/a_list_itemrend.html

After all the struggle, I found out there are really _a lot_ going on under the 
hood on a List/ListBase component (this includes "buffering" spare list item 
renderers, managing scrolling, clipping, etc.) When I have some time, I may 
just extend UIComponent, or hunt for some other components that are more 
tolerant of transitions...:)

Thanks and have a nice weekend.

-geng

--- In flexcoders@yahoogroups.com, "Tracy Spratt"  wrote:
>
> I think I would approach this by having an "isExpanded" property on the
> dataProvider items, and toggle that property using logic in a change
> handler.  The renderer would use that property to set its visual state.
> 
>  
> 
> There won't be any clear relationship between selectedItems and the visual
> renderers.
> 
>  
> 
> Tracy Spratt,
> 
> Lariat Services, development services available
> 
>   _  
> 
> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
> Behalf Of gwangdesign
> Sent: Friday, March 13, 2009 6:05 PM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] changes on item renderers on a List
> 
>  
> 
> Hi,
> 
> I am re-sending this question since this seemingly simple question has been
> taking me a bit much longer than I expected;)
> 
> I have a whole bunch of item renderers inside a List (or it lays out and
> scrolls the renderers the way a List does). Here is what I am trying to do:
> I'd like to expand/shrink these item renderers based on whether they are
> newly "selected" or "de-selected". My approach right now is extending List
> class. I listen to ListEvent.CHANGE event and invalidate my component as it
> occurs. I then try to figure out which renderer has been
> selected/deselected... and I can't.
> 
> Basically my component is interested in the following actions:
> 1. When "allowMultipleSelection" is true, user selects an item that hasn't
> been selected yet;
> 2. When "allowMultipleSelection" is true, user selects an already selected
> item;
> 3. When "allowMultipleSelection" is false, user selects a new item;
> 4. When "allowMultipleSelection" is false, user selects an already selected
> item;
> 
> I poke into the code of mx.controls.ListBase and List and the code is a bit
> over my head right now;)
> 
> Any ideas? pseudo code is welcome!
> 
> Thanks and have a great weekend!
> 
> -geng
>




[flexcoders] compatibilty with windows vista home basic

2009-03-14 Thread Amplify Mindware

Hello all,
I am trying to build an application in which i am trying to access a database 
object through blazeds. but i am getting an error as send failed.
I know this is a common problem but my problem is that i have tried the same 
code on windows xp and its working and on vista its giving this error.
If anyone can help me please do.
Thanks & Regards!
Amplify Mindware.


  



[flexcoders] Styling a list item renderer

2009-03-14 Thread Aaron Hardy
Hey flexers,

What's the formal way to set a styleName to a list item renderer?  It 
seems like ListBase would have an itemRendererStyleName of some sort, 
but I have yet to discover it.  I realize in the renderer class 
constructor I could do something like this.styleName = 'mystyle'; but it 
doesn't seem flexible enough.  What if I want to use the same renderer 
in two different lists, but styled differently?  I'm just thinking 
there's got to be a better way that I'm missing.

Thanks everyone.

Aaron


[flexcoders] Re: FocusManager fun... Tab Loops redux

2009-03-14 Thread aceoohay
Jim:

Thanks for reminding me. I posted that bug a while ago.

Paul

--- In flexcoders@yahoogroups.com, "jim.abbott45"  wrote:
>
> Feeling less than ecstatic? Then please VOTE for fixing of bug #16897.
> 
> See:  https://bugs.adobe.com/jira/browse/SDK-16897
> 
> 
> --Jim
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "aceoohay"  wrote:
> >
> > Alex:
> >
> > Neither of these options are practical in the real world (at least my
> world) since we have over 135 modules currently, and up to 10 can be
> loaded at any one time. We cannot have the cursor willy nilly hopping
> from module to module going to panels that are partially obscured by
> other panels, etc.
> >
> > Does the mx.managers.FocusManager allow the ability to establish
> multiple tab loops within a single application?
> >
> > If so, how can this be used to define a tab loop for a single
> container?
> >
> > If not, is there anything that will allow defining a tab loop for a
> container? With multiple tab loops available on the stage at one time.
> The user can use the mouse to jump from module to module.
> >
> > Paul
> >
> > --- In flexcoders@yahoogroups.com, Alex Harui aharui@ wrote:
> > >
> > > Setting tabEnabled on anything you don't want to have focus is one
> answer.  So is non-modal popups.
> > >
> > > Alex Harui
> > > Flex SDK Developer
> > > Adobe Systems Inc.
> > > Blog: http://blogs.adobe.com/aharui
> > >
> > > From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]
> On Behalf Of aceoohay
> > > Sent: Wednesday, March 11, 2009 8:00 AM
> > > To: flexcoders@yahoogroups.com
> > > Subject: [flexcoders] Re: FocusManager fun... Tab Loops redux
> > >
> > >
> > > Alex:
> > >
> > > Let me restate my primary question;
> > >
> > > "...has anyone else tried to create a flex component with a separate
> tab loop, if so how did you make it work?"
> > >
> > > Since the documentation seems to indicate that FocusManager will
> allow multiple tab loops that was the approach I was investigating.
> > >
> > > My primary goal, irrespective of how I do it is to create what I
> call a "tab domain." Whatever it is called, what I need is the ability
> to define a captive group of objects from which focus will never leave
> by pressing the tab key.
> > >
> > > Paul
> > >
> >
>




Re: [flexcoders] Re: Hiding Swf on a website

2009-03-14 Thread Rick Winscot
>From the HTTP Track FAQ section...

There are cases, however, that can not be (yet) handled:

* Flash sites - no full support
* Intensive Java/Javascript sites - might be bogus/incomplete
* Complex CGI with built-in redirect, and other tricks - very
complicated to handle, and therefore might cause problems

So... there are are a lot of variables to reconcile but it boils down to
what I said in the blog post. If your assets have either a relative or
absolute path ­ sooner or later they are candidates for copy. Nay you say?
Check out he specs on Surf Offline - http://www.surfoffline.com/. The only
thing that will be well out of reach for these types of applications is
server-side scripts.

Rick Winscot


On 3/14/09 6:59 AM, "triptonemeister"  wrote:

>  
>  
> 
> If you load swf files from javascript dinamically, width swfObject, the
> htttpTrack don't download it.
> 
> Load swf like this:
> 
> 
> 
>  function loadSwf() {
>  var params = { menu: "false", allowScriptAccess: "always", wmode:
> "transparent" }; 
>  swfobject.embedSWF("foo.swf", 'ic_fl', "100%",  "100%"  , "9.0.0",
> "expressInstall.swf", null, params);
> }
> 
> 
> --- In flexcoders@yahoogroups.com  ,
> "christophe_jacquelin"  wrote:
>> >
>> > Hello,
>> > 
>> > How to hide swf files on a website, preventing their copy by a software
>> like httptrack?
>> > 
>> > Thank you,
>> > Christophe,
>> >
> 
>   
> 
> 
>> 



[flexcoders] Bug/Feature request support...

2009-03-14 Thread aceoohay
I have been attempting to convince ADOBE of the wisdom of adding user defined 
tab loop containers for a while now. 

http://bugs.adobe.com/jira/browse/SDK-16897

I have gotten a few votes but for Adobe to take it seriously it needs more 
support from the community. Please go, take a look, and if you agree please 
vote for it.

The item in question is the ability to define a captive tab loop for a 
container. Flex has the feature implemented for Popup's but you cannot define 
one for a panel, canvas, module, or othe containers. If you create two panels 
with numerous textinput boxes in each, number the tabindexes 1 through n in 
each, it will go from tabinex 1 in panel A to tabindex 1 in panel B, and there 
is no way to control that.

Paul



[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-14 Thread Amy
--- In flexcoders@yahoogroups.com, "rdibona"  wrote:
>
> Thanks for the reply.
> 
> Assuming that I am willing to take the risk of the server going down (the 
> images are stored on Amazon S3 so they are pretty safe), how can I have a 
> backgroundimage check the policy file, using LoaderContext or otherwise?
> 
> This is an app that has been working great for over 2 years and only with one 
> of the latest releases of flash did this break so I am scrambling to try and 
> fix it. The reason I can't really do it as an image with a child index of 0 
> is because the user can click things and drag them around and I don't want 
> them to accidentally drag the background image -- I'd have to write a bunch 
> of code to work through that scenario so I'd like to exhaust all other 
> options first.

Oh, and also you could just use an Image at the bottom and turn off MouseEvents 
on it.

HTH;

Amy



[flexcoders] Re: canvas backgroundimage loadercontext

2009-03-14 Thread Amy
--- In flexcoders@yahoogroups.com, "rdibona"  wrote:
>
> Thanks for the reply.
> 
> Assuming that I am willing to take the risk of the server going down (the 
> images are stored on Amazon S3 so they are pretty safe), how can I have a 
> backgroundimage check the policy file, using LoaderContext or otherwise?
> 
> This is an app that has been working great for over 2 years and only with one 
> of the latest releases of flash did this break so I am scrambling to try and 
> fix it. The reason I can't really do it as an image with a child index of 0 
> is because the user can click things and drag them around and I don't want 
> them to accidentally drag the background image -- I'd have to write a bunch 
> of code to work through that scenario so I'd like to exhaust all other 
> options first.

Try this:

Create a Class that extends Image, and create another Class that extends 
whatever Container you're using.  Give the Class to the Container as the 
background image.  I haven't been in the Container/HaloBorder code lately, so I 
can't tell you specifically where to look (updateDisplayList or 
commitProperties would be good guesses), but you want to find the logic where 
the Container takes the Class that you passed in and makes an instance of it to 
use as a background.  At that point, you want to give the instance of your 
Class a path to the Image.

Where this approach is problematic is that the Image will not load the file 
instantly, so it won't be able to report its size immediately, which may cause 
layout issues.  If you know the size of the image in advance, it's probably 
easiest to just hard code the image size into the extended Image.  If not, you 
may want to preload it somewhere else and measure it.

HTH;

Amy





[flexcoders] Flex google finance type chart issues

2009-03-14 Thread satish.enlume
Hi Everyone,

I have been trying to use an example flex chart application that looks like 
google finance chart. The url for the example is : 
http://www.meutzner.com/blog/attachments/360/Flex_Finance_Step5.html

When I am trying to add additional data to the chart it is throwing an 
exception. Please help...

Here is the Exception

RangeError: Index '38' specified is out of bounds.
 at 
mx.collections::ListCollectionView/getItemAt()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\collections\ListCollectionView.as:422]
 at 
Flex_Finance_Step55/setDividerDragDate()[D:\cshekar\Flex_Workspace\Flex_finance\src\Flex_Finance_Step55.mxml:720]
 at 
Flex_Finance_Step55/__dividedBox_dividerDrag()[D:\cshekar\Flex_Workspace\Flex_finance\src\Flex_Finance_Step55.mxml:168]
 at flash.events::EventDispatcher/dispatchEventFunction()
 at flash.events::EventDispatcher/dispatchEvent()
 at 
mx.core::UIComponent/dispatchEvent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:9051]
 at 
mx.containers::DividedBox/mouseMoveHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\containers\DividedBox.as:1031]
__
 

TypeError: Error #1010: A term is undefined and has no properties.
 at 
mx.charts.chartClasses::GraphicsUtilities$/drawPolyLine()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\chartClasses\GraphicsUtilities.as:305]
 at 
mx.charts.renderers::AreaRenderer/updateDisplayList()[C:\Work\flex\dmv_automation\projects\datavisualisation\src\mx\charts\renderers\AreaRenderer.as:153]
 at 
mx.skins::ProgrammaticSkin/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\skins\ProgrammaticSkin.as:421]
 at 
mx.managers::LayoutManager/validateDisplayList()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:602]
 at 
mx.managers::LayoutManager/doPhasedInstantiation()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\managers\LayoutManager.as:675]
 at Function/http://adobe.com/AS3/2006/builtin::apply()
 at 
mx.core::UIComponent/callLaterDispatcher2()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8460]
 at 
mx.core::UIComponent/callLaterDispatcher()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\core\UIComponent.as:8403]

Thanks,
Satish
Enlume Inc.,



[flexcoders] Re: Hiding Swf on a website

2009-03-14 Thread triptonemeister
If you load swf files from javascript dinamically, width swfObject, the 
htttpTrack don't download it. 

Load swf like this:



 function loadSwf() {
   var params = { menu: "false", allowScriptAccess: "always", wmode: 
"transparent"  }; 
   swfobject.embedSWF("foo.swf", 'ic_fl', "100%",  "100%"  , "9.0.0", 
"expressInstall.swf", null, params);
}


--- In flexcoders@yahoogroups.com, "christophe_jacquelin" 
 wrote:
>
> Hello,
> 
> How to hide swf files on a website, preventing their copy by a software like 
> httptrack?
> 
> Thank you,
> Christophe,
>




Re: [flexcoders] Embedding for DataGrid

2009-03-14 Thread Manish Jethani
On Sat, Mar 14, 2009 at 12:42 PM, wubac1  wrote:
> Many websites embed Flash/Flex applications for charts, but I don't see 
> embedding for DataGrid.  Given that DataGrid has many usability advantages 
> over HTML-based pagination (my assumption), why is it not used for tables in 
> javascript-based websites?  If I am overlooking any major examples, please 
> provide a link.

There are many Ajax-based data grid components out there, and they
tend to be the natural choice (same environment). Some of the new
websites are also using HTML Canvas for charting -- Wikirank, for
example -- so you'll see fewer and fewer sites using Flash just for
charts as time goes by.

Manish

-- 
Manish Jethani
www.manishjethani.com


[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-14 Thread stinasius
sorry john, i have never used singletons before either. i have a static class 
and would like to know how to get it store the result of the query. otherwise i 
have not made any progress at all. am thinking if someone can work out for me a 
solid flex/cf/access login(authentication) system and well commented that i can 
use in my projects i am prepared to pay for it. 



[flexcoders] Re: storing login data from a cfquery for use throught flex app

2009-03-14 Thread johndoematrix
wow this seems to work but never used singleton before. jeremy, care to explain 
how staff works in detail? or maybe stinasius may understand what is being done 
here. if so please share with a flex newbie.



[flexcoders] Embedding for DataGrid

2009-03-14 Thread wubac1
Many websites embed Flash/Flex applications for charts, but I don't see 
embedding for DataGrid.  Given that DataGrid has many usability advantages over 
HTML-based pagination (my assumption), why is it not used for tables in 
javascript-based websites?  If I am overlooking any major examples, please 
provide a link.