[flexcoders] You can now download peerApp

2009-06-19 Thread otunazero
I have posted a link to the peerApp stratus based app. If you wanna test or 
track progress on the development go to http://otunazero.wordpress.com . I 
would appreciate some feedback from members of this group



Re: [flexcoders] argh: matrices and dragging

2009-06-19 Thread grimmwerks

Argh -- still struggling. What am I missing?


On Jun 19, 2009, at 5:03 PM, grimmwerks wrote:




But I need that to get the current state of the large transform  
matrix.


What I'm having problems with is this idea that the smaller area  
maps to the larger area; in Director there was an actual map()  
function that doesn't seem to be in flash.


It'd be great if the adobe guys could weigh in on this; ie I can't  
be the only person having trouble with Matrices / Transforms  
otherwise I'd be getting a lot more responses.


I'll try it as you say Thomas; thanks for responding.

On Jun 19, 2009, at 4:28 PM, thomas parquier wrote:




I think you should move
var bigM:Matrix = big.transform.matrix.clone();
out of your box move handler, because box.x and box.y are positive  
even when moving to left or top.


thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056


2009/6/19 grimmwerks 


I've got a little app that is the same old small viewer / large  
image type thing we all know and love.



I've got a slider that sets the scale - ie when the user zooms up,  
the large image zooms up and the 'box' canvas does the invert so  
that it shows what view the user is seeing -- dig?


Now I'm trying to allow the user to move the small box around and  
see that same view with the large image; I've tried the following  
which ALMOST works --when the user moves the box to the right (ie x+ 
+ and y++) the large image goes to the left; but when the user  
moves it BACK the large image doesn't move back to the right.



private function boxMouseDrag(e:MouseEvent):void{
borderBox.transform = box.transform;
var bigM:Matrix = big.transform.matrix.clone();
var boxM:Matrix = new Matrix();
boxM.translate(box.x, box.y);
boxM.invert();
bigM.concat(boxM);
big.transform.matrix = bigM;
//big.transform.matrix.translate(box.x, box.y);
out.text = "dragging " + box.transform.matrix;
}



You can see an example here:

http://grimmwerks.com/examples/matrix/

**next up how to make the small view box locked to the viewer area  
in the startDrag...













RE: [flexcoders] Radio Button in DataGrid urgent Plz

2009-06-19 Thread Alex Harui
You might want to start with the Checkbox DataGrid example on my blog.  Set 
allowMultipleSelection=false.

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 vin.flex
Sent: Friday, June 19, 2009 2:45 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Radio Button in DataGrid urgent Plz





Hi there,

I had requirment for having radio button for one of the column in Datagrid and 
the user should be able to select only one row radiobutton.

I have used item renderer and assigned it to a RadioButton Group. But I got 
scrolling issues and also I was unable to preselect one row(which is required).

Can any body help me and share the code if you have .

Thanks in advance

vin



Re: [flexcoders] (SOT) Opportunity for FB ? (Hey! Adobe !)

2009-06-19 Thread Sam Lai
I highly doubt this will happen, mainly because the flagship user of
bugzilla is Mozilla, a web browser company with deep investments in
HTML5, CSS and JS. Their community probably wouldn't be very receptive
either.

>From a personal perspective, I don't think it is a good idea either -
Flash UIs generally aren't good at conveying large amounts of
information. Those that are basically replicate HTML UIs, which
defeats the purpose.

What I'd like to see is Flash being used for visualisations of bug
histories, bugs in components, bug response time statistics etc. Of
course, Mozilla will likely lean to SVG/JS for that, but nevertheless,
that is an area where using Flash would be appropriate.

2009/6/19 Brad Bueche :
>
>
> I've been reading up on Bugzilla and it is frequently mentioned that its UI
> is not the most intuitive or easy to use in the world.
>
> Well if one needs an improved UI experience,  is not FB the answer!?  Well
> really, the SDK in this case.  Although, I guess, anything you do in FB,
> outside of the data visualization, can be updated in the SDK, right?
>
> Is this a good opportunity for Adobe to greatly improve an open source tool
> with their open source solution?  To me,  it seems like there is significant
> opportunity to show off many of the features of 4.x. in a highly targeted
> market.
>
> Anyway, just a thought, maybe I'm way off base.  (Then again, I'm always
> late to the party with the flexcoders group,  so maybe somebody is already
> working on it).   However, if you do decide to do it, Adobe, see if you can
> add some built in integration with Subversion (in keeping with being a major
> contributor to the open source community).
>
> brad
>
>
> 


RE: [flexcoders] Performance improvement recommendation

2009-06-19 Thread Alex Harui
Use the profiler to see where the time is being spent.  If your attempt to use 
List had poor scrolling it implies that your post renderer is inefficient.

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 yial2
Sent: Friday, June 19, 2009 3:50 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Performance improvement recommendation





Hi everyone,

I am creating an application which is basically a flex/flash based blog engine. 
When the application is initially loaded, it will retrieve 50 blog post and 
display them on the first page. The problem I am having now is that it takes a 
LONG(5 min) time to load the posts. If I decrease the posts number down to 5, 
the load time is within an acceptable level(7 seconds). However, 5 posts per 
page is just not acceptable.

I will try my best to describe the blog post structure in the following...

1. Each blog post can have pictures and text in it. Each post also has 
"comments" attach to the bottom. Following is a diagram illustrating what a 
post would look like

* abc dummy text *
* (picture) *
* xyz dummy text *
* (picture2) (picture3)*

*Comment 1 *


*Comment 2 *


*Comment 3 *


2. Each post will have variable height due to different content and different 
number of comments

Currently, I put 50 posts in a vbox, and the vbox height is set to 768. The 
vbox wil have a vertical scroll bar for user to scroll down to see the older 
posts. Since vbox will render "everything" before the component can be visually 
displayed, I can understand why it takes such a long time. I have tried to 
modify the code to use variable height "List" with custom itemRenderer instead, 
but the scroll on the list is NOT smooth at all due to itemRenderer recycle and 
re-render with new data.

I am running out of ideas now. Many sites(facebook, blogger, or any other blog 
site) made this easy with PHP/.NET/HTML utilizing "div"+AJAX, but what is the 
best approach with Flex when constructing a blog engine application? Any 
suggestion/help will be greatly appreciated. Thanks!



[flexcoders] Performance improvement recommendation

2009-06-19 Thread yial2
Hi everyone,

I am creating an application which is basically a flex/flash based blog engine. 
When the application is initially loaded, it will retrieve 50 blog post and 
display them on the first page. The problem I am having now is that it takes a 
LONG(5 min) time to load the posts. If I decrease the posts number down to 5, 
the load time is within an acceptable level(7 seconds). However, 5 posts per 
page is just not acceptable.

I will try my best to describe the blog post structure in the following...

1. Each blog post can have pictures and text in it. Each post also has 
"comments" attach to the bottom. Following is a diagram illustrating what a 
post would look like

* abc dummy text   *
* (picture)*
* xyz dummy text   * 
* (picture2) (picture3)*

*Comment 1 *


*Comment 2 *


*Comment 3 *


2. Each post will have variable height due to different content and different 
number of comments

Currently, I put 50 posts in a vbox, and the vbox height is set to 768. The 
vbox wil have a vertical scroll bar for user to scroll down to see the older 
posts. Since vbox will render "everything" before the component can be visually 
displayed, I can understand why it takes such a long time. I have tried to 
modify the code to use variable height "List" with custom itemRenderer instead, 
but the scroll on the list is NOT smooth at all due to itemRenderer recycle and 
re-render with new data.

I am running out of ideas now. Many sites(facebook, blogger, or any other blog 
site) made this easy with PHP/.NET/HTML utilizing "div"+AJAX, but what is the 
best approach with Flex when constructing a blog engine application? Any 
suggestion/help will be greatly appreciated. Thanks!



[flexcoders] BlazeDS | Messaging | Design Query

2009-06-19 Thread ilikeflex
Hi

I have two destination defined in the messaging-config.xml file

 
 
 

 
 

 
 

and my-polling-amf is defined in the services-config.xml file


 http://{server.name}:{server.port}/{context.root}/messagebroker/amf\
polling" class="flex.messaging.endpoints.AMFEndpoint"/>
 
 true
 1
 
 


Now, if the polling interval is different for two different desinations
then how should i configure my channel to support two different polling
intervals.

Thanks
ilikeflex







[flexcoders] Radio Button in DataGrid urgent Plz

2009-06-19 Thread vin.flex
Hi there,

I had requirment for having radio button for one of the column in Datagrid and 
the user should be able to select only one row radiobutton.

I have used item renderer and assigned it to a RadioButton Group. But I got 
scrolling issues and also I was unable to preselect one row(which is required). 

Can any body help me and share the code if you have .

Thanks in advance

vin 




[flexcoders] Re: Flex error when AdvancedDataGrid made too small.

2009-06-19 Thread Mic
Cool - I will try this  I had tried the visible="false" but I left it in 
the Layout. After further investigation I narrowed this down to the fact that I 
am using the advanced datagrid footer extensions that are available - Alex's I 
think with a couple of tweeks - and the error is in 
AdvancedDataGridBaseEx.as/protected function drawColumnBackground where var 
lastRow:Object = rowInfo[listItems.length - 1]; resolves to null and causes 
problems downstream when calculating height  includeInLayout = false will 
be a lot easier than resolving the above ... fingers crossed.

--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> Instead of setting height and width of a component to 0, try setting visible 
> property to false and includeInLayout property to false.
> 
> 
> --- In flexcoders@yahoogroups.com, "Mic"  wrote:
> >
> > In an application where 8 panels exist on the screen with each panel 
> > containing a chart or an advanced datagrid (corporate dashboard), any 
> > portlet can be zoomed to fill the whole screen, and I was doing this by 
> > setting height and width of the other 5 to 0. Trying to debug the error I 
> > was getting, I discovered that if you make an AdvancedDataGrid less than 
> > about 40 (cannot remember exact cutoff) Flex gives an error of:
> > 
> > TypeError: Error #1009: Cannot access a property or method of a null object 
> > reference.
> > at 
> > mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:3503]
> >  etc.
> > 
> > It looks like it is too small to draw - Alice would tell it that it took 
> > the wrong pill :-)
> > 
> > Is there a way around this? TIA,
> > 
> > Mic
> >
>




Re: [flexcoders] argh: matrices and dragging

2009-06-19 Thread grimmwerks

But I need that to get the current state of the large transform matrix.

What I'm having problems with is this idea that the smaller area maps  
to the larger area; in Director there was an actual map() function  
that doesn't seem to be in flash.


It'd be great if the adobe guys could weigh in on this; ie I can't be  
the only person having trouble with Matrices / Transforms otherwise  
I'd be getting a lot more responses.


I'll try it as you say Thomas; thanks for responding.

On Jun 19, 2009, at 4:28 PM, thomas parquier wrote:




I think you should move
var bigM:Matrix = big.transform.matrix.clone();
out of your box move handler, because box.x and box.y are positive  
even when moving to left or top.


thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net
téléphone portable : +33601 822 056


2009/6/19 grimmwerks 


I've got a little app that is the same old small viewer / large  
image type thing we all know and love.



I've got a slider that sets the scale - ie when the user zooms up,  
the large image zooms up and the 'box' canvas does the invert so  
that it shows what view the user is seeing -- dig?


Now I'm trying to allow the user to move the small box around and  
see that same view with the large image; I've tried the following  
which ALMOST works --when the user moves the box to the right (ie x+ 
+ and y++) the large image goes to the left; but when the user moves  
it BACK the large image doesn't move back to the right.



private function boxMouseDrag(e:MouseEvent):void{
borderBox.transform = box.transform;
var bigM:Matrix = big.transform.matrix.clone();
var boxM:Matrix = new Matrix();
boxM.translate(box.x, box.y);
boxM.invert();
bigM.concat(boxM);
big.transform.matrix = bigM;
//big.transform.matrix.translate(box.x, box.y);
out.text = "dragging " + box.transform.matrix;
}



You can see an example here:

http://grimmwerks.com/examples/matrix/

**next up how to make the small view box locked to the viewer area  
in the startDrag...









Re: [flexcoders] argh: matrices and dragging

2009-06-19 Thread thomas parquier
I think you should move

> var bigM:Matrix = big.transform.matrix.clone();
>
out of your box move handler, because box.x and box.y are positive even when
moving to left or top.

thomas
---
http://www.web-attitude.fr/
msn : thomas.parqu...@web-attitude.fr
softphone : sip:webattit...@ekiga.net 
téléphone portable : +33601 822 056


2009/6/19 grimmwerks 

>
>
> I've got a little app that is the same old small viewer / large image type
> thing we all know and love.
>
> I've got a slider that sets the scale - ie when the user zooms up, the
> large image zooms up and the 'box' canvas does the invert so that it shows
> what view the user is seeing -- dig?
>
> Now I'm trying to allow the user to move the small box around and see that
> same view with the large image; I've tried the following which ALMOST works
> --when the user moves the box to the right (ie x++ and y++) the large image
> goes to the left; but when the user moves it BACK the large image doesn't
> move back to the right.
>
> private function boxMouseDrag(e:MouseEvent):void{
> borderBox.transform = box.transform;
> var bigM:Matrix = big.transform.matrix.clone();
> var boxM:Matrix = new Matrix();
> boxM.translate(box.x, box.y);
> boxM.invert();
> bigM.concat(boxM);
> big.transform.matrix = bigM;
> //big.transform.matrix.translate(box.x, box.y);
> out.text = "dragging " + box.transform.matrix;
> }
>
>
>
> You can see an example here:
>
> http://grimmwerks.com/examples/matrix/
>
> **next up how to make the small view box locked to the viewer area in the
> startDrag...
>  
>


Re: [flexcoders] Adding a close button to a TabBar

2009-06-19 Thread Tom McNeer
Take a look at Doug McCune's SuperTabNavigator. It can have a close box and
lots of other stuff.

Here's a blog 
entryabout
it.

And here's the link to the entire flexlib
(which includes the SuperTabNavigator)
on Google Code.

-- 
Thanks,

Tom

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


[flexcoders] AIR sql parameters - can I use an array ?

2009-06-19 Thread Jim Hayes
I'm looking for a way to use the "IN" sql syntax and parameters,
something like "SELECT someField FROM someTable WHERE someOtherField IN 
(1,4,6,8,12);" .
Obviously I could build a string query from an array and execute that, but I'd 
rather stay with parameters if at all possible.

If anyone knows, please do tell!
I'm afraid I'm away from my workstation so can't check it at the moment.
Many thanks!

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

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


Re: [flexcoders] argh: matrices and dragging -- anybody?!? :(

2009-06-19 Thread grimmwerks


I'm sure there must be SOMEONE on here (adobe?) that can explain how  
transforms work from one box to another scaled box...?


On Jun 19, 2009, at 1:03 PM, grimmwerks wrote:




I've got a little app that is the same old small viewer / large  
image type thing we all know and love.


I've got a slider that sets the scale - ie when the user zooms up,  
the large image zooms up and the 'box' canvas does the invert so  
that it shows what view the user is seeing -- dig?


Now I'm trying to allow the user to move the small box around and  
see that same view with the large image; I've tried the following  
which ALMOST works --when the user moves the box to the right (ie x+ 
+ and y++) the large image goes to the left; but when the user moves  
it BACK the large image doesn't move back to the right.



private function boxMouseDrag(e:MouseEvent):void{
borderBox.transform = box.transform;
var bigM:Matrix = big.transform.matrix.clone();
var boxM:Matrix = new Matrix();
boxM.translate(box.x, box.y);
boxM.invert();
bigM.concat(boxM);
big.transform.matrix = bigM;
//big.transform.matrix.translate(box.x, box.y);
out.text = "dragging " + box.transform.matrix;
}



You can see an example here:

http://grimmwerks.com/examples/matrix/

**next up how to make the small view box locked to the viewer area  
in the startDrag...








[flexcoders] Adding a close button to a TabBar

2009-06-19 Thread fumeng5
Hi --

I'm trying to add a close button to a tab in a TabNavigator component. I 
searched the archives and found a post that is nearly 4 years old and was 
hoping there was something newer. 

My Tab is a VBox and I set its icon property to an image. But that image 
appears to the left; how can I align it to the right? Then, how can I assign it 
a click event? 

Any guidance is very much appreciated. 

Thank you



[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-19 Thread Tim Hoff

Nice!

-TH

--- In flexcoders@yahoogroups.com, "flexcoder2008" 
wrote:
>
> Thanks Tim,
>
> That's not quite the behavior I was looking for though - my List can
not be in edit mode.
>
> I figured out exactly what I needed - I had to use the
indexToItemRenderer method of the List - hopefully this will help
someone else...
>
> Here's my List KeyDown handler:
>
> private function myListKeyDownHandler(event:KeyboardEvent):void{
> var le:ListEvent = new ListEvent(ListEvent.ITEM_CLICK);
> var ir:IListItemRenderer =
myList.indexToItemRenderer(myList.selectedIndex);
> le.itemRenderer = ir;
>
> myListClickEvent(le);
>
> }
> --- In flexcoders@yahoogroups.com, "flexcoder2008" djohnson29@ wrote:
> >
> > I have a List that handles a Click event - the ClickEvent takes a
ListEvent, and inside that handler I have access to the ListEvent's
itemRenderer property.
> >
> > This allows me to align a button next to the row that I have clicked
on.
> >
> > I also want to trigger this click event when the user uses the
keyboard up and down arrow keys to navigate the list.
> >
> > Inside my KeyDown handler I want to call my List click handler.
> >
> > The trick is, how do I specify the itemRenderer for the new
ListClick event or get access to it?
> >
> > eg.
> >
> > var le:ListEvent = new ListEvent(ListEvent.CLICK,.. .. ..,
myItemRenderer);
> >
>





[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff

This is a little cleaner and less verbose.  Also, if your ComboBox's are
using Objects, you may have to use selectedLabel; instead of
selectedItem:

private function filterData():void
{
  xmlData2.filterFunction = itemFilterFunction;
  xmlData2.refresh()
  Alert.show(xmlData2.length.toString());
}

private function itemFilterFunction( item:Object ):Boolean
{
  var includeItem:Boolean = true;

  // colour filter
  includeItem = colourFilter(item);

  // size filter
  if (includeItem) includeItem = sizeFilter(item);

  return includeItem;
}

private function colourFilter( item:Object ):Boolean
{
  var includeItem:Boolean = true;

  includeItem = (colourFilter.selectedItem == "All colours" ||
item.colour == colourFilter.selectedItem);

  return includeItem;
}

private function sizeFilter( item:Object ):Boolean
{
  var includeItem:Boolean = true;

  includeItem = (sizeFilter.selectedItem == "All sizes" || item.sizes
== sizeFilter.selectedItem);

  return includeItem;
}

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Looks like you have a little problem in the logic. It will either
> include all of the items or those that meet the two selected criteria.
> But it won't include all of one and a selected criteria of the other.
A
> suggestion is to break up the individual criteria into seperate sub
> filterFunctions. This makes it easier to read and debug; when you
start
> to use a lot of different filter criteria:
>
> private function filterData():void
> {
> xmlData2.filterFunction = itemFilterFunction;
> xmlData2.refresh()
> Alert.show(xmlData2.length.toString());
> }
>
> private function itemFilterFunction( item:Object ):Boolean
> {
> var includeItem:Boolean = true;
>
> // colour filter
> includeItem = colourFilterFunction( item );
>
> // size filter
> if ( includeItem ) includeItem = sizeFilterFunction( item );
>
> return includeItem;
> }
>
> private function colourFilterFunction( item:Object ):Boolean
> {
> if ( colourFilter.selectedItem == "All colours" || item.colour ==
> colourFilter.selectedItem )
> {
> return true;
> }
> else
> {
> return false;
> }
> }
>
> private function sizeFilterFunction( item:Object ):Boolean
> {
> if ( sizeFilter.selectedItem == "All sizes" || item.sizes ==
> sizeFilter.selectedItem )
> {
> return true;
> }
> else
> {
> return false;
> }
> }
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "munene_uk" munene.anthony@
> wrote:
> >
> > Thanks for the reply...how would the above example work for criteria
> that comes dynamically through xml data? ive tried this code below on
my
> two combo boxes with id's of colourFilter and sizeFilter
respectively...
> >
> > private function filterData():void
> > {
> >
> > xmlData2.filterFunction = applyColourAndSizeFilter;
> > xmlData2.refresh()
> > Alert.show(xmlData2.length.toString());
> >
> > }
> > public function applyColourAndSizeFilter(item:Object):Boolean
> > {
> >
> > if(colourFilter.selectedItem == "All colours" &&
> sizeFilter.selectedItem =="All sizes" )
> > {
> > return true;
> >
> > }
> >
> > else
> > {
> > return item.colour == colourFilter.selectedItem && item.sizes ==
> sizeFilter.selectedItem;
> >
> > }
> >
>




[flexcoders] Re: Creating a new ListEvent - how to specify ItemRenderer?

2009-06-19 Thread flexcoder2008
Thanks Tim,

That's not quite the behavior I was looking for though - my List can not be in 
edit mode.

I figured out exactly what I needed - I had to use the indexToItemRenderer 
method of the List - hopefully this will help someone else...

Here's my List KeyDown handler:

private function myListKeyDownHandler(event:KeyboardEvent):void{
var le:ListEvent = new ListEvent(ListEvent.ITEM_CLICK);
var ir:IListItemRenderer =  
myList.indexToItemRenderer(myList.selectedIndex);
le.itemRenderer = ir;

myListClickEvent(le);

}
--- In flexcoders@yahoogroups.com, "flexcoder2008"  wrote:
>
> I have a List that handles a Click event - the ClickEvent takes a ListEvent, 
> and inside that handler I have access to the ListEvent's itemRenderer 
> property.
> 
> This allows me to align a button next to the row that I have clicked on.
> 
> I also want to trigger this click event when the user uses the keyboard up 
> and down arrow keys to navigate the list.
> 
> Inside my KeyDown handler I want to call my List click handler.
> 
> The trick is, how do I specify the itemRenderer for the new ListClick event 
> or get access to it?
> 
> eg. 
> 
> var le:ListEvent = new ListEvent(ListEvent.CLICK,.. .. .., myItemRenderer);
>




[flexcoders] argh: matrices and dragging

2009-06-19 Thread grimmwerks
I've got a little app that is the same old small viewer / large image  
type thing we all know and love.


I've got a slider that sets the scale - ie when the user zooms up, the  
large image zooms up and the 'box' canvas does the invert so that it  
shows what view the user is seeing -- dig?


Now I'm trying to allow the user to move the small box around and see  
that same view with the large image; I've tried the following which  
ALMOST works --when the user moves the box to the right (ie x++ and y+ 
+) the large image goes to the left; but when the user moves it BACK  
the large image doesn't move back to the right.



private function boxMouseDrag(e:MouseEvent):void{
borderBox.transform = box.transform;
var bigM:Matrix = big.transform.matrix.clone();
var boxM:Matrix = new Matrix();
boxM.translate(box.x, box.y);
boxM.invert();
bigM.concat(boxM);
big.transform.matrix = bigM;
//big.transform.matrix.translate(box.x, box.y);
out.text = "dragging " + box.transform.matrix;
}



You can see an example here:

http://grimmwerks.com/examples/matrix/

**next up how to make the small view box locked to the viewer area in  
the startDrag...

[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread Tim Hoff

Looks like you have a little problem in the logic.  It will either
include all of the items or those that meet the two selected criteria. 
But it won't include all of one and a selected criteria of the other.  A
suggestion is to break up the individual criteria into seperate sub
filterFunctions.  This makes it easier to read and debug; when you start
to use a lot of different filter criteria:

private function filterData():void
{
  xmlData2.filterFunction = itemFilterFunction;
  xmlData2.refresh()
  Alert.show(xmlData2.length.toString());
}

private function itemFilterFunction( item:Object ):Boolean
{
  var includeItem:Boolean = true;

  // colour filter
  includeItem = colourFilterFunction( item );

 // size filter
 if  ( includeItem ) includeItem = sizeFilterFunction( item );

 return includeItem;
}

private function colourFilterFunction( item:Object ):Boolean
{
  if ( colourFilter.selectedItem == "All colours" || item.colour ==
colourFilter.selectedItem )
 {
   return true;
  }
  else
 {
  return false;
 }
}

private function sizeFilterFunction( item:Object ):Boolean
{
  if ( sizeFilter.selectedItem == "All sizes" || item.sizes ==
sizeFilter.selectedItem )
  {
   return true;
  }
  else
  {
   return false;
  }
}

-TH

--- In flexcoders@yahoogroups.com, "munene_uk" 
wrote:
>
> Thanks for the reply...how would the above example work for criteria
that comes dynamically through xml data? ive tried this code below on my
two combo boxes with id's of colourFilter and sizeFilter respectively...
>
> private function filterData():void
> {
>
> xmlData2.filterFunction = applyColourAndSizeFilter;
> xmlData2.refresh()
> Alert.show(xmlData2.length.toString());
>
> }
> public function applyColourAndSizeFilter(item:Object):Boolean
> {
>
> if(colourFilter.selectedItem == "All colours" &&
sizeFilter.selectedItem =="All sizes" )
> {
> return true;
>
> }
>
> else
> {
> return item.colour == colourFilter.selectedItem && item.sizes ==
sizeFilter.selectedItem;
>
> }
>




[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-19 Thread djhatrick
Lulz thanks for the that!  I must be tired ... but i  got this to work, 
correctly,  I have multiple rows that can be longer than others, so this was my 
error...  By the way, is there an event I can subscribe to that will tell me 
when everything is rendered, or do i have to rely on my trusty timeout?

Thanks For your help.

Patrick





--- In flexcoders@yahoogroups.com, "valdhor"  wrote:
>
> I hate to be picky but my math makes it 52.
> 
> Anyway, did you count things like padding, vertical gap etc?
> 
> 
> --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> >
> > Tom:
> > 
> > Thanks for that, but unfortunately that method is inaccurate( Maybe it 
> > doesn't work for very good for factories... Here's how i am getting my 
> > height, i am setting a height on my value object after i add my labels in a 
> > vertical column, then i listen for an event on my collection dataProvider, 
> > the last item, which I then loop through and calculate the values?  
> > 
> > See my examples:
> > 
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height> 560
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height> 560
> > 
> > 
> > It's off by 72 pixels... that's quite a difference.
> > 
> > Patrick
> > 
> > 
> > 
> > --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> > >
> > > 
> > > Hi Patrick,
> > > 
> > > private function resizeDataGrid():void
> > > {
> > >   myDataGrid.height = myDataGrid.measureHeightOfItems(0,
> > > myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2;
> > > }
> > > 
> > > 
> > > 
> > > -TH
> > > 
> > > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> > > >
> > > > My datagrid won't measure correctly, i have variable row height, but
> > > it can't seem to get it right, I don't want any scroll bars..., is there
> > > an easy way to override some function so i can get the actual rowheight
> > > of each row and determine my height correctly
> > > >
> > > > Thanks,Patrick
> > > >
> > > >
> > > > Wow, i had to rejoing Flexcoders Google Groups are better than
> > > yahoogroups, sorry yahoogroups,
> > > >
> > >
> >
>




Re: [flexcoders] my SWFLoader wont give me the correct width and height

2009-06-19 Thread Jamie S
I don't think that's necessarily correct because as I mentioned the
$width and $height protected values are correctly set by the time the
COMPLETE event is dispatched. So the values are known, they just
aren't being updated until the time of the UPDATE_COMPLETE event.

Jamie

On Thu, Jun 18, 2009 at 10:25 PM, Alex Harui wrote:
>
>
> I don’t think there is a way to force SWFLoader to know its width when it
> dispatches the COMPLETE event.  That event means the bytes are downloaded,
> but they may not be fully consumed yet.  However, it should be available on
> the UPDATE_COMPLETE that follows the COMPLETE event.
>
>
>
> 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 Jamie S
> Sent: Thursday, June 18, 2009 6:05 PM
> To: flexcoders@yahoogroups.com
> Subject: Re: [flexcoders] my SWFLoader wont give me the correct width and
> height
>
>
>
>
> That sorta works. It's a way of getting notified when the properties
> do finally get updated . But i still have to do if( swfLoader.width
> !=0 && swfLoader.height != 0 ){ ... }. And since I really only need to
> run that piece of code once, I would have to remove the listener after
> the code successfully gets executed.
>
> I still don't understand why calling swfLoader.validateNow() does not
> work when I try to call it in the 'complete' handler.
>
> Jamie
>
> On Thu, Jun 18, 2009 at 5:29 PM, Gordon Smith wrote:
>>
>>
>> Try checking the values in an "updateComplete" handler.
>>
>>
>>
>> Gordon Smith
>>
>> Adobe Flex SDK Team
>>
>>
>>
>> From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
>> Behalf Of Jamie S
>> Sent: Thursday, June 18, 2009 3:27 PM
>> To: flexcoders@yahoogroups.com
>> Subject: [flexcoders] my SWFLoader wont give me the correct width and
>> height
>>
>>
>>
>>
>> I'm using a SWFLoader to load in an image and i have a handler
>> function for COMPLETE. In this load complete handler, i'm trying to
>> get the size of the SWFLoader instance by using swfLoader.width,
>> swfLoader.height but it always gives me 0. if I set a breakpoint, i
>> can see that the $width and $height protected properties are correct
>> but no matter what I do I can't get the public width and height
>> properties to update. i've tried using validateNow(),
>> invalidateSize(), validateSize() and whatever else I can think of but
>> the width and hight are still always 0. And I noticed that if i check
>> the width and height at some later point in the program, the values
>> are correct.
>>
>> Does anybody know how to force SWFLoader to update its width and height?
>>
>> Jamie
>>
>>
>
> 




--
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] Datagrid sort function

2009-06-19 Thread flexaustin
Wondering if any has built a custom sort function that can handle a mix of IP 
Addresses and names like so?

Alpha
Beta
Zulu
0.0.0.0
192.168.168.1
192.168.168.11
192.168.168.23
192.168.168.231



[flexcoders] Sticky scrollbars

2009-06-19 Thread djhatrick
Sticky scrollbars, even with livescrolling set to false..

This is so frustrating, tell me this stuff is fixed in fb4?  
I wouldn't call developing in flex as RIA, there's just too many things like 
these bugs that are annoying... I am venting today.

But the framework drives me crazy when things like this sticky scrolling 
happens, scroll wheel not working on mac, module memory leaks... This stuff has 
to get better.



[flexcoders] Flex 3s generated web service proxies

2009-06-19 Thread nathanpdaniel
Here's the link to what I'm referring to:
http://livedocs.adobe.com/flex/3/html/help.html?content=data_4.html

I'm importing a web service (WSDL) and having Flex Builder 3 generate all my 
web service proxy classes.  It works great but, I modified my base class - now 
how do I update my WSDL (and the classes generated) without effecting my 
changes? (Modify the templates used to generate the classes)

A second question would be how can I "really" tie this generated service 
 into Cairngorm?  For example, the ServiceLocator has 
getHTTPService("serviceName") and getWebService("serviceName") but, how can I 
do a "getMyService('serviceName')" with the ServiceLocator so I can still use 
the business delegates to send requests to the server.
As it stands, I ignore the delegate and my event command class looks something 
like

public class TestCommand implements Command, IResponder {
 public function event(event:CairngormEvent):void {
  var evt:CustomEvent = event as CustomEvent;
  /*
   HERE IS WHERE MY DELEGATE SHOULD BE
   My code should look like:
   var delegate:CustomDelegate = new CustomDelegate(this);
   delegate.queryServer();

   But instead I have the code below:
  */
  var myServices:MyService = new MyService();
  myService.addEventListener("result", result);
  myService.addEventListener("fault", fault);
  myService.getServerInfo();
 }

 /**
  * EVENT HANDLERS
  **/

 public function result(data:Object):void {
 }
 public function fault(data:Object):void {
 }
}



[flexcoders] Spring Security Bounty - call for ninja assassins!

2009-06-19 Thread Rick Winscot
If you are an experienced Spring-ite with experience in handling conditional
NT Authentication and want to make some extra money please reply
off-list for details. We have a requirement on the plate to add NT
authentication to a Flex application and we¹ve only been marginally
successful. The solution needs to support environments with a mix of
Win/Mac/Linux clients and servers on and off domain.

Cheers,

Rick Winscot


[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-19 Thread Tim Hoff

If you can't get it to work, you could always use a Repeater instead. 
In this case, since you want to display all of the items, this would
probably work out better.

-TH

--- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
>
>
> Yeah, maybe not. Good luck; this is a common challenge that many have
> not been successful solving.
>
> -TH
>
> --- In flexcoders@yahoogroups.com, "djhatrick" djhatrick@ wrote:
> >
> > Tom:
> >
> > Thanks for that, but unfortunately that method is inaccurate( Maybe
it
> doesn't work for very good for factories... Here's how i am getting my
> height, i am setting a height on my value object after i add my labels
> in a vertical column, then i listen for an event on my collection
> dataProvider, the last item, which I then loop through and calculate
the
> values?
> >
> > See my examples:
> >
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height> 560
> > idSGrid.measureHeightOfItems 612
> > Measuring each row height> 560
> >
> >
> > It's off by 72 pixels... that's quite a difference.
> >
> > Patrick
> >
> >
> >
> > --- In flexcoders@yahoogroups.com, "Tim Hoff" TimHoff@ wrote:
> > >
> > >
> > > Hi Patrick,
> > >
> > > private function resizeDataGrid():void
> > > {
> > > myDataGrid.height = myDataGrid.measureHeightOfItems(0,
> > > myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2;
> > > }
> > >
> > > 
> > >
> > > -TH
> > >
> > > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> > > >
> > > > My datagrid won't measure correctly, i have variable row height,
> but
> > > it can't seem to get it right, I don't want any scroll bars..., is
> there
> > > an easy way to override some function so i can get the actual
> rowheight
> > > of each row and determine my height correctly
> > > >
> > > > Thanks,Patrick
> > > >
> > > >
> > > > Wow, i had to rejoing Flexcoders Google Groups are better
than
> > > yahoogroups, sorry yahoogroups,
> > > >
> > >
> >
>





Re: [flexcoders] Re: Binding two elements in a single datagrid column

2009-06-19 Thread Angelo Anolin
Hi Tim. the sample really looks great.  I would try to analyze the codes this 
weekend since I was pretty occupied these past few days.

The display alone is already what I am hoping to achieve since I don't want to 
separate the age and months on another column.  If I did separate it, then it 
would be easier on my part but it kind of defeats the purpose.

Thanks a bunch!

Regards,

Angelo





From: Tim Hoff 
To: flexcoders@yahoogroups.com
Sent: Thursday, 18 June, 2009 1:46:34
Subject: [flexcoders] Re: Binding two elements in a single datagrid column





Ok, here's how I would do it; with efficiency and best-practice in mind:
http://www.timothyh off.com/projects /AgeItemRenderer Sample/AgeItemRe 
ndererSample. html
( right click to view source )
Two main differences Steve: 
First, use createChildren to add the children, instead of in set data.  I 
suspect that what's happening with the way you are doing it is that each time 
the data is changed (which, because the itemRenderers are recycled, happens on 
every scroll), the instance of the child is attempted to be added to the 
display list.  I can't see the code in flash.display. DisplayObjectCon tainer, 
but I suspect that the code is checking to see if the instance exists already 
and/or re-parenting it.  Either way, this is an un-necessary step.  You only 
need to add the child once and then use the data to control it's state.
Second, for efficiency, try to avoid using containers in itemRenderers.  A good 
practice is to extend UIComponent and do the layout manually.  It's a little 
more work, but you get some good performance benefits.
I encourage you to read this series  and also look at the source code for the 
Flex controls.  They all follow the same component life-cycle pattern. 
Angelo, look at this sample for how to use an itemEditor.
-TH

--- In flexcod...@yahoogro ups.com, "valdhor"  wrote:
>
> I thought that was the idea.
> 
> In the example, I wanted a new NumericStepper for each data item (Actually 
> two new NumericSteppers) . If createChildren only runs once, how would you 
> get the required output? In other words, can you post your version of the 
> example using createChildren ?
> 
> 
> 
> --- In flexcod...@yahoogro ups.com, "Tim Hoff" TimHoff@ wrote:
> >
> > 
> > Yes, createChildren will only execute once; while set data will execute
> > many times. Perhaps it's not a problem if the same child gets added to
> > the display list everytime that the data is set. But usually, you only
> > need to add them once.
> > 
> > -TH
> > 
> > --- In flexcod...@yahoogro ups.com, "valdhor"  wrote:
> > >
> > > I use addChild in the set data function only because I always have.
> > >
> > > I have built hundreds of renderers this way and none of them have
> > given me a problem. If there's a good reason why I shouldn't do it this
> > way, I'm all ears.
> > >
> > >
> > > --- In flexcod...@yahoogro ups.com, "Tim Hoff" TimHoff@ wrote:
> > > >
> > > >
> > > > I'm with you Steve; about using AS for an itemRenderer. I do wonder
> > why
> > > > you would use addChild in the set data function though; rather than
> > in
> > > > createChildren . For mxml, this should work Angelo:
> > > >
> > > > 
> > > > 
> > > >  > > > width="100%" horizontalScrollPol icy="off"
> > verticalScrollPolic y="off">
> > > >  > > > textAlign="center" />
> > > >  > > > textAlign="center" />
> > > > 
> > > > 
> > > > 
> > > >
> > > > For the HBox, notice the use of horizontalGap, instead of a spacer
> > as
> > > > well. Just cleans it up a bit.
> > > >
> > > > Cheers,
> > > > -TH
> > > >
> > > > --- In flexcod...@yahoogro ups.com, "valdhor"  wrote:
> > > > >
> > > > > This is probably possible in MXML but I prefer to write my item
> > > > > renderers in ActionScript. ..
> > > > >
> > > > > main.mxml:
> > > > > 
> > > > >  > > > > layout="absolute">
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > > 
> > > > >  > > > > itemRenderer= "NumericStepperR enderer"/>
> > > > > 
> > > > > 
> > > > > 
> > > > >
> > > > > NumericStepperRende rer.as:
> > > > > package
> > > > > {
> > > > > import mx.containers. HBox;
> > > > > import mx.controls. NumericStepper;
> > > > >
> > > > > public class NumericStepperRende rer extends HBox
> > > > > {
> > > > > private var nsOutwardAgeYear: NumericStepper = new
> > > > > NumericStepper( );
> > > > > private var nsOutwardAgeMonths: NumericStepper = new
> > > > > NumericStepper( );
> > > > >
> > > > > public function NumericStepperRende rer()
> > > > > {
> > > > > super();
> > > > > nsOutwardAgeYear. minimum = 0;
> > > > > nsOutwardAgeMonths. minimum = 0;
> > > > > nsOutwardAgeYear. maximum = 200;
> > > > > nsOutwardAgeMonths. maximum = 200;
> > > > > nsOutwardAgeYear. stepSize = 1;
> > > > > nsOutwardAgeMonths. stepSize = 1;
> > > > > nsOutwardAgeYear. width = 50;
> > > > > nsOutwardAgeMonths. width = 50;
> > > > > nsOutwardAgeYear. setStyle( "textAlign" , "center");
> > > > > nsOutwardAgeMonths. setStyle( "textAlign" , "ce

[flexcoders] Re: Camera deactivation

2009-06-19 Thread kaspar.luethi
it works for me in flex 3.3. and fp10.

eventually you have some resource management problems, attaching multiple times 
or so.

k.


--- In flexcoders@yahoogroups.com, Leon`e  wrote:
> 
> Well, the thing is it doesn't work in my case. I attached camera to Video
> object, and NetStream object. I've tried to set attachCamera(null) both to
> Video and NetStream object. I've also tried to set camera object (received
> from Camera.getCamera()) to null. The camera light is still on. Does your
> solution works in your case?



[flexcoders] Gauge and Ticks' Labels - Problem!!!! [1 Attachment]

2009-06-19 Thread marian kubincanek
Hej, 

I urgently need help about adding labels to ticks with different 
offsets for these labels. I found example about gauges and displayed 
labels to the ticks inner gauge but need these labels outer of gauge. 
I'd like to attach screenies about my customized gauge but not 
possible :(( .. help example found at: http://www.konadog.com/flex -> 
there are labels inner gauge. I'd like to send zipped project if one 
be really interested. Please help me.
Why degrafa developers simply does not make mark ticks enables text?
I also attached .png pictures as originals that need to similar by degrafa 
framework, but component  and next rotation text option does not 
have property to make it with exactly diameter/2you know what I 
mean...simply compare original with made dagrafa zipped project.
Core of problematic code: 

 
. 
. 
  [Bindable] 
private var _edges : Array = new Array 
(0,45,45,45,45,45,45,45); 
. 
. 
 

. 
. 
. 

 
 
 
 
 
 
 
 
 

 
 
 
 
 
 
 

PLease help me. I can send  whole project and screenies that I need to 
similar 


  

[flexcoders] peer2peer air application

2009-06-19 Thread otunazero
I'm looking for people to help me test a new p2p app i made. It's in alpha 
right now.. if interested please email me thanks my email is otunaz...@yahoo.com



[flexcoders] Gauge and Ticks' Labels - Problem!!!

2009-06-19 Thread kubincanek
Hej,

I urgently need help about adding labels to ticks with different
offsets for these labels. I found example about gauges and displayed
labels to the ticks inner gauge but need these labels outer of gauge.
I'd like to attach screenies about my customized gauge but not
possible :(( .. help example found at: http://www.konadog.com/flex ->
there are labels inner gauge. I'd like to send zipped project if one
be really interested. Please help me.
Core of problematic code:


.
.
  [Bindable]
private var _edges : Array = new Array
(0,45,45,45,45,45,45,45);
.
.


.
.
.



















PLease help me. I can send  whole project and screenies that I need to
similar 



Re: [flexcoders] Camera deactivation

2009-06-19 Thread Leon`e

Well, the thing is it doesn't work in my case. I attached camera to Video
object, and NetStream object. I've tried to set attachCamera(null) both to
Video and NetStream object. I've also tried to set camera object (received
from Camera.getCamera()) to null. The camera light is still on. Does your
solution works in your case?
-- 
View this message in context: 
http://www.nabble.com/Camera-deactivation-tp24111586p24112500.html
Sent from the FlexCoders mailing list archive at Nabble.com.



RE: [flexcoders] Charting questions

2009-06-19 Thread Jake Churchill
Add the following right after your code:

 







 

 

Jake Churchill
CF Webtools
11204 Davenport, Ste. 100
Omaha, NE  68154
  http://www.cfwebtools.com
402-408-3733 x103

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of inevative
Sent: Friday, June 19, 2009 3:22 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Charting questions

 






Hey peepsJust looking for some help with some charting related tasks.

- Can you rotate the axis labels on a LineChart? All the examples i have
used seem to work fine on BarChart but not on LineChart

- Consider the following...





Is it possible to specify the number of axis points and labels? Using the
DateTimeAxis is seems to just try and work out where to plot them but i want
to specify at what intervals to put markers.

- Is it possible to get the color value of a chart line or legend marker? I
want to use the colors for something else and need them to match (other than
specifying my own colors).

Thanks for any help you can give..

Steve



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.80/2187 - Release Date: 06/19/09
06:53:00



[flexcoders] Re: (SOT) Opportunity for FB ? (Hey! Adobe !)

2009-06-19 Thread kaspar.luethi
--- In flexcoders@yahoogroups.com, Matt Chotin  wrote:
>
> We considered this when choosing a bug system for bugs.adobe.com and decided 
> the investment wasn't really worth it to us.

and Jira is a very good choice - love this software.

k.



[flexcoders] Re: Camera deactivation

2009-06-19 Thread kaspar.luethi
i assume the light only turns green whan you actually use the camera like using 
attachCamera on a VideoDisplay object. just use attachCamera(null) on the same 
object and the camera connection is (kind of) disposed, light turns off.

k.


--- In flexcoders@yahoogroups.com, Leon`e  wrote:
> 
> When I use in my Flex applicaiton Camera.getCamera() function I activate
> camera which is signalized by blue light attached to my camera in computer.
> How can I deactivate camera? It’s still capturing image (blue light is still
> turned on) until I close flex application in the browser.
> -- 
> View this message in context: 
> http://www.nabble.com/Camera-deactivation-tp24111586p24111586.html
> Sent from the FlexCoders mailing list archive at Nabble.com.
>




Re: [flexcoders] (SOT) Opportunity for FB ? (Hey! Adobe !)

2009-06-19 Thread Matt Chotin
We considered this when choosing a bug system for bugs.adobe.com and decided 
the investment wasn't really worth it to us. It's certainly good if someone 
else wants to take it on, but at least 3 years ago if I recall correctly 
bugzilla didn't really have services that you could build a ui around.

Matt

Sent from a phone, pardon the brevity or typos.


From: flexcoders@yahoogroups.com
To: flexcoders@yahoogroups.com
Sent: Fri Jun 19 06:27:33 2009
Subject: [flexcoders] (SOT) Opportunity for FB ? (Hey! Adobe !)



I've been reading up on Bugzilla and it is frequently mentioned that its UI is 
not the most intuitive or easy to use in the world.

Well if one needs an improved UI experience,  is not FB the answer!?  Well 
really, the SDK in this case.  Although, I guess, anything you do in FB, 
outside of the data visualization, can be updated in the SDK, right?

Is this a good opportunity for Adobe to greatly improve an open source tool 
with their open source solution?  To me,  it seems like there is significant 
opportunity to show off many of the features of 4.x. in a highly targeted 
market.

Anyway, just a thought, maybe I'm way off base.  (Then again, I'm always late 
to the party with the flexcoders group,  so maybe somebody is already working 
on it).   However, if you do decide to do it, Adobe, see if you can add some 
built in integration with Subversion (in keeping with being a major contributor 
to the open source community).

brad




[flexcoders] Camera deactivation

2009-06-19 Thread Leon`e

When I use in my Flex applicaiton Camera.getCamera() function I activate
camera which is signalized by blue light attached to my camera in computer.
How can I deactivate camera? It’s still capturing image (blue light is still
turned on) until I close flex application in the browser.
-- 
View this message in context: 
http://www.nabble.com/Camera-deactivation-tp24111586p24111586.html
Sent from the FlexCoders mailing list archive at Nabble.com.



[flexcoders] (SOT) Opportunity for FB ? (Hey! Adobe !)

2009-06-19 Thread Brad Bueche
I've been reading up on Bugzilla and it is frequently mentioned that its UI
is not the most intuitive or easy to use in the world.

Well if one needs an improved UI experience,  is not FB the answer!?  Well
really, the SDK in this case.  Although, I guess, anything you do in FB,
outside of the data visualization, can be updated in the SDK, right?

Is this a good opportunity for Adobe to greatly improve an open source tool
with their open source solution?  To me,  it seems like there is significant
opportunity to show off many of the features of 4.x. in a highly targeted
market.

Anyway, just a thought, maybe I'm way off base.  (Then again, I'm always
late to the party with the flexcoders group,  so maybe somebody is already
working on it).   However, if you do decide to do it, Adobe, see if you can
add some built in integration with Subversion (in keeping with being a major
contributor to the open source community).

brad


[flexcoders] Re: PureMVC

2009-06-19 Thread a.scavarelli
I am just learning it as well, and found this tutorial to be pretty handy as it 
walks you through every step :)

http://www.actionscriptdeveloper.co.uk/puremvc-tutorial-flex-puremvc-jabber-and-xiff-3-introduction/



[flexcoders] Re: Accurate way of measuring a datagrid

2009-06-19 Thread valdhor
I hate to be picky but my math makes it 52.

Anyway, did you count things like padding, vertical gap etc?


--- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
>
> Tom:
> 
> Thanks for that, but unfortunately that method is inaccurate( Maybe it 
> doesn't work for very good for factories... Here's how i am getting my 
> height, i am setting a height on my value object after i add my labels in a 
> vertical column, then i listen for an event on my collection dataProvider, 
> the last item, which I then loop through and calculate the values?  
> 
> See my examples:
> 
> idSGrid.measureHeightOfItems 612
> Measuring each row height> 560
> idSGrid.measureHeightOfItems 612
> Measuring each row height> 560
> 
> 
> It's off by 72 pixels... that's quite a difference.
> 
> Patrick
> 
> 
> 
> --- In flexcoders@yahoogroups.com, "Tim Hoff"  wrote:
> >
> > 
> > Hi Patrick,
> > 
> > private function resizeDataGrid():void
> > {
> >   myDataGrid.height = myDataGrid.measureHeightOfItems(0,
> > myDataGrid.dataProvider.length) + myDataGrid.headerHeight + 2;
> > }
> > 
> > 
> > 
> > -TH
> > 
> > --- In flexcoders@yahoogroups.com, "djhatrick"  wrote:
> > >
> > > My datagrid won't measure correctly, i have variable row height, but
> > it can't seem to get it right, I don't want any scroll bars..., is there
> > an easy way to override some function so i can get the actual rowheight
> > of each row and determine my height correctly
> > >
> > > Thanks,Patrick
> > >
> > >
> > > Wow, i had to rejoing Flexcoders Google Groups are better than
> > yahoogroups, sorry yahoogroups,
> > >
> >
>




[flexcoders] Re: Flex error when AdvancedDataGrid made too small.

2009-06-19 Thread valdhor
Instead of setting height and width of a component to 0, try setting visible 
property to false and includeInLayout property to false.


--- In flexcoders@yahoogroups.com, "Mic"  wrote:
>
> In an application where 8 panels exist on the screen with each panel 
> containing a chart or an advanced datagrid (corporate dashboard), any portlet 
> can be zoomed to fill the whole screen, and I was doing this by setting 
> height and width of the other 5 to 0. Trying to debug the error I was 
> getting, I discovered that if you make an AdvancedDataGrid less than about 40 
> (cannot remember exact cutoff) Flex gives an error of:
> 
> TypeError: Error #1009: Cannot access a property or method of a null object 
> reference.
>   at 
> mx.controls::AdvancedDataGridBaseEx/drawColumnBackground()[C:\work\flex\dmv_automation\projects\datavisualisation\src\mx\controls\AdvancedDataGridBaseEx.as:3503]
>  etc.
> 
> It looks like it is too small to draw - Alice would tell it that it took the 
> wrong pill :-)
> 
> Is there a way around this? TIA,
> 
> Mic
>




[flexcoders] Re: multiple filters on XMLListCollection how?

2009-06-19 Thread valdhor
What is colourFilter, sizeFilter and selectedItem?

You should be using item. That is the object passed into the filter function. 
Set a breakpoint in the filter function and see what properties item has. Once 
you know, you can write a function to test those properties.



--- In flexcoders@yahoogroups.com, "munene_uk"  wrote:
>
> Thanks for the reply...how would the above example work for criteria that 
> comes dynamically through xml data? ive tried this code below on my two combo 
> boxes  with id's of colourFilter and sizeFilter respectively...
> 
> private function filterData():void
> {
>   
>   xmlData2.filterFunction = applyColourAndSizeFilter;
>   xmlData2.refresh()
>   Alert.show(xmlData2.length.toString());
>   
> }
>   public function applyColourAndSizeFilter(item:Object):Boolean
>   {
>   
>   if(colourFilter.selectedItem == "All colours" && 
> sizeFilter.selectedItem =="All sizes" )
>   {
>   return true;
>   
>   }
>   
>   else
>   {
>   return item.colour == colourFilter.selectedItem && 
> item.sizes == sizeFilter.selectedItem;
>   
>   }
>




[flexcoders] Re: Remoting Question

2009-06-19 Thread valdhor
I don't know how ColdFusion handles sessions but PHP uses cookies. IF CF does 
it the same way then you will have a problem as mydomain.com and 
www.mydomain.com would have separate cookies.

I don't know if it is even possible to do what you want in CF. Maybe check the 
documentation or the CF forums.


--- In flexcoders@yahoogroups.com, Ben Densmore  wrote:
>
> I have an app that I'm having some issues accessing a session variable that 
> is set in ColdFusion.  I think it's due to my services-config.xml file having 
> the flexgateway url set to have the "www".  
> 
> If I'm at www.mydomain.com I can make the remoting call and have the cfc 
> return the session variable to Flex. If I go to just http://mydomain.com then 
> I seem to have an issue.
> 
> I created a cross domain policy file to allow with the "www" and without but 
> because the session variable is set on the domain without the www and then 
> the remoting call is trying to access the cfc with the "www" the session 
> variables are being reset.
> 
> I can force the page to always go to www but wanted to see if others have run 
> into this and the best way to handle it.
> 
> Thanks,
> Ben
>




Re: [flexcoders] Re: Signed RSL penetration

2009-06-19 Thread Simon Bailey
You know what confuses me though over all this, why hasn't Adobe  
cached the Flex framework in the Flash Player?  An additional 500k on  
the player download would be a miniscule inconvenience in time for the  
user, the way it stands the time added reflects poorly on the actual  
Flex application.


 Releases of the flex framework sdk for caching and flash player  
releases are not so often for that to be a hurdle, surely?


If Adobe are (a) reluctant to release statistics on how many players  
have the framework cached and (b) not going to help push these stats  
up by caching the framework in the player, its going to be a constant  
concern for the developer.



On 27 Apr 2009, at 09:30, Kenneth Sutherland wrote:





Hmmm, maybe it’s just me and I’ve missed that bit of info from  
before but I’ve never heard/read anything about Google not being  
able to index a SWF if you use the RSL feature on the framework.  
This seems like a fairly major step to get over ( I may have to go  
back and rebuild some of my SWFs so that they will now get indexed)  
if you want the number of SWFs that use the framework feature to go  
up.  All info I’ve seen out there suggests Google can index any SWF.




I bet most clients are more sensitive to their data not being index  
than being slightly bloated.




Kenneth.



From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Matt Chotin

Sent: 24 April 2009 21:52
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Signed RSL penetration







Yes, that’s what it means unfortunately.  I don’t have a info on  
timing, it’s really up to them.



On 4/24/09 12:51 AM, "Kenneth Sutherland" > wrote:








Does that mean that any swf you create that uses the flex framework  
RSLs are not going to get indexed by Google.
I’ve created a very simple placeholder page (single front page with  
just a few text boxes and a link) and as usual I make the framework  
into a RSL(total overkill in this situation, but I like to do it as  
standard). So I’ve just checked the site using googles search and  
its showing the ‘Error #2032. RSL Error 1 of 1.’ in the listing of  
search results.


If so any ideas what is Googles timescale on indexing sites that use  
RSLs.


Cheers.


From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com]  
On Behalf Of Matt Chotin

Sent: 23 April 2009 01:38
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] Re: Signed RSL penetration






This is due to Google not yet executing network requests from the  
SWF.  Something that they’re working on.


Matt


On 4/21/09 11:19 PM, "bsyyu"  wrote:







Apart from the size matter, we encounter the problem for Google  
engine working with signed RSL matter , the result of Google Serach  
for the website that use signed RSL with "Error #2032. RSL Error 1  
of 1." Any comments for this


--- In flexcoders@yahoogroups.com  , Matt Chotin  wrote:

>
> We're hosting the RSLs starting with Flex 4, you'll see them  
hosted in the public beta.

>
> When we feel comfortable with the RSL penetration stats as far as  
being consistent and accurate and explainable we'll begin publishing  
them.

>
> Matt
>
>
> On 4/21/09 11:01 PM, "Steve Mathews"  wrote:
>
>
>
>
>
>
> No offence was intended, I was trying to state that as a selling  
point. The number of users who already have the SWZs should be  
icing, the real substance should be the benifit to every user  
visiting your site/app. Obviously if you only expect users to visit  
once or twice the benifit doesn't work out.

>
> The problem with Adobe including the files with the first install  
is that there are new files for each update of the Flex Framework. I  
am currently on my third set of SWZs in my production environment. I  
would like to see Adobe host the files as an added benifit to using  
them.

>
> I would also be interested in seeing some stats on the number of  
installed players that have one or more SWZs cached as it would be  
additional info to help sell the idea to clients.

>
> Steve
>
> On Tue, Apr 21, 2009 at 2:55 PM, Guy Morton  wrote:
>
>
> Yes, I know how it works...my point is that it's hard to sell to  
my current clients if for most it's going to translate into a bigger  
download for first time users.

>
> This is why stats as to how many users are likely to already have  
the different versions of the RSLs would be handy.

>
> I realise this is probably strategically sensitive for Adobe as  
they want to encourage use of RSLs as it improves the Flex download  
size story longer term.

>
> Someone made the suggestion somewhere that when users upgrade or  
install the player, Adobe ought to download and install all the  
current RSLs as well. That seems a very sensible idea to me.

>
> Even if they were a separate download available at the time (or  
available as a "Flash player professional" version) it would be  
better than forcing developers distributi

Re: [flexcoders] Livecycle CommunicationsException: Communications link failure

2009-06-19 Thread Ward Loockx

Hello Pedro,

Increasing the connection timeout is not possible because other 
applications use these database too. I try'd to use C3Po but looks like 
the connections still timeout.


Here is an example

I have a remoting service. In the constructor I create my pool.

*Class.forName("com.mysql.jdbc.Driver");
String dbString = "jdbc:mysql://" + properties.getProperty("x") + 
":3306/" + properties.getProperty("x");
DataSource unpooled = 
DataSources.unpooledDataSource(dbString,properties.getProperty(""),properties.getProperty("x"));

this.dataConnection = DataSources.pooledDataSource(unpooled);

*I have a method in the remoting class that get's some data from the 
database. When I call this method below from flex the first +- 10times 
it is not a problem but then I can't get any connection anymore and 
stops after "OPENING CONNECTION". Looks like there is something very 
wrong. Any idea? I just need that the connections stay open during the 
livecycle uptime.


*public String getTeaserUrl(String account)
{
System.out.println("#REQUESTING 
TEASER\n\n");

try
{
System.out.println("OPENING CONNECTION\n");
Connection connect = this.dataConnection.getConnection();
System.out.println("GOT CONNECTION "+connect.toString());
String select = "SELECT FILENAME FROM TEASERS WHERE ACCOUNT = ? LIMIT 0,1";

PreparedStatement statement = connect.prepareStatement(select);
statement.setString(1,account);
ResultSet result = statement.executeQuery();

System.out.println("GOT TEASER RESULT!! "+result.toString());
while(result.next())
{
return "http://xxx/teasers/"+result.getString("FILENAME")+".flv";
}
connect.close();
}
catch(SQLException e)
{
e.printStackTrace();
}
return "";
}

*Greets,
Ward*
*
Pedro Sena schreef:



1) Try to increase your connection timeout
2) Double check if you are releasing the connections correctly.
3) Use a connection pooling mechanism :) C3P0 is a good one and easy 
to use


If you are using hibernate, it will be very easy to configure it.

HTH

On Thu, Jun 18, 2009 at 2:11 PM, Ward Loockx > wrote:




Hello Pedro,


Thanks for your reply!


Here are the answers


1) What is your connection timeout?
-> connect timeout 5

2) Are your application and database in the same machine?
-> No (the DAO's make multiple connections to mysql servers and
non of them are installed on the localhost)

3) Are you using some kind of connection pool mechanism? If so,
what are you
using?
-> Don't think so

4) Is it ocurring when your execute some specific query or it occurs
anytime?
-> No, it just occurs after 20minutes. (every connection). So I
get multiple errors in my application

5) What engine are you using(MyISAM, InnoDB, ...) ?
-> MyISAM


Thanks,
Ward



On Thursday 18 June 2009 06:28:26 pm Pedro Sena wrote:
> I had this problem before.
>
> It's related to mysql(obviously) not to flex, but I'll try to
help you.
>
> To do that, please answer some questions:
>
> 1) What is your connection timeout?
> 2) Are your application and database in the same machine?
> 3) Are you using some kind of connection pool mechanism? If so,
what are
> you using?
> 4) Is it ocurring when your execute some specific query or it occurs
> anytime?
> 5) What engine are you using(MyISAM, InnoDB, ...) ?
>
> PS
>
> On Thu, Jun 18, 2009 at 1:04 PM, Ward Loockx mailto:w...@loockx.be>> wrote:
> > Hello,
> >
> > I'm having a problem with my connections to the mysql server
that are
> > timing out(and get the communicationsException). We use
> > autoreconnect=true when creating the connections, the problem
is that
> > whole application is crashing at this point because the
connection has
> > been lost. The Dao's just create one connection at startup for all
> > clients (that should stay open). Does somebody has experience
with this
> > problem or any advice how to keep the connections open?
> >
> > Here is the stacktrace
> >
> > com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:
Communications
> > link failure
> > Last packet sent to the server was 19 ms ago.
> > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
> > Method)
> > at
> >
> >
sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAc
> >cessorImpl.java:39) at
> >
> >
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConst
> >ructorAccessorImpl.java:27) at
> > java.lang.reflect.Constructor.newInstance(Constructor.java:513) at
> > com.mysql.jdbc.Util.handleNewInstance(Util.java:406)
> > at
> >
com.mysql.jdbc.SQLError.createCommunicationsException(SQLError.java:1074)
> > at com.mysql.jdbc.MysqlIO.reuseAndReadPacket(MysqlIO.java:3009)
> > at com.mysq

[flexcoders] Charting questions

2009-06-19 Thread inevative
Hey peepsJust looking for some help with some charting related tasks.

- Can you rotate the axis labels on a LineChart? All the examples i have used 
seem to work fine on BarChart but not on LineChart

- Consider the following...


  


Is it possible to specify the number of axis points and labels? Using the 
DateTimeAxis is seems to just try and work out where to plot them but i want to 
specify at what intervals to put markers.

- Is it possible to get the color value of a chart line or legend marker? I 
want to use the colors for something else and need them to match (other than 
specifying my own colors).

Thanks for any help you can give..

Steve



[flexcoders] Re: Is there any way to globally mute all sounds in an application?

2009-06-19 Thread mihksoft
SoundMixer.stopAll()

--- In flexcoders@yahoogroups.com, greg h  wrote:
>
> Is there any way to globally mute all sounds in an application?
> 
> I have an application with several short, embedded MP3 sound effects plus
> NetStream video that has audio. Note: In our application play() is executed
> programmatically via ActionScript for all Sounds and NetStream videos.
> 
> My sense is that sound must be controlled on an object by object basis. That
> is, that there is no global property that can be set to adjust volume for
> all objects that might play() sounds
> 
> Can anyone point me to examples using a single property for muting all
> sounds in an application?
> 
> In Flex, the top level Application class does have a property soundTransform
> of type SoundTransform. However, in my experience (ran a few tests), setting
> the value on this Application-level property does not effect the individual
> Sound and NetStream instances.
> 
> The closest I have come to having a global property is adding an instance of
> SoundTransform as a property of the top level application. Then for the
> embedded MP3s, having the return value from each Sound.play() execution
> assigned to an instance of SoundChannel and then immediately assigning the
> top level app's SoundTransform property as the SoundChannel.soundTransform
> property. Likewise for the NetStream, after executign NetStream.play()
> setting NetStream.soundTransform property to the top level app's
> SoundTransform property.
> 
> Thanks,
> 
> g
>




[flexcoders] Re: Changing the background of items in a TileList

2009-06-19 Thread Max Pimm
Silly me, you're absolutely right. 

--- In flexcoders@yahoogroups.com, thomas parquier  wrote:
>
> I think you should *only* have to override the drawTileBackground
> function...
> 
> thomas
> ---
> http://www.web-attitude.fr/
> msn : thomas.parqu...@...
> softphone : sip:webattit...@... 
> téléphone portable : +33601 822 056
> 
> 
> 2009/6/18 Max Pimm 
> 
> >
> >
> > I need to customize the background of by items in a TileList.
> >
> > I've been looking through the code of tile list and i can't find a way to
> > override the defaut rectangle that the component draws for all tiles without
> > overriding updateDisplayList which would involve rewriting quite a bit of
> > the code in the component.
> >
> > Is there an easier way?
> >
> > Thanks
> >
> > Max
> >
> >  
> >
>